@applitools/nlp-web-runner 5.16.0 → 5.17.0-dev.240c8ac59
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/dist/_inline/_chunks/rolldown-runtime-D7D4PA-g.js +1 -1
- package/dist/_inline/_externals/nlp-runner.externals.json +5 -5
- package/dist/_inline/assets/{extract-ax-tree-DbK-5fPe.js → extract-ax-tree-BoQlk00-.js} +1 -1
- package/dist/_inline/assets/index-DDs3RDNV.html +10 -0
- package/dist/_inline/assets/mock-FmX1aJGy.html +36 -0
- package/dist/_inline/assets/{recorder-DNoRX6KO.js → recorder-YUoRBu4F.js} +1 -1
- package/dist/_inline/assets/{session-replay-CIK-O8Jw.js → session-replay-BbzxeL6s.js} +3 -3
- package/dist/_inline/nlp-runner/web/index.d.ts +4170 -1940
- package/dist/_inline/nlp-runner/web/index.js +1 -1
- package/package.json +7 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
__NLP_DOCTYPE__
|
|
2
|
+
<html data-parcel-snapshot="true">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Snapshot</title>
|
|
6
|
+
<meta name="nlp-cdt" content="__NLP_CDT__">
|
|
7
|
+
<script type="module" crossorigin>(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=`nlp-cdt`;function t(){let t=document.querySelector(`meta[name="${e}"]`)?.getAttribute(`content`);if(!t||t===`__NLP_CDT__`)throw Error(`CDT placeholder was not substituted; viewer was served outside the runner mock layer`);let n=Uint8Array.from(atob(t),e=>e.charCodeAt(0)),r=new TextDecoder().decode(n);return JSON.parse(r)}var n=`http://www.w3.org/2000/svg`,r=`http://www.w3.org/1998/Math/MathML`;function i(e,t=null){if(e.type===`text`)return document.createTextNode(e.value);if(e.type===`doctype`)return null;if(e.type===`fragment`){let n=document.createDocumentFragment();for(let r of e.children){let e=i(r,t);e&&n.appendChild(e)}return n}if(e.type===`element`){let o=e.tag.toLowerCase(),s=o===`svg`?n:o===`math`?r:t,c=s?document.createElementNS(s,e.tag):document.createElement(e.tag);for(let{name:t,value:n}of e.attributes)try{c.setAttribute(t,n)}catch{}let l=s===null&&(e.tag===`TEMPLATE`||e.tag===`template`)?c.content:c,u=o===`foreignobject`?null:s;for(let t of e.children){let e=i(t,u);e&&l.appendChild(e)}if(e.shadowRoot){let t=c.attachShadow({mode:`open`});for(let n of e.shadowRoot.children){let e=i(n,null);e&&t.appendChild(e)}a(t,e.shadowRoot.adoptedStyleSheets)}return c}return null}function a(e,t){!t||t.length===0||(e.adoptedStyleSheets=t.map(e=>{let t=new CSSStyleSheet;return t.replaceSync(e),t}))}function o(){let e=t();if(e.type!==`document`)return;let n;for(let t of e.children)if(t.type===`element`){n=t;break}if(n){let e=i(n);e&&document.documentElement&&document.documentElement.replaceWith(e)}a(document,e.adoptedStyleSheets),l(),d()}var s=`parcel-synthetic-resource-blob-`,c=[`src`,`data`,`poster`];async function l(){let e=c.map(e=>`[${e}^="${s}"]`).join(`, `),t=document.querySelectorAll(e),n=[];for(let e of t)for(let t of c){let r=e.getAttribute(t);r&&r.startsWith(s)&&n.push(u(e,t,r))}await Promise.all(n)}async function u(e,t,n){try{let r=await fetch(n);if(!r.ok)return;let i=await r.blob();e.setAttribute(t,URL.createObjectURL(i))}catch{}}async function d(){let e=document.querySelectorAll(`canvas[data-parcel-canvas-source]`);await Promise.all(Array.from(e,f))}async function f(e){let t=e.getAttribute(`data-parcel-canvas-source`);if(t)try{let n=new Image;await new Promise((e,r)=>{n.onload=()=>e(),n.onerror=()=>r(Error(`image load failed`)),n.src=t});let r=e.getContext(`2d`);if(!r)return;r.drawImage(n,0,0,e.width,e.height)}catch{}}o();</script>
|
|
8
|
+
</head>
|
|
9
|
+
<body></body>
|
|
10
|
+
</html>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Loading __PARCEL_TARGET_URL__</title>
|
|
7
|
+
<link rel="icon" href="__PARCEL_TARGET_ICON__">
|
|
8
|
+
<style>
|
|
9
|
+
body {display: grid; place-items: center; min-height: 100vh; margin: 0; background: #222; color: #00e5ff; font-family: monospace; text-align: center;}
|
|
10
|
+
.panel {display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; max-width: min(640px, 90vw);}
|
|
11
|
+
progress {width: 240px; height: 12px; appearance: none;}
|
|
12
|
+
progress::-webkit-progress-bar {background: #333; border-radius: 6px; border: 1px solid #444;}
|
|
13
|
+
progress::-webkit-progress-value {background: #00e5ff; border-radius: 6px; transition: width 0.3s;}
|
|
14
|
+
.redirect {position: fixed; bottom: 24px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; opacity: 0.75; font-size: 13px;}
|
|
15
|
+
.redirect[data-target-url=""] {display: none;}
|
|
16
|
+
.redirect img {width: 18px; height: 18px; flex-shrink: 0;}
|
|
17
|
+
.redirect img:not([src]), .redirect img[src=""] {display: none;}
|
|
18
|
+
.redirect .url {overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch;}
|
|
19
|
+
</style>
|
|
20
|
+
</head>
|
|
21
|
+
<body data-target-url="__PARCEL_TARGET_URL__">
|
|
22
|
+
<div class="panel">
|
|
23
|
+
<h1>Loading snapshot</h1>
|
|
24
|
+
<progress id="bar"></progress>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="redirect" data-target-url="__PARCEL_TARGET_URL__">
|
|
27
|
+
<span>You will be redirected to</span>
|
|
28
|
+
<img src="__PARCEL_TARGET_ICON__" alt="">
|
|
29
|
+
<span class="url">__PARCEL_TARGET_URL__</span>
|
|
30
|
+
</div>
|
|
31
|
+
<script>
|
|
32
|
+
const targetUrl = document.body.dataset.targetUrl
|
|
33
|
+
window.addEventListener('loading', (event) => bar.value = event.detail.progress)
|
|
34
|
+
</script>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|