@percy/core 1.30.9-beta.2 → 1.30.9-beta.3

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
@@ -164,6 +164,102 @@ export const configSchema = {
164
164
  }
165
165
  }
166
166
  }
167
+ },
168
+ regions: {
169
+ type: 'array',
170
+ items: {
171
+ type: 'object',
172
+ properties: {
173
+ elementSelector: {
174
+ type: 'object',
175
+ additionalProperties: false,
176
+ properties: {
177
+ boundingBox: {
178
+ type: 'object',
179
+ additionalProperties: false,
180
+ properties: {
181
+ x: {
182
+ type: 'integer'
183
+ },
184
+ y: {
185
+ type: 'integer'
186
+ },
187
+ width: {
188
+ type: 'integer'
189
+ },
190
+ height: {
191
+ type: 'integer'
192
+ }
193
+ }
194
+ },
195
+ elementXpath: {
196
+ type: 'string'
197
+ },
198
+ elementCSS: {
199
+ type: 'string'
200
+ }
201
+ }
202
+ },
203
+ padding: {
204
+ type: 'object',
205
+ additionalProperties: false,
206
+ properties: {
207
+ top: {
208
+ type: 'integer'
209
+ },
210
+ bottom: {
211
+ type: 'integer'
212
+ },
213
+ left: {
214
+ type: 'integer'
215
+ },
216
+ right: {
217
+ type: 'integer'
218
+ }
219
+ }
220
+ },
221
+ algorithm: {
222
+ type: 'string',
223
+ enum: ['standard', 'layout', 'ignore', 'intelliignore']
224
+ },
225
+ configuration: {
226
+ type: 'object',
227
+ additionalProperties: false,
228
+ properties: {
229
+ diffSensitivity: {
230
+ type: 'integer',
231
+ minimum: 0
232
+ },
233
+ imageIgnoreThreshold: {
234
+ type: 'number',
235
+ minimum: 0,
236
+ maximum: 1
237
+ },
238
+ carouselsEnabled: {
239
+ type: 'boolean'
240
+ },
241
+ bannersEnabled: {
242
+ type: 'boolean'
243
+ },
244
+ adsEnabled: {
245
+ type: 'boolean'
246
+ }
247
+ }
248
+ },
249
+ assertion: {
250
+ type: 'object',
251
+ additionalProperties: false,
252
+ properties: {
253
+ diffIgnoreThreshold: {
254
+ type: 'number',
255
+ minimum: 0,
256
+ maximum: 1
257
+ }
258
+ }
259
+ }
260
+ },
261
+ required: ['algorithm']
262
+ }
167
263
  }
168
264
  }
169
265
  },
@@ -370,6 +466,9 @@ export const snapshotSchema = {
370
466
  reshuffleInvalidTags: {
371
467
  $ref: '/config/snapshot#/properties/reshuffleInvalidTags'
372
468
  },
469
+ regions: {
470
+ $ref: '/config/snapshot#/properties/regions'
471
+ },
373
472
  scopeOptions: {
374
473
  $ref: '/config/snapshot#/properties/scopeOptions'
375
474
  },
@@ -913,6 +1012,9 @@ export const comparisonSchema = {
913
1012
  ignoreElementsData: regionsSchema
914
1013
  }
915
1014
  },
1015
+ regions: {
1016
+ $ref: '/config/snapshot#/properties/regions'
1017
+ },
916
1018
  consideredElementsData: {
917
1019
  type: 'object',
918
1020
  additionalProperties: false,
package/dist/utils.js CHANGED
@@ -52,6 +52,7 @@ export function percyAutomateRequestHandler(req, percy) {
52
52
  ignoreRegionXpaths: (_percy$config$snapsho4 = percy.config.snapshot.ignoreRegions) === null || _percy$config$snapsho4 === void 0 ? void 0 : _percy$config$snapsho4.ignoreRegionXpaths,
53
53
  considerRegionSelectors: (_percy$config$snapsho5 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho5 === void 0 ? void 0 : _percy$config$snapsho5.considerRegionSelectors,
54
54
  considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths,
55
+ regions: percy.config.snapshot.regions,
55
56
  sync: percy.config.snapshot.sync,
56
57
  version: 'v2'
57
58
  }, camelCasedOptions], (path, prev, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.30.9-beta.2",
3
+ "version": "1.30.9-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,12 +43,12 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.30.9-beta.2",
47
- "@percy/config": "1.30.9-beta.2",
48
- "@percy/dom": "1.30.9-beta.2",
49
- "@percy/logger": "1.30.9-beta.2",
50
- "@percy/monitoring": "1.30.9-beta.2",
51
- "@percy/webdriver-utils": "1.30.9-beta.2",
46
+ "@percy/client": "1.30.9-beta.3",
47
+ "@percy/config": "1.30.9-beta.3",
48
+ "@percy/dom": "1.30.9-beta.3",
49
+ "@percy/logger": "1.30.9-beta.3",
50
+ "@percy/monitoring": "1.30.9-beta.3",
51
+ "@percy/webdriver-utils": "1.30.9-beta.3",
52
52
  "content-disposition": "^0.5.4",
53
53
  "cross-spawn": "^7.0.3",
54
54
  "extract-zip": "^2.0.1",
@@ -61,5 +61,5 @@
61
61
  "ws": "^8.17.1",
62
62
  "yaml": "^2.4.1"
63
63
  },
64
- "gitHead": "13493f9b47d1c7bc9e6f86a1499970012e4e169a"
64
+ "gitHead": "06ceb56e04806677d41a22eb1ccbee81a8d32c15"
65
65
  }