@lvce-editor/test-worker 4.28.0 → 4.29.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
@@ -91,6 +91,7 @@ declare const handleInputBlur: () => Promise<void>;
91
91
  declare const focus$1: () => Promise<void>;
92
92
  declare const focusNext$2: () => Promise<void>;
93
93
  declare const selectUp: () => Promise<void>;
94
+ declare const handleDragOverIndex: (index: number) => Promise<void>;
94
95
  declare const selectDown: () => Promise<void>;
95
96
  declare const refresh: () => Promise<void>;
96
97
  declare const focusIndex: (index: number) => Promise<void>;
@@ -117,11 +118,16 @@ declare const handleCut: () => Promise<void>;
117
118
  declare const handleCopy: () => Promise<void>;
118
119
  declare const handlePaste: () => Promise<void>;
119
120
  declare const selectIndices: (indices: readonly number[]) => Promise<void>;
121
+ declare const toggleIndividualSelection: (index: number) => Promise<void>;
120
122
  declare const addWebExtension: (relativePath: string) => Promise<void>;
121
123
  declare const addNodeExtension: (relativePath: string) => Promise<void>;
122
124
  declare const selectFeature: (name: string) => Promise<void>;
123
125
  declare const selectTab: (name: string) => Promise<void>;
124
126
  declare const open: (extensionId: string) => Promise<void>;
127
+ declare const openFeature: (featureName: string) => Promise<void>;
128
+ declare const openThemes: () => Promise<void>;
129
+ declare const openCommands: () => Promise<void>;
130
+ declare const openWebViews: () => Promise<void>;
125
131
  declare const writeFile: (path: string, content: string) => Promise<void>;
126
132
  declare const mkdir: (path: string) => Promise<void>;
127
133
  declare const remove: (uri: string) => Promise<void>;
@@ -178,14 +184,23 @@ declare const open$2: (id: string) => Promise<void>;
178
184
  declare const getNodePath: () => Promise<string>;
179
185
  declare const isFirefox: () => boolean;
180
186
  declare const show$1: () => Promise<void>;
187
+ declare const handleFilterInput: (text: string) => Promise<void>;
188
+ declare const copyMessage: () => Promise<void>;
189
+ declare const focusIndex$1: (index: number) => Promise<void>;
190
+ declare const handleArrowLeft$1: () => Promise<void>;
191
+ declare const handleArrowRight: () => Promise<void>;
192
+ declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
193
+ declare const handleIconThemeChange: () => Promise<void>;
194
+ declare const viewAsList: () => Promise<void>;
195
+ declare const viewAsTable: () => Promise<void>;
181
196
  declare const open$3: () => Promise<void>;
182
197
  declare const handleInput$1: (value: string) => Promise<void>;
183
- declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
198
+ declare const handleClickAt$2: (x: number, y: number) => Promise<void>;
184
199
  declare const setValue$1: (value: string) => Promise<void>;
185
200
  declare const focusNext$7: () => Promise<void>;
186
201
  declare const focusFirst$5: () => Promise<void>;
187
202
  declare const focusLast$5: () => Promise<void>;
188
- declare const focusIndex$1: (index: number) => Promise<void>;
203
+ declare const focusIndex$2: (index: number) => Promise<void>;
189
204
  declare const focusPrevious$5: () => Promise<void>;
190
205
  declare const selectItem$1: (label: string) => Promise<void>;
191
206
  declare const selectIndex$2: (index: number) => Promise<void>;
@@ -209,7 +224,7 @@ declare const openDetails: () => Promise<void>;
209
224
  declare const collapseDetails: () => Promise<void>;
210
225
  declare const dismissItem: () => Promise<void>;
211
226
  declare const focusFirst$6: () => Promise<void>;
212
- declare const focusIndex$2: (index: number) => Promise<void>;
227
+ declare const focusIndex$3: (index: number) => Promise<void>;
213
228
  declare const selectIndex$4: (index: number) => Promise<void>;
