@lvce-editor/editor-worker 7.17.0 → 7.18.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.
- package/dist/editorWorkerMain.js +33 -29
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -1080,31 +1080,32 @@ const create$9 = rpcId => {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
|
+
const ClipBoardProcess$1 = 3401;
|
|
1084
|
+
const ClipBoardWorker$1 = 3400;
|
|
1085
|
+
const ColorPickerWorker = 302;
|
|
1086
|
+
const CompletionWorker = 301;
|
|
1083
1087
|
const DebugWorker$1 = 55;
|
|
1084
1088
|
const EditorWorker$1 = 99;
|
|
1089
|
+
const EmbedsProcess$1 = 207;
|
|
1090
|
+
const EmbedsWorker = 208;
|
|
1091
|
+
const ErrorWorker$1 = 3308;
|
|
1092
|
+
const ExtensionDetailWorker = 3402;
|
|
1085
1093
|
const ExtensionHostWorker = 44;
|
|
1094
|
+
const FileSystemProcess$1 = 210;
|
|
1095
|
+
const FileSystemWorker$1 = 209;
|
|
1086
1096
|
const MainProcess$1 = -5;
|
|
1087
|
-
const
|
|
1097
|
+
const MarkdownWorker$1 = 300;
|
|
1098
|
+
const OutputWorker = 7001;
|
|
1099
|
+
const ProblemsWorker = 3403;
|
|
1088
1100
|
const RendererProcess$1 = 1670;
|
|
1101
|
+
const RendererWorker$1 = 1;
|
|
1089
1102
|
const SearchProcess$1 = 77;
|
|
1090
1103
|
const SearchProcessElectron = 2;
|
|
1091
1104
|
const SharedProcess$1 = 1;
|
|
1092
|
-
const SourceControlWorker = 66;
|
|
1093
|
-
const EmbedsProcess$1 = 207;
|
|
1094
|
-
const EmbedsWorker = 208;
|
|
1095
|
-
const FileSystemWorker$1 = 209;
|
|
1096
|
-
const FileSystemProcess$1 = 210;
|
|
1097
|
-
const MarkdownWorker$1 = 300;
|
|
1098
|
-
const CompletionWorker = 301;
|
|
1099
|
-
const ColorPickerWorker = 302;
|
|
1100
1105
|
const SourceActionWorker = 303;
|
|
1101
|
-
const
|
|
1106
|
+
const SourceControlWorker = 66;
|
|
1102
1107
|
const SyntaxHighlightingWorker$1 = 3309;
|
|
1103
|
-
const
|
|
1104
|
-
const ClipBoardProcess$1 = 3401;
|
|
1105
|
-
const ExtensionDetailWorker = 3402;
|
|
1106
|
-
const ProblemsWorker = 3403;
|
|
1107
|
-
const OutputWorker = 7001;
|
|
1108
|
+
const TestWorker = 9001;
|
|
1108
1109
|
const RpcId = {
|
|
1109
1110
|
__proto__: null,
|
|
1110
1111
|
ClipBoardProcess: ClipBoardProcess$1,
|
|
@@ -1131,7 +1132,8 @@ const RpcId = {
|
|
|
1131
1132
|
SharedProcess: SharedProcess$1,
|
|
1132
1133
|
SourceActionWorker,
|
|
1133
1134
|
SourceControlWorker,
|
|
1134
|
-
SyntaxHighlightingWorker: SyntaxHighlightingWorker$1
|
|
1135
|
+
SyntaxHighlightingWorker: SyntaxHighlightingWorker$1,
|
|
1136
|
+
TestWorker
|
|
1135
1137
|
};
|
|
1136
1138
|
const {
|
|
1137
1139
|
invoke: invoke$9,
|
|
@@ -7989,11 +7991,6 @@ const renderHover = (oldState, newState) => {
|
|
|
7989
7991
|
return commands;
|
|
7990
7992
|
};
|
|
7991
7993
|
|
|
7992
|
-
const removeWidget$1 = widget => {
|
|
7993
|
-
// @ts-ignore
|
|
7994
|
-
return [['Viewlet.send', widget.newState.uid, 'dispose']];
|
|
7995
|
-
};
|
|
7996
|
-
|
|
7997
7994
|
const render$9 = widget => {
|
|
7998
7995
|
const commands = renderFull$4(widget.oldState, widget.newState);
|
|
7999
7996
|
const wrappedCommands = [];
|
|
@@ -8012,7 +8009,9 @@ const render$9 = widget => {
|
|
|
8012
8009
|
const add$5 = widget => {
|
|
8013
8010
|
return addWidget$1(widget, 'EditorRename', render$9);
|
|
8014
8011
|
};
|
|
8015
|
-
const remove$5 =
|
|
8012
|
+
const remove$5 = widget => {
|
|
8013
|
+
return [['Viewlet.dispose', widget.newState.uid]];
|
|
8014
|
+
};
|
|
8016
8015
|
const {
|
|
8017
8016
|
handleInput,
|
|
8018
8017
|
close,
|
|
@@ -9580,7 +9579,7 @@ const renderWidget = widget => {
|
|
|
9580
9579
|
}
|
|
9581
9580
|
return module.render(widget);
|
|
9582
9581
|
};
|
|
9583
|
-
const removeWidget = widget => {
|
|
9582
|
+
const removeWidget$1 = widget => {
|
|
9584
9583
|
const module = get$5(widget.id);
|
|
9585
9584
|
if (!module) {
|
|
9586
9585
|
throw new Error('unsupported widget');
|
|
@@ -9735,7 +9734,7 @@ const renderWidgets = {
|
|
|
9735
9734
|
}
|
|
9736
9735
|
const removeCommands = [];
|
|
9737
9736
|
for (const removedWidget of removedWidgets) {
|
|
9738
|
-
const childCommands = removeWidget(removedWidget);
|
|
9737
|
+
const childCommands = removeWidget$1(removedWidget);
|
|
9739
9738
|
if (childCommands.length > 0) {
|
|
9740
9739
|
removeCommands.push(...childCommands);
|
|
9741
9740
|
}
|
|
@@ -10162,6 +10161,11 @@ const listen = async () => {
|
|
|
10162
10161
|
set$8(rpc);
|
|
10163
10162
|
};
|
|
10164
10163
|
|
|
10164
|
+
const removeWidget = widget => {
|
|
10165
|
+
// @ts-ignore
|
|
10166
|
+
return [['Viewlet.send', widget.newState.uid, 'dispose']];
|
|
10167
|
+
};
|
|
10168
|
+
|
|
10165
10169
|
const CodeGeneratorInput = 'CodeGeneratorInput';
|
|
10166
10170
|
|
|
10167
10171
|
const getCodeGeneratorVirtualDom = state => {
|
|
@@ -10245,7 +10249,7 @@ const render$6 = widget => {
|
|
|
10245
10249
|
const add$4 = widget => {
|
|
10246
10250
|
return addWidget$1(widget, 'EditorCodeGenerator', render$6);
|
|
10247
10251
|
};
|
|
10248
|
-
const remove$4 = removeWidget
|
|
10252
|
+
const remove$4 = removeWidget;
|
|
10249
10253
|
|
|
10250
10254
|
const EditorCodeGeneratorWidget = {
|
|
10251
10255
|
__proto__: null,
|
|
@@ -10279,7 +10283,7 @@ const render$5 = widget => {
|
|
|
10279
10283
|
const add$3 = widget => {
|
|
10280
10284
|
return addWidget$1(widget, 'ColorPicker', render$5);
|
|
10281
10285
|
};
|
|
10282
|
-
const remove$3 = removeWidget
|
|
10286
|
+
const remove$3 = removeWidget;
|
|
10283
10287
|
const Commands = {};
|
|
10284
10288
|
|
|
10285
10289
|
const EditorColorPickerWidget = {
|
|
@@ -10384,7 +10388,7 @@ const render$3 = widget => {
|
|
|
10384
10388
|
const add$2 = widget => {
|
|
10385
10389
|
return addWidget$1(widget, 'EditorCompletionDetails', render$3);
|
|
10386
10390
|
};
|
|
10387
|
-
const remove$2 = removeWidget
|
|
10391
|
+
const remove$2 = removeWidget;
|
|
10388
10392
|
const handleEditorType = (editor, state) => {
|
|
10389
10393
|
const completionState = getCompletionState(editor);
|
|
10390
10394
|
if (!completionState) {
|
|
@@ -10441,7 +10445,7 @@ const render$2 = widget => {
|
|
|
10441
10445
|
const add$1 = widget => {
|
|
10442
10446
|
return addWidget$1(widget, 'EditorHover', render$2);
|
|
10443
10447
|
};
|
|
10444
|
-
const remove$1 = removeWidget
|
|
10448
|
+
const remove$1 = removeWidget;
|
|
10445
10449
|
|
|
10446
10450
|
const EditorHoverWidget = {
|
|
10447
10451
|
__proto__: null,
|
|
@@ -10577,7 +10581,7 @@ const render = widget => {
|
|
|
10577
10581
|
const add = widget => {
|
|
10578
10582
|
return addWidget$1(widget, 'EditorSourceActions', render);
|
|
10579
10583
|
};
|
|
10580
|
-
const remove = removeWidget
|
|
10584
|
+
const remove = removeWidget;
|
|
10581
10585
|
|
|
10582
10586
|
const EditorSourceActionWidget = {
|
|
10583
10587
|
__proto__: null,
|