@lvce-editor/test-worker 5.6.0 → 5.7.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 +4 -1
- package/dist/testWorkerMain.js +15 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -172,6 +172,9 @@ declare const toggleMatchWholeWord: () => Promise<void>;
|
|
|
172
172
|
declare const toggleUseRegularExpression: () => Promise<void>;
|
|
173
173
|
declare const replace: () => Promise<void>;
|
|
174
174
|
declare const replaceAll: () => Promise<void>;
|
|
175
|
+
declare const focusElement: (whenExpression: number) => Promise<void>;
|
|
176
|
+
declare const focusNextElement: () => Promise<void>;
|
|
177
|
+
declare const focusPreviousElement: () => Promise<void>;
|
|
175
178
|
declare const setIconTheme: (id: string) => Promise<void>;
|
|
176
179
|
declare const selectIndex$2: (index: number) => Promise<void>;
|
|
177
180
|
declare const focusNext$4: () => Promise<void>;
|
|
@@ -369,7 +372,7 @@ declare namespace FileSystem {
|
|
|
369
372
|
export { chmod, createExecutable, createExecutableFrom, getTmpDir, mkdir, readFile, remove, writeFile, writeJson };
|
|
370
373
|
}
|
|
371
374
|
declare namespace FindWidget {
|
|
372
|
-
export { focusNext$3 as focusNext, focusPrevious$2 as focusPrevious, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, toggleReplace, toggleUseRegularExpression };
|
|
375
|
+
export { focusElement, focusNext$3 as focusNext, focusNextElement, focusPrevious$2 as focusPrevious, focusPreviousElement, replace, replaceAll, setReplaceValue, setValue, toggleMatchCase, toggleMatchWholeWord, toggleReplace, toggleUseRegularExpression };
|
|
373
376
|
}
|
|
374
377
|
declare namespace IconTheme {
|
|
375
378
|
export { setIconTheme };
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -2574,11 +2574,26 @@ const replaceAll$1 = async () => {
|
|
|
2574
2574
|
// @ts-ignore
|
|
2575
2575
|
await invoke$1('FindWidget.replaceAll');
|
|
2576
2576
|
};
|
|
2577
|
+
const focusElement = async whenExpression => {
|
|
2578
|
+
// @ts-ignore
|
|
2579
|
+
await invoke$1('FindWidget.focusElement', whenExpression);
|
|
2580
|
+
};
|
|
2581
|
+
const focusNextElement = async () => {
|
|
2582
|
+
// @ts-ignore
|
|
2583
|
+
await invoke$1('FindWidget.focusNextElement');
|
|
2584
|
+
};
|
|
2585
|
+
const focusPreviousElement = async () => {
|
|
2586
|
+
// @ts-ignore
|
|
2587
|
+
await invoke$1('FindWidget.focusPreviousElement');
|
|
2588
|
+
};
|
|
2577
2589
|
|
|
2578
2590
|
const TestFrameWorkComponentFindWidget = {
|
|
2579
2591
|
__proto__: null,
|
|
2592
|
+
focusElement,
|
|
2580
2593
|
focusNext: focusNext$6,
|
|
2594
|
+
focusNextElement,
|
|
2581
2595
|
focusPrevious: focusPrevious$6,
|
|
2596
|
+
focusPreviousElement,
|
|
2582
2597
|
replace,
|
|
2583
2598
|
replaceAll: replaceAll$1,
|
|
2584
2599
|
setReplaceValue: setReplaceValue$1,
|