@genesislcap/blank-app-seed 3.30.0-prerelease.27 → 3.30.0-prerelease.29

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": "3.30.0-prerelease.27",
4
+ "version": "3.30.0-prerelease.29",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -1,4 +1,5 @@
1
1
  import './{{pascalCase route.name}}.css';
2
+ import { persistLayout } from '../../utils';
2
3
  {{#each route.tiles}}
3
4
  import { {{pascalCase this.componentName}} } from './{{pascalCase this.title}}{{pascalCase this.componentType}}';
4
5
  {{/each}}
@@ -7,7 +8,7 @@ const {{pascalCase route.name}} = () => {
7
8
  return (
8
9
  <section className="{{kebabCase route.name}}-page">
9
10
  {{#if route.tiles}}
10
- <rapid-layout auto-save-key={process.env.NODE_ENV === 'production' ? "{{route.layoutKey}}" : null}>
11
+ <rapid-layout auto-save-key={persistLayout('{{route.layoutKey}}')}>
11
12
  {{> (lookup ./route 'layoutType') }}
12
13
  </rapid-layout>
13
14
  {{else}}
@@ -1,5 +1,5 @@
1
- import { isDev } from '@genesislcap/foundation-utils';
2
1
  import { html } from '@genesislcap/web-core';
2
+ import { persistLayout } from '../../utils';
3
3
  import type { {{pascalCase route.name}} } from './{{kebabCase route.name}}';
4
4
  {{#each route.tiles}}
5
5
  import { {{pascalCase this.componentName}} } from './{{kebabCase this.title}}-{{this.componentType}}';
@@ -11,7 +11,7 @@ import { {{pascalCase this.componentName}} } from './{{kebabCase this.title}}-{{
11
11
 
12
12
  export const {{pascalCase route.name}}Template = html<{{pascalCase route.name}}>`
13
13
  {{#if route.tiles}}
14
- <rapid-layout auto-save-key="${() => (isDev() ? null : '{{route.layoutKey}}')}">
14
+ <rapid-layout auto-save-key="${() => persistLayout('{{route.layoutKey}}')}">
15
15
  {{> (lookup ./route 'layoutType') }}
16
16
  </rapid-layout>
17
17
  {{else}}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.30.0-prerelease.29](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.28...v3.30.0-prerelease.29) (2024-10-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * update react version (#358) 22bb0ad
9
+
10
+ ## [3.30.0-prerelease.28](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.27...v3.30.0-prerelease.28) (2024-10-18)
11
+
12
+
13
+ ### Features
14
+
15
+ * allow to simply control layout persistence in dev [FUI-2211](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/2211) / GENC-871 (#363) c6fd6f5
16
+
3
17
  ## [3.30.0-prerelease.27](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.26...v3.30.0-prerelease.27) (2024-10-17)
4
18
 
5
19
 
@@ -2,6 +2,9 @@
2
2
  "name": "{{pkgName}}",
3
3
  "version": "{{applicationVersionWeb}}",
4
4
  "private": true,
5
+ "config": {
6
+ "PERSIST_LAYOUT_IN_DEV": false
7
+ },
5
8
  "scripts": {
6
9
  "baseline": "npm run clean && npm run bootstrap",
7
10
  "bootstrap": "npm i --legacy-peer-deps",
@@ -53,8 +56,8 @@
53
56
  "@genesislcap/web-core": "{{versions.UI}}",
54
57
  "@genesislcap/g2plot-chart": "{{versions.UI}}",
55
58
  "history": "^5.3.0",
56
- "react": "^19.0.0-beta-94eed63c49-20240425",
57
- "react-dom": "^19.0.0-beta-94eed63c49-20240425",
59
+ "react": "^19.0.0-rc-ed966dac-20241007",
60
+ "react-dom": "^19.0.0-rc-ed966dac-20241007",
58
61
  "react-router-dom": "6.24.1",
59
62
  "web-vitals": "^2.1.4"
60
63
  },
@@ -1,5 +1,6 @@
1
1
  export * from './history';
2
2
  export * from './fdc3';
3
+ export * from './layout';
3
4
  export * from './permissions';
4
5
  export * from './setApiHost';
5
6
  export * from './getLayoutNameByRoute';
@@ -0,0 +1,11 @@
1
+ import { isDev } from '@genesislcap/foundation-utils';
2
+ import pkg from '../../package.json';
3
+
4
+ // returning null disables caching
5
+ // returning an id (as long as it's not null) enables caching
6
+ export const persistLayout = (id: string) => {
7
+ if (isDev() && (pkg as any)?.config.PERSIST_LAYOUT_IN_DEV !== true) {
8
+ return null;
9
+ }
10
+ return id;
11
+ };
@@ -7,7 +7,8 @@
7
7
  "config": {
8
8
  "API_HOST": "{{apiHost}}",
9
9
  "PORT": 6060,
10
- "ENABLE_SSO": {{enableSSO}}
10
+ "ENABLE_SSO": {{enableSSO}},
11
+ "PERSIST_LAYOUT_IN_DEV": false
11
12
  },
12
13
  "genx": {
13
14
  "app": {
@@ -1,3 +1,4 @@
1
1
  export * from './fdc3';
2
+ export * from './layout';
2
3
  export * from './logger';
3
4
  export * from './permissions';
@@ -0,0 +1,11 @@
1
+ import { isDev } from '@genesislcap/foundation-utils';
2
+ import pkg from '../../package.json';
3
+
4
+ // returning null disables caching
5
+ // returning an id (as long as it's not null) enables caching
6
+ export const persistLayout = (id: string) => {
7
+ if (isDev() && (pkg as any)?.config.PERSIST_LAYOUT_IN_DEV !== true) {
8
+ return null;
9
+ }
10
+ return id;
11
+ };
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "declarationDir": "./dist/dts",
20
20
  "outDir": "./dist/esm",
21
- "rootDir": "./src",
21
+ "rootDir": ".",
22
22
  "allowJs": true,
23
23
  "allowSyntheticDefaultImports": true,
24
24
  "declaration": true,
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": "3.30.0-prerelease.27",
4
+ "version": "3.30.0-prerelease.29",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"