@skrillex1224/playwright-toolkit 2.1.238 → 2.1.240

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
@@ -518,7 +518,7 @@ export interface RuntimeEnvModule {
518
518
  // =============================================================================
519
519
  export interface ShareLinkCaptureOptions {
520
520
  share: {
521
- mode?: 'dom' | 'response';
521
+ mode?: 'dom' | 'response' | 'custom';
522
522
  /** 允许空串 '',但不允许 undefined/null */
523
523
  prefix: string;
524
524
  xurl?: Array<string | string[]>;
@@ -527,14 +527,14 @@ export interface ShareLinkCaptureOptions {
527
527
  payloadSnapshotMaxLen?: number;
528
528
  domSelectors?: string | string[];
529
529
  domMode?: 'added' | 'changed' | 'all';
530
- performActions?: () => Promise<void>;
530
+ performActions?: () => void | string | { link?: string | null; payloadText?: string } | Promise<void | string | { link?: string | null; payloadText?: string }>;
531
531
  }
532
532
 
533
533
  export interface ShareLinkCaptureResult {
534
534
  link: string | null;
535
535
  payloadText: string;
536
536
  payloadSnapshot: string;
537
- source: 'response' | 'dom' | 'none';
537
+ source: 'response' | 'dom' | 'custom' | 'none';
538
538
  }
539
539
 
540
540
  export interface ScreenshotWatermarkifyResolverContext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skrillex1224/playwright-toolkit",
3
- "version": "2.1.238",
3
+ "version": "2.1.240",
4
4
  "description": "一个在 Apify/Crawlee Actor 中启用实时截图视图的实用工具库。",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",