@skrillex1224/playwright-toolkit 2.1.113 → 2.1.114

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/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export interface ActorInfoItem {
32
32
  domain: string;
33
33
  protocol: string;
34
34
  path: string;
35
- shareIdentities: string[];
35
+ shareIdentities: (string | RegExp)[];
36
36
  readonly landingUrl: string;
37
37
  }
38
38
 
@@ -393,7 +393,7 @@ export interface FullPageScreenshotOptions {
393
393
 
394
394
  export interface UtilsModule {
395
395
  parseCookies(cookieString: string, domain: string): ParsedCookie[];
396
- parseLinks(text: string, options?: { identities?: string[] }): string[];
396
+ parseLinks(text: string, options?: { identities?: (string | RegExp)[] }): string[];
397
397
  fullPageScreenshot(page: Page, options?: FullPageScreenshotOptions): Promise<string>;
398
398
  }
399
399
 
@@ -401,15 +401,17 @@ export interface UtilsModule {
401
401
  // Share
402
402
  // =============================================================================
403
403
  export interface ShareLinkCaptureOptions {
404
- identities?: string[];
404
+ identities?: (string | RegExp)[];
405
405
  timeoutAfterActionMs?: number;
406
406
  payloadSnapshotMaxLen?: number;
407
- enableResponse?: boolean;
407
+ enableClipboard?: boolean;
408
408
  enableDom?: boolean;
409
+ enableResponse?: boolean;
409
410
  domSelectors?: string | string[];
410
411
  domMode?: 'added' | 'changed' | 'all';
412
+ clipboardPollIntervalMs?: number;
411
413
  responseFilter?: (response: import('playwright').Response) => boolean | Promise<boolean>;
412
- parseLinks?: (text: string, options?: { identities?: string[] }) => string[];
414
+ parseLinks?: (text: string, options?: { identities?: (string | RegExp)[] }) => string[];
413
415
  performActions?: () => Promise<void>;
414
416
  }
415
417
 
@@ -417,7 +419,7 @@ export interface ShareLinkCaptureResult {
417
419
  link: string | null;
418
420
  payloadText: string;
419
421
  payloadSnapshot: string;
420
- source: 'response' | 'dom' | 'none';
422
+ source: 'clipboard' | 'response' | 'dom' | 'none';
421
423
  }
422
424
 
423
425
  export interface ShareScreenCaptureOptions extends FullPageScreenshotOptions {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrillex1224/playwright-toolkit",
3
- "version": "2.1.113",
3
+ "version": "2.1.114",
4
4
  "description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",