@lvce-editor/test-worker 4.31.0 → 4.32.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
@@ -245,11 +245,18 @@ declare const togglePreserveCase: () => Promise<void>;
245
245
  declare const toggleUseRegularExpression: () => Promise<void>;
246
246
  declare const toggleReplace: () => Promise<void>;
247
247
  declare const update: (settings: any) => Promise<void>;
248
+ declare const show$2: () => Promise<void>;
249
+ declare const handleInput$2: (searchValue: string) => Promise<void>;
250
+ declare const clear: (searchValue: string) => Promise<void>;
251
+ declare const selectTab$1: (tabId: string) => Promise<void>;
252
+ declare const selectWorkspace: () => Promise<void>;
253
+ declare const selectTextEditor: () => Promise<void>;
254
+ declare const selectExtensions: () => Promise<void>;
248
255
  declare const open$4: (id: string) => Promise<void>;
249
256
  declare const hide: () => Promise<void>;
250
257
  declare const selectIndex$5: (index: number) => Promise<void>;
251
258
  declare const acceptInput: () => Promise<void>;
252
- declare const handleInput$2: (text: string) => Promise<void>;
259
+ declare const handleInput$3: (text: string) => Promise<void>;
253
260
  declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
254
261
  declare const update$1: () => Promise<void>;
255
262
  declare const closeMenu: () => Promise<void>;
@@ -356,11 +363,14 @@ declare namespace Search {
356
363
  declare namespace Settings {
357
364
  export { update };
358
365
  }
366
+ declare namespace SettingsView {
367
+ export { clear, handleInput$2 as handleInput, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$2 as show };
368
+ }
359
369
  declare namespace SideBar {
360
370
  export { hide, open$4 as open };
361
371
  }
362
372
  declare namespace SourceControl {
363
- export { acceptInput, handleClickSourceControlButtons, handleInput$2 as handleInput, selectIndex$5 as selectIndex };
373
+ export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$5 as selectIndex };
364
374
  }
