@genesislcap/blank-app-seed 3.29.2 → 3.30.0-prerelease.10

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.
Files changed (73) hide show
  1. package/.genx/package.json +1 -1
  2. package/.genx/scripts/update-versions.js +45 -15
  3. package/.genx/templates/angular/entityManager.hbs +3 -0
  4. package/.genx/templates/angular/route.hbs +0 -1
  5. package/.genx/templates/react/chart.hbs +9 -1
  6. package/.genx/templates/react/component/component.column.defs.hbs +4 -2
  7. package/.genx/templates/react/component/component.create.form.hbs +2 -2
  8. package/.genx/templates/react/component/component.gridOptions.hbs +5 -3
  9. package/.genx/templates/react/component/component.hbs +65 -20
  10. package/.genx/templates/react/component/component.index.hbs +1 -1
  11. package/.genx/templates/react/component/component.update.form.hbs +1 -1
  12. package/.genx/templates/react/entityManager.hbs +63 -43
  13. package/.genx/templates/react/form.hbs +9 -1
  14. package/.genx/templates/react/grid.hbs +23 -7
  15. package/.genx/templates/react/gridLayout.hbs +28 -28
  16. package/.genx/templates/react/horizontalLayout.hbs +5 -5
  17. package/.genx/templates/react/route.hbs +4 -19
  18. package/.genx/templates/react/tabsLayout.hbs +5 -5
  19. package/.genx/templates/web-components/entityManager.hbs +3 -0
  20. package/.genx/utils/formatRouteData.js +1 -1
  21. package/.genx/utils/generateRoute.js +8 -7
  22. package/.genx/utils/generateTile.js +31 -15
  23. package/.genx/versions.json +3 -3
  24. package/.github/pull_request_template.md +1 -1
  25. package/.github/workflows/build.yml +3 -2
  26. package/.github/workflows/slack.yml +1 -1
  27. package/.github/workflows/upgrade.yml +6 -1
  28. package/.github/workflows/upgrade_prerelease.yml +1 -0
  29. package/.idea/modules.xml +6 -6
  30. package/CHANGELOG.md +165 -4
  31. package/client-tmp/react/.babelrc +10 -0
  32. package/client-tmp/react/.eslintrc.cjs +4 -1
  33. package/client-tmp/react/env.development.json +3 -0
  34. package/client-tmp/react/index.html +1 -1
  35. package/client-tmp/react/jest.config.ts +15 -0
  36. package/client-tmp/react/jest.setup.ts +1 -0
  37. package/client-tmp/react/lint-css.ts +19 -0
  38. package/client-tmp/react/package.json +42 -6
  39. package/client-tmp/react/playwright.config.ts +17 -0
  40. package/client-tmp/react/src/App.tsx +34 -7
  41. package/client-tmp/react/src/components/ErrorMessage/ErrorMessage.test.tsx +95 -0
  42. package/client-tmp/react/src/components/ErrorMessage/ErrorMessage.tsx +67 -0
  43. package/client-tmp/react/src/config.ts +2 -1
  44. package/client-tmp/react/src/custom-elements.d.ts +19 -9
  45. package/client-tmp/react/src/guards/AuthGuard.tsx +1 -1
  46. package/client-tmp/react/src/guards/PermissionsGuard.tsx +37 -0
  47. package/client-tmp/react/src/index.ts +21 -0
  48. package/client-tmp/react/src/pages/AuthPage/AuthPage.test.tsx +10 -0
  49. package/client-tmp/react/src/pages/{auth/AuthPage.jsx → AuthPage/AuthPage.tsx} +3 -2
  50. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.css +0 -0
  51. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.test.tsx +17 -0
  52. package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.tsx +14 -0
  53. package/client-tmp/react/src/{reportWebVitals.js → reportWebVitals.ts} +1 -1
  54. package/client-tmp/react/src/share/foundation-login.ts +1 -1
  55. package/client-tmp/react/src/svg-elements.d.ts +1 -1
  56. package/client-tmp/react/src/utils/fdc3.ts +32 -0
  57. package/client-tmp/react/src/utils/history.ts +1 -3
  58. package/client-tmp/react/src/utils/index.ts +4 -0
  59. package/client-tmp/react/src/utils/permissions.ts +7 -0
  60. package/client-tmp/react/src/utils/setApiHost.ts +9 -0
  61. package/client-tmp/react/test/e2e/fixture.ts +26 -0
  62. package/client-tmp/react/test/e2e/flows/001-protected.e2e.ts +6 -0
  63. package/client-tmp/react/test/e2e/index.ts +2 -0
  64. package/client-tmp/react/test/e2e/pages/index.ts +1 -0
  65. package/client-tmp/react/test/e2e/pages/protected.ts +16 -0
  66. package/client-tmp/react/tsconfig.app.json +2 -5
  67. package/client-tmp/react/tsconfig.json +4 -1
  68. package/client-tmp/react/vite.config.ts +57 -12
  69. package/package.json +1 -1
  70. package/server/settings.gradle.kts +2 -2
  71. package/client-tmp/react/src/index.js +0 -17
  72. /package/client-tmp/react/src/pages/{auth → AuthPage}/AuthPage.css +0 -0
  73. /package/client-tmp/react/src/{setupTests.js → setupTests.ts} +0 -0
