@mablhq/mabl-cli 1.53.4 → 1.54.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.
@@ -1 +1 @@
1
- window.popupDismissal=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"elementsByHigherZIndex",(function(){return i})),n.d(e,"fireDoubleClickEvent",(function(){return d})),n.d(e,"fireClickEvent",(function(){return f})),n.d(e,"fireRightClickEvent",(function(){return m})),n.d(e,"getOverlappingElements",(function(){return h})),n.d(e,"getAllElementsAbove",(function(){return p})),n.d(e,"detectAndDismissPopupCandidates",(function(){return b})),n.d(e,"elementsInFrontCount",(function(){return v}));const r=["close","dismiss","exit","not at this time","no thanks","no, thanks","i, agree","i agree"],o=[{attributeName:"className",matchFunction:c},{attributeName:"name",matchFunction:c},{attributeName:"id",matchFunction:c},{attributeName:"href",matchFunction:c},{attributeName:"innerText",matchFunction:function(t,e){const n=new RegExp(`\\b${e}\\b`);return!!t.toLowerCase().match(n)}}];function i(t){return Array.from(document.querySelectorAll("body *")).reduce((e,n)=>{const r=parseFloat(globalThis.getComputedStyle(n).zIndex);return!Number.isNaN(r)&&r>=t&&(e.has(r)?e.get(r).push(n):e.set(r,[n])),e},new Map)}function u(t){const e=t=>void 0===t||"html"===t.tagName.toLowerCase();let n=t;for(;!e(n);){const t=globalThis.getComputedStyle(n).zIndex;if(t&&"auto"!==t)return parseInt(t,10);n=(null==n?void 0:n.parentElement)?n.parentElement:void 0}return 0}function s(t){let e=[t];return Array.from(t.children).forEach(t=>{e=e.concat(s(t))}),e}function c(t,e){return t.toLowerCase().includes(e)}function a(t){const e=[];return t.forEach(t=>{const n=[],i=[];t.elements.forEach(t=>{var e;(null==t?void 0:t.offsetParent)&&(["BUTTON","A","DIV"].includes(null===(e=t.tagName)||void 0===e?void 0:e.toUpperCase())&&function(t){let e=0;return o.forEach(n=>{r.forEach(r=>{t.getAttribute(n.attributeName)&&n.matchFunction(t.getAttribute(n.attributeName),r)&&(e+=1)})}),e}(t)&&!i.includes(t)?i.push(t):function(t){if(t.getBoundingClientRect){const e=t.getBoundingClientRect(),n=e.width/globalThis.innerWidth,r=e.height/globalThis.innerHeight;return n>.95&&r>.95}return!1}(t)&&n.push(t))}),e.push({zIndex:t.zIndex,actionableElements:i,domCovering:n,dismissedStatus:!1,elementsInFront:0})}),e}function l(t,e,n=!1){const r=t.getBoundingClientRect(),o=r.height/2,i=n?1:r.width/2,u="contextmenu"===e?2:0,s=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:r.left+i,screenY:r.top+o,clientX:t.clientLeft+i,clientY:t.clientTop+o,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:u,relatedTarget:void 0});t.dispatchEvent(s)}function d(t){f(t,!1),f(t,!1),l(t,"dblclick")}function f(t,e=!1){l(t,"click",e)}function m(t,e=!1){l(t,"contextmenu",e)}function h(t){const{x:e,y:n}={x:(r=t.getBoundingClientRect()).left+r.width/2,y:r.top+r.height/2};var r;const o=document.elementsFromPoint(e,n),i=o.findIndex(e=>e===t);return i?o.slice(0,i):[]}function g(t){return new Promise(e=>setTimeout(e,t))}function p(t,e){if(0===e.length)return[];const n=u(t),r=Math.min(...null==e?void 0:e.map(t=>u(t)));if(r<=n)return[];const o=i(r),c=Array.from(o).map(([t,e])=>({zIndex:t,elements:e.flatMap(s).reverse()}));return c.sort((t,e)=>e.zIndex-t.zIndex),c}async function b(t){try{let e=h(t);const n=e.length;if(0===n)return{elementsInFront:0,dismissedStatus:!1};const r=async function(e,r){for(const o of e)if(f(o,r),await g(750),h(t).length<n)return!0;return!1};let o=p(t,e);const i=a(o);for(const t of i){let e=await r(t.domCovering,!0);if(e||(e=await r(t.actionableElements,!1)),e)return{dismissedStatus:!0,elementsInFront:0}}e=h(t),o=p(t,e);const u=a(o),s=u.length?u[0]:{zIndex:0,elementsInFront:0,dismissedStatus:!1,domCovering:[],actionableElements:[]};return s.elementsInFront=e.length,s.dismissedStatus=!1,{dismissedStatus:s.dismissedStatus,elementsInFront:s.elementsInFront}}catch(t){return{elementsInFront:0,dismissedStatus:!1,error:t.toString()}}}function v(t){return h(t).length}}]);
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{detectAndDismissPopupCandidates:()=>y,elementsByHigherZIndex:()=>a,elementsInFrontCount:()=>I,fireClickEvent:()=>h,fireDoubleClickEvent:()=>f,fireRightClickEvent:()=>g,getAllElementsAbove:()=>v,getOverlappingElements:()=>b});const n=750,i="auto",o=.95,r=["close","dismiss","exit","not at this time","no thanks","no, thanks","i, agree","i agree"],s=[{attributeName:"className",matchFunction:u},{attributeName:"name",matchFunction:u},{attributeName:"id",matchFunction:u},{attributeName:"href",matchFunction:u},{attributeName:"innerText",matchFunction:function(e,t){const n=new RegExp(`\\b${t}\\b`);return!!e.toLowerCase().match(n)}}];function a(e){return Array.from(document.querySelectorAll("body *")).reduce(((t,n)=>{const i=parseFloat(globalThis.getComputedStyle(n).zIndex);return!Number.isNaN(i)&&i>=e&&(t.has(i)?t.get(i).push(n):t.set(i,[n])),t}),new Map)}function c(e){const t=e=>void 0===e||"html"===e.tagName.toLowerCase();let n=e;for(;!t(n);){const e=globalThis.getComputedStyle(n).zIndex;if(e&&e!==i)return parseInt(e,10);n=(null==n?void 0:n.parentElement)?n.parentElement:void 0}return 0}function l(e){let t=[e];return Array.from(e.children).forEach((e=>{t=t.concat(l(e))})),t}function u(e,t){return e.toLowerCase().includes(t)}function d(e){const t=[];return e.forEach((e=>{const n=[],i=[];e.elements.forEach((e=>{var t;(null==e?void 0:e.offsetParent)&&(["BUTTON","A","DIV"].includes(null===(t=e.tagName)||void 0===t?void 0:t.toUpperCase())&&function(e){let t=0;return s.forEach((n=>{r.forEach((i=>{e.getAttribute(n.attributeName)&&n.matchFunction(e.getAttribute(n.attributeName),i)&&(t+=1)}))})),t}(e)&&!i.includes(e)?i.push(e):function(e){if(e.getBoundingClientRect){const t=e.getBoundingClientRect(),n=t.width/globalThis.innerWidth,i=t.height/globalThis.innerHeight;return n>o&&i>o}return!1}(e)&&n.push(e))})),t.push({zIndex:e.zIndex,actionableElements:i,domCovering:n,dismissedStatus:!1,elementsInFront:0})})),t}function m(e,t,n=!1){const i=e.getBoundingClientRect(),o=i.height/2,r=n?1:i.width/2,s="contextmenu"===t?2:0,a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:i.left+r,screenY:i.top+o,clientX:e.clientLeft+r,clientY:e.clientTop+o,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:s,relatedTarget:void 0});e.dispatchEvent(a)}function f(e){h(e,!1),h(e,!1),m(e,"dblclick")}function h(e,t=!1){m(e,"click",t)}function g(e,t=!1){m(e,"contextmenu",t)}function b(e){const{x:t,y:n}={x:(i=e.getBoundingClientRect()).left+i.width/2,y:i.top+i.height/2};var i;const o=document.elementsFromPoint(t,n),r=o.findIndex((t=>t===e));return r?o.slice(0,r):[]}function p(e){return new Promise((t=>setTimeout(t,e)))}function v(e,t){if(0===t.length)return[];const n=c(e),i=Math.min(...null==t?void 0:t.map((e=>c(e))));if(i<=n)return[];const o=a(i),r=Array.from(o).map((([e,t])=>({zIndex:e,elements:t.flatMap(l).reverse()})));return r.sort(((e,t)=>t.zIndex-e.zIndex)),r}async function y(e){try{let t=b(e);const i=t.length;if(0===i)return{elementsInFront:0,dismissedStatus:!1};const o=async function(t,o){for(const r of t)if(h(r,o),await p(n),b(e).length<i)return!0;return!1};let r=v(e,t);const s=d(r);for(const e of s){let t=await o(e.domCovering,!0);if(t||(t=await o(e.actionableElements,!1)),t)return{dismissedStatus:!0,elementsInFront:0}}t=b(e),r=v(e,t);const a=d(r),c=a.length?a[0]:{zIndex:0,elementsInFront:0,dismissedStatus:!1,domCovering:[],actionableElements:[]};return c.elementsInFront=t.length,c.dismissedStatus=!1,{dismissedStatus:c.dismissedStatus,elementsInFront:c.elementsInFront}}catch(e){return{elementsInFront:0,dismissedStatus:!1,error:e.toString()}}}function I(e){return b(e).length}window.popupDismissal=t})();