@lvce-editor/test-worker 4.2.0 → 4.4.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
@@ -131,6 +131,15 @@ declare const press: (key: string) => Promise<void>;
131
131
  declare const openUri: (uri: string) => Promise<void>;
132
132
  declare const splitRight: () => Promise<void>;
133
133
  declare const openKeyBindings: () => Promise<void>;
134
+ declare const closeAllEditors: () => Promise<void>;
135
+ declare const closeTabsLeft: () => Promise<void>;
136
+ declare const closeTabsRight: () => Promise<void>;
137
+ declare const closeOthers: () => Promise<void>;
138
+ declare const closeActiveEditor: () => Promise<void>;
139
+ declare const focusFirst$3: () => Promise<void>;
140
+ declare const focusNext$5: () => Promise<void>;
141
+ declare const focusPrevious$3: () => Promise<void>;
142
+ declare const focusLast$3: () => Promise<void>;
134
143
  declare const open$2: (id: string) => Promise<void>;
135
144
  declare const getNodePath: () => Promise<string>;
136
145
  declare const isFirefox: () => boolean;
@@ -138,9 +147,9 @@ declare const show$1: () => Promise<void>;
138
147
  declare const open$3: () => Promise<void>;
139
148
  declare const handleInput$1: (value: string) => Promise<void>;
140
149
  declare const setValue$1: (value: string) => Promise<void>;
141
- declare const focusNext$5: () => Promise<void>;
150
+ declare const focusNext$6: () => Promise<void>;
142
151
  declare const focusIndex$1: (index: number) => Promise<void>;
143
- declare const focusPrevious$3: () => Promise<void>;
152
+ declare const focusPrevious$4: () => Promise<void>;
144
153
  declare const selectItem$1: (label: string) => Promise<void>;
145
154
  declare const selectIndex$1: (index: number) => Promise<void>;
146
155
  declare const executeCommand: (label: string) => Promise<void>;
@@ -153,14 +162,14 @@ declare const clearSearchResults: () => Promise<void>;
153
162
  declare const openDetails: () => Promise<void>;
154
163
  declare const collapseDetails: () => Promise<void>;
155
164
  declare const dismissItem: () => Promise<void>;
156
- declare const focusFirst$3: () => Promise<void>;
165
+ declare const focusFirst$4: () => Promise<void>;
157
166
  declare const focusIndex$2: (index: number) => Promise<void>;
158
167
  declare const selectIndex$2: (index: number) => Promise<void>;
159
- declare const focusNext$6: () => Promise<void>;
168
+ declare const focusNext$7: () => Promise<void>;
160
169
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
161
170
  declare const focusNextPage: () => Promise<void>;
162
171
  declare const focusPreviousPage: () => Promise<void>;
163
- declare const focusPrevious$4: () => Promise<void>;
172
+ declare const focusPrevious$5: () => Promise<void>;
164
173
  declare const toggleSearchDetails: () => Promise<void>;
165
174
  declare const toggleMatchCase: () => Promise<void>;
166
175
  declare const toggleMatchWholeWord: () => Promise<void>;
@@ -175,11 +184,11 @@ declare const handleInput$2: (text: string) => Promise<void>;
175
184
  declare const update$1: () => Promise<void>;
176
185
  declare const closeMenu: () => Promise<void>;
177
186
  declare const focus$2: () => Promise<void>;
178
- declare const focusFirst$4: () => Promise<void>;
187
+ declare const focusFirst$5: () => Promise<void>;
179
188
  declare const focusIndex$3: (index: number) => Promise<void>;
180
- declare const focusLast$3: () => Promise<void>;
181
- declare const focusNext$7: () => Promise<void>;
182
- declare const focusPrevious$5: () => Promise<void>;
189
+ declare const focusLast$4: () => Promise<void>;
190
+ declare const focusNext$8: () => Promise<void>;
191
+ declare const focusPrevious$6: () => Promise<void>;
183
192
  declare const handleKeyArrowDown: () => Promise<void>;
184
193
  declare const handleKeyArrowLeft: () => Promise<void>;
185
194
  declare const handleKeyArrowRight: () => Promise<void>;
@@ -242,7 +251,7 @@ declare namespace KeyBoard {
242
251
  export { press };
243
252
  }
244
253
  declare namespace Main {
245
- export { openKeyBindings, openUri, splitRight };
254
+ 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 };
246
255
  }
247
256
  declare namespace Panel {
248
257
  export { open$2 as open };
@@ -254,10 +263,10 @@ declare namespace Problems {
254
263
  export { show$1 as show };
255
264
  }
256
265
  declare namespace QuickPick {
257
- export { executeCommand, focusIndex$1 as focusIndex, focusNext$5 as focusNext, focusPrevious$3 as focusPrevious, handleInput$1 as handleInput, open$3 as open, selectIndex$1 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
266
+ 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 };
258
267
  }
259
268
  declare namespace Search {
260
- export { clearSearchResults, collapseDetails, dismissItem, focusFirst$3 as focusFirst, focusIndex$2 as focusIndex, focusNext$6 as focusNext, focusNextPage, focusPrevious$4 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 };
269
+ 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 };
261
270
  }
