react-shared-states 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/use-shared-function.d.ts +1 -1
- package/dist/main.js +328 -677
- package/dist/main.min.js +8 -16
- package/package.json +3 -5
package/dist/main.min.js
CHANGED
|
@@ -1,37 +1,29 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-shared-states v1.0.
|
|
2
|
+
* react-shared-states v1.0.2
|
|
3
3
|
* (c) Hichem Taboukouyout
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
* Github: github.com/HichemTab-tech/react-shared-states
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
(function(
|
|
8
|
+
(function(h,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(h=typeof globalThis<"u"?globalThis:h||self,m(h.ReactSharedStates={},h.React))})(this,function(h,m){"use strict";var A={exports:{}},x={};/**
|
|
9
9
|
* @license React
|
|
10
|
-
* react-jsx-runtime.production.
|
|
10
|
+
* react-jsx-runtime.production.js
|
|
11
11
|
*
|
|
12
|
-
* Copyright (c)
|
|
12
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var
|
|
16
|
+
*/var F;function q(){if(F)return x;F=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,g){var u=null;if(g!==void 0&&(u=""+g),i.key!==void 0&&(u=""+i.key),"key"in i){g={};for(var v in i)v!=="key"&&(g[v]=i[v])}else g=i;return i=g.ref,{$$typeof:s,type:n,key:u,ref:i!==void 0?i:null,props:g}}return x.Fragment=t,x.jsx=r,x.jsxs=r,x}var T={};/**
|
|
17
17
|
* @license React
|
|
18
18
|
* react-jsx-runtime.development.js
|
|
19
19
|
*
|
|
20
|
-
* Copyright (c)
|
|
20
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var
|
|
25
|
-
`+X+e}}var q=!1,N;{var ir=typeof WeakMap=="function"?WeakMap:Map;N=new ir}function Ee(e,r){if(!e||q)return"";{var n=N.get(e);if(n!==void 0)return n}var o;q=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=z.current,z.current=null,nr();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(y){o=y}Reflect.construct(e,[],u)}else{try{u.call()}catch(y){o=y}e.call(u.prototype)}}else{try{throw Error()}catch(y){o=y}e()}}catch(y){if(y&&o&&typeof y.stack=="string"){for(var s=y.stack.split(`
|
|
26
|
-
`),_=o.stack.split(`
|
|
27
|
-
`),g=s.length-1,h=_.length-1;g>=1&&h>=0&&s[g]!==_[h];)h--;for(;g>=1&&h>=0;g--,h--)if(s[g]!==_[h]){if(g!==1||h!==1)do if(g--,h--,h<0||s[g]!==_[h]){var O=`
|
|
28
|
-
`+s[g].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&N.set(e,O),O}while(g>=1&&h>=0);break}}}finally{q=!1,z.current=c,ar(),Error.prepareStackTrace=f}var W=e?e.displayName||e.name:"",V=W?J(W):"";return typeof e=="function"&&N.set(e,V),V}function or(e,r,n){return Ee(e,!1)}function sr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,n){if(e==null)return"";if(typeof e=="function")return Ee(e,sr(e));if(typeof e=="string")return J(e);switch(e){case S:return J("Suspense");case x:return J("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return or(e.render);case w:return K(e.type,r,n);case F:{var o=e,f=o._payload,c=o._init;try{return K(c(f),r,n)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,Re={},_e=I.ReactDebugCurrentFrame;function G(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);_e.setExtraStackFrame(n)}else _e.setExtraStackFrame(null)}function ur(e,r,n,o,f){{var c=Function.call.bind(U);for(var u in e)if(c(e,u)){var s=void 0;try{if(typeof e[u]!="function"){var _=Error((o||"React class")+": "+n+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}s=e[u](r,u,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(g){s=g}s&&!(s instanceof Error)&&(G(f),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,u,typeof s),G(null)),s instanceof Error&&!(s.message in Re)&&(Re[s.message]=!0,G(f),R("Failed %s type: %s",n,s.message),G(null))}}}var lr=Array.isArray;function H(e){return lr(e)}function fr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function cr(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function Se(e){if(cr(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fr(e)),me(e)}var ye=I.ReactCurrentOwner,dr={key:!0,ref:!0,__self:!0,__source:!0},xe,Te;function vr(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function pr(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function gr(e,r){typeof e.ref=="string"&&ye.current}function hr(e,r){{var n=function(){xe||(xe=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function br(e,r){{var n=function(){Te||(Te=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Er=function(e,r,n,o,f,c,u){var s={$$typeof:t,type:e,key:r,ref:n,props:u,_owner:c};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function Rr(e,r,n,o,f){{var c,u={},s=null,_=null;n!==void 0&&(Se(n),s=""+n),pr(r)&&(Se(r.key),s=""+r.key),vr(r)&&(_=r.ref,gr(r,f));for(c in r)U.call(r,c)&&!dr.hasOwnProperty(c)&&(u[c]=r[c]);if(e&&e.defaultProps){var g=e.defaultProps;for(c in g)u[c]===void 0&&(u[c]=g[c])}if(s||_){var h=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&hr(u,h),_&&br(u,h)}return Er(e,s,_,f,o,ye.current,u)}}var Z=I.ReactCurrentOwner,Oe=I.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,n=K(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(n)}else Oe.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function Pe(){{if(Z.current){var e=A(Z.current.type);if(e)return`
|
|
29
|
-
|
|
30
|
-
Check the render method of \``+e+"`."}return""}}function _r(e){return""}var Ce={};function mr(e){{var r=Pe();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=`
|
|
31
|
-
|
|
32
|
-
Check the top-level render call using <`+n+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=mr(r);if(Ce[n])return;Ce[n]=!0;var o="";e&&e._owner&&e._owner!==Z.current&&(o=" It was passed a child from "+A(e._owner.type)+"."),D(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),D(null)}}function je(e,r){{if(typeof e!="object")return;if(H(e))for(var n=0;n<e.length;n++){var o=e[n];ee(o)&&we(o,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var f=ze(e);if(typeof f=="function"&&f!==e.entries)for(var c=f.call(e),u;!(u=c.next()).done;)ee(u.value)&&we(u.value,r)}}}function Sr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===w))n=r.propTypes;else return;if(n){var o=A(r);ur(n,e.props,"prop",o,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var f=A(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var o=r[n];if(o!=="children"&&o!=="key"){D(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),D(null);break}}e.ref!==null&&(D(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var Ae={};function Fe(e,r,n,o,f,c){{var u=rr(e);if(!u){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=_r();_?s+=_:s+=Pe();var g;e===null?g="null":H(e)?g="array":e!==void 0&&e.$$typeof===t?(g="<"+(A(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):g=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",g,s)}var h=Rr(e,r,n,f,c);if(h==null)return h;if(u){var O=r.children;if(O!==void 0)if(o)if(H(O)){for(var W=0;W<O.length;W++)je(O[W],e);Object.freeze&&Object.freeze(O)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else je(O,e)}if(U.call(r,"key")){var V=A(e),y=Object.keys(r).filter(function(wr){return wr!=="key"}),re=y.length>0?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}";if(!Ae[V+re]){var Cr=y.length>0?"{"+y.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
|
|
24
|
+
*/var Y;function D(){return Y||(Y=1,process.env.NODE_ENV!=="production"&&function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case ce:return"Profiler";case ue:return"StrictMode";case ge:return"Suspense";case be:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case le:return"Portal";case de:return(e.displayName||"Context")+".Provider";case fe:return(e._context.displayName||"Context")+".Consumer";case pe:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return a=e.displayName||null,a!==null?a:s(e.type)||"Memo";case U:a=e._payload,e=e._init;try{return s(e(a))}catch{}}return null}function t(e){return""+e}function r(e){try{t(e);var a=!1}catch{a=!0}if(a){a=console;var o=a.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(a,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),t(e)}}function n(e){if(e===O)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===U)return"<...>";try{var a=s(e);return a?"<"+a+">":"<...>"}catch{return"<...>"}}function i(){var e=w.A;return e===null?null:e.getOwner()}function g(){return Error("react-stack-top-frame")}function u(e){if(J.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function v(e,a){function o(){z||(z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",a))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function b(){var e=s(this.type);return G[e]||(G[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function _(e,a,o,c,R,E,C,L){return o=E.ref,e={$$typeof:W,type:e,key:a,props:E,_owner:R},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:b}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:L}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function M(e,a,o,c,R,E,C,L){var f=a.children;if(f!==void 0)if(c)if(Ee(f)){for(c=0;c<f.length;c++)y(f[c]);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(f);if(J.call(a,"key")){f=s(e);var S=Object.keys(a).filter(function(_e){return _e!=="key"});c=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",B[f+c]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
33
25
|
let props = %s;
|
|
34
26
|
<%s {...props} />
|
|
35
27
|
React keys must be passed directly to JSX without using spread:
|
|
36
28
|
let props = %s;
|
|
37
|
-
<%s key={someKey} {...props} />`,
|
|
29
|
+
<%s key={someKey} {...props} />`,c,f,S,f),B[f+c]=!0)}if(f=null,o!==void 0&&(r(o),f=""+o),u(a)&&(r(a.key),f=""+a.key),"key"in a){o={};for(var N in a)N!=="key"&&(o[N]=a[N])}else o=a;return f&&v(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),_(e,f,E,R,i(),o,C,L)}function y(e){typeof e=="object"&&e!==null&&e.$$typeof===W&&e._store&&(e._store.validated=1)}var P=m,W=Symbol.for("react.transitional.element"),le=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),de=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),ve=Symbol.for("react.client.reference"),w=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,Ee=Array.isArray,j=console.createTask?console.createTask:function(){return null};P={react_stack_bottom_frame:function(e){return e()}};var z,G={},X=P.react_stack_bottom_frame.bind(P,g)(),$=j(n(g)),B={};T.Fragment=O,T.jsx=function(e,a,o,c,R){var E=1e4>w.recentlyCreatedOwnerStacks++;return M(e,a,o,!1,c,R,E?Error("react-stack-top-frame"):X,E?j(n(e)):$)},T.jsxs=function(e,a,o,c,R){var E=1e4>w.recentlyCreatedOwnerStacks++;return M(e,a,o,!0,c,R,E?Error("react-stack-top-frame"):X,E?j(n(e)):$)}}()),T}var V;function H(){return V||(V=1,process.env.NODE_ENV==="production"?A.exports=q():A.exports=D()),A.exports}var Z=H();const k=m.createContext(void 0),Q=({children:s,scopeName:t})=>(t||(t=m.useMemo(()=>Math.random().toString(36).substring(2,15),[])),Z.jsx(k.Provider,{value:{scopeName:t},children:s})),K=()=>m.useContext(k);class l{data=new Map;defaultValue(){return{}}addListener(t,r,n){this.data.has(l.prefix(t,r))||this.data.set(l.prefix(t,r),{...this.defaultValue,listeners:[]}),this.data.get(l.prefix(t,r)).listeners.push(n)}removeListener(t,r,n){this.data.has(l.prefix(t,r))&&(this.data.get(l.prefix(t,r)).listeners=this.data.get(l.prefix(t,r)).listeners.filter(i=>i!==n))}callListeners(t,r){this.data.has(l.prefix(t,r))&&this.data.get(l.prefix(t,r)).listeners.forEach(n=>n())}init(t,r,n){this.data.has(l.prefix(t,r))||this.data.set(l.prefix(t,r),{...n,listeners:[]})}clearAll(t=!1){t||this.data.forEach(r=>{r.listeners.forEach(n=>n())}),this.data.clear()}clear(t,r,n=!1){n||this.callListeners(t,r),this.data.delete(l.prefix(t,r))}get(t,r){let n=this.has(t,r);if(n)return this.data.get(n)}setValue(t,r,n){this.data.has(l.prefix(t,r))&&this.data.set(l.prefix(t,r),{...this.data.get(l.prefix(t,r)),...n})}has(t,r){return this.data.has(l.prefix(t,r))?l.prefix(t,r):this.data.has(l.prefix(t,"_global"))?l.prefix(t,"_global"):void 0}static prefix(t,r){return`${r}_${t}`}}const I=s=>{const t=K();return{prefix:s??t?.scopeName??"_global"}};class ee extends l{defaultValue(){return{value:void 0}}init(t,r,n){super.init(t,r,{value:n})}setValue(t,r,n){super.setValue(t,r,{value:n})}}class te{get(t,r="_global"){const n=r||"_global";return p.get(t,n)?.value}set(t,r,n="_global"){const i=n||"_global";p.setValue(t,i,{value:r})}clearAll(){p.clearAll()}clear(t,r="_global"){const n=r||"_global";p.clear(t,n)}has(t,r="_global"){const n=r||"_global";return!!p.has(t,n)}getAll(){return p.data}}const re=new te,p=new ee,ne=(s,t,r)=>{const{prefix:n}=I(r);p.init(s,n,t);const i=m.useSyncExternalStore(u=>(p.init(s,n,t),p.addListener(s,n,u),()=>{p.removeListener(s,n,u)}),()=>p.get(s,n)?.value);return[i,u=>{const v=typeof u=="function"?u(p.get(s,n)?.value):u;v!==i&&(p.setValue(s,n,v),p.callListeners(s,n))}]};class ae extends l{defaultValue(){return{fnState:{results:void 0,isLoading:!1,error:void 0}}}init(t,r){super.init(t,r,this.defaultValue())}setValue(t,r,n){super.setValue(t,r,n)}}class se{get(t,r="_global"){const n=r||"_global";return d.get(t,n)?.fnState}set(t,r,n="_global"){const i=n||"_global";d.setValue(t,i,r)}clearAll(){d.clearAll()}clear(t,r="_global"){const n=r||"_global";d.clear(t,n)}has(t,r="_global"){const n=r||"_global";return!!d.has(t,n)}getAll(){return d.data}}const oe=new se,d=new ae,ie=(s,t,r)=>{const{prefix:n}=I(r);d.init(s,n);const i=m.useSyncExternalStore(u=>(d.init(s,n),d.addListener(s,n,u),()=>{d.removeListener(s,n,u)}),()=>d.get(s,n).fnState),g=async(u,...v)=>{const b=d.get(s,n);if(!u&&(b.fnState.isLoading||b.fnState.results!==void 0))return b.fnState;b.fnState={...b.fnState,isLoading:!0,error:void 0},console.log(d.get(s,n)?.fnState.isLoading),b.listeners.forEach(_=>_());try{const _=await t(...v);b.fnState={results:_,isLoading:!1,error:void 0}}catch(_){b.fnState={...b.fnState,isLoading:!1,error:_}}b.listeners.forEach(_=>_())};return{state:i,trigger:(...u)=>{g(!1,...u)},forceTrigger:(...u)=>{g(!0,...u)},clear:()=>{d.clear(s,n),d.init(s,n)}}};h.SharedStatesProvider=Q,h.sharedFunctionsApi=oe,h.sharedStatesApi=re,h.useSharedFunction=ie,h.useSharedState=ne,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-shared-states",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Global state made as simple as useState, with zero config, built-in async caching, and automatic scoping.",
|
|
6
6
|
"keywords": [
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"main": "dist/main.js",
|
|
16
16
|
"module": "dist/main.esm.js",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
18
|
-
"peerDependencies": {
|
|
19
|
-
"react": "^18.3.1",
|
|
20
|
-
"react-dom": "^18.3.1"
|
|
21
|
-
},
|
|
22
18
|
"author": "Hichem Taboukouyout <hichem.taboukouyout@hichemtab-tech.me>",
|
|
23
19
|
"repository": {
|
|
24
20
|
"type": "git",
|
|
@@ -34,6 +30,8 @@
|
|
|
34
30
|
"@types/react": "^19.1.11",
|
|
35
31
|
"@types/react-dom": "^19.1.7",
|
|
36
32
|
"@vitejs/plugin-react": "^5.0.1",
|
|
33
|
+
"react": "^19.1.1",
|
|
34
|
+
"react-dom": "^19.1.1",
|
|
37
35
|
"typescript": "^5.9.2",
|
|
38
36
|
"vite": "^7.1.3",
|
|
39
37
|
"vite-plugin-banner": "^0.8.1",
|