@lvce-editor/editor-worker 5.12.0 → 5.13.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.
@@ -500,15 +500,15 @@ const createMeasureContext = () => {
500
500
  return ctx;
501
501
  };
502
502
 
503
- const state$a = {
503
+ const state$9 = {
504
504
  ctx: undefined
505
505
  };
506
506
  const getOrCreate = createCtx => {
507
- if (state$a.ctx) {
508
- return state$a.ctx;
507
+ if (state$9.ctx) {
508
+ return state$9.ctx;
509
509
  }
510
- state$a.ctx = createCtx();
511
- return state$a.ctx;
510
+ state$9.ctx = createCtx();
511
+ return state$9.ctx;
512
512
  };
513
513
 
514
514
  const getContext = () => {
@@ -1053,17 +1053,15 @@ const TabCompletionExecuteTabCompletionProvider = 'ExtensionHost.executeTabCompl
1053
1053
  const TextDocumentSyncFull = 'ExtensionHostTextDocument.syncFull';
1054
1054
 
1055
1055
  const Two = '2.0';
1056
- const state$9 = {
1057
- callbacks: Object.create(null)
1058
- };
1056
+ const callbacks = Object.create(null);
1059
1057
  const set$5 = (id, fn) => {
1060
- state$9.callbacks[id] = fn;
1058
+ callbacks[id] = fn;
1061
1059
  };
1062
1060
  const get$5 = id => {
1063
- return state$9.callbacks[id];
1061
+ return callbacks[id];
1064
1062
  };
1065
1063
  const remove$8 = id => {
1066
- delete state$9.callbacks[id];
1064
+ delete callbacks[id];
1067
1065
  };
1068
1066
  let id = 0;
1069
1067
  const create$3$1 = () => {
@@ -2366,7 +2364,6 @@ const cancelSelection = editor => {
2366
2364
  return scheduleSelections(editor, newSelections);
2367
2365
  };
2368
2366
 
2369
- // TODO use numeric widget id
2370
2367
  const CodeGenerator = 1;
2371
2368
  const ColorPicker$1 = 2;
2372
2369
  const Completion = 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/editor-worker",
3
- "version": "5.12.0",
3
+ "version": "5.13.0",
4
4
  "description": "",
5
5
  "main": "dist/editorWorkerMain.js",
6
6
  "type": "module",