262
271
  declare namespace Settings {
263
272
  export { update };
@@ -272,7 +281,7 @@ declare namespace StatusBar {
272
281
  export { update$1 as update };
273
282
  }
274
283
  declare namespace TitleBarMenuBar {
275
- export { closeMenu, focus$2 as focus, focusFirst$4 as focusFirst, focusIndex$3 as focusIndex, focusLast$3 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
284
+ 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 };
276
285
  }
277
286
  declare namespace WebView {
278
287
  export { fromId };
@@ -1334,17 +1334,17 @@ const handleClickClose = async () => {
1334
1334
  const handleClickCopy = async () => {
1335
1335
  return invoke('About.handleClickCopy');
1336
1336
  };
1337
- const focusNext$7 = async () => {
1337
+ const focusNext$8 = async () => {
1338
1338
  return invoke('About.focusNext');
1339
1339
  };
1340
- const focusPrevious$5 = async () => {
1340
+ const focusPrevious$6 = async () => {
1341
1341
  return invoke('About.focusPrevious');
1342
1342
  };
1343
1343
 
1344
1344
  const TestFrameWorkComponentAbout = {
1345
1345
  __proto__: null,
1346
- focusNext: focusNext$7,
1347
- focusPrevious: focusPrevious$5,
1346
+ focusNext: focusNext$8,
1347
+ focusPrevious: focusPrevious$6,
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$4 = async () => {
1357
+ const focusFirst$5 = async () => {
1358
1358
  await invoke('ActivityBar.focusFirst');
1359
1359
  };
1360
- const focusLast$3 = async () => {
1360
+ const focusLast$4 = async () => {
1361
1361
  await invoke('ActivityBar.focusLast');
1362
1362
  };
1363
- const focusNext$6 = async () => {
1363
+ const focusNext$7 = async () => {
1364
1364
  await invoke('ActivityBar.focusNext');
1365
1365
  };
1366
- const focusPrevious$4 = async () => {
1366
+ const focusPrevious$5 = 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$4,
1383
- focusLast: focusLast$3,
1384
- focusNext: focusNext$6,
1385
- focusPrevious: focusPrevious$4,
1382
+ focusFirst: focusFirst$5,
1383
+ focusLast: focusLast$4,
1384
+ focusNext: focusNext$7,
1385
+ focusPrevious: focusPrevious$5,
1386
1386
  handleClick: handleClick$2,
1387
1387
  handleContextMenu: handleContextMenu$1,
1388
1388
  selectCurrent
@@ -1692,7 +1692,7 @@ const openContextMenu = async index => {
1692
1692
  const focus$1 = async () => {
1693
1693
  await invoke('Explorer.focusIndex', -1);
1694
1694
  };
1695
- const focusNext$5 = async () => {
1695
+ const focusNext$6 = async () => {
1696
1696
  await invoke('Explorer.focusNext');
1697
1697
  };
1698
1698
  const focusIndex$3 = async index => {
@@ -1704,10 +1704,10 @@ const clickCurrent = async () => {
1704
1704
  const handleArrowLeft = async () => {
1705
1705
  await invoke('Explorer.handleArrowLeft');
1706
1706
  };
1707
- const focusLast$2 = async () => {
1707
+ const focusLast$3 = async () => {
1708
1708
  await invoke('Explorer.focusLast');
1709
1709
  };
1710
- const focusFirst$3 = async () => {
1710
+ const focusFirst$4 = async () => {
1711
1711
  await invoke('Explorer.focusFirst');
1712
1712
  };
1713
1713
  const removeDirent = async () => {
@@ -1746,10 +1746,10 @@ const TestFrameWorkComponentExplorer = {
1746
1746
  expandAll,
1747
1747
  expandRecursively,
1748
1748
  focus: focus$1,
1749
- focusFirst: focusFirst$3,
1749
+ focusFirst: focusFirst$4,
1750
1750
  focusIndex: focusIndex$3,
1751
- focusLast: focusLast$2,
1752
- focusNext: focusNext$5,
1751
+ focusLast: focusLast$3,
1752
+ focusNext: focusNext$6,
1753
1753
  handleArrowLeft,
1754
1754
  handleClick: handleClick$1,
1755
1755
  newFile,
@@ -1856,7 +1856,7 @@ const TestFrameWorkComponentFileSystem = {
1856
1856
  writeFile
1857
1857
  };
1858
1858
 
1859
- const focusNext$4 = async () => {
1859
+ const focusNext$5 = async () => {
1860
1860
  await invoke('FindWidget.focusNext');
1861
1861
  };
1862
1862
  const setValue$2 = async value => {
@@ -1865,7 +1865,7 @@ const setValue$2 = async value => {
1865
1865
 
1866
1866
  const TestFrameWorkComponentFindWidget = {
1867
1867
  __proto__: null,
1868
- focusNext: focusNext$4,
1868
+ focusNext: focusNext$5,
1869
1869
  setValue: setValue$2
1870
1870
  };
1871
1871
 
@@ -1893,16 +1893,16 @@ const handleWheel$1 = (deltaMode, deltaY) => {
1893
1893
  const handleDoubleClick = (x, y) => {
1894
1894
  return invoke('KeyBindings.handleDoubleClick', x, y);
1895
1895
  };
1896
- const focusNext$3 = () => {
1896
+ const focusNext$4 = () => {
1897
1897
  return invoke('KeyBindings.focusNext');
1898
1898
  };
1899
- const focusPrevious$3 = () => {
1899
+ const focusPrevious$4 = () => {
1900
1900
  return invoke('KeyBindings.focusPrevious');
1901
1901
  };
1902
- const focusFirst$2 = () => {
1902
+ const focusFirst$3 = () => {
1903
1903
  return invoke('KeyBindings.focusFirst');
1904
1904
  };
1905
- const focusLast$1 = () => {
1905
+ const focusLast$2 = () => {
1906
1906
  return invoke('KeyBindings.focusLast');
1907
1907
  };
1908
1908
  const toggleRecordingKeys = () => {
@@ -1952,10 +1952,10 @@ const TestFrameWorkComponentKeyBindingsEditor = {
1952
1952
  clearInput,
1953
1953
  copyCommandId,
1954
1954
  copyCommandTitle,
1955
- focusFirst: focusFirst$2,
1956
- focusLast: focusLast$1,
1957
- focusNext: focusNext$3,
1958
- focusPrevious: focusPrevious$3,
1955
+ focusFirst: focusFirst$3,
1956
+ focusLast: focusLast$2,
1957
+ focusNext: focusNext$4,
1958
+ focusPrevious: focusPrevious$4,
1959
1959
  handleClick,
1960
1960
  handleContextMenu,
1961
1961
  handleDoubleClick,
@@ -1971,6 +1971,10 @@ const TestFrameWorkComponentKeyBindingsEditor = {
1971
1971
  toggleRecordingKeys
1972
1972
  };
1973
1973
 
1974
+ const Control = 'Control';
1975
+ const Space = 'Space';
1976
+ const Alt = 'Alt';
1977
+
1974
1978
  const getKeyOptions = rawKey => {
1975
1979
  if (rawKey.includes('+')) {
1976
1980
  const parts = rawKey.split('+');
@@ -1979,13 +1983,13 @@ const getKeyOptions = rawKey => {
1979
1983
  let key = '';
1980
1984
  for (const part of parts) {
1981
1985
  switch (part) {
1982
- case 'Control':
1986
+ case Control:
1983
1987
  ctrlKey = true;
1984
1988
  break;
1985
- case 'Space':
1989
+ case Space:
1986
1990
  key = ' ';
1987
1991
  break;
1988
- case 'Alt':
1992
+ case Alt:
1989
1993
  altKey = true;
1990
1994
  break;
1991
1995
  default:
@@ -2030,9 +2034,45 @@ const splitRight = async () => {
2030
2034
  const openKeyBindings = async () => {
2031
2035
  await invoke('Main.openKeyBindings');
2032
2036
  };
2037
+ const closeAllEditors = async () => {
2038
+ await invoke('Main.closeAllEditors');
2039
+ };
2040
+ const closeTabsLeft = async () => {
2041
+ await invoke('Main.closeTabsLeft');
2042
+ };
2043
+ const closeTabsRight = async () => {
2044
+ await invoke('Main.closeTabsRight');
2045
+ };
2046
+ const closeOthers = async () => {
2047
+ await invoke('Main.closeOthers');
2048
+ };
2049
+ const closeActiveEditor = async () => {
2050
+ await invoke('Main.closeActiveEditor');
2051
+ };
2052
+ const focusFirst$2 = async () => {
2053
+ await invoke('Main.focusFirst');
2054
+ };
2055
+ const focusNext$3 = async () => {
2056
+ await invoke('Main.focusNext');
2057
+ };
2058
+ const focusPrevious$3 = async () => {
2059
+ await invoke('Main.focusPrevious');
2060
+ };
2061
+ const focusLast$1 = async () => {
2062
+ await invoke('Main.focusLast');
2063
+ };
2033
2064
 
2034
2065
  const TestFrameWorkComponentMain = {
2035
2066
  __proto__: null,
2067
+ closeActiveEditor,
2068
+ closeAllEditors,
2069
+ closeOthers,
2070
+ closeTabsLeft,
2071
+ closeTabsRight,
2072
+ focusFirst: focusFirst$2,
2073
+ focusLast: focusLast$1,
2074
+ focusNext: focusNext$3,
2075
+ focusPrevious: focusPrevious$3,
2036
2076
  openKeyBindings,
2037
2077
  openUri,
2038
2078
  splitRight
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",