@applitools/dom-snapshot 4.18.11 → 4.18.13
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 +75 -0
- package/dist/pollResult.js +1 -1
- package/dist/pollResultCjs.js +1 -1
- package/dist/pollResultEs.js +1 -1
- package/dist/processPage.js +3 -3
- package/dist/processPage.js.map +1 -1
- package/dist/processPagePoll.js +3 -3
- package/dist/processPagePoll.js.map +1 -1
- package/dist/processPagePollCjs.js +3 -3
- package/dist/processPagePollCjs.js.map +1 -1
- package/dist/processPagePollEs.js +3 -3
- package/dist/processPagePollEs.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,81 @@
|
|
|
9
9
|
- fix style programmatic generated fallback
|
|
10
10
|
- performance boost
|
|
11
11
|
|
|
12
|
+
## [4.18.13](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.12...js/dom-snapshot@4.18.13) (2026-11-30)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* @applitools/logger bumped to 2.3.6
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* keep the base console handler when a logger is extended ([#4563](https://github.com/Applitools-Dev/sdk/issues/4563)) ([8611837](https://github.com/Applitools-Dev/sdk/commit/8611837c62e09274c33a8e6cd4465b429c5ca8ea))
|
|
21
|
+
* warn when Target.frame is used on the Ultrafast Grid | FLD-5020 ([#4564](https://github.com/Applitools-Dev/sdk/issues/4564)) ([2d7d27f](https://github.com/Applitools-Dev/sdk/commit/2d7d27f0b29d194f5c0ff03d29851d8ae06185b3))
|
|
22
|
+
* @applitools/snippets bumped to 2.9.14
|
|
23
|
+
#### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* stabilize the page after breakpoint resize before snapshot | AD-18600 ([#4583](https://github.com/Applitools-Dev/sdk/issues/4583)) ([f8bf639](https://github.com/Applitools-Dev/sdk/commit/f8bf639d8094911dbc7816485bd29475776167e1))
|
|
26
|
+
* @applitools/driver bumped to 1.27.1
|
|
27
|
+
|
|
28
|
+
* @applitools/spec-driver-webdriver bumped to 1.7.1
|
|
29
|
+
|
|
30
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.19
|
|
31
|
+
|
|
32
|
+
* @applitools/test-server bumped to 1.4.13
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## [4.18.12](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.11...js/dom-snapshot@4.18.12) (2026-11-25)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Dependencies
|
|
39
|
+
|
|
40
|
+
* @applitools/utils bumped to 1.16.0
|
|
41
|
+
#### Features
|
|
42
|
+
|
|
43
|
+
* stitch iOS full pages without NML from the accessibility tree | AD-16309 ([#4202](https://github.com/Applitools-Dev/sdk/issues/4202)) ([123cbc8](https://github.com/Applitools-Dev/sdk/commit/123cbc85179d3179c5a8400bb3c1b9927561f8d9))
|
|
44
|
+
* @applitools/logger bumped to 2.3.5
|
|
45
|
+
|
|
46
|
+
* @applitools/dom-shared bumped to 1.2.6
|
|
47
|
+
#### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* reloadPage awaits navigation so dom-snapshot can't race the layoutBreakpoints reload | AD-18455 ([#4540](https://github.com/Applitools-Dev/sdk/issues/4540)) ([accf317](https://github.com/Applitools-Dev/sdk/commit/accf317b44e4158c9b64f5f75524aad7450b7002))
|
|
50
|
+
* @applitools/driver bumped to 1.27.0
|
|
51
|
+
#### Features
|
|
52
|
+
|
|
53
|
+
* stitch iOS full pages without NML from the accessibility tree | AD-16309 ([#4202](https://github.com/Applitools-Dev/sdk/issues/4202)) ([123cbc8](https://github.com/Applitools-Dev/sdk/commit/123cbc85179d3179c5a8400bb3c1b9927561f8d9))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
#### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* reloadPage awaits navigation so dom-snapshot can't race the layoutBreakpoints reload | AD-18455 ([#4540](https://github.com/Applitools-Dev/sdk/issues/4540)) ([accf317](https://github.com/Applitools-Dev/sdk/commit/accf317b44e4158c9b64f5f75524aad7450b7002))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
* @applitools/spec-driver-webdriver bumped to 1.7.0
|
|
63
|
+
#### Features
|
|
64
|
+
|
|
65
|
+
* stitch iOS full pages without NML from the accessibility tree | AD-16309 ([#4202](https://github.com/Applitools-Dev/sdk/issues/4202)) ([123cbc8](https://github.com/Applitools-Dev/sdk/commit/123cbc85179d3179c5a8400bb3c1b9927561f8d9))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
#### Bug Fixes
|
|
69
|
+
|
|
70
|
+
* reloadPage awaits navigation so dom-snapshot can't race the layoutBreakpoints reload | AD-18455 ([#4540](https://github.com/Applitools-Dev/sdk/issues/4540)) ([accf317](https://github.com/Applitools-Dev/sdk/commit/accf317b44e4158c9b64f5f75524aad7450b7002))
|
|
71
|
+
* resolve shadow-root region selectors via the shadow endpoint | AD-18427 ([#4532](https://github.com/Applitools-Dev/sdk/issues/4532)) ([d43f26a](https://github.com/Applitools-Dev/sdk/commit/d43f26a0ca24285f31d7cfca5ea4a11a6f8461eb))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
* @applitools/spec-driver-puppeteer bumped to 1.8.18
|
|
76
|
+
#### Bug Fixes
|
|
77
|
+
|
|
78
|
+
* reloadPage awaits navigation so dom-snapshot can't race the layoutBreakpoints reload | AD-18455 ([#4540](https://github.com/Applitools-Dev/sdk/issues/4540)) ([accf317](https://github.com/Applitools-Dev/sdk/commit/accf317b44e4158c9b64f5f75524aad7450b7002))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
* @applitools/snippets bumped to 2.9.13
|
|
83
|
+
|
|
84
|
+
* @applitools/test-server bumped to 1.4.12
|
|
85
|
+
|
|
86
|
+
|
|
12
87
|
## [4.18.11](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.10...js/dom-snapshot@4.18.11) (2026-11-18)
|
|
13
88
|
|
|
14
89
|
|
package/dist/pollResult.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.18.
|
|
1
|
+
/* @applitools/dom-snapshot@4.18.13 */
|
|
2
2
|
function __pollResult() {
|
|
3
3
|
var pollResult=function(){"use strict";return function(...t){const n=function(t,n,e){return function(){var t={};function o(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const y=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=y.default;const m=_(f);var p=t.poll=m.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let y=0;y<t.length;y++)f[y]=l(t[y]);return u(document,window,i)(...f)}catch(m){try{return n(document,window,window)(...t)}catch(p){throw e?p:m}}}}();
|
|
4
4
|
//# sourceMappingURL=pollResult.js.map
|
package/dist/pollResultCjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.18.
|
|
1
|
+
/* @applitools/dom-snapshot@4.18.13 */
|
|
2
2
|
"use strict";module.exports=function(...t){const n=function(t,n,e){return function(){var t={};function o(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const m=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=m.default;const y=_(f);var p=t.poll=y.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let m=0;m<t.length;m++)f[m]=l(t[m]);return u(document,window,i)(...f)}catch(y){try{return n(document,window,window)(...t)}catch(p){throw e?p:y}}};
|
|
3
3
|
//# sourceMappingURL=pollResultCjs.js.map
|
package/dist/pollResultEs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.18.
|
|
1
|
+
/* @applitools/dom-snapshot@4.18.13 */
|
|
2
2
|
function t(...t){const n=function(t,n,e){return function(){var t={};function o(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const y=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=y.default;const m=_(f);var p=t.poll=m.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let y=0;y<t.length;y++)f[y]=l(t[y]);return u(document,window,i)(...f)}catch(m){try{return n(document,window,window)(...t)}catch(p){throw e?p:m}}}export{t as default};
|
|
3
3
|
//# sourceMappingURL=pollResultEs.js.map
|