@applitools/eyes-browser 1.6.7 → 1.6.8

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.7...js/eyes-browser@1.6.8) (2026-03-16)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/dom-snapshot bumped to 4.16.1
9
+ #### Bug Fixes
10
+
11
+ * capture slot assigned nodes in custom shadow roots | FLD-4226 ([#3666](https://github.com/Applitools-Dev/sdk/issues/3666)) ([a794617](https://github.com/Applitools-Dev/sdk/commit/a79461719b76a551838198a426f4b0b8b6d0df51))
12
+ * @applitools/core bumped to 4.58.2
13
+
14
+ * @applitools/eyes bumped to 1.38.11
15
+
16
+
3
17
  ## [1.6.7](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.6...js/eyes-browser@1.6.7) (2026-03-16)
4
18
 
5
19
 
package/dist/index.js CHANGED
@@ -100561,34 +100561,34 @@ var require_processPagePollCjs = __commonJS({
100561
100561
  let c2 = [];
100562
100562
  const u2 = [], h2 = [];
100563
100563
  return r3[0].childNodeIndexes = p2(r3, e3.childNodes), e3.adoptedStyleSheets && e3.adoptedStyleSheets.length > 0 && (r3[0].exp_adoptedStyleSheets = Ql(e3, n3)), { cdt: r3, docRoots: o3, canvasElements: i3, frames: s3, inlineFrames: a3, crossFrames: l2, linkUrls: c2, imageBlobs: u2, videoBlobs: h2 };
100564
- function p2(e4, t4) {
100564
+ function p2(e4, t4, n4) {
100565
100565
  if (!t4 || 0 === t4.length)
100566
100566
  return null;
100567
- const n4 = [];
100567
+ const r4 = [];
100568
100568
  return Array.prototype.forEach.call(t4, (t5) => {
100569
- const r4 = m2(e4, t5);
100570
- null !== r4 && n4.push(r4);
100571
- }), n4;
100572
- }
100573
- function m2(e4, r4) {
100574
- var f2;
100575
- const g2 = Zl(r4);
100576
- let b2;
100577
- if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(g2.nodeType)) {
100578
- if (g2.hasAttribute && g2.hasAttribute("data-applitools-skip"))
100569
+ const o4 = m2(e4, t5, n4);
100570
+ null !== o4 && r4.push(o4);
100571
+ }), r4;
100572
+ }
100573
+ function m2(e4, r4, f2) {
100574
+ var g2;
100575
+ const b2 = Zl(r4);
100576
+ let k2;
100577
+ if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(b2.nodeType)) {
100578
+ if (b2.hasAttribute && b2.hasAttribute("data-applitools-skip"))
100579
100579
  return null;
100580
- if (["LINK", "STYLE", "SOURCE"].includes(g2.nodeName) && (null === (f2 = g2.media) || void 0 === f2 ? void 0 : f2.trim()) && !Wl(g2.media))
100580
+ if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Wl(b2.media))
100581
100581
  return null;
100582
- if ("SCRIPT" === g2.nodeName)
100583
- b2 = function(e5) {
100582
+ if ("SCRIPT" === b2.nodeName)
100583
+ k2 = function(e5) {
100584
100584
  return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Yl(e5).map((t4) => {
100585
100585
  const n4 = e5.attributes[t4].name;
100586
100586
  return { name: n4, value: Hl.test(n4) ? "" : e5.attributes[t4].value };
100587
100587
  }).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
100588
- }(g2);
100588
+ }(b2);
100589
100589
  else {
100590
- const c3 = g2.shadowRoot && g2.shadowRoot.childNodes.length && "ShadowRoot" !== g2.shadowRoot.constructor.name;
100591
- if (b2 = function(e5) {
100590
+ const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
100591
+ if (k2 = function(e5) {
100592
100592
  var t4, n4, r5;
100593
100593
  const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Yl(e5).map((t5) => {
100594
100594
  let n5 = e5.attributes[t5].value;
@@ -100610,7 +100610,7 @@ var require_processPagePollCjs = __commonJS({
100610
100610
  i4 && a4 === s4 || Xl(o4.attributes, "value", s4);
100611
100611
  }
100612
100612
  return "OPTION" === e5.tagName && e5.parentElement && e5.parentElement.selectedOptions && Array.from(e5.parentElement.selectedOptions).indexOf(Zl.unwrap(e5)) > -1 && Xl(o4.attributes, "selected", ""), "STYLE" === e5.tagName && e5.sheet && e5.sheet.disabled && o4.attributes.push({ name: "data-applitools-disabled", value: "" }), "LINK" === e5.tagName && "text/css" === e5.type && e5.sheet && e5.sheet.disabled && Xl(o4.attributes, "disabled", ""), o4;
100613
- }(g2), "STYLE" === g2.nodeName && g2.sheet && g2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
100613
+ }(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
100614
100614
  const r5 = (o4 = e5, function(e6) {
100615
100615
  return t5 = function(e7) {
100616
100616
  const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
@@ -100630,38 +100630,38 @@ var require_processPagePollCjs = __commonJS({
100630
100630
  }(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
100631
100631
  var o4;
100632
100632
  return n4.__dsNodeCache && n4.__dsNodeCache.key === r5 ? t4.log("[domNodesToCdt] using cache for inline css of", zl(e5)) : n4.__dsNodeCache = { key: r5, value: Tl(e5, t4) }, { nodeType: Node.TEXT_NODE, nodeValue: n4.__dsNodeCache.value };
100633
- }(g2, n3, r4)), b2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === g2.tagName && g2.value !== g2.textContent ? (e4.push(function(e5) {
100633
+ }(b2, n3, r4)), k2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e4.push(function(e5) {
100634
100634
  return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
100635
- }(g2)), b2.childNodeIndexes = [e4.length - 1]) : b2.childNodeIndexes = !c3 && g2.childNodes.length ? p2(e4, g2.childNodes) : [], c3 && "SLOT" === g2.tagName && "function" == typeof g2.assignedNodes) {
100636
- const t4 = g2.assignedNodes();
100637
- b2.childNodeIndexes = b2.childNodeIndexes || [], b2.childNodeIndexes = t4.length ? b2.childNodeIndexes.concat(p2(e4, t4)) : b2.childNodeIndexes;
100635
+ }(b2)), k2.childNodeIndexes = [e4.length - 1]) : k2.childNodeIndexes = !c3 && b2.childNodes.length ? p2(e4, b2.childNodes, f2) : [], f2 && "SLOT" === b2.tagName && "function" == typeof b2.assignedNodes) {
100636
+ const t4 = b2.assignedNodes();
100637
+ t4.length && (k2.childNodeIndexes = p2(e4, t4, f2) || []);
100638
100638
  }
100639
- if (g2.shadowRoot && (c3 ? b2.childNodeIndexes = b2.childNodeIndexes.concat(p2(e4, g2.shadowRoot.childNodes)) : (b2.shadowRootIndex = m2(e4, g2.shadowRoot), o3.push(g2.shadowRoot))), "CANVAS" === g2.nodeName && !ql(r4)) {
100639
+ if (b2.shadowRoot && (c3 ? k2.childNodeIndexes = k2.childNodeIndexes.concat(p2(e4, b2.shadowRoot.childNodes, true)) : (k2.shadowRootIndex = m2(e4, b2.shadowRoot), o3.push(b2.shadowRoot))), "CANVAS" === b2.nodeName && !ql(r4)) {
100640
100640
  const e5 = y(`applitools-canvas-${S()}.png`, t3);
100641
- b2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: g2, cdtNode: b2, url: e5 });
100641
+ k2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: b2, cdtNode: k2, url: e5 });
100642
100642
  }
100643
- if ("IFRAME" === g2.nodeName) {
100643
+ if ("IFRAME" === b2.nodeName) {
100644
100644
  const n4 = S();
100645
- if (g2.setAttribute("data-applitools-selector", n4.toString()), ql(r4))
100646
- b2.attributes.forEach((e5) => {
100647
- "src" !== e5.name && "srcdoc" !== e5.name || (b2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
100645
+ if (b2.setAttribute("data-applitools-selector", n4.toString()), ql(r4))
100646
+ k2.attributes.forEach((e5) => {
100647
+ "src" !== e5.name && "srcdoc" !== e5.name || (k2.attributes.push({ name: `data-applitools-original-${e5.name}`, value: e5.value }), e5.value = "");
100648
100648
  });
100649
100649
  else if (d(r4))
100650
- if (w(g2)) {
100650
+ if (w(b2)) {
100651
100651
  const e5 = y(`?applitools-iframe=${S()}`, t3);
100652
- b2.attributes.push({ name: "data-applitools-src", value: e5 }), a3.push({ element: g2, url: e5 });
100652
+ k2.attributes.push({ name: "data-applitools-src", value: e5 }), a3.push({ element: b2, url: e5 });
100653
100653
  } else {
100654
- const e5 = g2.contentDocument.location.href, t4 = y(`?applitools-iframe=${S()}`, e5);
100655
- b2.attributes.push({ name: "data-applitools-src", value: t4 }), s3.push({ element: g2, url: t4 });
100654
+ const e5 = b2.contentDocument.location.href, t4 = y(`?applitools-iframe=${S()}`, e5);
100655
+ k2.attributes.push({ name: "data-applitools-src", value: t4 }), s3.push({ element: b2, url: t4 });
100656
100656
  }
100657
100657
  else {
100658
100658
  const t4 = `[data-applitools-selector="${n4}"]`;
100659
100659
  l2.push({ selector: t4, index: e4.length });
100660
100660
  }
100661
100661
  }
100662
- g2.adoptedStyleSheets && g2.adoptedStyleSheets.length > 0 && (b2.exp_adoptedStyleSheets = Ql(g2, n3));
100662
+ b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (k2.exp_adoptedStyleSheets = Ql(b2, n3));
100663
100663
  }
100664
- if (g2.nodeType === Node.ELEMENT_NODE) {
100664
+ if (b2.nodeType === Node.ELEMENT_NODE) {
100665
100665
  const n4 = function(e5) {
100666
100666
  const t4 = (e5.matches || e5.msMatchesSelector).bind(e5);
100667
100667
  let n5 = [];
@@ -100707,30 +100707,30 @@ var require_processPagePollCjs = __commonJS({
100707
100707
  return Ul(e6.style);
100708
100708
  }(e5);
100709
100709
  return r5 && (n5 = n5.concat(r5)), n5;
100710
- }(g2);
100711
- if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === g2.tagName && /^blob:/.test(g2.src)) {
100712
- const e5 = g2.src.replace(/^blob:/, "");
100713
- u2.push({ element: g2, cdtNode: b2, url: e5 });
100710
+ }(b2);
100711
+ if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" === b2.tagName && /^blob:/.test(b2.src)) {
100712
+ const e5 = b2.src.replace(/^blob:/, "");
100713
+ u2.push({ element: b2, cdtNode: k2, url: e5 });
100714
100714
  }
100715
- if ("VIDEO" === g2.tagName && (/^blob:/.test(g2.src) || g2.srcObject)) {
100715
+ if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
100716
100716
  let n5;
100717
- if (g2.src) {
100718
- if (n5 = g2.src.replace(/^blob:/, ""), b2.attributes = b2.attributes.filter((e5) => "src" !== e5.name), !b2.childNodeIndexes.some((t4) => "SOURCE" === e4[t4].nodeName)) {
100719
- const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: g2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
100720
- e4.push(t4), b2.childNodeIndexes.push(e4.length - 1);
100717
+ if (b2.src) {
100718
+ if (n5 = b2.src.replace(/^blob:/, ""), k2.attributes = k2.attributes.filter((e5) => "src" !== e5.name), !k2.childNodeIndexes.some((t4) => "SOURCE" === e4[t4].nodeName)) {
100719
+ const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value: b2.src.replace(/^blob:/, "") }], childNodeIndexes: [] };
100720
+ e4.push(t4), k2.childNodeIndexes.push(e4.length - 1);
100721
100721
  }
100722
100722
  } else
100723
- n5 = y(`applitools-video-${S()}.webm`, t3), b2.attributes.push({ name: "data-applitools-src", value: n5 });
100724
- h2.push({ element: g2, url: n5 });
100723
+ n5 = y(`applitools-video-${S()}.webm`, t3), k2.attributes.push({ name: "data-applitools-src", value: n5 });
100724
+ h2.push({ element: b2, url: n5 });
100725
100725
  }
100726
100726
  }
100727
100727
  } else
100728
- g2.nodeType === Node.TEXT_NODE ? b2 = function(e5) {
100728
+ b2.nodeType === Node.TEXT_NODE ? k2 = function(e5) {
100729
100729
  return { nodeType: Node.TEXT_NODE, nodeValue: e5.nodeValue };
100730
- }(g2) : g2.nodeType === Node.DOCUMENT_TYPE_NODE && (b2 = function(e5) {
100730
+ }(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (k2 = function(e5) {
100731
100731
  return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e5.nodeName };
100732
- }(g2));
100733
- return b2 ? (e4.push(b2), e4.length - 1) : null;
100732
+ }(b2));
100733
+ return k2 ? (e4.push(k2), e4.length - 1) : null;
100734
100734
  }
100735
100735
  }
100736
100736
  function Yl(e3) {
@@ -102542,7 +102542,7 @@ creating temp style for access.`), r3 = Hh(e3);
102542
102542
  function P2(e3) {
102543
102543
  return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
102544
102544
  }
102545
- }(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.0", e3));
102545
+ }(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.1", e3));
102546
102546
  }, window[x], "domSnapshotResult");
102547
102547
  return function(e3) {
102548
102548
  try {
@@ -128186,7 +128186,7 @@ var require_package3 = __commonJS({
128186
128186
  "../core/package.json"(exports, module) {
128187
128187
  module.exports = {
128188
128188
  name: "@applitools/core",
128189
- version: "4.58.1",
128189
+ version: "4.58.2",
128190
128190
  homepage: "https://applitools.com",
128191
128191
  bugs: {
128192
128192
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -129728,7 +129728,7 @@ var require_package4 = __commonJS({
129728
129728
  "../eyes/package.json"(exports, module) {
129729
129729
  module.exports = {
129730
129730
  name: "@applitools/eyes",
129731
- version: "1.38.10",
129731
+ version: "1.38.11",
129732
129732
  keywords: [
129733
129733
  "applitools",
129734
129734
  "eyes",
@@ -131348,7 +131348,7 @@ var require_package5 = __commonJS({
131348
131348
  "package.json"(exports, module) {
131349
131349
  module.exports = {
131350
131350
  name: "@applitools/eyes-browser",
131351
- version: "1.6.7",
131351
+ version: "1.6.8",
131352
131352
  type: "module",
131353
131353
  keywords: [
131354
131354
  "applitools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
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.10"
54
+ "@applitools/eyes": "1.38.11"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@applitools/test-server": "1.4.1",