@skrillex1224/playwright-toolkit 3.0.42 → 3.0.44
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/README.md +1 -1
- package/dist/browser.js +72 -33
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +77 -38
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +77 -38
- package/dist/index.js.map +2 -2
- package/index.d.ts +10 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface ActorInfoItem {
|
|
|
61
61
|
device: RuntimeDevice;
|
|
62
62
|
protocol: string;
|
|
63
63
|
path: string;
|
|
64
|
+
readonly paths: Record<string, string>;
|
|
64
65
|
share: ActorShareInfo;
|
|
65
66
|
readonly landingUrl: string;
|
|
66
67
|
}
|
|
@@ -691,7 +692,7 @@ export interface ScreenshotWatermarkifyOptions {
|
|
|
691
692
|
export interface ShareScreenCompressionOptions {
|
|
692
693
|
/** 是否启用截图压缩,默认开启。 */
|
|
693
694
|
enabled?: boolean;
|
|
694
|
-
/** 返回 base64 字符串的最大字节数,默认
|
|
695
|
+
/** 返回 base64 字符串的最大字节数,默认 500KiB。 */
|
|
695
696
|
maxBytes?: number;
|
|
696
697
|
/** maxBytes 的别名。 */
|
|
697
698
|
maxBase64Bytes?: number;
|
|
@@ -699,22 +700,22 @@ export interface ShareScreenCompressionOptions {
|
|
|
699
700
|
type?: 'jpeg' | 'jpg';
|
|
700
701
|
/** type 的别名。 */
|
|
701
702
|
outputType?: 'jpeg' | 'jpg';
|
|
702
|
-
/** 初始质量,支持 0-1 或 1-100,默认 0.
|
|
703
|
+
/** 初始质量,支持 0-1 或 1-100,默认 0.32。 */
|
|
703
704
|
quality?: number;
|
|
704
|
-
/** 最低质量,支持 0-1 或 1-100,默认 0.
|
|
705
|
+
/** 最低质量,支持 0-1 或 1-100,默认 0.32。 */
|
|
705
706
|
minQuality?: number;
|
|
706
|
-
/** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.
|
|
707
|
+
/** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.2。 */
|
|
707
708
|
minScale?: number;
|
|
708
709
|
}
|
|
709
710
|
|
|
710
711
|
export interface ShareScreenCaptureOptions {
|
|
711
712
|
/** 截图后是否恢复页面高度和样式 (默认: false) */
|
|
712
713
|
restore?: boolean;
|
|
713
|
-
/** 最大截图高度 (默认:
|
|
714
|
+
/** 最大截图高度 (默认: 6000px) */
|
|
714
715
|
maxHeight?: number;
|
|
715
716
|
/** 截图水印合成模式;默认取当前 toolkit mode,`cloak` 时走兼容分支。 */
|
|
716
717
|
mode?: 'default' | 'cloak';
|
|
717
|
-
/** 返回 base64 字符串的最大字节数,默认
|
|
718
|
+
/** 返回 base64 字符串的最大字节数,默认 500KiB。 */
|
|
718
719
|
maxBytes?: number;
|
|
719
720
|
/** maxBytes 的别名。 */
|
|
720
721
|
maxBase64Bytes?: number;
|
|
@@ -722,11 +723,11 @@ export interface ShareScreenCaptureOptions {
|
|
|
722
723
|
type?: 'jpeg' | 'jpg';
|
|
723
724
|
/** type 的别名。 */
|
|
724
725
|
outputType?: 'jpeg' | 'jpg';
|
|
725
|
-
/** 初始质量,支持 0-1 或 1-100,默认 0.
|
|
726
|
+
/** 初始质量,支持 0-1 或 1-100,默认 0.32。 */
|
|
726
727
|
quality?: number;
|
|
727
|
-
/** 最低质量,支持 0-1 或 1-100,默认 0.
|
|
728
|
+
/** 最低质量,支持 0-1 或 1-100,默认 0.32。 */
|
|
728
729
|
minQuality?: number;
|
|
729
|
-
/** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.
|
|
730
|
+
/** 质量压到最低仍超限时允许缩放到的最小比例,默认 0.2。 */
|
|
730
731
|
minScale?: number;
|
|
731
732
|
/** 截图压缩配置;传 false 可关闭压缩。 */
|
|
732
733
|
compression?: boolean | ShareScreenCompressionOptions;
|