@lvce-editor/renderer-process 10.8.0 → 10.10.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 +36 -32
- package/package.json +1 -1
|
@@ -2096,7 +2096,7 @@ const handleBeforeInput$2 = forwardViewletCommand('handleBeforeInput');
|
|
|
2096
2096
|
forwardViewletCommand('handleBeforeInputFromContentEditable');
|
|
2097
2097
|
const handleBlur$a = forwardViewletCommand('handleBlur');
|
|
2098
2098
|
const handleButtonClick = forwardViewletCommand('handleButtonClick');
|
|
2099
|
-
const handleClick$
|
|
2099
|
+
const handleClick$8 = forwardViewletCommand('handleClick');
|
|
2100
2100
|
const handleClickAction$2 = forwardViewletCommand('handleClickAction');
|
|
2101
2101
|
forwardViewletCommand('handleClickAdd');
|
|
2102
2102
|
const handleClickAt$3 = forwardViewletCommand('handleClickAt');
|
|
@@ -2453,33 +2453,27 @@ const handleClickNextMatch = event => {
|
|
|
2453
2453
|
preventDefault(event);
|
|
2454
2454
|
return ['FindWidget.focusNext'];
|
|
2455
2455
|
};
|
|
2456
|
+
const handleClickReplace = event => {
|
|
2457
|
+
preventDefault(event);
|
|
2458
|
+
return ['FindWidget.replace'];
|
|
2459
|
+
};
|
|
2460
|
+
const handleClickReplaceAll = event => {
|
|
2461
|
+
preventDefault(event);
|
|
2462
|
+
return ['FindWidget.replaceAll'];
|
|
2463
|
+
};
|
|
2456
2464
|
const handleClickToggleReplace = event => {
|
|
2457
2465
|
preventDefault(event);
|
|
2458
2466
|
return ['FindWidget.toggleReplace'];
|
|
2459
2467
|
};
|
|
2460
|
-
const handleClick$8 = event => {
|
|
2461
|
-
const {
|
|
2462
|
-
target
|
|
2463
|
-
} = event;
|
|
2464
|
-
const {
|
|
2465
|
-
title
|
|
2466
|
-
} = target;
|
|
2467
|
-
switch (title) {
|
|
2468
|
-
case 'Close':
|
|
2469
|
-
return handleClickClose$2(event);
|
|
2470
|
-
case 'Previous Match':
|
|
2471
|
-
return handleClickPreviousMatch(event);
|
|
2472
|
-
case 'Next Match':
|
|
2473
|
-
return handleClickNextMatch(event);
|
|
2474
|
-
case 'Toggle Replace':
|
|
2475
|
-
return handleClickToggleReplace(event);
|
|
2476
|
-
default:
|
|
2477
|
-
return [];
|
|
2478
|
-
}
|
|
2479
|
-
};
|
|
2480
2468
|
const handleInputBlur = event => {
|
|
2481
2469
|
return ['FindWidget.handleBlur'];
|
|
2482
2470
|
};
|
|
2471
|
+
const handleReplaceInput$1 = event => {
|
|
2472
|
+
return ['FindWidget.handleReplaceInput'];
|
|
2473
|
+
};
|
|
2474
|
+
const handleReplaceFocus = event => {
|
|
2475
|
+
return ['FindWidget.handleReplaceFocus'];
|
|
2476
|
+
};
|
|
2483
2477
|
const handleFocus$b = event => {
|
|
2484
2478
|
return ['FindWidget.handleFocus'];
|
|
2485
2479
|
};
|
|
@@ -2487,10 +2481,17 @@ const returnValue$9 = true;
|
|
|
2487
2481
|
|
|
2488
2482
|
const ViewletFindWidgetEvents = {
|
|
2489
2483
|
__proto__: null,
|
|
2490
|
-
|
|
2484
|
+
handleClickClose: handleClickClose$2,
|
|
2485
|
+
handleClickNextMatch,
|
|
2486
|
+
handleClickPreviousMatch,
|
|
2487
|
+
handleClickReplace,
|
|
2488
|
+
handleClickReplaceAll,
|
|
2489
|
+
handleClickToggleReplace,
|
|
2491
2490
|
handleFocus: handleFocus$b,
|
|
2492
2491
|
handleInput: handleInput$7,
|
|
2493
2492
|
handleInputBlur,
|
|
2493
|
+
handleReplaceFocus,
|
|
2494
|
+
handleReplaceInput: handleReplaceInput$1,
|
|
2494
2495
|
returnValue: returnValue$9
|
|
2495
2496
|
};
|
|
2496
2497
|
|
|
@@ -2502,15 +2503,18 @@ const create$H = () => {
|
|
|
2502
2503
|
$Viewlet
|
|
2503
2504
|
};
|
|
2504
2505
|
};
|
|
2505
|
-
const focus$i = state => {
|
|
2506
|
+
const focus$i = (state, key, source) => {
|
|
2507
|
+
if (source !== /* script */2) {
|
|
2508
|
+
return;
|
|
2509
|
+
}
|
|
2506
2510
|
const {
|
|
2507
2511
|
$Viewlet
|
|
2508
2512
|
} = state;
|
|
2509
|
-
const $
|
|
2510
|
-
if (!$
|
|
2513
|
+
const $Element = $Viewlet.querySelector(key);
|
|
2514
|
+
if (!$Element) {
|
|
2511
2515
|
return;
|
|
2512
2516
|
}
|
|
2513
|
-
$
|
|
2517
|
+
$Element.focus();
|
|
2514
2518
|
applyUidWorkaround($Viewlet);
|
|
2515
2519
|
};
|
|
2516
2520
|
const setValue$4 = (state, value) => {
|
|
@@ -8091,7 +8095,7 @@ const handlePointerDown$3 = event => {
|
|
|
8091
8095
|
}
|
|
8092
8096
|
const $Extension = target.closest('.ExtensionListItem');
|
|
8093
8097
|
const index = getNodeIndex($Extension);
|
|
8094
|
-
handleClick$
|
|
8098
|
+
handleClick$8(uid, index);
|
|
8095
8099
|
};
|
|
8096
8100
|
const handleInput$5 = event => {
|
|
8097
8101
|
const $Target = event.target;
|
|
@@ -8381,7 +8385,7 @@ const handleTableClick = event => {
|
|
|
8381
8385
|
clientY
|
|
8382
8386
|
} = event;
|
|
8383
8387
|
const uid = fromEvent(event);
|
|
8384
|
-
handleClick$
|
|
8388
|
+
handleClick$8(uid, clientX, clientY);
|
|
8385
8389
|
};
|
|
8386
8390
|
const handleTableDoubleClick = event => {
|
|
8387
8391
|
const {
|
|
@@ -10346,7 +10350,7 @@ const handleClick$3 = event => {
|
|
|
10346
10350
|
if (index === -1) {
|
|
10347
10351
|
return;
|
|
10348
10352
|
}
|
|
10349
|
-
handleClick$
|
|
10353
|
+
handleClick$8(uid, index);
|
|
10350
10354
|
};
|
|
10351
10355
|
const handleMouseOver = event => {
|
|
10352
10356
|
const {
|
|
@@ -10418,7 +10422,7 @@ const handleClick$2 = event => {
|
|
|
10418
10422
|
clientX,
|
|
10419
10423
|
clientY
|
|
10420
10424
|
} = event;
|
|
10421
|
-
handleClick$
|
|
10425
|
+
handleClick$8(uid, clientX, clientY);
|
|
10422
10426
|
};
|
|
10423
10427
|
|
|
10424
10428
|
const ViewletStatusBarEvents = {
|
|
@@ -10462,7 +10466,7 @@ const ViewletStatusBar = {
|
|
|
10462
10466
|
|
|
10463
10467
|
const handleClick$1 = event => {
|
|
10464
10468
|
const uid = fromEvent(event);
|
|
10465
|
-
handleClick$
|
|
10469
|
+
handleClick$8(uid);
|
|
10466
10470
|
};
|
|
10467
10471
|
|
|
10468
10472
|
const ViewletStorageEvents = {
|
|
@@ -10845,7 +10849,7 @@ const handleClick = event => {
|
|
|
10845
10849
|
} = event;
|
|
10846
10850
|
const index = getIndex(target);
|
|
10847
10851
|
const uid = fromEvent(event);
|
|
10848
|
-
handleClick$
|
|
10852
|
+
handleClick$8(uid, button, index);
|
|
10849
10853
|
};
|
|
10850
10854
|
const getLevelAndIndex = event => {
|
|
10851
10855
|
const {
|