@salesforce/webapp-template-feature-react-authentication-experimental 1.33.3 → 1.33.5
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-authentication/build/vite.config.js +2 -0
- package/dist/force-app/main/default/webapplications/feature-react-authentication/src/appLayout.tsx +22 -2
- package/dist/force-app/main/default/webapplications/feature-react-authentication/src/routes.tsx +1 -1
- package/dist/force-app/main/default/webapplications/feature-react-authentication/vite.config.ts +2 -0
- package/dist/package.json +1 -1
- package/package.json +3 -3
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.33.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.4...v1.33.5) (2026-02-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.33.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.3...v1.33.4) (2026-02-17)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.33.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.33.2...v1.33.3) (2026-02-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
@@ -7,6 +7,8 @@ import salesforce from '@salesforce/vite-plugin-webapp-experimental';
|
|
|
7
7
|
export default defineConfig(function (_a) {
|
|
8
8
|
var mode = _a.mode;
|
|
9
9
|
return {
|
|
10
|
+
// Ensure root base for e2e/static serve; plugin may override when deployed under a path
|
|
11
|
+
base: '/',
|
|
10
12
|
plugins: [tailwindcss(), react(), salesforce()],
|
|
11
13
|
// Build configuration for MPA
|
|
12
14
|
build: {
|
package/dist/force-app/main/default/webapplications/feature-react-authentication/src/appLayout.tsx
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import { Outlet } from 'react-router';
|
|
1
|
+
import { Outlet, NavLink } from 'react-router';
|
|
2
|
+
|
|
3
|
+
const navLinkClass = ({ isActive }: { isActive: boolean }) =>
|
|
4
|
+
`text-sm font-medium ${isActive ? 'text-gray-900' : 'text-gray-600 hover:text-gray-900'}`;
|
|
2
5
|
|
|
3
6
|
export default function AppLayout() {
|
|
4
7
|
return (
|
|
5
8
|
<>
|
|
6
|
-
<
|
|
9
|
+
<nav className="sticky top-0 z-10 border-b border-gray-200 bg-white">
|
|
10
|
+
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
|
11
|
+
<div className="flex h-14 items-center gap-8">
|
|
12
|
+
<NavLink to="/" end className={navLinkClass}>
|
|
13
|
+
Home
|
|
14
|
+
</NavLink>
|
|
15
|
+
<NavLink to="/about" className={navLinkClass}>
|
|
16
|
+
About
|
|
17
|
+
</NavLink>
|
|
18
|
+
<NavLink to="/does-not-exist" className={navLinkClass}>
|
|
19
|
+
404
|
|
20
|
+
</NavLink>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</nav>
|
|
24
|
+
<main>
|
|
25
|
+
<Outlet />
|
|
26
|
+
</main>
|
|
7
27
|
</>
|
|
8
28
|
);
|
|
9
29
|
}
|
package/dist/force-app/main/default/webapplications/feature-react-authentication/src/routes.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouteObject } from 'react-router';
|
|
2
2
|
import AppLayout from './appLayout';
|
|
3
|
-
import Home from '
|
|
3
|
+
import Home from './pages/Home';
|
|
4
4
|
import About from './pages/About';
|
|
5
5
|
import NotFound from './pages/NotFound';
|
|
6
6
|
import Login from "./pages/Login";
|
package/dist/force-app/main/default/webapplications/feature-react-authentication/vite.config.ts
CHANGED
|
@@ -7,6 +7,8 @@ import salesforce from '@salesforce/vite-plugin-webapp-experimental';
|
|
|
7
7
|
|
|
8
8
|
export default defineConfig(({ mode }) => {
|
|
9
9
|
return {
|
|
10
|
+
// Ensure root base for e2e/static serve; plugin may override when deployed under a path
|
|
11
|
+
base: '/',
|
|
10
12
|
plugins: [tailwindcss(), react(), salesforce()],
|
|
11
13
|
|
|
12
14
|
// Build configuration for MPA
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-feature-react-authentication-experimental",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.5",
|
|
4
4
|
"description": "Authentication feature for web applications",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "npx tsx ../../cli/src/index.ts watch-patches packages/template/feature/feature-react-authentication packages/template/base-app/base-react-app packages/template/feature/feature-react-authentication/dist"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@salesforce/webapp-experimental": "^1.33.
|
|
23
|
+
"@salesforce/webapp-experimental": "^1.33.5",
|
|
24
24
|
"@tanstack/react-form": "^1.27.7",
|
|
25
25
|
"@types/react": "^19.2.7",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"react-router": "^7.10.1",
|
|
29
29
|
"vite": "^7.3.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "d23795615e716c723701b285cf0f84a0c94ff6fe"
|
|
32
32
|
}
|