@lvce-editor/test-worker 9.2.0 → 9.4.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
@@ -252,6 +252,7 @@ interface ExtensionDetail {
252
252
  readonly handleClickDisable: () => Promise<void>;
253
253
  readonly handleClickEnable: () => Promise<void>;
254
254
  readonly handleClickSetColorTheme: () => Promise<void>;
255
+ readonly handleReadmeContextMenu: (x: number, y: number, nodeName: string, href: string) => Promise<void>;
255
256
  readonly handleScroll: (scrollTop: number) => Promise<void>;
256
257
  readonly open: (extensionId: string) => Promise<void>;
257
258
  readonly openCommands: () => Promise<void>;
@@ -269,6 +270,9 @@ interface ExtensionDetail {
269
270
  }
270
271
 
271
272
  interface ExtensionSearch {
273
+ readonly copyExtensionId: () => Promise<void>;
274
+ readonly copyExtensionInfo: () => Promise<void>;
275
+ readonly handleContextMenu: (button: number, x: number, y: number) => Promise<void>;
272
276
  readonly handleInput: (value: string) => Promise<void>;
273
277
  readonly open: () => Promise<void>;
274
278
  }
@@ -1422,7 +1422,6 @@ class Expect {
1422
1422
  }
1423
1423
  async toHaveAttribute(key, value) {
1424
1424
  string(key, 'key must be of type string');
1425
- // Assert.string(value, 'value must be of type string')
1426
1425
  return this.checkSingleElementCondition('toHaveAttribute', {
1427
1426
  key,
1428
1427
  value
@@ -2407,6 +2406,10 @@ const handleClickCategory = async categoryId => {
2407
2406
  // @ts-ignore
2408
2407
  await invoke$1('ExtensionDetail.handleClickCategory', categoryId);
2409
2408
  };
2409
+ const handleReadmeContextMenu = async (x, y, nodeName, href) => {
2410
+ // @ts-ignore
2411
+ await invoke$1('ExtensionDetail.handleReadmeContextMenu', x, y, nodeName, href);
2412
+ };
2410
2413
  const handleClickEnable = async () => {
2411
2414
  // @ts-ignore
2412
2415
  await invoke$1('ExtensionDetail.handleClickEnable');
@@ -2471,6 +2474,7 @@ const ExtensionDetail = {
2471
2474
  handleClickDisable,
2472
2475
  handleClickEnable,
2473
2476
  handleClickSetColorTheme,
2477
+ handleReadmeContextMenu,
2474
2478
  handleScroll: handleScroll$1,
2475
2479
  open: open$5,
2476
2480
  openCommands,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",