@lvce-editor/renderer-process 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rendererProcessMain.js +53 -18
- package/package.json +1 -1
|
@@ -4237,6 +4237,7 @@ const Video = 'Video';
|
|
|
4237
4237
|
const TitleBarTitle = 'TitleBarTitle';
|
|
4238
4238
|
const About = 'About';
|
|
4239
4239
|
const EditorSourceActions = 'EditorSourceActions';
|
|
4240
|
+
const E2eTests = 'E2eTests';
|
|
4240
4241
|
|
|
4241
4242
|
const load = moduleId => {
|
|
4242
4243
|
switch (moduleId) {
|
|
@@ -4346,6 +4347,8 @@ const load = moduleId => {
|
|
|
4346
4347
|
return Promise.resolve().then(function () { return ViewletEmptyEditor; });
|
|
4347
4348
|
case InlineDiffEditor:
|
|
4348
4349
|
return Promise.resolve().then(function () { return ViewletInlineDiffEditor; });
|
|
4350
|
+
case E2eTests:
|
|
4351
|
+
return Promise.resolve().then(function () { return ViewletE2eTests; });
|
|
4349
4352
|
default:
|
|
4350
4353
|
throw new Error(`${moduleId} module not found in renderer process`);
|
|
4351
4354
|
}
|
|
@@ -5761,7 +5764,7 @@ const handleContextMenu$9 = event => {
|
|
|
5761
5764
|
} = event;
|
|
5762
5765
|
return ['handleContextMenu', button, clientX, clientY];
|
|
5763
5766
|
};
|
|
5764
|
-
const returnValue$
|
|
5767
|
+
const returnValue$7 = true;
|
|
5765
5768
|
|
|
5766
5769
|
const ViewletActivityBarEvents = {
|
|
5767
5770
|
__proto__: null,
|
|
@@ -5769,7 +5772,7 @@ const ViewletActivityBarEvents = {
|
|
|
5769
5772
|
handleContextMenu: handleContextMenu$9,
|
|
5770
5773
|
handleFocus: handleFocus$c,
|
|
5771
5774
|
handleMouseDown: handleMouseDown$3,
|
|
5772
|
-
returnValue: returnValue$
|
|
5775
|
+
returnValue: returnValue$7
|
|
5773
5776
|
};
|
|
5774
5777
|
|
|
5775
5778
|
const Events$a = ViewletActivityBarEvents;
|
|
@@ -5818,7 +5821,7 @@ const handleButtonClick = forwardViewletCommand('handleButtonClick');
|
|
|
5818
5821
|
const handleClick$9 = forwardViewletCommand('handleClick');
|
|
5819
5822
|
const handleClickAction$2 = forwardViewletCommand('handleClickAction');
|
|
5820
5823
|
forwardViewletCommand('handleClickAdd');
|
|
5821
|
-
const handleClickAt = forwardViewletCommand('handleClickAt');
|
|
5824
|
+
const handleClickAt$1 = forwardViewletCommand('handleClickAt');
|
|
5822
5825
|
const handleClickOpenFolder$1 = forwardViewletCommand('handleClickOpenFolder');
|
|
5823
5826
|
forwardViewletCommand('handleClickClose');
|
|
5824
5827
|
forwardViewletCommand('handleClickCopy');
|
|
@@ -6034,12 +6037,12 @@ const handlePointerDown$6 = event => {
|
|
|
6034
6037
|
}
|
|
6035
6038
|
return [];
|
|
6036
6039
|
};
|
|
6037
|
-
const returnValue$
|
|
6040
|
+
const returnValue$6 = true;
|
|
6038
6041
|
|
|
6039
6042
|
const ViewletColorPickerEvents = {
|
|
6040
6043
|
__proto__: null,
|
|
6041
6044
|
handlePointerDown: handlePointerDown$6,
|
|
6042
|
-
returnValue: returnValue$
|
|
6045
|
+
returnValue: returnValue$6
|
|
6043
6046
|
};
|
|
6044
6047
|
|
|
6045
6048
|
const setColor = (state, color) => {
|
|
@@ -6353,7 +6356,7 @@ const handleMousedown = event => {
|
|
|
6353
6356
|
clientY
|
|
6354
6357
|
} = event;
|
|
6355
6358
|
const uid = fromEvent(event);
|
|
6356
|
-
handleClickAt(uid, clientX, clientY);
|
|
6359
|
+
handleClickAt$1(uid, clientX, clientY);
|
|
6357
6360
|
};
|
|
6358
6361
|
const handleScrollBarThumbPointerMove$2 = event => {
|
|
6359
6362
|
const {
|
|
@@ -6563,7 +6566,7 @@ const ViewletEditorError = {
|
|
|
6563
6566
|
setDom: setDom$6
|
|
6564
6567
|
};
|
|
6565
6568
|
|
|
6566
|
-
const returnValue$
|
|
6569
|
+
const returnValue$5 = true;
|
|
6567
6570
|
const handleSashPointerDown$2 = create$v(event => {
|
|
6568
6571
|
const {
|
|
6569
6572
|
clientX,
|
|
@@ -6587,7 +6590,7 @@ const handleSashPointerDown$2 = create$v(event => {
|
|
|
6587
6590
|
const ViewletEditorHoverEvents = {
|
|
6588
6591
|
__proto__: null,
|
|
6589
6592
|
handleSashPointerDown: handleSashPointerDown$2,
|
|
6590
|
-
returnValue: returnValue$
|
|
6593
|
+
returnValue: returnValue$5
|
|
6591
6594
|
};
|
|
6592
6595
|
|
|
6593
6596
|
const setBounds$2 = (state, x, y, width, height) => {
|
|
@@ -7586,7 +7589,7 @@ const handleClick$6 = event => {
|
|
|
7586
7589
|
clientY
|
|
7587
7590
|
} = event;
|
|
7588
7591
|
const uid = fromEvent(event);
|
|
7589
|
-
handleClickAt(uid, button, clientX, clientY);
|
|
7592
|
+
handleClickAt$1(uid, button, clientX, clientY);
|
|
7590
7593
|
};
|
|
7591
7594
|
const handleClickOpenFolder = event => {
|
|
7592
7595
|
preventDefault(event);
|
|
@@ -9313,7 +9316,7 @@ const handleFilterInput = event => {
|
|
|
9313
9316
|
const handleClearFilterClick = event => {
|
|
9314
9317
|
return ['clearFilter'];
|
|
9315
9318
|
};
|
|
9316
|
-
const returnValue$
|
|
9319
|
+
const returnValue$4 = true;
|
|
9317
9320
|
|
|
9318
9321
|
const ViewletProblemsEvents = {
|
|
9319
9322
|
__proto__: null,
|
|
@@ -9321,7 +9324,7 @@ const ViewletProblemsEvents = {
|
|
|
9321
9324
|
handleContextMenu: handleContextMenu$3,
|
|
9322
9325
|
handleFilterInput,
|
|
9323
9326
|
handlePointerDown: handlePointerDown$1,
|
|
9324
|
-
returnValue: returnValue$
|
|
9327
|
+
returnValue: returnValue$4
|
|
9325
9328
|
};
|
|
9326
9329
|
|
|
9327
9330
|
const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
@@ -9397,7 +9400,7 @@ const handlePointerDown = event => {
|
|
|
9397
9400
|
clientY
|
|
9398
9401
|
} = event;
|
|
9399
9402
|
const uid = fromEvent(event);
|
|
9400
|
-
handleClickAt(uid, clientX, clientY);
|
|
9403
|
+
handleClickAt$1(uid, clientX, clientY);
|
|
9401
9404
|
};
|
|
9402
9405
|
const handleBlur$2 = event => {
|
|
9403
9406
|
const uid = fromEvent(event);
|
|
@@ -9914,7 +9917,7 @@ const handleWheel = event => {
|
|
|
9914
9917
|
} = event;
|
|
9915
9918
|
return ['handleWheel', deltaMode, deltaY];
|
|
9916
9919
|
};
|
|
9917
|
-
const returnValue$
|
|
9920
|
+
const returnValue$3 = true;
|
|
9918
9921
|
|
|
9919
9922
|
const ViewletSearchEvents = {
|
|
9920
9923
|
__proto__: null,
|
|
@@ -9932,7 +9935,7 @@ const ViewletSearchEvents = {
|
|
|
9932
9935
|
handleScrollBarThumbPointerMove,
|
|
9933
9936
|
handleToggleButtonClick,
|
|
9934
9937
|
handleWheel,
|
|
9935
|
-
returnValue: returnValue$
|
|
9938
|
+
returnValue: returnValue$3
|
|
9936
9939
|
};
|
|
9937
9940
|
|
|
9938
9941
|
const focus$5 = state => {
|
|
@@ -10615,12 +10618,12 @@ const handleTitleBarButtonsClick = event => {
|
|
|
10615
10618
|
} = event;
|
|
10616
10619
|
return ['handleClick', target.className];
|
|
10617
10620
|
};
|
|
10618
|
-
const returnValue$
|
|
10621
|
+
const returnValue$2 = true;
|
|
10619
10622
|
|
|
10620
10623
|
const ViewletTitleBarButtonEvents = {
|
|
10621
10624
|
__proto__: null,
|
|
10622
10625
|
handleTitleBarButtonsClick,
|
|
10623
|
-
returnValue: returnValue$
|
|
10626
|
+
returnValue: returnValue$2
|
|
10624
10627
|
};
|
|
10625
10628
|
|
|
10626
10629
|
const Events$3 = ViewletTitleBarButtonEvents;
|
|
@@ -11045,7 +11048,7 @@ const handleContextMenu = event => {
|
|
|
11045
11048
|
preventDefault(event);
|
|
11046
11049
|
return [];
|
|
11047
11050
|
};
|
|
11048
|
-
const returnValue = true;
|
|
11051
|
+
const returnValue$1 = true;
|
|
11049
11052
|
|
|
11050
11053
|
const ViewletAboutEvents = {
|
|
11051
11054
|
__proto__: null,
|
|
@@ -11054,7 +11057,7 @@ const ViewletAboutEvents = {
|
|
|
11054
11057
|
handleClickOk,
|
|
11055
11058
|
handleContextMenu,
|
|
11056
11059
|
handleFocusIn: handleFocusIn$1,
|
|
11057
|
-
returnValue
|
|
11060
|
+
returnValue: returnValue$1
|
|
11058
11061
|
};
|
|
11059
11062
|
|
|
11060
11063
|
const setFocused = (state, selector) => {
|
|
@@ -11130,6 +11133,38 @@ const ViewletInlineDiffEditor = {
|
|
|
11130
11133
|
setScrollBar: setScrollBar$2
|
|
11131
11134
|
};
|
|
11132
11135
|
|
|
11136
|
+
const handleClickAt = event => {
|
|
11137
|
+
const {
|
|
11138
|
+
clientX,
|
|
11139
|
+
clientY
|
|
11140
|
+
} = event;
|
|
11141
|
+
return ['handleClickAt', clientX, clientY];
|
|
11142
|
+
};
|
|
11143
|
+
const returnValue = true;
|
|
11144
|
+
|
|
11145
|
+
const ViewletE2eTestsEvents = {
|
|
11146
|
+
__proto__: null,
|
|
11147
|
+
handleClickAt,
|
|
11148
|
+
returnValue
|
|
11149
|
+
};
|
|
11150
|
+
|
|
11151
|
+
const setIframe = (state, src) => {
|
|
11152
|
+
const $ExistingIframe = document.querySelector('.E2eTestsIframe');
|
|
11153
|
+
if ($ExistingIframe) {
|
|
11154
|
+
$ExistingIframe.remove();
|
|
11155
|
+
}
|
|
11156
|
+
const $Iframe = document.createElement('iframe');
|
|
11157
|
+
$Iframe.className = 'E2eTestsIframe';
|
|
11158
|
+
$Iframe.src = src;
|
|
11159
|
+
document.body.append($Iframe);
|
|
11160
|
+
};
|
|
11161
|
+
|
|
11162
|
+
const ViewletE2eTests = {
|
|
11163
|
+
__proto__: null,
|
|
11164
|
+
Events: ViewletE2eTestsEvents,
|
|
11165
|
+
setIframe
|
|
11166
|
+
};
|
|
11167
|
+
|
|
11133
11168
|
const getWorkerDisplayName = name => {
|
|
11134
11169
|
if (!name) {
|
|
11135
11170
|
return '<unknown> worker';
|