@percy/core 1.22.0-alpha.0 → 1.23.0
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/config.js +43 -3
- package/dist/discovery.js +1 -1
- package/dist/page.js +2 -2
- package/package.json +6 -6
- package/types/index.d.ts +1 -1
package/dist/config.js
CHANGED
|
@@ -35,7 +35,7 @@ export const configSchema = {
|
|
|
35
35
|
enableJavaScript: {
|
|
36
36
|
type: 'boolean'
|
|
37
37
|
},
|
|
38
|
-
|
|
38
|
+
disableShadowDOM: {
|
|
39
39
|
type: 'boolean',
|
|
40
40
|
default: false
|
|
41
41
|
},
|
|
@@ -194,8 +194,8 @@ export const snapshotSchema = {
|
|
|
194
194
|
enableJavaScript: {
|
|
195
195
|
$ref: '/config/snapshot#/properties/enableJavaScript'
|
|
196
196
|
},
|
|
197
|
-
|
|
198
|
-
$ref: '/config/snapshot#/properties/
|
|
197
|
+
disableShadowDOM: {
|
|
198
|
+
$ref: '/config/snapshot#/properties/disableShadowDOM'
|
|
199
199
|
},
|
|
200
200
|
discovery: {
|
|
201
201
|
type: 'object',
|
|
@@ -607,6 +607,46 @@ export const comparisonSchema = {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
+
},
|
|
611
|
+
ignoredElementsData: {
|
|
612
|
+
type: 'object',
|
|
613
|
+
additionalProperties: false,
|
|
614
|
+
required: ['ignoreElementsData'],
|
|
615
|
+
properties: {
|
|
616
|
+
ignoreElementsData: {
|
|
617
|
+
type: 'array',
|
|
618
|
+
items: {
|
|
619
|
+
type: 'object',
|
|
620
|
+
additionalProperties: false,
|
|
621
|
+
properties: {
|
|
622
|
+
selector: {
|
|
623
|
+
type: 'string'
|
|
624
|
+
},
|
|
625
|
+
coOrdinates: {
|
|
626
|
+
type: 'object',
|
|
627
|
+
properties: {
|
|
628
|
+
top: {
|
|
629
|
+
type: 'integer',
|
|
630
|
+
minimum: 0
|
|
631
|
+
},
|
|
632
|
+
left: {
|
|
633
|
+
type: 'integer',
|
|
634
|
+
minimum: 0
|
|
635
|
+
},
|
|
636
|
+
bottom: {
|
|
637
|
+
type: 'integer',
|
|
638
|
+
minimum: 0
|
|
639
|
+
},
|
|
640
|
+
right: {
|
|
641
|
+
type: 'integer',
|
|
642
|
+
minimum: 0
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
610
650
|
}
|
|
611
651
|
}
|
|
612
652
|
};
|
package/dist/discovery.js
CHANGED
|
@@ -24,7 +24,7 @@ function debugSnapshotOptions(snapshot) {
|
|
|
24
24
|
debugProp(snapshot, 'widths', v => `${v}px`);
|
|
25
25
|
debugProp(snapshot, 'minHeight', v => `${v}px`);
|
|
26
26
|
debugProp(snapshot, 'enableJavaScript');
|
|
27
|
-
debugProp(snapshot, '
|
|
27
|
+
debugProp(snapshot, 'disableShadowDOM');
|
|
28
28
|
debugProp(snapshot, 'deviceScaleFactor');
|
|
29
29
|
debugProp(snapshot, 'waitForTimeout');
|
|
30
30
|
debugProp(snapshot, 'waitForSelector');
|
package/dist/page.js
CHANGED
|
@@ -144,7 +144,7 @@ export class Page {
|
|
|
144
144
|
name,
|
|
145
145
|
width,
|
|
146
146
|
enableJavaScript,
|
|
147
|
-
|
|
147
|
+
disableShadowDOM
|
|
148
148
|
} = snapshot;
|
|
149
149
|
this.log.debug(`Taking snapshot: ${name}${width ? ` @${width}px` : ''}`, this.meta);
|
|
150
150
|
|
|
@@ -188,7 +188,7 @@ export class Page {
|
|
|
188
188
|
url: document.URL
|
|
189
189
|
}), {
|
|
190
190
|
enableJavaScript,
|
|
191
|
-
|
|
191
|
+
disableShadowDOM
|
|
192
192
|
});
|
|
193
193
|
return {
|
|
194
194
|
...snapshot,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"test:types": "tsd"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@percy/client": "1.
|
|
43
|
-
"@percy/config": "1.
|
|
44
|
-
"@percy/dom": "1.
|
|
45
|
-
"@percy/logger": "1.
|
|
42
|
+
"@percy/client": "1.23.0",
|
|
43
|
+
"@percy/config": "1.23.0",
|
|
44
|
+
"@percy/dom": "1.23.0",
|
|
45
|
+
"@percy/logger": "1.23.0",
|
|
46
46
|
"content-disposition": "^0.5.4",
|
|
47
47
|
"cross-spawn": "^7.0.3",
|
|
48
48
|
"extract-zip": "^2.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"rimraf": "^3.0.2",
|
|
54
54
|
"ws": "^8.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "cd9a0de3f51233e414cd2657997ce02e8faa19e2"
|
|
57
57
|
}
|
package/types/index.d.ts
CHANGED