365
375
  declare namespace StatusBar {
366
376
  export { update$1 as update };
@@ -402,6 +412,7 @@ export interface TestApi {
402
412
  readonly RunAndDebug: typeof RunAndDebug,
403
413
  readonly Search: typeof Search,
404
414
  readonly Settings: typeof Settings,
415
+ readonly SettingsView: typeof SettingsView,
405
416
  readonly SideBar: typeof SideBar,
406
417
  readonly SourceControl: typeof SourceControl,
407
418
  readonly StatusBar: typeof StatusBar,
@@ -1562,7 +1562,7 @@ const TestFrameWork = {
1562
1562
  test
1563
1563
  };
1564
1564
 
1565
- const show$1 = async () => {
1565
+ const show$2 = async () => {
1566
1566
  return invoke('About.showAbout');
1567
1567
  };
1568
1568
  const handleClickOk = async () => {
@@ -1588,7 +1588,7 @@ const TestFrameWorkComponentAbout = {
1588
1588
  handleClickClose,
1589
1589
  handleClickCopy,
1590
1590
  handleClickOk,
1591
- show: show$1
1591
+ show: show$2
1592
1592
  };
1593
1593
 
1594
1594
  const focus$2 = async () => {
@@ -2177,17 +2177,17 @@ const TestFrameWorkComponentExtension = {
2177
2177
  const selectFeature = name => {
2178
2178
  return invoke('ExtensionDetail.selectFeature', name);
2179
2179
  };
2180
- const selectTab = name => {
2180
+ const selectTab$1 = name => {
2181
2181
  return invoke('ExtensionDetail.selectTab', name);
2182
2182
  };
2183
2183
  const selectDetails = async () => {
2184
- await selectTab('Details');
2184
+ await selectTab$1('Details');
2185
2185
  };
2186
2186
  const selectFeatures = async () => {
2187
- await selectTab('Features');
2187
+ await selectTab$1('Features');
2188
2188
  };
2189
2189
  const selectChangelog = async () => {
2190
- await selectTab('Changelog');
2190
+ await selectTab$1('Changelog');
2191
2191
  };
2192
2192
  const open$4 = extensionId => {
2193
2193
  const uri = `extension-detail://${extensionId}`;
@@ -2235,7 +2235,7 @@ const TestFrameWorkComponentExtensionDetail = {
2235
2235
  selectDetails,
2236
2236
  selectFeature,
2237
2237
  selectFeatures,
2238
- selectTab
2238
+ selectTab: selectTab$1
2239
2239
  };
2240
2240
 
2241
2241
  const Memfs = 'memfs';
@@ -2359,7 +2359,7 @@ const TestFrameWorkComponentIframeInspector = {
2359
2359
  const open$3 = async () => {
2360
2360
  await invoke('Main.openUri', 'app://keybindings');
2361
2361
  };
2362
- const handleInput$2 = value => {
2362
+ const handleInput$3 = value => {
2363
2363
  return invoke('KeyBindings.handleInput', value);
2364
2364
  };
2365
2365
  const handleClick = (x, y) => {
@@ -2437,7 +2437,7 @@ const TestFrameWorkComponentKeyBindingsEditor = {
2437
2437
  handleClick,
2438
2438
  handleContextMenu,
2439
2439
  handleDoubleClick,
2440
- handleInput: handleInput$2,
2440
+ handleInput: handleInput$3,
2441
2441
  handleWheel: handleWheel$1,
2442
2442
  open: open$3,
2443
2443
  removeKeyBinding,
@@ -2602,7 +2602,7 @@ const TestFrameWorkComponentPlatform = {
2602
2602
  isFirefox
2603
2603
  };
2604
2604
 
2605
- const show = async () => {
2605
+ const show$1 = async () => {
2606
2606
  // @ts-ignore
2607
2607
  await invoke('Panel.selectIndex', 0);
2608
2608
  };
@@ -2652,7 +2652,7 @@ const TestFrameWorkComponentProblems = {
2652
2652
  handleClickAt: handleClickAt$1,
2653
2653
  handleFilterInput,
2654
2654
  handleIconThemeChange,
2655
- show,
2655
+ show: show$1,
2656
2656
  viewAsList,
2657
2657
  viewAsTable
2658
2658
  };
@@ -2663,7 +2663,7 @@ const open$1 = async () => {
2663
2663
  // @ts-ignore
2664
2664
  await invoke('Viewlet.openWidget', QuickPick, 'everything');
2665
2665
  };
2666
- const handleInput$1 = async value => {
2666
+ const handleInput$2 = async value => {
2667
2667
  // @ts-ignore
2668
2668
  await invoke('QuickPick.handleInput', value, 0);
2669
2669
  };
@@ -2725,7 +2725,7 @@ const TestFrameWorkComponentQuickPick = {
2725
2725
  focusNext: focusNext$2,
2726
2726
  focusPrevious: focusPrevious$2,
2727
2727
  handleClickAt,
2728
- handleInput: handleInput$1,
2728
+ handleInput: handleInput$2,
2729
2729
  open: open$1,
2730
2730
  selectCurrentIndex,
2731
2731
  selectIndex: selectIndex$3,
@@ -2892,6 +2892,42 @@ const TestFrameWorkComponentSettings = {
2892
2892
  update: update$1
2893
2893
  };
2894
2894
 
2895
+ const show = async () => {
2896
+ return invoke('Main.openUri', 'settings://');
2897
+ };
2898
+ const handleInput$1 = async searchValue => {
2899
+ // @ts-ignore
2900
+ return invoke('Settings.handleInput', searchValue, Script);
2901
+ };
2902
+ const clear = async searchValue => {
2903
+ // @ts-ignore
2904
+ return invoke('Settings.clear', searchValue, Script);
2905
+ };
2906
+ const selectTab = async tabId => {
2907
+ // @ts-ignore
2908
+ return invoke('Settings.handleClickTab', tabId);
2909
+ };
2910
+ const selectWorkspace = async () => {
2911
+ await selectTab('workspace');
2912
+ };
2913
+ const selectTextEditor = async () => {
2914
+ await selectTab('text-editor');
2915
+ };
2916
+ const selectExtensions = async () => {
2917
+ await selectTab('extensions');
2918
+ };
2919
+
2920
+ const TestFrameWorkComponentSettingsView = {
2921
+ __proto__: null,
2922
+ clear,
2923
+ handleInput: handleInput$1,
2924
+ selectExtensions,
2925
+ selectTab,
2926
+ selectTextEditor,
2927
+ selectWorkspace,
2928
+ show
2929
+ };
2930
+
2895
2931
  const open = async id => {
2896
2932
  await invoke('SideBar.openViewlet', id);
2897
2933
  };
@@ -3138,6 +3174,7 @@ const TestFrameWorkComponent = {
3138
3174
  RunAndDebug: TestFrameWorkComponentRunAndDebug,
3139
3175
  Search: TestFrameWorkComponentSearch,
3140
3176
  Settings: TestFrameWorkComponentSettings,
3177
+ SettingsView: TestFrameWorkComponentSettingsView,
3141
3178
  SideBar: TestFrameWorkComponentSideBar,
3142
3179
  SourceControl: TestFrameWorkComponentSourceControl,
3143
3180
  StatusBar: TestFrameWorkComponentStatusBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",