@lvce-editor/test-worker 11.11.0 → 11.13.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
@@ -410,8 +410,11 @@ interface Main {
410
410
  readonly focusLast: () => Promise<void>;
411
411
  readonly focusNext: () => Promise<void>;
412
412
  readonly focusPrevious: () => Promise<void>;
413
+ readonly handleTabsContextMenu: (x: number, y: number) => Promise<void>;
413
414
  readonly openKeyBindings: () => Promise<void>;
414
415
  readonly openUri: (uri: string) => Promise<void>;
416
+ readonly save: () => Promise<void>;
417
+ readonly selectTab: (groupIndex: number, tabIndex: number) => Promise<void>;
415
418
  readonly splitRight: () => Promise<void>;
416
419
  }
417
420
 
@@ -1168,7 +1168,6 @@ const {
1168
1168
  } = create(RendererWorker);
1169
1169
  const sendMessagePortToEditorWorker = async (port, rpcId) => {
1170
1170
  const command = 'HandleMessagePort.handleMessagePort';
1171
- // @ts-ignore
1172
1171
  await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
1173
1172
  };
1174
1173
  const readFile$1 = async uri => {
@@ -1871,7 +1870,7 @@ const getEditorKey = async () => {
1871
1870
  throw new Error(`no editor found`);
1872
1871
  }
1873
1872
  const key = keys.at(-1);
1874
- const numeric = Number.parseInt(key);
1873
+ const numeric = Number.parseFloat(key);
1875
1874
  return numeric;
1876
1875
  };
1877
1876
 
@@ -2454,17 +2453,17 @@ const handleClickSetColorTheme = async () => {
2454
2453
  const selectFeature = name => {
2455
2454
  return invoke('ExtensionDetail.selectFeature', name);
2456
2455
  };
2457
- const selectTab$1 = name => {
2456
+ const selectTab$2 = name => {
2458
2457
  return invoke('ExtensionDetail.selectTab', name);
2459
2458
  };
2460
2459
  const selectDetails = async () => {
2461
- await selectTab$1('Details');
2460
+ await selectTab$2('Details');
2462
2461
  };
2463
2462
  const selectFeatures = async () => {
2464
- await selectTab$1('Features');
2463
+ await selectTab$2('Features');
2465
2464
  };
2466
2465
  const selectChangelog = async () => {
2467
- await selectTab$1('Changelog');
2466
+ await selectTab$2('Changelog');
2468
2467
  };
2469
2468
  const focusNextTab = async () => {
2470
2469
  await invoke('ExtensionDetail.focusNextTab');
@@ -2540,7 +2539,7 @@ const ExtensionDetail = {
2540
2539
  selectDetails,
2541
2540
  selectFeature,
2542
2541
  selectFeatures,
2543
- selectTab: selectTab$1
2542
+ selectTab: selectTab$2
2544
2543
  };
2545
2544
 
2546
2545
  const open$5 = async id => {
@@ -3056,12 +3055,18 @@ const closeTabsLeft = async () => {
3056
3055
  const closeTabsRight = async () => {
3057
3056
  await invoke('Main.closeTabsRight');
3058
3057
  };
3058
+ const selectTab$1 = async (groupIndex, tabIndex) => {
3059
+ await invoke('Main.selectTab', groupIndex, tabIndex);
3060
+ };
3059
3061
  const closeOthers = async () => {
3060
3062
  await invoke('Main.closeOthers');
3061
3063
  };
3062
3064
  const closeActiveEditor = async () => {
3063
3065
  await invoke('Main.closeActiveEditor');
3064
3066
  };
3067
+ const save = async () => {
3068
+ await invoke('Main.save');
3069
+ };
3065
3070
  const focusFirst$3 = async () => {
3066
3071
  await invoke('Main.focusFirst');
3067
3072
  };
@@ -3074,6 +3079,9 @@ const focusPrevious$3 = async () => {
3074
3079
  const focusLast$2 = async () => {
3075
3080
  await invoke('Main.focusLast');
3076
3081
  };
3082
+ const handleTabsContextMenu = async (x, y) => {
3083
+ await invoke('Main.handleTabsContextMenu', x, y);
3084
+ };
3077
3085
 
3078
3086
  const Main = {
3079
3087
  __proto__: null,
@@ -3086,8 +3094,11 @@ const Main = {
3086
3094
  focusLast: focusLast$2,
3087
3095
  focusNext: focusNext$3,
3088
3096
  focusPrevious: focusPrevious$3,
3097
+ handleTabsContextMenu,
3089
3098
  openKeyBindings,
3090
3099
  openUri,
3100
+ save,
3101
+ selectTab: selectTab$1,
3091
3102
  splitRight
3092
3103
  };
3093
3104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "11.11.0",
3
+ "version": "11.13.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "type": "module",
12
12
  "main": "dist/testWorkerMain.js",
13
13
  "dependencies": {
14
- "@lvce-editor/constants": "^3.0.0"
14
+ "@lvce-editor/constants": "^3.1.0"
15
15
  },
16
16
  "types": "dist/api.d.ts"
17
17
  }