214
229
  declare const focusNext$8: () => Promise<void>;
215
230
  declare const handleWheel$1: (deltaMode: number, deltaY: number) => Promise<void>;
@@ -233,7 +248,7 @@ declare const update$1: () => Promise<void>;
233
248
  declare const closeMenu: () => Promise<void>;
234
249
  declare const focus$2: () => Promise<void>;
235
250
  declare const focusFirst$7: () => Promise<void>;
236
- declare const focusIndex$3: (index: number) => Promise<void>;
251
+ declare const focusIndex$4: (index: number) => Promise<void>;
237
252
  declare const focusLast$6: () => Promise<void>;
238
253
  declare const focusNext$9: () => Promise<void>;
239
254
  declare const focusPrevious$7: () => Promise<void>;
@@ -284,13 +299,13 @@ declare namespace EditorCompletion {
284
299
  export { selectCurrentIndex, selectIndex };
285
300
  }
286
301
  declare namespace Explorer {
287
- export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
302
+ export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleBlur, handleClick$1 as handleClick, handleClickAt, handleCopy, handleCut, handleDragLeave, handleDragOver, handleDragOverIndex, handleDrop, handleInputBlur, handlePaste, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, toggleIndividualSelection, updateEditingValue };
288
303
  }
289
304
  declare namespace Extension {
290
305
  export { addNodeExtension, addWebExtension };
291
306
  }
292
307
  declare namespace ExtensionDetail {
293
- export { open, selectFeature, selectTab };
308
+ export { open, openCommands, openFeature, openThemes, openWebViews, selectFeature, selectTab };
294
309
  }
295
310
  declare namespace FileSystem {
296
311
  export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, remove, writeFile };
@@ -320,16 +335,16 @@ declare namespace Platform {
320
335
  export { getNodePath, isFirefox };
321
336
  }
322
337
  declare namespace Problems {
323
- export { show$1 as show };
338
+ export { copyMessage, focusIndex$1 as focusIndex, handleArrowLeft$1 as handleArrowLeft, handleArrowRight, handleClickAt$1 as handleClickAt, handleFilterInput, handleIconThemeChange, show$1 as show, viewAsList, viewAsTable };
324
339
  }
325
340
  declare namespace QuickPick {
326
- 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 };
341
+ export { executeCommand, focusFirst$5 as focusFirst, focusIndex$2 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt$2 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 };
327
342
  }
328
343
  declare namespace RunAndDebug {
329
344
  export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$3 as selectIndex, setPauseOnExceptions };
330
345
  }
331
346
  declare namespace Search {
332
- 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$4 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
347
+ export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$3 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$4 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
333
348
  }
