@necto-react/helpers 2.6.11 → 2.6.12

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <a href="https://necto.dev">
3
3
  <img alt="Necto Logo" src="https://avatars.githubusercontent.com/u/158605331?s=100&v=4">
4
4
  <a>
5
-
5
+
6
6
  <h2>Necto - React Helpers Library</h2>
7
7
 
8
8
  <p>Necto's library for providing global helpers for React applications.</p>
@@ -13,9 +13,6 @@
13
13
  <a href="https://www.npmjs.com/package/@necto-react/helpers">
14
14
  <img alt="NPM version" src="https://img.shields.io/npm/v/@necto-react/helpers.svg?style=for-the-badge">
15
15
  </a>
16
- <a aria-label="License" href="https://jsr.io/@necto-react/helpers">
17
- <img src="https://jsr.io/badges/@necto-react/helpers?style=for-the-badge">
18
- </a>
19
16
  <a aria-label="License" href="https://github.com/nectoutil/NodeKit/blob/main/LICENSE">
20
17
  <img src="https://img.shields.io/badge/License-MIT-97CA25.svg?style=for-the-badge">
21
18
  </a>
@@ -1 +1 @@
1
- "use strict";(()=>{var Te=new Set(["id"]);function ve(e,t){let{allowLabelableProps:n=!1,allowLinkProps:o=!1,extraAllowedProps:s,allowedLabelableProps:A=new Set,allowedLinkProps:R=new Set}=t,m={};for(let r in e)Object.hasOwn(e,r)&&(Te.has(r)||n&&A.has(r)||o&&R.has(r)||s?.has(r)||new RegExp(/^(data-.*)$/).test(r))&&(m[r]=e[r]);return m}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 w=()=>Ae(/Android/i);function Je(e){return e.mozInputSource===0&&e.isTrusted?!0:w()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Ue={},T=Object.create(null),u=e=>globalThis.process?.env||Ue.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?T:globalThis),i=new Proxy(T,{get(e,t){return u()[t]??T[t]},has(e,t){let n=u();return t in n||t in T},set(e,t,n){let o=u(!0);return o[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=u(!0);return delete n[t],!0},ownKeys(){let e=u(!0);return Object.keys(e)}}),y=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 C=Ie(),tt=C.name;function l(e){return e?e!=="false":!1}var I=globalThis.process?.platform||"",O=l(i.CI)||C.ci!==!1,h=l(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var nt=l(i.DEBUG),Se=y==="test"||l(i.TEST),P=y==="production";var ot=l(i.MINIMAL)||O||Se||!h,ge=/^win/i.test(I),rt=/^linux/i.test(I),at=/^darwin/i.test(I),it=!l(i.NO_COLOR)&&(l(i.FORCE_COLOR)||(h||ge)&&i.TERM!=="dumb"||O),Le=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,st=Number(Le?.split(".")[0])||null,be=globalThis.process||Object.create(null),_={versions:{}},lt=new Proxy(be,{get(e,t){if(t==="env")return i;if(t in e)return e[t];if(t in _)return _[t]}}),we=globalThis.process?.release?.name==="node",_e=!!globalThis.Bun||!!globalThis.process?.versions?.bun,ye=!!globalThis.Deno,Ce=!!globalThis.fastly,Oe=!!globalThis.Netlify,he=!!globalThis.EdgeRuntime,Pe=globalThis.navigator?.userAgent==="Cloudflare-Workers",De=[[Oe,"netlify"],[he,"edge-light"],[Pe,"workerd"],[Ce,"fastly"],[ye,"deno"],[_e,"bun"],[we,"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 mt(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:()=>Ve});var U=["1","2","3","4","5","6","7","8","9","0"],Ve={NUMERIC_DIGITS:U},Fe={};v(Fe,{AMPERSAND:()=>Y,ASTERISK:()=>Q,BACKSLASH:()=>re,BOM:()=>B,CARRIAGE_RETURN:()=>K,COLON:()=>q,COMMA:()=>Z,COMMERCIAL_AT:()=>ne,DOT:()=>X,DOUBLE_QUOTE:()=>G,EXCLAMATION:()=>F,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:()=>V,TAB:()=>H,VERTICAL_LINE:()=>le,default:()=>Ge});var B=65279,H=9,x=10,K=13,V=32,F=33,G=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,Ge={BOM:B,TAB:H,LINE_FEED:x,CARRIAGE_RETURN:K,SPACE:V,EXCLAMATION:F,DOUBLE_QUOTE:G,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:()=>de,LOWERCASE:()=>ue,VOWELS:()=>Ee,default:()=>We});var 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"],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"],Ee=["A","E","I","O","U","a","e","i","o","u"],We={CAPITALIZED:de,LOWERCASE:ue,VOWELS:Ee};function L(e){return e?.ownerDocument?e.ownerDocument:typeof document<"u"?document:void 0}function pe(e){if(e&&"window"in e&&e.window===e)return e;let t=L(e);return t?.defaultView?t.defaultView:typeof window<"u"?window:void 0}var E=new Map,fe=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 fe)n();fe.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 f,g,me,p=()=>{f||(f=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,me=new Set(g))},Lt=new Proxy({},{get:(e,t,n)=>(p(),Reflect.get(f,t,n)),ownKeys:()=>(p(),Reflect.ownKeys(f)),getOwnPropertyDescriptor:(e,t)=>(p(),Object.getOwnPropertyDescriptor(f,t))}),bt=new Proxy([],{get:(e,t,n)=>(p(),Reflect.get(g,t,n))}),wt=new Proxy(new Set,{get:(e,t,n)=>(p(),Reflect.get(me,t,n))});var je=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Qe={Tab:!0,Escape:!0};function Ct(e,t,n){if(!n||!("target"in n)||!n.target)return!1;let o=L(n.target),s=pe(n.target);if(!o||!s)return!1;let A=typeof window<"u"?s.HTMLInputElement:HTMLInputElement,R=typeof window<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,m=typeof window<"u"?s.HTMLElement:HTMLElement,r=typeof window<"u"?s.KeyboardEvent:KeyboardEvent,d=o.activeElement;return e=e||d instanceof A&&!je.has(d.type)||d instanceof R||d instanceof m&&d.isContentEditable,!(e&&t==="keyboard"&&n instanceof r&&!Qe[n.key])}})();
1
+ "use strict";(()=>{var ce=new Set(["id"]);function Ee(e,t){let{allowLabelableProps:n=!1,allowLinkProps:u=!1,extraAllowedProps:a,allowedLabelableProps:A=new Set,allowedLinkProps:T=new Set}=t,d={};for(let o in e)Object.hasOwn(e,o)&&(ce.has(o)||n&&A.has(o)||u&&T.has(o)||a?.has(o)||new RegExp(/^(data-.*)$/).test(o))&&(d[o]=e[o]);return d}function de(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 I=()=>de(/Android/i);function Ze(e){return e.mozInputSource===0&&e.isTrusted?!0:I()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var _e={},p=Object.create(null),c=e=>globalThis.process?.env||_e.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?p:globalThis),r=new Proxy(p,{get(e,t){return c()[t]??p[t]},has(e,t){let n=c();return t in n||t in p},set(e,t,n){let u=c(!0);return u[t]=n,!0},deleteProperty(e,t){if(!t)return!1;let n=c(!0);return delete n[t],!0},ownKeys(){let e=c(!0);return Object.keys(e)}}),S=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",pe=[["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 fe(){if(globalThis.process?.env)for(let e of pe){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 D=fe(),Xe=D.name;function i(e){return e?e!=="false":!1}var m=globalThis.process?.platform||"",L=i(r.CI)||D.ci!==!1,g=i(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Je=i(r.DEBUG),Ae=S==="test"||i(r.TEST),O=S==="production";var qe=i(r.MINIMAL)||L||Ae||!g,Te=/^win/i.test(m),$e=/^linux/i.test(m),et=/^darwin/i.test(m),tt=!i(r.NO_COLOR)&&(i(r.FORCE_COLOR)||(g||Te)&&r.TERM!=="dumb"||L),me=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,nt=Number(me?.split(".")[0])||null,Ce=globalThis.process||Object.create(null),R={versions:{}},ut=new Proxy(Ce,{get(e,t){if(t==="env")return r;if(t in e)return e[t];if(t in R)return R[t]}}),ve=globalThis.process?.release?.name==="node",Ie=!!globalThis.Bun||!!globalThis.process?.versions?.bun,Re=!!globalThis.Deno,Se=!!globalThis.fastly,De=!!globalThis.Netlify,Le=!!globalThis.EdgeRuntime,ge=globalThis.navigator?.userAgent==="Cloudflare-Workers",Oe=[[De,"netlify"],[Le,"edge-light"],[ge,"workerd"],[Se,"fastly"],[Re,"deno"],[Ie,"bun"],[ve,"node"]];function he(){let e=Oe.find(t=>t[0]);if(e)return{name:e[1]}}var be=he(),ot=be?.name||"";function ye(e){if(!e)return;let t=!0;return n=>{let u={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&O?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(u),t&&n.stopPropagation()}}function ct(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var we=Object.defineProperty,f=(e,t)=>{for(var n in t)we(e,n,{get:t[n],enumerable:!0})},s={};f(s,{ARIA_ATTRIBUTES:()=>h,HTML_TAGS:()=>_,PRIMITIVE_TAGS:()=>b,default:()=>Be});var h=["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"],b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=["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"],Be={ARIA_ATTRIBUTES:h,PRIMITIVE_TAGS:b,HTML_TAGS:_},Pe={};f(Pe,{NUMERIC_DIGITS:()=>y,default:()=>Ne});var y=["1","2","3","4","5","6","7","8","9","0"],Ne={NUMERIC_DIGITS:y},Me={};f(Me,{AMPERSAND:()=>G,ASTERISK:()=>K,BACKSLASH:()=>$,BOM:()=>w,CARRIAGE_RETURN:()=>N,COLON:()=>z,COMMA:()=>V,COMMERCIAL_AT:()=>J,DOT:()=>j,DOUBLE_QUOTE:()=>F,EXCLAMATION:()=>U,GRAVE_ACCENT:()=>te,GREATER_THAN:()=>Q,LEFT_CURLY_BRACKET:()=>ne,LEFT_SQUARE_BRACKET:()=>q,LINE_FEED:()=>P,MINUS:()=>W,PERCENT:()=>x,PLUS:()=>Y,QUESTION:()=>X,RIGHT_CURLY_BRACKET:()=>oe,RIGHT_SQUARE_BRACKET:()=>ee,SHARP:()=>H,SINGLE_QUOTE:()=>k,SMALLER_THAN:()=>Z,SPACE:()=>M,TAB:()=>B,VERTICAL_LINE:()=>ue,default:()=>Ue});var w=65279,B=9,P=10,N=13,M=32,U=33,F=34,H=35,x=37,G=38,k=39,K=42,Y=43,V=44,W=45,j=46,z=58,Z=60,Q=62,X=63,J=64,q=91,$=92,ee=93,te=96,ne=123,ue=124,oe=125,Ue={BOM:w,TAB:B,LINE_FEED:P,CARRIAGE_RETURN:N,SPACE:M,EXCLAMATION:U,DOUBLE_QUOTE:F,SHARP:H,PERCENT:x,AMPERSAND:G,SINGLE_QUOTE:k,ASTERISK:K,PLUS:Y,COMMA:V,MINUS:W,DOT:j,COLON:z,SMALLER_THAN:Z,GREATER_THAN:Q,QUESTION:X,COMMERCIAL_AT:J,LEFT_SQUARE_BRACKET:q,BACKSLASH:$,RIGHT_SQUARE_BRACKET:ee,GRAVE_ACCENT:te,LEFT_CURLY_BRACKET:ne,VERTICAL_LINE:ue,RIGHT_CURLY_BRACKET:oe},Fe={};f(Fe,{CAPITALIZED:()=>re,LOWERCASE:()=>ae,VOWELS:()=>ie,default:()=>He});var re=["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"],ae=["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"],ie=["A","E","I","O","U","a","e","i","o","u"],He={CAPITALIZED:re,LOWERCASE:ae,VOWELS:ie};function C(e){return e?.ownerDocument?e.ownerDocument:typeof document<"u"?document:null}function le(e){if(e&&"window"in e&&e.window===e)return e;let t=C(e);return t?.defaultView?t.defaultView:typeof window<"u"?window:null}var E=new Map,se=new Set;function xe(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",v,{once:!0})),t.add(e.propertyName)}function v(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",v),E.delete(e.target)),E.size===0)){for(let n of se)n();se.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",xe),t.addEventListener("transitionend",v))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}var At=s.HTML_TAGS.reduce((e,t)=>{var n;return e[n=t,n.charAt(0).toUpperCase()+n.slice(1)]=t,e},{});var Ct=s.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(n=>{let u=n.replace("aria-","");return u.charAt(0).toUpperCase()+u.slice(1)})(t)]=t,e),{}),Ge=s.ARIA_ATTRIBUTES,vt=new Set(Ge);var ke=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ke={Tab:!0,Escape:!0};function St(e,t,n){if(!n||!("target"in n)||!n.target)return!1;let u=C(n.target),a=le(n.target);if(!u||!a)return!1;let A=typeof window<"u"?a.HTMLInputElement:HTMLInputElement,T=typeof window<"u"?a.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?a.HTMLElement:HTMLElement,o=typeof window<"u"?a.KeyboardEvent:KeyboardEvent,l=u.activeElement;return e=e||l instanceof A&&!ke.has(l.type)||l instanceof T||l instanceof d&&l.isContentEditable,!(e&&t==="keyboard"&&n instanceof o&&!Ke[n.key])}})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necto-react/helpers",
3
- "version": "2.6.11",
3
+ "version": "2.6.12",
4
4
  "description": "Necto's library for providing global helpers React applications",
5
5
  "type": "module",
6
6
  "files": [
@@ -19,6 +19,11 @@
19
19
  },
20
20
  "author": "Corinvo OSS Team",
21
21
  "license": "MIT",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/nectoutil/NodeKit",
25
+ "directory": "packages/@necto-react/necto-react-helpers"
26
+ },
22
27
  "devDependencies": {
23
28
  "@types/node": "^22.14.1",
24
29
  "@types/react": "^19.1.2",
@@ -34,7 +39,7 @@
34
39
  "dependencies": {
35
40
  "std-env": "^3.9.0",
36
41
  "@necto-react/types": "2.4.1",
37
- "@necto/dom": "1.6.11",
42
+ "@necto/dom": "1.7.3",
38
43
  "@necto/platform": "1.5.1"
39
44
  },
40
45
  "scripts": {