@salesforce/webapp-template-app-react-template-b2x-experimental 1.57.0 → 1.58.1

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 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.58.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.58.0...v1.58.1) (2026-02-26)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ # [1.58.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.57.0...v1.58.0) (2026-02-26)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.57.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.56.1...v1.57.0) (2026-02-26)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
@@ -6071,19 +6071,19 @@
6071
6071
  }
6072
6072
  },
6073
6073
  "node_modules/@salesforce/sdk-core": {
6074
- "version": "1.56.1",
6075
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.56.1.tgz",
6076
- "integrity": "sha512-1Xw79p4JYPsikZuKQ2Kj2lD+rNJwzYEcFL913T1SYt2ZJB+eN8R2ZkWZ/0clT/nazus/JRBd1cxrkaWlOg/fVA==",
6074
+ "version": "1.58.0",
6075
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.58.0.tgz",
6076
+ "integrity": "sha512-Ol3dtUfOt9bgkBKumaJmg9/wQ6MLpfni6GHX5Jmt5PVNk0tI6FiW/KXOkh/TyKKcwjy8zKNTFZfByrFNZK8Nyw==",
6077
6077
  "license": "SEE LICENSE IN LICENSE.txt"
6078
6078
  },
6079
6079
  "node_modules/@salesforce/sdk-data": {
6080
- "version": "1.56.1",
6081
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.56.1.tgz",
6082
- "integrity": "sha512-ACw0kF2DRGL9RE21Boyak7GCY1z86CWOgl8Ly//M75Jo8sDk1DXsMXojJV74F40bj31KbRTtqVU2WmlQwEm98Q==",
6080
+ "version": "1.58.0",
6081
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.58.0.tgz",
6082
+ "integrity": "sha512-/aJSHXVGW6z+MvH9Gg5jlhbyI1k/xKKJyD7a3z/zkYoaSxTobc6U4AwBE4GyoXPVK9tBiJJxkTpYK0JEg9rjLg==",
6083
6083
  "license": "SEE LICENSE IN LICENSE.txt",
6084
6084
  "dependencies": {
6085
6085
  "@conduit-client/salesforce-lightning-service-worker": "^3.7.0",
6086
- "@salesforce/sdk-core": "^1.56.1"
6086
+ "@salesforce/sdk-core": "^1.58.0"
6087
6087
  }
6088
6088
  },
6089
6089
  "node_modules/@salesforce/ts-types": {
@@ -6096,15 +6096,15 @@
6096
6096
  }
6097
6097
  },
6098
6098
  "node_modules/@salesforce/vite-plugin-webapp-experimental": {
6099
- "version": "1.56.1",
6100
- "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.56.1.tgz",
6101
- "integrity": "sha512-plhdDjO0veCOiZKJ1yhqOgsFd50H9J9SWQBU60EZVx8+ZgKymJz5C5vkn5gGubK7qEPscZLBxX/GoaUZOYdJxA==",
6099
+ "version": "1.58.0",
6100
+ "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.58.0.tgz",
6101
+ "integrity": "sha512-788yGucCAHptSj9RPC3tXqtCN7NSqaZiN3HbRtpNJ6sjvxhTl9jvq666CQF8q6gZsRjhSfZcYbcfZ+L69YvRRw==",
6102
6102
  "dev": true,
6103
6103
  "license": "SEE LICENSE IN LICENSE.txt",
6104
6104
  "dependencies": {
6105
6105
  "@babel/core": "^7.28.4",
6106
6106
  "@babel/helper-plugin-utils": "^7.28.3",
6107
- "@salesforce/webapp-experimental": "^1.56.1"
6107
+ "@salesforce/webapp-experimental": "^1.58.0"
6108
6108
  },
6109
6109
  "engines": {
6110
6110
  "node": ">=20.0.0"
@@ -6114,13 +6114,13 @@
6114
6114
  }
6115
6115
  },
