@lvce-editor/editor-worker 19.67.0 → 19.67.1

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.
@@ -7665,7 +7665,7 @@ const getCopyLineOperations = selections => {
7665
7665
  }
7666
7666
  return mergedOperations;
7667
7667
  };
7668
- const copyLineDown = editor => {
7668
+ const copyLineDown = async editor => {
7669
7669
  const {
7670
7670
  selections
7671
7671
  } = editor;
@@ -7704,7 +7704,8 @@ const copyLineDown = editor => {
7704
7704
  selectionChanges[i + 2] = selections[i + 2] + getRowOffset(selections[i + 2]);
7705
7705
  selectionChanges[i + 3] = selections[i + 3];
7706
7706
  }
7707
- return scheduleDocumentAndCursorsSelections(editor, changes, selectionChanges);
7707
+ const newEditor = await scheduleDocumentAndCursorsSelections(editor, changes, selectionChanges);
7708
+ return typeof newEditor.finalDeltaY === 'number' ? scheduleSelections(newEditor, selectionChanges) : newEditor;
7708
7709
  };
7709
7710
 
7710
7711
  const copyLineUp = editor => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "19.67.0",
3
+ "version": "19.67.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:lvce-editor/editor-worker.git"