create-bluecopa-react-app 1.0.41 → 1.0.42

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 (102) hide show
  1. package/README.md +7 -5
  2. package/package.json +1 -1
  3. package/templates/latest/.claude/settings.local.json +56 -0
  4. package/templates/latest/.env.example +8 -0
  5. package/templates/latest/Agent.md +598 -775
  6. package/templates/latest/CLAUDE.md +759 -0
  7. package/templates/latest/README.md +11 -2
  8. package/templates/latest/app/app.css +292 -85
  9. package/templates/latest/app/app.tsx +48 -39
  10. package/templates/latest/app/components/bluecopa-logo.tsx +20 -0
  11. package/templates/latest/app/components/charts/bar-chart.tsx +132 -0
  12. package/templates/latest/app/components/charts/base-chart.tsx +149 -0
  13. package/templates/latest/app/components/charts/chart-provider.tsx +71 -0
  14. package/templates/latest/app/components/charts/chart-theme.ts +262 -0
  15. package/templates/latest/app/components/charts/chart-utils.ts +142 -0
  16. package/templates/latest/app/components/charts/donut-chart.tsx +110 -0
  17. package/templates/latest/app/components/charts/index.ts +5 -0
  18. package/templates/latest/app/components/layouts/app-layout.tsx +22 -0
  19. package/templates/latest/app/components/layouts/app-sidebar.tsx +88 -0
  20. package/templates/latest/app/components/layouts/nav-main.tsx +50 -0
  21. package/templates/latest/app/components/layouts/nav-user.tsx +38 -0
  22. package/templates/latest/app/components/layouts/site-header.tsx +93 -0
  23. package/templates/latest/app/components/loading-screen.tsx +41 -0
  24. package/templates/latest/app/components/ui/ag-grid-table.tsx +79 -0
  25. package/templates/latest/app/components/ui/button.tsx +23 -23
  26. package/templates/latest/app/components/ui/card.tsx +20 -20
  27. package/templates/latest/app/components/ui/dropdown-menu.tsx +54 -49
  28. package/templates/latest/app/components/ui/input.tsx +8 -8
  29. package/templates/latest/app/components/ui/label.tsx +8 -8
  30. package/templates/latest/app/components/ui/separator.tsx +7 -7
  31. package/templates/latest/app/components/ui/sheet.tsx +43 -32
  32. package/templates/latest/app/components/ui/sidebar.tsx +240 -235
  33. package/templates/latest/app/components/ui/skeleton.tsx +4 -4
  34. package/templates/latest/app/components/ui/sonner.tsx +6 -9
  35. package/templates/latest/app/components/ui/tabs.tsx +15 -15
  36. package/templates/latest/app/components/ui/tooltip.tsx +18 -12
  37. package/templates/latest/app/constants/index.ts +31 -0
  38. package/templates/latest/app/contexts/app-context.tsx +201 -0
  39. package/templates/latest/app/hooks/use-mobile.ts +13 -12
  40. package/templates/latest/app/main.tsx +1 -1
  41. package/templates/latest/app/pages/dashboard.tsx +246 -0
  42. package/templates/latest/app/pages/payments.tsx +182 -0
  43. package/templates/latest/app/pages/settings.tsx +128 -0
  44. package/templates/latest/app/routes/index.tsx +19 -0
  45. package/templates/latest/app/single-spa.tsx +69 -186
  46. package/templates/latest/app/types/index.ts +37 -0
  47. package/templates/latest/app/utils/ag-grid-datasource.ts +63 -0
  48. package/templates/latest/app/utils/ag-grid-license.ts +12 -0
  49. package/templates/latest/app/utils/ag-grid-theme.ts +9 -0
  50. package/templates/latest/app/utils/component-style.ts +7 -0
  51. package/templates/latest/app/utils/style-drivers.ts +24 -0
  52. package/templates/latest/app/utils/utils.ts +10 -0
  53. package/templates/latest/components.json +3 -3
  54. package/templates/latest/index.html +30 -2
  55. package/templates/latest/package-lock.json +15 -401
  56. package/templates/latest/package.json +8 -18
  57. package/templates/latest/preview/index.html +125 -285
  58. package/templates/latest/public/favicon.svg +1 -0
  59. package/templates/latest/vite.config.ts +2 -8
  60. package/templates/latest/app/components/app-sidebar.tsx +0 -182
  61. package/templates/latest/app/components/chart-area-interactive.tsx +0 -290
  62. package/templates/latest/app/components/data-table.tsx +0 -807
  63. package/templates/latest/app/components/nav-documents.tsx +0 -92
  64. package/templates/latest/app/components/nav-main.tsx +0 -40
  65. package/templates/latest/app/components/nav-secondary.tsx +0 -42
  66. package/templates/latest/app/components/nav-user.tsx +0 -111
  67. package/templates/latest/app/components/section-cards.tsx +0 -102
  68. package/templates/latest/app/components/site-header.tsx +0 -28
  69. package/templates/latest/app/components/ui/avatar.tsx +0 -53
  70. package/templates/latest/app/components/ui/badge.tsx +0 -46
  71. package/templates/latest/app/components/ui/breadcrumb.tsx +0 -109
  72. package/templates/latest/app/components/ui/chart.tsx +0 -352
  73. package/templates/latest/app/components/ui/checkbox.tsx +0 -30
  74. package/templates/latest/app/components/ui/drawer.tsx +0 -139
  75. package/templates/latest/app/components/ui/select.tsx +0 -183
  76. package/templates/latest/app/components/ui/table.tsx +0 -117
  77. package/templates/latest/app/components/ui/toggle-group.tsx +0 -73
  78. package/templates/latest/app/components/ui/toggle.tsx +0 -47
  79. package/templates/latest/app/data/data.json +0 -614
  80. package/templates/latest/app/data/mock-payments.json +0 -122
  81. package/templates/latest/app/data/mock-transactions.json +0 -128
  82. package/templates/latest/app/hooks/use-bluecopa-user.ts +0 -37
  83. package/templates/latest/app/lib/utils.ts +0 -6
  84. package/templates/latest/app/routes/apitest.tsx +0 -2118
  85. package/templates/latest/app/routes/comments.tsx +0 -588
  86. package/templates/latest/app/routes/dashboard.tsx +0 -36
  87. package/templates/latest/app/routes/payments.tsx +0 -342
  88. package/templates/latest/app/routes/statements.tsx +0 -493
  89. package/templates/latest/app/routes/websocket.tsx +0 -450
  90. package/templates/latest/app/routes.tsx +0 -22
  91. package/templates/latest/dist/assets/__federation_expose_App-D-lv9y21.js +0 -161
  92. package/templates/latest/dist/assets/__federation_fn_import-CzfA7kmP.js +0 -438
  93. package/templates/latest/dist/assets/__federation_shared_react-Bp6HVBS4.js +0 -16
  94. package/templates/latest/dist/assets/__federation_shared_react-dom-BCcRGiYp.js +0 -17
  95. package/templates/latest/dist/assets/client-Dms8K6Dw.js +0 -78879
  96. package/templates/latest/dist/assets/index-BrhXrqF7.js +0 -60
  97. package/templates/latest/dist/assets/index-BzNimew1.js +0 -69
  98. package/templates/latest/dist/assets/index-DMFtQdNS.js +0 -412
  99. package/templates/latest/dist/assets/remoteEntry.css +0 -3996
  100. package/templates/latest/dist/assets/remoteEntry.js +0 -88
  101. package/templates/latest/dist/favicon.ico +0 -0
  102. package/templates/latest/dist/index.html +0 -19
