@lvce-editor/test-worker 3.15.0 → 3.17.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 +9 -3
- package/dist/testWorkerMain.js +27 -4
- package/package.json +1 -2
package/dist/api.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
|
|
|
102
102
|
declare const focusNext$3: () => Promise<void>;
|
|
103
103
|
declare const setValue: (value: string) => Promise<void>;
|
|
104
104
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
105
|
-
declare const open$1: () =>
|
|
105
|
+
declare const open$1: () => Promise<void>;
|
|
106
106
|
declare const handleInput: (value: string) => Promise<void>;
|
|
107
107
|
declare const handleClick$2: (x: number, y: number) => Promise<void>;
|
|
108
108
|
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
@@ -111,10 +111,16 @@ declare const focusNext$4: () => Promise<void>;
|
|
|
111
111
|
declare const focusPrevious$2: () => Promise<void>;
|
|
112
112
|
declare const focusFirst$2: () => Promise<void>;
|
|
113
113
|
declare const focusLast$2: () => Promise<void>;
|
|
114
|
+
declare const toggleRecordingKeys: () => Promise<void>;
|
|
115
|
+
declare const startRecordingKeys: () => Promise<void>;
|
|
116
|
+
declare const clearInput: () => Promise<void>;
|
|
117
|
+
declare const sortByPrecedence: () => Promise<void>;
|
|
118
|
+
declare const stopRecordingKeys: () => Promise<void>;
|
|
114
119
|
declare const handleContextMenu$1: (button: number, x: number, y: number) => Promise<void>;
|
|
115
120
|
declare const press: (key: string) => Promise<void>;
|
|
116
121
|
declare const openUri: (uri: string) => Promise<void>;
|
|
117
122
|
declare const splitRight: () => Promise<void>;
|
|
123
|
+
declare const openKeyBindings: () => Promise<void>;
|
|
118
124
|
declare const open$2: (id: string) => Promise<void>;
|
|
119
125
|
declare const getNodePath: () => Promise<string>;
|
|
120
126
|
declare const isFirefox: () => boolean;
|
|
@@ -213,13 +219,13 @@ declare namespace IconTheme {
|
|
|
213
219
|
export { setIconTheme };
|
|
214
220
|
}
|
|
215
221
|
declare namespace KeyBindingsEditor {
|
|
216
|
-
export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open };
|
|
222
|
+
export { clearInput, focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
|
|
217
223
|
}
|
|
218
224
|
declare namespace KeyBoard {
|
|
219
225
|
export { press };
|
|
220
226
|
}
|
|
221
227
|
declare namespace Main {
|
|
222
|
-
export { openUri, splitRight };
|
|
228
|
+
export { openKeyBindings, openUri, splitRight };
|
|
223
229
|
}
|
|
224
230
|
declare namespace Panel {
|
|
225
231
|
export { open$2 as open };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1731,9 +1731,8 @@ const TestFrameWorkComponentIconTheme = {
|
|
|
1731
1731
|
setIconTheme
|
|
1732
1732
|
};
|
|
1733
1733
|
|
|
1734
|
-
const open$3 = () => {
|
|
1735
|
-
|
|
1736
|
-
throw new Error('not implemented');
|
|
1734
|
+
const open$3 = async () => {
|
|
1735
|
+
await invoke('Main.openUri', 'app://keybindings');
|
|
1737
1736
|
};
|
|
1738
1737
|
const handleInput$1 = value => {
|
|
1739
1738
|
return invoke('KeyBindings.handleInput', value);
|
|
@@ -1759,12 +1758,28 @@ const focusFirst$2 = () => {
|
|
|
1759
1758
|
const focusLast$1 = () => {
|
|
1760
1759
|
return invoke('KeyBindings.focusLast');
|
|
1761
1760
|
};
|
|
1761
|
+
const toggleRecordingKeys = () => {
|
|
1762
|
+
return invoke('KeyBindings.toggleRecordingKeys');
|
|
1763
|
+
};
|
|
1764
|
+
const startRecordingKeys = () => {
|
|
1765
|
+
return invoke('KeyBindings.startRecordingKeys');
|
|
1766
|
+
};
|
|
1767
|
+
const clearInput = () => {
|
|
1768
|
+
return invoke('KeyBindings.clearInput');
|
|
1769
|
+
};
|
|
1770
|
+
const sortByPrecedence = () => {
|
|
1771
|
+
return invoke('KeyBindings.sortByPrecedence');
|
|
1772
|
+
};
|
|
1773
|
+
const stopRecordingKeys = () => {
|
|
1774
|
+
return invoke('KeyBindings.stopRecordingKeys');
|
|
1775
|
+
};
|
|
1762
1776
|
const handleContextMenu = (button, x, y) => {
|
|
1763
1777
|
return invoke('KeyBindings.handleContextMenu', button, x, y);
|
|
1764
1778
|
};
|
|
1765
1779
|
|
|
1766
1780
|
const TestFrameWorkComponentKeyBindingsEditor = {
|
|
1767
1781
|
__proto__: null,
|
|
1782
|
+
clearInput,
|
|
1768
1783
|
focusFirst: focusFirst$2,
|
|
1769
1784
|
focusLast: focusLast$1,
|
|
1770
1785
|
focusNext: focusNext$3,
|
|
@@ -1774,7 +1789,11 @@ const TestFrameWorkComponentKeyBindingsEditor = {
|
|
|
1774
1789
|
handleDoubleClick,
|
|
1775
1790
|
handleInput: handleInput$1,
|
|
1776
1791
|
handleWheel: handleWheel$1,
|
|
1777
|
-
open: open$3
|
|
1792
|
+
open: open$3,
|
|
1793
|
+
sortByPrecedence,
|
|
1794
|
+
startRecordingKeys,
|
|
1795
|
+
stopRecordingKeys,
|
|
1796
|
+
toggleRecordingKeys
|
|
1778
1797
|
};
|
|
1779
1798
|
|
|
1780
1799
|
const getKeyOptions = rawKey => {
|
|
@@ -1833,9 +1852,13 @@ const openUri = async uri => {
|
|
|
1833
1852
|
const splitRight = async () => {
|
|
1834
1853
|
await invoke('Main.splitRight');
|
|
1835
1854
|
};
|
|
1855
|
+
const openKeyBindings = async () => {
|
|
1856
|
+
await invoke('Main.openKeyBindings');
|
|
1857
|
+
};
|
|
1836
1858
|
|
|
1837
1859
|
const TestFrameWorkComponentMain = {
|
|
1838
1860
|
__proto__: null,
|
|
1861
|
+
openKeyBindings,
|
|
1839
1862
|
openUri,
|
|
1840
1863
|
splitRight
|
|
1841
1864
|
};
|