@shellui/core 0.5.0-alpha.1 → 0.5.0-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shellui/core",
3
- "version": "0.5.0-alpha.1",
3
+ "version": "0.5.0-alpha.2",
4
4
  "description": "ShellUI Core - Core React application runtime",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -70,7 +70,7 @@
70
70
  "workbox-routing": "^7.4.0",
71
71
  "workbox-strategies": "^7.4.0",
72
72
  "workbox-window": "^7.4.0",
73
- "@shellui/sdk": "0.5.0-alpha.1"
73
+ "@shellui/sdk": "0.5.0-alpha.2"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^18.0.0 || ^19.0.0",
@@ -186,6 +186,8 @@ export const createRoutes = (config: ShellUIConfig): RouteObject[] => {
186
186
 
187
187
  // Root app (/ and /:deep): pathless parent + index/* children so ContentView does not
188
188
  // remount when moving between / and /layout (that remount was wiping shell history).
189
+ // Leaf children need an element (even null) or React Router warns and renders an empty
190
+ // Outlet — IndexRoute itself paints the iframe; the leaves only keep the parent matched.
189
191
  // Without a root nav item, index still uses IndexRoute (HomeView / start_url).
190
192
  if (hasRootNavItem) {
191
193
  (layoutRoute.children as RouteObject[]).push({
@@ -194,7 +196,10 @@ export const createRoutes = (config: ShellUIConfig): RouteObject[] => {
194
196
  <IndexRoute />
195
197
  </Suspense>
196
198
  ),
197
- children: [{ index: true }, { path: '*' }],
199
+ children: [
200
+ { index: true, element: null },
201
+ { path: '*', element: null },
202
+ ],
198
203
  });
199
204
  } else {
200
205
  (layoutRoute.children as RouteObject[]).push({