@lvce-editor/test-worker 10.0.0 → 10.2.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/api.d.ts +1 -0
- package/dist/testWorkerMain.js +11 -6
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -510,6 +510,7 @@ interface TitleBarMenuBar {
|
|
|
510
510
|
readonly focusLast: () => Promise<void>;
|
|
511
511
|
readonly focusNext: () => Promise<void>;
|
|
512
512
|
readonly focusPrevious: () => Promise<void>;
|
|
513
|
+
readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
|
|
513
514
|
readonly handleKeyArrowDown: () => Promise<void>;
|
|
514
515
|
readonly handleKeyArrowLeft: () => Promise<void>;
|
|
515
516
|
readonly handleKeyArrowRight: () => Promise<void>;
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1617,7 +1617,7 @@ const focusPrevious$7 = async () => {
|
|
|
1617
1617
|
const handleClick$2 = async index => {
|
|
1618
1618
|
await invoke$1('ActivityBar.handleClick', index);
|
|
1619
1619
|
};
|
|
1620
|
-
const handleContextMenu$
|
|
1620
|
+
const handleContextMenu$3 = async () => {
|
|
1621
1621
|
await invoke$1('ActivityBar.handleContextMenu');
|
|
1622
1622
|
};
|
|
1623
1623
|
const selectCurrent = async () => {
|
|
@@ -1632,7 +1632,7 @@ const ActivityBar = {
|
|
|
1632
1632
|
focusNext: focusNext$8,
|
|
1633
1633
|
focusPrevious: focusPrevious$7,
|
|
1634
1634
|
handleClick: handleClick$2,
|
|
1635
|
-
handleContextMenu: handleContextMenu$
|
|
1635
|
+
handleContextMenu: handleContextMenu$3,
|
|
1636
1636
|
selectCurrent
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
@@ -2479,7 +2479,7 @@ const handleInput$4 = async value => {
|
|
|
2479
2479
|
// @ts-ignore
|
|
2480
2480
|
await invoke$1('Extensions.handleInput', value, Script$1);
|
|
2481
2481
|
};
|
|
2482
|
-
const handleContextMenu$
|
|
2482
|
+
const handleContextMenu$2 = async (button, x, y) => {
|
|
2483
2483
|
// @ts-ignore
|
|
2484
2484
|
await invoke$1('Extensions.handleContextMenu', button, x, y);
|
|
2485
2485
|
};
|
|
@@ -2501,7 +2501,7 @@ const ExtensionSearch = {
|
|
|
2501
2501
|
clearSearchResults: clearSearchResults$1,
|
|
2502
2502
|
copyExtensionId,
|
|
2503
2503
|
copyExtensionInfo,
|
|
2504
|
-
handleContextMenu: handleContextMenu$
|
|
2504
|
+
handleContextMenu: handleContextMenu$2,
|
|
2505
2505
|
handleInput: handleInput$4,
|
|
2506
2506
|
open: open$4
|
|
2507
2507
|
};
|
|
@@ -2862,7 +2862,7 @@ const sortByPrecedence = () => {
|
|
|
2862
2862
|
const stopRecordingKeys = () => {
|
|
2863
2863
|
return invoke$1('KeyBindings.stopRecordingKeys');
|
|
2864
2864
|
};
|
|
2865
|
-
const handleContextMenu = (button, x, y) => {
|
|
2865
|
+
const handleContextMenu$1 = (button, x, y) => {
|
|
2866
2866
|
return invoke$1('KeyBindings.handleContextMenu', button, x, y);
|
|
2867
2867
|
};
|
|
2868
2868
|
const copyCommandId = () => {
|
|
@@ -2900,7 +2900,7 @@ const KeyBindingsEditor = {
|
|
|
2900
2900
|
focusNext: focusNext$4,
|
|
2901
2901
|
focusPrevious: focusPrevious$4,
|
|
2902
2902
|
handleClick,
|
|
2903
|
-
handleContextMenu,
|
|
2903
|
+
handleContextMenu: handleContextMenu$1,
|
|
2904
2904
|
handleDoubleClick,
|
|
2905
2905
|
handleInput: handleInput$3,
|
|
2906
2906
|
handleWheel: handleWheel$1,
|
|
@@ -3609,6 +3609,10 @@ const toggleMenu = async () => {
|
|
|
3609
3609
|
// @ts-ignore
|
|
3610
3610
|
await invoke$1('TitleBar.toggleMenu');
|
|
3611
3611
|
};
|
|
3612
|
+
const handleContextMenu = async (button, x, y) => {
|
|
3613
|
+
// @ts-ignore
|
|
3614
|
+
await invoke$1('TitleBar.handleContextMenu', button, x, y);
|
|
3615
|
+
};
|
|
3612
3616
|
|
|
3613
3617
|
const TitleBarMenuBar = {
|
|
3614
3618
|
__proto__: null,
|
|
@@ -3619,6 +3623,7 @@ const TitleBarMenuBar = {
|
|
|
3619
3623
|
focusLast,
|
|
3620
3624
|
focusNext,
|
|
3621
3625
|
focusPrevious,
|
|
3626
|
+
handleContextMenu,
|
|
3622
3627
|
handleKeyArrowDown,
|
|
3623
3628
|
handleKeyArrowLeft,
|
|
3624
3629
|
handleKeyArrowRight,
|