@lvce-editor/test-worker 4.30.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
@@ -131,6 +131,9 @@ declare const openFeature: (featureName: string) => Promise<void>;
131
131
  declare const openThemes: () => Promise<void>;
132
132
  declare const openCommands: () => Promise<void>;
133
133
  declare const openWebViews: () => Promise<void>;
134
+ declare const openRuntimeStatus: () => Promise<void>;
135
+ declare const openJsonValidation: () => Promise<void>;
136
+ declare const openSettings: () => Promise<void>;
134
137
  declare const handleScroll: (scrollTop: number) => Promise<void>;
135
138
  declare const writeFile: (path: string, content: string) => Promise<void>;
136
139
  declare const mkdir: (path: string) => Promise<void>;
@@ -242,11 +245,18 @@ declare const togglePreserveCase: () => Promise<void>;
242
245
  declare const toggleUseRegularExpression: () => Promise<void>;
243
246
  declare const toggleReplace: () => Promise<void>;
244
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>;
245
255
  declare const open$4: (id: string) => Promise<void>;
246
256
  declare const hide: () => Promise<void>;
247
257
  declare const selectIndex$5: (index: number) => Promise<void>;
248
258
  declare const acceptInput: () => Promise<void>;
249
- declare const handleInput$2: (text: string) => Promise<void>;
259
+ declare const handleInput$3: (text: string) => Promise<void>;
250
260
  declare const handleClickSourceControlButtons: (index: number, name: string) => Promise<void>;
251
261
  declare const update$1: () => Promise<void>;
252
262
  declare const closeMenu: () => Promise<void>;
@@ -309,7 +319,7 @@ declare namespace Extension {
309
319
  export { addNodeExtension, addWebExtension };
310
320
  }
