@lvce-editor/test-worker 13.6.0 → 13.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 +1 -0
- package/dist/testWorkerMain.js +9 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -500,6 +500,7 @@ interface Preview {
|
|
|
500
500
|
readonly open: (uri: string) => Promise<void>;
|
|
501
501
|
readonly setUri: (uri: string) => Promise<void>;
|
|
502
502
|
readonly waitForClick: () => Promise<void>;
|
|
503
|
+
readonly waitForMutation: () => Promise<void>;
|
|
503
504
|
}
|
|
504
505
|
|
|
505
506
|
interface Problems {
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -3336,9 +3336,16 @@ const handleKeyDown = async (hdId, key, code) => {
|
|
|
3336
3336
|
const setUri = async uri => {
|
|
3337
3337
|
await invoke('Preview.setUri', uri);
|
|
3338
3338
|
};
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* @deprecated use waitForMutation instead
|
|
3342
|
+
*/
|
|
3339
3343
|
const waitForClick = async () => {
|
|
3340
3344
|
await invoke('Preview.waitForClick');
|
|
3341
3345
|
};
|
|
3346
|
+
const waitForMutation = async () => {
|
|
3347
|
+
await invoke('Preview.waitForMutation');
|
|
3348
|
+
};
|
|
3342
3349
|
|
|
3343
3350
|
const Preview = {
|
|
3344
3351
|
handleClick,
|
|
@@ -3349,7 +3356,8 @@ const Preview = {
|
|
|
3349
3356
|
handleMouseUp,
|
|
3350
3357
|
open: open$2,
|
|
3351
3358
|
setUri,
|
|
3352
|
-
waitForClick
|
|
3359
|
+
waitForClick,
|
|
3360
|
+
waitForMutation
|
|
3353
3361
|
};
|
|
3354
3362
|
|
|
3355
3363
|
const show$3 = async () => {
|