@lvce-editor/test-worker 4.5.0 → 4.6.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 CHANGED
@@ -113,15 +113,20 @@ declare const createExecutableFrom: (path: string) => Promise<string>;
113
113
  declare const focusNext$3: () => Promise<void>;
114
114
  declare const setValue: (value: string) => Promise<void>;
115
115
  declare const setIconTheme: (id: string) => Promise<void>;
116
+ declare const selectIndex$1: (index: number) => Promise<void>;
117
+ declare const focusNext$4: () => Promise<void>;
118
+ declare const focusPrevious$2: () => Promise<void>;
119
+ declare const focusFirst$2: () => Promise<void>;
120
+ declare const focusLast$2: () => Promise<void>;
116
121
  declare const open$1: () => Promise<void>;
117
122
  declare const handleInput: (value: string) => Promise<void>;
118
123
  declare const handleClick$2: (x: number, y: number) => Promise<void>;
119
124
  declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
120
125
  declare const handleDoubleClick: (x: number, y: number) => Promise<void>;
121
- declare const focusNext$4: () => Promise<void>;
122
- declare const focusPrevious$2: () => Promise<void>;
123
- declare const focusFirst$2: () => Promise<void>;
124
- declare const focusLast$2: () => Promise<void>;
126
+ declare const focusNext$5: () => Promise<void>;
127
+ declare const focusPrevious$3: () => Promise<void>;
128
+ declare const focusFirst$3: () => Promise<void>;
129
+ declare const focusLast$3: () => Promise<void>;
125
130
  declare const toggleRecordingKeys: () => Promise<void>;
126
131
  declare const startRecordingKeys: () => Promise<void>;
127
132
  declare const clearInput: () => Promise<void>;
@@ -144,22 +149,24 @@ declare const closeTabsLeft: () => Promise<void>;
144
149
  declare const closeTabsRight: () => Promise<void>;
145
150
  declare const closeOthers: () => Promise<void>;
146
151
  declare const closeActiveEditor: () => Promise<void>;
147
- declare const focusFirst$3: () => Promise<void>;
148
- declare const focusNext$5: () => Promise<void>;
149
- declare const focusPrevious$3: () => Promise<void>;
150
- declare const focusLast$3: () => Promise<void>;
152
+ declare const focusFirst$4: () => Promise<void>;
153
+ declare const focusNext$6: () => Promise<void>;
154
+ declare const focusPrevious$4: () => Promise<void>;
155
+ declare const focusLast$4: () => Promise<void>;
151
156
  declare const open$2: (id: string) => Promise<void>;
152
157
  declare const getNodePath: () => Promise<string>;
153
158
  declare const isFirefox: () => boolean;
154
159
  declare const show$1: () => Promise<void>;
155
160
  declare const open$3: () => Promise<void>;
156
161
  declare const handleInput$1: (value: string) => Promise<void>;
162
+ declare const handleClickAt: (x: number, y: number) => Promise<void>;
157
163
  declare const setValue$1: (value: string) => Promise<void>;
158
- declare const focusNext$6: () => Promise<void>;
164
+ declare const focusNext$7: () => Promise<void>;
159
165
  declare const focusIndex$1: (index: number) => Promise<void>;
160
- declare const focusPrevious$4: () => Promise<void>;
166
+ declare const focusPrevious$5: () => Promise<void>;
161
167
  declare const selectItem$1: (label: string) => Promise<void>;
162
- declare const selectIndex$1: (index: number) => Promise<void>;
168
+ declare const selectIndex$2: (index: number) => Promise<void>;
169
+ declare const selectCurrentIndex$1: () => Promise<void>;
163
170
  declare const executeCommand: (label: string) => Promise<void>;
164
171
  declare const setValue$2: (value: string) => Promise<void>;
165
172
  declare const setReplaceValue: (value: string) => Promise<void>;
@@ -170,14 +177,14 @@ declare const clearSearchResults: () => Promise<void>;
170
177
  declare const openDetails: () => Promise<void>;
