@lvce-editor/test-worker 11.12.0 → 11.15.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 +6 -0
- package/dist/testWorkerMain.js +33 -10
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -406,12 +406,18 @@ interface Main {
|
|
|
406
406
|
readonly closeOthers: () => Promise<void>;
|
|
407
407
|
readonly closeTabsLeft: () => Promise<void>;
|
|
408
408
|
readonly closeTabsRight: () => Promise<void>;
|
|
409
|
+
readonly copyPath: () => Promise<void>;
|
|
410
|
+
readonly copyRelativePath: () => Promise<void>;
|
|
409
411
|
readonly focusFirst: () => Promise<void>;
|
|
410
412
|
readonly focusLast: () => Promise<void>;
|
|
411
413
|
readonly focusNext: () => Promise<void>;
|
|
412
414
|
readonly focusPrevious: () => Promise<void>;
|
|
415
|
+
readonly handleModifiedStatusChange: (uri: string, newStatus: boolean) => Promise<void>;
|
|
416
|
+
readonly handleTabsContextMenu: (x: number, y: number) => Promise<void>;
|
|
413
417
|
readonly openKeyBindings: () => Promise<void>;
|
|
414
418
|
readonly openUri: (uri: string) => Promise<void>;
|
|
419
|
+
readonly save: () => Promise<void>;
|
|
420
|
+
readonly selectTab: (groupIndex: number, tabIndex: number) => Promise<void>;
|
|
415
421
|
readonly splitRight: () => Promise<void>;
|
|
416
422
|
}
|
|
417
423
|
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -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 => {
|
|
@@ -2318,10 +2317,10 @@ const newFile = async () => {
|
|
|
2318
2317
|
const newFolder = async () => {
|
|
2319
2318
|
await invoke('Explorer.newFolder');
|
|
2320
2319
|
};
|
|
2321
|
-
const copyPath$
|
|
2320
|
+
const copyPath$2 = async () => {
|
|
2322
2321
|
await invoke('Explorer.copyPath');
|
|
2323
2322
|
};
|
|
2324
|
-
const copyRelativePath = async () => {
|
|
2323
|
+
const copyRelativePath$1 = async () => {
|
|
2325
2324
|
await invoke('Explorer.copyRelativePath');
|
|
2326
2325
|
};
|
|
2327
2326
|
const handleClick$2 = async index => {
|
|
@@ -2379,8 +2378,8 @@ const Explorer = {
|
|
|
2379
2378
|
cancelEdit,
|
|
2380
2379
|
clickCurrent,
|
|
2381
2380
|
collapseAll: collapseAll$2,
|
|
2382
|
-
copyPath: copyPath$
|
|
2383
|
-
copyRelativePath,
|
|
2381
|
+
copyPath: copyPath$2,
|
|
2382
|
+
copyRelativePath: copyRelativePath$1,
|
|
2384
2383
|
expandAll,
|
|
2385
2384
|
expandRecursively,
|
|
2386
2385
|
focus: focus$1,
|
|
@@ -2454,17 +2453,17 @@ const handleClickSetColorTheme = async () => {
|
|
|
2454
2453
|
const selectFeature = name => {
|
|
2455
2454
|
return invoke('ExtensionDetail.selectFeature', name);
|
|
2456
2455
|
};
|
|
2457
|
-
const selectTab$
|
|
2456
|
+
const selectTab$2 = name => {
|
|
2458
2457
|
return invoke('ExtensionDetail.selectTab', name);
|
|
2459
2458
|
};
|
|
2460
2459
|
const selectDetails = async () => {
|
|
2461
|
-
await selectTab$
|
|
2460
|
+
await selectTab$2('Details');
|
|
2462
2461
|
};
|
|
2463
2462
|
const selectFeatures = async () => {
|
|
2464
|
-
await selectTab$
|
|
2463
|
+
await selectTab$2('Features');
|
|
2465
2464
|
};
|
|
2466
2465
|
const selectChangelog = async () => {
|
|
2467
|
-
await selectTab$
|
|
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$
|
|
2542
|
+
selectTab: selectTab$2
|
|
2544
2543
|
};
|
|
2545
2544
|
|
|
2546
2545
|
const open$5 = async id => {
|
|
@@ -3053,15 +3052,24 @@ const closeAllEditors = async () => {
|
|
|
3053
3052
|
const closeTabsLeft = async () => {
|
|
3054
3053
|
await invoke('Main.closeTabsLeft');
|
|
3055
3054
|
};
|
|
3055
|
+
const handleModifiedStatusChange = async (uri, newStatus) => {
|
|
3056
|
+
await invoke('Main.handleModifiedStatusChange', uri, newStatus);
|
|
3057
|
+
};
|
|
3056
3058
|
const closeTabsRight = async () => {
|
|
3057
3059
|
await invoke('Main.closeTabsRight');
|
|
3058
3060
|
};
|
|
3061
|
+
const selectTab$1 = async (groupIndex, tabIndex) => {
|
|
3062
|
+
await invoke('Main.selectTab', groupIndex, tabIndex);
|
|
3063
|
+
};
|
|
3059
3064
|
const closeOthers = async () => {
|
|
3060
3065
|
await invoke('Main.closeOthers');
|
|
3061
3066
|
};
|
|
3062
3067
|
const closeActiveEditor = async () => {
|
|
3063
3068
|
await invoke('Main.closeActiveEditor');
|
|
3064
3069
|
};
|
|
3070
|
+
const save = async () => {
|
|
3071
|
+
await invoke('Main.save');
|
|
3072
|
+
};
|
|
3065
3073
|
const focusFirst$3 = async () => {
|
|
3066
3074
|
await invoke('Main.focusFirst');
|
|
3067
3075
|
};
|
|
@@ -3074,6 +3082,15 @@ const focusPrevious$3 = async () => {
|
|
|
3074
3082
|
const focusLast$2 = async () => {
|
|
3075
3083
|
await invoke('Main.focusLast');
|
|
3076
3084
|
};
|
|
3085
|
+
const handleTabsContextMenu = async (x, y) => {
|
|
3086
|
+
await invoke('Main.handleTabsContextMenu', x, y);
|
|
3087
|
+
};
|
|
3088
|
+
const copyPath$1 = async () => {
|
|
3089
|
+
await invoke('Main.copyPath');
|
|
3090
|
+
};
|
|
3091
|
+
const copyRelativePath = async () => {
|
|
3092
|
+
await invoke('Main.copyRelativePath');
|
|
3093
|
+
};
|
|
3077
3094
|
|
|
3078
3095
|
const Main = {
|
|
3079
3096
|
__proto__: null,
|
|
@@ -3082,12 +3099,18 @@ const Main = {
|
|
|
3082
3099
|
closeOthers,
|
|
3083
3100
|
closeTabsLeft,
|
|
3084
3101
|
closeTabsRight,
|
|
3102
|
+
copyPath: copyPath$1,
|
|
3103
|
+
copyRelativePath,
|
|
3085
3104
|
focusFirst: focusFirst$3,
|
|
3086
3105
|
focusLast: focusLast$2,
|
|
3087
3106
|
focusNext: focusNext$3,
|
|
3088
3107
|
focusPrevious: focusPrevious$3,
|
|
3108
|
+
handleModifiedStatusChange,
|
|
3109
|
+
handleTabsContextMenu,
|
|
3089
3110
|
openKeyBindings,
|
|
3090
3111
|
openUri,
|
|
3112
|
+
save,
|
|
3113
|
+
selectTab: selectTab$1,
|
|
3091
3114
|
splitRight
|
|
3092
3115
|
};
|
|
3093
3116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/test-worker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.15.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.
|
|
14
|
+
"@lvce-editor/constants": "^3.1.0"
|
|
15
15
|
},
|
|
16
16
|
"types": "dist/api.d.ts"
|
|
17
17
|
}
|