@argon-router/react 0.2.3 → 0.3.0
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 +21 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +17 -1
- package/dist/index.js +131 -128
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# ☄️ argon-router/react
|
|
2
|
+
|
|
3
|
+
Router without a headache
|
|
4
|
+
|
|
5
|
+
> [!WARNING]
|
|
6
|
+
> argon-router is extermely unstable & maybe buggy. DO NOT USE IN PRODUCTION!
|
|
7
|
+
|
|
8
|
+
## Documentation
|
|
9
|
+
|
|
10
|
+
For additional information, guides and api reference visit [documentation site](https://movpushmov.dev/argon-router/)
|
|
11
|
+
|
|
12
|
+
## Packages
|
|
13
|
+
|
|
14
|
+
- [@argon-router/core](https://www.npmjs.com/package/@argon-router/core)
|
|
15
|
+
- [@argon-router/react](https://www.npmjs.com/package/@argon-router/react)
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm i @argon-router/react
|
|
21
|
+
```
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),X=require("effector-react");var L={exports:{}},k={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ee;function Oe(){if(Ee)return k;Ee=1;var a=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function d(E,i,l){var b=null;if(l!==void 0&&(b=""+l),i.key!==void 0&&(b=""+i.key),"key"in i){l={};for(var g in i)g!=="key"&&(l[g]=i[g])}else l=i;return i=l.ref,{$$typeof:a,type:E,key:b,ref:i!==void 0?i:null,props:l}}return k.Fragment=v,k.jsx=d,k.jsxs=d,k}var O={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var be;function Se(){return be||(be=1,process.env.NODE_ENV!=="production"&&function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case Te:return"Portal";case I:return"Profiler";case Z:return"StrictMode";case $:return"Suspense";case U:return"SuspenseList"}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 D:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case M:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case V:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function v(e){return""+e}function d(e){try{v(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),v(e)}}function E(){}function i(){if(p===0){te=console.log,oe=console.info,ne=console.warn,ae=console.error,ue=console.group,ie=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:E,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}p++}function l(){if(p--,p===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:te}),info:h({},e,{value:oe}),warn:h({},e,{value:ne}),error:h({},e,{value:ae}),group:h({},e,{value:ue}),groupCollapsed:h({},e,{value:ie}),groupEnd:h({},e,{value:se})})}0>p&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function b(e){if(z===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);z=r&&r[1]||"",le=-1<t.stack.indexOf(`
|
|
18
18
|
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+
|
|
19
|
+
`+z+e+le}function g(e,r){if(!e||G)return"";var t=J.get(e);if(t!==void 0)return t;G=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=_.H,_.H=null,i();try{var c={DetermineComponentFrameRoot:function(){try{if(r){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(w){var S=w}Reflect.construct(e,[],y)}else{try{y.call()}catch(w){S=w}e.call(y.prototype)}}else{try{throw Error()}catch(w){S=w}(y=e())&&typeof y.catch=="function"&&y.catch(function(){})}}catch(w){if(w&&S&&typeof w.stack=="string")return[w.stack,S.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=c.DetermineComponentFrameRoot(),R=o[0],j=o[1];if(R&&j){var f=R.split(`
|
|
20
20
|
`),T=j.split(`
|
|
21
21
|
`);for(o=u=0;u<f.length&&!f[u].includes("DetermineComponentFrameRoot");)u++;for(;o<T.length&&!T[o].includes("DetermineComponentFrameRoot");)o++;if(u===f.length||o===T.length)for(u=f.length-1,o=T.length-1;1<=u&&0<=o&&f[u]!==T[o];)o--;for(;1<=u&&0<=o;u--,o--)if(f[u]!==T[o]){if(u!==1||o!==1)do if(u--,o--,0>o||f[u]!==T[o]){var C=`
|
|
22
|
-
`+f[u].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&
|
|
22
|
+
`+f[u].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&J.set(e,C),C}while(1<=u&&0<=o);break}}}finally{G=!1,_.H=n,l(),Error.prepareStackTrace=t}return f=(f=e?e.displayName||e.name:"")?b(f):"",typeof e=="function"&&J.set(e,f),f}function m(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return g(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return b(e);switch(e){case $:return b("Suspense");case U:return b("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case M:return e=g(e.render,!1),e;case W:return m(e.type);case V:r=e._payload,e=e._init;try{return m(e(r))}catch{}}return""}function s(){var e=_.A;return e===null?null:e.getOwner()}function A(e){if(re.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function we(e,r){function t(){ce||(ce=!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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function xe(){var e=a(this.type);return fe[e]||(fe[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 ye(e,r,t,n,c,u){return t=u.ref,e={$$typeof:P,type:e,key:r,props:u,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:xe}):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.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function B(e,r,t,n,c,u){if(typeof e=="string"||typeof e=="function"||e===Y||e===I||e===Z||e===$||e===U||e===je||typeof e=="object"&&e!==null&&(e.$$typeof===V||e.$$typeof===W||e.$$typeof===D||e.$$typeof===Q||e.$$typeof===M||e.$$typeof===Ce||e.getModuleId!==void 0)){var o=r.children;if(o!==void 0)if(n)if(q(o)){for(n=0;n<o.length;n++)F(o[n],e);Object.freeze&&Object.freeze(o)}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 F(o,e)}else o="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":q(e)?n="array":e!==void 0&&e.$$typeof===P?(n="<"+(a(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,o);if(re.call(r,"key")){o=a(e);var R=Object.keys(r).filter(function(f){return f!=="key"});n=0<R.length?"{key: someKey, "+R.join(": ..., ")+": ...}":"{key: someKey}",de[o+n]||(R=0<R.length?"{"+R.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,n,o,
|
|
27
|
+
<%s key={someKey} {...props} />`,n,o,R,o),de[o+n]=!0)}if(o=null,t!==void 0&&(d(t),o=""+t),A(r)&&(d(r.key),o=""+r.key),"key"in r){t={};for(var j in r)j!=="key"&&(t[j]=r[j])}else t=r;return o&&we(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),ye(e,o,u,c,s(),t)}function F(e,r){if(typeof e=="object"&&e&&e.$$typeof!==ke){if(q(e))for(var t=0;t<e.length;t++){var n=e[t];N(n)&&K(n,r)}else if(N(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=ee&&e[ee]||e["@@iterator"],t=typeof t=="function"?t:null),typeof t=="function"&&t!==e.entries&&(t=t.call(e),t!==e))for(;!(e=t.next()).done;)N(e.value)&&K(e.value,r)}}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===P}function K(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=_e(r),!ve[r])){ve[r]=!0;var t="";e&&e._owner!=null&&e._owner!==s()&&(t=null,typeof e._owner.tag=="number"?t=a(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var n=_.getCurrentStack;_.getCurrentStack=function(){var c=m(e.type);return n&&(c+=n()||""),c},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,t),_.getCurrentStack=n}}function _e(e){var r="",t=s();return t&&(t=a(t.type))&&(r=`
|
|
28
28
|
|
|
29
29
|
Check the render method of \``+t+"`."),r||(e=a(e))&&(r=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+e+">."),r}var
|
|
31
|
+
Check the top-level render call using <`+e+">."),r}var he=H,P=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),D=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),je=Symbol.for("react.offscreen"),ee=Symbol.iterator,pe=Symbol.for("react.client.reference"),_=he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=Object.prototype.hasOwnProperty,h=Object.assign,Ce=Symbol.for("react.client.reference"),q=Array.isArray,p=0,te,oe,ne,ae,ue,ie,se;E.__reactDisabledLog=!0;var z,le,G=!1,J=new(typeof WeakMap=="function"?WeakMap:Map),ke=Symbol.for("react.client.reference"),ce,fe={},de={},ve={};O.Fragment=Y,O.jsx=function(e,r,t,n,c){return B(e,r,t,!1,n,c)},O.jsxs=function(e,r,t,n,c){return B(e,r,t,!0,n,c)}}()),O}process.env.NODE_ENV==="production"?L.exports=Oe():L.exports=Se();var x=L.exports;const ge=H.createContext(null),Ae=a=>x.jsx(ge.Provider,{value:a.router,children:a.children});function me(){const a=H.useContext(ge);if(!a)throw new Error("[useRouter] Router not found. Add RouterProvider in app root");return a}function Re(){return X.useUnit(me())}function Ne(a){const{to:v,params:d,onClick:E,ref:i,...l}=a,{mappedRoutes:b}=me(),g=b.find(({route:s})=>s===v),{onOpen:m}=X.useUnit(v);if(!g){const{internal:s}=v;throw new Error(`[Link] Route with path "${s.path}" not found. Maybe it is not passed into createRouter?`)}return x.jsx("a",{...l,ref:i,href:g.toPath(d??void 0),onClick:s=>{E==null||E(s),!s.defaultPrevented&&(l.target&&l.target!=="_self"||s.metaKey||s.altKey||s.ctrlKey||s.shiftKey||(s.preventDefault(),m({params:d||{}})))}})}const Pe=a=>({...a,view:()=>{const{view:v,layout:d,route:E}=a,{isOpened:i}=X.useUnit(E);return i?d?x.jsx(d,{children:x.jsx(v,{})}):x.jsx(v,{}):null}}),Ye=a=>{const{routes:v,otherwise:d}=a;return()=>{const{activeRoutes:E}=Re(),i=E.reduce((m,s)=>m.filter(A=>A!==s.internal.parent),E),l=v.find(m=>m.route===i.at(-1));if(!l)return d?x.jsx(d,{}):null;const{view:b,layout:g}=l;return g?x.jsx(g,{children:x.jsx(b,{})}):x.jsx(b,{})}};exports.Link=Ne;exports.RouterProvider=Ae;exports.createRouteView=Pe;exports.createRoutesView=Ye;exports.useRouter=Re;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { Query } from '@argon-router/core';
|
|
4
5
|
import { ReactNode } from 'react';
|
|
5
6
|
import { RefObject } from 'react';
|
|
6
7
|
import { Route } from '@argon-router/core';
|
|
@@ -52,6 +53,21 @@ declare interface RouterProviderProps {
|
|
|
52
53
|
router: Router;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
export declare function useRouter():
|
|
56
|
+
export declare function useRouter(): {
|
|
57
|
+
query: Query;
|
|
58
|
+
path: string;
|
|
59
|
+
activeRoutes: Route<any>[];
|
|
60
|
+
onBack: () => void;
|
|
61
|
+
onForward: () => void;
|
|
62
|
+
onNavigate: (payload: {
|
|
63
|
+
path: string;
|
|
64
|
+
query: Query;
|
|
65
|
+
replace?: boolean;
|
|
66
|
+
}) => {
|
|
67
|
+
path: string;
|
|
68
|
+
query: Query;
|
|
69
|
+
replace?: boolean;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
56
72
|
|
|
57
73
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Ce, { createContext as ke, useContext as Oe } from "react";
|
|
2
|
-
import { useUnit as
|
|
3
|
-
var
|
|
2
|
+
import { useUnit as L } from "effector-react";
|
|
3
|
+
var H = { exports: {} }, k = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,24 +10,24 @@ var L = { exports: {} }, k = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var ve;
|
|
14
|
+
function Ae() {
|
|
15
|
+
if (ve) return k;
|
|
16
|
+
ve = 1;
|
|
17
17
|
var a = Symbol.for("react.transitional.element"), v = Symbol.for("react.fragment");
|
|
18
|
-
function d(E, i,
|
|
18
|
+
function d(E, i, l) {
|
|
19
19
|
var b = null;
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
if (l !== void 0 && (b = "" + l), i.key !== void 0 && (b = "" + i.key), "key" in i) {
|
|
21
|
+
l = {};
|
|
22
22
|
for (var m in i)
|
|
23
|
-
m !== "key" && (
|
|
24
|
-
} else
|
|
25
|
-
return i =
|
|
23
|
+
m !== "key" && (l[m] = i[m]);
|
|
24
|
+
} else l = i;
|
|
25
|
+
return i = l.ref, {
|
|
26
26
|
$$typeof: a,
|
|
27
27
|
type: E,
|
|
28
28
|
key: b,
|
|
29
29
|
ref: i !== void 0 ? i : null,
|
|
30
|
-
props:
|
|
30
|
+
props: l
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
return k.Fragment = v, k.jsx = d, k.jsxs = d, k;
|
|
@@ -42,42 +42,42 @@ var O = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var Ee;
|
|
46
|
+
function Se() {
|
|
47
|
+
return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
function a(e) {
|
|
49
49
|
if (e == null) return null;
|
|
50
50
|
if (typeof e == "function")
|
|
51
51
|
return e.$$typeof === he ? null : e.displayName || e.name || null;
|
|
52
52
|
if (typeof e == "string") return e;
|
|
53
53
|
switch (e) {
|
|
54
|
-
case
|
|
54
|
+
case Y:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case _e:
|
|
57
57
|
return "Portal";
|
|
58
58
|
case Z:
|
|
59
59
|
return "Profiler";
|
|
60
|
-
case
|
|
60
|
+
case K:
|
|
61
61
|
return "StrictMode";
|
|
62
|
-
case
|
|
62
|
+
case $:
|
|
63
63
|
return "Suspense";
|
|
64
|
-
case
|
|
64
|
+
case W:
|
|
65
65
|
return "SuspenseList";
|
|
66
66
|
}
|
|
67
67
|
if (typeof e == "object")
|
|
68
68
|
switch (typeof e.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), e.$$typeof) {
|
|
71
|
-
case D:
|
|
72
|
-
return (e.displayName || "Context") + ".Provider";
|
|
73
71
|
case Q:
|
|
72
|
+
return (e.displayName || "Context") + ".Provider";
|
|
73
|
+
case I:
|
|
74
74
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
75
75
|
case M:
|
|
76
76
|
var r = e.render;
|
|
77
77
|
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
78
|
-
case
|
|
78
|
+
case U:
|
|
79
79
|
return r = e.displayName || null, r !== null ? r : a(e.type) || "Memo";
|
|
80
|
-
case
|
|
80
|
+
case V:
|
|
81
81
|
r = e._payload, e = e._init;
|
|
82
82
|
try {
|
|
83
83
|
return a(e(r));
|
|
@@ -110,7 +110,7 @@ function Ae() {
|
|
|
110
110
|
}
|
|
111
111
|
function i() {
|
|
112
112
|
if (j === 0) {
|
|
113
|
-
|
|
113
|
+
re = console.log, te = console.info, oe = console.warn, ne = console.error, ae = console.group, ue = console.groupCollapsed, ie = console.groupEnd;
|
|
114
114
|
var e = {
|
|
115
115
|
configurable: !0,
|
|
116
116
|
enumerable: !0,
|
|
@@ -129,16 +129,16 @@ function Ae() {
|
|
|
129
129
|
}
|
|
130
130
|
j++;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function l() {
|
|
133
133
|
if (j--, j === 0) {
|
|
134
134
|
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
135
135
|
Object.defineProperties(console, {
|
|
136
|
-
log: p({}, e, { value:
|
|
137
|
-
info: p({}, e, { value:
|
|
138
|
-
warn: p({}, e, { value:
|
|
139
|
-
error: p({}, e, { value:
|
|
140
|
-
group: p({}, e, { value:
|
|
141
|
-
groupCollapsed: p({}, e, { value:
|
|
136
|
+
log: p({}, e, { value: re }),
|
|
137
|
+
info: p({}, e, { value: te }),
|
|
138
|
+
warn: p({}, e, { value: oe }),
|
|
139
|
+
error: p({}, e, { value: ne }),
|
|
140
|
+
group: p({}, e, { value: ae }),
|
|
141
|
+
groupCollapsed: p({}, e, { value: ue }),
|
|
142
142
|
groupEnd: p({}, e, { value: ie })
|
|
143
143
|
});
|
|
144
144
|
}
|
|
@@ -147,26 +147,26 @@ function Ae() {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
function b(e) {
|
|
150
|
-
if (
|
|
150
|
+
if (q === void 0)
|
|
151
151
|
try {
|
|
152
152
|
throw Error();
|
|
153
153
|
} catch (t) {
|
|
154
154
|
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
155
|
-
|
|
155
|
+
q = r && r[1] || "", se = -1 < t.stack.indexOf(`
|
|
156
156
|
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
157
157
|
}
|
|
158
158
|
return `
|
|
159
|
-
` +
|
|
159
|
+
` + q + e + se;
|
|
160
160
|
}
|
|
161
161
|
function m(e, r) {
|
|
162
|
-
if (!e ||
|
|
163
|
-
var t =
|
|
162
|
+
if (!e || G) return "";
|
|
163
|
+
var t = J.get(e);
|
|
164
164
|
if (t !== void 0) return t;
|
|
165
|
-
|
|
165
|
+
G = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
166
166
|
var n = null;
|
|
167
167
|
n = _.H, _.H = null, i();
|
|
168
168
|
try {
|
|
169
|
-
var
|
|
169
|
+
var c = {
|
|
170
170
|
DetermineComponentFrameRoot: function() {
|
|
171
171
|
try {
|
|
172
172
|
if (r) {
|
|
@@ -180,47 +180,47 @@ function Ae() {
|
|
|
180
180
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
181
181
|
try {
|
|
182
182
|
Reflect.construct(y, []);
|
|
183
|
-
} catch (
|
|
184
|
-
var
|
|
183
|
+
} catch (x) {
|
|
184
|
+
var A = x;
|
|
185
185
|
}
|
|
186
186
|
Reflect.construct(e, [], y);
|
|
187
187
|
} else {
|
|
188
188
|
try {
|
|
189
189
|
y.call();
|
|
190
|
-
} catch (
|
|
191
|
-
|
|
190
|
+
} catch (x) {
|
|
191
|
+
A = x;
|
|
192
192
|
}
|
|
193
193
|
e.call(y.prototype);
|
|
194
194
|
}
|
|
195
195
|
} else {
|
|
196
196
|
try {
|
|
197
197
|
throw Error();
|
|
198
|
-
} catch (
|
|
199
|
-
|
|
198
|
+
} catch (x) {
|
|
199
|
+
A = x;
|
|
200
200
|
}
|
|
201
201
|
(y = e()) && typeof y.catch == "function" && y.catch(function() {
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
} catch (
|
|
205
|
-
if (
|
|
206
|
-
return [
|
|
204
|
+
} catch (x) {
|
|
205
|
+
if (x && A && typeof x.stack == "string")
|
|
206
|
+
return [x.stack, A.stack];
|
|
207
207
|
}
|
|
208
208
|
return [null, null];
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
|
-
|
|
211
|
+
c.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
212
212
|
var u = Object.getOwnPropertyDescriptor(
|
|
213
|
-
|
|
213
|
+
c.DetermineComponentFrameRoot,
|
|
214
214
|
"name"
|
|
215
215
|
);
|
|
216
216
|
u && u.configurable && Object.defineProperty(
|
|
217
|
-
|
|
217
|
+
c.DetermineComponentFrameRoot,
|
|
218
218
|
"name",
|
|
219
219
|
{ value: "DetermineComponentFrameRoot" }
|
|
220
220
|
);
|
|
221
|
-
var o =
|
|
222
|
-
if (
|
|
223
|
-
var f =
|
|
221
|
+
var o = c.DetermineComponentFrameRoot(), w = o[0], T = o[1];
|
|
222
|
+
if (w && T) {
|
|
223
|
+
var f = w.split(`
|
|
224
224
|
`), h = T.split(`
|
|
225
225
|
`);
|
|
226
226
|
for (o = u = 0; u < f.length && !f[u].includes(
|
|
@@ -244,18 +244,18 @@ function Ae() {
|
|
|
244
244
|
" at new ",
|
|
245
245
|
" at "
|
|
246
246
|
);
|
|
247
|
-
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
247
|
+
return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, C), C;
|
|
248
248
|
}
|
|
249
249
|
while (1 <= u && 0 <= o);
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
} finally {
|
|
254
|
-
|
|
254
|
+
G = !1, _.H = n, l(), Error.prepareStackTrace = t;
|
|
255
255
|
}
|
|
256
|
-
return f = (f = e ? e.displayName || e.name : "") ? b(f) : "", typeof e == "function" &&
|
|
256
|
+
return f = (f = e ? e.displayName || e.name : "") ? b(f) : "", typeof e == "function" && J.set(e, f), f;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function g(e) {
|
|
259
259
|
if (e == null) return "";
|
|
260
260
|
if (typeof e == "function") {
|
|
261
261
|
var r = e.prototype;
|
|
@@ -266,21 +266,21 @@ function Ae() {
|
|
|
266
266
|
}
|
|
267
267
|
if (typeof e == "string") return b(e);
|
|
268
268
|
switch (e) {
|
|
269
|
-
case
|
|
269
|
+
case $:
|
|
270
270
|
return b("Suspense");
|
|
271
|
-
case
|
|
271
|
+
case W:
|
|
272
272
|
return b("SuspenseList");
|
|
273
273
|
}
|
|
274
274
|
if (typeof e == "object")
|
|
275
275
|
switch (e.$$typeof) {
|
|
276
276
|
case M:
|
|
277
277
|
return e = m(e.render, !1), e;
|
|
278
|
+
case U:
|
|
279
|
+
return g(e.type);
|
|
278
280
|
case V:
|
|
279
|
-
return x(e.type);
|
|
280
|
-
case z:
|
|
281
281
|
r = e._payload, e = e._init;
|
|
282
282
|
try {
|
|
283
|
-
return
|
|
283
|
+
return g(e(r));
|
|
284
284
|
} catch {
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -290,16 +290,16 @@ function Ae() {
|
|
|
290
290
|
var e = _.A;
|
|
291
291
|
return e === null ? null : e.getOwner();
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
if (
|
|
293
|
+
function S(e) {
|
|
294
|
+
if (ee.call(e, "key")) {
|
|
295
295
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
296
296
|
if (r && r.isReactWarning) return !1;
|
|
297
297
|
}
|
|
298
298
|
return e.key !== void 0;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function ge(e, r) {
|
|
301
301
|
function t() {
|
|
302
|
-
|
|
302
|
+
le || (le = !0, console.error(
|
|
303
303
|
"%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)",
|
|
304
304
|
r
|
|
305
305
|
));
|
|
@@ -311,17 +311,17 @@ function Ae() {
|
|
|
311
311
|
}
|
|
312
312
|
function we() {
|
|
313
313
|
var e = a(this.type);
|
|
314
|
-
return
|
|
314
|
+
return ce[e] || (ce[e] = !0, console.error(
|
|
315
315
|
"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."
|
|
316
316
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function xe(e, r, t, n, c, u) {
|
|
319
319
|
return t = u.ref, e = {
|
|
320
|
-
$$typeof:
|
|
320
|
+
$$typeof: P,
|
|
321
321
|
type: e,
|
|
322
322
|
key: r,
|
|
323
323
|
props: u,
|
|
324
|
-
_owner:
|
|
324
|
+
_owner: c
|
|
325
325
|
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
326
326
|
enumerable: !1,
|
|
327
327
|
get: we
|
|
@@ -337,32 +337,32 @@ function Ae() {
|
|
|
337
337
|
value: null
|
|
338
338
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
if (typeof e == "string" || typeof e == "function" || e ===
|
|
340
|
+
function X(e, r, t, n, c, u) {
|
|
341
|
+
if (typeof e == "string" || typeof e == "function" || e === Y || e === Z || e === K || e === $ || e === W || e === pe || typeof e == "object" && e !== null && (e.$$typeof === V || e.$$typeof === U || e.$$typeof === Q || e.$$typeof === I || e.$$typeof === M || e.$$typeof === Te || e.getModuleId !== void 0)) {
|
|
342
342
|
var o = r.children;
|
|
343
343
|
if (o !== void 0)
|
|
344
344
|
if (n)
|
|
345
|
-
if (
|
|
345
|
+
if (z(o)) {
|
|
346
346
|
for (n = 0; n < o.length; n++)
|
|
347
|
-
|
|
347
|
+
B(o[n], e);
|
|
348
348
|
Object.freeze && Object.freeze(o);
|
|
349
349
|
} else
|
|
350
350
|
console.error(
|
|
351
351
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
352
352
|
);
|
|
353
|
-
else
|
|
353
|
+
else B(o, e);
|
|
354
354
|
} else
|
|
355
|
-
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" :
|
|
355
|
+
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : z(e) ? n = "array" : e !== void 0 && e.$$typeof === P ? (n = "<" + (a(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
|
|
356
356
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
357
357
|
n,
|
|
358
358
|
o
|
|
359
359
|
);
|
|
360
|
-
if (
|
|
360
|
+
if (ee.call(r, "key")) {
|
|
361
361
|
o = a(e);
|
|
362
|
-
var
|
|
362
|
+
var w = Object.keys(r).filter(function(f) {
|
|
363
363
|
return f !== "key";
|
|
364
364
|
});
|
|
365
|
-
n = 0 <
|
|
365
|
+
n = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", fe[o + n] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
366
366
|
`A props object containing a "key" prop is being spread into JSX:
|
|
367
367
|
let props = %s;
|
|
368
368
|
<%s {...props} />
|
|
@@ -371,46 +371,46 @@ React keys must be passed directly to JSX without using spread:
|
|
|
371
371
|
<%s key={someKey} {...props} />`,
|
|
372
372
|
n,
|
|
373
373
|
o,
|
|
374
|
-
|
|
374
|
+
w,
|
|
375
375
|
o
|
|
376
|
-
),
|
|
376
|
+
), fe[o + n] = !0);
|
|
377
377
|
}
|
|
378
|
-
if (o = null, t !== void 0 && (d(t), o = "" + t),
|
|
378
|
+
if (o = null, t !== void 0 && (d(t), o = "" + t), S(r) && (d(r.key), o = "" + r.key), "key" in r) {
|
|
379
379
|
t = {};
|
|
380
380
|
for (var T in r)
|
|
381
381
|
T !== "key" && (t[T] = r[T]);
|
|
382
382
|
} else t = r;
|
|
383
|
-
return o &&
|
|
383
|
+
return o && ge(
|
|
384
384
|
t,
|
|
385
385
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
386
|
-
),
|
|
386
|
+
), xe(e, o, u, c, s(), t);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function B(e, r) {
|
|
389
389
|
if (typeof e == "object" && e && e.$$typeof !== je) {
|
|
390
|
-
if (
|
|
390
|
+
if (z(e))
|
|
391
391
|
for (var t = 0; t < e.length; t++) {
|
|
392
392
|
var n = e[t];
|
|
393
|
-
|
|
393
|
+
N(n) && F(n, r);
|
|
394
394
|
}
|
|
395
|
-
else if (
|
|
395
|
+
else if (N(e))
|
|
396
396
|
e._store && (e._store.validated = 1);
|
|
397
|
-
else if (e === null || typeof e != "object" ? t = null : (t =
|
|
397
|
+
else if (e === null || typeof e != "object" ? t = null : (t = D && e[D] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
398
398
|
for (; !(e = t.next()).done; )
|
|
399
|
-
|
|
399
|
+
N(e.value) && F(e.value, r);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
402
|
+
function N(e) {
|
|
403
|
+
return typeof e == "object" && e !== null && e.$$typeof === P;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r =
|
|
407
|
-
|
|
405
|
+
function F(e, r) {
|
|
406
|
+
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Re(r), !de[r])) {
|
|
407
|
+
de[r] = !0;
|
|
408
408
|
var t = "";
|
|
409
409
|
e && e._owner != null && e._owner !== s() && (t = null, typeof e._owner.tag == "number" ? t = a(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
410
410
|
var n = _.getCurrentStack;
|
|
411
411
|
_.getCurrentStack = function() {
|
|
412
|
-
var
|
|
413
|
-
return n && (
|
|
412
|
+
var c = g(e.type);
|
|
413
|
+
return n && (c += n() || ""), c;
|
|
414
414
|
}, console.error(
|
|
415
415
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
416
416
|
r,
|
|
@@ -418,7 +418,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
418
418
|
), _.getCurrentStack = n;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Re(e) {
|
|
422
422
|
var r = "", t = s();
|
|
423
423
|
return t && (t = a(t.type)) && (r = `
|
|
424
424
|
|
|
@@ -426,29 +426,32 @@ Check the render method of \`` + t + "`."), r || (e = a(e)) && (r = `
|
|
|
426
426
|
|
|
427
427
|
Check the top-level render call using <` + e + ">."), r;
|
|
428
428
|
}
|
|
429
|
-
var ye = Ce,
|
|
429
|
+
var ye = Ce, P = Symbol.for("react.transitional.element"), _e = Symbol.for("react.portal"), Y = Symbol.for("react.fragment"), K = Symbol.for("react.strict_mode"), Z = Symbol.for("react.profiler"), I = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), pe = Symbol.for("react.offscreen"), D = Symbol.iterator, he = Symbol.for("react.client.reference"), _ = ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ee = Object.prototype.hasOwnProperty, p = Object.assign, Te = Symbol.for("react.client.reference"), z = Array.isArray, j = 0, re, te, oe, ne, ae, ue, ie;
|
|
430
430
|
E.__reactDisabledLog = !0;
|
|
431
|
-
var
|
|
432
|
-
O.Fragment =
|
|
433
|
-
return
|
|
434
|
-
}, O.jsxs = function(e, r, t, n,
|
|
435
|
-
return
|
|
431
|
+
var q, se, G = !1, J = new (typeof WeakMap == "function" ? WeakMap : Map)(), je = Symbol.for("react.client.reference"), le, ce = {}, fe = {}, de = {};
|
|
432
|
+
O.Fragment = Y, O.jsx = function(e, r, t, n, c) {
|
|
433
|
+
return X(e, r, t, !1, n, c);
|
|
434
|
+
}, O.jsxs = function(e, r, t, n, c) {
|
|
435
|
+
return X(e, r, t, !0, n, c);
|
|
436
436
|
};
|
|
437
437
|
}()), O;
|
|
438
438
|
}
|
|
439
|
-
process.env.NODE_ENV === "production" ?
|
|
440
|
-
var R =
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
const a = Oe(
|
|
439
|
+
process.env.NODE_ENV === "production" ? H.exports = Ae() : H.exports = Se();
|
|
440
|
+
var R = H.exports;
|
|
441
|
+
const be = ke(null), Me = (a) => /* @__PURE__ */ R.jsx(be.Provider, { value: a.router, children: a.children });
|
|
442
|
+
function me() {
|
|
443
|
+
const a = Oe(be);
|
|
444
444
|
if (!a)
|
|
445
445
|
throw new Error(
|
|
446
|
-
"[useRouter] Router not found.
|
|
446
|
+
"[useRouter] Router not found. Add RouterProvider in app root"
|
|
447
447
|
);
|
|
448
448
|
return a;
|
|
449
449
|
}
|
|
450
|
+
function Ne() {
|
|
451
|
+
return L(me());
|
|
452
|
+
}
|
|
450
453
|
function $e(a) {
|
|
451
|
-
const { to: v, params: d, onClick: E, ref: i, ...
|
|
454
|
+
const { to: v, params: d, onClick: E, ref: i, ...l } = a, { mappedRoutes: b } = me(), m = b.find(({ route: s }) => s === v), { onOpen: g } = L(v);
|
|
452
455
|
if (!m) {
|
|
453
456
|
const { internal: s } = v;
|
|
454
457
|
throw new Error(
|
|
@@ -458,39 +461,39 @@ function $e(a) {
|
|
|
458
461
|
return /* @__PURE__ */ R.jsx(
|
|
459
462
|
"a",
|
|
460
463
|
{
|
|
461
|
-
...
|
|
464
|
+
...l,
|
|
462
465
|
ref: i,
|
|
463
466
|
href: m.toPath(d ?? void 0),
|
|
464
467
|
onClick: (s) => {
|
|
465
|
-
E == null || E(s), !s.defaultPrevented && (
|
|
468
|
+
E == null || E(s), !s.defaultPrevented && (l.target && l.target !== "_self" || s.metaKey || s.altKey || s.ctrlKey || s.shiftKey || (s.preventDefault(), g({ params: d || {} })));
|
|
466
469
|
}
|
|
467
470
|
}
|
|
468
471
|
);
|
|
469
472
|
}
|
|
470
|
-
const
|
|
473
|
+
const We = (a) => ({
|
|
471
474
|
...a,
|
|
472
475
|
view: () => {
|
|
473
|
-
const { view: v, layout: d, route: E } = a, { isOpened: i } =
|
|
476
|
+
const { view: v, layout: d, route: E } = a, { isOpened: i } = L(E);
|
|
474
477
|
return i ? d ? /* @__PURE__ */ R.jsx(d, { children: /* @__PURE__ */ R.jsx(v, {}) }) : /* @__PURE__ */ R.jsx(v, {}) : null;
|
|
475
478
|
}
|
|
476
|
-
}),
|
|
479
|
+
}), Ue = (a) => {
|
|
477
480
|
const { routes: v, otherwise: d } = a;
|
|
478
481
|
return () => {
|
|
479
|
-
const E =
|
|
480
|
-
(
|
|
481
|
-
),
|
|
482
|
-
(
|
|
482
|
+
const { activeRoutes: E } = Ne(), i = E.reduce((g, s) => g.filter(
|
|
483
|
+
(S) => S !== s.internal.parent
|
|
484
|
+
), E), l = v.find(
|
|
485
|
+
(g) => g.route === i.at(-1)
|
|
483
486
|
);
|
|
484
|
-
if (!
|
|
487
|
+
if (!l)
|
|
485
488
|
return d ? /* @__PURE__ */ R.jsx(d, {}) : null;
|
|
486
|
-
const { view:
|
|
487
|
-
return
|
|
489
|
+
const { view: b, layout: m } = l;
|
|
490
|
+
return m ? /* @__PURE__ */ R.jsx(m, { children: /* @__PURE__ */ R.jsx(b, {}) }) : /* @__PURE__ */ R.jsx(b, {});
|
|
488
491
|
};
|
|
489
492
|
};
|
|
490
493
|
export {
|
|
491
494
|
$e as Link,
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
495
|
+
Me as RouterProvider,
|
|
496
|
+
We as createRouteView,
|
|
497
|
+
Ue as createRoutesView,
|
|
498
|
+
Ne as useRouter
|
|
496
499
|
};
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"registry": "https://registry.npmjs.org/"
|
|
6
6
|
},
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.3.0",
|
|
9
9
|
"description": "React bindings for argon router",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"effector",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "https://github.com/movpushmov/argon-router/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@argon-router/core": "^0.
|
|
47
|
+
"@argon-router/core": "^0.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/preset-react": "^7.26.3",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"react": "^19.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"effector": "
|
|
60
|
-
"effector-react": "
|
|
61
|
-
"react": "
|
|
59
|
+
"effector": ">=23",
|
|
60
|
+
"effector-react": ">=23",
|
|
61
|
+
"react": ">=19"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "e88d8139710e44cef5156366fe412eb222b6ba01"
|
|
64
64
|
}
|