@skrillex1224/playwright-toolkit 2.1.113 → 2.1.115
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 +19 -8
- package/dist/browser.js.map +3 -3
- package/dist/index.cjs +181 -155
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +181 -155
- package/dist/index.js.map +4 -4
- package/index.d.ts +5 -11
- package/package.json +1 -1
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
|
|
|
@@ -110,7 +110,7 @@ export interface LoggerTemplate {
|
|
|
110
110
|
shareStart(): void;
|
|
111
111
|
shareProgress(label?: string): void;
|
|
112
112
|
shareDomHit(link?: string, domSnapshot?: string): void;
|
|
113
|
-
shareSource(source?: 'clipboard' | '
|
|
113
|
+
shareSource(source?: 'clipboard' | 'none' | string, link?: string, domSnapshot?: string): void;
|
|
114
114
|
shareSuccess(link?: string): void;
|
|
115
115
|
shareFail(err?: unknown): void;
|
|
116
116
|
shareSkip(reason?: string): void;
|
|
@@ -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,9 @@ 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;
|
|
408
|
-
enableDom?: boolean;
|
|
409
|
-
domSelectors?: string | string[];
|
|
410
|
-
domMode?: 'added' | 'changed' | 'all';
|
|
411
|
-
responseFilter?: (response: import('playwright').Response) => boolean | Promise<boolean>;
|
|
412
|
-
parseLinks?: (text: string, options?: { identities?: string[] }) => string[];
|
|
413
407
|
performActions?: () => Promise<void>;
|
|
414
408
|
}
|
|
415
409
|
|
|
@@ -417,7 +411,7 @@ export interface ShareLinkCaptureResult {
|
|
|
417
411
|
link: string | null;
|
|
418
412
|
payloadText: string;
|
|
419
413
|
payloadSnapshot: string;
|
|
420
|
-
source: '
|
|
414
|
+
source: 'clipboard' | 'none';
|
|
421
415
|
}
|
|
422
416
|
|
|
423
417
|
export interface ShareScreenCaptureOptions extends FullPageScreenshotOptions {}
|