@skrillex1224/playwright-toolkit 2.1.239 → 2.1.241
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 +249 -81
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +249 -81
- package/dist/index.js.map +3 -3
- package/index.d.ts +8 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -218,6 +218,11 @@ export interface HumanClickOptions {
|
|
|
218
218
|
throwOnMissing?: boolean;
|
|
219
219
|
scrollIfNeeded?: boolean;
|
|
220
220
|
restore?: boolean;
|
|
221
|
+
tapTimeoutMs?: number;
|
|
222
|
+
mouseFallbackTimeoutMs?: number;
|
|
223
|
+
activateFallbackTimeoutMs?: number;
|
|
224
|
+
fallbackDomClick?: boolean;
|
|
225
|
+
fallbackDomClickOnTapError?: boolean;
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
export interface HumanPressOptions {
|
|
@@ -518,7 +523,7 @@ export interface RuntimeEnvModule {
|
|
|
518
523
|
// =============================================================================
|
|
519
524
|
export interface ShareLinkCaptureOptions {
|
|
520
525
|
share: {
|
|
521
|
-
mode?: 'dom' | 'response';
|
|
526
|
+
mode?: 'dom' | 'response' | 'custom';
|
|
522
527
|
/** 允许空串 '',但不允许 undefined/null */
|
|
523
528
|
prefix: string;
|
|
524
529
|
xurl?: Array<string | string[]>;
|
|
@@ -527,14 +532,14 @@ export interface ShareLinkCaptureOptions {
|
|
|
527
532
|
payloadSnapshotMaxLen?: number;
|
|
528
533
|
domSelectors?: string | string[];
|
|
529
534
|
domMode?: 'added' | 'changed' | 'all';
|
|
530
|
-
performActions?: () => Promise<void>;
|
|
535
|
+
performActions?: () => void | string | { link?: string | null; payloadText?: string } | Promise<void | string | { link?: string | null; payloadText?: string }>;
|
|
531
536
|
}
|
|
532
537
|
|
|
533
538
|
export interface ShareLinkCaptureResult {
|
|
534
539
|
link: string | null;
|
|
535
540
|
payloadText: string;
|
|
536
541
|
payloadSnapshot: string;
|
|
537
|
-
source: 'response' | 'dom' | 'none';
|
|
542
|
+
source: 'response' | 'dom' | 'custom' | 'none';
|
|
538
543
|
}
|
|
539
544
|
|
|
540
545
|
export interface ScreenshotWatermarkifyResolverContext {
|