@applitools/eyes-browser 1.6.6 → 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 +32 -0
- package/dist/index.js +56 -55
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
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
|
+
|
|
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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* @applitools/nml-client bumped to 1.11.21
|
|
23
|
+
|
|
24
|
+
* @applitools/core-base bumped to 1.32.3
|
|
25
|
+
#### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* pass gzip content encoding | FLD-4293 ([#3649](https://github.com/Applitools-Dev/sdk/issues/3649)) ([b78ebaa](https://github.com/Applitools-Dev/sdk/commit/b78ebaa0bb0d9aeae0d5b7031d320ca10b5f608b))
|
|
28
|
+
* @applitools/ec-client bumped to 1.12.23
|
|
29
|
+
|
|
30
|
+
* @applitools/core bumped to 4.58.1
|
|
31
|
+
|
|
32
|
+
* @applitools/eyes bumped to 1.38.10
|
|
33
|
+
|
|
34
|
+
|
|
3
35
|
## [1.6.6](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.5...js/eyes-browser@1.6.6) (2026-03-12)
|
|
4
36
|
|
|
5
37
|
|
package/dist/index.js
CHANGED
|
@@ -28154,7 +28154,8 @@ var require_upload = __commonJS({
|
|
|
28154
28154
|
method: "PUT",
|
|
28155
28155
|
headers: {
|
|
28156
28156
|
"Content-Type": "application/octet-stream",
|
|
28157
|
-
|
|
28157
|
+
...gzip && { "Content-Encoding": "gzip" },
|
|
28158
|
+
Date: (/* @__PURE__ */ new Date()).toUTCString(),
|
|
28158
28159
|
"x-ms-blob-type": "BlockBlob"
|
|
28159
28160
|
},
|
|
28160
28161
|
body,
|
|
@@ -100560,34 +100561,34 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100560
100561
|
let c2 = [];
|
|
100561
100562
|
const u2 = [], h2 = [];
|
|
100562
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 };
|
|
100563
|
-
function p2(e4, t4) {
|
|
100564
|
+
function p2(e4, t4, n4) {
|
|
100564
100565
|
if (!t4 || 0 === t4.length)
|
|
100565
100566
|
return null;
|
|
100566
|
-
const
|
|
100567
|
+
const r4 = [];
|
|
100567
100568
|
return Array.prototype.forEach.call(t4, (t5) => {
|
|
100568
|
-
const
|
|
100569
|
-
null !==
|
|
100570
|
-
}),
|
|
100571
|
-
}
|
|
100572
|
-
function m2(e4, r4) {
|
|
100573
|
-
var
|
|
100574
|
-
const
|
|
100575
|
-
let
|
|
100576
|
-
if ([Node.ELEMENT_NODE, Node.DOCUMENT_FRAGMENT_NODE].includes(
|
|
100577
|
-
if (
|
|
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"))
|
|
100578
100579
|
return null;
|
|
100579
|
-
if (["LINK", "STYLE", "SOURCE"].includes(
|
|
100580
|
+
if (["LINK", "STYLE", "SOURCE"].includes(b2.nodeName) && (null === (g2 = b2.media) || void 0 === g2 ? void 0 : g2.trim()) && !Wl(b2.media))
|
|
100580
100581
|
return null;
|
|
100581
|
-
if ("SCRIPT" ===
|
|
100582
|
-
|
|
100582
|
+
if ("SCRIPT" === b2.nodeName)
|
|
100583
|
+
k2 = function(e5) {
|
|
100583
100584
|
return { nodeType: Node.ELEMENT_NODE, nodeName: "SCRIPT", attributes: Yl(e5).map((t4) => {
|
|
100584
100585
|
const n4 = e5.attributes[t4].name;
|
|
100585
100586
|
return { name: n4, value: Hl.test(n4) ? "" : e5.attributes[t4].value };
|
|
100586
100587
|
}).filter((e6) => "src" !== e6.name), childNodeIndexes: [] };
|
|
100587
|
-
}(
|
|
100588
|
+
}(b2);
|
|
100588
100589
|
else {
|
|
100589
|
-
const c3 =
|
|
100590
|
-
if (
|
|
100590
|
+
const c3 = b2.shadowRoot && b2.shadowRoot.childNodes.length && "ShadowRoot" !== b2.shadowRoot.constructor.name;
|
|
100591
|
+
if (k2 = function(e5) {
|
|
100591
100592
|
var t4, n4, r5;
|
|
100592
100593
|
const o4 = { nodeType: e5.nodeType, nodeName: e5.nodeName, attributes: Yl(e5).map((t5) => {
|
|
100593
100594
|
let n5 = e5.attributes[t5].value;
|
|
@@ -100609,7 +100610,7 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100609
100610
|
i4 && a4 === s4 || Xl(o4.attributes, "value", s4);
|
|
100610
100611
|
}
|
|
100611
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;
|
|
100612
|
-
}(
|
|
100613
|
+
}(b2), "STYLE" === b2.nodeName && b2.sheet && b2.sheet.cssRules.length ? (e4.push(function(e5, t4, n4) {
|
|
100613
100614
|
const r5 = (o4 = e5, function(e6) {
|
|
100614
100615
|
return t5 = function(e7) {
|
|
100615
100616
|
const t6 = e7.length, n5 = [1732584193, -271733879, -1732584194, 271733878];
|
|
@@ -100629,38 +100630,38 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100629
100630
|
}(Array.prototype.map.call(o4.sheet.cssRules, (e6) => e6.cssText).join("")));
|
|
100630
100631
|
var o4;
|
|
100631
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 };
|
|
100632
|
-
}(
|
|
100633
|
+
}(b2, n3, r4)), k2.childNodeIndexes = [e4.length - 1]) : "TEXTAREA" === b2.tagName && b2.value !== b2.textContent ? (e4.push(function(e5) {
|
|
100633
100634
|
return { nodeType: Node.TEXT_NODE, nodeValue: e5.value };
|
|
100634
|
-
}(
|
|
100635
|
-
const t4 =
|
|
100636
|
-
|
|
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) || []);
|
|
100637
100638
|
}
|
|
100638
|
-
if (
|
|
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)) {
|
|
100639
100640
|
const e5 = y(`applitools-canvas-${S()}.png`, t3);
|
|
100640
|
-
|
|
100641
|
+
k2.attributes.push({ name: "data-applitools-src", value: e5 }), i3.push({ element: b2, cdtNode: k2, url: e5 });
|
|
100641
100642
|
}
|
|
100642
|
-
if ("IFRAME" ===
|
|
100643
|
+
if ("IFRAME" === b2.nodeName) {
|
|
100643
100644
|
const n4 = S();
|
|
100644
|
-
if (
|
|
100645
|
-
|
|
100646
|
-
"src" !== e5.name && "srcdoc" !== e5.name || (
|
|
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 = "");
|
|
100647
100648
|
});
|
|
100648
100649
|
else if (d(r4))
|
|
100649
|
-
if (w(
|
|
100650
|
+
if (w(b2)) {
|
|
100650
100651
|
const e5 = y(`?applitools-iframe=${S()}`, t3);
|
|
100651
|
-
|
|
100652
|
+
k2.attributes.push({ name: "data-applitools-src", value: e5 }), a3.push({ element: b2, url: e5 });
|
|
100652
100653
|
} else {
|
|
100653
|
-
const e5 =
|
|
100654
|
-
|
|
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 });
|
|
100655
100656
|
}
|
|
100656
100657
|
else {
|
|
100657
100658
|
const t4 = `[data-applitools-selector="${n4}"]`;
|
|
100658
100659
|
l2.push({ selector: t4, index: e4.length });
|
|
100659
100660
|
}
|
|
100660
100661
|
}
|
|
100661
|
-
|
|
100662
|
+
b2.adoptedStyleSheets && b2.adoptedStyleSheets.length > 0 && (k2.exp_adoptedStyleSheets = Ql(b2, n3));
|
|
100662
100663
|
}
|
|
100663
|
-
if (
|
|
100664
|
+
if (b2.nodeType === Node.ELEMENT_NODE) {
|
|
100664
100665
|
const n4 = function(e5) {
|
|
100665
100666
|
const t4 = (e5.matches || e5.msMatchesSelector).bind(e5);
|
|
100666
100667
|
let n5 = [];
|
|
@@ -100706,30 +100707,30 @@ var require_processPagePollCjs = __commonJS({
|
|
|
100706
100707
|
return Ul(e6.style);
|
|
100707
100708
|
}(e5);
|
|
100708
100709
|
return r5 && (n5 = n5.concat(r5)), n5;
|
|
100709
|
-
}(
|
|
100710
|
-
if (n4.length > 0 && (c2 = c2.concat(n4)), "IMG" ===
|
|
100711
|
-
const e5 =
|
|
100712
|
-
u2.push({ element:
|
|
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 });
|
|
100713
100714
|
}
|
|
100714
|
-
if ("VIDEO" ===
|
|
100715
|
+
if ("VIDEO" === b2.tagName && (/^blob:/.test(b2.src) || b2.srcObject)) {
|
|
100715
100716
|
let n5;
|
|
100716
|
-
if (
|
|
100717
|
-
if (n5 =
|
|
100718
|
-
const t4 = { nodeType: Node.ELEMENT_NODE, nodeName: "SOURCE", attributes: [{ name: "src", value:
|
|
100719
|
-
e4.push(t4),
|
|
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);
|
|
100720
100721
|
}
|
|
100721
100722
|
} else
|
|
100722
|
-
n5 = y(`applitools-video-${S()}.webm`, t3),
|
|
100723
|
-
h2.push({ element:
|
|
100723
|
+
n5 = y(`applitools-video-${S()}.webm`, t3), k2.attributes.push({ name: "data-applitools-src", value: n5 });
|
|
100724
|
+
h2.push({ element: b2, url: n5 });
|
|
100724
100725
|
}
|
|
100725
100726
|
}
|
|
100726
100727
|
} else
|
|
100727
|
-
|
|
100728
|
+
b2.nodeType === Node.TEXT_NODE ? k2 = function(e5) {
|
|
100728
100729
|
return { nodeType: Node.TEXT_NODE, nodeValue: e5.nodeValue };
|
|
100729
|
-
}(
|
|
100730
|
+
}(b2) : b2.nodeType === Node.DOCUMENT_TYPE_NODE && (k2 = function(e5) {
|
|
100730
100731
|
return { nodeType: Node.DOCUMENT_TYPE_NODE, nodeName: e5.nodeName };
|
|
100731
|
-
}(
|
|
100732
|
-
return
|
|
100732
|
+
}(b2));
|
|
100733
|
+
return k2 ? (e4.push(k2), e4.length - 1) : null;
|
|
100733
100734
|
}
|
|
100734
100735
|
}
|
|
100735
100736
|
function Yl(e3) {
|
|
@@ -102541,7 +102542,7 @@ creating temp style for access.`), r3 = Hh(e3);
|
|
|
102541
102542
|
function P2(e3) {
|
|
102542
102543
|
return n4.defaultView && n4.defaultView.frameElement && n4.defaultView.frameElement.getAttribute(e3);
|
|
102543
102544
|
}
|
|
102544
|
-
}(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.
|
|
102545
|
+
}(t3).then((e3) => (d2.log("processPage end"), e3.scriptVersion = "4.16.1", e3));
|
|
102545
102546
|
}, window[x], "domSnapshotResult");
|
|
102546
102547
|
return function(e3) {
|
|
102547
102548
|
try {
|
|
@@ -128185,7 +128186,7 @@ var require_package3 = __commonJS({
|
|
|
128185
128186
|
"../core/package.json"(exports, module) {
|
|
128186
128187
|
module.exports = {
|
|
128187
128188
|
name: "@applitools/core",
|
|
128188
|
-
version: "4.58.
|
|
128189
|
+
version: "4.58.2",
|
|
128189
128190
|
homepage: "https://applitools.com",
|
|
128190
128191
|
bugs: {
|
|
128191
128192
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -129727,7 +129728,7 @@ var require_package4 = __commonJS({
|
|
|
129727
129728
|
"../eyes/package.json"(exports, module) {
|
|
129728
129729
|
module.exports = {
|
|
129729
129730
|
name: "@applitools/eyes",
|
|
129730
|
-
version: "1.38.
|
|
129731
|
+
version: "1.38.11",
|
|
129731
129732
|
keywords: [
|
|
129732
129733
|
"applitools",
|
|
129733
129734
|
"eyes",
|
|
@@ -131347,7 +131348,7 @@ var require_package5 = __commonJS({
|
|
|
131347
131348
|
"package.json"(exports, module) {
|
|
131348
131349
|
module.exports = {
|
|
131349
131350
|
name: "@applitools/eyes-browser",
|
|
131350
|
-
version: "1.6.
|
|
131351
|
+
version: "1.6.8",
|
|
131351
131352
|
type: "module",
|
|
131352
131353
|
keywords: [
|
|
131353
131354
|
"applitools",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.6.
|
|
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.
|
|
54
|
+
"@applitools/eyes": "1.38.11"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@applitools/test-server": "1.4.1",
|