@lvce-editor/renderer-process 10.2.0 → 10.4.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/rendererProcessMain.js +112 -56
- package/package.json +1 -1
|
@@ -739,7 +739,7 @@ const getErrorResponse = (message, error, preparePrettyError, logError) => {
|
|
|
739
739
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
740
740
|
return create$1$1(message, errorProperty);
|
|
741
741
|
};
|
|
742
|
-
const create$
|
|
742
|
+
const create$N = (message, result) => {
|
|
743
743
|
return {
|
|
744
744
|
jsonrpc: Two,
|
|
745
745
|
id: message.id,
|
|
@@ -748,7 +748,7 @@ const create$M = (message, result) => {
|
|
|
748
748
|
};
|
|
749
749
|
const getSuccessResponse = (message, result) => {
|
|
750
750
|
const resultProperty = result ?? null;
|
|
751
|
-
return create$
|
|
751
|
+
return create$N(message, resultProperty);
|
|
752
752
|
};
|
|
753
753
|
const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
|
|
754
754
|
try {
|
|
@@ -923,7 +923,7 @@ const launchWorker = async ({
|
|
|
923
923
|
name,
|
|
924
924
|
url
|
|
925
925
|
}) => {
|
|
926
|
-
const worker = await create$
|
|
926
|
+
const worker = await create$M({
|
|
927
927
|
method: Auto,
|
|
928
928
|
url,
|
|
929
929
|
name
|
|
@@ -998,7 +998,7 @@ const hydrate$4 = async () => {
|
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
1000
|
// TODO needed?
|
|
1001
|
-
const dispose$
|
|
1001
|
+
const dispose$l = () => {
|
|
1002
1002
|
// @ts-expect-error
|
|
1003
1003
|
if (state$9.rendererWorker) {
|
|
1004
1004
|
// @ts-expect-error
|
|
@@ -1021,7 +1021,7 @@ const invokeAndTransfer = (method, ...params) => {
|
|
|
1021
1021
|
|
|
1022
1022
|
const RendererWorker = {
|
|
1023
1023
|
__proto__: null,
|
|
1024
|
-
dispose: dispose$
|
|
1024
|
+
dispose: dispose$l,
|
|
1025
1025
|
hydrate: hydrate$4,
|
|
1026
1026
|
invoke: invoke$1,
|
|
1027
1027
|
invokeAndTransfer,
|
|
@@ -1030,7 +1030,7 @@ const RendererWorker = {
|
|
|
1030
1030
|
state: state$9
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
const create$
|
|
1033
|
+
const create$M = async ({
|
|
1034
1034
|
method,
|
|
1035
1035
|
...options
|
|
1036
1036
|
}) => {
|
|
@@ -1051,7 +1051,7 @@ const create$L = async ({
|
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
1053
|
const launchEditorWorker = async port => {
|
|
1054
|
-
const ipc = await create$
|
|
1054
|
+
const ipc = await create$M({
|
|
1055
1055
|
name: 'Editor Worker',
|
|
1056
1056
|
url: editorWorkerUrl,
|
|
1057
1057
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1081,7 +1081,7 @@ const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${asset
|
|
|
1081
1081
|
|
|
1082
1082
|
const launchExtensionHostWorker = async port => {
|
|
1083
1083
|
const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
|
|
1084
|
-
const ipc = await create$
|
|
1084
|
+
const ipc = await create$M({
|
|
1085
1085
|
name,
|
|
1086
1086
|
url: extensionHostWorkerUrl,
|
|
1087
1087
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1105,7 +1105,7 @@ const hydrate$2 = async () => {
|
|
|
1105
1105
|
const syntaxHighlightingWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js`;
|
|
1106
1106
|
|
|
1107
1107
|
const launchSyntaxHighlightingWorker = async port => {
|
|
1108
|
-
const ipc = await create$
|
|
1108
|
+
const ipc = await create$M({
|
|
1109
1109
|
name: 'Syntax Highlighting Worker',
|
|
1110
1110
|
url: syntaxHighlightingWorkerUrl,
|
|
1111
1111
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1229,7 +1229,7 @@ const ToolBar = 'toolbar';
|
|
|
1229
1229
|
const Tree = 'tree';
|
|
1230
1230
|
const ComboBox = 'combobox';
|
|
1231
1231
|
|
|
1232
|
-
const attachEvents$
|
|
1232
|
+
const attachEvents$d = ($Node, eventMap) => {
|
|
1233
1233
|
for (const [key, value] of Object.entries(eventMap)) {
|
|
1234
1234
|
$Node.addEventListener(key, value);
|
|
1235
1235
|
}
|
|
@@ -1282,7 +1282,7 @@ const TouchMove = 'touchmove';
|
|
|
1282
1282
|
const TouchStart = 'touchstart';
|
|
1283
1283
|
const Wheel = 'wheel';
|
|
1284
1284
|
|
|
1285
|
-
const setBounds$
|
|
1285
|
+
const setBounds$7 = ($Element, x, y, width, height) => {
|
|
1286
1286
|
$Element.style.top = `${y}px`;
|
|
1287
1287
|
$Element.style.left = `${x}px`;
|
|
1288
1288
|
$Element.style.width = `${width}px`;
|
|
@@ -2157,7 +2157,7 @@ const setNegativeMargin = (state, negativeMargin) => {
|
|
|
2157
2157
|
setTop($ListItems, negativeMargin);
|
|
2158
2158
|
};
|
|
2159
2159
|
|
|
2160
|
-
const create$
|
|
2160
|
+
const create$L = () => {
|
|
2161
2161
|
const $ListItems = document.createElement('div');
|
|
2162
2162
|
$ListItems.className = 'ListItems';
|
|
2163
2163
|
$ListItems.role = ListBox;
|
|
@@ -2181,24 +2181,24 @@ const create$K = () => {
|
|
|
2181
2181
|
$ScrollBarThumb
|
|
2182
2182
|
};
|
|
2183
2183
|
};
|
|
2184
|
-
const attachEvents$
|
|
2184
|
+
const attachEvents$c = state => {
|
|
2185
2185
|
const {
|
|
2186
2186
|
$Viewlet,
|
|
2187
2187
|
$ListItems,
|
|
2188
2188
|
$ScrollBar
|
|
2189
2189
|
} = state;
|
|
2190
2190
|
$Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
|
|
2191
|
-
attachEvents$
|
|
2191
|
+
attachEvents$d($ListItems, {
|
|
2192
2192
|
[MouseDown]: handleMousedown
|
|
2193
2193
|
});
|
|
2194
|
-
attachEvents$
|
|
2194
|
+
attachEvents$d($ScrollBar, {
|
|
2195
2195
|
[PointerDown]: handleScrollBarPointerDown$4
|
|
2196
2196
|
});
|
|
2197
2197
|
};
|
|
2198
2198
|
// TODO show should be passed active cursor position
|
|
2199
2199
|
// this would make this function easier to test as it would avoid dependency on globals of other files
|
|
2200
2200
|
|
|
2201
|
-
const setDom$
|
|
2201
|
+
const setDom$b = (state, dom) => {
|
|
2202
2202
|
const {
|
|
2203
2203
|
$ListItems,
|
|
2204
2204
|
$Viewlet
|
|
@@ -2210,7 +2210,7 @@ const setDom$a = (state, dom) => {
|
|
|
2210
2210
|
// TODO recycle nodes
|
|
2211
2211
|
// TODO set right aria attributes on $EditorInput
|
|
2212
2212
|
};
|
|
2213
|
-
const dispose$
|
|
2213
|
+
const dispose$k = state => {
|
|
2214
2214
|
remove$2(state.$Viewlet);
|
|
2215
2215
|
// state.$EditorInput.removeAttribute('aria-activedescendant')
|
|
2216
2216
|
};
|
|
@@ -2230,28 +2230,86 @@ const handleError$8 = (state, error) => {
|
|
|
2230
2230
|
} = state;
|
|
2231
2231
|
$Viewlet.textContent = `${error}`;
|
|
2232
2232
|
};
|
|
2233
|
-
const setBounds$
|
|
2233
|
+
const setBounds$6 = (state, x, y, width, height) => {
|
|
2234
2234
|
const {
|
|
2235
2235
|
$Viewlet
|
|
2236
2236
|
} = state;
|
|
2237
|
-
setBounds$
|
|
2237
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
2238
2238
|
};
|
|
2239
2239
|
|
|
2240
2240
|
const ViewletEditorCompletion = {
|
|
2241
2241
|
__proto__: null,
|
|
2242
|
-
attachEvents: attachEvents$
|
|
2243
|
-
create: create$
|
|
2244
|
-
dispose: dispose$
|
|
2242
|
+
attachEvents: attachEvents$c,
|
|
2243
|
+
create: create$L,
|
|
2244
|
+
dispose: dispose$k,
|
|
2245
2245
|
handleError: handleError$8,
|
|
2246
|
-
setBounds: setBounds$
|
|
2246
|
+
setBounds: setBounds$6,
|
|
2247
2247
|
setContentHeight,
|
|
2248
|
-
setDom: setDom$
|
|
2248
|
+
setDom: setDom$b,
|
|
2249
2249
|
setNegativeMargin,
|
|
2250
2250
|
setScrollBar: setScrollBar$2,
|
|
2251
2251
|
setSize,
|
|
2252
2252
|
showLoading
|
|
2253
2253
|
};
|
|
2254
2254
|
|
|
2255
|
+
const handleClose = () => {
|
|
2256
|
+
return ['closeDetails'];
|
|
2257
|
+
};
|
|
2258
|
+
const returnValue$a = true;
|
|
2259
|
+
|
|
2260
|
+
const ViewletEditorCompletionDetailsEvents = {
|
|
2261
|
+
__proto__: null,
|
|
2262
|
+
handleClose,
|
|
2263
|
+
returnValue: returnValue$a
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
const create$K = () => {
|
|
2267
|
+
const $Viewlet = document.createElement('div');
|
|
2268
|
+
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2269
|
+
$Viewlet.id = 'CompletionsDetails';
|
|
2270
|
+
return {
|
|
2271
|
+
$Viewlet
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
const attachEvents$b = state => {
|
|
2275
|
+
// TODO
|
|
2276
|
+
};
|
|
2277
|
+
const setDom$a = (state, dom) => {
|
|
2278
|
+
const {
|
|
2279
|
+
$Viewlet
|
|
2280
|
+
} = state;
|
|
2281
|
+
const $Root = render2(dom);
|
|
2282
|
+
// @ts-expect-error
|
|
2283
|
+
$Viewlet.replaceChildren(...$Root.firstChild.childNodes);
|
|
2284
|
+
append$1($Viewlet);
|
|
2285
|
+
};
|
|
2286
|
+
const appendWidget = state => {
|
|
2287
|
+
const {
|
|
2288
|
+
$Viewlet
|
|
2289
|
+
} = state;
|
|
2290
|
+
append$1($Viewlet);
|
|
2291
|
+
};
|
|
2292
|
+
const dispose$j = state => {
|
|
2293
|
+
remove$2(state.$Viewlet);
|
|
2294
|
+
};
|
|
2295
|
+
const setBounds$5 = (state, x, y, width, height) => {
|
|
2296
|
+
const {
|
|
2297
|
+
$Viewlet
|
|
2298
|
+
} = state;
|
|
2299
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
2300
|
+
};
|
|
2301
|
+
|
|
2302
|
+
const ViewletEditorCompletionDetails = {
|
|
2303
|
+
__proto__: null,
|
|
2304
|
+
Events: ViewletEditorCompletionDetailsEvents,
|
|
2305
|
+
appendWidget,
|
|
2306
|
+
attachEvents: attachEvents$b,
|
|
2307
|
+
create: create$K,
|
|
2308
|
+
dispose: dispose$j,
|
|
2309
|
+
setBounds: setBounds$5,
|
|
2310
|
+
setDom: setDom$a
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2255
2313
|
const ActivityBar = 'ActivityBar';
|
|
2256
2314
|
const Audio$1 = 'Audio';
|
|
2257
2315
|
const BrowserViewOverview = 'BrowserViewOverview';
|
|
@@ -2308,6 +2366,7 @@ const EditorSourceActions = 'EditorSourceActions';
|
|
|
2308
2366
|
const E2eTests = 'E2eTests';
|
|
2309
2367
|
const E2eTest = 'E2eTest';
|
|
2310
2368
|
const WebView = 'WebView';
|
|
2369
|
+
const EditorCompletionDetails = 'EditorCompletionDetails';
|
|
2311
2370
|
|
|
2312
2371
|
const state$6 = {
|
|
2313
2372
|
instances: Object.create(null),
|
|
@@ -2651,6 +2710,7 @@ const enable = async window => {
|
|
|
2651
2710
|
const main = async () => {
|
|
2652
2711
|
enable(window);
|
|
2653
2712
|
state$6.modules[EditorCompletion] = ViewletEditorCompletion;
|
|
2713
|
+
state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
|
|
2654
2714
|
setLoad(load$2);
|
|
2655
2715
|
// TODO this is discovered very late
|
|
2656
2716
|
await launchWorkers();
|
|
@@ -3977,7 +4037,7 @@ const InitData_ipc = {
|
|
|
3977
4037
|
|
|
3978
4038
|
const name$n = 'IpcParent';
|
|
3979
4039
|
const Commands$o = {
|
|
3980
|
-
create: create$
|
|
4040
|
+
create: create$M
|
|
3981
4041
|
};
|
|
3982
4042
|
|
|
3983
4043
|
const IpcParent_ipc = {
|
|
@@ -5348,6 +5408,8 @@ const load$1 = moduleId => {
|
|
|
5348
5408
|
return Promise.resolve().then(function () { return ViewletE2eTest; });
|
|
5349
5409
|
case WebView:
|
|
5350
5410
|
return Promise.resolve().then(function () { return ViewletWebView; });
|
|
5411
|
+
case EditorCompletionDetails:
|
|
5412
|
+
return Promise.resolve().then(function () { return ViewletEditorCompletionDetails; });
|
|
5351
5413
|
default:
|
|
5352
5414
|
throw new Error(`${moduleId} module not found in renderer process`);
|
|
5353
5415
|
}
|
|
@@ -5460,7 +5522,7 @@ const isSpecial = id => {
|
|
|
5460
5522
|
const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
|
|
5461
5523
|
const $PlaceHolder = document.createElement('div');
|
|
5462
5524
|
$PlaceHolder.className = `Viewlet ${viewletId}`;
|
|
5463
|
-
setBounds$
|
|
5525
|
+
setBounds$7($PlaceHolder, left, top, width, height);
|
|
5464
5526
|
if (isSpecial(viewletId)) {
|
|
5465
5527
|
$PlaceHolder.id = viewletId;
|
|
5466
5528
|
}
|
|
@@ -5771,7 +5833,7 @@ const setBounds$4 = (id, left, top, width, height) => {
|
|
|
5771
5833
|
return;
|
|
5772
5834
|
}
|
|
5773
5835
|
const $Viewlet = instance.state.$Viewlet;
|
|
5774
|
-
setBounds$
|
|
5836
|
+
setBounds$7($Viewlet, left, top, width, height);
|
|
5775
5837
|
};
|
|
5776
5838
|
|
|
5777
5839
|
const name$8 = 'Viewlet';
|
|
@@ -6617,7 +6679,7 @@ const setBounds$3 = (state, x, y, width, height) => {
|
|
|
6617
6679
|
const {
|
|
6618
6680
|
$Viewlet
|
|
6619
6681
|
} = state;
|
|
6620
|
-
setBounds$
|
|
6682
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
6621
6683
|
};
|
|
6622
6684
|
|
|
6623
6685
|
const ViewletEditorError = {
|
|
@@ -6778,7 +6840,7 @@ const attachEvents$9 = state => {
|
|
|
6778
6840
|
const {
|
|
6779
6841
|
$Viewlet
|
|
6780
6842
|
} = state;
|
|
6781
|
-
attachEvents$
|
|
6843
|
+
attachEvents$d($Viewlet, {
|
|
6782
6844
|
[PointerDown]: handlePointerDown$5,
|
|
6783
6845
|
[PointerUp]: handlePointerUp,
|
|
6784
6846
|
[ContextMenu]: handleContextMenu$a,
|
|
@@ -7458,7 +7520,7 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
7458
7520
|
const {
|
|
7459
7521
|
$Viewlet
|
|
7460
7522
|
} = state;
|
|
7461
|
-
setBounds$
|
|
7523
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
7462
7524
|
};
|
|
7463
7525
|
|
|
7464
7526
|
const ViewletEditorWidgetError = {
|
|
@@ -7617,9 +7679,6 @@ const handleDrop = event => {
|
|
|
7617
7679
|
files
|
|
7618
7680
|
} = dataTransfer;
|
|
7619
7681
|
const uid = fromEvent(event);
|
|
7620
|
-
console.log({
|
|
7621
|
-
files
|
|
7622
|
-
});
|
|
7623
7682
|
if (files.length > 0) {
|
|
7624
7683
|
return handleDropFiles(uid, clientX, clientY, files);
|
|
7625
7684
|
}
|
|
@@ -7974,7 +8033,7 @@ const attachEvents$8 = state => {
|
|
|
7974
8033
|
$ExtensionHeader.addEventListener(Input$1, handleInput$6, Capture);
|
|
7975
8034
|
// @ts-expect-error
|
|
7976
8035
|
$ExtensionHeader.addEventListener(Click, undefined);
|
|
7977
|
-
attachEvents$
|
|
8036
|
+
attachEvents$d($ListItems, {
|
|
7978
8037
|
[ContextMenu]: handleContextMenu$8,
|
|
7979
8038
|
[PointerDown]: handlePointerDown$3,
|
|
7980
8039
|
[Focus]: handleFocus$6,
|
|
@@ -7984,7 +8043,7 @@ const attachEvents$8 = state => {
|
|
|
7984
8043
|
$ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
|
|
7985
8044
|
$ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
|
|
7986
8045
|
$ListItems.addEventListener(Wheel, handleWheel$3, Passive);
|
|
7987
|
-
attachEvents$
|
|
8046
|
+
attachEvents$d($ScrollBar, {
|
|
7988
8047
|
[PointerDown]: handleScrollBarPointerDown$2
|
|
7989
8048
|
});
|
|
7990
8049
|
};
|
|
@@ -8891,15 +8950,15 @@ const attachEvents$7 = state => {
|
|
|
8891
8950
|
$SashSideBar,
|
|
8892
8951
|
$SashPanel
|
|
8893
8952
|
} = state;
|
|
8894
|
-
attachEvents$
|
|
8953
|
+
attachEvents$d($SashSideBar, {
|
|
8895
8954
|
[PointerDown]: handleSashPointerDown,
|
|
8896
8955
|
[DoubleClick]: handleSashDoubleClick
|
|
8897
8956
|
});
|
|
8898
|
-
attachEvents$
|
|
8957
|
+
attachEvents$d($SashPanel, {
|
|
8899
8958
|
[PointerDown]: handleSashPointerDown,
|
|
8900
8959
|
[DoubleClick]: handleSashDoubleClick
|
|
8901
8960
|
});
|
|
8902
|
-
attachEvents$
|
|
8961
|
+
attachEvents$d(window, {
|
|
8903
8962
|
[Resize]: handleResize,
|
|
8904
8963
|
[Focus]: handleFocus$3,
|
|
8905
8964
|
[Blur]: handleBlur$3,
|
|
@@ -8912,9 +8971,9 @@ const setSashes = (state, sashSideBar, sashPanel) => {
|
|
|
8912
8971
|
$SashSideBar,
|
|
8913
8972
|
$SashPanel
|
|
8914
8973
|
} = state;
|
|
8915
|
-
setBounds$
|
|
8974
|
+
setBounds$7($SashSideBar, sashSideBar.x, sashSideBar.y, sashSideBar.width, sashSideBar.height);
|
|
8916
8975
|
$SashSideBar.classList.toggle('SashActive', sashSideBar.active);
|
|
8917
|
-
setBounds$
|
|
8976
|
+
setBounds$7($SashPanel, sashPanel.x, sashPanel.y, sashPanel.width, sashPanel.height);
|
|
8918
8977
|
$SashPanel.classList.toggle('SashActive', sashPanel.active);
|
|
8919
8978
|
};
|
|
8920
8979
|
|
|
@@ -8964,7 +9023,7 @@ const attachEvents$6 = state => {
|
|
|
8964
9023
|
const {
|
|
8965
9024
|
$Viewlet
|
|
8966
9025
|
} = state;
|
|
8967
|
-
attachEvents$
|
|
9026
|
+
attachEvents$d($Viewlet, {
|
|
8968
9027
|
[Drop]: handleDrop,
|
|
8969
9028
|
[DragOver]: handleDragOver,
|
|
8970
9029
|
[DragEnd]: handleDragEnd,
|
|
@@ -9027,7 +9086,7 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
|
|
|
9027
9086
|
const {
|
|
9028
9087
|
$DragOverlay
|
|
9029
9088
|
} = state;
|
|
9030
|
-
setBounds$
|
|
9089
|
+
setBounds$7($DragOverlay, x, y, width, height);
|
|
9031
9090
|
if (!hasOverlay) {
|
|
9032
9091
|
document.body.append($DragOverlay);
|
|
9033
9092
|
}
|
|
@@ -9102,7 +9161,7 @@ const attachEvents$5 = state => {
|
|
|
9102
9161
|
const {
|
|
9103
9162
|
$MainTabs
|
|
9104
9163
|
} = state;
|
|
9105
|
-
attachEvents$
|
|
9164
|
+
attachEvents$d($MainTabs, {
|
|
9106
9165
|
[MouseDown]: handleTabsMouseDown,
|
|
9107
9166
|
[ContextMenu]: handleTabsContextMenu,
|
|
9108
9167
|
[DragStart]: handleDragStart
|
|
@@ -9279,13 +9338,13 @@ const attachEvents$4 = state => {
|
|
|
9279
9338
|
$ButtonClose,
|
|
9280
9339
|
$PanelHeader
|
|
9281
9340
|
} = state;
|
|
9282
|
-
attachEvents$
|
|
9341
|
+
attachEvents$d($PanelHeader, {
|
|
9283
9342
|
[Click]: handleHeaderClick$2
|
|
9284
9343
|
});
|
|
9285
|
-
attachEvents$
|
|
9344
|
+
attachEvents$d($ButtonMaximize, {
|
|
9286
9345
|
[Click]: handleClickMaximize
|
|
9287
9346
|
});
|
|
9288
|
-
attachEvents$
|
|
9347
|
+
attachEvents$d($ButtonClose, {
|
|
9289
9348
|
[Click]: handleClickClose$1
|
|
9290
9349
|
});
|
|
9291
9350
|
};
|
|
@@ -9601,11 +9660,11 @@ const attachEvents$3 = state => {
|
|
|
9601
9660
|
$QuickPickItems,
|
|
9602
9661
|
$QuickPickInput
|
|
9603
9662
|
} = state;
|
|
9604
|
-
attachEvents$
|
|
9663
|
+
attachEvents$d($QuickPickItems, {
|
|
9605
9664
|
[PointerDown]: handlePointerDown
|
|
9606
9665
|
});
|
|
9607
9666
|
$QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
|
|
9608
|
-
attachEvents$
|
|
9667
|
+
attachEvents$d($QuickPickInput, {
|
|
9609
9668
|
[Blur]: handleBlur$2,
|
|
9610
9669
|
[BeforeInput]: handleBeforeInput
|
|
9611
9670
|
});
|
|
@@ -10080,7 +10139,7 @@ const attachEvents$2 = state => {
|
|
|
10080
10139
|
const {
|
|
10081
10140
|
$SideBarTitleArea
|
|
10082
10141
|
} = state;
|
|
10083
|
-
attachEvents$
|
|
10142
|
+
attachEvents$d($SideBarTitleArea, {
|
|
10084
10143
|
[Click]: handleHeaderClick
|
|
10085
10144
|
});
|
|
10086
10145
|
};
|
|
@@ -10653,7 +10712,7 @@ const attachEvents = state => {
|
|
|
10653
10712
|
const {
|
|
10654
10713
|
$Viewlet
|
|
10655
10714
|
} = state;
|
|
10656
|
-
attachEvents$
|
|
10715
|
+
attachEvents$d($Viewlet, {
|
|
10657
10716
|
[ContextMenu]: handleContextMenu$4
|
|
10658
10717
|
});
|
|
10659
10718
|
};
|
|
@@ -10985,7 +11044,7 @@ const setMenus = (state, changes, uid) => {
|
|
|
10985
11044
|
level,
|
|
10986
11045
|
focusedIndex
|
|
10987
11046
|
} = menu;
|
|
10988
|
-
setBounds$
|
|
11047
|
+
setBounds$7($Menu, x, y, width, height);
|
|
10989
11048
|
renderInto($Menu, dom);
|
|
10990
11049
|
$Menu.id = `Menu-${level}`;
|
|
10991
11050
|
append$1($Menu);
|
|
@@ -11011,7 +11070,7 @@ const setMenus = (state, changes, uid) => {
|
|
|
11011
11070
|
focusedIndex
|
|
11012
11071
|
} = menu;
|
|
11013
11072
|
const $Menu = $$Menus[level];
|
|
11014
|
-
setBounds$
|
|
11073
|
+
setBounds$7($Menu, x, y, width, height);
|
|
11015
11074
|
renderInto($Menu, dom);
|
|
11016
11075
|
if (level === newLength - 1) {
|
|
11017
11076
|
if (focusedIndex === -1) {
|
|
@@ -11257,9 +11316,6 @@ const setIframe$2 = (state, src, sandbox = []) => {
|
|
|
11257
11316
|
}
|
|
11258
11317
|
$Iframe.className = 'E2eTestsIframe';
|
|
11259
11318
|
$Iframe.src = src;
|
|
11260
|
-
console.log({
|
|
11261
|
-
src
|
|
11262
|
-
});
|
|
11263
11319
|
$Iframe.addEventListener('load', handleLoad$2, {
|
|
11264
11320
|
once: true
|
|
11265
11321
|
});
|
|
@@ -11463,7 +11519,7 @@ const setPort = (state, portId, origin) => {
|
|
|
11463
11519
|
};
|
|
11464
11520
|
const setPosition = (state, id, x, y, width, height) => {
|
|
11465
11521
|
const $Iframe = get(id);
|
|
11466
|
-
setBounds$
|
|
11522
|
+
setBounds$7($Iframe, x, y, width, height);
|
|
11467
11523
|
};
|
|
11468
11524
|
|
|
11469
11525
|
const ViewletWebView = {
|