@salesforce/webapp-template-base-react-app-experimental 1.107.2 → 1.107.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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.107.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.107.3...v1.107.4) (2026-03-18)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-react-app-experimental
9
+
10
+ ## [1.107.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.107.2...v1.107.3) (2026-03-18)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **lint-and-metadata:** Linting in template apps, metadata and query fixes, and skills for deployment orders ([#304](https://github.com/salesforce-experience-platform-emu/webapps/issues/304)) ([980b931](https://github.com/salesforce-experience-platform-emu/webapps/commit/980b9318cba0f7d5d93620e08bf4138df51b3700))
15
+
6
16
  ## [1.107.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.107.1...v1.107.2) (2026-03-18)
7
17
 
8
18
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-react-app-experimental",
3
- "version": "1.107.2",
3
+ "version": "1.107.4",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -68,6 +68,8 @@ const config = [
68
68
  globals: {
69
69
  ...globals.browser,
70
70
  JSX: 'readonly',
71
+ React: 'readonly',
72
+ process: 'readonly',
71
73
  },
72
74
  },
73
75
  plugins: {
@@ -15,8 +15,8 @@
15
15
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@salesforce/sdk-data": "^1.107.2",
19
- "@salesforce/webapp-experimental": "^1.107.2",
18
+ "@salesforce/sdk-data": "^1.107.4",
19
+ "@salesforce/webapp-experimental": "^1.107.4",
20
20
  "@tailwindcss/vite": "^4.1.17",
21
21
  "class-variance-authority": "^0.7.1",
22
22
  "clsx": "^2.1.1",
@@ -40,7 +40,7 @@
40
40
  "@graphql-eslint/eslint-plugin": "^4.1.0",
41
41
  "@graphql-tools/utils": "^11.0.0",
42
42
  "@playwright/test": "^1.49.0",
43
- "@salesforce/vite-plugin-webapp-experimental": "^1.107.2",
43
+ "@salesforce/vite-plugin-webapp-experimental": "^1.107.4",
44
44
  "@testing-library/jest-dom": "^6.6.3",
45
45
  "@testing-library/react": "^16.1.0",
46
46
  "@testing-library/user-event": "^14.5.2",
@@ -4,7 +4,10 @@ import { StrictMode } from 'react';
4
4
  import { createRoot } from 'react-dom/client';
5
5
  import './styles/global.css';
6
6
 
7
- const basename = (globalThis as any).SFDC_ENV?.basePath;
7
+ // Normalize basename: strip trailing slash so it matches URLs like /lwr/application/ai/c-app
8
+ const rawBasePath = (globalThis as any).SFDC_ENV?.basePath;
9
+ const basename =
10
+ typeof rawBasePath === 'string' ? rawBasePath.replace(/\/+$/, '') : undefined;
8
11
  const router = createBrowserRouter(routes, { basename });
9
12
 
10
13
  createRoot(document.getElementById('root')!).render(
@@ -26,10 +26,10 @@ interface StatusAlertProps extends VariantProps<typeof statusAlertVariants> {
26
26
  * Returns null if no children are provided.
27
27
  */
28
28
  export function StatusAlert({ children, variant = 'error' }: StatusAlertProps) {
29
+ const descriptionId = useId();
29
30
  if (!children) return null;
30
31
 
31
32
  const isError = variant === 'error';
32
- const descriptionId = useId();
33
33
 
34
34
  return (
35
35
  <Alert
@@ -31,6 +31,12 @@
31
31
  "@assets/*": ["./src/assets/*"]
32
32
  }
33
33
  },
34
- "include": ["src", "vite-env.d.ts", "vitest-env.d.ts"],
34
+ "include": [
35
+ "src",
36
+ "e2e",
37
+ "vite-env.d.ts",
38
+ "vitest-env.d.ts",
39
+ "vitest.setup.ts"
40
+ ],
35
41
  "references": [{ "path": "./tsconfig.node.json" }]
36
42
  }