jodit-react 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="c6024368-e635-45fa-a1ee-da52613355c9" name="Default" comment="">
5
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
5
+ <change beforePath="$PROJECT_DIR$/examples/components/Form.js" beforeDir="false" afterPath="$PROJECT_DIR$/examples/components/Form.js" afterDir="false" />
6
6
  </list>
7
7
  <option name="SHOW_DIALOG" value="false" />
8
8
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -115,7 +115,7 @@
115
115
  <workItem from="1649339002339" duration="1044000" />
116
116
  <workItem from="1649713567100" duration="2000" />
117
117
  <workItem from="1649723286545" duration="1174000" />
118
- <workItem from="1652298930531" duration="1044000" />
118
+ <workItem from="1652298930531" duration="1141000" />
119
119
  </task>
120
120
  <task id="LOCAL-00001" summary="Merge branch 'master' of https://github.com/jodit/jodit-react&#10;&#10;# Conflicts:&#10;#&#9;package.json">
121
121
  <created>1575919750934</created>
@@ -257,7 +257,14 @@
257
257
  <option name="project" value="LOCAL" />
258
258
  <updated>1652299831225</updated>
259
259
  </task>
260
- <option name="localTasksCounter" value="21" />
260
+ <task id="LOCAL-00021" summary="React 18 support #187&#10;Issue: https://github.com/jodit/jodit-react/issues/187">
261
+ <created>1652299993545</created>
262
+ <option name="number" value="00021" />
263
+ <option name="presentableId" value="LOCAL-00021" />
264
+ <option name="project" value="LOCAL" />
265
+ <updated>1652299993545</updated>
266
+ </task>
267
+ <option name="localTasksCounter" value="22" />
261
268
  <servers />
262
269
  </component>
263
270
  <component name="TypeScriptGeneratedFilesManager">
@@ -278,7 +285,8 @@
278
285
  <MESSAGE value="Added alias for npm run demo - npm start" />
279
286
  <MESSAGE value="Added command npm run lint" />
280
287
  <MESSAGE value="Fixed onBlur/onChange&#10;PR: https://github.com/jodit/jodit-react/pull/102/files" />
281
- <option name="LAST_COMMIT_MESSAGE" value="Fixed onBlur/onChange&#10;PR: https://github.com/jodit/jodit-react/pull/102/files" />
288
+ <MESSAGE value="React 18 support #187&#10;Issue: https://github.com/jodit/jodit-react/issues/187" />
289
+ <option name="LAST_COMMIT_MESSAGE" value="React 18 support #187&#10;Issue: https://github.com/jodit/jodit-react/issues/187" />
282
290
  </component>
283
291
  <component name="XSLT-Support.FileAssociations.UIState">
284
292
  <expand />
@@ -54,11 +54,14 @@ const Form = () => {
54
54
  setInputValue(e.target.value);
55
55
  }, []);
56
56
 
57
- const handleInputChange = useCallback(e => {
58
- const { value } = e.target;
59
- setInputValue(() => value);
60
- handleWYSIWYGChange(value);
61
- }, []);
57
+ const handleInputChange = useCallback(
58
+ e => {
59
+ const { value } = e.target;
60
+ setInputValue(() => value);
61
+ handleWYSIWYGChange(value);
62
+ },
63
+ [handleWYSIWYGChange]
64
+ );
62
65
 
63
66
  const handleSpin = useCallback(() => setSpin(spin => ++spin), []);
64
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit-react",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
5
5
  "main": "build/jodit-react.js",
6
6
  "author": "Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)s",