334
349
  declare namespace Settings {
335
350
  export { update };
@@ -344,7 +359,7 @@ declare namespace StatusBar {
344
359
  export { update$1 as update };
345
360
  }
346
361
  declare namespace TitleBarMenuBar {
347
- export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$3 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
362
+ export { closeMenu, focus$2 as focus, focusFirst$7 as focusFirst, focusIndex$4 as focusIndex, focusLast$6 as focusLast, focusNext$9 as focusNext, focusPrevious$7 as focusPrevious, handleKeyArrowDown, handleKeyArrowLeft, handleKeyArrowRight, handleKeyArrowUp, handleKeyEnd, handleKeyEscape, handleKeyHome, handleKeySpace, toggleIndex, toggleMenu };
348
363
  }
349
364
  declare namespace Url {
350
365
  export { resolve, setUrl };
@@ -958,7 +958,7 @@ const listen$1 = async (module, options) => {
958
958
  const ipc = module.wrap(rawIpc);
959
959
  return ipc;
960
960
  };
961
- const create$a = async ({
961
+ const create$d = async ({
962
962
  commandMap,
963
963
  messagePort,
964
964
  isMessagePortOpen
@@ -976,7 +976,7 @@ const create$a = async ({
976
976
  };
977
977
  const MessagePortRpcParent = {
978
978
  __proto__: null,
979
- create: create$a
979
+ create: create$d
980
980
  };
981
981
  const create$2 = async ({
982
982
  commandMap
@@ -1045,15 +1045,14 @@ const create$1 = rpcId => {
1045
1045
  };
1046
1046
  const RendererWorker$1 = 1;
1047
1047
  const {
1048
- invoke: invoke$4,
1048
+ invoke: invoke$3,
1049
1049
  invokeAndTransfer: invokeAndTransfer$3,
1050
1050
  set: set$3} = create$1(RendererWorker$1);
1051
1051
  const RendererWorker = {
1052
1052
  __proto__: null,
1053
- invoke: invoke$4,
1053
+ invoke: invoke$3,
1054
1054
  invokeAndTransfer: invokeAndTransfer$3,
1055
- set: set$3
1056
- };
1055
+ set: set$3};
1057
1056
 
1058
1057
  const {
1059
1058
  set: set$1,
@@ -2020,19 +2019,23 @@ const focusNext$7 = async () => {
2020
2019
  const selectUp = async () => {
2021
2020
  await invoke('Explorer.selectUp');
2022
2021
  };
2022
+ const handleDragOverIndex = async index => {
2023
+ // @ts-ignore
2024
+ await invoke('Explorer.handleDragOverIndex', index);
2025
+ };
2023
2026
  const selectDown = async () => {
2024
2027
  await invoke('Explorer.selectDown');
2025
2028
  };
2026
2029
  const refresh = async () => {
2027
2030
  await invoke('Explorer.refresh');
2028
2031
  };
2029
- const focusIndex$3 = async index => {
2032
+ const focusIndex$4 = async index => {
2030
2033
  await invoke('Explorer.focusIndex', index);
2031
2034
  };
2032
2035
  const clickCurrent = async () => {
2033
2036
  await invoke('Explorer.handleClickCurrent');
2034
2037
  };
2035
- const handleArrowLeft = async () => {
2038
+ const handleArrowLeft$1 = async () => {
2036
2039
  await invoke('Explorer.handleArrowLeft');
2037
2040
  };
2038
2041
  const focusLast$5 = async () => {
@@ -2056,7 +2059,7 @@ const newFolder = async () => {
2056
2059
  const handleClick$1 = async index => {
2057
2060
  await invoke('Explorer.handleClick', index);
2058
2061
  };
2059
- const handleClickAt$1 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
2062
+ const handleClickAt$2 = async (preventDefault, button, ctrlKey, shiftKey, x, y) => {
2060
2063
  // @ts-ignore
2061
2064
  await invoke('Explorer.handleClickAt', preventDefault, button, ctrlKey, shiftKey, x, y);
2062
2065
  };
@@ -2103,6 +2106,10 @@ const handlePaste = async () => {
2103
2106
  const selectIndices = async indices => {
2104
2107
  await invoke('Explorer.selectIndices', indices);
2105
2108
  };
2109
+ const toggleIndividualSelection = async index => {
2110
+ // @ts-ignore
2111
+ await invoke('Explorer.toggleIndividualSelection', index);
2112
+ };
2106
2113
 
2107
2114
  const TestFrameWorkComponentExplorer = {
2108
2115
  __proto__: null,
@@ -2113,17 +2120,18 @@ const TestFrameWorkComponentExplorer = {
2113
2120
  expandRecursively,
2114
2121
  focus: focus$1,
2115
2122
  focusFirst: focusFirst$6,
2116
- focusIndex: focusIndex$3,
2123
+ focusIndex: focusIndex$4,
2117
2124
  focusLast: focusLast$5,
2118
2125
  focusNext: focusNext$7,
2119
- handleArrowLeft,
2126
+ handleArrowLeft: handleArrowLeft$1,
2120
2127
  handleBlur,
2121
2128
  handleClick: handleClick$1,
2122
- handleClickAt: handleClickAt$1,
2129
+ handleClickAt: handleClickAt$2,
2123
2130
  handleCopy,
2124
2131
  handleCut,
2125
2132
  handleDragLeave,
2126
2133
  handleDragOver,
2134
+ handleDragOverIndex,
2127
2135
  handleDrop,
2128
2136
  handleInputBlur,
2129
2137
  handlePaste,
@@ -2138,6 +2146,7 @@ const TestFrameWorkComponentExplorer = {
2138
2146
  selectDown,
2139
2147
  selectIndices,
2140
2148
  selectUp,
2149
+ toggleIndividualSelection,
2141
2150
  updateEditingValue
2142
2151
  };
2143
2152
 
@@ -2168,10 +2177,27 @@ const open$4 = extensionId => {
2168
2177
  const uri = `extension-detail://${extensionId}`;
2169
2178
  return invoke('Main.openUri', uri);
2170
2179
  };
2180
+ const openFeature = featureName => {
2181
+ // @ts-ignore
2182
+ return invoke('ExtensionDetail.handleFeaturesClick', featureName);
2183
+ };
2184
+ const openThemes = async () => {
2185
+ await openFeature('Themes');
2186
+ };
2187
+ const openCommands = async () => {
2188
+ await openFeature('Commands');
2189
+ };
2190
+ const openWebViews = async () => {
2191
+ await openFeature('WebView');
2192
+ };
2171
2193
 
2172
2194
  const TestFrameWorkComponentExtensionDetail = {
2173
2195
  __proto__: null,
2174
2196
  open: open$4,
2197
+ openCommands,
2198
+ openFeature,
2199
+ openThemes,
2200
+ openWebViews,
2175
2201
  selectFeature,
2176
2202
  selectTab
2177
2203
  };
@@ -2544,10 +2570,55 @@ const show = async () => {
2544
2570
  // @ts-ignore
2545
2571
  await invoke('Panel.selectIndex', 0);
2546
2572
  };
2573
+ const handleFilterInput = async text => {
2574
+ // @ts-ignore
2575
+ await invoke('Problems.handleFilterInput', text);
2576
+ };
2577
+ const copyMessage = async () => {
2578
+ // @ts-ignore
2579
+ await invoke('Problems.copyMessage');
2580
+ };
2581
+ const focusIndex$3 = async index => {
2582
+ // @ts-ignore
2583
+ await invoke('Problems.focusIndex', index);
2584
+ };
2585
+ const handleArrowLeft = async () => {
2586
+ // @ts-ignore
2587
+ await invoke('Problems.handleArrowLeft');
2588
+ };
2589
+ const handleArrowRight = async () => {
2590
+ // @ts-ignore
2591
+ await invoke('Problems.handleArrowRight');
2592
+ };
2593
+ const handleClickAt$1 = async (x, y) => {
2594
+ // @ts-ignore
2595
+ await invoke('Problems.handleClickAt', x, y);
2596
+ };
2597
+ const handleIconThemeChange = async () => {
2598
+ // @ts-ignore
2599
+ await invoke('Problems.handleIconThemeChange');
2600
+ };
2601
+ const viewAsList = async () => {
2602
+ // @ts-ignore
2603
+ await invoke('Problems.viewAsList');
2604
+ };
2605
+ const viewAsTable = async () => {
2606
+ // @ts-ignore
2607
+ await invoke('Problems.viewAsTable');
2608
+ };
2547
2609
 
2548
2610
  const TestFrameWorkComponentProblems = {
2549
2611
  __proto__: null,
2550
- show
2612
+ copyMessage,
2613
+ focusIndex: focusIndex$3,
2614
+ handleArrowLeft,
2615
+ handleArrowRight,
2616
+ handleClickAt: handleClickAt$1,
2617
+ handleFilterInput,
2618
+ handleIconThemeChange,
2619
+ show,
2620
+ viewAsList,
2621
+ viewAsTable
2551
2622
  };
2552
2623
 
2553
2624
  const QuickPick = 'QuickPick';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.28.0",
3
+ "version": "4.29.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",