171
178
  declare const collapseDetails: () => Promise<void>;
172
179
  declare const dismissItem: () => Promise<void>;
173
- declare const focusFirst$4: () => Promise<void>;
180
+ declare const focusFirst$5: () => Promise<void>;
174
181
  declare const focusIndex$2: (index: number) => Promise<void>;
175
- declare const selectIndex$2: (index: number) => Promise<void>;
176
- declare const focusNext$7: () => Promise<void>;
182
+ declare const selectIndex$3: (index: number) => Promise<void>;
183
+ declare const focusNext$8: () => Promise<void>;
177
184
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
178
185
  declare const focusNextPage: () => Promise<void>;
179
186
  declare const focusPreviousPage: () => Promise<void>;
180
- declare const focusPrevious$5: () => Promise<void>;
187
+ declare const focusPrevious$6: () => Promise<void>;
181
188
  declare const toggleSearchDetails: () => Promise<void>;
182
189
  declare const toggleMatchCase: () => Promise<void>;
183
190
  declare const toggleMatchWholeWord: () => Promise<void>;
@@ -192,11 +199,11 @@ declare const handleInput$2: (text: string) => Promise<void>;
192
199
  declare const update$1: () => Promise<void>;
193
200
  declare const closeMenu: () => Promise<void>;
194
201
  declare const focus$2: () => Promise<void>;
195
- declare const focusFirst$5: () => Promise<void>;
202
+ declare const focusFirst$6: () => Promise<void>;
196
203
  declare const focusIndex$3: (index: number) => Promise<void>;
197
- declare const focusLast$4: () => Promise<void>;
198
- declare const focusNext$8: () => Promise<void>;
199
- declare const focusPrevious$6: () => Promise<void>;
204
+ declare const focusLast$5: () => Promise<void>;
205
+ declare const focusNext$9: () => Promise<void>;
206
+ declare const focusPrevious$7: () => Promise<void>;
200
207
  declare const handleKeyArrowDown: () => Promise<void>;
201
208
  declare const handleKeyArrowLeft: () => Promise<void>;
202
209
  declare const handleKeyArrowRight: () => Promise<void>;
@@ -255,14 +262,17 @@ declare namespace FindWidget {
255
262
  declare namespace IconTheme {
256
263
  export { setIconTheme };
257
264
  }
265
+ declare namespace IframeInspector {
266
+ export { focusFirst$2 as focusFirst, focusLast$2 as focusLast, focusNext$4 as focusNext, focusPrevious$2 as focusPrevious, selectIndex$1 as selectIndex };
267
+ }
258
268
  declare namespace KeyBindingsEditor {
259
- export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, 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, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
269
+ export { addKeyBinding, changeWhenExpression, clearInput, copyCommandId, copyCommandTitle, focusFirst$3 as focusFirst, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleClick$2 as handleClick, handleContextMenu$1 as handleContextMenu, handleDoubleClick, handleInput, handleWheel, open$1 as open, removeKeyBinding, resetKeyBinding, showSameKeyBindings, sortByPrecedence, startRecordingKeys, stopRecordingKeys, toggleRecordingKeys };
260
270
  }
261
271
  declare namespace KeyBoard {
262
272
  export { press };
263
273
  }
264
274
  declare namespace Main {
265
- export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$3 as focusFirst, focusLast$3 as focusLast, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, openKeyBindings, openUri, splitRight };
275
+ export { closeActiveEditor, closeAllEditors, closeOthers, closeTabsLeft, closeTabsRight, focusFirst$4 as focusFirst, focusLast$4 as focusLast, focusNext$6 as focusNext, focusPrevious$4 as focusPrevious, openKeyBindings, openUri, splitRight };
266
276
  }
