@lvce-editor/test-worker 13.5.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 +4 -0
- package/dist/testWorkerMain.js +21 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -494,9 +494,13 @@ interface Preview {
|
|
|
494
494
|
readonly handleClick: (hdId: string) => Promise<void>;
|
|
495
495
|
readonly handleInput: (hdId: string, value: string) => Promise<void>;
|
|
496
496
|
readonly handleKeyDown: (hdId: string, key: string, code: string) => Promise<void>;
|
|
497
|
+
readonly handleMouseDown: (hdId: string, clientX: number, clientY: number) => Promise<void>;
|
|
498
|
+
readonly handleMouseMove: (hdId: string, value: string, clientX: number, clientY: number) => Promise<void>;
|
|
499
|
+
readonly handleMouseUp: (hdId: string, value: string, clientX: number, clientY: number) => Promise<void>;
|
|
497
500
|
readonly open: (uri: string) => Promise<void>;
|
|
498
501
|
readonly setUri: (uri: string) => Promise<void>;
|
|
499
502
|
readonly waitForClick: () => Promise<void>;
|
|
503
|
+
readonly waitForMutation: () => Promise<void>;
|
|
500
504
|
}
|
|
501
505
|
|
|
502
506
|
interface Problems {
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -3321,23 +3321,43 @@ const handleClick = async hdId => {
|
|
|
3321
3321
|
const handleInput$3 = async (hdId, value) => {
|
|
3322
3322
|
await invoke('Preview.handleInput', hdId, value);
|
|
3323
3323
|
};
|
|
3324
|
+
const handleMouseDown = async (hdId, clientX, clientY) => {
|
|
3325
|
+
await invoke('Preview.handleMouseDown', hdId, clientX, clientY);
|
|
3326
|
+
};
|
|
3327
|
+
const handleMouseUp = async (hdId, value, clientX, clientY) => {
|
|
3328
|
+
await invoke('Preview.handleMouseUp', hdId, value, clientX, clientY);
|
|
3329
|
+
};
|
|
3330
|
+
const handleMouseMove = async (hdId, value, clientX, clientY) => {
|
|
3331
|
+
await invoke('Preview.handleMouseMove', hdId, value, clientX, clientY);
|
|
3332
|
+
};
|
|
3324
3333
|
const handleKeyDown = async (hdId, key, code) => {
|
|
3325
3334
|
await invoke('Preview.handleKeyDown', hdId, key, code);
|
|
3326
3335
|
};
|
|
3327
3336
|
const setUri = async uri => {
|
|
3328
3337
|
await invoke('Preview.setUri', uri);
|
|
3329
3338
|
};
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* @deprecated use waitForMutation instead
|
|
3342
|
+
*/
|
|
3330
3343
|
const waitForClick = async () => {
|
|
3331
3344
|
await invoke('Preview.waitForClick');
|
|
3332
3345
|
};
|
|
3346
|
+
const waitForMutation = async () => {
|
|
3347
|
+
await invoke('Preview.waitForMutation');
|
|
3348
|
+
};
|
|
3333
3349
|
|
|
3334
3350
|
const Preview = {
|
|
3335
3351
|
handleClick,
|
|
3336
3352
|
handleInput: handleInput$3,
|
|
3337
3353
|
handleKeyDown,
|
|
3354
|
+
handleMouseDown,
|
|
3355
|
+
handleMouseMove,
|
|
3356
|
+
handleMouseUp,
|
|
3338
3357
|
open: open$2,
|
|
3339
3358
|
setUri,
|
|
3340
|
-
waitForClick
|
|
3359
|
+
waitForClick,
|
|
3360
|
+
waitForMutation
|
|
3341
3361
|
};
|
|
3342
3362
|
|
|
3343
3363
|
const show$3 = async () => {
|