@necto-react/helpers 2.6.5 → 2.6.7

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
- "use strict";(()=>{var me=new Set(["id"]);function Ae(e,t){let{allowLabelableProps:n=!1,allowLinkProps:o=!1,extraAllowedProps:l,allowedLabelableProps:v=new Set,allowedLinkProps:R=new Set}=t,T={};for(let r in e)Object.hasOwn(e,r)&&(me.has(r)||n&&v.has(r)||o&&R.has(r)||l?.has(r)||new RegExp(/^(data-.*)$/).test(r))&&(T[r]=e[r]);return T}function ve(e){return typeof window>"u"||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}var _=()=>ve(/Android/i);function Je(e){return e.mozInputSource===0&&e.isTrusted?!0:_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ue={},m=Object.create(null),d=e=>globalThis.process?.env||Ue.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?m:globalThis),i=new Proxy(m,{get(e,t){return d()[t]??m[t]},has(e,t){let n=d();return t in n||t in m},set(e,t,n){let o=d(!0);return o[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=d(!0);return delete n[t],!0},ownKeys(){let e=d(!0);return Object.keys(e)}}),O=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",Re=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Ie(){if(globalThis.process?.env)for(let e of Re){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var w=Ie(),tt=w.name;function s(e){return e?e!=="false":!1}var I=globalThis.process?.platform||"",y=s(i.CI)||w.ci!==!1,h=s(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var nt=s(i.DEBUG),Se=O==="test"||s(i.TEST),P=O==="production";var ot=s(i.MINIMAL)||y||Se||!h,ge=/^win/i.test(I),rt=/^linux/i.test(I),at=/^darwin/i.test(I),it=!s(i.NO_COLOR)&&(s(i.FORCE_COLOR)||(h||ge)&&i.TERM!=="dumb"||y),Le=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,st=Number(Le?.split(".")[0])||null,be=globalThis.process||Object.create(null),C={versions:{}},lt=new Proxy(be,{get(e,t){if(t==="env")return i;if(t in e)return e[t];if(t in C)return C[t]}}),_e=globalThis.process?.release?.name==="node",Ce=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Oe=!!globalThis.Deno,we=!!globalThis.fastly,ye=!!globalThis.Netlify,he=!!globalThis.EdgeRuntime,Pe=globalThis.navigator?.userAgent==="Cloudflare-Workers",De=[[ye,"netlify"],[he,"edge-light"],[Pe,"workerd"],[we,"fastly"],[Oe,"deno"],[Ce,"bun"],[_e,"node"]];function Ne(){let e=De.find(t=>t[0]);if(e)return{name:e[1]}}var Me=Ne(),ct=Me?.name||"";function Be(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&P?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&n.stopPropagation()}}function Tt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var He=Object.defineProperty,A=(e,t)=>{for(var n in t)He(e,n,{get:t[n],enumerable:!0})},c={};A(c,{ARIA_ATTRIBUTES:()=>D,HTML_TAGS:()=>M,PRIMITIVE_TAGS:()=>N,default:()=>xe});var D=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],M=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],xe={ARIA_ATTRIBUTES:D,PRIMITIVE_TAGS:N,HTML_TAGS:M},Ke={};A(Ke,{NUMERIC_DIGITS:()=>U,default:()=>Fe});var U=["1","2","3","4","5","6","7","8","9","0"],Fe={NUMERIC_DIGITS:U},Ge={};A(Ge,{AMPERSAND:()=>Y,ASTERISK:()=>Q,BACKSLASH:()=>re,BOM:()=>B,CARRIAGE_RETURN:()=>K,COLON:()=>q,COMMA:()=>Z,COMMERCIAL_AT:()=>ne,DOT:()=>X,DOUBLE_QUOTE:()=>V,EXCLAMATION:()=>G,GRAVE_ACCENT:()=>ie,GREATER_THAN:()=>ee,LEFT_CURLY_BRACKET:()=>se,LEFT_SQUARE_BRACKET:()=>oe,LINE_FEED:()=>x,MINUS:()=>$,PERCENT:()=>W,PLUS:()=>z,QUESTION:()=>te,RIGHT_CURLY_BRACKET:()=>ce,RIGHT_SQUARE_BRACKET:()=>ae,SHARP:()=>k,SINGLE_QUOTE:()=>j,SMALLER_THAN:()=>J,SPACE:()=>F,TAB:()=>H,VERTICAL_LINE:()=>le,default:()=>Ve});var B=65279,H=9,x=10,K=13,F=32,G=33,V=34,k=35,W=37,Y=38,j=39,Q=42,z=43,Z=44,$=45,X=46,q=58,J=60,ee=62,te=63,ne=64,oe=91,re=92,ae=93,ie=96,se=123,le=124,ce=125,Ve={BOM:B,TAB:H,LINE_FEED:x,CARRIAGE_RETURN:K,SPACE:F,EXCLAMATION:G,DOUBLE_QUOTE:V,SHARP:k,PERCENT:W,AMPERSAND:Y,SINGLE_QUOTE:j,ASTERISK:Q,PLUS:z,COMMA:Z,MINUS:$,DOT:X,COLON:q,SMALLER_THAN:J,GREATER_THAN:ee,QUESTION:te,COMMERCIAL_AT:ne,LEFT_SQUARE_BRACKET:oe,BACKSLASH:re,RIGHT_SQUARE_BRACKET:ae,GRAVE_ACCENT:ie,LEFT_CURLY_BRACKET:se,VERTICAL_LINE:le,RIGHT_CURLY_BRACKET:ce},ke={};A(ke,{CAPITALIZED:()=>ue,LOWERCASE:()=>de,VOWELS:()=>Ee,default:()=>We});var ue=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],de=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Ee=["A","E","I","O","U","a","e","i","o","u"],We={CAPITALIZED:ue,LOWERCASE:de,VOWELS:Ee};function L(e){return e?.ownerDocument??document}function fe(e){return e&&"window"in e&&e.window===e?e:L(e).defaultView||window}var E=new Map,pe=new Set;function Ye(e){if(!("propertyName"in e)||!e.target)return;let t=E.get(e.target);t||(t=new Set,E.set(e.target,t),e.target.addEventListener("transitioncancel",b,{once:!0})),t.add(e.propertyName)}function b(e){if(!("propertyName"in e)||!e.target)return;let t=E.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",b),E.delete(e.target)),E.size===0)){for(let n of pe)n();pe.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",Ye),t.addEventListener("transitionend",b))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}var a,S=()=>c.HTML_TAGS.reduce((e,t)=>{var n;return e[n=t,n.charAt(0).toUpperCase()+n.slice(1)]=t,e},{}),It=new Proxy({},{get:(e,t,n)=>(a||(a=S()),Reflect.get(a,t,n)),ownKeys:()=>(a||(a=S()),Reflect.ownKeys(a)),getOwnPropertyDescriptor:(e,t)=>(a||(a=S()),Object.getOwnPropertyDescriptor(a,t))});var p,g,Te,f=()=>{p||(p=c.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(n=>{let o=n.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),g=c.ARIA_ATTRIBUTES,Te=new Set(g))},Lt=new Proxy({},{get:(e,t,n)=>(f(),Reflect.get(p,t,n)),ownKeys:()=>(f(),Reflect.ownKeys(p)),getOwnPropertyDescriptor:(e,t)=>(f(),Object.getOwnPropertyDescriptor(p,t))}),bt=new Proxy([],{get:(e,t,n)=>(f(),Reflect.get(g,t,n))}),_t=new Proxy(new Set,{get:(e,t,n)=>(f(),Reflect.get(Te,t,n))});var je=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Qe={Tab:!0,Escape:!0};function wt(e,t,n){if(!n||!("target"in n)||!n.target)return!1;let o=L(n.target),l=fe(n.target),v=typeof window<"u"?l.HTMLInputElement:HTMLInputElement,R=typeof window<"u"?l.HTMLTextAreaElement:HTMLTextAreaElement,T=typeof window<"u"?l.HTMLElement:HTMLElement,r=typeof window<"u"?l.KeyboardEvent:KeyboardEvent,u=o.activeElement;return e=e||u instanceof v&&!je.has(u.type)||u instanceof R||u instanceof T&&u.isContentEditable,!(e&&t==="keyboard"&&n instanceof r&&!Qe[n.key])}})();
1
+ "use strict";(()=>{var me=new Set(["id"]);function ve(e,t){let{allowLabelableProps:n=!1,allowLinkProps:o=!1,extraAllowedProps:l,allowedLabelableProps:A=new Set,allowedLinkProps:R=new Set}=t,T={};for(let r in e)Object.hasOwn(e,r)&&(me.has(r)||n&&A.has(r)||o&&R.has(r)||l?.has(r)||new RegExp(/^(data-.*)$/).test(r))&&(T[r]=e[r]);return T}function Ae(e){return typeof window>"u"||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}var _=()=>Ae(/Android/i);function Je(e){return e.mozInputSource===0&&e.isTrusted?!0:_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ue={},m=Object.create(null),d=e=>globalThis.process?.env||Ue.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?m:globalThis),i=new Proxy(m,{get(e,t){return d()[t]??m[t]},has(e,t){let n=d();return t in n||t in m},set(e,t,n){let o=d(!0);return o[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=d(!0);return delete n[t],!0},ownKeys(){let e=d(!0);return Object.keys(e)}}),O=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",Re=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function Ie(){if(globalThis.process?.env)for(let e of Re){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var w=Ie(),tt=w.name;function s(e){return e?e!=="false":!1}var I=globalThis.process?.platform||"",y=s(i.CI)||w.ci!==!1,h=s(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var nt=s(i.DEBUG),Se=O==="test"||s(i.TEST),P=O==="production";var ot=s(i.MINIMAL)||y||Se||!h,ge=/^win/i.test(I),rt=/^linux/i.test(I),at=/^darwin/i.test(I),it=!s(i.NO_COLOR)&&(s(i.FORCE_COLOR)||(h||ge)&&i.TERM!=="dumb"||y),Le=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,st=Number(Le?.split(".")[0])||null,be=globalThis.process||Object.create(null),C={versions:{}},lt=new Proxy(be,{get(e,t){if(t==="env")return i;if(t in e)return e[t];if(t in C)return C[t]}}),_e=globalThis.process?.release?.name==="node",Ce=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Oe=!!globalThis.Deno,we=!!globalThis.fastly,ye=!!globalThis.Netlify,he=!!globalThis.EdgeRuntime,Pe=globalThis.navigator?.userAgent==="Cloudflare-Workers",De=[[ye,"netlify"],[he,"edge-light"],[Pe,"workerd"],[we,"fastly"],[Oe,"deno"],[Ce,"bun"],[_e,"node"]];function Ne(){let e=De.find(t=>t[0]);if(e)return{name:e[1]}}var Me=Ne(),ct=Me?.name||"";function Be(e){if(!e)return;let t=!0;return n=>{let o={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&P?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&n.stopPropagation()}}function Tt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var He=Object.defineProperty,v=(e,t)=>{for(var n in t)He(e,n,{get:t[n],enumerable:!0})},c={};v(c,{ARIA_ATTRIBUTES:()=>D,HTML_TAGS:()=>M,PRIMITIVE_TAGS:()=>N,default:()=>xe});var D=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],M=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],xe={ARIA_ATTRIBUTES:D,PRIMITIVE_TAGS:N,HTML_TAGS:M},Ke={};v(Ke,{NUMERIC_DIGITS:()=>U,default:()=>Fe});var U=["1","2","3","4","5","6","7","8","9","0"],Fe={NUMERIC_DIGITS:U},Ge={};v(Ge,{AMPERSAND:()=>Y,ASTERISK:()=>Q,BACKSLASH:()=>re,BOM:()=>B,CARRIAGE_RETURN:()=>K,COLON:()=>q,COMMA:()=>Z,COMMERCIAL_AT:()=>ne,DOT:()=>X,DOUBLE_QUOTE:()=>V,EXCLAMATION:()=>G,GRAVE_ACCENT:()=>ie,GREATER_THAN:()=>ee,LEFT_CURLY_BRACKET:()=>se,LEFT_SQUARE_BRACKET:()=>oe,LINE_FEED:()=>x,MINUS:()=>$,PERCENT:()=>W,PLUS:()=>z,QUESTION:()=>te,RIGHT_CURLY_BRACKET:()=>ce,RIGHT_SQUARE_BRACKET:()=>ae,SHARP:()=>k,SINGLE_QUOTE:()=>j,SMALLER_THAN:()=>J,SPACE:()=>F,TAB:()=>H,VERTICAL_LINE:()=>le,default:()=>Ve});var B=65279,H=9,x=10,K=13,F=32,G=33,V=34,k=35,W=37,Y=38,j=39,Q=42,z=43,Z=44,$=45,X=46,q=58,J=60,ee=62,te=63,ne=64,oe=91,re=92,ae=93,ie=96,se=123,le=124,ce=125,Ve={BOM:B,TAB:H,LINE_FEED:x,CARRIAGE_RETURN:K,SPACE:F,EXCLAMATION:G,DOUBLE_QUOTE:V,SHARP:k,PERCENT:W,AMPERSAND:Y,SINGLE_QUOTE:j,ASTERISK:Q,PLUS:z,COMMA:Z,MINUS:$,DOT:X,COLON:q,SMALLER_THAN:J,GREATER_THAN:ee,QUESTION:te,COMMERCIAL_AT:ne,LEFT_SQUARE_BRACKET:oe,BACKSLASH:re,RIGHT_SQUARE_BRACKET:ae,GRAVE_ACCENT:ie,LEFT_CURLY_BRACKET:se,VERTICAL_LINE:le,RIGHT_CURLY_BRACKET:ce},ke={};v(ke,{CAPITALIZED:()=>ue,LOWERCASE:()=>de,VOWELS:()=>Ee,default:()=>We});var ue=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],de=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Ee=["A","E","I","O","U","a","e","i","o","u"],We={CAPITALIZED:ue,LOWERCASE:de,VOWELS:Ee};function L(e){return e?.ownerDocument??document}function fe(e){return e&&"window"in e&&e.window===e?e:L(e).defaultView||window}var E=new Map,pe=new Set;function Ye(e){if(!("propertyName"in e)||!e.target)return;let t=E.get(e.target);t||(t=new Set,E.set(e.target,t),e.target.addEventListener("transitioncancel",b,{once:!0})),t.add(e.propertyName)}function b(e){if(!("propertyName"in e)||!e.target)return;let t=E.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",b),E.delete(e.target)),E.size===0)){for(let n of pe)n();pe.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",Ye),t.addEventListener("transitionend",b))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}var a,S=()=>c.HTML_TAGS.reduce((e,t)=>{var n;return e[n=t,n.charAt(0).toUpperCase()+n.slice(1)]=t,e},{}),It=new Proxy({},{get:(e,t,n)=>(a||(a=S()),Reflect.get(a,t,n)),ownKeys:()=>(a||(a=S()),Reflect.ownKeys(a)),getOwnPropertyDescriptor:(e,t)=>(a||(a=S()),Object.getOwnPropertyDescriptor(a,t))});var p,g,Te,f=()=>{p||(p=c.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(n=>{let o=n.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),g=c.ARIA_ATTRIBUTES,Te=new Set(g))},Lt=new Proxy({},{get:(e,t,n)=>(f(),Reflect.get(p,t,n)),ownKeys:()=>(f(),Reflect.ownKeys(p)),getOwnPropertyDescriptor:(e,t)=>(f(),Object.getOwnPropertyDescriptor(p,t))}),bt=new Proxy([],{get:(e,t,n)=>(f(),Reflect.get(g,t,n))}),_t=new Proxy(new Set,{get:(e,t,n)=>(f(),Reflect.get(Te,t,n))});var je=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Qe={Tab:!0,Escape:!0};function wt(e,t,n){if(!n||!("target"in n)||!n.target)return!1;let o=L(n.target),l=fe(n.target),A=typeof window<"u"?l.HTMLInputElement:HTMLInputElement,R=typeof window<"u"?l.HTMLTextAreaElement:HTMLTextAreaElement,T=typeof window<"u"?l.HTMLElement:HTMLElement,r=typeof window<"u"?l.KeyboardEvent:KeyboardEvent,u=o.activeElement;return e=e||u instanceof A&&!je.has(u.type)||u instanceof R||u instanceof T&&u.isContentEditable,!(e&&t==="keyboard"&&n instanceof r&&!Qe[n.key])}})();
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@necto-react/helpers",
3
- "version": "2.6.5",
3
+ "version": "2.6.7",
4
4
  "description": "Necto's library for providing global helpers React applications",
5
5
  "type": "module",
6
+ "scripts": {
7
+ "test": "vitest",
8
+ "build": "tsup ./src/index.ts --minify --format esm,cjs,iife --dts"
9
+ },
6
10
  "files": [
7
11
  "dist",
8
12
  "README.md"
@@ -32,13 +36,9 @@
32
36
  "react-dom": "^19.1.0"
33
37
  },
34
38
  "dependencies": {
35
- "std-env": "^3.9.0",
36
- "@necto-react/types": "2.4.1",
37
- "@necto/platform": "1.5.1",
38
- "@necto/dom": "1.6.5"
39
- },
40
- "scripts": {
41
- "test": "vitest",
42
- "build": "tsup ./src/index.ts --minify --format esm,cjs,iife --dts"
39
+ "@necto-react/types": "workspace:*",
40
+ "@necto/dom": "workspace:*",
41
+ "@necto/platform": "workspace:*",
42
+ "std-env": "^3.9.0"
43
43
  }
44
- }
44
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Corinvo, LLC. and affiliates. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.