@trackunit/react-router-components 2.0.23 → 2.0.25
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +6 -6
- package/migrations/entry.js.map +0 -1
package/index.cjs.js
CHANGED
|
@@ -971,7 +971,7 @@ const useRouterSelection = ({ from, param, paramKind = "search", onBeforeClose,
|
|
|
971
971
|
return undefined;
|
|
972
972
|
}
|
|
973
973
|
const [onlyFromId, ...otherFromIds] = fromIdsRef.current;
|
|
974
|
-
const onlyFromPath = onlyFromId === undefined ? undefined : latestRouter.
|
|
974
|
+
const onlyFromPath = onlyFromId === undefined ? undefined : latestRouter.looseRoutesById[onlyFromId]?.fullPath;
|
|
975
975
|
if (onlyFromPath === undefined || otherFromIds.length > 0) {
|
|
976
976
|
throw new Error(`useRouterDrawer: opening "${param}" from closed needs a single "from" route id to navigate to; got ${JSON.stringify(fromIdsRef.current)}.`);
|
|
977
977
|
}
|
package/index.esm.js
CHANGED
|
@@ -969,7 +969,7 @@ const useRouterSelection = ({ from, param, paramKind = "search", onBeforeClose,
|
|
|
969
969
|
return undefined;
|
|
970
970
|
}
|
|
971
971
|
const [onlyFromId, ...otherFromIds] = fromIdsRef.current;
|
|
972
|
-
const onlyFromPath = onlyFromId === undefined ? undefined : latestRouter.
|
|
972
|
+
const onlyFromPath = onlyFromId === undefined ? undefined : latestRouter.looseRoutesById[onlyFromId]?.fullPath;
|
|
973
973
|
if (onlyFromPath === undefined || otherFromIds.length > 0) {
|
|
974
974
|
throw new Error(`useRouterDrawer: opening "${param}" from closed needs a single "from" route id to navigate to; got ${JSON.stringify(fromIdsRef.current)}.`);
|
|
975
975
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-router-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/css-class-variance-utilities": "^2.6.
|
|
11
|
-
"@trackunit/i18n-library-translation": "^2.14.
|
|
12
|
-
"@trackunit/react-components": "^8.0.
|
|
13
|
-
"@trackunit/react-drawer": "^3.0.
|
|
14
|
-
"@trackunit/shared-utils": "^1.22.
|
|
10
|
+
"@trackunit/css-class-variance-utilities": "^2.6.65",
|
|
11
|
+
"@trackunit/i18n-library-translation": "^2.14.63",
|
|
12
|
+
"@trackunit/react-components": "^8.0.13",
|
|
13
|
+
"@trackunit/react-drawer": "^3.0.25",
|
|
14
|
+
"@trackunit/shared-utils": "^1.22.65",
|
|
15
15
|
"dequal": "^2.0.3",
|
|
16
16
|
"zod": "^3.25.76"
|
|
17
17
|
},
|
package/migrations/entry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/router-components/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|