@lvce-editor/test-worker 12.2.0 → 13.0.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
@@ -32,7 +32,7 @@ interface ILocatorCreateOptions {
32
32
  readonly hasText?: string;
33
33
  readonly nth?: number;
34
34
  }
35
- export declare class Locator implements ILocator {
35
+ export declare class Locator implements ILocatorExternal {
36
36
  readonly _selector: any;
37
37
  readonly _nth: number;
38
38
  readonly _hasText: string;
@@ -48,6 +48,11 @@ export declare class Locator implements ILocator {
48
48
  dispatchEvent(type: string, init: any): Promise<void>;
49
49
  }
50
50
 
51
+ export interface UpdateConfig {
52
+ readonly progress: number;
53
+ readonly state: number;
54
+ }
55
+
51
56
  export interface Diagnostic {
52
57
  readonly columnIndex: number;
53
58
  readonly endColumnIndex: number;
@@ -81,6 +86,8 @@ export interface SelectItem2Options {
81
86
  readonly label: string;
82
87
  }
83
88
 
89
+ export type SearchInputType = "SearchValue" | "ReplaceValue" | "IncludeValue" | "ExcludeValue";
90
+
84
91
  interface Workspace {
85
92
  readonly openTmpDir: () => Promise<string>;
86
93
  readonly setPath: (path: string) => Promise<void>;
@@ -102,9 +109,12 @@ interface ActivityBar {
102
109
  readonly focusNext: () => Promise<void>;
103
110
  readonly focusPrevious: () => Promise<void>;
104
111
  readonly handleClick: (index: number) => Promise<void>;
112
+ readonly handleClickSettings: (x: number, y: number) => Promise<void>;
105
113
  readonly handleContextMenu: () => Promise<void>;
106
114
  readonly selectCurrent: () => Promise<void>;
107
115
  readonly setAccountEnabled: (enabled: boolean) => Promise<void>;
116
+ readonly setUpdateState: (config: UpdateConfig) => Promise<void>;
117
+ readonly toggleActivityBarItem: (id: string) => Promise<void>;
108
118
  }
109
119
 
110
120
  interface BaseUrl {
@@ -168,6 +178,7 @@ interface Editor {
168
178
  readonly cursorWordPartLeft: () => Promise<void>;
169
179
  readonly cursorWordPartRight: () => Promise<void>;
170
180
  readonly cursorWordRight: () => Promise<void>;
181
+ readonly deleteAll: () => Promise<void>;
171
182
  readonly deleteAllLeft: () => Promise<void>;
172
183
  readonly deleteAllRight: () => Promise<void>;
173
184
  readonly disableCompletionsOnType: () => Promise<void>;
@@ -201,9 +212,16 @@ interface Editor {
201
212
  readonly rename: () => Promise<void>;
202
213
  readonly rename2: (newName: string) => Promise<void>;
203
214
  readonly selectAll: () => Promise<void>;
215
+ readonly selectAllLeft: () => Promise<void>;
216
+ readonly selectAllOccurrences: () => Promise<void>;
217
+ readonly selectAllRight: () => Promise<void>;
218
+ readonly selectDown: () => Promise<void>;
219
+ readonly selectUp: () => Promise<void>;
220
+ readonly selectionGrow: () => Promise<void>;
204
221
  readonly setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
205
222
  readonly setDeltaY: (deltaY: number) => Promise<void>;
206
223
  readonly setSelections: (selections: any) => Promise<void>;
224
+ readonly setText: (text: string) => Promise<void>;
207
225
  readonly shouldHaveDiagnostics: (expectedDiagnostics: readonly Diagnostic[]) => Promise<void>;
208
226
  readonly shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
209
227
  readonly shouldHaveText: (expectedText: string) => Promise<void>;
@@ -280,6 +298,7 @@ interface Explorer {
280
298
  readonly selectDown: () => Promise<void>;
281
299
  readonly selectIndices: (indices: readonly number[]) => Promise<void>;
282
300
  readonly selectUp: () => Promise<void>;
301
+ readonly setDeltaY: (deltaY: number) => Promise<void>;
283
302
  readonly toggleIndividualSelection: (index: number) => Promise<void>;
284
303
  readonly updateEditingValue: (value: string) => Promise<void>;
285
304
  }
@@ -517,7 +536,9 @@ interface Search {
517
536
  readonly collapseDetails: () => Promise<void>;
518
537
  readonly copy: () => Promise<void>;
519
538
  readonly copyPath: () => Promise<void>;
539
+ readonly disableRenderFolderPaths: () => Promise<void>;
520
540
  readonly dismissItem: () => Promise<void>;
541
+ readonly enableRenderFolderPaths: () => Promise<void>;
521
542
  readonly focusFirst: () => Promise<void>;
522
543
  readonly focusIndex: (index: number) => Promise<void>;
523
544
  readonly focusNext: () => Promise<void>;
@@ -413,7 +413,6 @@ const wrap$e = port => {
413
413
  return new IpcChildWithModuleWorkerAndMessagePort(port);
414
414
  };
415
415
  const IpcChildWithModuleWorkerAndMessagePort$1 = {
416
- __proto__: null,
417
416
  listen: listen$6,
418
417
  wrap: wrap$e
419
418
  };
@@ -506,7 +505,6 @@ const wrap$5 = messagePort => {
506
505
  return new IpcParentWithMessagePort(messagePort);
507
506
  };
508
507
  const IpcParentWithMessagePort$1 = {
509
- __proto__: null,
510
508
  create: create$5$1,
511
509
  signal: signal$1,
512
510
  wrap: wrap$5
@@ -1007,7 +1005,6 @@ const create$j = async ({
1007
1005
  });
1008
1006
  };
1009
1007
  const LazyTransferMessagePortRpcParent = {
1010
- __proto__: null,
1011
1008
  create: create$j
1012
1009
  };
1013
1010
  const create$e = async ({
@@ -1027,7 +1024,6 @@ const create$e = async ({
1027
1024
  return rpc;
1028
1025
  };
1029
1026
  const MessagePortRpcParent = {
1030
- __proto__: null,
1031
1027
  create: create$e
1032
1028
  };
1033
1029
  const create$5 = async ({
@@ -1074,7 +1070,6 @@ const create$2 = async ({
1074
1070
  return rpc;
1075
1071
  };
1076
1072
  const WebWorkerRpcClient = {
1077
- __proto__: null,
1078
1073
  create: create$2
1079
1074
  };
1080
1075
  const createMockRpc = ({
@@ -1499,7 +1494,6 @@ class Expect {
1499
1494
  }
1500
1495
 
1501
1496
  const Expect$1 = {
1502
- __proto__: null,
1503
1497
  expect: expect$1
1504
1498
  };
1505
1499
 
@@ -1646,7 +1640,6 @@ const focusPrevious$8 = async () => {
1646
1640
  };
1647
1641
 
1648
1642
  const About = {
1649
- __proto__: null,
1650
1643
  focusNext: focusNext$9,
1651
1644
  focusPrevious: focusPrevious$8,
1652
1645
  handleClickClose,
@@ -1658,11 +1651,14 @@ const About = {
1658
1651
  const focus$2 = async () => {
1659
1652
  await invoke('ActivityBar.focus');
1660
1653
  };
1654
+ const toggleActivityBarItem = async id => {
1655
+ await invoke('ActivityBar.toggleActivityBarItem', id);
1656
+ };
1661
1657
  const focusFirst$7 = async () => {
1662
1658
  await invoke('ActivityBar.focusFirst');
1663
1659
  };
1664
1660
  const setAccountEnabled = async enabled => {
1665
- await invoke('ActivityBar.setAccountEnabled');
1661
+ await invoke('ActivityBar.setAccountEnabled', enabled);
1666
1662
  };
1667
1663
  const focusLast$6 = async () => {
1668
1664
  await invoke('ActivityBar.focusLast');
@@ -1679,21 +1675,29 @@ const handleClick$4 = async index => {
1679
1675
  const handleContextMenu$5 = async () => {
1680
1676
  await invoke('ActivityBar.handleContextMenu');
1681
1677
  };
1678
+ const setUpdateState = async config => {
1679
+ await invoke('ActivityBar.setUpdateState', config);
1680
+ };
1682
1681
  const selectCurrent = async () => {
1683
1682
  await invoke('ActivityBar.selectCurrent');
1684
1683
  };
1684
+ const handleClickSettings = async (x, y) => {
1685
+ await invoke('ActivityBar.handleClickSettings', x, y);
1686
+ };
1685
1687
 
1686
1688
  const ActivityBar = {
1687
- __proto__: null,
1688
1689
  focus: focus$2,
1689
1690
  focusFirst: focusFirst$7,
1690
1691
  focusLast: focusLast$6,
1691
1692
  focusNext: focusNext$8,
1692
1693
  focusPrevious: focusPrevious$7,
1693
1694
  handleClick: handleClick$4,
1695
+ handleClickSettings,
1694
1696
  handleContextMenu: handleContextMenu$5,
1695
1697
  selectCurrent,
1696
- setAccountEnabled
1698
+ setAccountEnabled,
1699
+ setUpdateState,
1700
+ toggleActivityBarItem
1697
1701
  };
1698
1702
 
1699
1703
  const readNativeFiles = async () => {
@@ -1725,7 +1729,6 @@ const writeText = async text => {
1725
1729
  };
1726
1730
 
1727
1731
  const ClipBoard = {
1728
- __proto__: null,
1729
1732
  disableMemoryClipBoard,
1730
1733
  enableMemoryClipBoard,
1731
1734
  readNativeFiles,
@@ -1739,7 +1742,6 @@ const setRelativeX = async x => {
1739
1742
  };
1740
1743
 
1741
1744
  const ColorPicker = {
1742
- __proto__: null,
1743
1745
  setRelativeX
1744
1746
  };
1745
1747
 
@@ -1748,7 +1750,6 @@ const execute$1 = async (id, ...args) => {
1748
1750
  };
1749
1751
 
1750
1752
  const Command = {
1751
- __proto__: null,
1752
1753
  execute: execute$1
1753
1754
  };
1754
1755
 
@@ -1757,7 +1758,6 @@ const selectItem$1 = async text => {
1757
1758
  };
1758
1759
 
1759
1760
  const ContextMenu = {
1760
- __proto__: null,
1761
1761
  selectItem: selectItem$1
1762
1762
  };
1763
1763
 
@@ -1787,7 +1787,6 @@ const toggleDeveloperTools = async () => {
1787
1787
  };
1788
1788
 
1789
1789
  const Developer = {
1790
- __proto__: null,
1791
1790
  openCacheFolder,
1792
1791
  openConfigFolder,
1793
1792
  openIframeInspector,
@@ -1829,7 +1828,6 @@ const executeMock = (id, ...args) => {
1829
1828
  };
1830
1829
 
1831
1830
  const Dialog = {
1832
- __proto__: null,
1833
1831
  executeMock,
1834
1832
  mockConfirm,
1835
1833
  mockSaveFilePicker,
@@ -1891,7 +1889,6 @@ const disableDiagnostics$1 = () => {
1891
1889
  };
1892
1890
 
1893
1891
  const Settings = {
1894
- __proto__: null,
1895
1892
  disableDiagnostics: disableDiagnostics$1,
1896
1893
  enableDiagnostics: enableDiagnostics$1,
1897
1894
  update: update$1
@@ -1930,12 +1927,36 @@ const copyLineDown = async () => {
1930
1927
  const cursorDown = async () => {
1931
1928
  await invoke('Editor.cursorDown');
1932
1929
  };
1930
+ const selectDown$1 = async () => {
1931
+ await invoke('Editor.selectDown');
1932
+ };
1933
+ const selectAllLeft = async () => {
1934
+ await invoke('Editor.selectAllLeft');
1935
+ };
1936
+ const selectionGrow = async () => {
1937
+ await invoke('Editor.selectionGrow');
1938
+ };
1939
+ const selectAllRight = async () => {
1940
+ await invoke('Editor.selectAllRight');
1941
+ };
1942
+ const selectAllOccurrences = async () => {
1943
+ await invoke('Editor.selectAllOccurrences');
1944
+ };
1945
+ const selectUp$1 = async () => {
1946
+ await invoke('Editor.selectUp');
1947
+ };
1933
1948
  const cursorUp = async () => {
1934
1949
  await invoke('Editor.cursorUp');
1935
1950
  };
1936
1951
  const cursorWordLeft = async () => {
1937
1952
  await invoke('Editor.cursorWordLeft');
1938
1953
  };
1954
+ const setText = async text => {
1955
+ await invoke('Editor.setText', text);
1956
+ };
1957
+ const deleteAll = async () => {
1958
+ await invoke('Editor.deleteAll');
1959
+ };
1939
1960
  const cursorWordRight = async () => {
1940
1961
  await invoke('Editor.cursorWordRight');
1941
1962
  };
@@ -1963,7 +1984,7 @@ const setSelections = async selections => {
1963
1984
  const openFindWidget = async () => {
1964
1985
  await invoke('Editor.openFind');
1965
1986
  };
1966
- const setDeltaY = async deltaY => {
1987
+ const setDeltaY$1 = async deltaY => {
1967
1988
  await invoke('Editor.setDeltaY', deltaY);
1968
1989
  };
1969
1990
  const format = async () => {
@@ -2122,7 +2143,6 @@ const disableDiagnostics = async () => {
2122
2143
  };
2123
2144
 
2124
2145
  const Editor = {
2125
- __proto__: null,
2126
2146
  addAllMissingImports,
2127
2147
  closeColorPicker,
2128
2148
  closeCompletion,
@@ -2140,6 +2160,7 @@ const Editor = {
2140
2160
  cursorWordPartLeft,
2141
2161
  cursorWordPartRight,
2142
2162
  cursorWordRight,
2163
+ deleteAll,
2143
2164
  deleteAllLeft,
2144
2165
  deleteAllRight,
2145
2166
  disableCompletionsOnType,
@@ -2173,9 +2194,16 @@ const Editor = {
2173
2194
  rename: rename$1,
2174
2195
  rename2,
2175
2196
  selectAll: selectAll$1,
2197
+ selectAllLeft,
2198
+ selectAllOccurrences,
2199
+ selectAllRight,
2200
+ selectDown: selectDown$1,
2201
+ selectUp: selectUp$1,
2202
+ selectionGrow,
2176
2203
  setCursor,
2177
- setDeltaY,
2204
+ setDeltaY: setDeltaY$1,
2178
2205
  setSelections,
2206
+ setText,
2179
2207
  shouldHaveDiagnostics,
2180
2208
  shouldHaveSelections,
2181
2209
  shouldHaveText,
@@ -2207,7 +2235,6 @@ const handlePointerdown = async (clientX, clientY) => {
2207
2235
  };
2208
2236
 
2209
2237
  const EditorCompletion = {
2210
- __proto__: null,
2211
2238
  close: close$2,
2212
2239
  handlePointerdown,
2213
2240
  handleWheel: handleWheel$2,
@@ -2223,7 +2250,6 @@ const close$1 = async () => {
2223
2250
  };
2224
2251
 
2225
2252
  const EditorHover = {
2226
- __proto__: null,
2227
2253
  close: close$1,
2228
2254
  show: show$5
2229
2255
  };
@@ -2239,7 +2265,6 @@ const cancel = async () => {
2239
2265
  };
2240
2266
 
2241
2267
  const EditorRename = {
2242
- __proto__: null,
2243
2268
  accept,
2244
2269
  cancel,
2245
2270
  handleInput: handleInput$6
@@ -2253,7 +2278,6 @@ const selectCurrentIndex$1 = async () => {
2253
2278
  };
2254
2279
 
2255
2280
  const EditorSourceAction = {
2256
- __proto__: null,
2257
2281
  selectCurrentIndex: selectCurrentIndex$1,
2258
2282
  selectIndex: selectIndex$5
2259
2283
  };
@@ -2276,6 +2300,9 @@ const handleInputBlur = async () => {
2276
2300
  const focus$1 = async () => {
2277
2301
  await invoke('Explorer.focusIndex', -1);
2278
2302
  };
2303
+ const setDeltaY = async deltaY => {
2304
+ await invoke('Explorer.setDeltaY', deltaY);
2305
+ };
2279
2306
  const focusNext$7 = async () => {
2280
2307
  await invoke('Explorer.focusNext');
2281
2308
  };
@@ -2377,7 +2404,6 @@ const toggleIndividualSelection = async index => {
2377
2404
  };
2378
2405
 
2379
2406
  const Explorer = {
2380
- __proto__: null,
2381
2407
  acceptEdit,
2382
2408
  cancelEdit,
2383
2409
  clickCurrent,
@@ -2415,6 +2441,7 @@ const Explorer = {
2415
2441
  selectDown,
2416
2442
  selectIndices,
2417
2443
  selectUp,
2444
+ setDeltaY,
2418
2445
  toggleIndividualSelection,
2419
2446
  updateEditingValue
2420
2447
  };
@@ -2431,7 +2458,6 @@ const addNodeExtension = async relativePath => {
2431
2458
  };
2432
2459
 
2433
2460
  const Extension = {
2434
- __proto__: null,
2435
2461
  addNodeExtension,
2436
2462
  addWebExtension
2437
2463
  };
@@ -2517,7 +2543,6 @@ const handleTabFocus = async tabName => {
2517
2543
  };
2518
2544
 
2519
2545
  const ExtensionDetail = {
2520
- __proto__: null,
2521
2546
  copyReadmeLink,
2522
2547
  focusNextTab,
2523
2548
  focusPreviousTab,
@@ -2554,7 +2579,6 @@ const hide = async () => {
2554
2579
  };
2555
2580
 
2556
2581
  const SideBar = {
2557
- __proto__: null,
2558
2582
  hide,
2559
2583
  open: open$7
2560
2584
  };
@@ -2585,7 +2609,6 @@ const clearSearchResults$1 = async () => {
2585
2609
  };
2586
2610
 
2587
2611
  const ExtensionSearch = {
2588
- __proto__: null,
2589
2612
  clearSearchResults: clearSearchResults$1,
2590
2613
  copyExtensionId,
2591
2614
  copyExtensionInfo,
@@ -2681,7 +2704,6 @@ const loadFixtureToMemFs = async fileMap => {
2681
2704
  const Slash$1 = '/';
2682
2705
 
2683
2706
  const Character = {
2684
- __proto__: null,
2685
2707
  Slash: Slash$1
2686
2708
  };
2687
2709
 
@@ -2774,7 +2796,6 @@ const loadFixture = async (platform, url) => {
2774
2796
  };
2775
2797
 
2776
2798
  const FileSystem = {
2777
- __proto__: null,
2778
2799
  addFileHandle,
2779
2800
  chmod,
2780
2801
  createDroppedFileHandle,
@@ -2838,7 +2859,6 @@ const focusPreviousElement = async () => {
2838
2859
  };
2839
2860
 
2840
2861
  const FindWidget = {
2841
- __proto__: null,
2842
2862
  close,
2843
2863
  focusElement,
2844
2864
  focusNext: focusNext$6,
@@ -2861,7 +2881,6 @@ const setIconTheme = async id => {
2861
2881
  };
2862
2882
 
2863
2883
  const IconTheme = {
2864
- __proto__: null,
2865
2884
  setIconTheme
2866
2885
  };
2867
2886
 
@@ -2882,7 +2901,6 @@ const focusLast$4 = async () => {
2882
2901
  };
2883
2902
 
2884
2903
  const IframeInspector = {
2885
- __proto__: null,
2886
2904
  focusFirst: focusFirst$5,
2887
2905
  focusLast: focusLast$4,
2888
2906
  focusNext: focusNext$5,
@@ -2961,7 +2979,6 @@ const resetKeyBinding = () => {
2961
2979
  };
2962
2980
 
2963
2981
  const KeyBindingsEditor = {
2964
- __proto__: null,
2965
2982
  addKeyBinding,
2966
2983
  changeWhenExpression,
2967
2984
  clearInput,
@@ -3037,7 +3054,6 @@ const press = async key => {
3037
3054
  };
3038
3055
 
3039
3056
  const KeyBoard = {
3040
- __proto__: null,
3041
3057
  press
3042
3058
  };
3043
3059
 
@@ -3058,7 +3074,6 @@ const removeModel = async id => {
3058
3074
  };
3059
3075
 
3060
3076
  const LanguageModels = {
3061
- __proto__: null,
3062
3077
  addModel,
3063
3078
  clearFilterInput,
3064
3079
  handleFilterInput: handleFilterInput$2,
@@ -3125,7 +3140,6 @@ const copyRelativePath = async () => {
3125
3140
  };
3126
3141
 
3127
3142
  const Main = {
3128
- __proto__: null,
3129
3143
  closeActiveEditor,
3130
3144
  closeAllEditors,
3131
3145
  closeOthers,
@@ -3156,7 +3170,6 @@ const openProblems = async () => {
3156
3170
  };
3157
3171
 
3158
3172
  const Panel = {
3159
- __proto__: null,
3160
3173
  open: open$3,
3161
3174
  openProblems
3162
3175
  };
@@ -3179,7 +3192,6 @@ const saveAs = async () => {
3179
3192
  };
3180
3193
 
3181
3194
  const Output = {
3182
- __proto__: null,
3183
3195
  clear: clear$2,
3184
3196
  handleFilterInput: handleFilterInput$1,
3185
3197
  saveAs,
@@ -3212,7 +3224,6 @@ const isFirefox = () => {
3212
3224
  };
3213
3225
 
3214
3226
  const Platform = {
3215
- __proto__: null,
3216
3227
  getNodePath,
3217
3228
  isFirefox
3218
3229
  };
@@ -3234,7 +3245,6 @@ const setUri = async uri => {
3234
3245
  };
3235
3246
 
3236
3247
  const Preview = {
3237
- __proto__: null,
3238
3248
  handleClick,
3239
3249
  handleInput: handleInput$3,
3240
3250
  handleKeyDown,
@@ -3274,7 +3284,6 @@ const viewAsTable = async () => {
3274
3284
  };
3275
3285
 
3276
3286
  const Problems = {
3277
- __proto__: null,
3278
3287
  copyMessage,
3279
3288
  focusIndex: focusIndex$3,
3280
3289
  handleArrowLeft,
@@ -3358,7 +3367,6 @@ const selectItem2 = async ({
3358
3367
  };
3359
3368
 
3360
3369
  const QuickPick = {
3361
- __proto__: null,
3362
3370
  executeCommand,
3363
3371
  focusFirst: focusFirst$2,
3364
3372
  focusIndex: focusIndex$2,
@@ -3386,7 +3394,6 @@ const refresh = async () => {
3386
3394
  };
3387
3395
 
3388
3396
  const References = {
3389
- __proto__: null,
3390
3397
  clear: clear$1,
3391
3398
  collapseAll: collapseAll$1,
3392
3399
  refresh
@@ -3424,7 +3431,6 @@ const handleSpace = async () => {
3424
3431
  };
3425
3432
 
3426
3433
  const RunAndDebug = {
3427
- __proto__: null,
3428
3434
  acceptWatchExpressionEdit,
3429
3435
  addWatchExpression,
3430
3436
  handleClickSectionBreakPoints,
@@ -3542,15 +3548,22 @@ const handleInputContextMenu = async (name, button, x, y) => {
3542
3548
  const handleContextMenu$2 = async (button, x, y) => {
3543
3549
  await invoke('Search.handleContextMenu', button, x, y);
3544
3550
  };
3551
+ const enableRenderFolderPaths = async () => {
3552
+ await invoke('Search.enableRenderFolderPaths');
3553
+ };
3554
+ const disableRenderFolderPaths = async () => {
3555
+ await invoke('Search.disableRenderFolderPaths');
3556
+ };
3545
3557
 
3546
3558
  const Search = {
3547
- __proto__: null,
3548
3559
  clearSearchResults,
3549
3560
  collapseAll,
3550
3561
  collapseDetails,
3551
3562
  copy,
3552
3563
  copyPath,
3564
+ disableRenderFolderPaths,
3553
3565
  dismissItem,
3566
+ enableRenderFolderPaths,
3554
3567
  focusFirst: focusFirst$1,
3555
3568
  focusIndex: focusIndex$1,
3556
3569
  focusNext: focusNext$1,
@@ -3623,7 +3636,6 @@ const handleClickFilterButton = async (x, y) => {
3623
3636
  };
3624
3637
 
3625
3638
  const SettingsView = {
3626
- __proto__: null,
3627
3639
  clear,
3628
3640
  clearHistory,
3629
3641
  handleClickFilterButton,
@@ -3659,7 +3671,6 @@ const show = async () => {
3659
3671
  };
3660
3672
 
3661
3673
  const SourceControl = {
3662
- __proto__: null,
3663
3674
  acceptInput,
3664
3675
  handleClickSourceControlButtons,
3665
3676
  handleContextMenu: handleContextMenu$1,
@@ -3673,7 +3684,6 @@ const update = async () => {
3673
3684
  };
3674
3685
 
3675
3686
  const StatusBar = {
3676
- __proto__: null,
3677
3687
  update
3678
3688
  };
3679
3689
 
@@ -3736,7 +3746,6 @@ const handleContextMenu = async (button, x, y) => {
3736
3746
  };
3737
3747
 
3738
3748
  const TitleBarMenuBar = {
3739
- __proto__: null,
3740
3749
  closeMenu,
3741
3750
  focus,
3742
3751
  focusFirst,
@@ -3767,7 +3776,6 @@ const resolve = relativePath => {
3767
3776
  };
3768
3777
 
3769
3778
  const Url = {
3770
- __proto__: null,
3771
3779
  resolve,
3772
3780
  setUrl
3773
3781
  };
@@ -3845,7 +3853,6 @@ const fromId = async webViewId => {
3845
3853
  };
3846
3854
 
3847
3855
  const WebView = {
3848
- __proto__: null,
3849
3856
  fromId
3850
3857
  };
3851
3858
 
@@ -3859,15 +3866,31 @@ const openTmpDir = async () => {
3859
3866
  };
3860
3867
 
3861
3868
  const Workspace = {
3862
- __proto__: null,
3863
3869
  openTmpDir,
3864
3870
  setPath
3865
3871
  };
3866
3872
 
3873
+ const load = async url => {
3874
+ await invoke('Audio.load', url);
3875
+ };
3876
+ const play = async url => {
3877
+ await invoke('Audio.play', url);
3878
+ };
3879
+ const pause = async () => {
3880
+ await invoke('Audio.pause');
3881
+ };
3882
+
3883
+ const Audio = {
3884
+ load,
3885
+ pause,
3886
+ play
3887
+ };
3888
+
3867
3889
  const createApi = (platform, assetDir) => {
3868
3890
  return {
3869
3891
  About,
3870
3892
  ActivityBar,
3893
+ Audio,
3871
3894
  BaseUrl: {
3872
3895
  getBaseUrl() {
3873
3896
  return assetDir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "12.2.0",
3
+ "version": "13.0.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",