267
277
  declare namespace Panel {
268
278
  export { open$2 as open };
@@ -274,10 +284,10 @@ declare namespace Problems {
274
284
  export { show$1 as show };
275
285
  }
276
286
  declare namespace QuickPick {
277
- export { executeCommand, focusIndex$1 as focusIndex, focusNext$6 as focusNext, focusPrevious$4 as focusPrevious, handleInput$1 as handleInput, open$3 as open, selectIndex$1 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
287
+ export { executeCommand, focusIndex$1 as focusIndex, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$1 as selectCurrentIndex, selectIndex$2 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
278
288
  }
279
289
  declare namespace Search {
280
- export { clearSearchResults, collapseDetails, dismissItem, focusFirst$4 as focusFirst, focusIndex$2 as focusIndex, focusNext$7 as focusNext, focusNextPage, focusPrevious$5 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$2 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
290
+ export { clearSearchResults, collapseDetails, dismissItem, focusFirst$5 as focusFirst, focusIndex$2 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$3 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
281
291
  }
282
292
  declare namespace Settings {
283
293
  export { update };
@@ -292,7 +302,7 @@ declare namespace StatusBar {
292
302
  export { update$1 as update };
293
303
  }
294
304
  declare namespace TitleBarMenuBar {
295
- export { closeMenu, focus$2 as focus, focusFirst$5 as focusFirst, focusIndex$3 as focusIndex, focusLast$4 as focusLast, focusNext$8 as focusNext, focusPrevious$6 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
305
+ export { closeMenu, focus$2 as focus, focusFirst$6 as focusFirst, focusIndex$3 as focusIndex, focusLast$5 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
296
306
  }
297
307
  declare namespace WebView {
298
308
  export { fromId };
@@ -313,6 +323,7 @@ export interface TestApi {
313
323
  readonly FileSystem: typeof FileSystem,
314
324
  readonly FindWidget: typeof FindWidget,
315
325
  readonly IconTheme: typeof IconTheme,
326
+ readonly IframeInspector: typeof IframeInspector,
316
327
  readonly KeyBindingsEditor: typeof KeyBindingsEditor,
317
328
  readonly KeyBoard: typeof KeyBoard,
318
329
  readonly Main: typeof Main,
@@ -1334,17 +1334,17 @@ const handleClickClose = async () => {
1334
1334
  const handleClickCopy = async () => {
1335
1335
  return invoke('About.handleClickCopy');
1336
1336
  };
1337
- const focusNext$8 = async () => {
1337
+ const focusNext$9 = async () => {
1338
1338
  return invoke('About.focusNext');
1339
1339
  };
1340
- const focusPrevious$6 = async () => {
1340
+ const focusPrevious$7 = async () => {
1341
1341
  return invoke('About.focusPrevious');
1342
1342
  };
1343
1343
 
1344
1344
  const TestFrameWorkComponentAbout = {
1345
1345
  __proto__: null,
1346
- focusNext: focusNext$8,
1347
- focusPrevious: focusPrevious$6,
1346
+ focusNext: focusNext$9,
1347
+ focusPrevious: focusPrevious$7,
1348
1348
  handleClickClose,
1349
1349
  handleClickCopy,
1350
1350
  handleClickOk,
@@ -1354,16 +1354,16 @@ const TestFrameWorkComponentAbout = {
1354
1354
  const focus$2 = async () => {
1355
1355
  await invoke('ActivityBar.focus');
1356
1356
  };
1357
- const focusFirst$5 = async () => {
1357
+ const focusFirst$6 = async () => {
1358
1358
  await invoke('ActivityBar.focusFirst');
1359
1359
  };
1360
- const focusLast$4 = async () => {
1360
+ const focusLast$5 = async () => {
1361
1361
  await invoke('ActivityBar.focusLast');
1362
1362
  };
1363
- const focusNext$7 = async () => {
1363
+ const focusNext$8 = async () => {
1364
1364
  await invoke('ActivityBar.focusNext');
1365
1365
  };
1366
- const focusPrevious$5 = async () => {
1366
+ const focusPrevious$6 = async () => {
1367
1367
  await invoke('ActivityBar.focusPrevious');
1368
1368
  };
1369
1369
  const handleClick$2 = async index => {
@@ -1379,10 +1379,10 @@ const selectCurrent = async () => {
1379
1379
  const TestFrameworkComponentActivityBar = {
1380
1380
  __proto__: null,
1381
1381
  focus: focus$2,
1382
- focusFirst: focusFirst$5,
1383
- focusLast: focusLast$4,
1384
- focusNext: focusNext$7,
1385
- focusPrevious: focusPrevious$5,
1382
+ focusFirst: focusFirst$6,
1383
+ focusLast: focusLast$5,
1384
+ focusNext: focusNext$8,
1385
+ focusPrevious: focusPrevious$6,
1386
1386
  handleClick: handleClick$2,
1387
1387
  handleContextMenu: handleContextMenu$1,
1388
1388
  selectCurrent
@@ -1710,17 +1710,17 @@ const TestFrameWorkComponentEditor = {
1710
1710
  type
1711
1711
  };
1712
1712
 
1713
- const selectIndex$2 = async index => {
1713
+ const selectIndex$3 = async index => {
1714
1714
  await invoke('EditorCompletion.selectIndex', index);
1715
1715
  };
1716
- const selectCurrentIndex = async () => {
1716
+ const selectCurrentIndex$1 = async () => {
1717
1717
  await invoke('EditorCompletion.selectCurrentIndex');
1718
1718
  };
1719
1719
 
1720
1720
  const TestFrameWorkComponentEditorCompletion = {
1721
1721
  __proto__: null,
1722
- selectCurrentIndex,
1723
- selectIndex: selectIndex$2
1722
+ selectCurrentIndex: selectCurrentIndex$1,
1723
+ selectIndex: selectIndex$3
1724
1724
  };
1725
1725
 
1726
1726
  const openContextMenu = async index => {
@@ -1729,7 +1729,7 @@ const openContextMenu = async index => {
1729
1729
  const focus$1 = async () => {
1730
1730
  await invoke('Explorer.focusIndex', -1);
1731
1731
  };
1732
- const focusNext$6 = async () => {
1732
+ const focusNext$7 = async () => {
1733
1733
  await invoke('Explorer.focusNext');
1734
1734
  };
1735
1735
  const focusIndex$3 = async index => {
@@ -1741,10 +1741,10 @@ const clickCurrent = async () => {
1741
1741
  const handleArrowLeft = async () => {
1742
1742
  await invoke('Explorer.handleArrowLeft');
1743
1743
  };
1744
- const focusLast$3 = async () => {
1744
+ const focusLast$4 = async () => {
1745
1745
  await invoke('Explorer.focusLast');
1746
1746
  };
1747
- const focusFirst$4 = async () => {
1747
+ const focusFirst$5 = async () => {
1748
1748
  await invoke('Explorer.focusFirst');
1749
1749
  };
1750
1750
  const removeDirent = async () => {
@@ -1783,10 +1783,10 @@ const TestFrameWorkComponentExplorer = {
1783
1783
  expandAll,
1784
1784
  expandRecursively,
1785
1785
  focus: focus$1,
1786
- focusFirst: focusFirst$4,
1786
+ focusFirst: focusFirst$5,
1787
1787
  focusIndex: focusIndex$3,
1788
- focusLast: focusLast$3,
1789
- focusNext: focusNext$6,
1788
+ focusLast: focusLast$4,
1789
+ focusNext: focusNext$7,
1790
1790
  handleArrowLeft,
1791
1791
  handleClick: handleClick$1,
1792
1792
  newFile,
@@ -1893,7 +1893,7 @@ const TestFrameWorkComponentFileSystem = {
1893
1893
  writeFile
1894
1894
  };
1895
1895
 
1896
- const focusNext$5 = async () => {
1896
+ const focusNext$6 = async () => {
1897
1897
  await invoke('FindWidget.focusNext');
1898
1898
  };
1899
1899
  const setValue$2 = async value => {
@@ -1902,7 +1902,7 @@ const setValue$2 = async value => {
1902
1902
 
1903
1903
  const TestFrameWorkComponentFindWidget = {
1904
1904
  __proto__: null,
1905
- focusNext: focusNext$5,
1905
+ focusNext: focusNext$6,
1906
1906
  setValue: setValue$2
1907
1907
  };
1908
1908
 
@@ -1915,6 +1915,31 @@ const TestFrameWorkComponentIconTheme = {
1915
1915
  setIconTheme
1916
1916
  };
1917
1917
 
1918
+ const selectIndex$2 = async index => {
1919
+ return invoke('IframeInspector.selectIndex', index);
1920
+ };
1921
+ const focusNext$5 = async () => {
1922
+ return invoke('IframeInspector.focusNext');
1923
+ };
1924
+ const focusPrevious$5 = async () => {
1925
+ return invoke('IframeInspector.focusPrevious');
1926
+ };
1927
+ const focusFirst$4 = async () => {
1928
+ return invoke('IframeInspector.focusFirst');
1929
+ };
1930
+ const focusLast$3 = async () => {
1931
+ return invoke('IframeInspector.focusLast');
1932
+ };
1933
+
1934
+ const TestFrameWorkComponentIframeInspector = {
1935
+ __proto__: null,
1936
+ focusFirst: focusFirst$4,
1937
+ focusLast: focusLast$3,
1938
+ focusNext: focusNext$5,
1939
+ focusPrevious: focusPrevious$5,
1940
+ selectIndex: selectIndex$2
1941
+ };
1942
+
1918
1943
  const open$3 = async () => {
1919
1944
  await invoke('Main.openUri', 'app://keybindings');
1920
1945
  };
@@ -2176,6 +2201,9 @@ const open$1 = async () => {
2176
2201
  const handleInput$1 = async value => {
2177
2202
  await invoke('QuickPick.handleInput', value, 0);
2178
2203
  };
2204
+ const handleClickAt = async (x, y) => {
2205
+ await invoke('QuickPick.handleClickAt', x, y);
2206
+ };
2179
2207
  const setValue$1 = async value => {
2180
2208
  await invoke('QuickPick.setValue', value);
2181
2209
  };
@@ -2194,6 +2222,9 @@ const selectItem = async label => {
2194
2222
  const selectIndex$1 = async index => {
2195
2223
  await invoke('QuickPick.selectIndex', index);
2196
2224
  };
2225
+ const selectCurrentIndex = async () => {
2226
+ await invoke('QuickPick.selectCurrentIndex');
2227
+ };
2197
2228
  const executeCommand = async label => {
2198
2229
  await invoke('QuickPick.showCommands');
2199
2230
  await invoke('QuickPick.handleInput', label, 0);
@@ -2206,8 +2237,10 @@ const TestFrameWorkComponentQuickPick = {
2206
2237
  focusIndex: focusIndex$2,
2207
2238
  focusNext: focusNext$2,
2208
2239
  focusPrevious: focusPrevious$2,
2240
+ handleClickAt,
2209
2241
  handleInput: handleInput$1,
2210
2242
  open: open$1,
2243
+ selectCurrentIndex,
2211
2244
  selectIndex: selectIndex$1,
2212
2245
  selectItem,
2213
2246
  setValue: setValue$1
@@ -2527,6 +2560,7 @@ const TestFrameWorkComponent = {
2527
2560
  FileSystem: TestFrameWorkComponentFileSystem,
2528
2561
  FindWidget: TestFrameWorkComponentFindWidget,
2529
2562
  IconTheme: TestFrameWorkComponentIconTheme,
2563
+ IframeInspector: TestFrameWorkComponentIframeInspector,
2530
2564
  KeyBindingsEditor: TestFrameWorkComponentKeyBindingsEditor,
2531
2565
  KeyBoard: TestFrameWorkComponentKeyBoard,
2532
2566
  Main: TestFrameWorkComponentMain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",