@lvce-editor/test-worker 4.11.0 → 4.13.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
@@ -81,9 +81,11 @@ declare const shouldHaveText: (expectedText: string) => Promise<void>;
81
81
  declare const selectIndex: (index: number) => Promise<void>;
82
82
  declare const selectCurrentIndex: () => Promise<void>;
83
83
  declare const openContextMenu$1: (index: number) => Promise<void>;
84
- declare const handleDragLeave: (index: number) => Promise<void>;
84
+ declare const handleDragLeave: () => Promise<void>;
85
85
  declare const focus$1: () => Promise<void>;
86
86
  declare const focusNext$2: () => Promise<void>;
87
+ declare const selectUp: () => Promise<void>;
88
+ declare const selectDown: () => Promise<void>;
87
89
  declare const refresh: () => Promise<void>;
88
90
  declare const focusIndex: (index: number) => Promise<void>;
89
91
  declare const clickCurrent: () => Promise<void>;
@@ -95,14 +97,17 @@ declare const expandRecursively: () => Promise<void>;
95
97
  declare const newFile: () => Promise<void>;
96
98
  declare const newFolder: () => Promise<void>;
97
99
  declare const handleClick$1: (index: number) => Promise<void>;
100
+ declare const handleClickAt: (button: number, ctrlKey: boolean, shiftKey: boolean, x: number, y: number) => Promise<void>;
98
101
  declare const handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
99
102
  declare const rename$1: () => Promise<void>;
103
+ declare const selectAll$1: () => Promise<void>;
100
104
  declare const renameDirent: () => Promise<void>;
101
105
  declare const cancelEdit: () => Promise<void>;
102
106
  declare const acceptEdit: () => Promise<void>;
103
107
  declare const updateEditingValue: (value: string) => Promise<void>;
104
108
  declare const expandAll: () => Promise<void>;
105
109
  declare const handleDragOver: (x: number, y: number) => Promise<void>;
110
+ declare const selectIndices: (indices: readonly number[]) => Promise<void>;
106
111
  declare const addWebExtension: (relativePath: string) => Promise<void>;
107
112
  declare const addNodeExtension: (relativePath: string) => Promise<void>;
108
113
  declare const selectFeature: (name: string) => Promise<void>;
@@ -166,7 +171,7 @@ declare const isFirefox: () => boolean;
166
171
  declare const show$1: () => Promise<void>;
167
172
  declare const open$3: () => Promise<void>;
168
173
  declare const handleInput$1: (value: string) => Promise<void>;
169
- declare const handleClickAt: (x: number, y: number) => Promise<void>;
174
+ declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
170
175
  declare const setValue$1: (value: string) => Promise<void>;
171
176
  declare const focusNext$7: () => Promise<void>;
172
177
  declare const focusFirst$5: () => Promise<void>;
@@ -254,7 +259,7 @@ declare namespace EditorCompletion {
254
259
  export { selectCurrentIndex, selectIndex };
255
260
  }
256
261
  declare namespace Explorer {
257
- export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleClick$1 as handleClick, handleDragLeave, handleDragOver, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, updateEditingValue };
262
+ export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleClick$1 as handleClick, handleClickAt, handleDragLeave, handleDragOver, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
258
263
  }
