@aracna/react 1.0.54 → 1.0.56

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Dario Sechi
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Dario Sechi
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.
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- ![NPM](https://img.shields.io/npm/l/@aracna/react)
2
- ![npm (scoped)](https://img.shields.io/npm/v/@aracna/react)
3
- [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=coverage)](https://sonarcloud.io/summary/new_code?id=aracna_react)
4
- [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=aracna_react)
5
- [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=aracna_react)
6
- [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=aracna_react)
7
- [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=aracna_react)
8
- [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
9
- [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
10
- [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
11
-
12
- # Aracna React
13
-
14
- This library contains a collection of functions and hooks to make your react development experience smoother.
15
-
16
- ### Documentation
17
-
18
- You can find the react documentation on the [Aracna Website](https://aracna.dariosechi.it).
1
+ ![NPM](https://img.shields.io/npm/l/@aracna/react)
2
+ ![npm (scoped)](https://img.shields.io/npm/v/@aracna/react)
3
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=coverage)](https://sonarcloud.io/summary/new_code?id=aracna_react)
4
+ [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=aracna_react)
5
+ [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=aracna_react)
6
+ [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=aracna_react)
7
+ [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=aracna_react)
8
+ [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
9
+ [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
10
+ [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aracna_react&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aracna_react)
11
+
12
+ # Aracna React
13
+
14
+ This library contains a collection of functions and hooks to make your react development experience smoother.
15
+
16
+ ### Documentation
17
+
18
+ You can find the react documentation on the [Aracna Website](https://aracna.dariosechi.it).
@@ -1 +1 @@
1
- import{isArray as b}from"@aracna/core";import{useEffect as y,useRef as a,useState as d}from"react";function g(c,r,u=[]){const t=a(),[s,f]=d([]),o=(...e)=>{const n=b(e[0])?e[0][0]instanceof Element?e[0]:[]:e[0]instanceof Element?e:[];if(n.length>0)return s.filter(i=>n.includes(i.target));const I=b(e[0])?e[0][0]?.current instanceof Element?e[0]:[]:e[0]?.current instanceof Element?e:[];return I.length>0?s.filter(i=>I.some(O=>O.current===i.target)):s},l=(...e)=>o(...e).some(n=>n.isIntersecting),v=(...e)=>o(...e).every(n=>n.isIntersecting),E=(...e)=>l(...e),m=e=>{f(e)};return y(()=>{t.current=new IntersectionObserver(m,r);for(let e of c){if(e instanceof Element){t.current.observe(e);continue}e?.current instanceof Element&&t.current.observe(e.current)}return()=>t.current?.disconnect()},[...c,r?.root,r?.rootMargin,r?.threshold,...u]),{entries:s,observer:t,areSomeIntersecting:l,isEveryIntersecting:v,isIntersecting:E}}export{g as useIntersectionObserver};
1
+ import{isArray as I}from"@aracna/core";import{useEffect as y,useRef as d,useState as a}from"react";function g(c,r,b=[]){const t=d(void 0),[s,f]=a([]),o=(...e)=>{const n=I(e[0])?e[0][0]instanceof Element?e[0]:[]:e[0]instanceof Element?e:[];if(n.length>0)return s.filter(i=>n.includes(i.target));const u=I(e[0])?e[0][0]?.current instanceof Element?e[0]:[]:e[0]?.current instanceof Element?e:[];return u.length>0?s.filter(i=>u.some(O=>O.current===i.target)):s},l=(...e)=>o(...e).some(n=>n.isIntersecting),v=(...e)=>o(...e).every(n=>n.isIntersecting),E=(...e)=>l(...e),m=e=>{f(e)};return y(()=>{t.current=new IntersectionObserver(m,r);for(let e of c){if(e instanceof Element){t.current.observe(e);continue}e?.current instanceof Element&&t.current.observe(e.current)}return()=>t.current?.disconnect()},[...c,r?.root,r?.rootMargin,r?.threshold,...b]),{entries:s,observer:t,areSomeIntersecting:l,isEveryIntersecting:v,isIntersecting:E}}export{g as useIntersectionObserver};
package/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var W=Object.create;var d=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var z=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},T=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of H(n))!_.call(e,i)&&i!==t&&d(e,i,{get:()=>n[i],enumerable:!(r=A(n,i))||r.enumerable});return e};var B=(e,n,t)=>(t=e!=null?W(V(e)):{},T(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),G=e=>T(d({},"__esModule",{value:!0}),e);var te={};z(te,{ComponentLifeCycle:()=>R,Memo:()=>q,createElementComponent:()=>J,forwardRef:()=>Q,useDOMRect:()=>Y,useDispatch:()=>X,useElementRef:()=>Z,useEventListener:()=>$,useIntersectionObserver:()=>ee,useLifeCycle:()=>b,useWindowEventListener:()=>O,useWindowSize:()=>ne});module.exports=G(te);var w=require("react");function q(e){return(0,w.useMemo)(()=>e.children,e.deps??[])}var R=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(R||{});var C=require("@aracna/core"),L=require("@lit/react"),h=B(require("react"),1);var x={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function J(e,n,t=[]){return(0,L.createComponent)({elementClass:n,events:{...x,...t.reduce((r,i)=>({...r,["on"+(0,C.getPascalCaseString)(String(i))]:i}),{})},react:h.default,tagName:e})}var D=require("react");function Q(...e){return(0,D.forwardRef)(e[0])}var I=require("react");var l=require("react");function b(){let e=(0,l.useRef)("CONSTRUCTED");return(0,l.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function X(e){let n=b(),t=(0,I.useReducer)(()=>({}),{});return()=>{switch(n.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":t[1](),e&&e();break}}}var P=require("@aracna/web"),E=require("react");function Y(e,n=[]){let[t,r]=(0,E.useState)(new P.StubDOMRect);return(0,E.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...n]),t}var U=require("@aracna/core"),N=require("react");function Z(e,n){return(0,N.useRef)((0,U.isWindowDefined)()?document.createElement(e,n):{current:{}})}var S=require("react");function $(e,n,t,r=[]){(0,S.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(n,t),()=>e.removeEventListener(n,t);if(e?.current instanceof Element)return e.current.addEventListener(n,t),()=>e.current?.removeEventListener(n,t)},[e,n,t,...r])}var g=require("@aracna/core"),a=require("react");function ee(e,n,t=[]){let r=(0,a.useRef)(),[i,f]=(0,a.useState)([]),u=(...o)=>{let s=(0,g.isArray)(o[0])?o[0][0]instanceof Element?o[0]:[]:o[0]instanceof Element?o:[];if(s.length>0)return i.filter(y=>s.includes(y.target));let M=(0,g.isArray)(o[0])?o[0][0]?.current instanceof Element?o[0]:[]:o[0]?.current instanceof Element?o:[];return M.length>0?i.filter(y=>M.some(j=>j.current===y.target)):i},p=(...o)=>u(...o).some(s=>s.isIntersecting),v=(...o)=>u(...o).every(s=>s.isIntersecting),K=(...o)=>p(...o),F=o=>{f(o)};return(0,a.useEffect)(()=>{r.current=new IntersectionObserver(F,n);for(let o of e){if(o instanceof Element){r.current.observe(o);continue}o?.current instanceof Element&&r.current.observe(o.current)}return()=>r.current?.disconnect()},[...e,n?.root,n?.rootMargin,n?.threshold,...t]),{entries:i,observer:r,areSomeIntersecting:p,isEveryIntersecting:v,isIntersecting:K}}var k=require("react");function O(e,n,t=[]){(0,k.useEffect)(()=>(window.addEventListener(e,n),()=>window.removeEventListener(e,n)),[e,n,...t])}var c=require("@aracna/core"),m=require("react");function ne(e=[]){let[n,t]=(0,m.useState)((0,c.isWindowDefined)()?window.innerHeight:0),[r,i]=(0,m.useState)((0,c.isWindowDefined)()?window.innerWidth:0),[f,u]=(0,m.useState)((0,c.isWindowDefined)()?window.outerHeight:0),[p,v]=(0,m.useState)((0,c.isWindowDefined)()?window.outerWidth:0);return O("resize",()=>{t(window.innerHeight),i(window.innerWidth),u(window.outerHeight),v(window.outerWidth)},e),{innerHeight:n,innerWidth:r,outerHeight:f,outerWidth:p}}
1
+ "use strict";var W=Object.create;var d=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var z=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},T=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of H(n))!_.call(e,i)&&i!==t&&d(e,i,{get:()=>n[i],enumerable:!(r=A(n,i))||r.enumerable});return e};var B=(e,n,t)=>(t=e!=null?W(V(e)):{},T(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),G=e=>T(d({},"__esModule",{value:!0}),e);var te={};z(te,{ComponentLifeCycle:()=>R,Memo:()=>q,createElementComponent:()=>J,forwardRef:()=>Q,useDOMRect:()=>Y,useDispatch:()=>X,useElementRef:()=>Z,useEventListener:()=>$,useIntersectionObserver:()=>ee,useLifeCycle:()=>b,useWindowEventListener:()=>O,useWindowSize:()=>ne});module.exports=G(te);var w=require("react");function q(e){return(0,w.useMemo)(()=>e.children,e.deps??[])}var R=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(R||{});var C=require("@aracna/core"),L=require("@lit/react"),h=B(require("react"),1);var x={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function J(e,n,t=[]){return(0,L.createComponent)({elementClass:n,events:{...x,...t.reduce((r,i)=>({...r,["on"+(0,C.getPascalCaseString)(String(i))]:i}),{})},react:h.default,tagName:e})}var D=require("react");function Q(...e){return(0,D.forwardRef)(e[0])}var I=require("react");var l=require("react");function b(){let e=(0,l.useRef)("CONSTRUCTED");return(0,l.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function X(e){let n=b(),t=(0,I.useReducer)(()=>({}),{});return()=>{switch(n.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":t[1](),e&&e();break}}}var P=require("@aracna/web"),f=require("react");function Y(e,n=[]){let[t,r]=(0,f.useState)(new P.StubDOMRect);return(0,f.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...n]),t}var U=require("@aracna/core"),N=require("react");function Z(e,n){return(0,N.useRef)((0,U.isWindowDefined)()?document.createElement(e,n):{current:{}})}var S=require("react");function $(e,n,t,r=[]){(0,S.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(n,t),()=>e.removeEventListener(n,t);if(e?.current instanceof Element)return e.current.addEventListener(n,t),()=>e.current?.removeEventListener(n,t)},[e,n,t,...r])}var g=require("@aracna/core"),a=require("react");function ee(e,n,t=[]){let r=(0,a.useRef)(void 0),[i,E]=(0,a.useState)([]),u=(...o)=>{let s=(0,g.isArray)(o[0])?o[0][0]instanceof Element?o[0]:[]:o[0]instanceof Element?o:[];if(s.length>0)return i.filter(y=>s.includes(y.target));let M=(0,g.isArray)(o[0])?o[0][0]?.current instanceof Element?o[0]:[]:o[0]?.current instanceof Element?o:[];return M.length>0?i.filter(y=>M.some(j=>j.current===y.target)):i},p=(...o)=>u(...o).some(s=>s.isIntersecting),v=(...o)=>u(...o).every(s=>s.isIntersecting),K=(...o)=>p(...o),F=o=>{E(o)};return(0,a.useEffect)(()=>{r.current=new IntersectionObserver(F,n);for(let o of e){if(o instanceof Element){r.current.observe(o);continue}o?.current instanceof Element&&r.current.observe(o.current)}return()=>r.current?.disconnect()},[...e,n?.root,n?.rootMargin,n?.threshold,...t]),{entries:i,observer:r,areSomeIntersecting:p,isEveryIntersecting:v,isIntersecting:K}}var k=require("react");function O(e,n,t=[]){(0,k.useEffect)(()=>(window.addEventListener(e,n),()=>window.removeEventListener(e,n)),[e,n,...t])}var c=require("@aracna/core"),m=require("react");function ne(e=[]){let[n,t]=(0,m.useState)((0,c.isWindowDefined)()?window.innerHeight:0),[r,i]=(0,m.useState)((0,c.isWindowDefined)()?window.innerWidth:0),[E,u]=(0,m.useState)((0,c.isWindowDefined)()?window.outerHeight:0),[p,v]=(0,m.useState)((0,c.isWindowDefined)()?window.outerWidth:0);return O("resize",()=>{t(window.innerHeight),i(window.innerWidth),u(window.outerHeight),v(window.outerWidth)},e),{innerHeight:n,innerWidth:r,outerHeight:E,outerWidth:p}}
package/index.iife.js CHANGED
@@ -1,12 +1,12 @@
1
- "use strict";var AracnaReact=(()=>{var be=Object.create;var C=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),we=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})},V=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pe(t))!Ue.call(e,o)&&o!==n&&C(e,o,{get:()=>t[o],enumerable:!(r=Le(t,o))||r.enumerable});return e};var T=(e,t,n)=>(n=e!=null?be(Ie(e)):{},V(t||!e||!e.__esModule?C(n,"default",{value:e,enumerable:!0}):n,e)),Me=e=>V(C({},"__esModule",{value:!0}),e);var ie=w(c=>{"use strict";var S=Symbol.for("react.element"),xe=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),Ge=Symbol.for("react.provider"),He=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),We=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),X=Symbol.iterator;function ze(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,Q={};function A(e,t,n){this.props=e,this.context=t,this.refs=Q,this.updater=n||q}A.prototype.isReactComponent={};A.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ee(){}ee.prototype=A.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=Q,this.updater=n||q}var F=x.prototype=new ee;F.constructor=x;Z(F,A.prototype);F.isPureReactComponent=!0;var J=Array.isArray,te=Object.prototype.hasOwnProperty,k={current:null},ne={key:!0,ref:!0,__self:!0,__source:!0};function re(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var a=Array(u),l=0;l<u;l++)a[l]=arguments[l+2];o.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:S,type:e,key:i,ref:s,props:o,_owner:k.current}}function Ve(e,t){return{$$typeof:S,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function B(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Y=/\/+/g;function M(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function D(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case S:case xe:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+M(s,0):r,J(o)?(n="",e!=null&&(n=e.replace(Y,"$&/")+"/"),D(o,t,n,"",function(l){return l})):o!=null&&(B(o)&&(o=Ve(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Y,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",J(e))for(var u=0;u<e.length;u++){i=e[u];var a=r+M(i,u);s+=D(i,t,n,a,o)}else if(a=ze(e),typeof a=="function")for(e=a.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+M(i,u++),s+=D(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function g(e,t,n){if(e==null)return e;var r=[],o=0;return D(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Je(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var m={current:null},N={transition:null},Ye={ReactCurrentDispatcher:m,ReactCurrentBatchConfig:N,ReactCurrentOwner:k};function oe(){throw Error("act(...) is not supported in production builds of React.")}c.Children={map:g,forEach:function(e,t,n){g(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return g(e,function(){t++}),t},toArray:function(e){return g(e,function(t){return t})||[]},only:function(e){if(!B(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};c.Component=A;c.Fragment=Fe;c.Profiler=Be;c.PureComponent=x;c.StrictMode=ke;c.Suspense=Ke;c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ye;c.act=oe;c.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Z({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=k.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)te.call(t,a)&&!ne.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var l=0;l<a;l++)u[l]=arguments[l+2];r.children=u}return{$$typeof:S,type:e.type,key:o,ref:i,props:r,_owner:s}};c.createContext=function(e){return e={$$typeof:He,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ge,_context:e},e.Consumer=e};c.createElement=re;c.createFactory=function(e){var t=re.bind(null,e);return t.type=e,t};c.createRef=function(){return{current:null}};c.forwardRef=function(e){return{$$typeof:je,render:e}};c.isValidElement=B;c.lazy=function(e){return{$$typeof:$e,_payload:{_status:-1,_result:e},_init:Je}};c.memo=function(e,t){return{$$typeof:We,type:e,compare:t===void 0?null:t}};c.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}};c.unstable_act=oe;c.useCallback=function(e,t){return m.current.useCallback(e,t)};c.useContext=function(e){return m.current.useContext(e)};c.useDebugValue=function(){};c.useDeferredValue=function(e){return m.current.useDeferredValue(e)};c.useEffect=function(e,t){return m.current.useEffect(e,t)};c.useId=function(){return m.current.useId()};c.useImperativeHandle=function(e,t,n){return m.current.useImperativeHandle(e,t,n)};c.useInsertionEffect=function(e,t){return m.current.useInsertionEffect(e,t)};c.useLayoutEffect=function(e,t){return m.current.useLayoutEffect(e,t)};c.useMemo=function(e,t){return m.current.useMemo(e,t)};c.useReducer=function(e,t,n){return m.current.useReducer(e,t,n)};c.useRef=function(e){return m.current.useRef(e)};c.useState=function(e){return m.current.useState(e)};c.useSyncExternalStore=function(e,t,n){return m.current.useSyncExternalStore(e,t,n)};c.useTransition=function(){return m.current.useTransition()};c.version="18.3.1"});var y=w((Ct,se)=>{"use strict";se.exports=ie()});var me=w(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.parse=at;b.serialize=ut;var tt=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,nt=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,rt=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,ot=/^[\u0020-\u003A\u003D-\u007E]*$/,it=Object.prototype.toString,st=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function at(e,t){let n=new st,r=e.length;if(r<2)return n;let o=t?.decode||ct,i=0;do{let s=e.indexOf("=",i);if(s===-1)break;let u=e.indexOf(";",i),a=u===-1?r:u;if(s>a){i=e.lastIndexOf(";",s-1)+1;continue}let l=pe(e,i,s),d=de(e,s,l),f=e.slice(l,d);if(n[f]===void 0){let _=pe(e,s+1,a),E=de(e,a,_),p=o(e.slice(_,E));n[f]=p}i=a+1}while(i<r);return n}function pe(e,t,n){do{let r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function de(e,t,n){for(;t>n;){let r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function ut(e,t,n){let r=n?.encode||encodeURIComponent;if(!tt.test(e))throw new TypeError(`argument name is invalid: ${e}`);let o=r(t);if(!nt.test(o))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+o;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!rt.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!ot.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!ft(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.sameSite){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function ct(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function ft(e){return it.call(e)==="[object Date]"}});var St={};we(St,{ComponentLifeCycle:()=>ue,Memo:()=>qe,createElementComponent:()=>Et,forwardRef:()=>pt,useDOMRect:()=>Tt,useDispatch:()=>dt,useElementRef:()=>yt,useEventListener:()=>Rt,useIntersectionObserver:()=>At,useLifeCycle:()=>$,useWindowEventListener:()=>z,useWindowSize:()=>ht});var ae=T(y(),1);function qe(e){return(0,ae.useMemo)(()=>e.children,e.deps??[])}var ue=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(ue||{});var ce=()=>({tc:{log:!0,onCatch:()=>{}},tcp:{log:!0,onCatch:()=>{}}});var Ze="abcdefghijklmnopqrstuvwxyz";var G="0123456789",Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZ",bt=G+Ze+Qe,Lt=G+"abcdef",Pt=G+"ABCDEF";var fe=/[^a-zA-Z0-9]/g;var O=class{static functions=ce()};function le(e,t=O.functions.tc.log){try{return e()}catch(n){return t&&console.error(n),O.functions.tc.onCatch(n,t),n}}function R(){return typeof window<"u"}function et(e,t=!1){return e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))}function Ee(e){let t,n;t="",n=!1;for(let r of e){if(fe.test(r)){n=!0;continue}if(n){t+=r.toUpperCase(),n=!1;continue}t+=r}return et(t)}function H(e){return Array.isArray(e)}var j=T(me(),1);function _e(e,t){let n;return n=le(()=>(0,j.parse)(e,t)),n instanceof Error?{}:n}var Te=e=>()=>[...e.entries()].map(([t,n])=>[t,n].join("=")).join(";"),ye=(e,t=_e)=>n=>{let r;if(r=t(n),!(r instanceof Error))for(let o in r){if(n.includes("Expires=Thu, 01 Jan 1970 00:00:00 GMT")){e.delete(o);continue}e.set(o,r[o])}};var K=e=>({clear:()=>e.clear(),getItem:t=>{let n;return n=e.get(t),typeof n>"u"?null:n},key:t=>{let n;return n=[...e.keys()][t],typeof n>"u"?null:n},removeItem:t=>{e.delete(t)},setItem:(t,n)=>{e.set(t,n)},get length(){return e.size}}),qt=Object.freeze({decode:()=>"",encoding:"",fatal:!1,ignoreBOM:!1}),Zt=Object.freeze({encode:()=>new Uint8Array,encodeInto:()=>({read:0,written:0}),encoding:""});var lt=new Set(["children","localName","ref","style","className"]),Re=new WeakMap,Ae=(e,t,n,r,o)=>{let i=o?.[t];i===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((s,u,a)=>{let l=Re.get(s);l===void 0&&Re.set(s,l=new Map);let d=l.get(u);a!==void 0?d===void 0?(l.set(u,d={handleEvent:a}),s.addEventListener(u,d)):d.handleEvent=a:d!==void 0&&(l.delete(u),s.removeEventListener(u,d))})(e,i,n)},W=({react:e,tagName:t,elementClass:n,events:r,displayName:o})=>{let i=new Set(Object.keys(r??{})),s=e.forwardRef((u,a)=>{let l=e.useRef(new Map),d=e.useRef(null),f={},_={};for(let[E,p]of Object.entries(u))lt.has(E)?f[E==="className"?"class":E]=p:i.has(E)||E in n.prototype?_[E]=p:f[E]=p;return e.useLayoutEffect(()=>{if(d.current===null)return;let E=new Map;for(let p in _)Ae(d.current,p,u[p],l.current.get(p),r),l.current.delete(p),E.set(p,u[p]);for(let[p,U]of l.current)Ae(d.current,p,void 0,U,r);l.current=E}),e.useLayoutEffect(()=>{d.current?.removeAttribute("defer-hydration")},[]),f.suppressHydrationWarning=!0,e.createElement(t,{...f,ref:e.useCallback(E=>{d.current=E,typeof a=="function"?a(E):a!==null&&(a.current=E)},[a])})});return s.displayName=o??n.name,s};var Se=T(y(),1);var he={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function Et(e,t,n=[]){return W({elementClass:t,events:{...he,...n.reduce((r,o)=>({...r,["on"+Ee(String(o))]:o}),{})},react:Se.default,tagName:e})}var Oe=T(y(),1);function pt(...e){return(0,Oe.forwardRef)(e[0])}var ve=T(y(),1);var L=T(y(),1);function $(){let e=(0,L.useRef)("CONSTRUCTED");return(0,L.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function dt(e){let t=$(),n=(0,ve.useReducer)(()=>({}),{});return()=>{switch(t.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":n[1](),e&&e();break}}}var P=class e{bottom;height;left;right;top;width;x;y;constructor(t,n,r,o){this.bottom=0,this.height=o??0,this.left=0,this.right=0,this.top=0,this.width=r??0,this.x=t??0,this.y=n??0}fromRect(t){return new e(t?.x,t?.y,t?.width,t?.height)}toJSON(){return{bottom:this.bottom,height:this.height,left:this.left,right:this.right,top:this.top,width:this.width,x:this.x,y:this.y}}};var Ce=new Map,mn={get:Te(Ce),set:ye(Ce)},mt=new Map,_n=K(mt),_t=new Map,Tn=K(_t);var I=T(y(),1);function Tt(e,t=[]){let[n,r]=(0,I.useState)(new P);return(0,I.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...t]),n}var ge=T(y(),1);function yt(e,t){return(0,ge.useRef)(R()?document.createElement(e,t):{current:{}})}var De=T(y(),1);function Rt(e,t,n,r=[]){(0,De.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(t,n),()=>e.removeEventListener(t,n);if(e?.current instanceof Element)return e.current.addEventListener(t,n),()=>e.current?.removeEventListener(t,n)},[e,t,n,...r])}var h=T(y(),1);function At(e,t,n=[]){let r=(0,h.useRef)(),[o,i]=(0,h.useState)([]),s=(...f)=>{let _=H(f[0])?f[0][0]instanceof Element?f[0]:[]:f[0]instanceof Element?f:[];if(_.length>0)return o.filter(p=>_.includes(p.target));let E=H(f[0])?f[0][0]?.current instanceof Element?f[0]:[]:f[0]?.current instanceof Element?f:[];return E.length>0?o.filter(p=>E.some(U=>U.current===p.target)):o},u=(...f)=>s(...f).some(_=>_.isIntersecting),a=(...f)=>s(...f).every(_=>_.isIntersecting),l=(...f)=>u(...f),d=f=>{i(f)};return(0,h.useEffect)(()=>{r.current=new IntersectionObserver(d,t);for(let f of e){if(f instanceof Element){r.current.observe(f);continue}f?.current instanceof Element&&r.current.observe(f.current)}return()=>r.current?.disconnect()},[...e,t?.root,t?.rootMargin,t?.threshold,...n]),{entries:o,observer:r,areSomeIntersecting:u,isEveryIntersecting:a,isIntersecting:l}}var Ne=T(y(),1);function z(e,t,n=[]){(0,Ne.useEffect)(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t,...n])}var v=T(y(),1);function ht(e=[]){let[t,n]=(0,v.useState)(R()?window.innerHeight:0),[r,o]=(0,v.useState)(R()?window.innerWidth:0),[i,s]=(0,v.useState)(R()?window.outerHeight:0),[u,a]=(0,v.useState)(R()?window.outerWidth:0);return z("resize",()=>{n(window.innerHeight),o(window.innerWidth),s(window.outerHeight),a(window.outerWidth)},e),{innerHeight:t,innerWidth:r,outerHeight:i,outerWidth:u}}return Me(St);})();
1
+ "use strict";var AracnaReact=(()=>{var De=Object.create;var C=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Pe=Object.getOwnPropertyNames;var we=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ue=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})},z=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pe(t))!Me.call(e,o)&&o!==n&&C(e,o,{get:()=>t[o],enumerable:!(r=Le(t,o))||r.enumerable});return e};var _=(e,t,n)=>(n=e!=null?De(we(e)):{},z(t||!e||!e.__esModule?C(n,"default",{value:e,enumerable:!0}):n,e)),be=e=>z(C({},"__esModule",{value:!0}),e);var oe=M(u=>{"use strict";var b=Symbol.for("react.transitional.element"),Ie=Symbol.for("react.portal"),xe=Symbol.for("react.fragment"),He=Symbol.for("react.strict_mode"),Fe=Symbol.for("react.profiler"),Be=Symbol.for("react.consumer"),Ge=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Ke=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Y=Symbol.iterator;function We(e){return e===null||typeof e!="object"?null:(e=Y&&e[Y]||e["@@iterator"],typeof e=="function"?e:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,te={};function v(e,t,n){this.props=e,this.context=t,this.refs=te,this.updater=n||Q}v.prototype.isReactComponent={};v.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ne(){}ne.prototype=v.prototype;function I(e,t,n){this.props=e,this.context=t,this.refs=te,this.updater=n||Q}var x=I.prototype=new ne;x.constructor=I;ee(x,v.prototype);x.isPureReactComponent=!0;var V=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},re=Object.prototype.hasOwnProperty;function H(e,t,n,r,o,i){return n=i.ref,{$$typeof:b,type:e,key:t,ref:n!==void 0?n:null,props:i}}function $e(e,t){return H(e.type,t,void 0,void 0,void 0,e.props)}function F(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function ze(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var X=/\/+/g;function U(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ze(""+e.key):t.toString(36)}function J(){}function Ye(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(J,J):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function y(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case b:case Ie:s=!0;break;case Z:return s=e._init,y(s(e._payload),t,n,r,o)}}if(s)return o=o(e),s=r===""?"."+U(e,0):r,V(o)?(n="",s!=null&&(n=s.replace(X,"$&/")+"/"),y(o,t,n,"",function(d){return d})):o!=null&&(F(o)&&(o=$e(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(X,"$&/")+"/")+s)),t.push(o)),1;s=0;var f=r===""?".":r+":";if(V(e))for(var a=0;a<e.length;a++)r=e[a],i=f+U(r,a),s+=y(r,t,n,i,o);else if(a=We(e),typeof a=="function")for(e=a.call(e),a=0;!(r=e.next()).done;)r=r.value,i=f+U(r,a++),s+=y(r,t,n,i,o);else if(i==="object"){if(typeof e.then=="function")return y(Ye(e),t,n,r,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function g(e,t,n){if(e==null)return e;var r=[],o=0;return y(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Ve(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var q=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Xe(){}u.Children={map:g,forEach:function(e,t,n){g(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return g(e,function(){t++}),t},toArray:function(e){return g(e,function(t){return t})||[]},only:function(e){if(!F(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Component=v;u.Fragment=xe;u.Profiler=Fe;u.PureComponent=I;u.StrictMode=He;u.Suspense=je;u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E;u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}};u.cache=function(e){return function(){return e.apply(null,arguments)}};u.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=ee({},e.props),o=e.key,i=void 0;if(t!=null)for(s in t.ref!==void 0&&(i=void 0),t.key!==void 0&&(o=""+t.key),t)!re.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(r[s]=t[s]);var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];r.children=f}return H(e.type,o,void 0,void 0,i,r)};u.createContext=function(e){return e={$$typeof:Ge,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Be,_context:e},e};u.createElement=function(e,t,n){var r,o={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)re.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var f=Array(s),a=0;a<s;a++)f[a]=arguments[a+2];o.children=f}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return H(e,i,void 0,void 0,null,o)};u.createRef=function(){return{current:null}};u.forwardRef=function(e){return{$$typeof:ke,render:e}};u.isValidElement=F;u.lazy=function(e){return{$$typeof:Z,_payload:{_status:-1,_result:e},_init:Ve}};u.memo=function(e,t){return{$$typeof:Ke,type:e,compare:t===void 0?null:t}};u.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),o=E.S;o!==null&&o(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Xe,q)}catch(i){q(i)}finally{E.T=t}};u.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()};u.use=function(e){return E.H.use(e)};u.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)};u.useCallback=function(e,t){return E.H.useCallback(e,t)};u.useContext=function(e){return E.H.useContext(e)};u.useDebugValue=function(){};u.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)};u.useEffect=function(e,t,n){var r=E.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return r.useEffect(e,t)};u.useId=function(){return E.H.useId()};u.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)};u.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)};u.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)};u.useMemo=function(e,t){return E.H.useMemo(e,t)};u.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)};u.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)};u.useRef=function(e){return E.H.useRef(e)};u.useState=function(e){return E.H.useState(e)};u.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)};u.useTransition=function(){return E.H.useTransition()};u.version="19.1.0"});var R=M((ht,se)=>{"use strict";se.exports=oe()});var de=M(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.parse=it;N.serialize=ut;var et=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,tt=/^[\u0021-\u003A\u003C-\u007E]*$/,nt=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,rt=/^[\u0020-\u003A\u003D-\u007E]*$/,ot=Object.prototype.toString,st=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function it(e,t){let n=new st,r=e.length;if(r<2)return n;let o=t?.decode||at,i=0;do{let s=e.indexOf("=",i);if(s===-1)break;let f=e.indexOf(";",i),a=f===-1?r:f;if(s>a){i=e.lastIndexOf(";",s-1)+1;continue}let d=pe(e,i,s),m=le(e,s,d),c=e.slice(d,m);if(n[c]===void 0){let T=pe(e,s+1,a),p=le(e,a,T),l=o(e.slice(T,p));n[c]=l}i=a+1}while(i<r);return n}function pe(e,t,n){do{let r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function le(e,t,n){for(;t>n;){let r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function ut(e,t,n){let r=n?.encode||encodeURIComponent;if(!et.test(e))throw new TypeError(`argument name is invalid: ${e}`);let o=r(t);if(!tt.test(o))throw new TypeError(`argument val is invalid: ${t}`);let i=e+"="+o;if(!n)return i;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);i+="; Max-Age="+n.maxAge}if(n.domain){if(!nt.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);i+="; Domain="+n.domain}if(n.path){if(!rt.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);i+="; Path="+n.path}if(n.expires){if(!ct(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);i+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return i}function at(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function ct(e){return ot.call(e)==="[object Date]"}});var vt={};Ue(vt,{ComponentLifeCycle:()=>ue,Memo:()=>Je,createElementComponent:()=>Et,forwardRef:()=>pt,useDOMRect:()=>Tt,useDispatch:()=>lt,useElementRef:()=>_t,useEventListener:()=>Rt,useIntersectionObserver:()=>At,useLifeCycle:()=>W,useWindowEventListener:()=>$,useWindowSize:()=>yt});var ie=_(R(),1);function Je(e){return(0,ie.useMemo)(()=>e.children,e.deps??[])}var ue=(r=>(r.CONSTRUCTED="CONSTRUCTED",r.MOUNTED="MOUNTED",r.UNMOUNTED="UNMOUNTED",r))(ue||{});var ae=()=>({tc:{log:!0,onCatch:()=>{}},tcp:{log:!0,onCatch:()=>{}}});var qe="abcdefghijklmnopqrstuvwxyz";var B="0123456789",Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Dt=B+qe+Ze,Lt=B+"abcdef",Pt=B+"ABCDEF";var ce=/[^a-zA-Z0-9]/g;var O=class{static functions=ae()};function fe(e,t=O.functions.tc.log){try{return e()}catch(n){return t&&console.error(n),O.functions.tc.onCatch(n,t),n}}function A(){return typeof window<"u"}function Qe(e,t=!1){return e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))}function Ee(e){let t,n;t="",n=!1;for(let r of e){if(ce.test(r)){n=!0;continue}if(n){t+=r.toUpperCase(),n=!1;continue}t+=r}return Qe(t)}function G(e){return Array.isArray(e)}var k=_(de(),1);function me(e,t){let n;return n=fe(()=>(0,k.parse)(e,t)),n instanceof Error?{}:n}var Te=e=>()=>[...e.entries()].map(([t,n])=>[t,n].join("=")).join(";"),_e=(e,t=me)=>n=>{let r;if(r=t(n),!(r instanceof Error))for(let o in r){if(n.includes("Expires=Thu, 01 Jan 1970 00:00:00 GMT")){e.delete(o);continue}e.set(o,r[o])}};var j=e=>({clear:()=>e.clear(),getItem:t=>{let n;return n=e.get(t),typeof n>"u"?null:n},key:t=>{let n;return n=[...e.keys()][t],typeof n>"u"?null:n},removeItem:t=>{e.delete(t)},setItem:(t,n)=>{e.set(t,n)},get length(){return e.size}}),Jt=Object.freeze({decode:()=>"",encoding:"",fatal:!1,ignoreBOM:!1}),qt=Object.freeze({encode:()=>new Uint8Array,encodeInto:()=>({read:0,written:0}),encoding:""});var ft=new Set(["children","localName","ref","style","className"]),Re=new WeakMap,Ae=(e,t,n,r,o)=>{let i=o?.[t];i===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((s,f,a)=>{let d=Re.get(s);d===void 0&&Re.set(s,d=new Map);let m=d.get(f);a!==void 0?m===void 0?(d.set(f,m={handleEvent:a}),s.addEventListener(f,m)):m.handleEvent=a:m!==void 0&&(d.delete(f),s.removeEventListener(f,m))})(e,i,n)},K=({react:e,tagName:t,elementClass:n,events:r,displayName:o})=>{let i=new Set(Object.keys(r??{})),s=e.forwardRef((f,a)=>{let d=e.useRef(new Map),m=e.useRef(null),c={},T={};for(let[p,l]of Object.entries(f))ft.has(p)?c[p==="className"?"class":p]=l:i.has(p)||p in n.prototype?T[p]=l:c[p]=l;return e.useLayoutEffect(()=>{if(m.current===null)return;let p=new Map;for(let l in T)Ae(m.current,l,f[l],d.current.get(l),r),d.current.delete(l),p.set(l,f[l]);for(let[l,w]of d.current)Ae(m.current,l,void 0,w,r);d.current=p}),e.useLayoutEffect(()=>{m.current?.removeAttribute("defer-hydration")},[]),c.suppressHydrationWarning=!0,e.createElement(t,{...c,ref:e.useCallback(p=>{m.current=p,typeof a=="function"?a(p):a!==null&&(a.current=p)},[a])})});return s.displayName=o??n.name,s};var ve=_(R(),1);var ye={onAbort:"abort",onAnimationEnd:"animationend",onAnimationIteration:"animationiteration",onAnimationStart:"animationstart",onAuxClick:"auxclick",onBeforeInput:"beforeinput",onBlur:"blur",onCanPlay:"canplay",onCanPlayThrough:"canplaythrough",onChange:"change",onClick:"click",onCompositionEnd:"compositionend",onCompositionStart:"compositionstart",onCompositionUpdate:"compositionupdate",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"doubleclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onDurationChange:"durationchange",onEmptied:"emptied",onEncrypted:"encrypted",onEnded:"ended",onError:"error",onEventHandler:"eventhandler",onFocus:"focus",onInput:"input",onInvalid:"invalid",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onLoad:"load",onLoadStart:"loadstart",onLoadedData:"loadeddata",onLoadedMetadata:"loadedmetadata",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onPause:"pause",onPlay:"play",onPlaying:"playing",onPointerCancel:"pointercancel",onPointerDown:"pointerdown",onPointerEnter:"pointerenter",onPointerLeave:"pointerleave",onPointerMove:"pointermove",onPointerOut:"pointerout",onPointerOver:"pointerover",onPointerUp:"pointerup",onProgress:"progress",onRateChange:"ratechange",onReset:"reset",onResize:"resize",onScroll:"scroll",onSeeked:"seeked",onSeeking:"seeking",onSelect:"select",onStalled:"stalled",onSubmit:"submit",onSuspend:"suspend",onTimeUpdate:"timeupdate",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onTransitionEnd:"transitionend",onVolumeChange:"volumechange",onWaiting:"waiting",onWheel:"wheel"};function Et(e,t,n=[]){return K({elementClass:t,events:{...ye,...n.reduce((r,o)=>({...r,["on"+Ee(String(o))]:o}),{})},react:ve.default,tagName:e})}var Se=_(R(),1);function pt(...e){return(0,Se.forwardRef)(e[0])}var Oe=_(R(),1);var D=_(R(),1);function W(){let e=(0,D.useRef)("CONSTRUCTED");return(0,D.useEffect)(()=>(e.current="MOUNTED",()=>{e.current="UNMOUNTED"}),[]),e}function lt(e){let t=W(),n=(0,Oe.useReducer)(()=>({}),{});return()=>{switch(t.current){case"CONSTRUCTED":case"UNMOUNTED":break;case"MOUNTED":n[1](),e&&e();break}}}var L=class e{bottom;height;left;right;top;width;x;y;constructor(t,n,r,o){this.bottom=0,this.height=o??0,this.left=0,this.right=0,this.top=0,this.width=r??0,this.x=t??0,this.y=n??0}fromRect(t){return new e(t?.x,t?.y,t?.width,t?.height)}toJSON(){return{bottom:this.bottom,height:this.height,left:this.left,right:this.right,top:this.top,width:this.width,x:this.x,y:this.y}}};var he=new Map,dn={get:Te(he),set:_e(he)},dt=new Map,mn=j(dt),mt=new Map,Tn=j(mt);var P=_(R(),1);function Tt(e,t=[]){let[n,r]=(0,P.useState)(new L);return(0,P.useEffect)(()=>{if(e instanceof Element){r(e.getBoundingClientRect());return}e?.current instanceof Element&&r(e.current.getBoundingClientRect())},[e,...t]),n}var Ce=_(R(),1);function _t(e,t){return(0,Ce.useRef)(A()?document.createElement(e,t):{current:{}})}var ge=_(R(),1);function Rt(e,t,n,r=[]){(0,ge.useEffect)(()=>{if(e instanceof Element)return e.addEventListener(t,n),()=>e.removeEventListener(t,n);if(e?.current instanceof Element)return e.current.addEventListener(t,n),()=>e.current?.removeEventListener(t,n)},[e,t,n,...r])}var S=_(R(),1);function At(e,t,n=[]){let r=(0,S.useRef)(void 0),[o,i]=(0,S.useState)([]),s=(...c)=>{let T=G(c[0])?c[0][0]instanceof Element?c[0]:[]:c[0]instanceof Element?c:[];if(T.length>0)return o.filter(l=>T.includes(l.target));let p=G(c[0])?c[0][0]?.current instanceof Element?c[0]:[]:c[0]?.current instanceof Element?c:[];return p.length>0?o.filter(l=>p.some(w=>w.current===l.target)):o},f=(...c)=>s(...c).some(T=>T.isIntersecting),a=(...c)=>s(...c).every(T=>T.isIntersecting),d=(...c)=>f(...c),m=c=>{i(c)};return(0,S.useEffect)(()=>{r.current=new IntersectionObserver(m,t);for(let c of e){if(c instanceof Element){r.current.observe(c);continue}c?.current instanceof Element&&r.current.observe(c.current)}return()=>r.current?.disconnect()},[...e,t?.root,t?.rootMargin,t?.threshold,...n]),{entries:o,observer:r,areSomeIntersecting:f,isEveryIntersecting:a,isIntersecting:d}}var Ne=_(R(),1);function $(e,t,n=[]){(0,Ne.useEffect)(()=>(window.addEventListener(e,t),()=>window.removeEventListener(e,t)),[e,t,...n])}var h=_(R(),1);function yt(e=[]){let[t,n]=(0,h.useState)(A()?window.innerHeight:0),[r,o]=(0,h.useState)(A()?window.innerWidth:0),[i,s]=(0,h.useState)(A()?window.outerHeight:0),[f,a]=(0,h.useState)(A()?window.outerWidth:0);return $("resize",()=>{n(window.innerHeight),o(window.innerWidth),s(window.outerHeight),a(window.outerWidth)},e),{innerHeight:t,innerWidth:r,outerHeight:i,outerWidth:f}}return be(vt);})();
2
2
  /*! Bundled license information:
3
3
 
4
- react/cjs/react.production.min.js:
4
+ react/cjs/react.production.js:
5
5
  (**
6
6
  * @license React
7
- * react.production.min.js
7
+ * react.production.js
8
8
  *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,59 +1,58 @@
1
1
  {
2
2
  "author": "Dario Sechi",
3
- "dependencies": {
4
- "@lit/react": "^1.0.6"
5
- },
6
3
  "devDependencies": {
7
- "@aracna/core": "^1.1.92",
8
- "@aracna/web": "^1.0.77",
9
- "@microsoft/api-extractor": "^7.47.9",
10
- "@testing-library/react": "^16.0.1",
11
- "@types/react": "^18.3.11",
12
- "@types/react-dom": "^18.3.1",
13
- "@vitejs/plugin-react": "^4.3.2",
14
- "@vitest/coverage-v8": "^2.1.2",
15
- "@vitest/ui": "^2.1.2",
16
- "esbuild": "^0.24.0",
17
- "glob": "^11.0.0",
18
- "jsdom": "^25.0.1",
19
- "lit": "^3.2.1",
20
- "prettier": "^3.3.3",
21
- "react": "^18.3.1",
22
- "react-dom": "^18.3.1",
23
- "tslib": "^2.7.0",
24
- "typedoc": "^0.26.9",
25
- "typescript": "^5.6.3",
26
- "vitest": "^2.1.2"
4
+ "@aracna/core": "^1.3.1",
5
+ "@aracna/web": "^1.0.83",
6
+ "@lit/react": "^1.0.7",
7
+ "@microsoft/api-extractor": "^7.52.8",
8
+ "@testing-library/react": "^16.3.0",
9
+ "@types/react": "^19.1.7",
10
+ "@types/react-dom": "^19.1.6",
11
+ "@vitejs/plugin-react": "^4.5.2",
12
+ "@vitest/coverage-v8": "^3.2.3",
13
+ "@vitest/ui": "^3.2.3",
14
+ "esbuild": "^0.25.5",
15
+ "glob": "^11.0.2",
16
+ "jsdom": "^26.1.0",
17
+ "lit": "^3.3.0",
18
+ "prettier": "^3.5.3",
19
+ "react": "^19.1.0",
20
+ "react-dom": "^19.1.0",
21
+ "tslib": "^2.8.1",
22
+ "typedoc": "^0.28.5",
23
+ "typescript": "^5.8.3",
24
+ "vitest": "^3.2.3"
27
25
  },
28
26
  "engines": {
29
- "node": ">=16",
30
- "pnpm": ">=8"
27
+ "node": ">=18",
28
+ "pnpm": ">=10"
31
29
  },
32
30
  "exports": {
31
+ "types": "./index.d.ts",
33
32
  "import": "./index.js",
34
- "require": "./index.cjs",
35
- "types": "./index.d.ts"
33
+ "require": "./index.cjs"
36
34
  },
37
35
  "license": "MIT",
38
36
  "main": "index.cjs",
39
37
  "module": "index.js",
40
38
  "name": "@aracna/react",
41
39
  "peerDependencies": {
42
- "@aracna/core": ">= 1.1.0",
40
+ "@aracna/core": ">= 1.3.0",
43
41
  "@aracna/web": ">= 1.0.0",
44
- "react": ">= 18.2.0"
42
+ "@lit/react": ">= 1.0.0",
43
+ "react": ">= 19.0.0"
45
44
  },
46
45
  "publishConfig": {
47
46
  "directory": "dist"
48
47
  },
49
- "repository": "https://github.com/aracna/react",
48
+ "repository": "https://github.com/queelag/react",
50
49
  "sideEffects": false,
51
50
  "type": "module",
52
51
  "types": "index.d.ts",
53
- "version": "1.0.54",
52
+ "version": "1.0.56",
54
53
  "scripts": {
55
- "build": "rm -rf dist && node esbuild.mjs && pnpm tsc && pnpm api-extractor run --local",
56
- "prepublish": "pnpm test && pnpm build && cp LICENSE package.json README.md dist",
54
+ "build": "node esbuild.mjs && pnpm tsc && pnpm api-extractor run --local",
55
+ "prepublish": "pnpm test && pnpm build && node scripts/pre-publish.mjs",
57
56
  "test": "vitest run"
58
57
  }
59
58
  }