@trackunit/react-core-contexts-test 1.21.3-alpha-b0d834f66ac.0 → 1.21.3
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/index2.cjs.js +8 -10
- package/index2.esm.js +8 -10
- package/package.json +4 -4
- package/migrations/entry.js.map +0 -1
package/index2.cjs.js
CHANGED
|
@@ -13707,15 +13707,13 @@ const RerenderComponent = ({ children }) => {
|
|
|
13707
13707
|
: child) }));
|
|
13708
13708
|
};
|
|
13709
13709
|
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
|
|
13717
|
-
});
|
|
13718
|
-
return routeMap;
|
|
13710
|
+
/**
|
|
13711
|
+
* TanStack only assigns `route.id` when a router builds the tree, so a hand-built tree
|
|
13712
|
+
* (`createRootRoute` + `createRoute`) has no ids yet. A throwaway router on its own memory history
|
|
13713
|
+
* assigns them without touching the history the test router uses.
|
|
13714
|
+
*/
|
|
13715
|
+
const buildFlatRouteMap = (rootRoute) => {
|
|
13716
|
+
return reactRouter.createRouter({ routeTree: rootRoute, history: reactRouter.createMemoryHistory() }).routesById;
|
|
13719
13717
|
};
|
|
13720
13718
|
/**
|
|
13721
13719
|
* This component is used to wrap the children of the RouterContainer to add a test root container
|
|
@@ -13811,7 +13809,7 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13811
13809
|
localRootRoute = route;
|
|
13812
13810
|
}
|
|
13813
13811
|
else {
|
|
13814
|
-
const pathsToRoute = buildFlatRouteMap(
|
|
13812
|
+
const pathsToRoute = buildFlatRouteMap(localRootRoute);
|
|
13815
13813
|
sharedUtils.objectValues(pathsToRoute).forEach(route => {
|
|
13816
13814
|
route.options.component = RootRouteDebugger;
|
|
13817
13815
|
route.lazyFn = undefined;
|
package/index2.esm.js
CHANGED
|
@@ -13685,15 +13685,13 @@ const RerenderComponent = ({ children }) => {
|
|
|
13685
13685
|
: child) }));
|
|
13686
13686
|
};
|
|
13687
13687
|
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13692
|
-
|
|
13693
|
-
|
|
13694
|
-
|
|
13695
|
-
});
|
|
13696
|
-
return routeMap;
|
|
13688
|
+
/**
|
|
13689
|
+
* TanStack only assigns `route.id` when a router builds the tree, so a hand-built tree
|
|
13690
|
+
* (`createRootRoute` + `createRoute`) has no ids yet. A throwaway router on its own memory history
|
|
13691
|
+
* assigns them without touching the history the test router uses.
|
|
13692
|
+
*/
|
|
13693
|
+
const buildFlatRouteMap = (rootRoute) => {
|
|
13694
|
+
return createRouter({ routeTree: rootRoute, history: createMemoryHistory() }).routesById;
|
|
13697
13695
|
};
|
|
13698
13696
|
/**
|
|
13699
13697
|
* This component is used to wrap the children of the RouterContainer to add a test root container
|
|
@@ -13789,7 +13787,7 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13789
13787
|
localRootRoute = route;
|
|
13790
13788
|
}
|
|
13791
13789
|
else {
|
|
13792
|
-
const pathsToRoute = buildFlatRouteMap(
|
|
13790
|
+
const pathsToRoute = buildFlatRouteMap(localRootRoute);
|
|
13793
13791
|
objectValues(pathsToRoute).forEach(route => {
|
|
13794
13792
|
route.options.component = RootRouteDebugger;
|
|
13795
13793
|
route.lazyFn = undefined;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.21.3
|
|
3
|
+
"version": "1.21.3",
|
|
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/shared-utils": "1.18.3
|
|
10
|
+
"@trackunit/shared-utils": "1.18.3",
|
|
11
11
|
"@tanstack/router-core": "1.114.29",
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "1.20.3
|
|
13
|
-
"@trackunit/react-core-contexts-api": "1.21.3
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "1.20.3",
|
|
13
|
+
"@trackunit/react-core-contexts-api": "1.21.3",
|
|
14
14
|
"es-toolkit": "^1.52.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
package/migrations/entry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/core-contexts-test/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
|