259
264
  declare namespace Extension {
260
265
  export { addNodeExtension, addWebExtension };
@@ -293,7 +298,7 @@ declare namespace Problems {
293
298
  export { show$1 as show };
294
299
  }
295
300
  declare namespace QuickPick {
296
- export { executeCommand, focusFirst$5 as focusFirst, focusIndex$1 as focusIndex, focusLast$5 as focusLast, 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 };
301
+ export { executeCommand, focusFirst$5 as focusFirst, focusIndex$1 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt$1 as 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 };
297
302
  }
298
303
  declare namespace Search {
299
304
  export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 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 };
@@ -1592,7 +1592,7 @@ const toggleLineComment = async () => {
1592
1592
  const toggleBlockComment = async () => {
1593
1593
  await invoke('Editor.toggleBlockComment');
1594
1594
  };
1595
- const selectAll = async () => {
1595
+ const selectAll$1 = async () => {
1596
1596
  await invoke('Editor.toggleBlockComment');
1597
1597
  };
1598
1598
  const openColorPicker = async () => {
@@ -1696,7 +1696,7 @@ const TestFrameWorkComponentEditor = {
1696
1696
  openSourceActions,
1697
1697
  organizeImports,
1698
1698
  rename: rename$1,
1699
- selectAll,
1699
+ selectAll: selectAll$1,
1700
1700
  setCursor,
1701
1701
  setDeltaY,
1702
1702
  setSelections,
@@ -1726,8 +1726,8 @@ const TestFrameWorkComponentEditorCompletion = {
1726
1726
  const openContextMenu = async index => {
1727
1727
  await invoke('Explorer.handleContextMenuKeyboard', index);
1728
1728
  };
1729
- const handleDragLeave = async index => {
1730
- await invoke('Explorer.handleDragLeave', index);
1729
+ const handleDragLeave = async () => {
1730
+ await invoke('Explorer.handleDragLeave');
1731
1731
  };
1732
1732
  const focus$1 = async () => {
1733
1733
  await invoke('Explorer.focusIndex', -1);
@@ -1735,6 +1735,12 @@ const focus$1 = async () => {
1735
1735
  const focusNext$7 = async () => {
1736
1736
  await invoke('Explorer.focusNext');
1737
1737
  };
1738
+ const selectUp = async () => {
1739
+ await invoke('Explorer.selectUp');
1740
+ };
1741
+ const selectDown = async () => {
1742
+ await invoke('Explorer.selectDown');
1743
+ };
1738
1744
  const refresh = async () => {
1739
1745
  await invoke('Explorer.refresh');
1740
1746
  };
@@ -1768,12 +1774,18 @@ const newFolder = async () => {
1768
1774
  const handleClick$1 = async index => {
1769
1775
  await invoke('Explorer.handleClick', index);
1770
1776
  };
1777
+ const handleClickAt$1 = async (button, ctrlKey, shiftKey, x, y) => {
1778
+ await invoke('Explorer.handleClickAt', button, ctrlKey, shiftKey, x, y);
1779
+ };
1771
1780
  const handleDrop = async (x, y, fileIds, fileList) => {
1772
1781
  await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
1773
1782
  };
1774
1783
  const rename = async () => {
1775
1784
  await invoke('Explorer.renameDirent');
1776
1785
  };
1786
+ const selectAll = async () => {
1787
+ await invoke('Explorer.selectAll');
1788
+ };
1777
1789
  const renameDirent = async () => {
1778
1790
  await invoke('Explorer.renameDirent');
1779
1791
  };
@@ -1792,6 +1804,9 @@ const expandAll = async () => {
1792
1804
  const handleDragOver = async (x, y) => {
1793
1805
  await invoke('Explorer.handleDragOver', x, y);
1794
1806
  };
1807
+ const selectIndices = async indices => {
1808
+ await invoke('Explorer.selectIndices', indices);
1809
+ };
1795
1810
 
1796
1811
  const TestFrameWorkComponentExplorer = {
1797
1812
  __proto__: null,
@@ -1807,6 +1822,7 @@ const TestFrameWorkComponentExplorer = {
1807
1822
  focusNext: focusNext$7,
1808
1823
  handleArrowLeft,
1809
1824
  handleClick: handleClick$1,
1825
+ handleClickAt: handleClickAt$1,
1810
1826
  handleDragLeave,
1811
1827
  handleDragOver,
1812
1828
  handleDrop,
@@ -1817,6 +1833,10 @@ const TestFrameWorkComponentExplorer = {
1817
1833
  removeDirent,
1818
1834
  rename,
1819
1835
  renameDirent,
1836
+ selectAll,
1837
+ selectDown,
1838
+ selectIndices,
1839
+ selectUp,
1820
1840
  updateEditingValue
1821
1841
  };
1822
1842
 
@@ -2514,12 +2534,10 @@ const getWebViewInfo = async webViewId => {
2514
2534
  return info;
2515
2535
  };
2516
2536
 
2517
- // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
2518
2537
  const setWebViewPort = async (uid, port, origin, portType) => {
2519
2538
  await invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
2520
2539
  };
2521
2540
 
2522
- // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
2523
2541
  const waitForFirstEventEvent = async port => {
2524
2542
  const {
2525
2543
  resolve,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",