@applitools/dom-snapshot 4.18.3 → 4.18.5

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
@@ -9,6 +9,47 @@
9
9
  - fix style programmatic generated fallback
10
10
  - performance boost
11
11
 
12
+ ## [4.18.5](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.4...js/dom-snapshot@4.18.5) (2026-10-12)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * keep the video src when there is no source fallback | FLD-4948 ([#4209](https://github.com/Applitools-Dev/sdk/issues/4209)) ([50d0909](https://github.com/Applitools-Dev/sdk/commit/50d09091291dd64055c42104695f8726594558ac))
18
+ * record blob videos so HLS videos render in UFG | AD-16937 ([#4277](https://github.com/Applitools-Dev/sdk/issues/4277)) ([3bdcdcc](https://github.com/Applitools-Dev/sdk/commit/3bdcdccf068ce9f827065f24bd00cb543004f2b3))
19
+
20
+
21
+ ### Performance Improvements
22
+
23
+ * upload inline data: URIs as resources | AD-15789 ([#4119](https://github.com/Applitools-Dev/sdk/issues/4119)) ([cbd9afa](https://github.com/Applitools-Dev/sdk/commit/cbd9afa8de664b32f23119690b14a0aef998acaf))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * @applitools/snippets bumped to 2.9.8
29
+ #### Bug Fixes
30
+
31
+ * stop element id path at the document the snippet runs in | FLD-5098 ([#4285](https://github.com/Applitools-Dev/sdk/issues/4285)) ([94c4296](https://github.com/Applitools-Dev/sdk/commit/94c4296988a94832435cac92096d10ec78e96ce8))
32
+ * @applitools/driver bumped to 1.26.12
33
+
34
+ * @applitools/spec-driver-webdriver bumped to 1.6.12
35
+
36
+ * @applitools/spec-driver-puppeteer bumped to 1.8.12
37
+
38
+
39
+ ## [4.18.4](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.3...js/dom-snapshot@4.18.4) (2026-09-27)
40
+
41
+
42
+ ### Dependencies
43
+
44
+ * @applitools/driver bumped to 1.26.11
45
+ #### Bug Fixes
46
+
47
+ * fail executePoll when the target stops responding | AD-16554 ([#4227](https://github.com/Applitools-Dev/sdk/issues/4227)) ([39745d1](https://github.com/Applitools-Dev/sdk/commit/39745d117942122a364d0a598a48b205838a5ca6))
48
+ * @applitools/spec-driver-webdriver bumped to 1.6.11
49
+
50
+ * @applitools/spec-driver-puppeteer bumped to 1.8.11
51
+
52
+
12
53
  ## [4.18.3](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.2...js/dom-snapshot@4.18.3) (2026-09-17)
13
54
 
14
55
 
@@ -1,3 +1,3 @@
1
1
  import type { VideoBlob, BlobResult, BuildBlobVideosOptions } from '../types';
2
- declare function buildBlobVideos(imageBlobs: VideoBlob[], { doc, fetchedBlobs, compress, serialize, sessionCache }: BuildBlobVideosOptions): Promise<BlobResult[]>;
2
+ declare function buildBlobVideos(imageBlobs: VideoBlob[], { doc, fetchedBlobs, compress, serialize, log, sessionCache }: BuildBlobVideosOptions): Promise<BlobResult[]>;
3
3
  export default buildBlobVideos;
@@ -0,0 +1,6 @@
1
+ import type { CDTNode, BlobResult } from '../types';
2
+ declare function extractDataUriResources(cdt: CDTNode[], baseUrl: string, { compress, serialize }: {
3
+ compress?: boolean;
4
+ serialize?: boolean;
5
+ }): BlobResult[];
6
+ export default extractDataUriResources;
@@ -9,6 +9,8 @@ export interface ProcessPageOptions {
9
9
  skipResources?: string[];
10
10
  /** @internal */
11
11
  skipRootHtmlResource?: boolean;
12
+ /** @internal */
13
+ skipDataUriExtraction?: boolean;
12
14
  compressResources?: boolean;
13
15
  serializeResources?: boolean;
14
16
  removeReverseProxyURLPrefixes?: string[];
@@ -31,5 +33,5 @@ export interface ProcessPageResult {
31
33
  errors?: string[];
32
34
  scriptVersion?: string;
33
35
  }
34
- declare function processPage({ doc, showLogs, useSessionCache, dontFetchResources, fetchTimeout, fetchConcurrency, skipResources, skipRootHtmlResource, compressResources, serializeResources, removeReverseProxyURLPrefixes, elements, skipCDTDedup, }?: ProcessPageOptions): Promise<ProcessPageResult>;
36
+ declare function processPage({ doc, showLogs, useSessionCache, dontFetchResources, fetchTimeout, fetchConcurrency, skipResources, skipRootHtmlResource, compressResources, serializeResources, removeReverseProxyURLPrefixes, skipDataUriExtraction, elements, skipCDTDedup, }?: ProcessPageOptions): Promise<ProcessPageResult>;
35
37
  export default processPage;
@@ -1,4 +1,4 @@
1
- /* @applitools/dom-snapshot@4.18.3 */
1
+ /* @applitools/dom-snapshot@4.18.5 */
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 r(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 o=function(t,n){const e=[];let o=0;for(let c=0;c<t.length;++c){const i=r(t,c);let u=0;i>0&&(u=i<128?1:i<2048?2:i<65536?3:i<2097152?4:i<67108864?5:6),o+u>n?(e.push(c),o=u):o+=u}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(o),i="WIP",u="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var l=function(t,e,r={}){const o=function(t,{chunkByteLength:e=0}={}){var r;if(t){if(t.value){if(e){if(!t.chunks)try{const o=void 0!==n?null===(r=n.__EYES__APPLITOOLS__)||void 0===r?void 0:r._stringify:void 0,i=(null!=o?o:JSON.stringify)(t.value);t.chunks=(0,c.default)(i,e),t.chunks.length>0&&(t.from=0,t.value=i)}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:u,value:t.value}}return t.error?{status:a,error:t.error}:{status:i}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],r);return(o.status===u||o.status===a||o.status===s&&o.done)&&delete t[e],o};const f=l;var d=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=m=t.poll=t.pollify=t.chunkify=void 0;const _=d(o);t.chunkify=_.default;const h=d((function(t,n,e){return r=>function(...o){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...o))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),f(n,e,r)}}));t.pollify=h.default;const y=d(l);var m=t.poll=y.default;const p=d((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 r=new URL(t,n).href;return e?r:decodeURI(r)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=p.default;const w=d((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=w.default;const S=d((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=S.default,function(t){var n;const r=e.__EYES__APPLITOOLS__,o=null!==(n=null==r?void 0:r._stringify)&&void 0!==n?n:JSON.stringify;try{return o(m(r,"domSnapshotResult",t))}catch(t){return o({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 r=window.__applitools_sandbox;r||(r=document.createElement("iframe"),r.setAttribute("data-applitools-sandbox",""),r.setAttribute("data-applitools-skip",""),document.head.appendChild(r),window.__applitools_sandbox=r);const o=Math.floor(4294967296*Math.random()),c=r.contentDocument.createElement("script");c.textContent="window['ctor-"+o+"'] = "+n.toString()+";",r.contentDocument.head.appendChild(c);const i=r.contentWindow["ctor-"+o];if(delete r.contentWindow["ctor-"+o],"function"!=typeof i)throw new Error("Sandbox failed to extract function");e=!1;const u=r.contentWindow,s=u.__EYES__APPLITOOLS__=u.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=u.JSON.stringify.bind(u.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(u.Array.isArray(t)){const n=new u.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 u.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=u.JSON.stringify.bind(u.JSON));const f=new u.Array(t.length);for(let d=0;d<t.length;d++)f[d]=l(t[d]);return i(document,window,u)(...f)}catch(_){try{return n(document,window,window)(...t)}catch(h){throw e?h:_}}}}();
4
4
  //# sourceMappingURL=pollResult.js.map
@@ -1,3 +1,3 @@
1
- /* @applitools/dom-snapshot@4.18.3 */
1
+ /* @applitools/dom-snapshot@4.18.5 */
2
2
  "use strict";module.exports=function(...t){const n=function(t,n,e){return function(){var t={};function r(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 o=function(t,n){const e=[];let o=0;for(let c=0;c<t.length;++c){const i=r(t,c);let u=0;i>0&&(u=i<128?1:i<2048?2:i<65536?3:i<2097152?4:i<67108864?5:6),o+u>n?(e.push(c),o=u):o+=u}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(o),i="WIP",u="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var l=function(t,e,r={}){const o=function(t,{chunkByteLength:e=0}={}){var r;if(t){if(t.value){if(e){if(!t.chunks)try{const o=void 0!==n?null===(r=n.__EYES__APPLITOOLS__)||void 0===r?void 0:r._stringify:void 0,i=(null!=o?o:JSON.stringify)(t.value);t.chunks=(0,c.default)(i,e),t.chunks.length>0&&(t.from=0,t.value=i)}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:u,value:t.value}}return t.error?{status:a,error:t.error}:{status:i}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],r);return(o.status===u||o.status===a||o.status===s&&o.done)&&delete t[e],o};const f=l;var d=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=y=t.poll=t.pollify=t.chunkify=void 0;const _=d(o);t.chunkify=_.default;const h=d((function(t,n,e){return r=>function(...o){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...o))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),f(n,e,r)}}));t.pollify=h.default;const m=d(l);var y=t.poll=m.default;const p=d((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 r=new URL(t,n).href;return e?r:decodeURI(r)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=p.default;const w=d((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=w.default;const S=d((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=S.default,function(t){var n;const r=e.__EYES__APPLITOOLS__,o=null!==(n=null==r?void 0:r._stringify)&&void 0!==n?n:JSON.stringify;try{return o(y(r,"domSnapshotResult",t))}catch(t){return o({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 r=window.__applitools_sandbox;r||(r=document.createElement("iframe"),r.setAttribute("data-applitools-sandbox",""),r.setAttribute("data-applitools-skip",""),document.head.appendChild(r),window.__applitools_sandbox=r);const o=Math.floor(4294967296*Math.random()),c=r.contentDocument.createElement("script");c.textContent="window['ctor-"+o+"'] = "+n.toString()+";",r.contentDocument.head.appendChild(c);const i=r.contentWindow["ctor-"+o];if(delete r.contentWindow["ctor-"+o],"function"!=typeof i)throw new Error("Sandbox failed to extract function");e=!1;const u=r.contentWindow,s=u.__EYES__APPLITOOLS__=u.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=u.JSON.stringify.bind(u.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(u.Array.isArray(t)){const n=new u.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 u.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=u.JSON.stringify.bind(u.JSON));const f=new u.Array(t.length);for(let d=0;d<t.length;d++)f[d]=l(t[d]);return i(document,window,u)(...f)}catch(_){try{return n(document,window,window)(...t)}catch(h){throw e?h:_}}};
3
3
  //# sourceMappingURL=pollResultCjs.js.map
@@ -1,3 +1,3 @@
1
- /* @applitools/dom-snapshot@4.18.3 */
1
+ /* @applitools/dom-snapshot@4.18.5 */
2
2
  function t(...t){const n=function(t,n,e){return function(){var t={};function r(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 o=function(t,n){const e=[];let o=0;for(let c=0;c<t.length;++c){const i=r(t,c);let u=0;i>0&&(u=i<128?1:i<2048?2:i<65536?3:i<2097152?4:i<67108864?5:6),o+u>n?(e.push(c),o=u):o+=u}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(o),i="WIP",u="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR";var l=function(t,e,r={}){const o=function(t,{chunkByteLength:e=0}={}){var r;if(t){if(t.value){if(e){if(!t.chunks)try{const o=void 0!==n?null===(r=n.__EYES__APPLITOOLS__)||void 0===r?void 0:r._stringify:void 0,i=(null!=o?o:JSON.stringify)(t.value);t.chunks=(0,c.default)(i,e),t.chunks.length>0&&(t.from=0,t.value=i)}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:u,value:t.value}}return t.error?{status:a,error:t.error}:{status:i}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],r);return(o.status===u||o.status===a||o.status===s&&o.done)&&delete t[e],o};const f=l;var d=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=m=t.poll=t.pollify=t.chunkify=void 0;const _=d(o);t.chunkify=_.default;const h=d((function(t,n,e){return r=>function(...o){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...o))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),f(n,e,r)}}));t.pollify=h.default;const y=d(l);var m=t.poll=y.default;const p=d((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 r=new URL(t,n).href;return e?r:decodeURI(r)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=p.default;const w=d((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=w.default;const S=d((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=S.default,function(t){var n;const r=e.__EYES__APPLITOOLS__,o=null!==(n=null==r?void 0:r._stringify)&&void 0!==n?n:JSON.stringify;try{return o(m(r,"domSnapshotResult",t))}catch(t){return o({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 r=window.__applitools_sandbox;r||(r=document.createElement("iframe"),r.setAttribute("data-applitools-sandbox",""),r.setAttribute("data-applitools-skip",""),document.head.appendChild(r),window.__applitools_sandbox=r);const o=Math.floor(4294967296*Math.random()),c=r.contentDocument.createElement("script");c.textContent="window['ctor-"+o+"'] = "+n.toString()+";",r.contentDocument.head.appendChild(c);const i=r.contentWindow["ctor-"+o];if(delete r.contentWindow["ctor-"+o],"function"!=typeof i)throw new Error("Sandbox failed to extract function");e=!1;const u=r.contentWindow,s=u.__EYES__APPLITOOLS__=u.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=u.JSON.stringify.bind(u.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(u.Array.isArray(t)){const n=new u.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 u.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=u.JSON.stringify.bind(u.JSON));const f=new u.Array(t.length);for(let d=0;d<t.length;d++)f[d]=l(t[d]);return i(document,window,u)(...f)}catch(_){try{return n(document,window,window)(...t)}catch(h){throw e?h:_}}}export{t as default};
3
3
  //# sourceMappingURL=pollResultEs.js.map