@@ -1,14 +1,59 @@
1
- import { defineConfig } from 'vite';
1
+ import { fileURLToPath } from 'node:url';
2
+ import { resolve, dirname } from 'path';
3
+ import { defineConfig, UserConfig } from 'vite';
4
+ import fs from 'fs';
2
5
  import react from '@vitejs/plugin-react';
3
- import { resolve } from 'path';
4
-
5
- export default defineConfig({
6
- plugins: [
7
- react(),
8
- ],
9
- resolve: {
10
- alias: {
11
- 'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
6
+ import visualizer from 'rollup-plugin-visualizer';
7
+
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+
10
+ export default defineConfig(({ mode }: { mode: string }): UserConfig => {
11
+ const https: boolean = process.env.HTTPS === 'true';
12
+ const open: boolean = !(process.env.NO_OPEN === 'true');
13
+ const jsonFilePath: string = resolve(process.cwd(), `env.${mode}.json`);
14
+ const envConfig: Record<string, string> = {};
15
+
16
+ if (fs.existsSync(jsonFilePath)) {
17
+ const jsonContent: string = fs.readFileSync(jsonFilePath, 'utf-8');
18
+ const parsedConfig: Record<string, any> = JSON.parse(jsonContent);
19
+
20
+ for (const key in parsedConfig) {
21
+ envConfig[`import.meta.env.${key}`] = JSON.stringify(parsedConfig[key]);
22
+ }
23
+ }
24
+
25
+ const config: UserConfig = {
26
+ define: envConfig,
27
+ server: {
28
+ https,
29
+ open,
30
+ },
31
+ plugins: [
32
+ react(),
33
+ ],
34
+ build: {
35
+ rollupOptions: {
36
+ plugins: []
37
+ }
12
38
  },
13
- },
14
- });
39
+ resolve: {
40
+ alias: {
41
+ 'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
42
+ },
43
+ },
44
+ };
45
+
46
+ if (mode === 'stats') {
47
+ config.build.rollupOptions.plugins.push(
48
+ visualizer({
49
+ template: 'raw-data',
50
+ filename: 'stats.json',
51
+ open: true,
52
+ gzipSize: true,
53
+ brotliSize: true,
54
+ })
55
+ );
56
+ }
57
+
58
+ return config;
59
+ });
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.29.2",
4
+ "version": "3.30.0-prerelease.10",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"
@@ -1,5 +1,3 @@
1
- rootProject.name = "genesisproduct-{{appName}}"
2
-
3
1
  pluginManagement {
4
2
  pluginManagement {
5
3
  val genesisVersion: String by settings
@@ -38,6 +36,8 @@ plugins {
38
36
  }
39
37
 
40
38
  genesis {
39
+ productName = "{{appName}}"
40
+
41
41
  dependencies {
42
42
  dependency("global.genesis:auth:${extra.properties["authVersion"]}")
43
43
 
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
3
- import './styles/styles.css';
4
- import App from './App';
5
- import reportWebVitals from './reportWebVitals';
6
-
7
- const root = ReactDOM.createRoot(document.getElementById('root'));
8
- root.render(
9
- <React.StrictMode>
10
- <App />
11
- </React.StrictMode>,
12
- );
13
-
14
- // If you want to start measuring performance in your app, pass a function
15
- // to log results (for example: reportWebVitals(console.log))
16
- // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17
- reportWebVitals();