@lvce-editor/editor-worker 19.55.5 → 19.56.0

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.
@@ -5909,10 +5909,10 @@ const applyDocumentEdits$1 = (editor, edits) => {
5909
5909
  return scheduleDocumentAndCursorsSelections(editor, documentEdits);
5910
5910
  };
5911
5911
 
5912
- const applyEdit = async (editor, changes) => {
5912
+ const applyEdit = async (editor, changes, selectionChanges) => {
5913
5913
  object(editor);
5914
5914
  array(changes);
5915
- return scheduleDocumentAndCursorsSelections(editor, changes);
5915
+ return scheduleDocumentAndCursorsSelections(editor, changes, selectionChanges);
5916
5916
  };
5917
5917
 
5918
5918
  // TODO maybe use a separate worker for bulk edits and bulk edit history
@@ -13344,9 +13344,9 @@ const closeWidget2 = async (editorUid, widgetId, widgetName, unsetAdditionalFocu
13344
13344
  const closeFind2 = async editorUid => {
13345
13345
  await closeWidget2(editorUid, Find, 'FindWidget', 0);
13346
13346
  };
13347
- const applyEdits2 = async (editorUid, edits) => {
13347
+ const applyEdits2 = async (editorUid, edits, selectionChanges) => {
13348
13348
  const editor = getEditor$1(editorUid);
13349
- const newEditor = await applyEdit(editor, edits);
13349
+ const newEditor = await applyEdit(editor, edits, selectionChanges);
13350
13350
  const newEditorWithDerivedState = await updateDerivedState(editor, newEditor);
13351
13351
  set$8(editorUid, editor, newEditorWithDerivedState);
13352
13352
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.55.5",
3
+ "version": "19.56.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"