@lvce-editor/renderer-process 10.11.0 → 10.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.
- package/dist/rendererProcessMain.js +62 -50
- package/package.json +1 -1
|
@@ -998,7 +998,7 @@ const hydrate$4 = async () => {
|
|
|
998
998
|
};
|
|
999
999
|
|
|
1000
1000
|
// TODO needed?
|
|
1001
|
-
const dispose$
|
|
1001
|
+
const dispose$m = () => {
|
|
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$m,
|
|
1025
1025
|
hydrate: hydrate$4,
|
|
1026
1026
|
invoke: invoke$1,
|
|
1027
1027
|
invokeAndTransfer,
|
|
@@ -1924,7 +1924,7 @@ const setOffsetX = (state, offsetX) => {
|
|
|
1924
1924
|
setXAndYTransform($ColorPickerSliderThumb, offsetX, 0);
|
|
1925
1925
|
applyUidWorkaround($Viewlet);
|
|
1926
1926
|
};
|
|
1927
|
-
const appendWidget$
|
|
1927
|
+
const appendWidget$4 = state => {
|
|
1928
1928
|
const {
|
|
1929
1929
|
$Viewlet
|
|
1930
1930
|
} = state;
|
|
@@ -1934,7 +1934,7 @@ const appendWidget$3 = state => {
|
|
|
1934
1934
|
const ViewletColorPicker = {
|
|
1935
1935
|
__proto__: null,
|
|
1936
1936
|
Events: ViewletColorPickerEvents,
|
|
1937
|
-
appendWidget: appendWidget$
|
|
1937
|
+
appendWidget: appendWidget$4,
|
|
1938
1938
|
setColor,
|
|
1939
1939
|
setOffsetX
|
|
1940
1940
|
};
|
|
@@ -2330,7 +2330,7 @@ const setDom$b = (state, dom) => {
|
|
|
2330
2330
|
// TODO recycle nodes
|
|
2331
2331
|
// TODO set right aria attributes on $EditorInput
|
|
2332
2332
|
};
|
|
2333
|
-
const dispose$
|
|
2333
|
+
const dispose$l = state => {
|
|
2334
2334
|
remove$2(state.$Viewlet);
|
|
2335
2335
|
// state.$EditorInput.removeAttribute('aria-activedescendant')
|
|
2336
2336
|
};
|
|
@@ -2361,7 +2361,7 @@ const ViewletEditorCompletion = {
|
|
|
2361
2361
|
__proto__: null,
|
|
2362
2362
|
attachEvents: attachEvents$b,
|
|
2363
2363
|
create: create$J,
|
|
2364
|
-
dispose: dispose$
|
|
2364
|
+
dispose: dispose$l,
|
|
2365
2365
|
handleError: handleError$8,
|
|
2366
2366
|
setBounds: setBounds$7,
|
|
2367
2367
|
setContentHeight,
|
|
@@ -2403,13 +2403,13 @@ const setDom$a = (state, dom) => {
|
|
|
2403
2403
|
$Viewlet.replaceChildren(...$Root.firstChild.childNodes);
|
|
2404
2404
|
append$1($Viewlet);
|
|
2405
2405
|
};
|
|
2406
|
-
const appendWidget$
|
|
2406
|
+
const appendWidget$3 = state => {
|
|
2407
2407
|
const {
|
|
2408
2408
|
$Viewlet
|
|
2409
2409
|
} = state;
|
|
2410
2410
|
append$1($Viewlet);
|
|
2411
2411
|
};
|
|
2412
|
-
const dispose$
|
|
2412
|
+
const dispose$k = state => {
|
|
2413
2413
|
remove$2(state.$Viewlet);
|
|
2414
2414
|
};
|
|
2415
2415
|
const setBounds$6 = (state, x, y, width, height) => {
|
|
@@ -2422,10 +2422,10 @@ const setBounds$6 = (state, x, y, width, height) => {
|
|
|
2422
2422
|
const ViewletEditorCompletionDetails = {
|
|
2423
2423
|
__proto__: null,
|
|
2424
2424
|
Events: ViewletEditorCompletionDetailsEvents,
|
|
2425
|
-
appendWidget: appendWidget$
|
|
2425
|
+
appendWidget: appendWidget$3,
|
|
2426
2426
|
attachEvents: attachEvents$a,
|
|
2427
2427
|
create: create$I,
|
|
2428
|
-
dispose: dispose$
|
|
2428
|
+
dispose: dispose$k,
|
|
2429
2429
|
setBounds: setBounds$6,
|
|
2430
2430
|
setDom: setDom$a
|
|
2431
2431
|
};
|
|
@@ -2466,7 +2466,7 @@ const setBounds$5 = (state, x, y, width, height) => {
|
|
|
2466
2466
|
setWidth($Viewlet, width);
|
|
2467
2467
|
setXAndYTransform($Viewlet, x, -y);
|
|
2468
2468
|
};
|
|
2469
|
-
const appendWidget$
|
|
2469
|
+
const appendWidget$2 = state => {
|
|
2470
2470
|
const {
|
|
2471
2471
|
$Viewlet
|
|
2472
2472
|
} = state;
|
|
@@ -2482,7 +2482,7 @@ const setDom$9 = (state, dom) => {
|
|
|
2482
2482
|
const ViewletEditorHover = {
|
|
2483
2483
|
__proto__: null,
|
|
2484
2484
|
Events: ViewletEditorHoverEvents,
|
|
2485
|
-
appendWidget: appendWidget$
|
|
2485
|
+
appendWidget: appendWidget$2,
|
|
2486
2486
|
setBounds: setBounds$5,
|
|
2487
2487
|
setDom: setDom$9
|
|
2488
2488
|
};
|
|
@@ -2606,7 +2606,7 @@ const setValue$4 = (state, value) => {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
$InputBox.value = value;
|
|
2608
2608
|
};
|
|
2609
|
-
const appendWidget = state => {
|
|
2609
|
+
const appendWidget$1 = state => {
|
|
2610
2610
|
const {
|
|
2611
2611
|
$Viewlet
|
|
2612
2612
|
} = state;
|
|
@@ -2629,7 +2629,7 @@ const Events$c = ViewletFindWidgetEvents;
|
|
|
2629
2629
|
const ViewletFindWidget = {
|
|
2630
2630
|
__proto__: null,
|
|
2631
2631
|
Events: Events$c,
|
|
2632
|
-
appendWidget,
|
|
2632
|
+
appendWidget: appendWidget$1,
|
|
2633
2633
|
create: create$H,
|
|
2634
2634
|
focus: focus$i,
|
|
2635
2635
|
setBounds: setBounds$4,
|
|
@@ -2637,6 +2637,41 @@ const ViewletFindWidget = {
|
|
|
2637
2637
|
setValue: setValue$4
|
|
2638
2638
|
};
|
|
2639
2639
|
|
|
2640
|
+
const handleFocusIn$2 = event => {
|
|
2641
|
+
preventDefault(event);
|
|
2642
|
+
const uid = fromEvent(event);
|
|
2643
|
+
handleFocusIn$3(uid);
|
|
2644
|
+
};
|
|
2645
|
+
|
|
2646
|
+
const ViewletEditorSourceActionsEvents = {
|
|
2647
|
+
__proto__: null,
|
|
2648
|
+
handleFocusIn: handleFocusIn$2
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
const setBounds$3 = (state, x, y) => {
|
|
2652
|
+
const {
|
|
2653
|
+
$Viewlet
|
|
2654
|
+
} = state;
|
|
2655
|
+
setXAndYTransform($Viewlet, x, -y);
|
|
2656
|
+
};
|
|
2657
|
+
const appendWidget = state => {
|
|
2658
|
+
const {
|
|
2659
|
+
$Viewlet
|
|
2660
|
+
} = state;
|
|
2661
|
+
append$1($Viewlet);
|
|
2662
|
+
};
|
|
2663
|
+
const dispose$j = state => {
|
|
2664
|
+
remove$2(state.$Viewlet);
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2667
|
+
const ViewletEditorSourceActions = {
|
|
2668
|
+
__proto__: null,
|
|
2669
|
+
Events: ViewletEditorSourceActionsEvents,
|
|
2670
|
+
appendWidget,
|
|
2671
|
+
dispose: dispose$j,
|
|
2672
|
+
setBounds: setBounds$3
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2640
2675
|
const ActivityBar = 'ActivityBar';
|
|
2641
2676
|
const Audio$1 = 'Audio';
|
|
2642
2677
|
const BrowserViewOverview = 'BrowserViewOverview';
|
|
@@ -3041,6 +3076,7 @@ const main = async () => {
|
|
|
3041
3076
|
state$6.modules[ColorPicker] = ViewletColorPicker;
|
|
3042
3077
|
state$6.modules[FindWidget] = ViewletFindWidget;
|
|
3043
3078
|
state$6.modules[EditorHover] = ViewletEditorHover;
|
|
3079
|
+
state$6.modules[EditorSourceActions] = ViewletEditorSourceActions;
|
|
3044
3080
|
setLoad(load$2);
|
|
3045
3081
|
// TODO this is discovered very late
|
|
3046
3082
|
await launchWorkers();
|
|
@@ -5915,7 +5951,7 @@ const sendMultiple = commands => {
|
|
|
5915
5951
|
case 'Viewlet.setBounds':
|
|
5916
5952
|
{
|
|
5917
5953
|
// @ts-expect-error
|
|
5918
|
-
setBounds$
|
|
5954
|
+
setBounds$2(viewletId, method, ...args);
|
|
5919
5955
|
break;
|
|
5920
5956
|
}
|
|
5921
5957
|
case 'Viewlet.create':
|
|
@@ -6125,7 +6161,7 @@ const getFn = command => {
|
|
|
6125
6161
|
case 'Viewlet.setDom2':
|
|
6126
6162
|
return setDom2;
|
|
6127
6163
|
case 'Viewlet.setBounds':
|
|
6128
|
-
return setBounds$
|
|
6164
|
+
return setBounds$2;
|
|
6129
6165
|
case 'Viewlet.ariaAnnounce':
|
|
6130
6166
|
return ariaAnnounce;
|
|
6131
6167
|
case 'Viewlet.append':
|
|
@@ -6165,7 +6201,7 @@ const show = id => {
|
|
|
6165
6201
|
instance.factory.focus(instance.state);
|
|
6166
6202
|
}
|
|
6167
6203
|
};
|
|
6168
|
-
const setBounds$
|
|
6204
|
+
const setBounds$2 = (id, left, top, width, height) => {
|
|
6169
6205
|
const instance = state$6.instances[id];
|
|
6170
6206
|
if (!instance) {
|
|
6171
6207
|
return;
|
|
@@ -6189,7 +6225,7 @@ const Commands$9 = {
|
|
|
6189
6225
|
removeKeyBindings: removeKeyBindings,
|
|
6190
6226
|
send: invoke,
|
|
6191
6227
|
sendMultiple: sendMultiple,
|
|
6192
|
-
setBounds: setBounds$
|
|
6228
|
+
setBounds: setBounds$2,
|
|
6193
6229
|
show: show
|
|
6194
6230
|
};
|
|
6195
6231
|
|
|
@@ -6915,7 +6951,7 @@ const setDom$4 = (state, dom) => {
|
|
|
6915
6951
|
} = state;
|
|
6916
6952
|
renderInto($Viewlet, dom);
|
|
6917
6953
|
};
|
|
6918
|
-
const setBounds$
|
|
6954
|
+
const setBounds$1 = (state, x, y, width, height) => {
|
|
6919
6955
|
const {
|
|
6920
6956
|
$Viewlet
|
|
6921
6957
|
} = state;
|
|
@@ -6925,7 +6961,7 @@ const setBounds$2 = (state, x, y, width, height) => {
|
|
|
6925
6961
|
const ViewletEditorError = {
|
|
6926
6962
|
__proto__: null,
|
|
6927
6963
|
create: create$o,
|
|
6928
|
-
setBounds: setBounds$
|
|
6964
|
+
setBounds: setBounds$1,
|
|
6929
6965
|
setDom: setDom$4
|
|
6930
6966
|
};
|
|
6931
6967
|
|
|
@@ -7715,7 +7751,7 @@ const setMessage$2 = (state, message) => {
|
|
|
7715
7751
|
$Viewlet.textContent = message;
|
|
7716
7752
|
append$1($Viewlet);
|
|
7717
7753
|
};
|
|
7718
|
-
const setBounds
|
|
7754
|
+
const setBounds = (state, x, y, width, height) => {
|
|
7719
7755
|
const {
|
|
7720
7756
|
$Viewlet
|
|
7721
7757
|
} = state;
|
|
@@ -7725,7 +7761,7 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
7725
7761
|
const ViewletEditorWidgetError = {
|
|
7726
7762
|
__proto__: null,
|
|
7727
7763
|
create: create$j,
|
|
7728
|
-
setBounds
|
|
7764
|
+
setBounds,
|
|
7729
7765
|
setMessage: setMessage$2
|
|
7730
7766
|
};
|
|
7731
7767
|
|
|
@@ -10922,7 +10958,7 @@ const handleMenuClick = event => {
|
|
|
10922
10958
|
const uid = fromEvent(event);
|
|
10923
10959
|
handleMenuClick$1(uid, level, index);
|
|
10924
10960
|
};
|
|
10925
|
-
const handleFocusIn$
|
|
10961
|
+
const handleFocusIn$1 = event => {
|
|
10926
10962
|
const uid = fromEvent(event);
|
|
10927
10963
|
handleFocus$c(uid);
|
|
10928
10964
|
};
|
|
@@ -10930,7 +10966,7 @@ const handleFocusIn$2 = event => {
|
|
|
10930
10966
|
const ViewletTitleBarMenuBarEvents = {
|
|
10931
10967
|
__proto__: null,
|
|
10932
10968
|
handleClick,
|
|
10933
|
-
handleFocusIn: handleFocusIn$
|
|
10969
|
+
handleFocusIn: handleFocusIn$1,
|
|
10934
10970
|
handleFocusOut,
|
|
10935
10971
|
handleMenuClick,
|
|
10936
10972
|
handleMenuMouseOver,
|
|
@@ -11243,7 +11279,7 @@ const handleClickClose = event => {
|
|
|
11243
11279
|
const handleClickCopy = event => {
|
|
11244
11280
|
return ['handleClickCopy'];
|
|
11245
11281
|
};
|
|
11246
|
-
const handleFocusIn
|
|
11282
|
+
const handleFocusIn = event => {
|
|
11247
11283
|
return ['handleFocusIn'];
|
|
11248
11284
|
};
|
|
11249
11285
|
const handleContextMenu$3 = event => {
|
|
@@ -11258,7 +11294,7 @@ const ViewletAboutEvents = {
|
|
|
11258
11294
|
handleClickCopy,
|
|
11259
11295
|
handleClickOk,
|
|
11260
11296
|
handleContextMenu: handleContextMenu$3,
|
|
11261
|
-
handleFocusIn
|
|
11297
|
+
handleFocusIn,
|
|
11262
11298
|
returnValue: returnValue$3
|
|
11263
11299
|
};
|
|
11264
11300
|
|
|
@@ -11282,30 +11318,6 @@ const ViewletAbout = {
|
|
|
11282
11318
|
setFocused
|
|
11283
11319
|
};
|
|
11284
11320
|
|
|
11285
|
-
const handleFocusIn = event => {
|
|
11286
|
-
preventDefault(event);
|
|
11287
|
-
const uid = fromEvent(event);
|
|
11288
|
-
handleFocusIn$3(uid);
|
|
11289
|
-
};
|
|
11290
|
-
|
|
11291
|
-
const ViewletEditorSourceActionsEvents = {
|
|
11292
|
-
__proto__: null,
|
|
11293
|
-
handleFocusIn
|
|
11294
|
-
};
|
|
11295
|
-
|
|
11296
|
-
const setBounds = (state, x, y) => {
|
|
11297
|
-
const {
|
|
11298
|
-
$Viewlet
|
|
11299
|
-
} = state;
|
|
11300
|
-
setXAndYTransform($Viewlet, x, -y);
|
|
11301
|
-
};
|
|
11302
|
-
|
|
11303
|
-
const ViewletEditorSourceActions = {
|
|
11304
|
-
__proto__: null,
|
|
11305
|
-
Events: ViewletEditorSourceActionsEvents,
|
|
11306
|
-
setBounds
|
|
11307
|
-
};
|
|
11308
|
-
|
|
11309
11321
|
const create = () => {
|
|
11310
11322
|
const $Viewlet = document.createElement('div');
|
|
11311
11323
|
$Viewlet.className = 'Viewlet EmptyEditor';
|