@genesislcap/blank-app-seed 5.13.2 → 5.13.4

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed-config",
3
3
  "description": "Genesis Blank App Seed Configuration",
4
- "version": "5.13.2",
4
+ "version": "5.13.4",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -1,3 +1,4 @@
1
+ {{#if route.tiles}}
1
2
  import React, { useRef } from 'react';
2
3
  import { Layout, Model, TabNode } from 'flexlayout-react';
3
4
  import { getFlexLayoutStorageKey } from '../../utils/layout';
@@ -5,8 +6,10 @@ import { TileErrorBoundary } from '../../components/error-boundary/ErrorBoundary
5
6
  {{#each route.tiles}}
6
7
  import { {{pascalCase this.componentName}} } from './{{pascalCase this.title}}{{pascalCase this.componentType}}';
7
8
  {{/each}}
9
+ {{/if}}
8
10
  import './{{pascalCase route.name}}.css';
9
11
 
12
+ {{#if route.tiles}}
10
13
  const STORAGE_KEY = getFlexLayoutStorageKey('{{route.layoutKey}}');
11
14
 
12
15
  {{> (lookup ./route 'layoutType') }}
@@ -26,8 +29,10 @@ function loadModel(): Model {
26
29
  }
27
30
  return Model.fromJson(defaultLayout);
28
31
  }
32
+ {{/if}}
29
33
 
30
34
  const {{pascalCase route.name}} = () => {
35
+ {{#if route.tiles}}
31
36
  const modelRef = useRef<Model>(loadModel());
32
37
 
33
38
  const factory = (node: TabNode) => {
@@ -47,6 +52,7 @@ const {{pascalCase route.name}} = () => {
47
52
  localStorage.setItem(STORAGE_KEY, JSON.stringify(model.toJson()));
48
53
  }
49
54
  };
55
+ {{/if}}
50
56
 
51
57
  return (
52
58
  <section className="{{kebabCase route.name}}-page">
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.13.4](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.13.3...v5.13.4) (2026-05-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * guard Navigate import in AppRoutes when no routes are defined GENC-0 84d5b33
9
+ * guard tile-only declarations in route template GENC-0 de6efd9
10
+ * more react template guards for empty routes/tiles GENC-0 (#579) c88d1a5
11
+
12
+ ## [5.13.3](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.13.2...v5.13.3) (2026-05-28)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * drop composite/tsBuildInfoFile + explicit src glob in react tsconfig bced9bc
18
+ * gracefully handle no routes in react template GENC-0 c961415
19
+ * small tweaks for react setup GENC-0 (#578) 03c9272
20
+
3
21
  ## [5.13.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.13.1...v5.13.2) (2026-05-25)
4
22
 
5
23
 
@@ -1,4 +1,4 @@
1
- import { Routes, Route, Navigate } from 'react-router-dom';
1
+ import { Routes, Route{{#if routes.[0]}}, Navigate{{/if}} } from 'react-router-dom';
2
2
  import AuthPage from '../../pages/AuthPage/AuthPage';
3
3
  {{#if routes.[0]}}
4
4
  import {{pascalCase routes.[0].name}} from '../../pages/{{pascalCase routes.[0].name}}/{{pascalCase routes.[0].name}}';
@@ -14,9 +14,13 @@ const AppRoutes = () => {
14
14
  return (
15
15
  <Routes>
16
16
  <Route path="/login" element={<AuthPage />} />
17
+ {{#if routes.[0]}}
17
18
  <Route path="/" element={<Navigate to="/{{kebabCase routes.[0].name}}" replace />} />
19
+ {{/if}}
18
20
  <Route element={<DefaultLayout />}>
21
+ {{#if routes.[0]}}
19
22
  <Route path="/" element={<{{pascalCase routes.[0].name}} />} />
23
+ {{/if}}
20
24
  {routes.map(route => (<Route
21
25
  key={route.path}
22
26
  path={route.path}
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
- "include": ["src" , "src/**/*.d.ts"],
3
+ "include": ["src/**/*", "src/**/*.d.ts"],
4
4
  }
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "composite": true,
4
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
3
  "target": "ES2020",
6
4
  "useDefineForClassFields": false,
7
5
  "lib": ["ES2020", "DOM", "DOM.Iterable"],
@@ -27,8 +25,8 @@
27
25
  "emitDecoratorMetadata": true
28
26
  },
29
27
  "include": [
30
- "src" ,
31
- "src/**/*.d.ts",
28
+ "src/**/*",
29
+ "src/**/*.d.ts",
32
30
  "src/pbc/**/*.ts",
33
31
  ],
34
32
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "5.13.2",
4
+ "version": "5.13.4",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"