@applitools/eyes-browser 1.4.8 → 1.4.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.9](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.4.8...js/eyes-browser@1.4.9) (2024-08-12)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/dom-capture bumped to 11.3.1
9
+ #### Performance Improvements
10
+
11
+ * link tag without href ([#2450](https://github.com/Applitools-Dev/sdk/issues/2450)) ([523c3cd](https://github.com/Applitools-Dev/sdk/commit/523c3cd1cb003e9144015885b522e1d82e616b7a))
12
+ * @applitools/core bumped to 4.18.1
13
+ #### Bug Fixes
14
+
15
+ * layoutbreakpoints stale dom ([#2456](https://github.com/Applitools-Dev/sdk/issues/2456)) ([a4329d6](https://github.com/Applitools-Dev/sdk/commit/a4329d6d280d27763e0c8ff6374bd26861183939))
16
+
17
+
18
+
19
+ * @applitools/eyes bumped to 1.22.1
20
+ #### Bug Fixes
21
+
22
+ * update ios devices enums ([9b4614f](https://github.com/Applitools-Dev/sdk/commit/9b4614f09bbbe42cf99824d76893f9067aab2cc4))
23
+
24
+
25
+
26
+
3
27
  ## [1.4.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.4.7...js/eyes-browser@1.4.8) (2024-07-23)
4
28
 
5
29
 
package/dist/index.js CHANGED
@@ -35012,9 +35012,9 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
35012
35012
  r2 = Array.from(n3.childNodes).map((e5) => e5.nodeValue).join(""), s2 = o2;
35013
35013
  else if (n3 && E(n3)) {
35014
35014
  const c2 = w(n3);
35015
- !function(e5) {
35015
+ c2 ? function(e5) {
35016
35016
  return e5 && e5.startsWith("data:");
35017
- }(c2) ? (s2 = t4(c2, o2), r2 = e4(s2)) : (s2 = o2, r2 = c2.match(/,(.+)/)[1]), a2 = void 0 === r2;
35017
+ }(c2) ? (s2 = o2, r2 = c2.match(/,(.+)/)[1]) : (s2 = t4(c2, o2), r2 = e4(s2)) : r2 = "", a2 = void 0 === r2;
35018
35018
  }
35019
35019
  return { cssText: r2, styleBaseUrl: s2, isUnfetched: a2 };
35020
35020
  };
@@ -35155,7 +35155,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
35155
35155
  return i4 && (E3.shadowRoot = i4), E3;
35156
35156
  }
35157
35157
  }(t4);
35158
- i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.3.0";
35158
+ i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.3.1";
35159
35159
  const N2 = f2.length ? `${f2.join("\n")}
35160
35160
  ` : "", b2 = d2.size ? `${Array.from(d2).join("\n")}
35161
35161
  ` : "", S2 = JSON.stringify({ separator: p2, cssStartToken: h2, cssEndToken: h2, iframeStartToken: `"${m2}`, iframeEndToken: `${m2}"` });
@@ -44112,7 +44112,7 @@ var require_take_dom_snapshots = __commonJS({
44112
44112
  await (0, wait_for_lazy_load_1.waitForLazyLoad)({ context: currentContext, settings: settings.lazyLoad, logger });
44113
44113
  }
44114
44114
  await beforeEachSnapshot();
44115
- if (settings.elementReferences && (index === 0 || settings.layoutBreakpoints.reload)) {
44115
+ if (settings.elementReferences) {
44116
44116
  safeSelectorResult = await (0, generate_safe_selectors_1.generateSafeSelectors)({
44117
44117
  context: currentContext,
44118
44118
  elementReferences: settings.elementReferences
@@ -87317,7 +87317,7 @@ var require_package2 = __commonJS({
87317
87317
  "../core/package.json"(exports, module) {
87318
87318
  module.exports = {
87319
87319
  name: "@applitools/core",
87320
- version: "4.18.0",
87320
+ version: "4.18.1",
87321
87321
  homepage: "https://applitools.com",
87322
87322
  bugs: {
87323
87323
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -91436,7 +91436,7 @@ var require_package3 = __commonJS({
91436
91436
  "../eyes/package.json"(exports, module) {
91437
91437
  module.exports = {
91438
91438
  name: "@applitools/eyes",
91439
- version: "1.22.0",
91439
+ version: "1.22.1",
91440
91440
  keywords: [
91441
91441
  "applitools",
91442
91442
  "eyes",
@@ -91644,44 +91644,19 @@ init_setImmediate();
91644
91644
  init_buffer();
91645
91645
  init_setInterval();
91646
91646
  var IosDeviceNameEnum = /* @__PURE__ */ ((IosDeviceNameEnum2) => {
91647
- IosDeviceNameEnum2["iPad_5"] = "iPad (5th generation)";
91648
- IosDeviceNameEnum2["iPad_6"] = "iPad (6th generation)";
91649
91647
  IosDeviceNameEnum2["iPad_7"] = "iPad (7th generation)";
91650
- IosDeviceNameEnum2["iPad_8"] = "iPad (8th generation)";
91651
91648
  IosDeviceNameEnum2["iPad_9"] = "iPad (9th generation)";
91652
- IosDeviceNameEnum2["iPad_10"] = "iPad (10th generation)";
91653
- IosDeviceNameEnum2["iPad_Air_2"] = "iPad Air 2";
91654
- IosDeviceNameEnum2["iPad_Air_3"] = "iPad Air (3rd generation)";
91655
91649
  IosDeviceNameEnum2["iPad_Air_4"] = "iPad Air (4th generation)";
91656
- IosDeviceNameEnum2["iPad_Air_5"] = "iPad Air (5th generation)";
91657
- IosDeviceNameEnum2["iPad_mini_4"] = "iPad mini 4";
91658
- IosDeviceNameEnum2["iPad_mini_5"] = "iPad mini (5th generation)";
91659
- IosDeviceNameEnum2["iPad_mini_6"] = "iPad mini (6th generation)";
91660
- IosDeviceNameEnum2["iPad_Pro_9_7_inch_1"] = "iPad Pro (9.7-inch)";
91661
- IosDeviceNameEnum2["iPad_Pro_10_5_inch_1"] = "iPad Pro (10.5-inch)";
91662
- IosDeviceNameEnum2["iPad_Pro_11_inch_1"] = "iPad Pro (11-inch) (1st generation)";
91663
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_1"] = "iPad Pro (12.9-inch) (1st generation)";
91664
- IosDeviceNameEnum2["iPad_Pro_11_inch_2"] = "iPad Pro (11-inch) (2nd generation)";
91665
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_2"] = "iPad Pro (12.9-inch) (2nd generation)";
91666
- IosDeviceNameEnum2["iPad_Pro_11_inch_3"] = "iPad Pro (11-inch) (3rd generation)";
91667
91650
  IosDeviceNameEnum2["iPad_Pro_3"] = "iPad Pro (12.9-inch) (3rd generation)";
91668
91651
  IosDeviceNameEnum2["iPad_Pro_12_9_inch_3"] = "iPad Pro (12.9-inch) (3rd generation)";
91669
91652
  IosDeviceNameEnum2["iPad_Pro_4"] = "iPad Pro (11-inch) (4th generation)";
91670
91653
  IosDeviceNameEnum2["iPad_Pro_11_inch_4"] = "iPad Pro (11-inch) (4th generation)";
91671
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_4"] = "iPad Pro (12.9-inch) (4th generation)";
91672
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_5"] = "iPad Pro (12.9-inch) (5th generation)";
91673
- IosDeviceNameEnum2["iPad_Pro_12_9_inch_6"] = "iPad Pro (12.9-inch) (6th generation)";
91674
- IosDeviceNameEnum2["iPhone_6s"] = "iPhone 6s";
91675
- IosDeviceNameEnum2["iPhone_6s_Plus"] = "iPhone 6s Plus";
91676
- IosDeviceNameEnum2["iPhone_7"] = "iPhone 7";
91677
- IosDeviceNameEnum2["iPhone_7_Plus"] = "iPhone 7 Plus";
91678
91654
  IosDeviceNameEnum2["iPhone_8"] = "iPhone 8";
91679
91655
  IosDeviceNameEnum2["iPhone_8_Plus"] = "iPhone 8 Plus";
91680
91656
  IosDeviceNameEnum2["iPhone_X"] = "iPhone X";
91681
91657
  IosDeviceNameEnum2["iPhone_XR"] = "iPhone XR";
91682
91658
  IosDeviceNameEnum2["iPhone_XS"] = "iPhone Xs";
91683
91659
  IosDeviceNameEnum2["iPhone_Xs"] = "iPhone Xs";
91684
- IosDeviceNameEnum2["iPhone_Xs_Max"] = "iPhone Xs Max";
91685
91660
  IosDeviceNameEnum2["iPhone_11"] = "iPhone 11";
91686
91661
  IosDeviceNameEnum2["iPhone_11_Pro_Max"] = "iPhone 11 Pro Max";
91687
91662
  IosDeviceNameEnum2["iPhone_11_Pro"] = "iPhone 11 Pro";
@@ -91690,22 +91665,12 @@ var IosDeviceNameEnum = /* @__PURE__ */ ((IosDeviceNameEnum2) => {
91690
91665
  IosDeviceNameEnum2["iPhone_12_Pro_Max"] = "iPhone 12 Pro Max";
91691
91666
  IosDeviceNameEnum2["iPhone_12_Pro"] = "iPhone 12 Pro";
91692
91667
  IosDeviceNameEnum2["iPhone_13"] = "iPhone 13";
91693
- IosDeviceNameEnum2["iPhone_13_mini"] = "iPhone 13 mini";
91694
91668
  IosDeviceNameEnum2["iPhone_13_Pro_Max"] = "iPhone 13 Pro Max";
91695
91669
  IosDeviceNameEnum2["iPhone_13_Pro"] = "iPhone 13 Pro";
91696
91670
  IosDeviceNameEnum2["iPhone_14"] = "iPhone 14";
91697
- IosDeviceNameEnum2["iPhone_14_Plus"] = "iPhone 14 Plus";
91698
- IosDeviceNameEnum2["iPhone_14_Pro"] = "iPhone 14 Pro";
91699
91671
  IosDeviceNameEnum2["iPhone_14_Pro_Max"] = "iPhone 14 Pro Max";
91700
91672
  IosDeviceNameEnum2["iPhone_15"] = "iPhone 15";
91701
- IosDeviceNameEnum2["iPhone_15_Plus"] = "iPhone 15 Plus";
91702
- IosDeviceNameEnum2["iPhone_15_Pro"] = "iPhone 15 Pro";
91703
91673
  IosDeviceNameEnum2["iPhone_15_Pro_Max"] = "iPhone 15 Pro Max";
91704
- IosDeviceNameEnum2["iPhone_SE"] = "iPhone SE (1st generation)";
91705
- IosDeviceNameEnum2["iPhone_SE_1"] = "iPhone SE (1st generation)";
91706
- IosDeviceNameEnum2["iPhone_SE_2"] = "iPhone SE (2nd generation)";
91707
- IosDeviceNameEnum2["iPhone_SE_3"] = "iPhone SE (3rd generation)";
91708
- IosDeviceNameEnum2["iPod_touch_7"] = "iPod touch (7th generation)";
91709
91674
  return IosDeviceNameEnum2;
91710
91675
  })(IosDeviceNameEnum || {});
91711
91676
 
@@ -95114,7 +95079,7 @@ var ConfigurationData = class {
95114
95079
  }),
95115
95080
  check: utils20.general.removeUndefinedProps({
95116
95081
  environments: (_b = this.browsersInfo) == null ? void 0 : _b.map((browserInfo) => {
95117
- if (utils20.types.has(browserInfo, "iosDeviceInfo")) {
95082
+ if (utils20.types.has(browserInfo, "iosDeviceInfo") && utils20.types.has(browserInfo.iosDeviceInfo, "iosVersion")) {
95118
95083
  const { iosVersion, ...iosDeviceInfo } = browserInfo.iosDeviceInfo;
95119
95084
  return { iosDeviceInfo: { ...iosDeviceInfo, version: iosVersion } };
95120
95085
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "browser",
@@ -48,7 +48,7 @@
48
48
  "test": "run --top-level mocha './test/**/*.spec.ts'"
49
49
  },
50
50
  "dependencies": {
51
- "@applitools/eyes": "1.22.0"
51
+ "@applitools/eyes": "1.22.1"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^12.20.55",
@@ -1,37 +1,13 @@
1
1
  export declare enum IosDeviceNameEnum {
2
- iPad_5 = "iPad (5th generation)",
3
- iPad_6 = "iPad (6th generation)",
4
2
  iPad_7 = "iPad (7th generation)",
5
- iPad_8 = "iPad (8th generation)",
6
3
  iPad_9 = "iPad (9th generation)",
7
- iPad_10 = "iPad (10th generation)",
8
- iPad_Air_2 = "iPad Air 2",
9
- iPad_Air_3 = "iPad Air (3rd generation)",
10
4
  iPad_Air_4 = "iPad Air (4th generation)",
11
- iPad_Air_5 = "iPad Air (5th generation)",
12
- iPad_mini_4 = "iPad mini 4",
13
- iPad_mini_5 = "iPad mini (5th generation)",
14
- iPad_mini_6 = "iPad mini (6th generation)",
15
- iPad_Pro_9_7_inch_1 = "iPad Pro (9.7-inch)",
16
- iPad_Pro_10_5_inch_1 = "iPad Pro (10.5-inch)",
17
- iPad_Pro_11_inch_1 = "iPad Pro (11-inch) (1st generation)",
18
- iPad_Pro_12_9_inch_1 = "iPad Pro (12.9-inch) (1st generation)",
19
- iPad_Pro_11_inch_2 = "iPad Pro (11-inch) (2nd generation)",
20
- iPad_Pro_12_9_inch_2 = "iPad Pro (12.9-inch) (2nd generation)",
21
- iPad_Pro_11_inch_3 = "iPad Pro (11-inch) (3rd generation)",
22
5
  /** @deprecated use {@link iPad_Pro_12_9_inch_3 } instead */
23
6
  iPad_Pro_3 = "iPad Pro (12.9-inch) (3rd generation)",
24
7
  iPad_Pro_12_9_inch_3 = "iPad Pro (12.9-inch) (3rd generation)",
25
8
  /** @deprecated use {@link iPad_Pro_11_inch_4 } instead */
26
9
  iPad_Pro_4 = "iPad Pro (11-inch) (4th generation)",
27
10
  iPad_Pro_11_inch_4 = "iPad Pro (11-inch) (4th generation)",
28
- iPad_Pro_12_9_inch_4 = "iPad Pro (12.9-inch) (4th generation)",
29
- iPad_Pro_12_9_inch_5 = "iPad Pro (12.9-inch) (5th generation)",
30
- iPad_Pro_12_9_inch_6 = "iPad Pro (12.9-inch) (6th generation)",
31
- iPhone_6s = "iPhone 6s",
32
- iPhone_6s_Plus = "iPhone 6s Plus",
33
- iPhone_7 = "iPhone 7",
34
- iPhone_7_Plus = "iPhone 7 Plus",
35
11
  iPhone_8 = "iPhone 8",
36
12
  iPhone_8_Plus = "iPhone 8 Plus",
37
13
  iPhone_X = "iPhone X",
@@ -39,7 +15,6 @@ export declare enum IosDeviceNameEnum {
39
15
  /** @deprecated use {@link iPhone_Xs } instead */
40
16
  iPhone_XS = "iPhone Xs",
41
17
  iPhone_Xs = "iPhone Xs",
42
- iPhone_Xs_Max = "iPhone Xs Max",
43
18
  iPhone_11 = "iPhone 11",
44
19
  iPhone_11_Pro_Max = "iPhone 11 Pro Max",
45
20
  iPhone_11_Pro = "iPhone 11 Pro",
@@ -48,22 +23,11 @@ export declare enum IosDeviceNameEnum {
48
23
  iPhone_12_Pro_Max = "iPhone 12 Pro Max",
49
24
  iPhone_12_Pro = "iPhone 12 Pro",
50
25
  iPhone_13 = "iPhone 13",
51
- iPhone_13_mini = "iPhone 13 mini",
52
26
  iPhone_13_Pro_Max = "iPhone 13 Pro Max",
53
27
  iPhone_13_Pro = "iPhone 13 Pro",
54
28
  iPhone_14 = "iPhone 14",
55
- iPhone_14_Plus = "iPhone 14 Plus",
56
- iPhone_14_Pro = "iPhone 14 Pro",
57
29
  iPhone_14_Pro_Max = "iPhone 14 Pro Max",
58
30
  iPhone_15 = "iPhone 15",
59
- iPhone_15_Plus = "iPhone 15 Plus",
60
- iPhone_15_Pro = "iPhone 15 Pro",
61
- iPhone_15_Pro_Max = "iPhone 15 Pro Max",
62
- /** @deprecated use {@link iPhone_SE_1 } instead */
63
- iPhone_SE = "iPhone SE (1st generation)",
64
- iPhone_SE_1 = "iPhone SE (1st generation)",
65
- iPhone_SE_2 = "iPhone SE (2nd generation)",
66
- iPhone_SE_3 = "iPhone SE (3rd generation)",
67
- iPod_touch_7 = "iPod touch (7th generation)"
31
+ iPhone_15_Pro_Max = "iPhone 15 Pro Max"
68
32
  }
69
33
  export type IosDeviceName = `${IosDeviceNameEnum}`;
@@ -47,7 +47,9 @@ export type AndroidDeviceInfo = {
47
47
  };
48
48
  };
49
49
  export type IOSMultiDeviceInfo = {
50
- deviceName: IosMultiDeviceTarget;
50
+ iosDeviceInfo: {
51
+ deviceName: IosMultiDeviceTarget;
52
+ };
51
53
  };
52
54
  export type RenderInfoLegacy = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy);
53
55
  export type RenderInfo = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | IOSMultiDeviceInfo);