@lvce-editor/test-worker 4.12.0 → 4.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 +6 -3
- package/dist/testWorkerMain.js +14 -4
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -97,14 +97,17 @@ declare const expandRecursively: () => Promise<void>;
|
|
|
97
97
|
declare const newFile: () => Promise<void>;
|
|
98
98
|
declare const newFolder: () => Promise<void>;
|
|
99
99
|
declare const handleClick$1: (index: number) => Promise<void>;
|
|
100
|
+
declare const handleClickAt: (button: number, ctrlKey: boolean, shiftKey: boolean, x: number, y: number) => Promise<void>;
|
|
100
101
|
declare const handleDrop: (x: number, y: number, fileIds: readonly number[], fileList: FileList | readonly File[]) => Promise<void>;
|
|
101
102
|
declare const rename$1: () => Promise<void>;
|
|
103
|
+
declare const selectAll$1: () => Promise<void>;
|
|
102
104
|
declare const renameDirent: () => Promise<void>;
|
|
103
105
|
declare const cancelEdit: () => Promise<void>;
|
|
104
106
|
declare const acceptEdit: () => Promise<void>;
|
|
105
107
|
declare const updateEditingValue: (value: string) => Promise<void>;
|
|
106
108
|
declare const expandAll: () => Promise<void>;
|
|
107
109
|
declare const handleDragOver: (x: number, y: number) => Promise<void>;
|
|
110
|
+
declare const selectIndices: (indices: readonly number[]) => Promise<void>;
|
|
108
111
|
declare const addWebExtension: (relativePath: string) => Promise<void>;
|
|
109
112
|
declare const addNodeExtension: (relativePath: string) => Promise<void>;
|
|
110
113
|
declare const selectFeature: (name: string) => Promise<void>;
|
|
@@ -168,7 +171,7 @@ declare const isFirefox: () => boolean;
|
|
|
168
171
|
declare const show$1: () => Promise<void>;
|
|
169
172
|
declare const open$3: () => Promise<void>;
|
|
170
173
|
declare const handleInput$1: (value: string) => Promise<void>;
|
|
171
|
-
declare const handleClickAt: (x: number, y: number) => Promise<void>;
|
|
174
|
+
declare const handleClickAt$1: (x: number, y: number) => Promise<void>;
|
|
172
175
|
declare const setValue$1: (value: string) => Promise<void>;
|
|
173
176
|
declare const focusNext$7: () => Promise<void>;
|
|
174
177
|
declare const focusFirst$5: () => Promise<void>;
|
|
@@ -256,7 +259,7 @@ declare namespace EditorCompletion {
|
|
|
256
259
|
export { selectCurrentIndex, selectIndex };
|
|
257
260
|
}
|
|
258
261
|
declare namespace Explorer {
|
|
259
|
-
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, selectDown, selectUp, updateEditingValue };
|
|
262
|
+
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, handleClickAt, handleDragLeave, handleDragOver, handleDrop, newFile, newFolder, openContextMenu$1 as openContextMenu, refresh, removeDirent, rename$1 as rename, renameDirent, selectAll$1 as selectAll, selectDown, selectIndices, selectUp, updateEditingValue };
|
|
260
263
|
}
|
|
261
264
|
declare namespace Extension {
|
|
262
265
|
export { addNodeExtension, addWebExtension };
|
|
@@ -295,7 +298,7 @@ declare namespace Problems {
|
|
|
295
298
|
export { show$1 as show };
|
|
296
299
|
}
|
|
297
300
|
declare namespace QuickPick {
|
|
298
|
-
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$1 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$1 as selectCurrentIndex, selectIndex$2 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
301
|
+
export { executeCommand, focusFirst$5 as focusFirst, focusIndex$1 as focusIndex, focusLast$5 as focusLast, focusNext$7 as focusNext, focusPrevious$5 as focusPrevious, handleClickAt$1 as handleClickAt, handleInput$1 as handleInput, open$3 as open, selectCurrentIndex$1 as selectCurrentIndex, selectIndex$2 as selectIndex, selectItem$1 as selectItem, setValue$1 as setValue };
|
|
299
302
|
}
|
|
300
303
|
declare namespace Search {
|
|
301
304
|
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$2 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$6 as focusPrevious, focusPreviousPage, handleWheel$1 as handleWheel, openDetails, replaceAll, selectIndex$3 as selectIndex, setExcludeValue, setIncludeValue, setReplaceValue, setValue$2 as setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleSearchDetails, toggleUseRegularExpression };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1592,7 +1592,7 @@ const toggleLineComment = async () => {
|
|
|
1592
1592
|
const toggleBlockComment = async () => {
|
|
1593
1593
|
await invoke('Editor.toggleBlockComment');
|
|
1594
1594
|
};
|
|
1595
|
-
const selectAll = async () => {
|
|
1595
|
+
const selectAll$1 = async () => {
|
|
1596
1596
|
await invoke('Editor.toggleBlockComment');
|
|
1597
1597
|
};
|
|
1598
1598
|
const openColorPicker = async () => {
|
|
@@ -1696,7 +1696,7 @@ const TestFrameWorkComponentEditor = {
|
|
|
1696
1696
|
openSourceActions,
|
|
1697
1697
|
organizeImports,
|
|
1698
1698
|
rename: rename$1,
|
|
1699
|
-
selectAll,
|
|
1699
|
+
selectAll: selectAll$1,
|
|
1700
1700
|
setCursor,
|
|
1701
1701
|
setDeltaY,
|
|
1702
1702
|
setSelections,
|
|
@@ -1774,12 +1774,18 @@ const newFolder = async () => {
|
|
|
1774
1774
|
const handleClick$1 = async index => {
|
|
1775
1775
|
await invoke('Explorer.handleClick', index);
|
|
1776
1776
|
};
|
|
1777
|
+
const handleClickAt$1 = async (button, ctrlKey, shiftKey, x, y) => {
|
|
1778
|
+
await invoke('Explorer.handleClickAt', button, ctrlKey, shiftKey, x, y);
|
|
1779
|
+
};
|
|
1777
1780
|
const handleDrop = async (x, y, fileIds, fileList) => {
|
|
1778
1781
|
await invoke('Explorer.handleDrop', x, y, fileIds, fileIds);
|
|
1779
1782
|
};
|
|
1780
1783
|
const rename = async () => {
|
|
1781
1784
|
await invoke('Explorer.renameDirent');
|
|
1782
1785
|
};
|
|
1786
|
+
const selectAll = async () => {
|
|
1787
|
+
await invoke('Explorer.selectAll');
|
|
1788
|
+
};
|
|
1783
1789
|
const renameDirent = async () => {
|
|
1784
1790
|
await invoke('Explorer.renameDirent');
|
|
1785
1791
|
};
|
|
@@ -1798,6 +1804,9 @@ const expandAll = async () => {
|
|
|
1798
1804
|
const handleDragOver = async (x, y) => {
|
|
1799
1805
|
await invoke('Explorer.handleDragOver', x, y);
|
|
1800
1806
|
};
|
|
1807
|
+
const selectIndices = async indices => {
|
|
1808
|
+
await invoke('Explorer.selectIndices', indices);
|
|
1809
|
+
};
|
|
1801
1810
|
|
|
1802
1811
|
const TestFrameWorkComponentExplorer = {
|
|
1803
1812
|
__proto__: null,
|
|
@@ -1813,6 +1822,7 @@ const TestFrameWorkComponentExplorer = {
|
|
|
1813
1822
|
focusNext: focusNext$7,
|
|
1814
1823
|
handleArrowLeft,
|
|
1815
1824
|
handleClick: handleClick$1,
|
|
1825
|
+
handleClickAt: handleClickAt$1,
|
|
1816
1826
|
handleDragLeave,
|
|
1817
1827
|
handleDragOver,
|
|
1818
1828
|
handleDrop,
|
|
@@ -1823,7 +1833,9 @@ const TestFrameWorkComponentExplorer = {
|
|
|
1823
1833
|
removeDirent,
|
|
1824
1834
|
rename,
|
|
1825
1835
|
renameDirent,
|
|
1836
|
+
selectAll,
|
|
1826
1837
|
selectDown,
|
|
1838
|
+
selectIndices,
|
|
1827
1839
|
selectUp,
|
|
1828
1840
|
updateEditingValue
|
|
1829
1841
|
};
|
|
@@ -2522,12 +2534,10 @@ const getWebViewInfo = async webViewId => {
|
|
|
2522
2534
|
return info;
|
|
2523
2535
|
};
|
|
2524
2536
|
|
|
2525
|
-
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2526
2537
|
const setWebViewPort = async (uid, port, origin, portType) => {
|
|
2527
2538
|
await invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
|
|
2528
2539
|
};
|
|
2529
2540
|
|
|
2530
|
-
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
2531
2541
|
const waitForFirstEventEvent = async port => {
|
|
2532
2542
|
const {
|
|
2533
2543
|
resolve,
|