@applitools/snippets 2.9.1 → 2.9.3
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 +22 -0
- package/dist/index.js +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.9.3](https://github.com/Applitools-Dev/sdk/compare/js/snippets@2.9.2...js/snippets@2.9.3) (2026-06-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* capture opaque-origin sandboxed blob iframes in UFG | FLD-4606 ([#3916](https://github.com/Applitools-Dev/sdk/issues/3916)) ([9296f7e](https://github.com/Applitools-Dev/sdk/commit/9296f7ef9fe3aa3889402009860ef5e3276f0303))
|
|
9
|
+
|
|
10
|
+
## [2.9.2](https://github.com/Applitools-Dev/sdk/compare/js/snippets@2.9.1...js/snippets@2.9.2) (2026-05-26)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* @applitools/dom-shared bumped to 1.2.1
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* strip .d.ts extension from import() type specifiers | FLD-4429 ([#3830](https://github.com/Applitools-Dev/sdk/issues/3830)) ([37aac45](https://github.com/Applitools-Dev/sdk/commit/37aac45958b713702bea87c144623dd3e65fce79))
|
|
24
|
+
|
|
3
25
|
## [2.9.1](https://github.com/Applitools-Dev/sdk/compare/js/snippets@2.9.0...js/snippets@2.9.1) (2026-05-19)
|
|
4
26
|
|
|
5
27
|
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var s=function(){"use strict";return function(){var t=function(t,n,r){return(o=f
|
|
|
31
31
|
return s(arg)
|
|
32
32
|
}
|
|
33
33
|
exports.isElementScrollable=function(arg){
|
|
34
|
-
var s=function(){"use strict";return function(){var t=function(t,n,
|
|
34
|
+
var s=function(){"use strict";return function(){var t=function(t,n,r){return(o=function(t){var r=(void 0===t?[]:t)[0],o=function(t){var r,o=void 0===t?[]:t,e=o[0],i=o[1],a=void 0===i?[]:i;try{r=n.getComputedStyle(e)}catch(t){return[]}return r&&"function"==typeof r.getPropertyValue?a.map((function(t){return r.getPropertyValue(t)})):[]}([r,["overflow-x","overflow-y","overflow"]]);return("scroll"===o[0]||"auto"===o[0]||"hidden"===o[2])&&r.scrollWidth>r.clientWidth||("scroll"===o[1]||"auto"===o[1]||"hidden"===o[2])&&r.scrollHeight>r.clientHeight})&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;var o},n=!0;try{var r=function t(n){if(c.Array.isArray(n)){for(var r=new c.Array(n.length),o=0;o<n.length;o++)r[o]=t(n[o]);return r}if(n&&"object"==typeof n&&Object.getPrototypeOf(n)===Object.prototype){var e=new c.Object;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=t(n[i]));return e}return n},o=window.__applitools_sandbox;o||((o=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);var e=Math.floor(4294967296*Math.random()),i=o.contentDocument.createElement("script");i.textContent="window['ctor-"+e+"'] = "+t.toString()+";",o.contentDocument.head.appendChild(i);var a=o.contentWindow["ctor-"+e];if(delete o.contentWindow["ctor-"+e],"function"!=typeof a)throw new Error("Sandbox failed to extract function");n=!1;var c=o.contentWindow,d=c.__EYES__APPLITOOLS__=c.__EYES__APPLITOOLS__||{};d._stringify||(d._stringify=c.JSON.stringify.bind(c.JSON));var l=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};l._stringify&&l._stringify!==JSON.stringify||(l._stringify=c.JSON.stringify.bind(c.JSON));for(var u=new c.Array(arguments.length),_=0;_<arguments.length;_++)u[_]=r(_<0||arguments.length<=_?void 0:arguments[_]);return a(document,window,c).apply(void 0,u)}catch(r){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw n?t:r}}}}();
|
|
35
35
|
return s(arg)
|
|
36
36
|
}
|
|
37
37
|
exports.getViewport=function(arg){
|
|
@@ -55,11 +55,11 @@ var s=function(){"use strict";return function(){var t=function(t,n,r){return(e=f
|
|
|
55
55
|
return s(arg)
|
|
56
56
|
}
|
|
57
57
|
exports.getElementTranslateOffset=function(arg){
|
|
58
|
-
var s=function(){"use strict";return function(){var t=function(t,r,
|
|
58
|
+
var s=function(){"use strict";return function(){var t=function(t,r,e){return(n=function(r){var e=(void 0===r?[]:r)[0],n=function(t){var r=void 0===t?[]:t,e=r[0],n=r[1],o=void 0===n?[]:n,i=e.style;return i&&"function"==typeof i.getPropertyValue?o.reduce((function(t,r){return t[r]={value:i.getPropertyValue(r),important:Boolean(i.getPropertyPriority(r))},t}),{}):{}}([void 0===e?t.documentElement:e,["transform","-webkit-transform"]]),o=Object.keys(n).reduce((function(t,r){var e=n[r].value;if(e){var o=e.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;t.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else t.push({x:0,y:0})}return t}),[]);if(!o.every((function(t){return o[0].x===t.x||o[0].y===t.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var n},r=!0;try{var e=function t(r){if(d.Array.isArray(r)){for(var e=new d.Array(r.length),n=0;n<r.length;n++)e[n]=t(r[n]);return e}if(r&&"object"==typeof r&&Object.getPrototypeOf(r)===Object.prototype){var o=new d.Object;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=t(r[i]));return o}return r},n=window.__applitools_sandbox;n||((n=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n),window.__applitools_sandbox=n);var o=Math.floor(4294967296*Math.random()),i=n.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",n.contentDocument.head.appendChild(i);var a=n.contentWindow["ctor-"+o];if(delete n.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");r=!1;var d=n.contentWindow,c=d.__EYES__APPLITOOLS__=d.__EYES__APPLITOOLS__||{};c._stringify||(c._stringify=d.JSON.stringify.bind(d.JSON));var u=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};u._stringify&&u._stringify!==JSON.stringify||(u._stringify=d.JSON.stringify.bind(d.JSON));for(var s=new d.Array(arguments.length),f=0;f<arguments.length;f++)s[f]=e(f<0||arguments.length<=f?void 0:arguments[f]);return a(document,window,d).apply(void 0,s)}catch(e){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw r?t:e}}}}();
|
|
59
59
|
return s(arg)
|
|
60
60
|
}
|
|
61
61
|
exports.getElementStyleProperties=function(arg){
|
|
62
|
-
var s=function(){"use strict";return function(){var t=function(t,n,r){return(e=function(t){var n=void 0===t?[]:t,r=n[0],e=n[1]
|
|
62
|
+
var s=function(){"use strict";return function(){var t=function(t,n,r){return(e=function(t){var n=void 0===t?[]:t,r=n[0],e=n[1],o=void 0===e?[]:e,i=r.style;return i&&"function"==typeof i.getPropertyValue?o.reduce((function(t,n){return t[n]={value:i.getPropertyValue(n),important:Boolean(i.getPropertyPriority(n))},t}),{}):{}})&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var e},n=!0;try{var r=function t(n){if(c.Array.isArray(n)){for(var r=new c.Array(n.length),e=0;e<n.length;e++)r[e]=t(n[e]);return r}if(n&&"object"==typeof n&&Object.getPrototypeOf(n)===Object.prototype){var o=new c.Object;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=t(n[i]));return o}return n},e=window.__applitools_sandbox;e||((e=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),e.setAttribute("data-applitools-skip",""),document.head.appendChild(e),window.__applitools_sandbox=e);var o=Math.floor(4294967296*Math.random()),i=e.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",e.contentDocument.head.appendChild(i);var a=e.contentWindow["ctor-"+o];if(delete e.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");n=!1;var c=e.contentWindow,d=c.__EYES__APPLITOOLS__=c.__EYES__APPLITOOLS__||{};d._stringify||(d._stringify=c.JSON.stringify.bind(c.JSON));var _=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};_._stringify&&_._stringify!==JSON.stringify||(_._stringify=c.JSON.stringify.bind(c.JSON));for(var l=new c.Array(arguments.length),p=0;p<arguments.length;p++)l[p]=r(p<0||arguments.length<=p?void 0:arguments[p]);return a(document,window,c).apply(void 0,l)}catch(r){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw n?t:r}}}}();
|
|
63
63
|
return s(arg)
|
|
64
64
|
}
|
|
65
65
|
exports.getElementScrollOffset=function(arg){
|
|
@@ -67,7 +67,7 @@ var s=function(){"use strict";return function(){var t=function(t,n,r){return(o=f
|
|
|
67
67
|
return s(arg)
|
|
68
68
|
}
|
|
69
69
|
exports.getElementRect=function(arg){
|
|
70
|
-
var s=function(){"use strict";return function(){var t=function(t,e,r){return function(){var r=function(e){var r=(void 0===e?[]:e)[0],n=void 0===r?t.documentElement:r,o=function(t){var e=void 0===t?[]:t,r=e[0],n=e[1]
|
|
70
|
+
var s=function(){"use strict";return function(){var t=function(t,e,r){return function(){var r=function(e){var r=(void 0===e?[]:e)[0],n=void 0===r?t.documentElement:r,o=function(t){var e=void 0===t?[]:t,r=e[0],n=e[1],o=void 0===n?[]:n,i=r.style;return i&&"function"==typeof i.getPropertyValue?o.reduce((function(t,e){return t[e]={value:i.getPropertyValue(e),important:Boolean(i.getPropertyPriority(e))},t}),{}):{}}([n,["transform","-webkit-transform"]]),i=Object.keys(o).reduce((function(t,e){var r=o[e].value;if(r){var n=r.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(n){var i=n[1],a=void 0!==n[3]?n[3]:0;t.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else t.push({x:0,y:0})}return t}),[]);if(!i.every((function(t){return i[0].x===t.x||i[0].y===t.y})))throw new Error("Got different css positions!");return i[0]||{x:0,y:0}},n=function(t){var n=(void 0===t?[]:t)[0],o=function(t){var r=(void 0===t?[]:t)[0];return r?{x:r.scrollLeft,y:r.scrollTop}:{x:e.scrollX||e.pageXOffset,y:e.scrollY||e.pageYOffset}}([n]),i=r([n]);return{x:o.x+i.x,y:o.y+i.y}};return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(r){var o=void 0===r?[]:r,i=o[0],a=o[1],u=void 0!==a&&a,f="string"==typeof i.tagName?i.tagName.toLowerCase():"";if(i===t.documentElement||f===function(){var e="HTML",r=t.scrollingElement;return r&&(e=r.tagName),e.toLowerCase()}())return{x:0,y:0,width:i.clientWidth,height:i.clientHeight};var c="function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():{left:0,top:0,width:0,height:0},l={x:c.left,y:c.top,width:c.width,height:c.height};if(u){var d;try{d=e.getComputedStyle(i)}catch(r){d=null}d&&"function"==typeof d.getPropertyValue&&(l.x+=parseInt(d.getPropertyValue("border-left-width")),l.y+=parseInt(d.getPropertyValue("border-top-width"))),l.width=i.clientWidth,l.height=i.clientHeight}var s=function(r){for(var n,o=(void 0===r?[]:r)[0];o.offsetParent&&o.offsetParent!==t.body&&o.offsetParent!==t.documentElement;)o=o.offsetParent;try{n=e.getComputedStyle(o)}catch(r){return null}return n&&"function"==typeof n.getPropertyValue&&"fixed"===n.getPropertyValue("position")?o:null}([i]);if(s){if(s!==i){var y=n([s]);l.x+=y.x,l.y+=y.y}}else{var p=n();l.x+=p.x,l.y+=p.y}return l}))}()},e=!0;try{var r=function t(e){if(u.Array.isArray(e)){for(var r=new u.Array(e.length),n=0;n<e.length;n++)r[n]=t(e[n]);return r}if(e&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype){var o=new u.Object;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t(e[i]));return o}return e},n=window.__applitools_sandbox;n||((n=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n),window.__applitools_sandbox=n);var o=Math.floor(4294967296*Math.random()),i=n.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",n.contentDocument.head.appendChild(i);var a=n.contentWindow["ctor-"+o];if(delete n.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");e=!1;var u=n.contentWindow,f=u.__EYES__APPLITOOLS__=u.__EYES__APPLITOOLS__||{};f._stringify||(f._stringify=u.JSON.stringify.bind(u.JSON));var c=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};c._stringify&&c._stringify!==JSON.stringify||(c._stringify=u.JSON.stringify.bind(u.JSON));for(var l=new u.Array(arguments.length),d=0;d<arguments.length;d++)l[d]=r(d<0||arguments.length<=d?void 0:arguments[d]);return a(document,window,u).apply(void 0,l)}catch(r){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw e?t:r}}}}();
|
|
71
71
|
return s(arg)
|
|
72
72
|
}
|
|
73
73
|
exports.getElementProperties=function(arg){
|
|
@@ -75,19 +75,19 @@ var s=function(){"use strict";return function(){var t=function(t,n,r){return(o=f
|
|
|
75
75
|
return s(arg)
|
|
76
76
|
}
|
|
77
77
|
exports.getElementInnerOffset=function(arg){
|
|
78
|
-
var s=function(){"use strict";return function(){var t=function(t,r,e){return o=function(r){var e=(void 0===r?[]:r)[0],n=void 0===e?t.documentElement:e,o=function(t){var r=void 0===t?[]:t,e=r[0],n=r[1]
|
|
78
|
+
var s=function(){"use strict";return function(){var t=function(t,r,e){return o=function(r){var e=(void 0===r?[]:r)[0],n=void 0===e?t.documentElement:e,o=function(t){var r=void 0===t?[]:t,e=r[0],n=r[1],o=void 0===n?[]:n,i=e.style;return i&&"function"==typeof i.getPropertyValue?o.reduce((function(t,r){return t[r]={value:i.getPropertyValue(r),important:Boolean(i.getPropertyPriority(r))},t}),{}):{}}([n,["transform","-webkit-transform"]]),i=Object.keys(o).reduce((function(t,r){var e=o[r].value;if(e){var n=e.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(n){var i=n[1],a=void 0!==n[3]?n[3]:0;t.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else t.push({x:0,y:0})}return t}),[]);if(!i.every((function(t){return i[0].x===t.x||i[0].y===t.y})))throw new Error("Got different css positions!");return i[0]||{x:0,y:0}},(n=function(t){var e=(void 0===t?[]:t)[0],n=function(t){var e=(void 0===t?[]:t)[0];return e?{x:e.scrollLeft,y:e.scrollTop}:{x:r.scrollX||r.pageXOffset,y:r.scrollY||r.pageYOffset}}([e]),i=o([e]);return{x:n.x+i.x,y:n.y+i.y}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var n,o},r=!0;try{var e=function t(r){if(c.Array.isArray(r)){for(var e=new c.Array(r.length),n=0;n<r.length;n++)e[n]=t(r[n]);return e}if(r&&"object"==typeof r&&Object.getPrototypeOf(r)===Object.prototype){var o=new c.Object;for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=t(r[i]));return o}return r},n=window.__applitools_sandbox;n||((n=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n),window.__applitools_sandbox=n);var o=Math.floor(4294967296*Math.random()),i=n.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",n.contentDocument.head.appendChild(i);var a=n.contentWindow["ctor-"+o];if(delete n.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");r=!1;var c=n.contentWindow,d=c.__EYES__APPLITOOLS__=c.__EYES__APPLITOOLS__||{};d._stringify||(d._stringify=c.JSON.stringify.bind(c.JSON));var s=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};s._stringify&&s._stringify!==JSON.stringify||(s._stringify=c.JSON.stringify.bind(c.JSON));for(var u=new c.Array(arguments.length),f=0;f<arguments.length;f++)u[f]=e(f<0||arguments.length<=f?void 0:arguments[f]);return a(document,window,c).apply(void 0,u)}catch(e){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw r?t:e}}}}();
|
|
79
79
|
return s(arg)
|
|
80
80
|
}
|
|
81
81
|
exports.getElementFixedAncestor=function(arg){
|
|
82
|
-
var s=function(){"use strict";return function(){var t=function(t,n
|
|
82
|
+
var s=function(){"use strict";return function(){var t=function(t,e,n){return(r=function(n){for(var r,o=(void 0===n?[]:n)[0];o.offsetParent&&o.offsetParent!==t.body&&o.offsetParent!==t.documentElement;)o=o.offsetParent;try{r=e.getComputedStyle(o)}catch(n){return null}return r&&"function"==typeof r.getPropertyValue&&"fixed"===r.getPropertyValue("position")?o:null})&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;var r},e=!0;try{var n=function t(e){if(d.Array.isArray(e)){for(var n=new d.Array(e.length),r=0;r<e.length;r++)n[r]=t(e[r]);return n}if(e&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype){var o=new d.Object;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t(e[i]));return o}return e},r=window.__applitools_sandbox;r||((r=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),r.setAttribute("data-applitools-skip",""),document.head.appendChild(r),window.__applitools_sandbox=r);var o=Math.floor(4294967296*Math.random()),i=r.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",r.contentDocument.head.appendChild(i);var a=r.contentWindow["ctor-"+o];if(delete r.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");e=!1;var d=r.contentWindow,c=d.__EYES__APPLITOOLS__=d.__EYES__APPLITOOLS__||{};c._stringify||(c._stringify=d.JSON.stringify.bind(d.JSON));var f=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};f._stringify&&f._stringify!==JSON.stringify||(f._stringify=d.JSON.stringify.bind(d.JSON));for(var l=new d.Array(arguments.length),_=0;_<arguments.length;_++)l[_]=n(_<0||arguments.length<=_?void 0:arguments[_]);return a(document,window,d).apply(void 0,l)}catch(n){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw e?t:n}}}}();
|
|
83
83
|
return s(arg)
|
|
84
84
|
}
|
|
85
85
|
exports.getElementContentSize=function(arg){
|
|
86
|
-
var s=function(){"use strict";return function(){var t=function(t,r
|
|
86
|
+
var s=function(){"use strict";return function(){var t=function(t,e,r){return o=function(t){var e=void 0===t?[]:t,r=e[0],n=e[1],o=Object.keys(n).sort(),i=o.reduce((function(t,e){return t[e]={value:r.style.getPropertyValue(e),important:Boolean(r.style.getPropertyPriority(e))},t}),{});return o.forEach((function(t){r.style.setProperty(t,"string"!=typeof n[t]&&n[t]?n[t].value:n[t],n[t]&&n[t].important?"important":"")})),i},(n=function(e){var r,n=(void 0===e?[]:e)[0],i="string"==typeof n.tagName?n.tagName.toLowerCase():"";n!==t.documentElement&&i!==function(){var e="HTML",r=t.scrollingElement;return r&&(e=r.tagName),e.toLowerCase()}()||(r=o([n,{transform:"none"}]));var a={width:n.scrollWidth,height:n.scrollHeight};return r&&o([n,r]),a})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var n,o},e=!0;try{var r=function t(e){if(c.Array.isArray(e)){for(var r=new c.Array(e.length),n=0;n<e.length;n++)r[n]=t(e[n]);return r}if(e&&"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype){var o=new c.Object;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t(e[i]));return o}return e},n=window.__applitools_sandbox;n||((n=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n),window.__applitools_sandbox=n);var o=Math.floor(4294967296*Math.random()),i=n.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",n.contentDocument.head.appendChild(i);var a=n.contentWindow["ctor-"+o];if(delete n.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");e=!1;var c=n.contentWindow,d=c.__EYES__APPLITOOLS__=c.__EYES__APPLITOOLS__||{};d._stringify||(d._stringify=c.JSON.stringify.bind(c.JSON));var l=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};l._stringify&&l._stringify!==JSON.stringify||(l._stringify=c.JSON.stringify.bind(c.JSON));for(var s=new c.Array(arguments.length),u=0;u<arguments.length;u++)s[u]=r(u<0||arguments.length<=u?void 0:arguments[u]);return a(document,window,c).apply(void 0,s)}catch(r){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw e?t:r}}}}();
|
|
87
87
|
return s(arg)
|
|
88
88
|
}
|
|
89
89
|
exports.getElementComputedStyleProperties=function(arg){
|
|
90
|
-
var s=function(){"use strict";return function(){var t=function(t,n,r){return(e=function(t){var r=void 0===t?[]:t,e
|
|
90
|
+
var s=function(){"use strict";return function(){var t=function(t,n,r){return(e=function(t){var r,e=void 0===t?[]:t,o=e[0],i=e[1],a=void 0===i?[]:i;try{r=n.getComputedStyle(o)}catch(t){return[]}return r&&"function"==typeof r.getPropertyValue?a.map((function(t){return r.getPropertyValue(t)})):[]})&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var e},n=!0;try{var r=function t(n){if(c.Array.isArray(n)){for(var r=new c.Array(n.length),e=0;e<n.length;e++)r[e]=t(n[e]);return r}if(n&&"object"==typeof n&&Object.getPrototypeOf(n)===Object.prototype){var o=new c.Object;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=t(n[i]));return o}return n},e=window.__applitools_sandbox;e||((e=document.createElement("iframe")).setAttribute("data-applitools-sandbox",""),e.setAttribute("data-applitools-skip",""),document.head.appendChild(e),window.__applitools_sandbox=e);var o=Math.floor(4294967296*Math.random()),i=e.contentDocument.createElement("script");i.textContent="window['ctor-"+o+"'] = "+t.toString()+";",e.contentDocument.head.appendChild(i);var a=e.contentWindow["ctor-"+o];if(delete e.contentWindow["ctor-"+o],"function"!=typeof a)throw new Error("Sandbox failed to extract function");n=!1;var c=e.contentWindow,d=c.__EYES__APPLITOOLS__=c.__EYES__APPLITOOLS__||{};d._stringify||(d._stringify=c.JSON.stringify.bind(c.JSON));var _=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};_._stringify&&_._stringify!==JSON.stringify||(_._stringify=c.JSON.stringify.bind(c.JSON));for(var p=new c.Array(arguments.length),u=0;u<arguments.length;u++)p[u]=r(u<0||arguments.length<=u?void 0:arguments[u]);return a(document,window,c).apply(void 0,p)}catch(r){try{return t(document,window,window).apply(void 0,arguments)}catch(t){throw n?t:r}}}}();
|
|
91
91
|
return s(arg)
|
|
92
92
|
}
|
|
93
93
|
exports.getDocumentSize=function(arg){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/snippets",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"playwright:setup": "yarn playwright install --with-deps chromium"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@applitools/dom-shared": "1.2.
|
|
26
|
+
"@applitools/dom-shared": "1.2.1",
|
|
27
27
|
"@babel/core": "^7.26.0",
|
|
28
28
|
"@babel/preset-env": "^7.23.2",
|
|
29
29
|
"@babel/preset-typescript": "^7.26.0",
|