@lvce-editor/renderer-process 10.55.0 → 10.57.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 +174 -250
- package/package.json +1 -1
|
@@ -205,6 +205,9 @@ const getModuleId = commandId => {
|
|
|
205
205
|
case 'HandleMessagePort.handleMessagePort':
|
|
206
206
|
return HandleMessagePort;
|
|
207
207
|
case 'WebView.create':
|
|
208
|
+
case 'WebView.load':
|
|
209
|
+
case 'WebView.loadOnly':
|
|
210
|
+
case 'WebView.appendOnly':
|
|
208
211
|
case 'WebView.setPort':
|
|
209
212
|
case 'WebView.dispose':
|
|
210
213
|
return WebView$1;
|
|
@@ -951,7 +954,7 @@ const hydrate$4 = async () => {
|
|
|
951
954
|
};
|
|
952
955
|
|
|
953
956
|
// TODO needed?
|
|
954
|
-
const dispose$
|
|
957
|
+
const dispose$n = () => {
|
|
955
958
|
// @ts-expect-error
|
|
956
959
|
if (state$9.rendererWorker) {
|
|
957
960
|
// @ts-expect-error
|
|
@@ -974,7 +977,7 @@ const invokeAndTransfer = (method, ...params) => {
|
|
|
974
977
|
|
|
975
978
|
const RendererWorker = {
|
|
976
979
|
__proto__: null,
|
|
977
|
-
dispose: dispose$
|
|
980
|
+
dispose: dispose$n,
|
|
978
981
|
hydrate: hydrate$4,
|
|
979
982
|
invoke: invoke$1,
|
|
980
983
|
invokeAndTransfer,
|
|
@@ -1192,7 +1195,7 @@ var Footer = "footer";
|
|
|
1192
1195
|
var Header = "header";
|
|
1193
1196
|
var Nav = "nav";
|
|
1194
1197
|
var Section = "section";
|
|
1195
|
-
var Search
|
|
1198
|
+
var Search = "search";
|
|
1196
1199
|
var Dd = "dd";
|
|
1197
1200
|
var Dl = "dl";
|
|
1198
1201
|
var Figcaption = "figcaption";
|
|
@@ -1334,7 +1337,7 @@ var getElementTag = type => {
|
|
|
1334
1337
|
case Section2:
|
|
1335
1338
|
return Section;
|
|
1336
1339
|
case Search2:
|
|
1337
|
-
return Search
|
|
1340
|
+
return Search;
|
|
1338
1341
|
case Dd2:
|
|
1339
1342
|
return Dd;
|
|
1340
1343
|
case Dl2:
|
|
@@ -2065,12 +2068,12 @@ const handlePointerDown$7 = event => {
|
|
|
2065
2068
|
}
|
|
2066
2069
|
return [];
|
|
2067
2070
|
};
|
|
2068
|
-
const returnValue$
|
|
2071
|
+
const returnValue$9 = true;
|
|
2069
2072
|
|
|
2070
2073
|
const ViewletColorPickerEvents = {
|
|
2071
2074
|
__proto__: null,
|
|
2072
2075
|
handlePointerDown: handlePointerDown$7,
|
|
2073
|
-
returnValue: returnValue$
|
|
2076
|
+
returnValue: returnValue$9
|
|
2074
2077
|
};
|
|
2075
2078
|
|
|
2076
2079
|
const setColor = (state, color) => {
|
|
@@ -2239,7 +2242,7 @@ const handleClickSize$1 = forwardViewletCommand('handleClickSize');
|
|
|
2239
2242
|
const handleClickDisable$1 = forwardViewletCommand('handleClickDisable');
|
|
2240
2243
|
const handleClickUninstall$1 = forwardViewletCommand('handleClickUninstall');
|
|
2241
2244
|
forwardViewletCommand('handleFilterInput');
|
|
2242
|
-
const handleFocus$
|
|
2245
|
+
const handleFocus$b = forwardViewletCommand('handleFocus');
|
|
2243
2246
|
const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
|
|
2244
2247
|
const handleIconError$1 = forwardViewletCommand('handleIconError');
|
|
2245
2248
|
const handleImageError$1 = forwardViewletCommand('handleImageError');
|
|
@@ -2266,8 +2269,8 @@ const handleScrollBarCaptureLost = forwardViewletCommand('handleScrollBarCapture
|
|
|
2266
2269
|
const handleScrollBarClick = forwardViewletCommand('handleScrollBarClick');
|
|
2267
2270
|
forwardViewletCommand('handleScrollBarHorizontalMove');
|
|
2268
2271
|
forwardViewletCommand('handleScrollBarHorizontalPointerDown');
|
|
2269
|
-
|
|
2270
|
-
const handleScrollBarThumbPointerMove$
|
|
2272
|
+
forwardViewletCommand('handleScrollBarMove');
|
|
2273
|
+
const handleScrollBarThumbPointerMove$2 = forwardViewletCommand('handleScrollBarThumbPointerMove');
|
|
2271
2274
|
forwardViewletCommand('handleScrollBarMove');
|
|
2272
2275
|
forwardViewletCommand('handleScrollBarVerticalPointerDown');
|
|
2273
2276
|
forwardViewletCommand('handleSliderPointerDown');
|
|
@@ -2330,10 +2333,10 @@ const appendWidget$5 = state => {
|
|
|
2330
2333
|
} = state;
|
|
2331
2334
|
append$1($Viewlet);
|
|
2332
2335
|
};
|
|
2333
|
-
const dispose$
|
|
2336
|
+
const dispose$m = state => {
|
|
2334
2337
|
remove$2(state.$Viewlet);
|
|
2335
2338
|
};
|
|
2336
|
-
const focus$
|
|
2339
|
+
const focus$i = (state, key, source) => {
|
|
2337
2340
|
if (!key) {
|
|
2338
2341
|
return;
|
|
2339
2342
|
}
|
|
@@ -2356,8 +2359,8 @@ const ViewletEditorCodeGenerator = {
|
|
|
2356
2359
|
__proto__: null,
|
|
2357
2360
|
Events: ViewletEditorCodeGeneratorEvents,
|
|
2358
2361
|
appendWidget: appendWidget$5,
|
|
2359
|
-
dispose: dispose$
|
|
2360
|
-
focus: focus$
|
|
2362
|
+
dispose: dispose$m,
|
|
2363
|
+
focus: focus$i,
|
|
2361
2364
|
setBounds: setBounds$9
|
|
2362
2365
|
};
|
|
2363
2366
|
|
|
@@ -2418,28 +2421,28 @@ const handleMousedown = event => {
|
|
|
2418
2421
|
const uid = fromEvent(event);
|
|
2419
2422
|
handleClickAt$3(uid, clientX, clientY);
|
|
2420
2423
|
};
|
|
2421
|
-
const handleScrollBarThumbPointerMove$
|
|
2424
|
+
const handleScrollBarThumbPointerMove$1 = event => {
|
|
2422
2425
|
const {
|
|
2423
2426
|
clientY
|
|
2424
2427
|
} = event;
|
|
2425
2428
|
const uid = fromEvent(event);
|
|
2426
|
-
handleScrollBarThumbPointerMove$
|
|
2429
|
+
handleScrollBarThumbPointerMove$2(uid, clientY);
|
|
2427
2430
|
};
|
|
2428
2431
|
const handlePointerCaptureLost$2 = event => {
|
|
2429
2432
|
const {
|
|
2430
2433
|
target,
|
|
2431
2434
|
pointerId
|
|
2432
2435
|
} = event;
|
|
2433
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$
|
|
2436
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handlePointerCaptureLost$2);
|
|
2434
2437
|
};
|
|
2435
|
-
const handleScrollBarPointerDown$
|
|
2438
|
+
const handleScrollBarPointerDown$3 = event => {
|
|
2436
2439
|
preventDefault(event);
|
|
2437
2440
|
const {
|
|
2438
2441
|
target,
|
|
2439
2442
|
pointerId,
|
|
2440
2443
|
clientY
|
|
2441
2444
|
} = event;
|
|
2442
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove$
|
|
2445
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handlePointerCaptureLost$2);
|
|
2443
2446
|
const uid = fromEvent(event);
|
|
2444
2447
|
handleScrollBarClick(uid, clientY);
|
|
2445
2448
|
};
|
|
@@ -2544,7 +2547,7 @@ const attachEvents$b = state => {
|
|
|
2544
2547
|
[MouseDown]: handleMousedown
|
|
2545
2548
|
});
|
|
2546
2549
|
attachEvents$c($ScrollBar, {
|
|
2547
|
-
[PointerDown]: handleScrollBarPointerDown$
|
|
2550
|
+
[PointerDown]: handleScrollBarPointerDown$3
|
|
2548
2551
|
});
|
|
2549
2552
|
};
|
|
2550
2553
|
// TODO show should be passed active cursor position
|
|
@@ -2562,7 +2565,7 @@ const setDom$a = (state, dom) => {
|
|
|
2562
2565
|
// TODO recycle nodes
|
|
2563
2566
|
// TODO set right aria attributes on $EditorInput
|
|
2564
2567
|
};
|
|
2565
|
-
const dispose$
|
|
2568
|
+
const dispose$l = state => {
|
|
2566
2569
|
remove$2(state.$Viewlet);
|
|
2567
2570
|
// state.$EditorInput.removeAttribute('aria-activedescendant')
|
|
2568
2571
|
};
|
|
@@ -2594,7 +2597,7 @@ const ViewletEditorCompletion = {
|
|
|
2594
2597
|
__proto__: null,
|
|
2595
2598
|
attachEvents: attachEvents$b,
|
|
2596
2599
|
create: create$J,
|
|
2597
|
-
dispose: dispose$
|
|
2600
|
+
dispose: dispose$l,
|
|
2598
2601
|
handleError: handleError$8,
|
|
2599
2602
|
setBounds: setBounds$8,
|
|
2600
2603
|
setContentHeight,
|
|
@@ -2608,12 +2611,12 @@ const ViewletEditorCompletion = {
|
|
|
2608
2611
|
const handleClose = () => {
|
|
2609
2612
|
return ['closeDetails'];
|
|
2610
2613
|
};
|
|
2611
|
-
const returnValue$
|
|
2614
|
+
const returnValue$8 = true;
|
|
2612
2615
|
|
|
2613
2616
|
const ViewletEditorCompletionDetailsEvents = {
|
|
2614
2617
|
__proto__: null,
|
|
2615
2618
|
handleClose,
|
|
2616
|
-
returnValue: returnValue$
|
|
2619
|
+
returnValue: returnValue$8
|
|
2617
2620
|
};
|
|
2618
2621
|
|
|
2619
2622
|
const create$I = () => {
|
|
@@ -2642,7 +2645,7 @@ const appendWidget$4 = state => {
|
|
|
2642
2645
|
} = state;
|
|
2643
2646
|
append$1($Viewlet);
|
|
2644
2647
|
};
|
|
2645
|
-
const dispose$
|
|
2648
|
+
const dispose$k = state => {
|
|
2646
2649
|
remove$2(state.$Viewlet);
|
|
2647
2650
|
};
|
|
2648
2651
|
const setBounds$7 = (state, x, y, width, height) => {
|
|
@@ -2658,14 +2661,14 @@ const ViewletEditorCompletionDetails = {
|
|
|
2658
2661
|
appendWidget: appendWidget$4,
|
|
2659
2662
|
attachEvents: attachEvents$a,
|
|
2660
2663
|
create: create$I,
|
|
2661
|
-
dispose: dispose$
|
|
2664
|
+
dispose: dispose$k,
|
|
2662
2665
|
setBounds: setBounds$7,
|
|
2663
2666
|
setDom: setDom$9
|
|
2664
2667
|
};
|
|
2665
2668
|
|
|
2666
2669
|
const rememberFocus = rememberFocus$1;
|
|
2667
2670
|
|
|
2668
|
-
const returnValue$
|
|
2671
|
+
const returnValue$7 = true;
|
|
2669
2672
|
const handleSashPointerDown$2 = create$K(event => {
|
|
2670
2673
|
const {
|
|
2671
2674
|
clientX,
|
|
@@ -2689,7 +2692,7 @@ const handleSashPointerDown$2 = create$K(event => {
|
|
|
2689
2692
|
const ViewletEditorHoverEvents = {
|
|
2690
2693
|
__proto__: null,
|
|
2691
2694
|
handleSashPointerDown: handleSashPointerDown$2,
|
|
2692
|
-
returnValue: returnValue$
|
|
2695
|
+
returnValue: returnValue$7
|
|
2693
2696
|
};
|
|
2694
2697
|
|
|
2695
2698
|
const setBounds$6 = (state, x, y, width, height) => {
|
|
@@ -2760,7 +2763,7 @@ const appendWidget$2 = state => {
|
|
|
2760
2763
|
} = state;
|
|
2761
2764
|
append$1($Viewlet);
|
|
2762
2765
|
};
|
|
2763
|
-
const dispose$
|
|
2766
|
+
const dispose$j = state => {
|
|
2764
2767
|
remove$2(state.$Viewlet);
|
|
2765
2768
|
};
|
|
2766
2769
|
|
|
@@ -2768,7 +2771,7 @@ const ViewletEditorRename = {
|
|
|
2768
2771
|
__proto__: null,
|
|
2769
2772
|
Events: ViewletEditorRenameEvents,
|
|
2770
2773
|
appendWidget: appendWidget$2,
|
|
2771
|
-
dispose: dispose$
|
|
2774
|
+
dispose: dispose$j,
|
|
2772
2775
|
setBounds: setBounds$5
|
|
2773
2776
|
};
|
|
2774
2777
|
|
|
@@ -2796,7 +2799,7 @@ const appendWidget$1 = state => {
|
|
|
2796
2799
|
} = state;
|
|
2797
2800
|
append$1($Viewlet);
|
|
2798
2801
|
};
|
|
2799
|
-
const dispose$
|
|
2802
|
+
const dispose$i = state => {
|
|
2800
2803
|
remove$2(state.$Viewlet);
|
|
2801
2804
|
};
|
|
2802
2805
|
|
|
@@ -2804,7 +2807,7 @@ const ViewletEditorSourceActions = {
|
|
|
2804
2807
|
__proto__: null,
|
|
2805
2808
|
Events: ViewletEditorSourceActionsEvents,
|
|
2806
2809
|
appendWidget: appendWidget$1,
|
|
2807
|
-
dispose: dispose$
|
|
2810
|
+
dispose: dispose$i,
|
|
2808
2811
|
setBounds: setBounds$4
|
|
2809
2812
|
};
|
|
2810
2813
|
|
|
@@ -2856,7 +2859,7 @@ const handleReplaceInput = event => {
|
|
|
2856
2859
|
const handleReplaceFocus = event => {
|
|
2857
2860
|
return ['FindWidget.handleReplaceFocus'];
|
|
2858
2861
|
};
|
|
2859
|
-
const handleFocus$
|
|
2862
|
+
const handleFocus$a = event => {
|
|
2860
2863
|
return ['FindWidget.handleFocus'];
|
|
2861
2864
|
};
|
|
2862
2865
|
const handleToggleReplaceFocus = event => {
|
|
@@ -2874,7 +2877,7 @@ const handleFocusClose = event => {
|
|
|
2874
2877
|
const handleFocusReplaceAll = event => {
|
|
2875
2878
|
return ['FindWidget.handleFocusReplaceAll'];
|
|
2876
2879
|
};
|
|
2877
|
-
const returnValue$
|
|
2880
|
+
const returnValue$6 = true;
|
|
2878
2881
|
|
|
2879
2882
|
const ViewletFindWidgetEvents = {
|
|
2880
2883
|
__proto__: null,
|
|
@@ -2884,7 +2887,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2884
2887
|
handleClickReplace,
|
|
2885
2888
|
handleClickReplaceAll,
|
|
2886
2889
|
handleClickToggleReplace,
|
|
2887
|
-
handleFocus: handleFocus$
|
|
2890
|
+
handleFocus: handleFocus$a,
|
|
2888
2891
|
handleFocusClose,
|
|
2889
2892
|
handleFocusNext,
|
|
2890
2893
|
handleFocusPrevious,
|
|
@@ -2894,7 +2897,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2894
2897
|
handleReplaceFocus,
|
|
2895
2898
|
handleReplaceInput,
|
|
2896
2899
|
handleToggleReplaceFocus,
|
|
2897
|
-
returnValue: returnValue$
|
|
2900
|
+
returnValue: returnValue$6
|
|
2898
2901
|
};
|
|
2899
2902
|
|
|
2900
2903
|
const create$H = () => {
|
|
@@ -2905,7 +2908,7 @@ const create$H = () => {
|
|
|
2905
2908
|
$Viewlet
|
|
2906
2909
|
};
|
|
2907
2910
|
};
|
|
2908
|
-
const focus$
|
|
2911
|
+
const focus$h = (state, key, source) => {
|
|
2909
2912
|
if (!key) {
|
|
2910
2913
|
return;
|
|
2911
2914
|
}
|
|
@@ -2923,7 +2926,7 @@ const focus$i = (state, key, source) => {
|
|
|
2923
2926
|
$Element.focus();
|
|
2924
2927
|
applyUidWorkaround($Viewlet);
|
|
2925
2928
|
};
|
|
2926
|
-
const setValue$
|
|
2929
|
+
const setValue$3 = (state, value) => {
|
|
2927
2930
|
const {
|
|
2928
2931
|
$Viewlet
|
|
2929
2932
|
} = state;
|
|
@@ -2951,21 +2954,21 @@ const setBounds$3 = (state, x, y, width, height) => {
|
|
|
2951
2954
|
} = state;
|
|
2952
2955
|
setBounds$a($Viewlet, x, y, width, height);
|
|
2953
2956
|
};
|
|
2954
|
-
const dispose$
|
|
2957
|
+
const dispose$h = state => {
|
|
2955
2958
|
remove$2(state.$Viewlet);
|
|
2956
2959
|
};
|
|
2957
|
-
const Events$
|
|
2960
|
+
const Events$b = ViewletFindWidgetEvents;
|
|
2958
2961
|
|
|
2959
2962
|
const ViewletFindWidget = {
|
|
2960
2963
|
__proto__: null,
|
|
2961
|
-
Events: Events$
|
|
2964
|
+
Events: Events$b,
|
|
2962
2965
|
appendWidget,
|
|
2963
2966
|
create: create$H,
|
|
2964
|
-
dispose: dispose$
|
|
2965
|
-
focus: focus$
|
|
2967
|
+
dispose: dispose$h,
|
|
2968
|
+
focus: focus$h,
|
|
2966
2969
|
setBounds: setBounds$3,
|
|
2967
2970
|
setDom: setDom$7,
|
|
2968
|
-
setValue: setValue$
|
|
2971
|
+
setValue: setValue$3
|
|
2969
2972
|
};
|
|
2970
2973
|
|
|
2971
2974
|
const ActivityBar = 'ActivityBar';
|
|
@@ -3005,7 +3008,6 @@ const QuickPick = 'QuickPick';
|
|
|
3005
3008
|
const References = 'References';
|
|
3006
3009
|
const RunAndDebug = 'Run And Debug';
|
|
3007
3010
|
const ScreenCapture = 'ScreenCapture';
|
|
3008
|
-
const Search = 'Search';
|
|
3009
3011
|
const SideBar$1 = 'SideBar';
|
|
3010
3012
|
const SimpleBrowser = 'SimpleBrowser';
|
|
3011
3013
|
const SourceControl = 'Source Control';
|
|
@@ -4507,14 +4509,14 @@ const create$A = (uri, top, left) => {
|
|
|
4507
4509
|
const update = (state, uri) => {
|
|
4508
4510
|
state.$ImagePreviewImage.uri = uri;
|
|
4509
4511
|
};
|
|
4510
|
-
const dispose$
|
|
4512
|
+
const dispose$g = state => {
|
|
4511
4513
|
remove$2(state.$ImagePreview);
|
|
4512
4514
|
};
|
|
4513
4515
|
|
|
4514
4516
|
const ImagePreview = {
|
|
4515
4517
|
__proto__: null,
|
|
4516
4518
|
create: create$A,
|
|
4517
|
-
dispose: dispose$
|
|
4519
|
+
dispose: dispose$g,
|
|
4518
4520
|
showError,
|
|
4519
4521
|
update
|
|
4520
4522
|
};
|
|
@@ -4522,7 +4524,7 @@ const ImagePreview = {
|
|
|
4522
4524
|
const name$p = 'ImagePreview';
|
|
4523
4525
|
const Commands$q = {
|
|
4524
4526
|
create: create$A,
|
|
4525
|
-
dispose: dispose$
|
|
4527
|
+
dispose: dispose$g,
|
|
4526
4528
|
showError: showError,
|
|
4527
4529
|
update: update
|
|
4528
4530
|
};
|
|
@@ -4764,7 +4766,7 @@ const createWithOptions = (type, message, options) => {
|
|
|
4764
4766
|
const $Notification = create$NotificationWithOptions(message, options);
|
|
4765
4767
|
append$1($Notification);
|
|
4766
4768
|
};
|
|
4767
|
-
const dispose$
|
|
4769
|
+
const dispose$f = id => {
|
|
4768
4770
|
// const $Notification = state.$Notifications
|
|
4769
4771
|
};
|
|
4770
4772
|
|
|
@@ -4774,7 +4776,7 @@ const name$h = 'Notification';
|
|
|
4774
4776
|
const Commands$i = {
|
|
4775
4777
|
create: create$z,
|
|
4776
4778
|
createWithOptions: createWithOptions,
|
|
4777
|
-
dispose: dispose$
|
|
4779
|
+
dispose: dispose$f
|
|
4778
4780
|
};
|
|
4779
4781
|
|
|
4780
4782
|
const Notification_ipc = {
|
|
@@ -4854,7 +4856,7 @@ const getElement = () => {
|
|
|
4854
4856
|
return state$2.$PreviousFocusElement;
|
|
4855
4857
|
};
|
|
4856
4858
|
|
|
4857
|
-
const focus$
|
|
4859
|
+
const focus$g = $Element => {
|
|
4858
4860
|
if ($Element === document.activeElement) {
|
|
4859
4861
|
return;
|
|
4860
4862
|
}
|
|
@@ -4876,7 +4878,6 @@ const FocusExplorerEditBox = 14;
|
|
|
4876
4878
|
const FocusLocationList = 17;
|
|
4877
4879
|
const FocusMenu = 18;
|
|
4878
4880
|
const FocusQuickPickInput = 20;
|
|
4879
|
-
const FocusSearchInput = 21;
|
|
4880
4881
|
const FocusSimpleBrowserInput = 23;
|
|
4881
4882
|
const FocusOutput = 28;
|
|
4882
4883
|
|
|
@@ -5066,7 +5067,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
|
|
|
5066
5067
|
state$1.$$Menus.push($Menu);
|
|
5067
5068
|
append$1($Menu);
|
|
5068
5069
|
if (level === 0) {
|
|
5069
|
-
focus$
|
|
5070
|
+
focus$g($Menu);
|
|
5070
5071
|
send('Focus.setFocus', FocusMenu);
|
|
5071
5072
|
}
|
|
5072
5073
|
};
|
|
@@ -5265,7 +5266,7 @@ const start = async (id, options) => {
|
|
|
5265
5266
|
throw new VError$1(error, `Failed to start screen capture`);
|
|
5266
5267
|
}
|
|
5267
5268
|
};
|
|
5268
|
-
const dispose$
|
|
5269
|
+
const dispose$e = async (id, options) => {
|
|
5269
5270
|
try {
|
|
5270
5271
|
number(id);
|
|
5271
5272
|
const captureStream = get$2(id);
|
|
@@ -5280,7 +5281,7 @@ const dispose$f = async (id, options) => {
|
|
|
5280
5281
|
|
|
5281
5282
|
const name$b = 'ScreenCapture';
|
|
5282
5283
|
const Commands$c = {
|
|
5283
|
-
dispose: dispose$
|
|
5284
|
+
dispose: dispose$e,
|
|
5284
5285
|
start: start
|
|
5285
5286
|
};
|
|
5286
5287
|
|
|
@@ -5970,8 +5971,6 @@ const load$1 = moduleId => {
|
|
|
5970
5971
|
return Promise.resolve().then(function () { return ViewletRunAndDebug; });
|
|
5971
5972
|
case ScreenCapture:
|
|
5972
5973
|
return Promise.resolve().then(function () { return ViewletScreenCapture; });
|
|
5973
|
-
case Search:
|
|
5974
|
-
return Promise.resolve().then(function () { return ViewletSearch; });
|
|
5975
5974
|
case SideBar$1:
|
|
5976
5975
|
return Promise.resolve().then(function () { return ViewletSideBar; });
|
|
5977
5976
|
case SimpleBrowser:
|
|
@@ -6089,7 +6088,7 @@ const invoke = (viewletId, method, ...args) => {
|
|
|
6089
6088
|
}
|
|
6090
6089
|
return instance.factory[method](instance.state, ...args);
|
|
6091
6090
|
};
|
|
6092
|
-
const focus$
|
|
6091
|
+
const focus$f = viewletId => {
|
|
6093
6092
|
const instance = state$6.instances[viewletId];
|
|
6094
6093
|
if (instance.factory?.setFocused) {
|
|
6095
6094
|
instance.factory.setFocused(instance.state, true);
|
|
@@ -6261,7 +6260,7 @@ const sendMultiple = commands => {
|
|
|
6261
6260
|
}
|
|
6262
6261
|
case 'Viewlet.dispose':
|
|
6263
6262
|
{
|
|
6264
|
-
dispose$
|
|
6263
|
+
dispose$d(viewletId);
|
|
6265
6264
|
break;
|
|
6266
6265
|
}
|
|
6267
6266
|
case 'Viewlet.setPatches':
|
|
@@ -6284,7 +6283,7 @@ const sendMultiple = commands => {
|
|
|
6284
6283
|
}
|
|
6285
6284
|
case 'Viewlet.focus':
|
|
6286
6285
|
{
|
|
6287
|
-
focus$
|
|
6286
|
+
focus$f(viewletId);
|
|
6288
6287
|
break;
|
|
6289
6288
|
}
|
|
6290
6289
|
case 'Viewlet.appendViewlet':
|
|
@@ -6331,7 +6330,7 @@ const sendMultiple = commands => {
|
|
|
6331
6330
|
}
|
|
6332
6331
|
}
|
|
6333
6332
|
};
|
|
6334
|
-
const dispose$
|
|
6333
|
+
const dispose$d = id => {
|
|
6335
6334
|
try {
|
|
6336
6335
|
number(id);
|
|
6337
6336
|
const {
|
|
@@ -6462,7 +6461,7 @@ const getFn = command => {
|
|
|
6462
6461
|
case 'Viewlet.show':
|
|
6463
6462
|
return show;
|
|
6464
6463
|
case 'Viewlet.dispose':
|
|
6465
|
-
return dispose$
|
|
6464
|
+
return dispose$d;
|
|
6466
6465
|
case 'Viewlet.setDom2':
|
|
6467
6466
|
return setDom2;
|
|
6468
6467
|
case 'Viewlet.setBounds':
|
|
@@ -6476,7 +6475,7 @@ const getFn = command => {
|
|
|
6476
6475
|
case 'Viewlet.createPlaceholder':
|
|
6477
6476
|
return createPlaceholder;
|
|
6478
6477
|
case 'Viewlet.focus':
|
|
6479
|
-
return focus$
|
|
6478
|
+
return focus$f;
|
|
6480
6479
|
case 'Viewlet.appendViewlet':
|
|
6481
6480
|
return appendViewlet;
|
|
6482
6481
|
case 'Viewlet.addKeyBindings':
|
|
@@ -6528,9 +6527,9 @@ const name$8 = 'Viewlet';
|
|
|
6528
6527
|
const Commands$9 = {
|
|
6529
6528
|
addKeyBindings: addKeyBindings,
|
|
6530
6529
|
appendViewlet: appendViewlet,
|
|
6531
|
-
dispose: dispose$
|
|
6530
|
+
dispose: dispose$d,
|
|
6532
6531
|
executeCommands: executeCommands,
|
|
6533
|
-
focus: focus$
|
|
6532
|
+
focus: focus$f,
|
|
6534
6533
|
focusElementByName: focusElementByName,
|
|
6535
6534
|
focusSelector: focusSelector,
|
|
6536
6535
|
handleError: handleError$6,
|
|
@@ -6842,6 +6841,20 @@ const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy
|
|
|
6842
6841
|
set$2(uid, $Iframe);
|
|
6843
6842
|
// TODO make make waitForFrameToLoad a separate command
|
|
6844
6843
|
};
|
|
6844
|
+
const loadOnly = async uid => {
|
|
6845
|
+
const $Iframe = get(uid);
|
|
6846
|
+
const promise = waitForFrameToLoad($Iframe);
|
|
6847
|
+
await promise;
|
|
6848
|
+
};
|
|
6849
|
+
const appendOnly = async uid => {
|
|
6850
|
+
const $Iframe = get(uid);
|
|
6851
|
+
const parent = document.getElementById('Workbench');
|
|
6852
|
+
parent.append($Iframe);
|
|
6853
|
+
};
|
|
6854
|
+
|
|
6855
|
+
/**
|
|
6856
|
+
* @deprecated use loadOnly and appendOnly instead
|
|
6857
|
+
*/
|
|
6845
6858
|
const load = async uid => {
|
|
6846
6859
|
const $Iframe = get(uid);
|
|
6847
6860
|
const promise = waitForFrameToLoad($Iframe);
|
|
@@ -6866,7 +6879,7 @@ const setPort$2 = (uid, port, origin, portType) => {
|
|
|
6866
6879
|
params: [port, portType]
|
|
6867
6880
|
}, origin, [port]);
|
|
6868
6881
|
};
|
|
6869
|
-
const dispose$
|
|
6882
|
+
const dispose$c = uid => {
|
|
6870
6883
|
const $Iframe = get(uid);
|
|
6871
6884
|
$Iframe.remove();
|
|
6872
6885
|
remove(uid);
|
|
@@ -6876,8 +6889,10 @@ const name = 'WebView';
|
|
|
6876
6889
|
const Commands$1 = {
|
|
6877
6890
|
create: create$w,
|
|
6878
6891
|
load: load,
|
|
6892
|
+
loadOnly: loadOnly,
|
|
6893
|
+
appendOnly: appendOnly,
|
|
6879
6894
|
setPort: setPort$2,
|
|
6880
|
-
dispose: dispose$
|
|
6895
|
+
dispose: dispose$c
|
|
6881
6896
|
};
|
|
6882
6897
|
|
|
6883
6898
|
const WebView_ipc = {
|
|
@@ -6922,7 +6937,7 @@ const handleMouseDown$2 = event => {
|
|
|
6922
6937
|
const handleBlur$8 = () => {
|
|
6923
6938
|
return ['handleBlur'];
|
|
6924
6939
|
};
|
|
6925
|
-
const handleFocus$
|
|
6940
|
+
const handleFocus$9 = () => {
|
|
6926
6941
|
return ['handleFocus'];
|
|
6927
6942
|
};
|
|
6928
6943
|
|
|
@@ -6937,22 +6952,22 @@ const handleContextMenu$9 = event => {
|
|
|
6937
6952
|
} = event;
|
|
6938
6953
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6939
6954
|
};
|
|
6940
|
-
const returnValue$
|
|
6955
|
+
const returnValue$5 = true;
|
|
6941
6956
|
|
|
6942
6957
|
const ViewletActivityBarEvents = {
|
|
6943
6958
|
__proto__: null,
|
|
6944
6959
|
handleBlur: handleBlur$8,
|
|
6945
6960
|
handleContextMenu: handleContextMenu$9,
|
|
6946
|
-
handleFocus: handleFocus$
|
|
6961
|
+
handleFocus: handleFocus$9,
|
|
6947
6962
|
handleMouseDown: handleMouseDown$2,
|
|
6948
|
-
returnValue: returnValue$
|
|
6963
|
+
returnValue: returnValue$5
|
|
6949
6964
|
};
|
|
6950
6965
|
|
|
6951
|
-
const Events$
|
|
6966
|
+
const Events$a = ViewletActivityBarEvents;
|
|
6952
6967
|
|
|
6953
6968
|
const ViewletActivityBar = {
|
|
6954
6969
|
__proto__: null,
|
|
6955
|
-
Events: Events$
|
|
6970
|
+
Events: Events$a
|
|
6956
6971
|
};
|
|
6957
6972
|
|
|
6958
6973
|
const handleAudioError = event => {
|
|
@@ -6975,11 +6990,11 @@ const ViewletAudioEvents = {
|
|
|
6975
6990
|
handleAudioError
|
|
6976
6991
|
};
|
|
6977
6992
|
|
|
6978
|
-
const Events$
|
|
6993
|
+
const Events$9 = ViewletAudioEvents;
|
|
6979
6994
|
|
|
6980
6995
|
const ViewletAudio = {
|
|
6981
6996
|
__proto__: null,
|
|
6982
|
-
Events: Events$
|
|
6997
|
+
Events: Events$9
|
|
6983
6998
|
};
|
|
6984
6999
|
|
|
6985
7000
|
const create$v = () => {
|
|
@@ -7009,7 +7024,7 @@ const create$u = () => {
|
|
|
7009
7024
|
$Viewlet
|
|
7010
7025
|
};
|
|
7011
7026
|
};
|
|
7012
|
-
const dispose$
|
|
7027
|
+
const dispose$b = state => {};
|
|
7013
7028
|
const refresh$3 = () => {};
|
|
7014
7029
|
const setTime = (state, time) => {
|
|
7015
7030
|
object(state);
|
|
@@ -7020,7 +7035,7 @@ const setTime = (state, time) => {
|
|
|
7020
7035
|
const ViewletClock = {
|
|
7021
7036
|
__proto__: null,
|
|
7022
7037
|
create: create$u,
|
|
7023
|
-
dispose: dispose$
|
|
7038
|
+
dispose: dispose$b,
|
|
7024
7039
|
refresh: refresh$3,
|
|
7025
7040
|
setTime
|
|
7026
7041
|
};
|
|
@@ -7035,14 +7050,14 @@ const handleInput$4 = event => {
|
|
|
7035
7050
|
} = target;
|
|
7036
7051
|
handleInput$7(uid, value);
|
|
7037
7052
|
};
|
|
7038
|
-
const handleFocus$
|
|
7053
|
+
const handleFocus$8 = event => {
|
|
7039
7054
|
const uid = fromEvent(event);
|
|
7040
|
-
handleFocus$
|
|
7055
|
+
handleFocus$b(uid);
|
|
7041
7056
|
};
|
|
7042
7057
|
|
|
7043
7058
|
const ViewletDebugConsoleEvents = {
|
|
7044
7059
|
__proto__: null,
|
|
7045
|
-
handleFocus: handleFocus$
|
|
7060
|
+
handleFocus: handleFocus$8,
|
|
7046
7061
|
handleInput: handleInput$4
|
|
7047
7062
|
};
|
|
7048
7063
|
|
|
@@ -7090,7 +7105,7 @@ const ViewletDefineKeyBindingEvents = {
|
|
|
7090
7105
|
handleKeyDown: handleKeyDown$3
|
|
7091
7106
|
};
|
|
7092
7107
|
|
|
7093
|
-
const setValue$
|
|
7108
|
+
const setValue$2 = (state, value) => {
|
|
7094
7109
|
object(state);
|
|
7095
7110
|
string(value);
|
|
7096
7111
|
const {
|
|
@@ -7099,7 +7114,7 @@ const setValue$3 = (state, value) => {
|
|
|
7099
7114
|
const $Input = $Viewlet.querySelector('input');
|
|
7100
7115
|
$Input.value = value;
|
|
7101
7116
|
};
|
|
7102
|
-
const focus$
|
|
7117
|
+
const focus$e = state => {
|
|
7103
7118
|
const {
|
|
7104
7119
|
$Viewlet
|
|
7105
7120
|
} = state;
|
|
@@ -7110,8 +7125,8 @@ const focus$f = state => {
|
|
|
7110
7125
|
const ViewletDefineKeyBinding = {
|
|
7111
7126
|
__proto__: null,
|
|
7112
7127
|
Events: ViewletDefineKeyBindingEvents,
|
|
7113
|
-
focus: focus$
|
|
7114
|
-
setValue: setValue$
|
|
7128
|
+
focus: focus$e,
|
|
7129
|
+
setValue: setValue$2
|
|
7115
7130
|
};
|
|
7116
7131
|
|
|
7117
7132
|
const setMaskImage = ($Element, icon) => {
|
|
@@ -7253,13 +7268,13 @@ const handleWheel$2 = event => {
|
|
|
7253
7268
|
handleWheel$4(uid, deltaMode, deltaY);
|
|
7254
7269
|
};
|
|
7255
7270
|
|
|
7256
|
-
const handleScrollBarPointerDown$
|
|
7271
|
+
const handleScrollBarPointerDown$2 = event => {
|
|
7257
7272
|
// TODO
|
|
7258
7273
|
};
|
|
7259
7274
|
|
|
7260
7275
|
const ViewletDiffEditorEvents = {
|
|
7261
7276
|
__proto__: null,
|
|
7262
|
-
handleScrollBarPointerDown: handleScrollBarPointerDown$
|
|
7277
|
+
handleScrollBarPointerDown: handleScrollBarPointerDown$2,
|
|
7263
7278
|
handleWheel: handleWheel$2
|
|
7264
7279
|
};
|
|
7265
7280
|
|
|
@@ -7403,9 +7418,9 @@ const handleError$5 = event => {
|
|
|
7403
7418
|
const uid = fromEvent(event);
|
|
7404
7419
|
handleImageError$1(uid);
|
|
7405
7420
|
};
|
|
7406
|
-
const handleFocus$
|
|
7421
|
+
const handleFocus$7 = event => {
|
|
7407
7422
|
const uid = fromEvent(event);
|
|
7408
|
-
handleFocus$
|
|
7423
|
+
handleFocus$b(uid);
|
|
7409
7424
|
};
|
|
7410
7425
|
|
|
7411
7426
|
const create$p = () => {
|
|
@@ -7423,7 +7438,7 @@ const attachEvents$8 = state => {
|
|
|
7423
7438
|
[PointerDown]: handlePointerDown$5,
|
|
7424
7439
|
[PointerUp]: handlePointerUp,
|
|
7425
7440
|
[ContextMenu]: handleContextMenu$8,
|
|
7426
|
-
[FocusIn]: handleFocus$
|
|
7441
|
+
[FocusIn]: handleFocus$7
|
|
7427
7442
|
});
|
|
7428
7443
|
$Viewlet.addEventListener(Error$3, handleError$5, Capture);
|
|
7429
7444
|
$Viewlet.addEventListener(Wheel, handleWheel$1, Passive);
|
|
@@ -7465,7 +7480,7 @@ const create$o = () => {
|
|
|
7465
7480
|
$Viewlet
|
|
7466
7481
|
};
|
|
7467
7482
|
};
|
|
7468
|
-
const dispose$
|
|
7483
|
+
const dispose$a = state => {};
|
|
7469
7484
|
const refresh$2 = (state, context) => {
|
|
7470
7485
|
object(state);
|
|
7471
7486
|
string(context.content);
|
|
@@ -7475,7 +7490,7 @@ const refresh$2 = (state, context) => {
|
|
|
7475
7490
|
const ViewletEditorPlainText = {
|
|
7476
7491
|
__proto__: null,
|
|
7477
7492
|
create: create$o,
|
|
7478
|
-
dispose: dispose$
|
|
7493
|
+
dispose: dispose$a,
|
|
7479
7494
|
refresh: refresh$2
|
|
7480
7495
|
};
|
|
7481
7496
|
|
|
@@ -7593,7 +7608,7 @@ const toSimpleTouchEvent = event => {
|
|
|
7593
7608
|
|
|
7594
7609
|
// TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
|
|
7595
7610
|
|
|
7596
|
-
const handleFocus$
|
|
7611
|
+
const handleFocus$6 = event => {
|
|
7597
7612
|
return ['handleFocus'];
|
|
7598
7613
|
};
|
|
7599
7614
|
const handleMouseMove = event => {
|
|
@@ -7874,7 +7889,7 @@ const create$n = () => {
|
|
|
7874
7889
|
[CompositionStart]: handleCompositionStart,
|
|
7875
7890
|
[CompositionUpdate]: handleCompositionUpdate,
|
|
7876
7891
|
[CompositionEnd]: handleCompositionEnd,
|
|
7877
|
-
[Focus]: handleFocus$
|
|
7892
|
+
[Focus]: handleFocus$6,
|
|
7878
7893
|
[Blur]: handleBlur$6,
|
|
7879
7894
|
[Cut]: handleCut,
|
|
7880
7895
|
[Paste]: handlePaste,
|
|
@@ -8060,13 +8075,13 @@ const hideOverlayMessage = state => {
|
|
|
8060
8075
|
}
|
|
8061
8076
|
};
|
|
8062
8077
|
const setFocused$1 = setFocused$2;
|
|
8063
|
-
const focus$
|
|
8078
|
+
const focus$d = setFocused$2;
|
|
8064
8079
|
const setDecorationsDom = setDecorationsDom$1;
|
|
8065
8080
|
|
|
8066
8081
|
const ViewletEditorText = {
|
|
8067
8082
|
__proto__: null,
|
|
8068
8083
|
create: create$m,
|
|
8069
|
-
focus: focus$
|
|
8084
|
+
focus: focus$d,
|
|
8070
8085
|
handleError: handleError$4,
|
|
8071
8086
|
hideOverlayMessage,
|
|
8072
8087
|
highlightAsLink,
|
|
@@ -8118,14 +8133,14 @@ const create$k = () => {
|
|
|
8118
8133
|
};
|
|
8119
8134
|
};
|
|
8120
8135
|
const refresh$1 = (state, context) => {};
|
|
8121
|
-
const focus$
|
|
8122
|
-
const dispose$
|
|
8136
|
+
const focus$c = state => {};
|
|
8137
|
+
const dispose$9 = state => {};
|
|
8123
8138
|
|
|
8124
8139
|
const ViewletEmpty = {
|
|
8125
8140
|
__proto__: null,
|
|
8126
8141
|
create: create$k,
|
|
8127
|
-
dispose: dispose$
|
|
8128
|
-
focus: focus$
|
|
8142
|
+
dispose: dispose$9,
|
|
8143
|
+
focus: focus$c,
|
|
8129
8144
|
refresh: refresh$1
|
|
8130
8145
|
};
|
|
8131
8146
|
|
|
@@ -8276,7 +8291,7 @@ const handleDrop$1 = event => {
|
|
|
8276
8291
|
|
|
8277
8292
|
// TODO drag and drop should be loaded on demand
|
|
8278
8293
|
|
|
8279
|
-
const handleFocus$
|
|
8294
|
+
const handleFocus$5 = event => {
|
|
8280
8295
|
const {
|
|
8281
8296
|
target,
|
|
8282
8297
|
isTrusted
|
|
@@ -8285,7 +8300,7 @@ const handleFocus$6 = event => {
|
|
|
8285
8300
|
return;
|
|
8286
8301
|
}
|
|
8287
8302
|
const uid = fromEvent(event);
|
|
8288
|
-
handleFocus$
|
|
8303
|
+
handleFocus$b(uid);
|
|
8289
8304
|
};
|
|
8290
8305
|
const handleBlur$5 = event => {
|
|
8291
8306
|
const uid = fromEvent(event);
|
|
@@ -8360,7 +8375,7 @@ const ViewletExplorerEvents = {
|
|
|
8360
8375
|
handleDragStart: handleDragStart$1,
|
|
8361
8376
|
handleDrop: handleDrop$1,
|
|
8362
8377
|
handleEditingInput,
|
|
8363
|
-
handleFocus: handleFocus$
|
|
8378
|
+
handleFocus: handleFocus$5,
|
|
8364
8379
|
handleMouseEnter,
|
|
8365
8380
|
handleMouseLeave,
|
|
8366
8381
|
handlePointerDown: handlePointerDown$4,
|
|
@@ -8377,7 +8392,7 @@ const create$i = () => {
|
|
|
8377
8392
|
$Viewlet
|
|
8378
8393
|
};
|
|
8379
8394
|
};
|
|
8380
|
-
const Events$
|
|
8395
|
+
const Events$8 = ViewletExplorerEvents;
|
|
8381
8396
|
const handleError$3 = (state, message) => {
|
|
8382
8397
|
object(state);
|
|
8383
8398
|
string(message);
|
|
@@ -8394,7 +8409,7 @@ const focusInput = (state, id) => {
|
|
|
8394
8409
|
$Input.focus();
|
|
8395
8410
|
send('Focus.setFocus', FocusExplorerEditBox);
|
|
8396
8411
|
};
|
|
8397
|
-
const dispose$
|
|
8412
|
+
const dispose$8 = state => {};
|
|
8398
8413
|
const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
8399
8414
|
// TODO use virtual dom for this
|
|
8400
8415
|
const {
|
|
@@ -8418,9 +8433,9 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
|
8418
8433
|
|
|
8419
8434
|
const ViewletExplorer = {
|
|
8420
8435
|
__proto__: null,
|
|
8421
|
-
Events: Events$
|
|
8436
|
+
Events: Events$8,
|
|
8422
8437
|
create: create$i,
|
|
8423
|
-
dispose: dispose$
|
|
8438
|
+
dispose: dispose$8,
|
|
8424
8439
|
focusInput,
|
|
8425
8440
|
handleError: handleError$3,
|
|
8426
8441
|
setDropTargets
|
|
@@ -8503,45 +8518,45 @@ const ViewletExtensionDetailEvents = {
|
|
|
8503
8518
|
handleTabsClick
|
|
8504
8519
|
};
|
|
8505
8520
|
|
|
8506
|
-
const Events$
|
|
8521
|
+
const Events$7 = ViewletExtensionDetailEvents;
|
|
8507
8522
|
|
|
8508
8523
|
const ViewletExtensionDetail = {
|
|
8509
8524
|
__proto__: null,
|
|
8510
|
-
Events: Events$
|
|
8525
|
+
Events: Events$7,
|
|
8511
8526
|
setSize
|
|
8512
8527
|
};
|
|
8513
8528
|
|
|
8514
8529
|
const Polite = 'polite';
|
|
8515
8530
|
|
|
8516
|
-
const handleScrollBarThumbPointerMove
|
|
8531
|
+
const handleScrollBarThumbPointerMove = event => {
|
|
8517
8532
|
const {
|
|
8518
8533
|
clientY
|
|
8519
8534
|
} = event;
|
|
8520
8535
|
const uid = fromEvent(event);
|
|
8521
|
-
handleScrollBarThumbPointerMove$
|
|
8536
|
+
handleScrollBarThumbPointerMove$2(uid, clientY);
|
|
8522
8537
|
};
|
|
8523
8538
|
const handleScrollBarPointerCaptureLost = event => {
|
|
8524
8539
|
const {
|
|
8525
8540
|
target,
|
|
8526
8541
|
pointerId
|
|
8527
8542
|
} = event;
|
|
8528
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8543
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8529
8544
|
const uid = fromEvent(event);
|
|
8530
8545
|
handleScrollBarCaptureLost(uid);
|
|
8531
8546
|
};
|
|
8532
|
-
const handleScrollBarPointerDown$
|
|
8547
|
+
const handleScrollBarPointerDown$1 = event => {
|
|
8533
8548
|
const {
|
|
8534
8549
|
target,
|
|
8535
8550
|
pointerId,
|
|
8536
8551
|
clientY
|
|
8537
8552
|
} = event;
|
|
8538
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8553
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8539
8554
|
const uid = fromEvent(event);
|
|
8540
8555
|
handleScrollBarClick(uid, clientY);
|
|
8541
8556
|
};
|
|
8542
|
-
const handleFocus$
|
|
8557
|
+
const handleFocus$4 = event => {
|
|
8543
8558
|
const uid = fromEvent(event);
|
|
8544
|
-
handleFocus$
|
|
8559
|
+
handleFocus$b(uid);
|
|
8545
8560
|
};
|
|
8546
8561
|
const handlePointerDown$3 = event => {
|
|
8547
8562
|
const {
|
|
@@ -8655,7 +8670,7 @@ const attachEvents$7 = state => {
|
|
|
8655
8670
|
attachEvents$c($ListItems, {
|
|
8656
8671
|
[ContextMenu]: handleContextMenu$6,
|
|
8657
8672
|
[PointerDown]: handlePointerDown$3,
|
|
8658
|
-
[Focus]: handleFocus$
|
|
8673
|
+
[Focus]: handleFocus$4,
|
|
8659
8674
|
[Scroll]: handleScroll
|
|
8660
8675
|
});
|
|
8661
8676
|
$ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
|
|
@@ -8663,10 +8678,10 @@ const attachEvents$7 = state => {
|
|
|
8663
8678
|
$ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
|
|
8664
8679
|
$ListItems.addEventListener(Wheel, handleWheel$2, Passive);
|
|
8665
8680
|
attachEvents$c($ScrollBar, {
|
|
8666
|
-
[PointerDown]: handleScrollBarPointerDown$
|
|
8681
|
+
[PointerDown]: handleScrollBarPointerDown$1
|
|
8667
8682
|
});
|
|
8668
8683
|
};
|
|
8669
|
-
const focus$
|
|
8684
|
+
const focus$b = state => {
|
|
8670
8685
|
object(state);
|
|
8671
8686
|
state.$InputBox.focus();
|
|
8672
8687
|
};
|
|
@@ -8715,7 +8730,7 @@ const setExtensionsDom = (state, dom) => {
|
|
|
8715
8730
|
// @ts-expect-error
|
|
8716
8731
|
$ListItems.replaceChildren(...$Root.firstChild.childNodes);
|
|
8717
8732
|
};
|
|
8718
|
-
const dispose$
|
|
8733
|
+
const dispose$7 = () => {};
|
|
8719
8734
|
const openSuggest = state => {
|
|
8720
8735
|
// TODO maybe cache getBoundingClientRect (though it is not a bottleneck right now)
|
|
8721
8736
|
// TODO getBoundingClientRect should not be needed, all positions should be known already in renderer worker
|
|
@@ -8754,8 +8769,8 @@ const ViewletExtensions = {
|
|
|
8754
8769
|
attachEvents: attachEvents$7,
|
|
8755
8770
|
closeSuggest,
|
|
8756
8771
|
create: create$h,
|
|
8757
|
-
dispose: dispose$
|
|
8758
|
-
focus: focus$
|
|
8772
|
+
dispose: dispose$7,
|
|
8773
|
+
focus: focus$b,
|
|
8759
8774
|
handleError: handleError$2,
|
|
8760
8775
|
openSuggest,
|
|
8761
8776
|
setContentHeight,
|
|
@@ -8787,7 +8802,7 @@ const ViewletLocationsEvents = {
|
|
|
8787
8802
|
handleLocationsMouseDown
|
|
8788
8803
|
};
|
|
8789
8804
|
|
|
8790
|
-
const Events$
|
|
8805
|
+
const Events$6 = ViewletLocationsEvents;
|
|
8791
8806
|
const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
|
|
8792
8807
|
const {
|
|
8793
8808
|
$Viewlet
|
|
@@ -8811,7 +8826,7 @@ const handleError$1 = (state, message) => {
|
|
|
8811
8826
|
} = state;
|
|
8812
8827
|
$Message.textContent = message;
|
|
8813
8828
|
};
|
|
8814
|
-
const focus$
|
|
8829
|
+
const focus$a = state => {
|
|
8815
8830
|
const {
|
|
8816
8831
|
$Locations
|
|
8817
8832
|
} = state;
|
|
@@ -8822,8 +8837,8 @@ const focus$b = state => {
|
|
|
8822
8837
|
|
|
8823
8838
|
const ViewletImplementations = {
|
|
8824
8839
|
__proto__: null,
|
|
8825
|
-
Events: Events$
|
|
8826
|
-
focus: focus$
|
|
8840
|
+
Events: Events$6,
|
|
8841
|
+
focus: focus$a,
|
|
8827
8842
|
handleError: handleError$1,
|
|
8828
8843
|
setFocusedIndex: setFocusedIndex$3
|
|
8829
8844
|
};
|
|
@@ -8882,7 +8897,7 @@ const ViewletkeyBindingsEvents = {
|
|
|
8882
8897
|
handleResizerPointerUp
|
|
8883
8898
|
};
|
|
8884
8899
|
|
|
8885
|
-
const setValue$
|
|
8900
|
+
const setValue$1 = (state, value) => {
|
|
8886
8901
|
const {
|
|
8887
8902
|
$Viewlet
|
|
8888
8903
|
} = state;
|
|
@@ -8900,15 +8915,15 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
|
|
|
8900
8915
|
$Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
|
|
8901
8916
|
$Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
|
|
8902
8917
|
};
|
|
8903
|
-
const Events$
|
|
8918
|
+
const Events$5 = ViewletkeyBindingsEvents;
|
|
8904
8919
|
|
|
8905
8920
|
const ViewletKeyBindings = {
|
|
8906
8921
|
__proto__: null,
|
|
8907
|
-
Events: Events$
|
|
8922
|
+
Events: Events$5,
|
|
8908
8923
|
setColumnWidths,
|
|
8909
8924
|
setScrollBar: setScrollBar$2,
|
|
8910
8925
|
setSize,
|
|
8911
|
-
setValue: setValue$
|
|
8926
|
+
setValue: setValue$1
|
|
8912
8927
|
};
|
|
8913
8928
|
|
|
8914
8929
|
const getSashId = $Target => {
|
|
@@ -9346,7 +9361,7 @@ const handleSashDoubleClick$1 = id => {
|
|
|
9346
9361
|
const handleResize$1 = (width, height) => {
|
|
9347
9362
|
send('Layout.handleResize', width, height);
|
|
9348
9363
|
};
|
|
9349
|
-
const handleFocus$
|
|
9364
|
+
const handleFocus$3 = () => {
|
|
9350
9365
|
send('Layout.handleFocus');
|
|
9351
9366
|
};
|
|
9352
9367
|
const handleBlur$4 = () => {
|
|
@@ -9392,8 +9407,8 @@ const handleResize = () => {
|
|
|
9392
9407
|
} = window;
|
|
9393
9408
|
handleResize$1(innerWidth, innerHeight);
|
|
9394
9409
|
};
|
|
9395
|
-
const handleFocus$
|
|
9396
|
-
handleFocus$
|
|
9410
|
+
const handleFocus$2 = () => {
|
|
9411
|
+
handleFocus$3();
|
|
9397
9412
|
};
|
|
9398
9413
|
const handleBlur$3 = () => {
|
|
9399
9414
|
handleBlur$4();
|
|
@@ -9437,7 +9452,7 @@ const attachEvents$6 = state => {
|
|
|
9437
9452
|
});
|
|
9438
9453
|
attachEvents$c(window, {
|
|
9439
9454
|
[Resize]: handleResize,
|
|
9440
|
-
[Focus]: handleFocus$
|
|
9455
|
+
[Focus]: handleFocus$2,
|
|
9441
9456
|
[Blur]: handleBlur$3,
|
|
9442
9457
|
[KeyDown]: handleKeyDown$1,
|
|
9443
9458
|
[KeyUp]: handleKeyUp
|
|
@@ -9508,7 +9523,7 @@ const attachEvents$5 = state => {
|
|
|
9508
9523
|
[ContextMenu]: handleContextMenu$5
|
|
9509
9524
|
});
|
|
9510
9525
|
};
|
|
9511
|
-
const dispose$
|
|
9526
|
+
const dispose$6 = state => {};
|
|
9512
9527
|
const replaceEditor = (state, id, uri, languageId) => {};
|
|
9513
9528
|
const addEditor = (state, id, uri, languageId) => {};
|
|
9514
9529
|
|
|
@@ -9530,7 +9545,7 @@ const closeViewletAndTab = (state, index) => {
|
|
|
9530
9545
|
state.$MainTabs.remove();
|
|
9531
9546
|
state.$MainTabs = undefined;
|
|
9532
9547
|
};
|
|
9533
|
-
const focus$
|
|
9548
|
+
const focus$9 = () => {};
|
|
9534
9549
|
const highlightDragOver = state => {
|
|
9535
9550
|
const {
|
|
9536
9551
|
$MainTabs
|
|
@@ -9576,8 +9591,8 @@ const ViewletMain = {
|
|
|
9576
9591
|
closeAllViewlets,
|
|
9577
9592
|
closeViewletAndTab,
|
|
9578
9593
|
create: create$f,
|
|
9579
|
-
dispose: dispose$
|
|
9580
|
-
focus: focus$
|
|
9594
|
+
dispose: dispose$6,
|
|
9595
|
+
focus: focus$9,
|
|
9581
9596
|
highlightDragOver,
|
|
9582
9597
|
openEditor,
|
|
9583
9598
|
replaceEditor,
|
|
@@ -9739,9 +9754,9 @@ const handleError = (state, error) => {
|
|
|
9739
9754
|
string(error);
|
|
9740
9755
|
state.content.textContent = error;
|
|
9741
9756
|
};
|
|
9742
|
-
const focus$
|
|
9757
|
+
const focus$8 = state => {
|
|
9743
9758
|
object(state);
|
|
9744
|
-
focus$
|
|
9759
|
+
focus$g(state.$ViewletOutputContent);
|
|
9745
9760
|
send('Focus.setFocus', FocusOutput);
|
|
9746
9761
|
};
|
|
9747
9762
|
|
|
@@ -9754,15 +9769,15 @@ const disposeFindWidget = state => {
|
|
|
9754
9769
|
return;
|
|
9755
9770
|
}
|
|
9756
9771
|
};
|
|
9757
|
-
const dispose$
|
|
9772
|
+
const dispose$5 = state => {};
|
|
9758
9773
|
|
|
9759
9774
|
const ViewletOutput = {
|
|
9760
9775
|
__proto__: null,
|
|
9761
9776
|
clear,
|
|
9762
9777
|
create: create$d,
|
|
9763
|
-
dispose: dispose$
|
|
9778
|
+
dispose: dispose$5,
|
|
9764
9779
|
disposeFindWidget,
|
|
9765
|
-
focus: focus$
|
|
9780
|
+
focus: focus$8,
|
|
9766
9781
|
handleError,
|
|
9767
9782
|
openFindWidget,
|
|
9768
9783
|
setText
|
|
@@ -9874,14 +9889,14 @@ const setTabsDom$1 = (state, dom) => {
|
|
|
9874
9889
|
};
|
|
9875
9890
|
|
|
9876
9891
|
// TODO add test for focus method
|
|
9877
|
-
const focus$
|
|
9892
|
+
const focus$7 = state => {
|
|
9878
9893
|
object(state);
|
|
9879
9894
|
if (!state.currentViewlet) {
|
|
9880
9895
|
return;
|
|
9881
9896
|
}
|
|
9882
9897
|
state.currentViewlet.factory.focus(state.currentViewlet.state);
|
|
9883
9898
|
};
|
|
9884
|
-
const dispose$
|
|
9899
|
+
const dispose$4 = state => {
|
|
9885
9900
|
if (state.$PanelContent) {
|
|
9886
9901
|
state.$PanelContent.remove();
|
|
9887
9902
|
state.$PanelContent = undefined;
|
|
@@ -9926,8 +9941,8 @@ const ViewletPanel = {
|
|
|
9926
9941
|
__proto__: null,
|
|
9927
9942
|
attachEvents: attachEvents$3,
|
|
9928
9943
|
create: create$c,
|
|
9929
|
-
dispose: dispose$
|
|
9930
|
-
focus: focus$
|
|
9944
|
+
dispose: dispose$4,
|
|
9945
|
+
focus: focus$7,
|
|
9931
9946
|
setActionsDom: setActionsDom$1,
|
|
9932
9947
|
setSelectedIndex,
|
|
9933
9948
|
setTabsDom: setTabsDom$1
|
|
@@ -9961,7 +9976,7 @@ const handleFilterInput = event => {
|
|
|
9961
9976
|
const handleClearFilterClick = event => {
|
|
9962
9977
|
return ['clearFilter'];
|
|
9963
9978
|
};
|
|
9964
|
-
const returnValue$
|
|
9979
|
+
const returnValue$4 = true;
|
|
9965
9980
|
|
|
9966
9981
|
const ViewletProblemsEvents = {
|
|
9967
9982
|
__proto__: null,
|
|
@@ -9969,7 +9984,7 @@ const ViewletProblemsEvents = {
|
|
|
9969
9984
|
handleContextMenu: handleContextMenu$4,
|
|
9970
9985
|
handleFilterInput,
|
|
9971
9986
|
handlePointerDown: handlePointerDown$1,
|
|
9972
|
-
returnValue: returnValue$
|
|
9987
|
+
returnValue: returnValue$4
|
|
9973
9988
|
};
|
|
9974
9989
|
|
|
9975
9990
|
const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
@@ -9981,7 +9996,7 @@ const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
|
9981
9996
|
$Viewlet.focus();
|
|
9982
9997
|
}
|
|
9983
9998
|
};
|
|
9984
|
-
const focus$
|
|
9999
|
+
const focus$6 = state => {
|
|
9985
10000
|
const {
|
|
9986
10001
|
$Viewlet
|
|
9987
10002
|
} = state;
|
|
@@ -9992,7 +10007,7 @@ const ViewletProblems = {
|
|
|
9992
10007
|
__proto__: null,
|
|
9993
10008
|
EventMap: ViewletProblemsEvents,
|
|
9994
10009
|
Events: ViewletProblemsEvents,
|
|
9995
|
-
focus: focus$
|
|
10010
|
+
focus: focus$6,
|
|
9996
10011
|
setFocusedIndex: setFocusedIndex$2
|
|
9997
10012
|
};
|
|
9998
10013
|
|
|
@@ -10138,7 +10153,7 @@ const focusElement = $Element => {
|
|
|
10138
10153
|
$Element.focus();
|
|
10139
10154
|
}
|
|
10140
10155
|
};
|
|
10141
|
-
const focus$
|
|
10156
|
+
const focus$5 = state => {
|
|
10142
10157
|
const {
|
|
10143
10158
|
$QuickPickInput
|
|
10144
10159
|
} = state;
|
|
@@ -10225,13 +10240,13 @@ const showNoResults = (state, noResults, unfocusIndex) => {
|
|
|
10225
10240
|
// TODO remove from dom vs display none which should be used?
|
|
10226
10241
|
|
|
10227
10242
|
// TODO have common widgets container for all widgets (this, notifications, context menu)
|
|
10228
|
-
const dispose$
|
|
10243
|
+
const dispose$3 = state => {
|
|
10229
10244
|
const {
|
|
10230
10245
|
$QuickPickInput
|
|
10231
10246
|
} = state;
|
|
10232
10247
|
$QuickPickInput.onblur = null;
|
|
10233
10248
|
};
|
|
10234
|
-
const setValue
|
|
10249
|
+
const setValue = (state, value) => {
|
|
10235
10250
|
const {
|
|
10236
10251
|
$QuickPickInput
|
|
10237
10252
|
} = state;
|
|
@@ -10262,22 +10277,22 @@ const ViewletQuickPick = {
|
|
|
10262
10277
|
__proto__: null,
|
|
10263
10278
|
attachEvents: attachEvents$2,
|
|
10264
10279
|
create: create$a,
|
|
10265
|
-
dispose: dispose$
|
|
10266
|
-
focus: focus$
|
|
10280
|
+
dispose: dispose$3,
|
|
10281
|
+
focus: focus$5,
|
|
10267
10282
|
hideStatus,
|
|
10268
10283
|
noop,
|
|
10269
10284
|
setCursorOffset,
|
|
10270
10285
|
setFocusedIndex: setFocusedIndex$1,
|
|
10271
10286
|
setItemsDom,
|
|
10272
10287
|
setItemsHeight,
|
|
10273
|
-
setValue
|
|
10288
|
+
setValue,
|
|
10274
10289
|
showNoResults
|
|
10275
10290
|
};
|
|
10276
10291
|
|
|
10277
10292
|
const ViewletReferences = {
|
|
10278
10293
|
__proto__: null,
|
|
10279
|
-
Events: Events$
|
|
10280
|
-
focus: focus$
|
|
10294
|
+
Events: Events$6,
|
|
10295
|
+
focus: focus$a,
|
|
10281
10296
|
handleError: handleError$1,
|
|
10282
10297
|
setFocusedIndex: setFocusedIndex$3
|
|
10283
10298
|
};
|
|
@@ -10456,97 +10471,6 @@ const ViewletScreenCapture = {
|
|
|
10456
10471
|
setScreenCapture
|
|
10457
10472
|
};
|
|
10458
10473
|
|
|
10459
|
-
const handleFocus$2 = () => {
|
|
10460
|
-
// TODO send focus event to search view first
|
|
10461
|
-
return ['Focus.setFocus', FocusSearchInput];
|
|
10462
|
-
};
|
|
10463
|
-
const handleScrollBarThumbPointerMove = event => {
|
|
10464
|
-
const {
|
|
10465
|
-
clientY
|
|
10466
|
-
} = event;
|
|
10467
|
-
const uid = fromEvent(event);
|
|
10468
|
-
handleScrollBarMove(uid, clientY);
|
|
10469
|
-
};
|
|
10470
|
-
const handleScrollBarPointerUp = event => {
|
|
10471
|
-
const {
|
|
10472
|
-
target,
|
|
10473
|
-
pointerId
|
|
10474
|
-
} = event;
|
|
10475
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
10476
|
-
};
|
|
10477
|
-
const handleScrollBarPointerDown$1 = event => {
|
|
10478
|
-
const {
|
|
10479
|
-
target,
|
|
10480
|
-
pointerId,
|
|
10481
|
-
clientY
|
|
10482
|
-
} = event;
|
|
10483
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
10484
|
-
return ['handleScrollBarClick', clientY];
|
|
10485
|
-
};
|
|
10486
|
-
const handleHeaderFocusIn = event => {
|
|
10487
|
-
const {
|
|
10488
|
-
target
|
|
10489
|
-
} = event;
|
|
10490
|
-
const key = target.name || target.title;
|
|
10491
|
-
if (!key) {
|
|
10492
|
-
return [];
|
|
10493
|
-
}
|
|
10494
|
-
return ['handleFocusIn', key];
|
|
10495
|
-
};
|
|
10496
|
-
const returnValue$4 = true;
|
|
10497
|
-
|
|
10498
|
-
const ViewletSearchEvents = {
|
|
10499
|
-
__proto__: null,
|
|
10500
|
-
handleFocus: handleFocus$2,
|
|
10501
|
-
handleHeaderFocusIn,
|
|
10502
|
-
handleScrollBarPointerDown: handleScrollBarPointerDown$1,
|
|
10503
|
-
handleScrollBarPointerUp,
|
|
10504
|
-
handleScrollBarThumbPointerMove,
|
|
10505
|
-
returnValue: returnValue$4
|
|
10506
|
-
};
|
|
10507
|
-
|
|
10508
|
-
const focus$5 = state => {
|
|
10509
|
-
object(state);
|
|
10510
|
-
state.$ViewletSearchInput.focus();
|
|
10511
|
-
};
|
|
10512
|
-
const setValue = (state, value, key) => {
|
|
10513
|
-
if (key) {
|
|
10514
|
-
const $Element = state.$Viewlet.querySelector(key);
|
|
10515
|
-
if ($Element) {
|
|
10516
|
-
$Element.value = value;
|
|
10517
|
-
}
|
|
10518
|
-
return;
|
|
10519
|
-
}
|
|
10520
|
-
const {
|
|
10521
|
-
$ViewletSearchInput
|
|
10522
|
-
} = state;
|
|
10523
|
-
$ViewletSearchInput.value = value;
|
|
10524
|
-
};
|
|
10525
|
-
const setFocus = (state, selector) => {
|
|
10526
|
-
if (!selector) {
|
|
10527
|
-
return;
|
|
10528
|
-
}
|
|
10529
|
-
const {
|
|
10530
|
-
$Viewlet
|
|
10531
|
-
} = state;
|
|
10532
|
-
const $Element = $Viewlet.querySelector(selector);
|
|
10533
|
-
if ($Element) {
|
|
10534
|
-
$Element.focus();
|
|
10535
|
-
}
|
|
10536
|
-
};
|
|
10537
|
-
const dispose$3 = () => {};
|
|
10538
|
-
const Events$5 = ViewletSearchEvents;
|
|
10539
|
-
|
|
10540
|
-
const ViewletSearch = {
|
|
10541
|
-
__proto__: null,
|
|
10542
|
-
Events: Events$5,
|
|
10543
|
-
dispose: dispose$3,
|
|
10544
|
-
focus: focus$5,
|
|
10545
|
-
setFocus,
|
|
10546
|
-
setScrollBar: setScrollBar$2,
|
|
10547
|
-
setValue
|
|
10548
|
-
};
|
|
10549
|
-
|
|
10550
10474
|
const handleClickAction = (target, uid) => {
|
|
10551
10475
|
const index = getNodeIndex(target);
|
|
10552
10476
|
handleClickAction$2(uid, index, target.dataset.command);
|
|
@@ -10715,7 +10639,7 @@ const ViewletSimpleBrowser = {
|
|
|
10715
10639
|
|
|
10716
10640
|
const handleFocus = event => {
|
|
10717
10641
|
const uid = fromEvent(event);
|
|
10718
|
-
handleFocus$
|
|
10642
|
+
handleFocus$b(uid);
|
|
10719
10643
|
};
|
|
10720
10644
|
const getButtonIndex = $Node => {
|
|
10721
10645
|
let index = -1;
|
|
@@ -11281,7 +11205,7 @@ const handleMenuClick = event => {
|
|
|
11281
11205
|
};
|
|
11282
11206
|
const handleFocusIn = event => {
|
|
11283
11207
|
const uid = fromEvent(event);
|
|
11284
|
-
handleFocus$
|
|
11208
|
+
handleFocus$b(uid);
|
|
11285
11209
|
};
|
|
11286
11210
|
|
|
11287
11211
|
const ViewletTitleBarMenuBarEvents = {
|