All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.9.1 (2019-11-02)
- security: update deps due to a security vuln in
set-value
(14f4a0d)
3.9.0 (2019-11-01)
- example/.snyk & example/package.json to reduce vulnerabilities (d9c8fc0)
3.8.1 (2019-10-05)
- add
password
to the prop list (deeceb3)
3.8.0 (2019-10-02)
- add new prop
showButtonsOnHover
(0d17c53) - new prop
onEditingStart
to check if editing started (886df21)
3.7.0 (2019-09-14)
- example/.snyk & example/package.json to reduce vulnerabilities (72ac01c)
- migrate from
componentWillReceiveProps
tocomponentDidUpdate
(c355915)
- get rid of our only dep:
classnames
. No more deps! (d042ddc)
3.6.1 (2019-08-13)
- bug when updating value prop to blank (200f6ff)
3.6.0 (2019-08-10)
- Make editing state externally controllable (481c469)
- text input now gets saved when enter is used, and gets canceled when escape is used (8f9fb2b)
3.5.0 (2019-08-08)
- make
value
prop controllable (361ac3b)
3.4.1 (2019-08-07)
3.4.0 (2019-08-06)
- add editOnViewClick prop to activate the edit mode by clicking the view instead of edit button (119b28b)
3.3.1 (2019-08-05)
3.3.0 (2019-07-05)
- add
buttonsAlign
prop to let users change the buttons location (d24360e)
3.2.1 (2019-06-05)
- upgrade dev deps due to a vulnerability in
handlebars
(9fbbd30)
3.2.0 (2019-06-05)
- example/package.json to reduce vulnerabilities (fe71d62)
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