@lvce-editor/renderer-process 10.11.0 → 10.12.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 +68 -54
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -2318,7 +2318,7 @@ const attachEvents$b = state => {
|
|
|
2318
2318
|
// TODO show should be passed active cursor position
|
|
2319
2319
|
// this would make this function easier to test as it would avoid dependency on globals of other files
|
|
2320
2320
|
|
|
2321
|
-
const setDom$
|
|
2321
|
+
const setDom$c = (state, dom) => {
|
|
2322
2322
|
const {
|
|
2323
2323
|
$ListItems,
|
|
2324
2324
|
$Viewlet
|
|
@@ -2365,7 +2365,7 @@ const ViewletEditorCompletion = {
|
|
|
2365
2365
|
handleError: handleError$8,
|
|
2366
2366
|
setBounds: setBounds$7,
|
|
2367
2367
|
setContentHeight,
|
|
2368
|
-
setDom: setDom$
|
|
2368
|
+
setDom: setDom$c,
|
|
2369
2369
|
setNegativeMargin,
|
|
2370
2370
|
setScrollBar: setScrollBar$2,
|
|
2371
2371
|
setSize,
|
|
@@ -2394,7 +2394,7 @@ const create$I = () => {
|
|
|
2394
2394
|
const attachEvents$a = state => {
|
|
2395
2395
|
// TODO
|
|
2396
2396
|
};
|
|
2397
|
-
const setDom$
|
|
2397
|
+
const setDom$b = (state, dom) => {
|
|
2398
2398
|
const {
|
|
2399
2399
|
$Viewlet
|
|
2400
2400
|
} = state;
|
|
@@ -2403,7 +2403,7 @@ 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;
|
|
@@ -2422,12 +2422,12 @@ 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
2428
|
dispose: dispose$j,
|
|
2429
2429
|
setBounds: setBounds$6,
|
|
2430
|
-
setDom: setDom$
|
|
2430
|
+
setDom: setDom$b
|
|
2431
2431
|
};
|
|
2432
2432
|
|
|
2433
2433
|
const rememberFocus = rememberFocus$1;
|
|
@@ -2466,13 +2466,13 @@ 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;
|
|
2473
2473
|
append$1($Viewlet);
|
|
2474
2474
|
};
|
|
2475
|
-
const setDom$
|
|
2475
|
+
const setDom$a = (state, dom) => {
|
|
2476
2476
|
const {
|
|
2477
2477
|
$Viewlet
|
|
2478
2478
|
} = state;
|
|
@@ -2482,9 +2482,9 @@ 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
|
-
setDom: setDom$
|
|
2487
|
+
setDom: setDom$a
|
|
2488
2488
|
};
|
|
2489
2489
|
|
|
2490
2490
|
const handleInput$7 = event => {
|
|
@@ -2606,13 +2606,13 @@ 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;
|
|
2613
2613
|
append$1($Viewlet);
|
|
2614
2614
|
};
|
|
2615
|
-
const setDom$
|
|
2615
|
+
const setDom$9 = (state, dom) => {
|
|
2616
2616
|
const {
|
|
2617
2617
|
$Viewlet
|
|
2618
2618
|
} = state;
|
|
@@ -2624,19 +2624,56 @@ const setBounds$4 = (state, x, y, width, height) => {
|
|
|
2624
2624
|
} = state;
|
|
2625
2625
|
setBounds$8($Viewlet, x, y, width, height);
|
|
2626
2626
|
};
|
|
2627
|
-
const Events$
|
|
2627
|
+
const Events$d = ViewletFindWidgetEvents;
|
|
2628
2628
|
|
|
2629
2629
|
const ViewletFindWidget = {
|
|
2630
2630
|
__proto__: null,
|
|
2631
|
-
Events: Events$
|
|
2632
|
-
appendWidget,
|
|
2631
|
+
Events: Events$d,
|
|
2632
|
+
appendWidget: appendWidget$1,
|
|
2633
2633
|
create: create$H,
|
|
2634
2634
|
focus: focus$i,
|
|
2635
2635
|
setBounds: setBounds$4,
|
|
2636
|
-
setDom: setDom$
|
|
2636
|
+
setDom: setDom$9,
|
|
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 Events$c = {
|
|
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 setDom$8 = (state, dom) => {
|
|
2664
|
+
const {
|
|
2665
|
+
$Viewlet
|
|
2666
|
+
} = state;
|
|
2667
|
+
rememberFocus($Viewlet, dom, Events$c, 0);
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
const ViewletEditorSourceActions = {
|
|
2671
|
+
__proto__: null,
|
|
2672
|
+
appendWidget,
|
|
2673
|
+
setBounds: setBounds$3,
|
|
2674
|
+
setDom: setDom$8
|
|
2675
|
+
};
|
|
2676
|
+
|
|
2640
2677
|
const ActivityBar = 'ActivityBar';
|
|
2641
2678
|
const Audio$1 = 'Audio';
|
|
2642
2679
|
const BrowserViewOverview = 'BrowserViewOverview';
|
|
@@ -3041,6 +3078,7 @@ const main = async () => {
|
|
|
3041
3078
|
state$6.modules[ColorPicker] = ViewletColorPicker;
|
|
3042
3079
|
state$6.modules[FindWidget] = ViewletFindWidget;
|
|
3043
3080
|
state$6.modules[EditorHover] = ViewletEditorHover;
|
|
3081
|
+
state$6.modules[EditorSourceActions] = ViewletEditorSourceActions;
|
|
3044
3082
|
setLoad(load$2);
|
|
3045
3083
|
// TODO this is discovered very late
|
|
3046
3084
|
await launchWorkers();
|
|
@@ -5915,7 +5953,7 @@ const sendMultiple = commands => {
|
|
|
5915
5953
|
case 'Viewlet.setBounds':
|
|
5916
5954
|
{
|
|
5917
5955
|
// @ts-expect-error
|
|
5918
|
-
setBounds$
|
|
5956
|
+
setBounds$2(viewletId, method, ...args);
|
|
5919
5957
|
break;
|
|
5920
5958
|
}
|
|
5921
5959
|
case 'Viewlet.create':
|
|
@@ -6125,7 +6163,7 @@ const getFn = command => {
|
|
|
6125
6163
|
case 'Viewlet.setDom2':
|
|
6126
6164
|
return setDom2;
|
|
6127
6165
|
case 'Viewlet.setBounds':
|
|
6128
|
-
return setBounds$
|
|
6166
|
+
return setBounds$2;
|
|
6129
6167
|
case 'Viewlet.ariaAnnounce':
|
|
6130
6168
|
return ariaAnnounce;
|
|
6131
6169
|
case 'Viewlet.append':
|
|
@@ -6165,7 +6203,7 @@ const show = id => {
|
|
|
6165
6203
|
instance.factory.focus(instance.state);
|
|
6166
6204
|
}
|
|
6167
6205
|
};
|
|
6168
|
-
const setBounds$
|
|
6206
|
+
const setBounds$2 = (id, left, top, width, height) => {
|
|
6169
6207
|
const instance = state$6.instances[id];
|
|
6170
6208
|
if (!instance) {
|
|
6171
6209
|
return;
|
|
@@ -6189,7 +6227,7 @@ const Commands$9 = {
|
|
|
6189
6227
|
removeKeyBindings: removeKeyBindings,
|
|
6190
6228
|
send: invoke,
|
|
6191
6229
|
sendMultiple: sendMultiple,
|
|
6192
|
-
setBounds: setBounds$
|
|
6230
|
+
setBounds: setBounds$2,
|
|
6193
6231
|
show: show
|
|
6194
6232
|
};
|
|
6195
6233
|
|
|
@@ -6915,7 +6953,7 @@ const setDom$4 = (state, dom) => {
|
|
|
6915
6953
|
} = state;
|
|
6916
6954
|
renderInto($Viewlet, dom);
|
|
6917
6955
|
};
|
|
6918
|
-
const setBounds$
|
|
6956
|
+
const setBounds$1 = (state, x, y, width, height) => {
|
|
6919
6957
|
const {
|
|
6920
6958
|
$Viewlet
|
|
6921
6959
|
} = state;
|
|
@@ -6925,7 +6963,7 @@ const setBounds$2 = (state, x, y, width, height) => {
|
|
|
6925
6963
|
const ViewletEditorError = {
|
|
6926
6964
|
__proto__: null,
|
|
6927
6965
|
create: create$o,
|
|
6928
|
-
setBounds: setBounds$
|
|
6966
|
+
setBounds: setBounds$1,
|
|
6929
6967
|
setDom: setDom$4
|
|
6930
6968
|
};
|
|
6931
6969
|
|
|
@@ -7715,7 +7753,7 @@ const setMessage$2 = (state, message) => {
|
|
|
7715
7753
|
$Viewlet.textContent = message;
|
|
7716
7754
|
append$1($Viewlet);
|
|
7717
7755
|
};
|
|
7718
|
-
const setBounds
|
|
7756
|
+
const setBounds = (state, x, y, width, height) => {
|
|
7719
7757
|
const {
|
|
7720
7758
|
$Viewlet
|
|
7721
7759
|
} = state;
|
|
@@ -7725,7 +7763,7 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
7725
7763
|
const ViewletEditorWidgetError = {
|
|
7726
7764
|
__proto__: null,
|
|
7727
7765
|
create: create$j,
|
|
7728
|
-
setBounds
|
|
7766
|
+
setBounds,
|
|
7729
7767
|
setMessage: setMessage$2
|
|
7730
7768
|
};
|
|
7731
7769
|
|
|
@@ -10922,7 +10960,7 @@ const handleMenuClick = event => {
|
|
|
10922
10960
|
const uid = fromEvent(event);
|
|
10923
10961
|
handleMenuClick$1(uid, level, index);
|
|
10924
10962
|
};
|
|
10925
|
-
const handleFocusIn$
|
|
10963
|
+
const handleFocusIn$1 = event => {
|
|
10926
10964
|
const uid = fromEvent(event);
|
|
10927
10965
|
handleFocus$c(uid);
|
|
10928
10966
|
};
|
|
@@ -10930,7 +10968,7 @@ const handleFocusIn$2 = event => {
|
|
|
10930
10968
|
const ViewletTitleBarMenuBarEvents = {
|
|
10931
10969
|
__proto__: null,
|
|
10932
10970
|
handleClick,
|
|
10933
|
-
handleFocusIn: handleFocusIn$
|
|
10971
|
+
handleFocusIn: handleFocusIn$1,
|
|
10934
10972
|
handleFocusOut,
|
|
10935
10973
|
handleMenuClick,
|
|
10936
10974
|
handleMenuMouseOver,
|
|
@@ -11243,7 +11281,7 @@ const handleClickClose = event => {
|
|
|
11243
11281
|
const handleClickCopy = event => {
|
|
11244
11282
|
return ['handleClickCopy'];
|
|
11245
11283
|
};
|
|
11246
|
-
const handleFocusIn
|
|
11284
|
+
const handleFocusIn = event => {
|
|
11247
11285
|
return ['handleFocusIn'];
|
|
11248
11286
|
};
|
|
11249
11287
|
const handleContextMenu$3 = event => {
|
|
@@ -11258,7 +11296,7 @@ const ViewletAboutEvents = {
|
|
|
11258
11296
|
handleClickCopy,
|
|
11259
11297
|
handleClickOk,
|
|
11260
11298
|
handleContextMenu: handleContextMenu$3,
|
|
11261
|
-
handleFocusIn
|
|
11299
|
+
handleFocusIn,
|
|
11262
11300
|
returnValue: returnValue$3
|
|
11263
11301
|
};
|
|
11264
11302
|
|
|
@@ -11282,30 +11320,6 @@ const ViewletAbout = {
|
|
|
11282
11320
|
setFocused
|
|
11283
11321
|
};
|
|
11284
11322
|
|
|
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
11323
|
const create = () => {
|
|
11310
11324
|
const $Viewlet = document.createElement('div');
|
|
11311
11325
|
$Viewlet.className = 'Viewlet EmptyEditor';
|