@lvce-editor/test-worker 10.10.0 → 10.11.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
@@ -258,6 +258,8 @@ interface Extension {
258
258
 
259
259
  interface ExtensionDetail {
260
260
  readonly copyReadmeLink: (href: string) => Promise<void>;
261
+ readonly focusNextTab: () => Promise<void>;
262
+ readonly focusPreviousTab: () => Promise<void>;
261
263
  readonly handleClickCategory: (categoryId: string) => Promise<void>;
262
264
  readonly handleClickDisable: () => Promise<void>;
263
265
  readonly handleClickEnable: () => Promise<void>;
@@ -266,6 +268,7 @@ interface ExtensionDetail {
266
268
  readonly handleImageContextMenu: () => Promise<void>;
267
269
  readonly handleReadmeContextMenu: (x: number, y: number, nodeName: string, href: string) => Promise<void>;
268
270
  readonly handleScroll: (scrollTop: number) => Promise<void>;
271
+ readonly handleTabFocus: (tabName: string) => Promise<void>;
269
272
  readonly hideSizeLink: () => Promise<void>;
270
273
  readonly open: (extensionId: string) => Promise<void>;
271
274
  readonly openCommands: () => Promise<void>;
@@ -496,12 +499,12 @@ interface SettingsView {
496
499
  readonly clear: (searchValue: string) => Promise<void>;
497
500
  readonly clearHistory: () => Promise<void>;
498
501
  readonly handleClickFilterButton: (x: number, y: number) => Promise<void>;
499
- readonly handleClickTab: (name: string) => Promise<void>;
500
502
  readonly handleInput: (searchValue: string) => Promise<void>;
501
503
  readonly handleScroll: (scrollTop: number) => Promise<void>;
502
504
  readonly selectExtensions: () => Promise<void>;
503
505
  readonly selectTab: (tabId: string) => Promise<void>;
504
506
  readonly selectTextEditor: () => Promise<void>;
507
+ readonly selectWindow: () => Promise<void>;
505
508
  readonly selectWorkspace: () => Promise<void>;
506
509
  readonly show: () => Promise<void>;
507
510
  readonly useNextSearchValue: () => Promise<void>;
@@ -2471,6 +2471,12 @@ const selectFeatures = async () => {
2471
2471
  const selectChangelog = async () => {
2472
2472
  await selectTab$1('Changelog');
2473
2473
  };
2474
+ const focusNextTab = async () => {
2475
+ await invoke$1('ExtensionDetail.focusNextTab');
2476
+ };
2477
+ const focusPreviousTab = async () => {
2478
+ await invoke$1('ExtensionDetail.focusPreviousTab');
2479
+ };
2474
2480
  const open$6 = extensionId => {
2475
2481
  const uri = `extension-detail://${extensionId}`;
2476
2482
  return invoke$1('Main.openUri', uri);
@@ -2510,10 +2516,15 @@ const handleScroll$1 = async scrollTop => {
2510
2516
  const hideSizeLink = async () => {
2511
2517
  return invoke$1('ExtensionDetail.hideSizeLink');
2512
2518
  };
2519
+ const handleTabFocus = async tabName => {
2520
+ return invoke$1('ExtensionDetail.handleTabFocus', tabName);
2521
+ };
2513
2522
 
2514
2523
  const ExtensionDetail = {
2515
2524
  __proto__: null,
2516
2525
  copyReadmeLink,
2526
+ focusNextTab,
2527
+ focusPreviousTab,
2517
2528
  handleClickCategory,
2518
2529
  handleClickDisable,
2519
2530
  handleClickEnable,
@@ -2522,6 +2533,7 @@ const ExtensionDetail = {
2522
2533
  handleImageContextMenu,
2523
2534
  handleReadmeContextMenu,
2524
2535
  handleScroll: handleScroll$1,
2536
+ handleTabFocus,
2525
2537
  hideSizeLink,
2526
2538
  open: open$6,
2527
2539
  openCommands,
@@ -3550,10 +3562,6 @@ const handleInput$1 = async searchValue => {
3550
3562
  // @ts-ignore
3551
3563
  return invoke$1('Settings.handleInput', searchValue, Script);
3552
3564
  };
3553
- const handleClickTab = async name => {
3554
- // @ts-ignore
3555
- return invoke$1('Settings.handleClickTab', name);
3556
- };
3557
3565
  const usePreviousSearchValue = async () => {
3558
3566
  // @ts-ignore
3559
3567
  return invoke$1('Settings.usePreviousSearchValue');
@@ -3583,6 +3591,9 @@ const selectTextEditor = async () => {
3583
3591
  const selectExtensions = async () => {
3584
3592
  await selectTab('extensions');
3585
3593
  };
3594
+ const selectWindow = async () => {
3595
+ await selectTab('window');
3596
+ };
3586
3597
  const handleScroll = async scrollTop => {
3587
3598
  // @ts-ignore
3588
3599
  await invoke$1('Settings.handleScroll', scrollTop, Script);
@@ -3597,12 +3608,12 @@ const SettingsView = {
3597
3608
  clear,
3598
3609
  clearHistory,
3599
3610
  handleClickFilterButton,
3600
- handleClickTab,
3601
3611
  handleInput: handleInput$1,
3602
3612
  handleScroll,
3603
3613
  selectExtensions,
3604
3614
  selectTab,
3605
3615
  selectTextEditor,
3616
+ selectWindow,
3606
3617
  selectWorkspace,
3607
3618
  show: show$1,
3608
3619
  useNextSearchValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "10.10.0",
3
+ "version": "10.11.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",