@lvce-editor/test-worker 4.9.0 → 4.10.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 +3 -1
- package/dist/testWorkerMain.js +8 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ declare const shouldHaveText: (expectedText: string) => Promise<void>;
|
|
|
81
81
|
declare const selectIndex: (index: number) => Promise<void>;
|
|
82
82
|
declare const selectCurrentIndex: () => Promise<void>;
|
|
83
83
|
declare const openContextMenu$1: (index: number) => Promise<void>;
|
|
84
|
+
declare const handleDragLeave: (index: number) => Promise<void>;
|
|
84
85
|
declare const focus$1: () => Promise<void>;
|
|
85
86
|
declare const focusNext$2: () => Promise<void>;
|
|
86
87
|
declare const refresh: () => Promise<void>;
|
|
@@ -101,6 +102,7 @@ declare const cancelEdit: () => Promise<void>;
|
|
|
101
102
|
declare const acceptEdit: () => Promise<void>;
|
|
102
103
|
declare const updateEditingValue: (value: string) => Promise<void>;
|
|
103
104
|
declare const expandAll: () => Promise<void>;
|
|
105
|
+
declare const handleDragOver: (x: number, y: number) => Promise<void>;
|
|
104
106
|
declare const addWebExtension: (relativePath: string) => Promise<void>;
|
|
105
107
|
declare const addNodeExtension: (relativePath: string) => Promise<void>;
|
|
106
108
|
declare const selectFeature: (name: string) => Promise<void>;
|
|
@@ -252,7 +254,7 @@ declare namespace EditorCompletion {
|
|
|
252
254
|
export { selectCurrentIndex, selectIndex };
|
|
253
255
|
}
|
|
254
256
|
declare namespace Explorer {
|
|
255
|
-
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, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, updateEditingValue };
|
|
257
|
+
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, handleDragLeave, handleDragOver, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, updateEditingValue };
|
|
256
258
|
}
|
|
257
259
|
declare namespace Extension {
|
|
258
260
|
export { addNodeExtension, addWebExtension };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1726,6 +1726,9 @@ const TestFrameWorkComponentEditorCompletion = {
|
|
|
1726
1726
|
const openContextMenu = async index => {
|
|
1727
1727
|
await invoke('Explorer.handleContextMenuKeyboard', index);
|
|
1728
1728
|
};
|
|
1729
|
+
const handleDragLeave = async index => {
|
|
1730
|
+
await invoke('Explorer.handleDragLeave', index);
|
|
1731
|
+
};
|
|
1729
1732
|
const focus$1 = async () => {
|
|
1730
1733
|
await invoke('Explorer.focusIndex', -1);
|
|
1731
1734
|
};
|
|
@@ -1786,6 +1789,9 @@ const updateEditingValue = async value => {
|
|
|
1786
1789
|
const expandAll = async () => {
|
|
1787
1790
|
await invoke('Explorer.expandAll');
|
|
1788
1791
|
};
|
|
1792
|
+
const handleDragOver = async (x, y) => {
|
|
1793
|
+
await invoke('Explorer.handleDragOver', x, y);
|
|
1794
|
+
};
|
|
1789
1795
|
|
|
1790
1796
|
const TestFrameWorkComponentExplorer = {
|
|
1791
1797
|
__proto__: null,
|
|
@@ -1801,6 +1807,8 @@ const TestFrameWorkComponentExplorer = {
|
|
|
1801
1807
|
focusNext: focusNext$7,
|
|
1802
1808
|
handleArrowLeft,
|
|
1803
1809
|
handleClick: handleClick$1,
|
|
1810
|
+
handleDragLeave,
|
|
1811
|
+
handleDragOver,
|
|
1804
1812
|
handleDrop,
|
|
1805
1813
|
newFile,
|
|
1806
1814
|
newFolder,
|