@trackunit/react-router-components 2.0.24 → 2.0.26

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 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.routesById[onlyFromId]?.fullPath;
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.routesById[onlyFromId]?.fullPath;
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
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/router-components/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@trackunit/react-router-components",
3
- "version": "2.0.24",
3
+ "version": "2.0.26",
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.64",
11
- "@trackunit/i18n-library-translation": "^2.14.62",
12
- "@trackunit/react-components": "^8.0.12",
13
- "@trackunit/react-drawer": "^3.0.24",
14
- "@trackunit/shared-utils": "^1.22.64",
10
+ "@trackunit/css-class-variance-utilities": "^2.6.65",
11
+ "@trackunit/i18n-library-translation": "^2.14.63",
12
+ "@trackunit/react-components": "^8.0.14",
13
+ "@trackunit/react-drawer": "^3.0.26",
14
+ "@trackunit/shared-utils": "^1.22.65",
15
15
  "dequal": "^2.0.3",
16
16
  "zod": "^3.25.76"
17
17
  },