@lvce-editor/test-worker 4.25.0 → 4.27.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
@@ -15,6 +15,10 @@ declare const handleClick: (index: number) => Promise<void>;
15
15
  declare const handleContextMenu: () => Promise<void>;
16
16
  declare const selectCurrent: () => Promise<void>;
17
17
  declare const getBaseUrl: () => string;
18
+ declare const readNativeFiles: () => Promise<void>;
19
+ declare const writeNativeFiles: (uris: readonly string[]) => Promise<void>;
20
+ declare const enableMemoryClipBoard: () => Promise<void>;
21
+ declare const disableMemoryClipBoard: () => Promise<void>;
18
22
  declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
19
23
  declare const selectItem: (text: string) => Promise<void>;
20
24
  declare const openIframeInspector: () => Promise<void>;
@@ -191,7 +195,9 @@ declare const addWatchExpression: (expression: string) => Promise<void>;
191
195
  declare const handleWatchValueChange: () => Promise<void>;
192
196
  declare const acceptWatchExpressionEdit: () => Promise<void>;
193
197
  declare const selectIndex$3: (index: number) => Promise<void>;
198
+ declare const setPauseOnExceptions: (value: number) => Promise<void>;
194
199
  declare const handleRename: () => Promise<void>;
200
+ declare const handleSpace: () => Promise<void>;
195
201
  declare const setValue$2: (value: string) => Promise<void>;
196
202
  declare const setReplaceValue: (value: string) => Promise<void>;
197
203
  declare const setExcludeValue: (value: string) => Promise<void>;
@@ -255,6 +261,9 @@ declare namespace ActivityBar {
255
261
  declare namespace BaseUrl {
256
262
  export { getBaseUrl };
257
263
  }
264
+ declare namespace ClipBoard {
265
+ export { disableMemoryClipBoard, enableMemoryClipBoard, readNativeFiles, writeNativeFiles };
266
+ }
258
267
  declare namespace Command {
259
268
  export { execute };
260
269
  }
@@ -313,7 +322,7 @@ declare namespace QuickPick {
313
322
  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 };
314
323
  }
315
324
  declare namespace RunAndDebug {
316
- export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleWatchValueChange, selectIndex$3 as selectIndex };
325
+ export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$3 as selectIndex, setPauseOnExceptions };
317
326
  }
318
327
  declare namespace Search {
319
328
  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 };
@@ -341,6 +350,7 @@ export interface TestApi {
341
350
  readonly About: typeof About,
342
351
  readonly ActivityBar: typeof ActivityBar,
343
352
  readonly BaseUrl: typeof BaseUrl,
353
+ readonly ClipBoard: typeof ClipBoard,
344
354
  readonly Command: typeof Command,
345
355
  readonly ContextMenu: typeof ContextMenu,
346
356
  readonly Developer: typeof Developer,
@@ -1658,6 +1658,30 @@ const TestFrameWorkComponentBaseUrl = {
1658
1658
  getBaseUrl
1659
1659
  };
1660
1660
 
1661
+ const readNativeFiles = async () => {
1662
+ await invoke('ClipBoard.readNativeFiles');
1663
+ };
1664
+ const writeNativeFiles = async uris => {
1665
+ // @ts-ignore
1666
+ await invoke('ClipBoard.writeNativeFiles', uris);
1667
+ };
1668
+ const enableMemoryClipBoard = async () => {
1669
+ // @ts-ignore
1670
+ await invoke('ClipBoard.enableMemoryClipBoard');
1671
+ };
1672
+ const disableMemoryClipBoard = async () => {
1673
+ // @ts-ignore
1674
+ await invoke('ClipBoard.disableMemoryClipBoard');
1675
+ };
1676
+
1677
+ const TestFrameworkComponentClipBoard = {
1678
+ __proto__: null,
1679
+ disableMemoryClipBoard,
1680
+ enableMemoryClipBoard,
1681
+ readNativeFiles,
1682
+ writeNativeFiles
1683
+ };
1684
+
1661
1685
  const execute$1 = async (id, ...args) => {
1662
1686
  // @ts-ignore
1663
1687
  return invoke(id, ...args);
@@ -2609,10 +2633,18 @@ const selectIndex$2 = async index => {
2609
2633
  // @ts-ignore
2610
2634
  await invoke('Run And Debug.selectIndex', index);
2611
2635
  };
2636
+ const setPauseOnExceptions = async value => {
2637
+ // @ts-ignore
2638
+ await invoke('Run And Debug.setPauseOnExceptions', value);
2639
+ };
2612
2640
  const handleRename = async () => {
2613
2641
  // @ts-ignore
2614
2642
  await invoke('Run And Debug.handleRename');
2615
2643
  };
2644
+ const handleSpace = async () => {
2645
+ // @ts-ignore
2646
+ await invoke('Run And Debug.handleSpace');
2647
+ };
2616
2648
 
2617
2649
  const TestFrameWorkComponentRunAndDebug = {
2618
2650
  __proto__: null,
@@ -2620,8 +2652,10 @@ const TestFrameWorkComponentRunAndDebug = {
2620
2652
  addWatchExpression,
2621
2653
  handleClickSectionWatch,
2622
2654
  handleRename,
2655
+ handleSpace,
2623
2656
  handleWatchValueChange,
2624
- selectIndex: selectIndex$2
2657
+ selectIndex: selectIndex$2,
2658
+ setPauseOnExceptions
2625
2659
  };
2626
2660
 
2627
2661
  const Script = 2;
@@ -2941,6 +2975,7 @@ const TestFrameWorkComponent = {
2941
2975
  About: TestFrameWorkComponentAbout,
2942
2976
  ActivityBar: TestFrameworkComponentActivityBar,
2943
2977
  BaseUrl: TestFrameWorkComponentBaseUrl,
2978
+ ClipBoard: TestFrameworkComponentClipBoard,
2944
2979
  Command: TestFrameWorkComponentCommand,
2945
2980
  ContextMenu: TestFrameWorkComponentContextMenu,
2946
2981
  Developer: TestFrameWorkComponentDeveloper,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.25.0",
3
+ "version": "4.27.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",