All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.1.2 (2019-04-26)
- example/package.json to reduce vulnerabilities (fe71d62)
- #10 fix typescript errors in
index.d.ts
file (@wesoft-systems)
3.1.1 (2019-03-24)
- package: add
index.d.ts
file to npm package (b40af98)
3.1.0 (2019-03-05)
- add typescript definition file [
d.ts
] (245a406)
3.0.1 (2019-03-04)
3.0.0 (2019-02-27)
- styling: minor fixes in default styles (d76d8c2)
- prop names for buttons are now changed. see
README.md
2.1.2 (2018-10-07)
- styling: minor fixes in default styles (b33b5c4)
2.1.1 (2018-10-07)
- styling: some styles override global css rules (14656d5)
2.1.0 (2018-10-05)
- revert React.Fragment usage (3eaf836)
- allow any valid element for hint prop (1d802b6)
- fix - move inputProps top to prevent overrides to component logic.
This version brings some important and breaking changes. Please consider to upgrade v2.
And very special thanks to Oririner from Reddit for such a great and detailed review. This feedback helped me a lot especially to release this version.
inputProps
andviewProps
for both input and content div. 🎉You can customize
input
element and thediv
that shows edited value. See Examples pages for detailes usage.onValidationFail
prop. 🎉 🔒You don't have to stick to the default validation message and styling. You can track the
validity
and act based on its value. See the examples page.- Add
hint
prop.Useful if you want to show a simple hint message at the bottom of input element.
- Support for more input types. ✅
New Types ->
date
,datetime-local
,time
,month
,url
,week
,tel
- Add more examples -> https://alioguzhan.github.io/react-editext/
- Remove
inputClassName
andcontainerClassName
props⚠️ ❌Since we added
inputProps
andviewProps
these are no longer needed. - Remove
save on press Enter
feature.⚠️ ❌This blocks new line feature in textarea.
- Added
type=button
to all buttons. - Improve tests
- Added
className
prop for custom styling to text content - Added tests
- Trigger save action on press Enter
- Improve default styling for Firefox and Safari
- Added this changelog
- Add
validation
feature. Now we can pass a function to validate the content before save it. See examples page for more details.
- Initial Release