@percy/core 1.22.0 → 1.24.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 CHANGED
@@ -39,6 +39,9 @@ export const configSchema = {
39
39
  type: 'boolean',
40
40
  default: false
41
41
  },
42
+ domTransformation: {
43
+ type: 'string'
44
+ },
42
45
  scope: {
43
46
  type: 'string'
44
47
  }
@@ -197,6 +200,9 @@ export const snapshotSchema = {
197
200
  disableShadowDOM: {
198
201
  $ref: '/config/snapshot#/properties/disableShadowDOM'
199
202
  },
203
+ domTransformation: {
204
+ $ref: '/config/snapshot#/properties/domTransformation'
205
+ },
200
206
  discovery: {
201
207
  type: 'object',
202
208
  additionalProperties: false,
@@ -607,6 +613,46 @@ export const comparisonSchema = {
607
613
  }
608
614
  }
609
615
  }
616
+ },
617
+ ignoredElementsData: {
618
+ type: 'object',
619
+ additionalProperties: false,
620
+ required: ['ignoreElementsData'],
621
+ properties: {
622
+ ignoreElementsData: {
623
+ type: 'array',
624
+ items: {
625
+ type: 'object',
626
+ additionalProperties: false,
627
+ properties: {
628
+ selector: {
629
+ type: 'string'
630
+ },
631
+ coOrdinates: {
632
+ type: 'object',
633
+ properties: {
634
+ top: {
635
+ type: 'integer',
636
+ minimum: 0
637
+ },
638
+ left: {
639
+ type: 'integer',
640
+ minimum: 0
641
+ },
642
+ bottom: {
643
+ type: 'integer',
644
+ minimum: 0
645
+ },
646
+ right: {
647
+ type: 'integer',
648
+ minimum: 0
649
+ }
650
+ }
651
+ }
652
+ }
653
+ }
654
+ }
655
+ }
610
656
  }
611
657
  }
612
658
  };
package/dist/page.js CHANGED
@@ -144,7 +144,8 @@ export class Page {
144
144
  name,
145
145
  width,
146
146
  enableJavaScript,
147
- disableShadowDOM
147
+ disableShadowDOM,
148
+ domTransformation
148
149
  } = snapshot;
149
150
  this.log.debug(`Taking snapshot: ${name}${width ? ` @${width}px` : ''}`, this.meta);
150
151
 
@@ -188,7 +189,8 @@ export class Page {
188
189
  url: document.URL
189
190
  }), {
190
191
  enableJavaScript,
191
- disableShadowDOM
192
+ disableShadowDOM,
193
+ domTransformation
192
194
  });
193
195
  return {
194
196
  ...snapshot,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.22.0",
3
+ "version": "1.24.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.22.0",
43
- "@percy/config": "1.22.0",
44
- "@percy/dom": "1.22.0",
45
- "@percy/logger": "1.22.0",
42
+ "@percy/client": "1.24.0",
43
+ "@percy/config": "1.24.0",
44
+ "@percy/dom": "1.24.0",
45
+ "@percy/logger": "1.24.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": "473ae8925585bc77f584bbcaa7058fc967bd3c61"
56
+ "gitHead": "8de18f03aa611d539d45b40ba3af5accf237a78b"
57
57
  }