@@ -1,88 +0,0 @@
1
- System.register([], (function (exports, module) {
2
- 'use strict';
3
- return {
4
- execute: (function () {
5
-
6
- const currentImports = {};
7
- const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
8
- let moduleMap = {
9
- "./App":()=>{
10
- dynamicLoadingCss(["remoteEntry.css"], false, './App');
11
- return __federation_import('./__federation_expose_App-D-lv9y21.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
12
- const seen = {};
13
- const dynamicLoadingCss = exports("dynamicLoadingCss", (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
14
- const metaUrl = module.meta.url;
15
- if (typeof metaUrl === 'undefined') {
16
- console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');
17
- return;
18
- }
19
-
20
- const curUrl = metaUrl.substring(0, metaUrl.lastIndexOf('remoteEntry.js'));
21
- const base = '/';
22
- 'assets';
23
-
24
- cssFilePaths.forEach(cssPath => {
25
- let href = '';
26
- const baseUrl = base || curUrl;
27
- if (baseUrl) {
28
- const trimmer = {
29
- trailing: (path) => (path.endsWith('/') ? path.slice(0, -1) : path),
30
- leading: (path) => (path.startsWith('/') ? path.slice(1) : path)
31
- };
32
- const isAbsoluteUrl = (url) => url.startsWith('http') || url.startsWith('//');
33
-
34
- const cleanBaseUrl = trimmer.trailing(baseUrl);
35
- const cleanCssPath = trimmer.leading(cssPath);
36
- const cleanCurUrl = trimmer.trailing(curUrl);
37
-
38
- if (isAbsoluteUrl(baseUrl)) {
39
- href = [cleanBaseUrl, cleanCssPath].filter(Boolean).join('/');
40
- } else {
41
- if (cleanCurUrl.includes(cleanBaseUrl)) {
42
- href = [cleanCurUrl, cleanCssPath].filter(Boolean).join('/');
43
- } else {
44
- href = [cleanCurUrl + cleanBaseUrl, cleanCssPath].filter(Boolean).join('/');
45
- }
46
- }
47
- } else {
48
- href = cssPath;
49
- }
50
-
51
- if (dontAppendStylesToHead) {
52
- const key = 'css____copa_ext_app__react_route__' + exposeItemName;
53
- window[key] = window[key] || [];
54
- window[key].push(href);
55
- return;
56
- }
57
-
58
- if (href in seen) return;
59
- seen[href] = true;
60
-
61
- const element = document.createElement('link');
62
- element.rel = 'stylesheet';
63
- element.href = href;
64
- document.head.appendChild(element);
65
- });
66
- });
67
- async function __federation_import(name) {
68
- currentImports[name] ??= module.import(name);
69
- return currentImports[name]
70
- } const get =exports("get", (module) => {
71
- if(!moduleMap[module]) throw new Error('Can not find remote module ' + module)
72
- return moduleMap[module]();
73
- });
74
- const init =exports("init", (shareScope) => {
75
- globalThis.__federation_shared__= globalThis.__federation_shared__|| {};
76
- Object.entries(shareScope).forEach(([key, value]) => {
77
- for (const [versionKey, versionValue] of Object.entries(value)) {
78
- const scope = versionValue.scope || 'default';
79
- globalThis.__federation_shared__[scope] = globalThis.__federation_shared__[scope] || {};
80
- const shared= globalThis.__federation_shared__[scope];
81
- (shared[key] = shared[key]||{})[versionKey] = versionValue;
82
- }
83
- });
84
- });
85
-
86
- })
87
- };
88
- }));
Binary file
@@ -1,19 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Bluecopa - AI-powered Finance Automation</title>
8
- <meta name="description" content="AI-powered close automation for modern finance teams. Streamline your order-to-cash, procure-to-pay, and record-to-report processes." />
9
- <script type="module" crossorigin src="/assets/index-BrhXrqF7.js"></script>
10
- <link rel="modulepreload" crossorigin href="/assets/__federation_fn_import-CzfA7kmP.js">
11
- <link rel="modulepreload" crossorigin href="/assets/index-BzNimew1.js">
12
- <link rel="modulepreload" crossorigin href="/assets/index-DMFtQdNS.js">
13
- <link rel="modulepreload" crossorigin href="/assets/client-Dms8K6Dw.js">
14
- <link rel="stylesheet" crossorigin href="/assets/remoteEntry.css">
15
- </head>
16
- <body>
17
- <div id="root"></div>
18
- </body>
19
- </html>