@lvce-editor/renderer-process 6.10.0 → 6.11.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 +124 -68
- package/package.json +1 -1
|
@@ -2471,7 +2471,7 @@ const handleButtonClick = forwardViewletCommand('handleButtonClick');
|
|
|
2471
2471
|
const handleClick$9 = forwardViewletCommand('handleClick');
|
|
2472
2472
|
const handleClickAction$2 = forwardViewletCommand('handleClickAction');
|
|
2473
2473
|
forwardViewletCommand('handleClickAdd');
|
|
2474
|
-
const handleClickAt$
|
|
2474
|
+
const handleClickAt$3 = forwardViewletCommand('handleClickAt');
|
|
2475
2475
|
const handleClickOpenFolder$1 = forwardViewletCommand('handleClickOpenFolder');
|
|
2476
2476
|
forwardViewletCommand('handleClickClose');
|
|
2477
2477
|
forwardViewletCommand('handleClickCopy');
|
|
@@ -2481,7 +2481,7 @@ forwardViewletCommand('handleClickOpenFile');
|
|
|
2481
2481
|
forwardViewletCommand('handleClickRestore');
|
|
2482
2482
|
const handleClickTab$2 = forwardViewletCommand('handleClickTab');
|
|
2483
2483
|
forwardViewletCommand('handleClickToggleMaximize');
|
|
2484
|
-
const handleContextMenu$
|
|
2484
|
+
const handleContextMenu$d = forwardViewletCommand('handleContextMenu');
|
|
2485
2485
|
const handleDoubleClick = forwardViewletCommand('handleDoubleClick');
|
|
2486
2486
|
const handleDragEnd$1 = forwardViewletCommand('handleDragEnd');
|
|
2487
2487
|
const handleDragLeave$1 = forwardViewletCommand('handleDragLeave');
|
|
@@ -2564,7 +2564,7 @@ const handleMousedown = event => {
|
|
|
2564
2564
|
clientY
|
|
2565
2565
|
} = event;
|
|
2566
2566
|
const uid = fromEvent(event);
|
|
2567
|
-
handleClickAt$
|
|
2567
|
+
handleClickAt$3(uid, clientX, clientY);
|
|
2568
2568
|
};
|
|
2569
2569
|
const handleScrollBarThumbPointerMove$2 = event => {
|
|
2570
2570
|
const {
|
|
@@ -2799,6 +2799,7 @@ const About = 'About';
|
|
|
2799
2799
|
const EditorSourceActions = 'EditorSourceActions';
|
|
2800
2800
|
const E2eTests = 'E2eTests';
|
|
2801
2801
|
const E2eTest = 'E2eTest';
|
|
2802
|
+
const WebView = 'WebView';
|
|
2802
2803
|
|
|
2803
2804
|
const state$6 = {
|
|
2804
2805
|
instances: Object.create(null),
|
|
@@ -3753,7 +3754,7 @@ const create$Menu$1 = () => {
|
|
|
3753
3754
|
// })
|
|
3754
3755
|
$Menu.onkeydown = handleKeyDown$4;
|
|
3755
3756
|
$Menu.addEventListener(FocusOut, handleFocusOut$1);
|
|
3756
|
-
$Menu.oncontextmenu = handleContextMenu$
|
|
3757
|
+
$Menu.oncontextmenu = handleContextMenu$c;
|
|
3757
3758
|
// $ContextMenu.onfocus = handleFocus
|
|
3758
3759
|
// $ContextMenu.onblur = handleBlur
|
|
3759
3760
|
return $Menu;
|
|
@@ -3782,14 +3783,14 @@ const handleBackDropMouseDown = event => {
|
|
|
3782
3783
|
stopPropagation(event);
|
|
3783
3784
|
send( /* Menu.hide */'Menu.hide');
|
|
3784
3785
|
};
|
|
3785
|
-
const handleContextMenu$
|
|
3786
|
+
const handleContextMenu$c = event => {
|
|
3786
3787
|
preventDefault(event);
|
|
3787
3788
|
};
|
|
3788
3789
|
const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mouseBlocking = false) => {
|
|
3789
3790
|
if (mouseBlocking) {
|
|
3790
3791
|
const $BackDrop = create$BackDrop();
|
|
3791
3792
|
$BackDrop.onmousedown = handleBackDropMouseDown;
|
|
3792
|
-
$BackDrop.oncontextmenu = handleContextMenu$
|
|
3793
|
+
$BackDrop.oncontextmenu = handleContextMenu$c;
|
|
3793
3794
|
// @ts-expect-error
|
|
3794
3795
|
state$1.$BackDrop = $BackDrop;
|
|
3795
3796
|
append$1($BackDrop);
|
|
@@ -4714,6 +4715,8 @@ const load = moduleId => {
|
|
|
4714
4715
|
return Promise.resolve().then(function () { return ViewletE2eTests; });
|
|
4715
4716
|
case E2eTest:
|
|
4716
4717
|
return Promise.resolve().then(function () { return ViewletE2eTest; });
|
|
4718
|
+
case WebView:
|
|
4719
|
+
return Promise.resolve().then(function () { return ViewletWebView; });
|
|
4717
4720
|
default:
|
|
4718
4721
|
throw new Error(`${moduleId} module not found in renderer process`);
|
|
4719
4722
|
}
|
|
@@ -6113,7 +6116,7 @@ const handleFocus$b = () => {
|
|
|
6113
6116
|
|
|
6114
6117
|
// TODO use context menu events function again
|
|
6115
6118
|
|
|
6116
|
-
const handleContextMenu$
|
|
6119
|
+
const handleContextMenu$b = event => {
|
|
6117
6120
|
preventDefault(event);
|
|
6118
6121
|
const {
|
|
6119
6122
|
button,
|
|
@@ -6122,15 +6125,15 @@ const handleContextMenu$a = event => {
|
|
|
6122
6125
|
} = event;
|
|
6123
6126
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6124
6127
|
};
|
|
6125
|
-
const returnValue$
|
|
6128
|
+
const returnValue$9 = true;
|
|
6126
6129
|
|
|
6127
6130
|
const ViewletActivityBarEvents = {
|
|
6128
6131
|
__proto__: null,
|
|
6129
6132
|
handleBlur: handleBlur$8,
|
|
6130
|
-
handleContextMenu: handleContextMenu$
|
|
6133
|
+
handleContextMenu: handleContextMenu$b,
|
|
6131
6134
|
handleFocus: handleFocus$b,
|
|
6132
6135
|
handleMouseDown: handleMouseDown$2,
|
|
6133
|
-
returnValue: returnValue$
|
|
6136
|
+
returnValue: returnValue$9
|
|
6134
6137
|
};
|
|
6135
6138
|
|
|
6136
6139
|
const Events$a = ViewletActivityBarEvents;
|
|
@@ -6279,12 +6282,12 @@ const handlePointerDown$6 = event => {
|
|
|
6279
6282
|
}
|
|
6280
6283
|
return [];
|
|
6281
6284
|
};
|
|
6282
|
-
const returnValue$
|
|
6285
|
+
const returnValue$8 = true;
|
|
6283
6286
|
|
|
6284
6287
|
const ViewletColorPickerEvents = {
|
|
6285
6288
|
__proto__: null,
|
|
6286
6289
|
handlePointerDown: handlePointerDown$6,
|
|
6287
|
-
returnValue: returnValue$
|
|
6290
|
+
returnValue: returnValue$8
|
|
6288
6291
|
};
|
|
6289
6292
|
|
|
6290
6293
|
const setColor = (state, color) => {
|
|
@@ -6583,7 +6586,7 @@ const ViewletEditorError = {
|
|
|
6583
6586
|
setDom: setDom$6
|
|
6584
6587
|
};
|
|
6585
6588
|
|
|
6586
|
-
const returnValue$
|
|
6589
|
+
const returnValue$7 = true;
|
|
6587
6590
|
const handleSashPointerDown$2 = create$u(event => {
|
|
6588
6591
|
const {
|
|
6589
6592
|
clientX,
|
|
@@ -6607,7 +6610,7 @@ const handleSashPointerDown$2 = create$u(event => {
|
|
|
6607
6610
|
const ViewletEditorHoverEvents = {
|
|
6608
6611
|
__proto__: null,
|
|
6609
6612
|
handleSashPointerDown: handleSashPointerDown$2,
|
|
6610
|
-
returnValue: returnValue$
|
|
6613
|
+
returnValue: returnValue$7
|
|
6611
6614
|
};
|
|
6612
6615
|
|
|
6613
6616
|
const setBounds$2 = (state, x, y, width, height) => {
|
|
@@ -6704,7 +6707,7 @@ const handleWheel$2 = event => {
|
|
|
6704
6707
|
*
|
|
6705
6708
|
* @param {MouseEvent} event
|
|
6706
6709
|
*/
|
|
6707
|
-
const handleContextMenu$
|
|
6710
|
+
const handleContextMenu$a = event => {
|
|
6708
6711
|
preventDefault(event);
|
|
6709
6712
|
const {
|
|
6710
6713
|
button,
|
|
@@ -6712,7 +6715,7 @@ const handleContextMenu$9 = event => {
|
|
|
6712
6715
|
clientY
|
|
6713
6716
|
} = event;
|
|
6714
6717
|
const uid = fromEvent(event);
|
|
6715
|
-
handleContextMenu$
|
|
6718
|
+
handleContextMenu$d(uid, button, clientX, clientY);
|
|
6716
6719
|
};
|
|
6717
6720
|
const handleError$5 = event => {
|
|
6718
6721
|
const uid = fromEvent(event);
|
|
@@ -6737,7 +6740,7 @@ const attachEvents$9 = state => {
|
|
|
6737
6740
|
attachEvents$c($Viewlet, {
|
|
6738
6741
|
[PointerDown]: handlePointerDown$5,
|
|
6739
6742
|
[PointerUp]: handlePointerUp,
|
|
6740
|
-
[ContextMenu]: handleContextMenu$
|
|
6743
|
+
[ContextMenu]: handleContextMenu$a,
|
|
6741
6744
|
[FocusIn]: handleFocus$9
|
|
6742
6745
|
});
|
|
6743
6746
|
$Viewlet.addEventListener(Error$3, handleError$5, Capture);
|
|
@@ -7103,7 +7106,7 @@ const handleScrollBarContextMenu = event => {
|
|
|
7103
7106
|
preventDefault(event);
|
|
7104
7107
|
stopPropagation(event);
|
|
7105
7108
|
};
|
|
7106
|
-
const handleContextMenu$
|
|
7109
|
+
const handleContextMenu$9 = event => {
|
|
7107
7110
|
preventDefault(event);
|
|
7108
7111
|
const {
|
|
7109
7112
|
button,
|
|
@@ -7259,7 +7262,7 @@ const create$n = () => {
|
|
|
7259
7262
|
$Editor.role = Code;
|
|
7260
7263
|
$Editor.append($LayerGutter, $EditorContent);
|
|
7261
7264
|
attachEventsFunctional($Editor, {
|
|
7262
|
-
[ContextMenu]: handleContextMenu$
|
|
7265
|
+
[ContextMenu]: handleContextMenu$9,
|
|
7263
7266
|
[Wheel]: handleWheel$1,
|
|
7264
7267
|
returnValue: true
|
|
7265
7268
|
});
|
|
@@ -7464,7 +7467,7 @@ const ViewletError = {
|
|
|
7464
7467
|
setMessage: setMessage$1
|
|
7465
7468
|
};
|
|
7466
7469
|
|
|
7467
|
-
const handleContextMenu$
|
|
7470
|
+
const handleContextMenu$8 = event => {
|
|
7468
7471
|
preventDefault(event);
|
|
7469
7472
|
const {
|
|
7470
7473
|
button,
|
|
@@ -7472,7 +7475,7 @@ const handleContextMenu$7 = event => {
|
|
|
7472
7475
|
clientY
|
|
7473
7476
|
} = event;
|
|
7474
7477
|
const uid = fromEvent(event);
|
|
7475
|
-
handleContextMenu$
|
|
7478
|
+
handleContextMenu$d(uid, button, clientX, clientY);
|
|
7476
7479
|
};
|
|
7477
7480
|
|
|
7478
7481
|
const CopyMove = 'copyMove';
|
|
@@ -7612,7 +7615,7 @@ const handleClick$6 = event => {
|
|
|
7612
7615
|
clientY
|
|
7613
7616
|
} = event;
|
|
7614
7617
|
const uid = fromEvent(event);
|
|
7615
|
-
handleClickAt$
|
|
7618
|
+
handleClickAt$3(uid, button, clientX, clientY);
|
|
7616
7619
|
};
|
|
7617
7620
|
const handleClickOpenFolder = event => {
|
|
7618
7621
|
preventDefault(event);
|
|
@@ -7666,7 +7669,7 @@ const ViewletExplorerEvents = {
|
|
|
7666
7669
|
handleBlur: handleBlur$5,
|
|
7667
7670
|
handleClick: handleClick$6,
|
|
7668
7671
|
handleClickOpenFolder,
|
|
7669
|
-
handleContextMenu: handleContextMenu$
|
|
7672
|
+
handleContextMenu: handleContextMenu$8,
|
|
7670
7673
|
handleDragEnd,
|
|
7671
7674
|
handleDragLeave,
|
|
7672
7675
|
handleDragOver,
|
|
@@ -7931,7 +7934,7 @@ const attachEvents$8 = state => {
|
|
|
7931
7934
|
// @ts-expect-error
|
|
7932
7935
|
$ExtensionHeader.addEventListener(Click, undefined);
|
|
7933
7936
|
attachEvents$c($ListItems, {
|
|
7934
|
-
[ContextMenu]: handleContextMenu$
|
|
7937
|
+
[ContextMenu]: handleContextMenu$8,
|
|
7935
7938
|
[PointerDown]: handlePointerDown$3,
|
|
7936
7939
|
[Focus]: handleFocus$6,
|
|
7937
7940
|
[Scroll]: handleScroll
|
|
@@ -8291,7 +8294,7 @@ const handlePointerDown$2 = event => {
|
|
|
8291
8294
|
|
|
8292
8295
|
const ViewletkeyBindingsEvents = {
|
|
8293
8296
|
__proto__: null,
|
|
8294
|
-
handleContextMenu: handleContextMenu$
|
|
8297
|
+
handleContextMenu: handleContextMenu$8,
|
|
8295
8298
|
handleInput: handleInput$4,
|
|
8296
8299
|
handlePointerDown: handlePointerDown$2,
|
|
8297
8300
|
handleResizerPointerDown,
|
|
@@ -8881,7 +8884,7 @@ const ViewletLayout = {
|
|
|
8881
8884
|
setSashes
|
|
8882
8885
|
};
|
|
8883
8886
|
|
|
8884
|
-
const handleContextMenu$
|
|
8887
|
+
const handleContextMenu$7 = event => {
|
|
8885
8888
|
if (event.defaultPrevented) {
|
|
8886
8889
|
return;
|
|
8887
8890
|
}
|
|
@@ -8891,7 +8894,7 @@ const handleContextMenu$6 = event => {
|
|
|
8891
8894
|
clientY
|
|
8892
8895
|
} = event;
|
|
8893
8896
|
const uid = fromEvent(event);
|
|
8894
|
-
handleContextMenu$
|
|
8897
|
+
handleContextMenu$d(uid, clientX, clientY);
|
|
8895
8898
|
};
|
|
8896
8899
|
|
|
8897
8900
|
// TODO Main should not be bound to Editor -> Lazy load Editor
|
|
@@ -8925,7 +8928,7 @@ const attachEvents$6 = state => {
|
|
|
8925
8928
|
[DragOver]: handleDragOver,
|
|
8926
8929
|
[DragEnd]: handleDragEnd,
|
|
8927
8930
|
[DragLeave]: handleDragLeave,
|
|
8928
|
-
[ContextMenu]: handleContextMenu$
|
|
8931
|
+
[ContextMenu]: handleContextMenu$7
|
|
8929
8932
|
});
|
|
8930
8933
|
};
|
|
8931
8934
|
const dispose$7 = state => {};
|
|
@@ -9320,7 +9323,7 @@ const handlePointerDown$1 = event => {
|
|
|
9320
9323
|
} = event;
|
|
9321
9324
|
return ['handleClickAt', clientX, clientY];
|
|
9322
9325
|
};
|
|
9323
|
-
const handleContextMenu$
|
|
9326
|
+
const handleContextMenu$6 = event => {
|
|
9324
9327
|
preventDefault(event);
|
|
9325
9328
|
const {
|
|
9326
9329
|
clientX,
|
|
@@ -9340,15 +9343,15 @@ const handleFilterInput = event => {
|
|
|
9340
9343
|
const handleClearFilterClick = event => {
|
|
9341
9344
|
return ['clearFilter'];
|
|
9342
9345
|
};
|
|
9343
|
-
const returnValue$
|
|
9346
|
+
const returnValue$6 = true;
|
|
9344
9347
|
|
|
9345
9348
|
const ViewletProblemsEvents = {
|
|
9346
9349
|
__proto__: null,
|
|
9347
9350
|
handleClearFilterClick,
|
|
9348
|
-
handleContextMenu: handleContextMenu$
|
|
9351
|
+
handleContextMenu: handleContextMenu$6,
|
|
9349
9352
|
handleFilterInput,
|
|
9350
9353
|
handlePointerDown: handlePointerDown$1,
|
|
9351
|
-
returnValue: returnValue$
|
|
9354
|
+
returnValue: returnValue$6
|
|
9352
9355
|
};
|
|
9353
9356
|
|
|
9354
9357
|
const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
@@ -9424,7 +9427,7 @@ const handlePointerDown = event => {
|
|
|
9424
9427
|
clientY
|
|
9425
9428
|
} = event;
|
|
9426
9429
|
const uid = fromEvent(event);
|
|
9427
|
-
handleClickAt$
|
|
9430
|
+
handleClickAt$3(uid, clientX, clientY);
|
|
9428
9431
|
};
|
|
9429
9432
|
const handleBlur$2 = event => {
|
|
9430
9433
|
const uid = fromEvent(event);
|
|
@@ -9925,7 +9928,7 @@ const handleHeaderFocusIn = event => {
|
|
|
9925
9928
|
}
|
|
9926
9929
|
return ['handleFocusIn', key];
|
|
9927
9930
|
};
|
|
9928
|
-
const handleContextMenu$
|
|
9931
|
+
const handleContextMenu$5 = event => {
|
|
9929
9932
|
preventDefault(event);
|
|
9930
9933
|
const {
|
|
9931
9934
|
button,
|
|
@@ -9941,12 +9944,12 @@ const handleWheel = event => {
|
|
|
9941
9944
|
} = event;
|
|
9942
9945
|
return ['handleWheel', deltaMode, deltaY];
|
|
9943
9946
|
};
|
|
9944
|
-
const returnValue$
|
|
9947
|
+
const returnValue$5 = true;
|
|
9945
9948
|
|
|
9946
9949
|
const ViewletSearchEvents = {
|
|
9947
9950
|
__proto__: null,
|
|
9948
9951
|
handleClick: handleClick$4,
|
|
9949
|
-
handleContextMenu: handleContextMenu$
|
|
9952
|
+
handleContextMenu: handleContextMenu$5,
|
|
9950
9953
|
handleFocus: handleFocus$2,
|
|
9951
9954
|
handleHeaderClick: handleHeaderClick$1,
|
|
9952
9955
|
handleHeaderFocusIn,
|
|
@@ -9959,7 +9962,7 @@ const ViewletSearchEvents = {
|
|
|
9959
9962
|
handleScrollBarThumbPointerMove,
|
|
9960
9963
|
handleToggleButtonClick,
|
|
9961
9964
|
handleWheel,
|
|
9962
|
-
returnValue: returnValue$
|
|
9965
|
+
returnValue: returnValue$5
|
|
9963
9966
|
};
|
|
9964
9967
|
|
|
9965
9968
|
const focus$5 = state => {
|
|
@@ -10241,7 +10244,7 @@ const handleInput = event => {
|
|
|
10241
10244
|
const ViewletSourceControlEvents = {
|
|
10242
10245
|
__proto__: null,
|
|
10243
10246
|
handleClick: handleClick$3,
|
|
10244
|
-
handleContextMenu: handleContextMenu$
|
|
10247
|
+
handleContextMenu: handleContextMenu$8,
|
|
10245
10248
|
handleFocus,
|
|
10246
10249
|
handleInput,
|
|
10247
10250
|
handleMouseOut,
|
|
@@ -10582,7 +10585,7 @@ const ViewletTerminals = {
|
|
|
10582
10585
|
setTabsDom
|
|
10583
10586
|
};
|
|
10584
10587
|
|
|
10585
|
-
const handleContextMenu$
|
|
10588
|
+
const handleContextMenu$4 = event => {
|
|
10586
10589
|
preventDefault(event);
|
|
10587
10590
|
const {
|
|
10588
10591
|
button,
|
|
@@ -10610,7 +10613,7 @@ const attachEvents = state => {
|
|
|
10610
10613
|
$Viewlet
|
|
10611
10614
|
} = state;
|
|
10612
10615
|
attachEvents$c($Viewlet, {
|
|
10613
|
-
[ContextMenu]: handleContextMenu$
|
|
10616
|
+
[ContextMenu]: handleContextMenu$4
|
|
10614
10617
|
});
|
|
10615
10618
|
};
|
|
10616
10619
|
const activeClassName = 'TitleBarActive';
|
|
@@ -10642,12 +10645,12 @@ const handleTitleBarButtonsClick = event => {
|
|
|
10642
10645
|
} = event;
|
|
10643
10646
|
return ['handleClick', target.className];
|
|
10644
10647
|
};
|
|
10645
|
-
const returnValue$
|
|
10648
|
+
const returnValue$4 = true;
|
|
10646
10649
|
|
|
10647
10650
|
const ViewletTitleBarButtonEvents = {
|
|
10648
10651
|
__proto__: null,
|
|
10649
10652
|
handleTitleBarButtonsClick,
|
|
10650
|
-
returnValue: returnValue$
|
|
10653
|
+
returnValue: returnValue$4
|
|
10651
10654
|
};
|
|
10652
10655
|
|
|
10653
10656
|
const Events$3 = ViewletTitleBarButtonEvents;
|
|
@@ -11068,20 +11071,20 @@ const handleClickCopy = event => {
|
|
|
11068
11071
|
const handleFocusIn$1 = event => {
|
|
11069
11072
|
return ['handleFocusIn'];
|
|
11070
11073
|
};
|
|
11071
|
-
const handleContextMenu$
|
|
11074
|
+
const handleContextMenu$3 = event => {
|
|
11072
11075
|
preventDefault(event);
|
|
11073
11076
|
return [];
|
|
11074
11077
|
};
|
|
11075
|
-
const returnValue$
|
|
11078
|
+
const returnValue$3 = true;
|
|
11076
11079
|
|
|
11077
11080
|
const ViewletAboutEvents = {
|
|
11078
11081
|
__proto__: null,
|
|
11079
11082
|
handleClickClose,
|
|
11080
11083
|
handleClickCopy,
|
|
11081
11084
|
handleClickOk,
|
|
11082
|
-
handleContextMenu: handleContextMenu$
|
|
11085
|
+
handleContextMenu: handleContextMenu$3,
|
|
11083
11086
|
handleFocusIn: handleFocusIn$1,
|
|
11084
|
-
returnValue: returnValue$
|
|
11087
|
+
returnValue: returnValue$3
|
|
11085
11088
|
};
|
|
11086
11089
|
|
|
11087
11090
|
const setFocused = (state, selector) => {
|
|
@@ -11157,17 +11160,17 @@ const ViewletInlineDiffEditor = {
|
|
|
11157
11160
|
setScrollBar: setScrollBar$2
|
|
11158
11161
|
};
|
|
11159
11162
|
|
|
11160
|
-
const handleClickAt$
|
|
11163
|
+
const handleClickAt$2 = event => {
|
|
11161
11164
|
const {
|
|
11162
11165
|
clientX,
|
|
11163
11166
|
clientY
|
|
11164
11167
|
} = event;
|
|
11165
11168
|
return ['handleClickAt', clientX, clientY];
|
|
11166
11169
|
};
|
|
11167
|
-
const handleLoad$
|
|
11170
|
+
const handleLoad$3 = event => {
|
|
11168
11171
|
return ['handleLoad'];
|
|
11169
11172
|
};
|
|
11170
|
-
const handleContextMenu$
|
|
11173
|
+
const handleContextMenu$2 = event => {
|
|
11171
11174
|
preventDefault(event);
|
|
11172
11175
|
const {
|
|
11173
11176
|
button,
|
|
@@ -11176,14 +11179,14 @@ const handleContextMenu$1 = event => {
|
|
|
11176
11179
|
} = event;
|
|
11177
11180
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11178
11181
|
};
|
|
11179
|
-
const returnValue$
|
|
11182
|
+
const returnValue$2 = true;
|
|
11180
11183
|
|
|
11181
11184
|
const ViewletE2eTestsEvents = {
|
|
11182
11185
|
__proto__: null,
|
|
11183
|
-
handleClickAt: handleClickAt$
|
|
11184
|
-
handleContextMenu: handleContextMenu$
|
|
11185
|
-
handleLoad: handleLoad$
|
|
11186
|
-
returnValue: returnValue$
|
|
11186
|
+
handleClickAt: handleClickAt$2,
|
|
11187
|
+
handleContextMenu: handleContextMenu$2,
|
|
11188
|
+
handleLoad: handleLoad$3,
|
|
11189
|
+
returnValue: returnValue$2
|
|
11187
11190
|
};
|
|
11188
11191
|
|
|
11189
11192
|
const sendToIframe = (contentWindow, message, origin, transfer) => {
|
|
@@ -11195,11 +11198,11 @@ const sendToIframe = (contentWindow, message, origin, transfer) => {
|
|
|
11195
11198
|
}
|
|
11196
11199
|
};
|
|
11197
11200
|
|
|
11198
|
-
const handleLoad$
|
|
11201
|
+
const handleLoad$2 = event => {
|
|
11199
11202
|
console.log(event.target.src);
|
|
11200
11203
|
send('E2eTests.handleLoad');
|
|
11201
11204
|
};
|
|
11202
|
-
const setIframe$
|
|
11205
|
+
const setIframe$2 = (state, src, sandbox = []) => {
|
|
11203
11206
|
if (!src) {
|
|
11204
11207
|
return;
|
|
11205
11208
|
}
|
|
@@ -11216,7 +11219,7 @@ const setIframe$1 = (state, src, sandbox = []) => {
|
|
|
11216
11219
|
console.log({
|
|
11217
11220
|
src
|
|
11218
11221
|
});
|
|
11219
|
-
$Iframe.addEventListener('load', handleLoad$
|
|
11222
|
+
$Iframe.addEventListener('load', handleLoad$2, {
|
|
11220
11223
|
once: true
|
|
11221
11224
|
});
|
|
11222
11225
|
document.body.append($Iframe);
|
|
@@ -11243,21 +11246,21 @@ const setPort = (state, portId, origin) => {
|
|
|
11243
11246
|
const ViewletE2eTests = {
|
|
11244
11247
|
__proto__: null,
|
|
11245
11248
|
Events: ViewletE2eTestsEvents,
|
|
11246
|
-
setIframe: setIframe$
|
|
11249
|
+
setIframe: setIframe$2,
|
|
11247
11250
|
setPort
|
|
11248
11251
|
};
|
|
11249
11252
|
|
|
11250
|
-
const handleClickAt = event => {
|
|
11253
|
+
const handleClickAt$1 = event => {
|
|
11251
11254
|
const {
|
|
11252
11255
|
clientX,
|
|
11253
11256
|
clientY
|
|
11254
11257
|
} = event;
|
|
11255
11258
|
return ['handleClickAt', clientX, clientY];
|
|
11256
11259
|
};
|
|
11257
|
-
const handleLoad = event => {
|
|
11260
|
+
const handleLoad$1 = event => {
|
|
11258
11261
|
return ['handleLoad'];
|
|
11259
11262
|
};
|
|
11260
|
-
const handleContextMenu = event => {
|
|
11263
|
+
const handleContextMenu$1 = event => {
|
|
11261
11264
|
preventDefault(event);
|
|
11262
11265
|
const {
|
|
11263
11266
|
button,
|
|
@@ -11285,19 +11288,19 @@ const handleSashCornerPointerDown = create$u(event => {
|
|
|
11285
11288
|
} = event;
|
|
11286
11289
|
return ['handleSashCornerPointerUp', clientX, clientY];
|
|
11287
11290
|
});
|
|
11288
|
-
const returnValue = true;
|
|
11291
|
+
const returnValue$1 = true;
|
|
11289
11292
|
|
|
11290
11293
|
const ViewletE2eTestEvents = {
|
|
11291
11294
|
__proto__: null,
|
|
11292
|
-
handleClickAt,
|
|
11293
|
-
handleContextMenu,
|
|
11294
|
-
handleLoad,
|
|
11295
|
+
handleClickAt: handleClickAt$1,
|
|
11296
|
+
handleContextMenu: handleContextMenu$1,
|
|
11297
|
+
handleLoad: handleLoad$1,
|
|
11295
11298
|
handleSashCornerPointerDown,
|
|
11296
|
-
returnValue
|
|
11299
|
+
returnValue: returnValue$1
|
|
11297
11300
|
};
|
|
11298
11301
|
|
|
11299
11302
|
// TODO could use browser view when running in electron
|
|
11300
|
-
const setIframe = (state, src, sandbox = []) => {
|
|
11303
|
+
const setIframe$1 = (state, src, sandbox = []) => {
|
|
11301
11304
|
if (!src) {
|
|
11302
11305
|
return;
|
|
11303
11306
|
}
|
|
@@ -11340,10 +11343,63 @@ const setPreviewTransform = (state, transform) => {
|
|
|
11340
11343
|
const ViewletE2eTest = {
|
|
11341
11344
|
__proto__: null,
|
|
11342
11345
|
Events: ViewletE2eTestEvents,
|
|
11343
|
-
setIframe,
|
|
11346
|
+
setIframe: setIframe$1,
|
|
11344
11347
|
setPreviewTransform
|
|
11345
11348
|
};
|
|
11346
11349
|
|
|
11350
|
+
const handleClickAt = event => {
|
|
11351
|
+
const {
|
|
11352
|
+
clientX,
|
|
11353
|
+
clientY
|
|
11354
|
+
} = event;
|
|
11355
|
+
return ['handleClickAt', clientX, clientY];
|
|
11356
|
+
};
|
|
11357
|
+
const handleLoad = event => {
|
|
11358
|
+
return ['handleLoad'];
|
|
11359
|
+
};
|
|
11360
|
+
const handleContextMenu = event => {
|
|
11361
|
+
preventDefault(event);
|
|
11362
|
+
const {
|
|
11363
|
+
button,
|
|
11364
|
+
clientX,
|
|
11365
|
+
clientY
|
|
11366
|
+
} = event;
|
|
11367
|
+
return ['handleContextMenu', button, clientX, clientY];
|
|
11368
|
+
};
|
|
11369
|
+
const returnValue = true;
|
|
11370
|
+
|
|
11371
|
+
const ViewletWebViewEvents = {
|
|
11372
|
+
__proto__: null,
|
|
11373
|
+
handleClickAt,
|
|
11374
|
+
handleContextMenu,
|
|
11375
|
+
handleLoad,
|
|
11376
|
+
returnValue
|
|
11377
|
+
};
|
|
11378
|
+
|
|
11379
|
+
// TODO could use browser view when running in electron
|
|
11380
|
+
const setIframe = (state, src, sandbox = []) => {
|
|
11381
|
+
if (!src) {
|
|
11382
|
+
return;
|
|
11383
|
+
}
|
|
11384
|
+
const {
|
|
11385
|
+
$Viewlet
|
|
11386
|
+
} = state;
|
|
11387
|
+
const $Parent = $Viewlet.querySelector('.WebViewWrapper');
|
|
11388
|
+
const $Iframe = document.createElement('iframe');
|
|
11389
|
+
for (const element of sandbox) {
|
|
11390
|
+
$Iframe.sandbox.add(element);
|
|
11391
|
+
}
|
|
11392
|
+
$Iframe.className = 'E2eTestIframe';
|
|
11393
|
+
$Iframe.src = src;
|
|
11394
|
+
$Parent.append($Iframe);
|
|
11395
|
+
};
|
|
11396
|
+
|
|
11397
|
+
const ViewletWebView = {
|
|
11398
|
+
__proto__: null,
|
|
11399
|
+
Events: ViewletWebViewEvents,
|
|
11400
|
+
setIframe
|
|
11401
|
+
};
|
|
11402
|
+
|
|
11347
11403
|
const getWorkerDisplayName = name => {
|
|
11348
11404
|
if (!name) {
|
|
11349
11405
|
return '<unknown> worker';
|