@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/dist/browser.js +2 -2
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +32 -19
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +32 -19
- package/dist/index.js.map +2 -2
- package/index.d.ts +3 -3
- package/package.json +1 -1
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 {
|