@lvce-editor/editor-worker 10.0.0 → 10.2.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.
@@ -1066,6 +1066,39 @@ const createMockRpc = ({
1066
1066
  return mockRpc;
1067
1067
  };
1068
1068
 
1069
+ const Backspace = 1;
1070
+ const Tab$1 = 2;
1071
+ const Enter = 3;
1072
+ const Escape = 8;
1073
+ const Space$1 = 9;
1074
+ const End = 255;
1075
+ const Home = 12;
1076
+ const LeftArrow = 13;
1077
+ const UpArrow = 14;
1078
+ const RightArrow = 15;
1079
+ const DownArrow = 16;
1080
+ const Delete = 18;
1081
+ const KeyA = 29;
1082
+ const KeyC = 31;
1083
+ const KeyD = 32;
1084
+ const KeyF = 34;
1085
+ const KeyH = 36;
1086
+ const KeyJ = 38;
1087
+ const KeyK = 39;
1088
+ const KeyL = 40;
1089
+ const KeyO = 43;
1090
+ const KeyV = 50;
1091
+ const KeyX = 52;
1092
+ const KeyZ = 54;
1093
+ const F2 = 58;
1094
+ const F3 = 59;
1095
+ const F4 = 60;
1096
+ const F12 = 68;
1097
+ const Period = 87;
1098
+ const Slash$1 = 88;
1099
+ const BracketLeft = 90;
1100
+ const BracketRight = 92;
1101
+
1069
1102
  const CodeGenerator = 1;
1070
1103
  const ColorPicker$1 = 2;
1071
1104
  const Completion = 3;
@@ -1075,6 +1108,10 @@ const Hover = 6;
1075
1108
  const Rename$1 = 7;
1076
1109
  const SourceAction$1 = 8;
1077
1110
 
1111
+ const CtrlCmd = 1 << 11 >>> 0;
1112
+ const Shift = 1 << 10 >>> 0;
1113
+ const Alt$1 = 1 << 9 >>> 0;
1114
+
1078
1115
  const DebugWorker = 55;
1079
1116
  const EditorWorker = 99;
1080
1117
  const ExtensionHostWorker = 44;
@@ -2194,18 +2231,18 @@ const loadTokenizers = async languageIds => {
2194
2231
 
2195
2232
  const EmptyString = '';
2196
2233
  const NewLine = '\n';
2197
- const Space$1 = ' ';
2198
- const Tab$1 = '\t';
2234
+ const Space = ' ';
2235
+ const Tab = '\t';
2199
2236
  const DoubleQuote$1 = '"';
2200
2237
 
2201
2238
  const normalizeText = (text, normalize, tabSize) => {
2202
2239
  if (normalize) {
2203
- return text.replaceAll(Tab$1, Space$1.repeat(tabSize));
2240
+ return text.replaceAll(Tab, Space.repeat(tabSize));
2204
2241
  }
2205
2242
  return text;
2206
2243
  };
2207
2244
  const shouldNormalizeText = text => {
2208
- return text.includes(Tab$1);
2245
+ return text.includes(Tab);
2209
2246
  };
2210
2247
 
2211
2248
  // based on https://github.com/microsoft/vscode/blob/c0769274fa136b45799edeccc0d0a2f645b75caf/src/vs/base/common/arrays.ts#L625 (License MIT)
@@ -2694,7 +2731,7 @@ const getSelectionPairs = (selections, i) => {
2694
2731
  const getTabCount = string => {
2695
2732
  let count = 0;
2696
2733
  for (const element of string) {
2697
- if (element === Tab$1) {
2734
+ if (element === Tab) {
2698
2735
  count++;
2699
2736
  }
2700
2737
  }
@@ -3850,7 +3887,7 @@ const guessOffset = (eventX, averageCharWidth) => {
3850
3887
  const normalizeGuess = (line, guess, tabSize) => {
3851
3888
  let normalizedGuess = guess;
3852
3889
  for (let i = 0; i < guess; i++) {
3853
- if (line[i] === Tab$1) {
3890
+ if (line[i] === Tab) {
3854
3891
  normalizedGuess -= tabSize - 1;
3855
3892
  }
3856
3893
  }
@@ -4519,7 +4556,7 @@ const characterRight = (line, columnIndex) => {
4519
4556
  return next.segment.length;
4520
4557
  };
4521
4558
  const isWhitespace = char => {
4522
- return char === Space$1 || char === Tab$1;
4559
+ return char === Space || char === Tab;
4523
4560
  };
4524
4561
  const lineCharacterStart = (line, columnIndex) => {
4525
4562
  if (line.length === 0) {
@@ -5331,55 +5368,25 @@ const goToTypeDefinition = async (editor, explicit = true) => {
5331
5368
  });
5332
5369
  };
5333
5370
 
5334
- const Editor = 3;
5335
-
5336
- const handleContextMenu = async (editor, button, x, y) => {
5337
- await invoke$9(/* ContextMenu.show */'ContextMenu.show', /* x */x, /* y */y, /* id */Editor);
5338
- return editor;
5339
- };
5340
-
5341
- // @ts-ignore
5342
-
5343
- // match all words, including umlauts, see https://stackoverflow.com/questions/5436824/matching-accented-characters-with-javascript-regexes/#answer-11550799
5344
- const RE_WORD_START = /^[a-z\u00C0-\u017F\d]+/i;
5345
- const RE_WORD_END = /[a-z\u00C0-\u017F\d]+$/i;
5346
-
5347
- // @ts-ignore
5348
- const getNewSelections$7 = (line, rowIndex, columnIndex) => {
5349
- const before = line.slice(0, columnIndex);
5350
- const after = line.slice(columnIndex);
5351
- const beforeMatch = before.match(RE_WORD_END);
5352
- const afterMatch = after.match(RE_WORD_START);
5353
- const columnStart = columnIndex - (beforeMatch ? beforeMatch[0].length : 0);
5354
- const columnEnd = columnIndex + (afterMatch ? afterMatch[0].length : 0);
5355
- const newSelections = new Uint32Array([rowIndex, columnStart, rowIndex, columnEnd]);
5356
- return newSelections;
5357
- };
5358
-
5359
- // @ts-ignore
5360
- const selectWord = (editor, rowIndex, columnIndex) => {
5361
- const line = getLine(editor, rowIndex);
5362
- const newSelections = getNewSelections$7(line, rowIndex, columnIndex);
5363
- return scheduleSelections(editor, newSelections);
5364
- };
5365
-
5366
- const handleDoubleClick = (editor, modifier, x, y) => {
5367
- const position = at(editor, x, y);
5368
- return selectWord(editor, position.rowIndex, position.columnIndex);
5371
+ const isPersistentWidget = widgetId => {
5372
+ switch (widgetId) {
5373
+ case Find:
5374
+ return true;
5375
+ default:
5376
+ return false;
5377
+ }
5369
5378
  };
5370
5379
 
5371
- const WhenExpressionEditorText = 12;
5372
- const handleFocus$1 = editor => {
5373
- // TODO make change events functional,
5374
- // when rendering, send focus changes to renderer worker
5375
- invoke$9('Focus.setFocus', WhenExpressionEditorText);
5376
- return editor;
5380
+ // TODO widgets should have a persistence property:
5381
+ // 1 = close by click (e.g. completion, hover, source-actions)
5382
+ // 2 = stay open on click (e.g. find)
5383
+ const closeWidgetsMaybe = widgets => {
5384
+ if (widgets.length === 0) {
5385
+ return widgets;
5386
+ }
5387
+ return widgets.filter(isPersistentWidget);
5377
5388
  };
5378
5389
 
5379
- const Single = 1;
5380
- const Double = 2;
5381
- const Triple = 3;
5382
-
5383
5390
  const state$3 = {
5384
5391
  position: {
5385
5392
  rowIndex: 0,
@@ -5439,19 +5446,22 @@ const handleSingleClickWithCtrl = async (editor, position) => {
5439
5446
  };
5440
5447
 
5441
5448
  const Ctrl = 1;
5442
- const Alt$1 = 2;
5449
+ const Alt = 2;
5443
5450
 
5444
5451
  const handleSingleClickDefault = (editor, position) => {
5452
+ // TODO avoid global variables, add them to editor state
5445
5453
  setPosition$1(position);
5454
+ const widgets = closeWidgetsMaybe(editor.widgets);
5446
5455
  return {
5447
5456
  ...editor,
5448
5457
  selections: new Uint32Array([position.rowIndex, position.columnIndex, position.rowIndex, position.columnIndex]),
5449
- focused: true
5458
+ focused: true,
5459
+ widgets
5450
5460
  };
5451
5461
  };
5452
5462
  const getClickHandler = modifier => {
5453
5463
  switch (modifier) {
5454
- case Alt$1:
5464
+ case Alt:
5455
5465
  return handleSingleClickWithAlt;
5456
5466
  case Ctrl:
5457
5467
  return handleSingleClickWithCtrl;
@@ -5460,26 +5470,75 @@ const getClickHandler = modifier => {
5460
5470
  }
5461
5471
  };
5462
5472
 
5473
+ const handleClickAtPosition = async (editor, modifier, rowIndex, columnIndex) => {
5474
+ object(editor);
5475
+ number(modifier);
5476
+ number(rowIndex);
5477
+ number(columnIndex);
5478
+ const fn = getClickHandler(modifier);
5479
+ const newEditor = await fn(editor, {
5480
+ rowIndex,
5481
+ columnIndex
5482
+ });
5483
+ return newEditor;
5484
+ };
5485
+
5486
+ const Editor = 3;
5487
+
5488
+ const handleContextMenu = async (editor, button, x, y) => {
5489
+ await invoke$9(/* ContextMenu.show */'ContextMenu.show', /* x */x, /* y */y, /* id */Editor);
5490
+ return editor;
5491
+ };
5492
+
5493
+ // @ts-ignore
5494
+
5495
+ // match all words, including umlauts, see https://stackoverflow.com/questions/5436824/matching-accented-characters-with-javascript-regexes/#answer-11550799
5496
+ const RE_WORD_START = /^[a-z\u00C0-\u017F\d]+/i;
5497
+ const RE_WORD_END = /[a-z\u00C0-\u017F\d]+$/i;
5498
+
5499
+ // @ts-ignore
5500
+ const getNewSelections$7 = (line, rowIndex, columnIndex) => {
5501
+ const before = line.slice(0, columnIndex);
5502
+ const after = line.slice(columnIndex);
5503
+ const beforeMatch = before.match(RE_WORD_END);
5504
+ const afterMatch = after.match(RE_WORD_START);
5505
+ const columnStart = columnIndex - (beforeMatch ? beforeMatch[0].length : 0);
5506
+ const columnEnd = columnIndex + (afterMatch ? afterMatch[0].length : 0);
5507
+ const newSelections = new Uint32Array([rowIndex, columnStart, rowIndex, columnEnd]);
5508
+ return newSelections;
5509
+ };
5510
+
5511
+ // @ts-ignore
5512
+ const selectWord = (editor, rowIndex, columnIndex) => {
5513
+ const line = getLine(editor, rowIndex);
5514
+ const newSelections = getNewSelections$7(line, rowIndex, columnIndex);
5515
+ return scheduleSelections(editor, newSelections);
5516
+ };
5517
+
5518
+ const handleDoubleClick = (editor, modifier, x, y) => {
5519
+ const position = at(editor, x, y);
5520
+ return selectWord(editor, position.rowIndex, position.columnIndex);
5521
+ };
5522
+
5523
+ const WhenExpressionEditorText = 12;
5524
+ const handleFocus$1 = editor => {
5525
+ // TODO make change events functional,
5526
+ // when rendering, send focus changes to renderer worker
5527
+ invoke$9('Focus.setFocus', WhenExpressionEditorText);
5528
+ return editor;
5529
+ };
5530
+
5531
+ const Single = 1;
5532
+ const Double = 2;
5533
+ const Triple = 3;
5534
+
5463
5535
  const handleSingleClick = async (editor, modifier, x, y) => {
5464
5536
  object(editor);
5465
5537
  number(modifier);
5466
5538
  number(x);
5467
5539
  number(y);
5468
5540
  const position = at(editor, x, y);
5469
- const fn = getClickHandler(modifier);
5470
- const newEditor = await fn(editor, position);
5471
- // switch (newEditor.completionState) {
5472
- // case EditorCompletionState.None:
5473
- // case EditorCompletionState.Visible:
5474
- // case EditorCompletionState.Loading:
5475
- // return {
5476
- // newState: newEditor,
5477
- // commands: [],
5478
- // }
5479
- // default:
5480
- // break
5481
- // }
5482
- return newEditor;
5541
+ return handleClickAtPosition(editor, modifier, position.rowIndex, position.columnIndex);
5483
5542
  };
5484
5543
 
5485
5544
  // @ts-ignore
@@ -7343,8 +7402,12 @@ const setLanguageId = async (editor, languageId, tokenizePath) => {
7343
7402
  textInfos,
7344
7403
  differences
7345
7404
  } = await getVisible$1(editor, syncIncremental);
7405
+ const latest2 = getEditor(editor.uid);
7406
+ if (!latest2) {
7407
+ return editor;
7408
+ }
7346
7409
  const newEditor4 = {
7347
- ...latest,
7410
+ ...latest2,
7348
7411
  focused: true,
7349
7412
  textInfos,
7350
7413
  differences
@@ -8058,7 +8121,7 @@ const type = (editor, text) => {
8058
8121
  return scheduleDocumentAndCursorsSelections(editor, changes);
8059
8122
  };
8060
8123
 
8061
- const Slash$1 = '/';
8124
+ const Slash = '/';
8062
8125
 
8063
8126
  const CurlyOpen = '{';
8064
8127
  const CurlyClose = '}';
@@ -8173,7 +8236,7 @@ const typeWithAutoClosing = async (editor, text) => {
8173
8236
  }
8174
8237
  break;
8175
8238
  // case AutoClosing.ClosingAngleBracket: // TODO support auto closing when typing closing angle bracket of start tag
8176
- case Slash$1:
8239
+ case Slash:
8177
8240
  if (isAutoClosingTagsEnabled) {
8178
8241
  return typeWithAutoClosingTag(editor, text);
8179
8242
  }
@@ -9334,43 +9397,6 @@ const ensure = async (fontName, fontUrl) => {
9334
9397
  setLoaded(fontName);
9335
9398
  };
9336
9399
 
9337
- const Backspace = 1;
9338
- const Tab = 2;
9339
- const Enter = 3;
9340
- const Escape = 8;
9341
- const Space = 9;
9342
- const End = 255;
9343
- const Home = 12;
9344
- const LeftArrow = 13;
9345
- const UpArrow = 14;
9346
- const RightArrow = 15;
9347
- const DownArrow = 16;
9348
- const Delete = 18;
9349
- const KeyA = 29;
9350
- const KeyC = 31;
9351
- const KeyD = 32;
9352
- const KeyF = 34;
9353
- const KeyH = 36;
9354
- const KeyJ = 38;
9355
- const KeyK = 39;
9356
- const KeyL = 40;
9357
- const KeyO = 43;
9358
- const KeyV = 50;
9359
- const KeyX = 52;
9360
- const KeyZ = 54;
9361
- const F2 = 58;
9362
- const F3 = 59;
9363
- const F4 = 60;
9364
- const F12 = 68;
9365
- const Period = 87;
9366
- const Slash = 88;
9367
- const BracketLeft = 90;
9368
- const BracketRight = 92;
9369
-
9370
- const CtrlCmd = 1 << 11 >>> 0;
9371
- const Shift = 1 << 10 >>> 0;
9372
- const Alt = 1 << 9 >>> 0;
9373
-
9374
9400
  const getKeyBindings = () => {
9375
9401
  return [{
9376
9402
  key: Escape,
@@ -9413,59 +9439,59 @@ const getKeyBindings = () => {
9413
9439
  command: 'FindWidget.focusNext',
9414
9440
  when: FocusFindWidget
9415
9441
  }, {
9416
- key: Shift | Tab,
9442
+ key: Shift | Tab$1,
9417
9443
  command: 'FindWidget.focusToggleReplace',
9418
9444
  when: FocusFindWidget
9419
9445
  }, {
9420
- key: Tab,
9446
+ key: Tab$1,
9421
9447
  command: 'FindWidget.focusReplace',
9422
9448
  when: FocusFindWidget
9423
9449
  }, {
9424
- key: Tab,
9450
+ key: Tab$1,
9425
9451
  command: 'FindWidget.focusPreviousMatchButton',
9426
9452
  when: FocusFindWidgetReplace
9427
9453
  }, {
9428
- key: Alt | CtrlCmd | Enter,
9454
+ key: Alt$1 | CtrlCmd | Enter,
9429
9455
  command: 'FindWidget.replaceAll',
9430
9456
  when: FocusFindWidgetReplace
9431
9457
  }, {
9432
- key: Tab,
9458
+ key: Tab$1,
9433
9459
  command: 'FindWidget.focusNextMatchButton',
9434
9460
  when: FocusFindWidgetPreviousMatchButton
9435
9461
  }, {
9436
- key: Shift | Tab,
9462
+ key: Shift | Tab$1,
9437
9463
  command: 'FindWidget.focusReplace',
9438
9464
  when: FocusFindWidgetPreviousMatchButton
9439
9465
  }, {
9440
- key: Shift | Tab,
9466
+ key: Shift | Tab$1,
9441
9467
  command: 'FindWidget.focusPreviousMatchButton',
9442
9468
  when: FocusFindWidgetNextMatchButton
9443
9469
  }, {
9444
- key: Tab,
9470
+ key: Tab$1,
9445
9471
  command: 'FindWidget.focusCloseButton',
9446
9472
  when: FocusFindWidgetNextMatchButton
9447
9473
  }, {
9448
- key: Shift | Tab,
9474
+ key: Shift | Tab$1,
9449
9475
  command: 'FindWidget.focusNextMatchButton',
9450
9476
  when: FocusFindWidgetCloseButton
9451
9477
  }, {
9452
- key: Tab,
9478
+ key: Tab$1,
9453
9479
  command: 'FindWidget.focusReplaceButton',
9454
9480
  when: FocusFindWidgetCloseButton
9455
9481
  }, {
9456
- key: Shift | Tab,
9482
+ key: Shift | Tab$1,
9457
9483
  command: 'FindWidget.focusFind',
9458
9484
  when: FocusFindWidgetReplace
9459
9485
  }, {
9460
- key: Tab,
9486
+ key: Tab$1,
9461
9487
  command: 'FindWidget.focusReplaceAllButton',
9462
9488
  when: FocusFindWidgetReplaceButton
9463
9489
  }, {
9464
- key: Shift | Tab,
9490
+ key: Shift | Tab$1,
9465
9491
  command: 'FindWidget.focusCloseButton',
9466
9492
  when: FocusFindWidgetReplaceButton
9467
9493
  }, {
9468
- key: Shift | Tab,
9494
+ key: Shift | Tab$1,
9469
9495
  command: 'FindWidget.focusReplaceButton',
9470
9496
  when: FocusFindWidgetReplaceAllButton
9471
9497
  }, {
@@ -9493,7 +9519,7 @@ const getKeyBindings = () => {
9493
9519
  command: 'EditorCompletion.focusFirst',
9494
9520
  when: FocusEditorCompletions
9495
9521
  }, {
9496
- key: CtrlCmd | Space,
9522
+ key: CtrlCmd | Space$1,
9497
9523
  command: 'EditorCompletion.toggleDetails',
9498
9524
  when: FocusEditorCompletions
9499
9525
  }, {
@@ -9505,11 +9531,11 @@ const getKeyBindings = () => {
9505
9531
  command: 'Editor.cursorWordLeft',
9506
9532
  when: FocusEditorText
9507
9533
  }, {
9508
- key: Alt | Backspace,
9534
+ key: Alt$1 | Backspace,
9509
9535
  command: 'Editor.deleteWordPartLeft',
9510
9536
  when: FocusEditorText
9511
9537
  }, {
9512
- key: Alt | Delete,
9538
+ key: Alt$1 | Delete,
9513
9539
  command: 'Editor.deleteWordPartRight',
9514
9540
  when: FocusEditorText
9515
9541
  }, {
@@ -9533,11 +9559,11 @@ const getKeyBindings = () => {
9533
9559
  command: 'Editor.showSourceActions3',
9534
9560
  when: FocusEditorText
9535
9561
  }, {
9536
- key: Tab,
9562
+ key: Tab$1,
9537
9563
  command: 'Editor.handleTab',
9538
9564
  when: FocusEditorText
9539
9565
  }, {
9540
- key: Shift | Tab,
9566
+ key: Shift | Tab$1,
9541
9567
  command: 'Editor.unindent',
9542
9568
  when: FocusEditorText
9543
9569
  }, {
@@ -9645,7 +9671,7 @@ const getKeyBindings = () => {
9645
9671
  command: 'Editor.moveLineUp',
9646
9672
  when: FocusEditorText
9647
9673
  }, {
9648
- key: CtrlCmd | Space,
9674
+ key: CtrlCmd | Space$1,
9649
9675
  command: 'Editor.openCompletion',
9650
9676
  when: FocusEditorText
9651
9677
  }, {
@@ -9669,7 +9695,7 @@ const getKeyBindings = () => {
9669
9695
  command: 'Editor.cursorEnd',
9670
9696
  when: FocusEditorText
9671
9697
  }, {
9672
- key: CtrlCmd | Slash,
9698
+ key: CtrlCmd | Slash$1,
9673
9699
  command: 'Editor.toggleComment',
9674
9700
  when: FocusEditorText
9675
9701
  }, {
@@ -9693,35 +9719,35 @@ const getKeyBindings = () => {
9693
9719
  command: 'Editor.paste',
9694
9720
  when: FocusEditorText
9695
9721
  }, {
9696
- key: Alt | LeftArrow,
9722
+ key: Alt$1 | LeftArrow,
9697
9723
  command: 'Editor.cursorWordPartLeft',
9698
9724
  when: FocusEditorText
9699
9725
  }, {
9700
- key: Alt | RightArrow,
9726
+ key: Alt$1 | RightArrow,
9701
9727
  command: 'Editor.cursorWordPartRight',
9702
9728
  when: FocusEditorText
9703
9729
  }, {
9704
- key: Alt | F3,
9730
+ key: Alt$1 | F3,
9705
9731
  command: 'Editor.selectAllOccurrences',
9706
9732
  when: FocusEditorText
9707
9733
  }, {
9708
- key: Alt | Shift | UpArrow,
9734
+ key: Alt$1 | Shift | UpArrow,
9709
9735
  command: 'Editor.addCursorAbove',
9710
9736
  when: FocusEditorText
9711
9737
  }, {
9712
- key: Alt | Shift | DownArrow,
9738
+ key: Alt$1 | Shift | DownArrow,
9713
9739
  command: 'Editor.addCursorBelow',
9714
9740
  when: FocusEditorText
9715
9741
  }, {
9716
- key: Alt | Shift | F12,
9742
+ key: Alt$1 | Shift | F12,
9717
9743
  command: 'Editor.findAllReferences',
9718
9744
  when: FocusEditorText
9719
9745
  }, {
9720
- key: Alt | Shift | KeyO,
9746
+ key: Alt$1 | Shift | KeyO,
9721
9747
  command: 'Editor.organizeImports',
9722
9748
  when: FocusEditorText
9723
9749
  }, {
9724
- key: CtrlCmd | Shift | Space,
9750
+ key: CtrlCmd | Shift | Space$1,
9725
9751
  command: 'Editor.selectionGrow',
9726
9752
  when: FocusEditor
9727
9753
  }];
@@ -10537,6 +10563,9 @@ const effects = [editorDiagnosticEffect];
10537
10563
  const wrapCommand = fn => async (editorUid, ...args) => {
10538
10564
  const oldInstance = get$4(editorUid);
10539
10565
  const newEditor = await fn(oldInstance.newState, ...args);
10566
+ if (oldInstance.newState === newEditor) {
10567
+ return newEditor;
10568
+ }
10540
10569
  for (const effect of effects) {
10541
10570
  if (effect.isActive(oldInstance.newState, newEditor)) {
10542
10571
  effect.apply(newEditor);
@@ -10586,6 +10615,7 @@ const commandMap = {
10586
10615
  'Editor.compositionEnd': compositionEnd,
10587
10616
  'Editor.compositionStart': compositionStart,
10588
10617
  'Editor.compositionUpdate': compositionUpdate,
10618
+ 'Editor.handleClickAtPosition': handleClickAtPosition,
10589
10619
  'Editor.applyDocumentEdits': applyDocumentEdits,
10590
10620
  'Editor.contextMenu': handleContextMenu,
10591
10621
  'Editor.copy': copy,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "10.0.0",
3
+ "version": "10.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Lvce Editor",
6
6
  "type": "module",
7
7
  "main": "dist/editorWorkerMain.js",
8
8
  "dependencies": {
9
- "@lvce-editor/constants": "^1.19.0"
9
+ "@lvce-editor/constants": "^1.23.0"
10
10
  }
11
11
  }