@trackunit/iris-app 1.14.12 → 1.15.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/CHANGELOG.md +19 -0
- package/package.json +3 -3
- package/src/generators/extend/dependencies.d.ts +1 -0
- package/src/generators/extend/dependencies.js +1 -0
- package/src/generators/extend/files/react-app/src/index.tsx__template__ +6 -4
- package/src/generators/extend/files/react-app/src/router.tsx__template__ +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 1.15.0 (2026-03-25)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **iris-app:** GLU-747 generate extensions with Tanstack router ([62968a37838](https://github.com/Trackunit/manager/commit/62968a37838))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Mikkel Thorbjørn Andersen
|
|
10
|
+
|
|
11
|
+
## 1.14.13 (2026-03-25)
|
|
12
|
+
|
|
13
|
+
### 🧱 Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated iris-app-build-utilities to 1.13.13
|
|
16
|
+
- Updated iris-app-api to 1.15.11
|
|
17
|
+
- Updated react-test-setup to 1.8.79
|
|
18
|
+
- Updated shared-utils to 1.13.79
|
|
19
|
+
|
|
1
20
|
## 1.14.12 (2026-03-25)
|
|
2
21
|
|
|
3
22
|
### 🧱 Updated Dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"generators": "./generators.json",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@nx/react": "22.4.4",
|
|
24
24
|
"@npmcli/arborist": "^9.1.9",
|
|
25
25
|
"win-ca": "^3.5.1",
|
|
26
|
-
"@trackunit/shared-utils": "1.13.
|
|
27
|
-
"@trackunit/iris-app-api": "1.15.
|
|
26
|
+
"@trackunit/shared-utils": "1.13.79",
|
|
27
|
+
"@trackunit/iris-app-api": "1.15.11",
|
|
28
28
|
"tslib": "^2.6.2",
|
|
29
29
|
"@clack/prompts": "^1.0.0",
|
|
30
30
|
"@npm/types": "^1.0.2",
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import "@trackunit/css-core";
|
|
2
|
+
import { RouterProvider } from "@tanstack/react-router";
|
|
3
|
+
import { RouterRuntime } from "@trackunit/iris-app-runtime-core";
|
|
4
|
+
import { TrackunitProviders } from "@trackunit/react-core-contexts";
|
|
1
5
|
import React from "react";
|
|
2
6
|
import ReactDOMClient from "react-dom/client";
|
|
3
7
|
import singleSpaReact from "single-spa-react";
|
|
4
|
-
import {
|
|
5
|
-
import "@trackunit/css-core";
|
|
6
|
-
import { App } from "./app";
|
|
8
|
+
import { router } from "./router";
|
|
7
9
|
|
|
8
10
|
const RootComponent = () => (
|
|
9
11
|
<TrackunitProviders>
|
|
10
|
-
<
|
|
12
|
+
<RouterProvider basepath={RouterRuntime.getBasePath()} router={router} />
|
|
11
13
|
</TrackunitProviders>
|
|
12
14
|
);
|
|
13
15
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Navigate, createRootRoute, createRoute, createRouter } from "@tanstack/react-router";
|
|
2
|
+
import { App } from "./app";
|
|
3
|
+
|
|
4
|
+
const rootRoute = createRootRoute({
|
|
5
|
+
component: () => <App />,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const defaultRoute = createRoute({
|
|
9
|
+
getParentRoute: () => rootRoute,
|
|
10
|
+
path: "/",
|
|
11
|
+
component: () => <Navigate to="/" />,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const routeTree = rootRoute.addChildren([defaultRoute]);
|
|
15
|
+
export const router = createRouter({
|
|
16
|
+
routeTree,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
declare module "@tanstack/react-router" {
|
|
20
|
+
interface Register {
|
|
21
|
+
router: typeof router;
|
|
22
|
+
}
|
|
23
|
+
}
|