@percy/core 1.27.6-beta.0 → 1.27.6

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
@@ -59,6 +59,19 @@ export const configSchema = {
59
59
  scope: {
60
60
  type: 'string'
61
61
  },
62
+ scopeOptions: {
63
+ type: 'object',
64
+ additionalProperties: false,
65
+ properties: {
66
+ scroll: {
67
+ type: 'boolean'
68
+ }
69
+ }
70
+ },
71
+ fullPage: {
72
+ type: 'boolean',
73
+ onlyAutomate: true
74
+ },
62
75
  freezeAnimation: {
63
76
  // for backward compatibility
64
77
  type: 'boolean',
@@ -296,6 +309,9 @@ export const snapshotSchema = {
296
309
  reshuffleInvalidTags: {
297
310
  $ref: '/config/snapshot#/properties/reshuffleInvalidTags'
298
311
  },
312
+ scopeOptions: {
313
+ $ref: '/config/snapshot#/properties/scopeOptions'
314
+ },
299
315
  discovery: {
300
316
  type: 'object',
301
317
  additionalProperties: false,
@@ -326,6 +342,9 @@ export const snapshotSchema = {
326
342
  }
327
343
  }
328
344
  }
345
+ },
346
+ dependencies: {
347
+ scopeOptions: ['scope']
329
348
  }
330
349
  },
331
350
  exec: {
@@ -700,6 +719,10 @@ export const comparisonSchema = {
700
719
  cliScreenshotEndTime: {
701
720
  type: 'integer',
702
721
  default: 0
722
+ },
723
+ screenshotType: {
724
+ type: 'string',
725
+ default: 'singlepage'
703
726
  }
704
727
  }
705
728
  },
package/dist/discovery.js CHANGED
@@ -32,6 +32,7 @@ function debugSnapshotOptions(snapshot) {
32
32
  debugProp(snapshot, 'deviceScaleFactor');
33
33
  debugProp(snapshot, 'waitForTimeout');
34
34
  debugProp(snapshot, 'waitForSelector');
35
+ debugProp(snapshot, 'scopeOptions.scroll');
35
36
  debugProp(snapshot, 'execute.afterNavigation');
36
37
  debugProp(snapshot, 'execute.beforeResize');
37
38
  debugProp(snapshot, 'execute.afterResize');
package/dist/utils.js CHANGED
@@ -37,6 +37,7 @@ export function percyAutomateRequestHandler(req, percy) {
37
37
  camelCasedOptions[camelcase(key)] = value;
38
38
  });
39
39
  req.body.options = merge([{
40
+ fullPage: percy.config.snapshot.fullPage,
40
41
  percyCSS: percy.config.snapshot.percyCSS,
41
42
  freezeAnimatedImage: percy.config.snapshot.freezeAnimatedImage || percy.config.snapshot.freezeAnimation,
42
43
  freezeImageBySelectors: (_percy$config$snapsho = percy.config.snapshot.freezeAnimatedImageOptions) === null || _percy$config$snapsho === void 0 ? void 0 : _percy$config$snapsho.freezeImageBySelectors,
@@ -44,7 +45,8 @@ export function percyAutomateRequestHandler(req, percy) {
44
45
  ignoreRegionSelectors: (_percy$config$snapsho3 = percy.config.snapshot.ignoreRegions) === null || _percy$config$snapsho3 === void 0 ? void 0 : _percy$config$snapsho3.ignoreRegionSelectors,
45
46
  ignoreRegionXpaths: (_percy$config$snapsho4 = percy.config.snapshot.ignoreRegions) === null || _percy$config$snapsho4 === void 0 ? void 0 : _percy$config$snapsho4.ignoreRegionXpaths,
46
47
  considerRegionSelectors: (_percy$config$snapsho5 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho5 === void 0 ? void 0 : _percy$config$snapsho5.considerRegionSelectors,
47
- considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths
48
+ considerRegionXpaths: (_percy$config$snapsho6 = percy.config.snapshot.considerRegions) === null || _percy$config$snapsho6 === void 0 ? void 0 : _percy$config$snapsho6.considerRegionXpaths,
49
+ version: 'v2'
48
50
  }, camelCasedOptions], (path, prev, next) => {
49
51
  switch (path.map(k => k.toString()).join('.')) {
50
52
  case 'percyCSS':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.27.6-beta.0",
3
+ "version": "1.27.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "beta"
12
+ "tag": "latest"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.27.6-beta.0",
47
- "@percy/config": "1.27.6-beta.0",
48
- "@percy/dom": "1.27.6-beta.0",
49
- "@percy/logger": "1.27.6-beta.0",
50
- "@percy/webdriver-utils": "1.27.6-beta.0",
46
+ "@percy/client": "1.27.6",
47
+ "@percy/config": "1.27.6",
48
+ "@percy/dom": "1.27.6",
49
+ "@percy/logger": "1.27.6",
50
+ "@percy/webdriver-utils": "1.27.6",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -58,5 +58,5 @@
58
58
  "rimraf": "^3.0.2",
59
59
  "ws": "^8.0.0"
60
60
  },
61
- "gitHead": "264fe038aa6a6ef6ed4d94b53f4f8905218c266e"
61
+ "gitHead": "4f0f287ba8beec5a7bad9adc3dd91eef98fa0a75"
62
62
  }
package/types/index.d.ts CHANGED
@@ -21,6 +21,10 @@ interface DiscoveryOptions {
21
21
  captureMockedServiceWorker?: boolean;
22
22
  }
23
23
 
24
+ interface ScopeOptions {
25
+ scroll?: boolean;
26
+ }
27
+
24
28
  interface DiscoveryLaunchOptions {
25
29
  executable?: string;
26
30
  args?: string[];
@@ -45,6 +49,7 @@ interface CommonSnapshotOptions {
45
49
  reshuffleInvalidTags?: boolean;
46
50
  devicePixelRatio?: number;
47
51
  scope?: string;
52
+ scopeOptions?: ScopeOptions;
48
53
  }
49
54
 
50
55
  export interface SnapshotOptions extends CommonSnapshotOptions {