@salesforce/webapp-template-app-react-template-vibe-experimental 1.53.1 → 1.53.2

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.
@@ -4,7 +4,7 @@
4
4
  "version": "1.0.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "start": "vite",
7
+ "dev": "vite",
8
8
  "build": "tsc -b && vite build",
9
9
  "build:e2e": "npm run build && node scripts/rewrite-e2e-assets.mjs",
10
10
  "lint": "eslint .",
@@ -14,7 +14,7 @@
14
14
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
15
15
  },
16
16
  "dependencies": {
17
- "@salesforce/agentforce-conversation-client": "^1.53.0",
17
+ "@salesforce/agentforce-conversation-client": "^1.53.1",
18
18
  "@salesforce/sdk-data": "^1.11.2",
19
19
  "@salesforce/webapp-experimental": "*",
20
20
  "@tailwindcss/vite": "^4.1.17",
@@ -1,19 +1,83 @@
1
- /**
2
- * Copyright (c) 2026, Salesforce, Inc.
3
- * All rights reserved.
4
- * For full license text, see the LICENSE.txt file
5
- */
1
+ import { Outlet, Link, useLocation } from 'react-router';
2
+ import { getAllRoutes } from './router-utils';
3
+ import { useState } from 'react';
6
4
 
7
- import { Outlet } from "react-router";
8
- import NavigationMenu from "./navigationMenu";
9
- import AgentforceConversationClient from "./components/AgentforceConversationClient";
5
+ export default function AppLayout() {
6
+ const [isOpen, setIsOpen] = useState(false);
7
+ const location = useLocation();
10
8
 
11
- export default function AppLayout(): React.ReactElement {
12
- return (
13
- <>
14
- <NavigationMenu />
15
- <Outlet />
16
- <AgentforceConversationClient />
17
- </>
18
- );
9
+ const isActive = (path: string) => location.pathname === path;
10
+
11
+ const toggleMenu = () => setIsOpen(!isOpen);
12
+
13
+ const navigationRoutes: { path: string; label: string }[] = getAllRoutes()
14
+ .filter(
15
+ route =>
16
+ route.handle?.showInNavigation === true &&
17
+ route.fullPath !== undefined &&
18
+ route.handle?.label !== undefined
19
+ )
20
+ .map(
21
+ route =>
22
+ ({
23
+ path: route.fullPath,
24
+ label: route.handle?.label,
25
+ }) as { path: string; label: string }
26
+ );
27
+
28
+ return (
29
+ <>
30
+ <nav className="bg-white border-b border-gray-200">
31
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
32
+ <div className="flex justify-between items-center h-16">
33
+ <Link to="/" className="text-xl font-semibold text-gray-900">
34
+ React App
35
+ </Link>
36
+ <button
37
+ onClick={toggleMenu}
38
+ className="p-2 rounded-md text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500"
39
+ aria-label="Toggle menu"
40
+ >
41
+ <div className="w-6 h-6 flex flex-col justify-center space-y-1.5">
42
+ <span
43
+ className={`block h-0.5 w-6 bg-current transition-all ${
44
+ isOpen ? 'rotate-45 translate-y-2' : ''
45
+ }`}
46
+ />
47
+ <span
48
+ className={`block h-0.5 w-6 bg-current transition-all ${isOpen ? 'opacity-0' : ''}`}
49
+ />
50
+ <span
51
+ className={`block h-0.5 w-6 bg-current transition-all ${
52
+ isOpen ? '-rotate-45 -translate-y-2' : ''
53
+ }`}
54
+ />
55
+ </div>
56
+ </button>
57
+ </div>
58
+ {isOpen && (
59
+ <div className="pb-4">
60
+ <div className="flex flex-col space-y-2">
61
+ {navigationRoutes.map(item => (
62
+ <Link
63
+ key={item.path}
64
+ to={item.path}
65
+ onClick={() => setIsOpen(false)}
66
+ className={`px-3 py-2 rounded-md text-sm font-medium transition-colors ${
67
+ isActive(item.path)
68
+ ? 'bg-blue-100 text-blue-700'
69
+ : 'text-gray-700 hover:bg-gray-100'
70
+ }`}
71
+ >
72
+ {item.label}
73
+ </Link>
74
+ ))}
75
+ </div>
76
+ </div>
77
+ )}
78
+ </div>
79
+ </nav>
80
+ <Outlet />
81
+ </>
82
+ );
19
83
  }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ import AgentforceConversationClient from "../components/AgentforceConversationClient";
8
+
9
+ export default function TestAccPage() {
10
+ return (
11
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
12
+ <div className="text-center">
13
+ <h1 className="text-4xl font-bold text-gray-900 mb-4">ACC</h1>
14
+ <p className="text-lg text-gray-600 mb-8">Welcome to your ACC application.</p>
15
+ </div>
16
+ <AgentforceConversationClient />
17
+ </div>
18
+ );
19
+ }
@@ -1,7 +1,6 @@
1
1
  import type { RouteObject } from 'react-router';
2
2
  import Home from './HomePage';
3
3
  import NotFound from './pages/NotFound';
4
- import AuthAppLayout from "./auth/layouts/AuthAppLayout";
5
4
  import Login from "./auth/pages/Login";
6
5
  import Register from "./auth/pages/Register";
7
6
  import ForgotPassword from "./auth/pages/ForgotPassword";
@@ -11,6 +10,8 @@ import ChangePassword from "./auth/pages/ChangePassword";
11
10
  import AuthenticationRoute from "./auth/layouts/authenticationRouteLayout";
12
11
  import PrivateRoute from "./auth/layouts/privateRouteLayout";
13
12
  import { ROUTES } from "./auth/authenticationConfig";
13
+ import TestAccPage from "./pages/TestAccPage";
14
+ import AuthAppLayout from "./auth/layouts/AuthAppLayout";
14
15
 
15
16
  export const routes: RouteObject[] = [
16
17
  {
@@ -65,6 +66,11 @@ export const routes: RouteObject[] = [
65
66
  handle: { showInNavigation: false, title: ROUTES.CHANGE_PASSWORD.TITLE }
66
67
  }
67
68
  ]
69
+ },
70
+ {
71
+ path: "test-acc",
72
+ element: <TestAccPage />,
73
+ handle: { showInNavigation: true, label: "Test ACC" }
68
74
  }
69
75
  ]
70
76
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.53.1",
3
+ "version": "1.53.2",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-app-react-template-vibe-experimental",
3
- "version": "1.53.1",
3
+ "version": "1.53.2",
4
4
  "description": "Vibe coding starter app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -38,10 +38,10 @@
38
38
  "build:dist-app": {
39
39
  "executor": "@salesforce/webapp-template-cli-experimental:build-dist-app"
40
40
  },
41
- "start": {
41
+ "dev": {
42
42
  "executor": "@salesforce/webapp-template-cli-experimental:dev-server"
43
43
  }
44
44
  }
45
45
  },
46
- "gitHead": "c483d93820fdddc821cdb3706c51263999cbcf1f"
46
+ "gitHead": "8866eb09bf1e24f023333d1ecc491a1e1a6c8904"
47
47
  }