@lvce-editor/editor-worker 19.78.5 → 19.78.6

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.
package/dist/diff-sdk.js CHANGED
@@ -17895,10 +17895,10 @@ const compositionEnd = (editor, data) => {
17895
17895
  const {
17896
17896
  selections
17897
17897
  } = editor;
17898
- const changes = getCompositionChanges(selections, data);
17898
+ const changes = data === state$4.compositionText ? undefined : getCompositionChanges(selections, data);
17899
17899
  state$4.isComposing = false;
17900
17900
  state$4.compositionText = '';
17901
- return scheduleDocumentAndCursorsSelections(editor, changes);
17901
+ return changes ? scheduleDocumentAndCursorsSelections(editor, changes) : editor;
17902
17902
  };
17903
17903
 
17904
17904
  const writeText = async text => {
@@ -18320,10 +18320,10 @@ const compositionEnd = (editor, data) => {
18320
18320
  const {
18321
18321
  selections
18322
18322
  } = editor;
18323
- const changes = getCompositionChanges(selections, data);
18323
+ const changes = data === state$4.compositionText ? undefined : getCompositionChanges(selections, data);
18324
18324
  state$4.isComposing = false;
18325
18325
  state$4.compositionText = '';
18326
- return scheduleDocumentAndCursorsSelections(editor, changes);
18326
+ return changes ? scheduleDocumentAndCursorsSelections(editor, changes) : editor;
18327
18327
  };
18328
18328
 
18329
18329
  const writeText = async text => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.78.5",
3
+ "version": "19.78.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"