6116
6116
  "node_modules/@salesforce/webapp-experimental": {
6117
- "version": "1.56.1",
6118
- "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.56.1.tgz",
6119
- "integrity": "sha512-PG5/9YI8yBSzCgs7S2CuC06QtckAQGYbO4DobPR/gF9F2flfJU+CDT5Q5G2tinoBWJhputAjeJNIXF0hQKMC3A==",
6117
+ "version": "1.58.0",
6118
+ "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.58.0.tgz",
6119
+ "integrity": "sha512-rbGDSGDrknRTaPWvWtbXF33Aju7gH6/2gG6IEmr0r89/UaSbicD2F9aFS4iz2z0zS1TlD8MDn+N5x/sErW8kkQ==",
6120
6120
  "license": "SEE LICENSE IN LICENSE.txt",
6121
6121
  "dependencies": {
6122
6122
  "@salesforce/core": "^8.23.4",
6123
- "@salesforce/sdk-data": "^1.56.1",
6123
+ "@salesforce/sdk-data": "^1.58.0",
6124
6124
  "axios": "^1.7.7",
6125
6125
  "micromatch": "^4.0.8",
6126
6126
  "path-to-regexp": "^8.3.0"
@@ -6755,9 +6755,9 @@
6755
6755
  "license": "MIT"
6756
6756
  },
6757
6757
  "node_modules/@types/node": {
6758
- "version": "24.10.13",
6759
- "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.13.tgz",
6760
- "integrity": "sha512-oH72nZRfDv9lADUBSo104Aq7gPHpQZc4BTx38r9xf9pg5LfP6EzSyH2n7qFmmxRQXh7YlUXODcYsg6PuTDSxGg==",
6758
+ "version": "24.10.14",
6759
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.14.tgz",
6760
+ "integrity": "sha512-OowOUbD1lBCOFIPOZ8xnMIhgqA4sCutMiYOmPHL1PTLt5+y1XA+g2+yC9OOyz8p+deMZqPZLxfMjYIfrKsPeFg==",
6761
6761
  "devOptional": true,
6762
6762
  "license": "MIT",
6763
6763
  "dependencies": {
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  import { CenteredPageLayout } from "../layout/centered-page-layout";
5
5
  import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
- import { getDataSDK } from "../lib/data-sdk";
7
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
8
8
  import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
9
9
  import { newPasswordSchema } from "../authHelpers";
10
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
@@ -29,7 +29,7 @@ export default function ChangePassword() {
29
29
  // [Dev Note] Custom Apex Endpoint: /auth/change-password
30
30
  // You must ensure this Apex class exists in your org
31
31
  const sdk = await getDataSDK();
32
- const response = await sdk.fetch("/sfdcapi/services/apexrest/auth/change-password", {
32
+ const response = await sdk.fetch!("/sfdcapi/services/apexrest/auth/change-password", {
33
33
  method: "POST",
34
34
  body: JSON.stringify({
35
35
  currentPassword: formFieldValues.currentPassword,
@@ -3,7 +3,7 @@ import { z } from "zod";
3
3
  import { CenteredPageLayout } from "../layout/centered-page-layout";
4
4
  import { AuthForm } from "../forms/auth-form";
5
5
  import { useAppForm } from "../hooks/form";
6
- import { getDataSDK } from "../lib/data-sdk";
6
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
7
7
  import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
8
8
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
9
9
 
@@ -25,7 +25,7 @@ export default function ForgotPassword() {
25
25
  // [Dev Note] Custom Apex Endpoint: /auth/forgot-password
26
26
  // You must ensure this Apex class exists in your org
27
27
  const sdk = await getDataSDK();
28
- const response = await sdk.fetch("/sfdcapi/services/apexrest/auth/forgot-password", {
28
+ const response = await sdk.fetch!("/sfdcapi/services/apexrest/auth/forgot-password", {
29
29
  method: "POST",
30
30
  body: JSON.stringify({ username: value.username.trim() }),
31
31
  headers: {
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  import { CenteredPageLayout } from "../layout/centered-page-layout";
5
5
  import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
- import { getDataSDK } from "../lib/data-sdk";
7
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
8
8
  import { ROUTES } from "../authenticationConfig";
9
9
  import { emailSchema, getStartUrl, type AuthResponse } from "../authHelpers";
10
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
@@ -31,7 +31,7 @@ export default function Login() {
31
31
  // You must ensure this Apex class exists in your org and handles the login logic
32
32
  // (e.g., creating a session or returning a token).
33
33
  const sdk = await getDataSDK();
34
- const response = await sdk.fetch("/sfdcapi/services/apexrest/auth/login", {
34
+ const response = await sdk.fetch!("/sfdcapi/services/apexrest/auth/login", {
35
35
  method: "POST",
36
36
  body: JSON.stringify({
37
37
  email: value.email.trim().toLowerCase(),
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  import { CenteredPageLayout } from "../layout/centered-page-layout";
5
5
  import { AuthForm } from "../forms/auth-form";
6
6
  import { useAppForm } from "../hooks/form";
7
- import { getDataSDK } from "../lib/data-sdk";
7
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
8
8
  import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
9
9
  import { emailSchema, passwordSchema, getStartUrl, type AuthResponse } from "../authHelpers";
10
10
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
@@ -48,7 +48,7 @@ export default function Register() {
48
48
  // (e.g., duplicate checks and user creation such as Site.createExternalUser).
49
49
  const { confirmPassword, ...request } = formFieldValues;
50
50
  const sdk = await getDataSDK();
51
- const response = await sdk.fetch("/sfdcapi/services/apexrest/auth/register", {
51
+ const response = await sdk.fetch!("/sfdcapi/services/apexrest/auth/register", {
52
52
  method: "POST",
53
53
  body: JSON.stringify({ request }),
54
54
  headers: {
@@ -5,7 +5,7 @@ import { CenteredPageLayout } from "../layout/centered-page-layout";
5
5
  import { AuthForm } from "../forms/auth-form";
6
6
  import { StatusAlert } from "../alerts/status-alert";
7
7
  import { useAppForm } from "../hooks/form";
8
- import { getDataSDK } from "../lib/data-sdk";
8
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
9
9
  import { ROUTES, AUTH_PLACEHOLDERS } from "../authenticationConfig";
10
10
  import { newPasswordSchema } from "../authHelpers";
11
11
  import { handleApiResponse, getErrorMessage } from "../utils/helpers";
@@ -26,7 +26,7 @@ export default function ResetPassword() {
26
26
  // [Dev Note] Custom Apex Endpoint: /auth/reset-password
27
27
  // You must ensure this Apex class exists in your org
28
28
  const sdk = await getDataSDK();
29
- const response = await sdk.fetch("/sfdcapi/services/apexrest/auth/reset-password", {
29
+ const response = await sdk.fetch!("/sfdcapi/services/apexrest/auth/reset-password", {
30
30
  method: "POST",
31
31
  body: JSON.stringify({ token, newPassword: value.newPassword }),
32
32
  headers: {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.57.0",
3
+ "version": "1.58.1",
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-b2x-experimental",
3
- "version": "1.57.0",
3
+ "version": "1.58.1",
4
4
  "description": "Base reference app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -37,5 +37,5 @@
37
37
  }
38
38
  }
39
39
  },
40
- "gitHead": "79d48250f085dbf33512c356b0ff5fb6acd239d3"
40
+ "gitHead": "3ca21b4efdb09c459fac018f54284b3637fc02e7"
41
41
  }
@@ -1,21 +0,0 @@
1
- import { createDataSDK, type DataSDK } from "@salesforce/sdk-data";
2
-
3
- type FetchableSDK = DataSDK & { fetch: typeof fetch };
4
-
5
- let sdkPromise: Promise<FetchableSDK> | null = null;
6
-
7
- /**
8
- * Returns a singleton DataSDK instance with a guaranteed fetch method.
9
- * Lazily initialized on first call; subsequent calls return the same instance.
10
- */
11
- export function getDataSDK(): Promise<FetchableSDK> {
12
- if (!sdkPromise) {
13
- sdkPromise = createDataSDK().then((sdk) => {
14
- if (!sdk.fetch) {
15
- throw new Error("DataSDK fetch is not available on this surface.");
16
- }
17
- return sdk as FetchableSDK;
18
- });
19
- }
20
- return sdkPromise;
21
- }