@lvce-editor/test-worker 10.2.0 → 10.3.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 CHANGED
@@ -85,6 +85,7 @@ interface ClipBoard {
85
85
  readonly readNativeFiles: () => Promise<void>;
86
86
  readonly shouldHaveText: (expectedText: string | RegExp) => Promise<void>;
87
87
  readonly writeNativeFiles: (uris: readonly string[]) => Promise<void>;
88
+ readonly writeText: (text: string) => Promise<void>;
88
89
  }
89
90
 
90
91
  interface Command {
@@ -447,6 +448,10 @@ interface Search {
447
448
  readonly focusNextPage: () => Promise<void>;
448
449
  readonly focusPrevious: () => Promise<void>;
449
450
  readonly focusPreviousPage: () => Promise<void>;
451
+ readonly handleInputCopy: (name: string) => Promise<void>;
452
+ readonly handleInputCut: (name: string) => Promise<void>;
453
+ readonly handleInputPaste: (name: string) => Promise<void>;
454
+ readonly handleInputSelectionChange: (name: string, start: number, end: number) => Promise<void>;
450
455
  readonly handleListBlur: () => Promise<void>;
451
456
  readonly handleWheel: (deltaMode: number, deltaY: number) => Promise<void>;
452
457
  readonly open: () => Promise<void>;
@@ -1664,6 +1664,10 @@ const shouldHaveText$1 = async expectedText => {
1664
1664
  throw new AssertionError(`expected clipboard to have text "${expectedText}" but was "${actualText}"`);
1665
1665
  }
1666
1666
  };
1667
+ const writeText = async text => {
1668
+ // @ts-ignore
1669
+ await invoke$1('ClipBoard.writeText', text);
1670
+ };
1667
1671
 
1668
1672
  const ClipBoard = {
1669
1673
  __proto__: null,
@@ -1671,7 +1675,8 @@ const ClipBoard = {
1671
1675
  enableMemoryClipBoard,
1672
1676
  readNativeFiles,
1673
1677
  shouldHaveText: shouldHaveText$1,
1674
- writeNativeFiles
1678
+ writeNativeFiles,
1679
+ writeText
1675
1680
  };
1676
1681
 
1677
1682
  const execute$1 = async (id, ...args) => {
@@ -3395,6 +3400,22 @@ const copyPath = async () => {
3395
3400
  // @ts-ignore
3396
3401
  await invoke$1('Search.copyPath');
3397
3402
  };
3403
+ const handleInputCut = async name => {
3404
+ // @ts-ignore
3405
+ await invoke$1('Search.handleInputCut', name);
3406
+ };
3407
+ const handleInputPaste = async name => {
3408
+ // @ts-ignore
3409
+ await invoke$1('Search.handleInputPaste', name);
3410
+ };
3411
+ const handleInputCopy = async name => {
3412
+ // @ts-ignore
3413
+ await invoke$1('Search.handleInputCopy', name);
3414
+ };
3415
+ const handleInputSelectionChange = async (name, start, end) => {
3416
+ // @ts-ignore
3417
+ await invoke$1('Search.handleInputSelectionChange', name, start, end);
3418
+ };
3398
3419
 
3399
3420
  const Search = {
3400
3421
  __proto__: null,
@@ -3410,6 +3431,10 @@ const Search = {
3410
3431
  focusNextPage,
3411
3432
  focusPrevious: focusPrevious$1,
3412
3433
  focusPreviousPage,
3434
+ handleInputCopy,
3435
+ handleInputCut,
3436
+ handleInputPaste,
3437
+ handleInputSelectionChange,
3413
3438
  handleListBlur,
3414
3439
  handleWheel,
3415
3440
  open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "10.2.0",
3
+ "version": "10.3.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",