311
321
  declare namespace ExtensionDetail {
312
- export { handleScroll, open, openCommands, openFeature, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
322
+ export { handleScroll, open, openCommands, openFeature, openJsonValidation, openRuntimeStatus, openSettings, openThemes, openWebViews, selectChangelog, selectDetails, selectFeature, selectFeatures, selectTab };
313
323
  }
314
324
  declare namespace FileSystem {
315
325
  export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, remove, writeFile };
@@ -353,11 +363,14 @@ declare namespace Search {
353
363
  declare namespace Settings {
354
364
  export { update };
355
365
  }
366
+ declare namespace SettingsView {
367
+ export { clear, handleInput$2 as handleInput, selectExtensions, selectTab$1 as selectTab, selectTextEditor, selectWorkspace, show$2 as show };
368
+ }
356
369
  declare namespace SideBar {
357
370
  export { hide, open$4 as open };
358
371
  }
359
372
  declare namespace SourceControl {
360
- export { acceptInput, handleClickSourceControlButtons, handleInput$2 as handleInput, selectIndex$5 as selectIndex };
373
+ export { acceptInput, handleClickSourceControlButtons, handleInput$3 as handleInput, selectIndex$5 as selectIndex };
361
374
  }
362
375
  declare namespace StatusBar {
363
376
  export { update$1 as update };
@@ -399,6 +412,7 @@ export interface TestApi {
399
412
  readonly RunAndDebug: typeof RunAndDebug,
400
413
  readonly Search: typeof Search,
401
414
  readonly Settings: typeof Settings,
415
+ readonly SettingsView: typeof SettingsView,
402
416
  readonly SideBar: typeof SideBar,
403
417
  readonly SourceControl: typeof SourceControl,
404
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}`;
@@ -2198,7 +2198,7 @@ const openFeature = featureName => {
2198
2198
  return invoke('ExtensionDetail.handleFeaturesClick', featureName);
2199
2199
  };
2200
2200
  const openThemes = async () => {
2201
- await openFeature('Themes');
2201
+ await openFeature('Theme');
2202
2202
  };
2203
2203
  const openCommands = async () => {
2204
2204
  await openFeature('Commands');
@@ -2206,6 +2206,15 @@ const openCommands = async () => {
2206
2206
  const openWebViews = async () => {
2207
2207
  await openFeature('WebView');
2208
2208
  };
2209
+ const openRuntimeStatus = async () => {
2210
+ await openFeature('RuntimeStatus');
2211
+ };
2212
+ const openJsonValidation = async () => {
2213
+ await openFeature('JsonValidation');
2214
+ };
2215
+ const openSettings = async () => {
2216
+ await openFeature('Settings');
2217
+ };
2209
2218
  const handleScroll = async scrollTop => {
2210
2219
  // @ts-ignore
2211
2220
  return invoke('ExtensionDetail.handleScroll', scrollTop);
@@ -2217,13 +2226,16 @@ const TestFrameWorkComponentExtensionDetail = {
2217
2226
  open: open$4,
2218
2227
  openCommands,
2219
2228
  openFeature,
2229
+ openJsonValidation,
2230
+ openRuntimeStatus,
2231
+ openSettings,
2220
2232
  openThemes,
2221
2233
  openWebViews,
2222
2234
  selectChangelog,
2223
2235
  selectDetails,
2224
2236
  selectFeature,
2225
2237
  selectFeatures,
2226
- selectTab
2238
+ selectTab: selectTab$1
2227
2239
  };
2228
2240
 
2229
2241
  const Memfs = 'memfs';
@@ -2347,7 +2359,7 @@ const TestFrameWorkComponentIframeInspector = {
2347
2359
  const open$3 = async () => {
2348
2360
  await invoke('Main.openUri', 'app://keybindings');
2349
2361
  };
2350
- const handleInput$2 = value => {
2362
+ const handleInput$3 = value => {
2351
2363
  return invoke('KeyBindings.handleInput', value);
2352
2364
  };
2353
2365
  const handleClick = (x, y) => {
@@ -2425,7 +2437,7 @@ const TestFrameWorkComponentKeyBindingsEditor = {
2425
2437
  handleClick,
2426
2438
  handleContextMenu,
2427
2439
  handleDoubleClick,
2428
- handleInput: handleInput$2,
2440
+ handleInput: handleInput$3,
2429
2441
  handleWheel: handleWheel$1,
2430
2442
  open: open$3,
2431
2443
  removeKeyBinding,
@@ -2590,7 +2602,7 @@ const TestFrameWorkComponentPlatform = {
2590
2602
  isFirefox
2591
2603
  };
2592
2604
 
2593
- const show = async () => {
2605
+ const show$1 = async () => {
2594
2606
  // @ts-ignore
2595
2607
  await invoke('Panel.selectIndex', 0);
2596
2608
  };
@@ -2640,7 +2652,7 @@ const TestFrameWorkComponentProblems = {
2640
2652
  handleClickAt: handleClickAt$1,
2641
2653
  handleFilterInput,
2642
2654
  handleIconThemeChange,
2643
- show,
2655
+ show: show$1,
2644
2656
  viewAsList,
2645
2657
  viewAsTable
2646
2658
  };
@@ -2651,7 +2663,7 @@ const open$1 = async () => {
2651
2663
  // @ts-ignore
2652
2664
  await invoke('Viewlet.openWidget', QuickPick, 'everything');
2653
2665
  };
2654
- const handleInput$1 = async value => {
2666
+ const handleInput$2 = async value => {
2655
2667
  // @ts-ignore
2656
2668
  await invoke('QuickPick.handleInput', value, 0);
2657
2669
  };
@@ -2713,7 +2725,7 @@ const TestFrameWorkComponentQuickPick = {
2713
2725
  focusNext: focusNext$2,
2714
2726
  focusPrevious: focusPrevious$2,
2715
2727
  handleClickAt,
2716
- handleInput: handleInput$1,
2728
+ handleInput: handleInput$2,
2717
2729
  open: open$1,
2718
2730
  selectCurrentIndex,
2719
2731
  selectIndex: selectIndex$3,
@@ -2880,6 +2892,42 @@ const TestFrameWorkComponentSettings = {
2880
2892
  update: update$1
2881
2893
  };
2882
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
+
2883
2931
  const open = async id => {
2884
2932
  await invoke('SideBar.openViewlet', id);
2885
2933
  };
@@ -3126,6 +3174,7 @@ const TestFrameWorkComponent = {
3126
3174
  RunAndDebug: TestFrameWorkComponentRunAndDebug,
3127
3175
  Search: TestFrameWorkComponentSearch,
3128
3176
  Settings: TestFrameWorkComponentSettings,
3177
+ SettingsView: TestFrameWorkComponentSettingsView,
3129
3178
  SideBar: TestFrameWorkComponentSideBar,
3130
3179
  SourceControl: TestFrameWorkComponentSourceControl,
3131
3180
  StatusBar: TestFrameWorkComponentStatusBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "4.30.0",
3
+ "version": "4.32.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",