@salesforce/webapp-template-feature-react-chart-experimental 1.27.0 → 1.28.0
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/dist/CHANGELOG.md +16 -0
- package/dist/force-app/main/default/webapplications/feature-react-chart/build/vite.config.js +64 -64
- package/dist/force-app/main/default/webapplications/feature-react-chart/src/components/AnalyticsChart.tsx +0 -1
- package/dist/force-app/main/default/webapplications/feature-react-chart/src/components/ui/button.tsx +9 -11
- package/dist/force-app/main/default/webapplications/feature-react-chart/src/components/ui/spinner.tsx +7 -2
- package/dist/force-app/main/default/webapplications/feature-react-chart/src/routes.tsx +1 -1
- package/dist/package.json +1 -1
- package/package.json +4 -3
- package/src/force-app/main/default/webapplications/feature-react-chart/src/components/AnalyticsChart.tsx +0 -1
- package/dist/force-app/main/default/webapplications/feature-react-chart/src/pages/about.tsx +0 -10
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.28.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.27.1...v1.28.0) (2026-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.27.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.27.0...v1.27.1) (2026-02-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.27.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.26.0...v1.27.0) (2026-02-12)
|
|
7
23
|
|
|
8
24
|
|
package/dist/force-app/main/default/webapplications/feature-react-chart/build/vite.config.js
CHANGED
|
@@ -5,69 +5,69 @@ import { resolve } from 'path';
|
|
|
5
5
|
import tailwindcss from '@tailwindcss/vite';
|
|
6
6
|
import salesforce from '@salesforce/vite-plugin-webapp-experimental';
|
|
7
7
|
export default defineConfig(function (_a) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
// Resolve aliases (shared between build and test)
|
|
18
|
-
resolve: {
|
|
19
|
-
alias: {
|
|
20
|
-
'@': path.resolve(__dirname, './src'),
|
|
21
|
-
'@api': path.resolve(__dirname, './src/api'),
|
|
22
|
-
'@components': path.resolve(__dirname, './src/components'),
|
|
23
|
-
'@utils': path.resolve(__dirname, './src/utils'),
|
|
24
|
-
'@styles': path.resolve(__dirname, './src/styles'),
|
|
25
|
-
'@assets': path.resolve(__dirname, './src/assets'),
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
// Vitest configuration
|
|
29
|
-
test: {
|
|
30
|
-
// Override root for tests (build uses src/pages as root)
|
|
31
|
-
root: resolve(__dirname),
|
|
32
|
-
// Use jsdom environment for React component testing
|
|
33
|
-
environment: 'jsdom',
|
|
34
|
-
// Setup files to run before each test
|
|
35
|
-
setupFiles: ['./src/test/setup.ts'],
|
|
36
|
-
// Global test patterns
|
|
37
|
-
include: [
|
|
38
|
-
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
|
|
39
|
-
'src/**/__tests__/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
|
|
40
|
-
],
|
|
41
|
-
// Coverage configuration
|
|
42
|
-
coverage: {
|
|
43
|
-
provider: 'v8',
|
|
44
|
-
reporter: ['text', 'html', 'clover', 'json'],
|
|
45
|
-
exclude: [
|
|
46
|
-
'node_modules/',
|
|
47
|
-
'src/test/',
|
|
48
|
-
'src/**/*.d.ts',
|
|
49
|
-
'src/main.tsx',
|
|
50
|
-
'src/vite-env.d.ts',
|
|
51
|
-
'src/components/**/index.ts',
|
|
52
|
-
'**/*.config.ts',
|
|
53
|
-
'build/',
|
|
54
|
-
'dist/',
|
|
55
|
-
'coverage/',
|
|
56
|
-
'eslint.config.js',
|
|
57
|
-
],
|
|
58
|
-
thresholds: {
|
|
59
|
-
global: {
|
|
60
|
-
branches: 85,
|
|
61
|
-
functions: 85,
|
|
62
|
-
lines: 85,
|
|
63
|
-
statements: 85,
|
|
64
|
-
},
|
|
8
|
+
var mode = _a.mode;
|
|
9
|
+
return {
|
|
10
|
+
plugins: [tailwindcss(), react(), salesforce()],
|
|
11
|
+
// Build configuration for MPA
|
|
12
|
+
build: {
|
|
13
|
+
outDir: resolve(__dirname, 'dist'),
|
|
14
|
+
assetsDir: 'assets',
|
|
15
|
+
sourcemap: false,
|
|
65
16
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
17
|
+
// Resolve aliases (shared between build and test)
|
|
18
|
+
resolve: {
|
|
19
|
+
alias: {
|
|
20
|
+
'@': path.resolve(__dirname, './src'),
|
|
21
|
+
'@api': path.resolve(__dirname, './src/api'),
|
|
22
|
+
'@components': path.resolve(__dirname, './src/components'),
|
|
23
|
+
'@utils': path.resolve(__dirname, './src/utils'),
|
|
24
|
+
'@styles': path.resolve(__dirname, './src/styles'),
|
|
25
|
+
'@assets': path.resolve(__dirname, './src/assets'),
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
// Vitest configuration
|
|
29
|
+
test: {
|
|
30
|
+
// Override root for tests (build uses src/pages as root)
|
|
31
|
+
root: resolve(__dirname),
|
|
32
|
+
// Use jsdom environment for React component testing
|
|
33
|
+
environment: 'jsdom',
|
|
34
|
+
// Setup files to run before each test
|
|
35
|
+
setupFiles: ['./src/test/setup.ts'],
|
|
36
|
+
// Global test patterns
|
|
37
|
+
include: [
|
|
38
|
+
'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
|
|
39
|
+
'src/**/__tests__/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
|
|
40
|
+
],
|
|
41
|
+
// Coverage configuration
|
|
42
|
+
coverage: {
|
|
43
|
+
provider: 'v8',
|
|
44
|
+
reporter: ['text', 'html', 'clover', 'json'],
|
|
45
|
+
exclude: [
|
|
46
|
+
'node_modules/',
|
|
47
|
+
'src/test/',
|
|
48
|
+
'src/**/*.d.ts',
|
|
49
|
+
'src/main.tsx',
|
|
50
|
+
'src/vite-env.d.ts',
|
|
51
|
+
'src/components/**/index.ts',
|
|
52
|
+
'**/*.config.ts',
|
|
53
|
+
'build/',
|
|
54
|
+
'dist/',
|
|
55
|
+
'coverage/',
|
|
56
|
+
'eslint.config.js',
|
|
57
|
+
],
|
|
58
|
+
thresholds: {
|
|
59
|
+
global: {
|
|
60
|
+
branches: 85,
|
|
61
|
+
functions: 85,
|
|
62
|
+
lines: 85,
|
|
63
|
+
statements: 85,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
// Test timeout
|
|
68
|
+
testTimeout: 10000,
|
|
69
|
+
// Globals for easier testing
|
|
70
|
+
globals: true,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
73
|
});
|
package/dist/force-app/main/default/webapplications/feature-react-chart/src/components/ui/button.tsx
CHANGED
|
@@ -32,25 +32,23 @@ const buttonVariants = cva(
|
|
|
32
32
|
},
|
|
33
33
|
);
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
VariantProps<typeof buttonVariants> & {
|
|
43
|
-
asChild?: boolean;
|
|
44
|
-
}) {
|
|
35
|
+
const Button = React.forwardRef<
|
|
36
|
+
HTMLButtonElement,
|
|
37
|
+
React.ComponentProps<"button"> &
|
|
38
|
+
VariantProps<typeof buttonVariants> & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}
|
|
41
|
+
>(function Button({ className, variant, size, asChild = false, ...props }, ref) {
|
|
45
42
|
const Comp = asChild ? Slot : "button";
|
|
46
43
|
|
|
47
44
|
return (
|
|
48
45
|
<Comp
|
|
46
|
+
ref={ref}
|
|
49
47
|
data-slot="button"
|
|
50
48
|
className={cn(buttonVariants({ variant, size, className }))}
|
|
51
49
|
{...props}
|
|
52
50
|
/>
|
|
53
51
|
);
|
|
54
|
-
}
|
|
52
|
+
});
|
|
55
53
|
|
|
56
54
|
export { Button, buttonVariants };
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import { LoaderIcon } from "lucide-react";
|
|
2
3
|
|
|
3
4
|
import { cn } from "../../lib/utils";
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const Spinner = React.forwardRef<SVGSVGElement, React.ComponentProps<"svg">>(function Spinner(
|
|
7
|
+
{ className, ...props },
|
|
8
|
+
ref,
|
|
9
|
+
) {
|
|
6
10
|
return (
|
|
7
11
|
<LoaderIcon
|
|
12
|
+
ref={ref}
|
|
8
13
|
role="status"
|
|
9
14
|
aria-label="Loading"
|
|
10
15
|
className={cn(
|
|
@@ -16,6 +21,6 @@ function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
|
|
16
21
|
{...props}
|
|
17
22
|
/>
|
|
18
23
|
);
|
|
19
|
-
}
|
|
24
|
+
});
|
|
20
25
|
|
|
21
26
|
export { Spinner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RouteObject } from 'react-router';
|
|
2
2
|
import AppLayout from './appLayout';
|
|
3
3
|
import Home from '@/pages/Home';
|
|
4
|
-
import About from './pages/
|
|
4
|
+
import About from './pages/About';
|
|
5
5
|
import NotFound from './pages/NotFound';
|
|
6
6
|
import New from "./pages/new";
|
|
7
7
|
import ChartPage from "./pages/ChartPage";
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-feature-react-chart-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Chart feature with analytics chart components, agent skills, and rules (Recharts)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -26,11 +26,12 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "npx tsx ../../cli/src/index.ts apply-patches packages/template/feature/feature-react-chart packages/template/base-app/base-react-app packages/template/feature/feature-react-chart/dist --reset",
|
|
28
28
|
"clean": "rm -rf dist",
|
|
29
|
+
"test": "npm run build && cd dist/force-app/main/default/webapplications/feature-react-chart && npm ci && npm run build",
|
|
29
30
|
"dev": "cd dist/force-app/main/default/webapplications/feature-react-chart && npm install && npm run dev",
|
|
30
31
|
"watch": "npx tsx ../../cli/src/index.ts watch-patches packages/template/feature/feature-react-chart packages/template/base-app/base-react-app packages/template/feature/feature-react-chart/dist"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@salesforce/webapp-experimental": "^1.
|
|
34
|
+
"@salesforce/webapp-experimental": "^1.28.0",
|
|
34
35
|
"@types/react": "^19.2.7",
|
|
35
36
|
"@types/react-dom": "^19.2.3",
|
|
36
37
|
"react-dom": "^19.2.1",
|
|
@@ -38,5 +39,5 @@
|
|
|
38
39
|
"recharts": "^2.15.0",
|
|
39
40
|
"vite": "^7.3.1"
|
|
40
41
|
},
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7812639a9d3e6a9d4600c6897926f9a0f00c292f"
|
|
42
43
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default function About() {
|
|
2
|
-
return (
|
|
3
|
-
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
|
4
|
-
<div className="text-center">
|
|
5
|
-
<h1 className="text-4xl font-bold text-gray-900 mb-4">About</h1>
|
|
6
|
-
<p className="text-lg text-gray-600">This is the about page.</p>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
);
|
|
10
|
-
}
|