@applitools/eyes-browser 1.6.0 → 1.6.1

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.0...js/eyes-browser@1.6.1) (2026-02-24)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/eyes bumped to 1.38.4
9
+ #### Bug Fixes
10
+
11
+ * add iphone 15 chrome emulation | FLD-4087 ([#3525](https://github.com/Applitools-Dev/sdk/issues/3525)) ([ddcc6c0](https://github.com/Applitools-Dev/sdk/commit/ddcc6c012d1874241433ca274508ece38f2dd222))
12
+
3
13
  ## [1.6.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.5.24...js/eyes-browser@1.6.0) (2026-02-16)
4
14
 
5
15
 
package/dist/index.js CHANGED
@@ -4299,6 +4299,7 @@ var require_DeviceName = __commonJS({
4299
4299
  DeviceNameEnum2["Xiaomi_Poco_X3"] = "Xiaomi Poco X3";
4300
4300
  DeviceNameEnum2["iPhone_5_SE"] = "iPhone 5/SE";
4301
4301
  DeviceNameEnum2["Pixel_7"] = "Pixel 7";
4302
+ DeviceNameEnum2["iPhone_15"] = "iPhone 15";
4302
4303
  })(DeviceNameEnum || (exports.DeviceNameEnum = DeviceNameEnum = {}));
4303
4304
  }
4304
4305
  });
@@ -100175,7 +100176,7 @@ var require_processPagePollCjs = __commonJS({
100175
100176
  function Tl(e3, t3) {
100176
100177
  t3.log("[processInlineCss] processing inline css for", zl(e3));
100177
100178
  try {
100178
- const n3 = e3.getRootNode(), r3 = n3 !== e3.ownerDocument && 11 === n3.nodeType, o3 = function(e4) {
100179
+ const n3 = e3.getRootNode(), r3 = e3.ownerDocument, o3 = n3 !== r3 && 11 === n3.nodeType, i3 = function(e4) {
100179
100180
  const t4 = Ys(e4, { context: "stylesheet", parseAtrulePrelude: true, parseRulePrelude: true, parseValue: false, parseCustomProperty: false });
100180
100181
  return el(t4, { visit: "TypeSelector", enter(e5, t5) {
100181
100182
  "from" === e5.name ? t5.data = { type: "Percentage", value: "0" } : "to" === e5.name && (t5.data = { type: "Percentage", value: "100" });
@@ -100200,12 +100201,12 @@ var require_processPagePollCjs = __commonJS({
100200
100201
  } }), ol(t4);
100201
100202
  }(e3.textContent);
100202
100203
  t3.log("[processInlineCss] created AST for textContent");
100203
- const i3 = r3 ? yl(e3.sheet.cssRules, t3, n3) : yl(e3.sheet.cssRules, t3);
100204
+ const a3 = !e3.textContent || "" === e3.textContent.trim(), s3 = (o3 || a3) && Al(e3.sheet.cssRules), l2 = yl(e3.sheet.cssRules, t3, o3 ? n3 : r3);
100204
100205
  t3.log("[processInlineCss] created AST for CSSOM");
100205
- const a3 = r3 && Al(e3.sheet.cssRules) ? i3 : vl(o3.children, i3);
100206
+ const c2 = s3 ? l2 : vl(i3.children, l2);
100206
100207
  t3.log("[processInlineCss] merged AST");
100207
- const s3 = Xs(il({ type: "StyleSheet", children: a3 }));
100208
- return t3.log("[processInlineCss] generated cssText of length", s3.length), s3;
100208
+ const u2 = Xs(il({ type: "StyleSheet", children: c2 }));
100209
+ return t3.log("[processInlineCss] generated cssText of length", u2.length), u2;
100209
100210
  } catch (n3) {
100210
100211
  return t3.log("[processInlineCss] error while processing inline css:", n3.message, n3), t3.log("[processInlineCss] try to set fallback"), "string" == typeof e3.textContent && e3.textContent.length > 0 ? (t3.log("[processInlineCss] set style from `styleNode.textContent`"), e3.textContent) : e3.sheet && e3.sheet.cssRules ? (t3.log("[processInlineCss] set style from reduce `sheet.cssRules`"), Array.from(e3.sheet.cssRules).reduce((e4, { cssText: t4 }) => e4 + t4, "")) : (t3.log("[processInlineCss] could not set fallback to inline css"), "");
100211
100212
  }
@@ -134886,7 +134887,7 @@ var require_package4 = __commonJS({
134886
134887
  "../eyes/package.json"(exports, module) {
134887
134888
  module.exports = {
134888
134889
  name: "@applitools/eyes",
134889
- version: "1.38.3",
134890
+ version: "1.38.4",
134890
134891
  keywords: [
134891
134892
  "applitools",
134892
134893
  "eyes",
@@ -136505,7 +136506,7 @@ var require_package5 = __commonJS({
136505
136506
  "package.json"(exports, module) {
136506
136507
  module.exports = {
136507
136508
  name: "@applitools/eyes-browser",
136508
- version: "1.6.0",
136509
+ version: "1.6.1",
136509
136510
  type: "module",
136510
136511
  keywords: [
136511
136512
  "applitools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "applitools",
@@ -51,7 +51,7 @@
51
51
  "test": "run playwright test"
52
52
  },
53
53
  "dependencies": {
54
- "@applitools/eyes": "1.38.3"
54
+ "@applitools/eyes": "1.38.4"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@applitools/test-server": "1.4.0",
@@ -102,6 +102,7 @@ export declare enum DeviceNameEnum {
102
102
  Xiaomi_Mi_Poco_X3_Pro = "Xiaomi Mi Poco X3 Pro",
103
103
  Xiaomi_Poco_X3 = "Xiaomi Poco X3",
104
104
  iPhone_5_SE = "iPhone 5/SE",
105
- Pixel_7 = "Pixel 7"
105
+ Pixel_7 = "Pixel 7",
106
+ iPhone_15 = "iPhone 15"
106
107
  }
107
108
  export type DeviceName = `${DeviceNameEnum}`;