@lvce-editor/test-worker 4.7.0 → 4.8.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 +2 -1
- package/dist/testWorkerMain.js +4 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ declare const focusFirst$1: () => Promise<void>;
|
|
|
91
91
|
declare const removeDirent: () => Promise<void>;
|
|
92
92
|
declare const expandRecursively: () => Promise<void>;
|
|
93
93
|
declare const newFile: () => Promise<void>;
|
|
94
|
+
declare const newFolder: () => Promise<void>;
|
|
94
95
|
declare const handleClick$1: (index: number) => Promise<void>;
|
|
95
96
|
declare const rename$1: () => Promise<void>;
|
|
96
97
|
declare const cancelEdit: () => Promise<void>;
|
|
@@ -247,7 +248,7 @@ declare namespace EditorCompletion {
|
|
|
247
248
|
export { selectCurrentIndex, selectIndex };
|
|
248
249
|
}
|
|
249
250
|
declare namespace Explorer {
|
|
250
|
-
export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleClick$1 as handleClick, newFile, openContextMenu$1 as openContextMenu, removeDirent, rename$1 as rename, updateEditingValue };
|
|
251
|
+
export { acceptEdit, cancelEdit, clickCurrent, expandAll, expandRecursively, focus$1 as focus, focusFirst$1 as focusFirst, focusIndex, focusLast$1 as focusLast, focusNext$2 as focusNext, handleArrowLeft, handleClick$1 as handleClick, newFile, newFolder, openContextMenu$1 as openContextMenu, removeDirent, rename$1 as rename, updateEditingValue };
|
|
251
252
|
}
|
|
252
253
|
declare namespace Extension {
|
|
253
254
|
export { addNodeExtension, addWebExtension };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1756,6 +1756,9 @@ const expandRecursively = async () => {
|
|
|
1756
1756
|
const newFile = async () => {
|
|
1757
1757
|
await invoke('Explorer.newFile');
|
|
1758
1758
|
};
|
|
1759
|
+
const newFolder = async () => {
|
|
1760
|
+
await invoke('Explorer.newFolder');
|
|
1761
|
+
};
|
|
1759
1762
|
const handleClick$1 = async index => {
|
|
1760
1763
|
await invoke('Explorer.handleClick', index);
|
|
1761
1764
|
};
|
|
@@ -1790,6 +1793,7 @@ const TestFrameWorkComponentExplorer = {
|
|
|
1790
1793
|
handleArrowLeft,
|
|
1791
1794
|
handleClick: handleClick$1,
|
|
1792
1795
|
newFile,
|
|
1796
|
+
newFolder,
|
|
1793
1797
|
openContextMenu,
|
|
1794
1798
|
removeDirent,
|
|
1795
1799
|
rename,
|