@lvce-editor/test-worker 5.12.0 → 5.14.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 +7 -4
- package/dist/testWorkerMain.js +16 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ declare const growSelection: () => Promise<void>;
|
|
|
91
91
|
declare const getSelections: () => Promise<Uint32Array>;
|
|
92
92
|
declare const shouldHaveText$1: (expectedText: string) => Promise<void>;
|
|
93
93
|
declare const shouldHaveSelections: (expectedSelections: Uint32Array) => Promise<void>;
|
|
94
|
+
declare const undo: () => Promise<void>;
|
|
95
|
+
declare const redo: () => Promise<void>;
|
|
94
96
|
declare const selectIndex: (index: number) => Promise<void>;
|
|
95
97
|
declare const selectCurrentIndex: () => Promise<void>;
|
|
96
98
|
declare const handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
|
|
@@ -175,6 +177,7 @@ declare const setValue: (value: string) => Promise<void>;
|
|
|
175
177
|
declare const toggleReplace: () => Promise<void>;
|
|
176
178
|
declare const toggleMatchCase: () => Promise<void>;
|
|
177
179
|
declare const toggleMatchWholeWord: () => Promise<void>;
|
|
180
|
+
declare const togglePreserveCase: () => Promise<void>;
|
|
178
181
|
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
179
182
|
declare const replace: () => Promise<void>;
|
|
180
183
|
declare const replaceAll: () => Promise<void>;
|
|
@@ -285,7 +288,7 @@ declare const focusPrevious$7: () => Promise<void>;
|
|
|
285
288
|
declare const toggleSearchDetails: () => Promise<void>;
|
|
286
289
|
declare const toggleMatchCase$1: () => Promise<void>;
|
|
287
290
|
declare const toggleMatchWholeWord$1: () => Promise<void>;
|
|
288
|
-
declare const togglePreserveCase: () => Promise<void>;
|
|
291
|
+
declare const togglePreserveCase$1: () => Promise<void>;
|
|
289
292
|
declare const toggleUseRegularExpression$1: () => Promise<void>;
|
|
290
293
|
declare const toggleReplace$1: () => Promise<void>;
|
|
291
294
|
declare const open$4: () => Promise<void>;
|
|
@@ -359,7 +362,7 @@ declare namespace Dialog {
|
|
|
359
362
|
export { executeMock, mockConfirm, mockSaveFilePicker, showSaveFilePicker };
|
|
360
363
|
}
|
|
361
364
|
declare namespace Editor {
|
|
362
|
-
export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getSelections, getText, goToDefinition, goToTypeDefinition, growSelection, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, rename, rename2, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText$1 as shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type };
|
|
365
|
+
export { addAllMissingImports, closeColorPicker, closeCompletion, closeCompletionDetails, copy, copyLineDown, copyLineUp, cursorCharacterLeft, cursorCharacterRight, cursorDown, cursorEnd, cursorHome, cursorUp, cursorWordLeft, cursorWordPartLeft, cursorWordPartRight, cursorWordRight, deleteAllLeft, deleteAllRight, executeTabCompletion, findAllImplementations, findAllReferences, format, getSelections, getText, goToDefinition, goToTypeDefinition, growSelection, insertLineBreak, invokeBraceCompletion, invokeTabCompletion, openColorPicker, openCompletion, openCompletionDetails, openContextMenu, openEditorContextMenu, openFind, openFindWidget, openHover, openRename, openSourceActions, organizeImports, redo, rename, rename2, selectAll, setCursor, setDeltaY, setSelections, shouldHaveSelections, shouldHaveText$1 as shouldHaveText, showHover, sortImports, sourceActionsSelectCurrent, toggleBlockComment, toggleCompletionDetails, toggleLineComment, type, undo };
|
|
363
366
|
}
|
|
364
367
|
declare namespace EditorCompletion {
|
|
365
368
|
export { handleWheel, selectCurrentIndex, selectIndex };
|
|
@@ -380,7 +383,7 @@ declare namespace FileSystem {
|
|
|
380
383
|
export { chmod, createDroppedFileHandle, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
381
384
|
}
|
|
382
385
|
declare namespace FindWidget {
|
|
383
|
-
export { focusElement, focusNext$3 as focusNext, focusNextElement, focusPrevious$2 as focusPrevious, focusPreviousElement, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, toggleReplace, toggleUseRegularExpression };
|
|
386
|
+
export { focusElement, focusNext$3 as focusNext, focusNextElement, focusPrevious$2 as focusPrevious, focusPreviousElement, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, togglePreserveCase, toggleReplace, toggleUseRegularExpression };
|
|
384
387
|
}
|
|
385
388
|
declare namespace IconTheme {
|
|
386
389
|
export { setIconTheme };
|
|
@@ -419,7 +422,7 @@ declare namespace RunAndDebug {
|
|
|
419
422
|
export { acceptWatchExpressionEdit, addWatchExpression, handleClickSectionWatch, handleRename, handleSpace, handleWatchValueChange, selectIndex$4 as selectIndex, setPauseOnExceptions };
|
|
420
423
|
}
|
|
421
424
|
declare namespace Search {
|
|
422
|
-
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$7 as focusPrevious, focusPreviousPage, handleWheel$2 as handleWheel, open$4 as open, openDetails, replaceAll$1 as replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setLimit, setReplaceValue$1 as setReplaceValue, setValue$2 as setValue, toggleMatchCase$1 as toggleMatchCase, toggleMatchWholeWord$1 as toggleMatchWholeWord, togglePreserveCase, toggleReplace$1 as toggleReplace, toggleSearchDetails, toggleUseRegularExpression$1 as toggleUseRegularExpression };
|
|
425
|
+
export { clearSearchResults, collapseDetails, dismissItem, focusFirst$6 as focusFirst, focusIndex$4 as focusIndex, focusNext$8 as focusNext, focusNextPage, focusPrevious$7 as focusPrevious, focusPreviousPage, handleWheel$2 as handleWheel, open$4 as open, openDetails, replaceAll$1 as replaceAll, selectIndex$5 as selectIndex, setExcludeValue, setIncludeValue, setLimit, setReplaceValue$1 as setReplaceValue, setValue$2 as setValue, toggleMatchCase$1 as toggleMatchCase, toggleMatchWholeWord$1 as toggleMatchWholeWord, togglePreserveCase$1 as togglePreserveCase, toggleReplace$1 as toggleReplace, toggleSearchDetails, toggleUseRegularExpression$1 as toggleUseRegularExpression };
|
|
423
426
|
}
|
|
424
427
|
declare namespace Settings {
|
|
425
428
|
export { update };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -2107,6 +2107,14 @@ const shouldHaveSelections = async expectedSelections => {
|
|
|
2107
2107
|
throw new Error(`Expected editor to have selections ${expectedSelections} but was ${selections}`);
|
|
2108
2108
|
}
|
|
2109
2109
|
};
|
|
2110
|
+
const undo = async () => {
|
|
2111
|
+
// @ts-ignore
|
|
2112
|
+
await invoke('Editor.undo');
|
|
2113
|
+
};
|
|
2114
|
+
const redo = async () => {
|
|
2115
|
+
// @ts-ignore
|
|
2116
|
+
await invoke('Editor.redo');
|
|
2117
|
+
};
|
|
2110
2118
|
|
|
2111
2119
|
const TestFrameWorkComponentEditor = {
|
|
2112
2120
|
__proto__: null,
|
|
@@ -2152,6 +2160,7 @@ const TestFrameWorkComponentEditor = {
|
|
|
2152
2160
|
openRename,
|
|
2153
2161
|
openSourceActions,
|
|
2154
2162
|
organizeImports,
|
|
2163
|
+
redo,
|
|
2155
2164
|
rename: rename$1,
|
|
2156
2165
|
rename2,
|
|
2157
2166
|
selectAll: selectAll$1,
|
|
@@ -2166,7 +2175,8 @@ const TestFrameWorkComponentEditor = {
|
|
|
2166
2175
|
toggleBlockComment,
|
|
2167
2176
|
toggleCompletionDetails,
|
|
2168
2177
|
toggleLineComment,
|
|
2169
|
-
type
|
|
2178
|
+
type,
|
|
2179
|
+
undo
|
|
2170
2180
|
};
|
|
2171
2181
|
|
|
2172
2182
|
const selectIndex$6 = async index => {
|
|
@@ -2588,6 +2598,10 @@ const toggleMatchWholeWord$1 = async () => {
|
|
|
2588
2598
|
// @ts-ignore
|
|
2589
2599
|
await invoke$1('FindWidget.toggleMatchWholeWord');
|
|
2590
2600
|
};
|
|
2601
|
+
const togglePreserveCase$1 = async () => {
|
|
2602
|
+
// @ts-ignore
|
|
2603
|
+
await invoke$1('FindWidget.togglePreserveCase');
|
|
2604
|
+
};
|
|
2591
2605
|
const toggleUseRegularExpression$1 = async () => {
|
|
2592
2606
|
// @ts-ignore
|
|
2593
2607
|
await invoke$1('FindWidget.toggleUseRegularExpression');
|
|
@@ -2626,6 +2640,7 @@ const TestFrameWorkComponentFindWidget = {
|
|
|
2626
2640
|
setValue: setValue$2,
|
|
2627
2641
|
toggleMatchCase: toggleMatchCase$1,
|
|
2628
2642
|
toggleMatchWholeWord: toggleMatchWholeWord$1,
|
|
2643
|
+
togglePreserveCase: togglePreserveCase$1,
|
|
2629
2644
|
toggleReplace: toggleReplace$1,
|
|
2630
2645
|
toggleUseRegularExpression: toggleUseRegularExpression$1
|
|
2631
2646
|
};
|