@lvce-editor/test-worker 4.25.0 → 4.26.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 +8 -0
- package/dist/testWorkerMain.js +25 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ declare const handleClick: (index: number) => Promise<void>;
|
|
|
15
15
|
declare const handleContextMenu: () => Promise<void>;
|
|
16
16
|
declare const selectCurrent: () => Promise<void>;
|
|
17
17
|
declare const getBaseUrl: () => string;
|
|
18
|
+
declare const readNativeFiles: () => Promise<void>;
|
|
19
|
+
declare const writeNativeFiles: (uris: readonly string[]) => Promise<void>;
|
|
20
|
+
declare const enableMemoryClipBoard: () => Promise<void>;
|
|
21
|
+
declare const disableMemoryClipBoard: () => Promise<void>;
|
|
18
22
|
declare const execute: (id: string, ...args: readonly any[]) => Promise<any>;
|
|
19
23
|
declare const selectItem: (text: string) => Promise<void>;
|
|
20
24
|
declare const openIframeInspector: () => Promise<void>;
|
|
@@ -255,6 +259,9 @@ declare namespace ActivityBar {
|
|
|
255
259
|
declare namespace BaseUrl {
|
|
256
260
|
export { getBaseUrl };
|
|
257
261
|
}
|
|
262
|
+
declare namespace ClipBoard {
|
|
263
|
+
export { disableMemoryClipBoard, enableMemoryClipBoard, readNativeFiles, writeNativeFiles };
|
|
264
|
+
}
|
|
258
265
|
declare namespace Command {
|
|
259
266
|
export { execute };
|
|
260
267
|
}
|
|
@@ -341,6 +348,7 @@ export interface TestApi {
|
|
|
341
348
|
readonly About: typeof About,
|
|
342
349
|
readonly ActivityBar: typeof ActivityBar,
|
|
343
350
|
readonly BaseUrl: typeof BaseUrl,
|
|
351
|
+
readonly ClipBoard: typeof ClipBoard,
|
|
344
352
|
readonly Command: typeof Command,
|
|
345
353
|
readonly ContextMenu: typeof ContextMenu,
|
|
346
354
|
readonly Developer: typeof Developer,
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1658,6 +1658,30 @@ const TestFrameWorkComponentBaseUrl = {
|
|
|
1658
1658
|
getBaseUrl
|
|
1659
1659
|
};
|
|
1660
1660
|
|
|
1661
|
+
const readNativeFiles = async () => {
|
|
1662
|
+
await invoke('ClipBoard.readNativeFiles');
|
|
1663
|
+
};
|
|
1664
|
+
const writeNativeFiles = async uris => {
|
|
1665
|
+
// @ts-ignore
|
|
1666
|
+
await invoke('ClipBoard.writeNativeFiles', uris);
|
|
1667
|
+
};
|
|
1668
|
+
const enableMemoryClipBoard = async () => {
|
|
1669
|
+
// @ts-ignore
|
|
1670
|
+
await invoke('ClipBoard.enableMemoryClipBoard');
|
|
1671
|
+
};
|
|
1672
|
+
const disableMemoryClipBoard = async () => {
|
|
1673
|
+
// @ts-ignore
|
|
1674
|
+
await invoke('ClipBoard.disableMemoryClipBoard');
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
const TestFrameworkComponentClipBoard = {
|
|
1678
|
+
__proto__: null,
|
|
1679
|
+
disableMemoryClipBoard,
|
|
1680
|
+
enableMemoryClipBoard,
|
|
1681
|
+
readNativeFiles,
|
|
1682
|
+
writeNativeFiles
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1661
1685
|
const execute$1 = async (id, ...args) => {
|
|
1662
1686
|
// @ts-ignore
|
|
1663
1687
|
return invoke(id, ...args);
|
|
@@ -2941,6 +2965,7 @@ const TestFrameWorkComponent = {
|
|
|
2941
2965
|
About: TestFrameWorkComponentAbout,
|
|
2942
2966
|
ActivityBar: TestFrameworkComponentActivityBar,
|
|
2943
2967
|
BaseUrl: TestFrameWorkComponentBaseUrl,
|
|
2968
|
+
ClipBoard: TestFrameworkComponentClipBoard,
|
|
2944
2969
|
Command: TestFrameWorkComponentCommand,
|
|
2945
2970
|
ContextMenu: TestFrameWorkComponentContextMenu,
|
|
2946
2971
|
Developer: TestFrameWorkComponentDeveloper,
|