@salesforce/webapp-template-feature-micro-frontend 1.94.1 → 1.96.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-micro-frontend/index.html +2 -2
- package/dist/force-app/main/default/webapplications/feature-micro-frontend/package.json +3 -3
- package/dist/force-app/main/default/webapplications/feature-micro-frontend/src/app.tsx +1 -9
- package/dist/force-app/main/default/webapplications/feature-micro-frontend/vite.config.ts +1 -2
- 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.96.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.95.0...v1.96.0) (2026-03-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.95.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.94.1...v1.95.0) (2026-03-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.94.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.94.0...v1.94.1) (2026-03-12)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Welcome to React App</title>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|
|
11
|
-
<script type="module" src="
|
|
11
|
+
<script type="module" src="src/app.tsx"></script>
|
|
12
12
|
</body>
|
|
13
13
|
</html>
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@salesforce/sdk-data": "^1.
|
|
19
|
-
"@salesforce/webapp-experimental": "^1.
|
|
18
|
+
"@salesforce/sdk-data": "^1.96.0",
|
|
19
|
+
"@salesforce/webapp-experimental": "^1.96.0",
|
|
20
20
|
"@tailwindcss/vite": "^4.1.17",
|
|
21
21
|
"class-variance-authority": "^0.7.1",
|
|
22
22
|
"clsx": "^2.1.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
39
39
|
"@graphql-tools/utils": "^11.0.0",
|
|
40
40
|
"@playwright/test": "^1.49.0",
|
|
41
|
-
"@salesforce/vite-plugin-webapp-experimental": "^1.
|
|
41
|
+
"@salesforce/vite-plugin-webapp-experimental": "^1.96.0",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
43
|
"@testing-library/react": "^16.1.0",
|
|
44
44
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -4,15 +4,7 @@ import { StrictMode } from 'react';
|
|
|
4
4
|
import { createRoot } from 'react-dom/client';
|
|
5
5
|
import './styles/global.css';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
// When served at root (e.g. e2e with static serve), use '/' so routes match.
|
|
9
|
-
const base = (import.meta.env.BASE_URL ?? '/').replace(/\/$/, '') || '/';
|
|
10
|
-
const basename =
|
|
11
|
-
typeof window !== 'undefined' &&
|
|
12
|
-
(window.location.pathname === '/' ||
|
|
13
|
-
!window.location.pathname.startsWith('/lwr/'))
|
|
14
|
-
? '/'
|
|
15
|
-
: base;
|
|
7
|
+
const basename = (globalThis as any).SFDC_ENV?.basePath;
|
|
16
8
|
const router = createBrowserRouter(routes, { basename });
|
|
17
9
|
|
|
18
10
|
createRoot(document.getElementById('root')!).render(
|
|
@@ -8,8 +8,7 @@ import codegen from 'vite-plugin-graphql-codegen';
|
|
|
8
8
|
|
|
9
9
|
export default defineConfig(({ mode }) => {
|
|
10
10
|
return {
|
|
11
|
-
|
|
12
|
-
base: '/',
|
|
11
|
+
base: './',
|
|
13
12
|
// Type assertion avoids Plugin type mismatch when dist has its own node_modules (vite/rollup)
|
|
14
13
|
plugins: [
|
|
15
14
|
tailwindcss(),
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-feature-micro-frontend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.0",
|
|
4
4
|
"description": "Micro Frontend generation feature for Web Applications",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"clean": "rm -rf dist"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@salesforce/micro-frontends-experimental": "^1.
|
|
22
|
-
"@salesforce/webapp-experimental": "^1.
|
|
21
|
+
"@salesforce/micro-frontends-experimental": "^1.96.0",
|
|
22
|
+
"@salesforce/webapp-experimental": "^1.96.0",
|
|
23
23
|
"@types/react": "^19.2.7",
|
|
24
24
|
"@types/react-dom": "^19.2.3",
|
|
25
25
|
"react-dom": "^19.2.1",
|