@salesforce/webapp-template-app-react-template-b2x-experimental 1.53.2 → 1.54.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 CHANGED
@@ -3,6 +3,14 @@
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.54.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.53.2...v1.54.0) (2026-02-25)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.53.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.53.1...v1.53.2) (2026-02-25)
7
15
 
8
16
 
@@ -6020,9 +6020,9 @@
6020
6020
  ]
6021
6021
  },
6022
6022
  "node_modules/@salesforce/core": {
6023
- "version": "8.26.2",
6024
- "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.2.tgz",
6025
- "integrity": "sha512-P1otybl1d+sXg5FORl3PD82TzaOOP5aH1j0UVkpGf1p4BLw6VD0mJekS4mDc0pz6UKK2iIt0CFxXAEMKa/YtBA==",
6023
+ "version": "8.26.3",
6024
+ "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.3.tgz",
6025
+ "integrity": "sha512-lPNFHjHFeC4V3KuH88xuVLGhAqmtM8meUcvyejNh8bQ5w642APKRTGDZ0pOnWHJAe5SQy7cSQ1WqvO3V73ouQw==",
6026
6026
  "license": "BSD-3-Clause",
6027
6027
  "dependencies": {
6028
6028
  "@jsforce/jsforce-node": "^3.10.13",
@@ -6071,19 +6071,19 @@
6071
6071
  }
6072
6072
  },
6073
6073
  "node_modules/@salesforce/sdk-core": {
6074
- "version": "1.53.1",
6075
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.1.tgz",
6076
- "integrity": "sha512-ofJ9yhxX03n0Gy6OrdDZygyL4wL+HDyAoziOF5YrPA9QImRAvEo5s6TR1t7u8noTacVvgDgAHJQBVyz0qZXZvg==",
6074
+ "version": "1.53.2",
6075
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.2.tgz",
6076
+ "integrity": "sha512-q4Wxa4zIC2/vpJYtu91RfYP+XR+SayN0ENRxMYp0H9X4GuHBdwS1wCrZX2bUKQqsTXNKlLuOBF+aUSR6xsHfPA==",
6077
6077
  "license": "SEE LICENSE IN LICENSE.txt"
6078
6078
  },
6079
6079
  "node_modules/@salesforce/sdk-data": {
6080
- "version": "1.53.1",
6081
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.1.tgz",
6082
- "integrity": "sha512-ltzKLGpYt2H1H8op8n917+IUC4QKGc/GbfHcpHYCQl9eNrQxumjnm7DmiF+zldrd6HsHDp6nDYjWQx3dinag4A==",
6080
+ "version": "1.53.2",
6081
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.2.tgz",
6082
+ "integrity": "sha512-OnPUqLxbTUS0ZzyCBBJpXiChbbwdu4rwAewm9t12WuRZYuWYiIKskAa9rlQxGfZCj/SuEjRAYC/JcBL1jx7Dng==",
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.53.1"
6086
+ "@salesforce/sdk-core": "^1.53.2"
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.53.1",
6100
- "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.1.tgz",
6101
- "integrity": "sha512-XsnxLhB15FvKpcrKTL1SGTIV/I3hZX3V44v4mItaVvWa53DYhdEmqgM60bYd8+TAEnuKEgYyjqrrwMGQc0qJhg==",
6099
+ "version": "1.53.2",
6100
+ "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.2.tgz",
6101
+ "integrity": "sha512-1usI5gywg45/R+OJcgISHM00ggIniJuwLpJ7I2eYtz//O/ZHP3+3vAzRZO+iZjV4mtqNjO7+cG0OvheIyd5IvA==",
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.53.1"
6107
+ "@salesforce/webapp-experimental": "^1.53.2"
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.53.1",
6118
- "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.1.tgz",
6119
- "integrity": "sha512-vX5+fLStDCsBUQp5uP5s7n4qbSTdrjLQ3PqYsQSpVlPL1+lfEvwIwIeRygdtluAQB02U7uIBFeN/GvObLA+/xg==",
6117
+ "version": "1.53.2",
6118
+ "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.2.tgz",
6119
+ "integrity": "sha512-B6diQcMzxresuh4aud6Uw7Cr9dC89L3+pnxG4r0wbwCx5xRHeeyl6m6M4dUDFhR0y1D6p2/Jnhf3StoJ3u3thg==",
6120
6120
  "license": "SEE LICENSE IN LICENSE.txt",
6121
6121
  "dependencies": {
6122
6122
  "@salesforce/core": "^8.23.4",
6123
- "@salesforce/sdk-data": "^1.53.1",
6123
+ "@salesforce/sdk-data": "^1.53.2",
6124
6124
  "axios": "^1.7.7",
6125
6125
  "micromatch": "^4.0.8",
6126
6126
  "path-to-regexp": "^8.3.0"
@@ -1,4 +1,4 @@
1
- import { executeGraphQL } from '@salesforce/webapp-experimental/api';
1
+ import { getDataSDK } from '@salesforce/webapp-experimental/api';
2
2
  import HIGH_REVENUE_ACCOUNTS_QUERY from './query/highRevenueAccountsQuery.graphql?raw';
3
3
  import type {
4
4
  GetHighRevenueAccountsQuery,
@@ -24,10 +24,18 @@ type AccountNode = NonNullable<
24
24
  export async function getHighRevenueAccounts(
25
25
  variables: GetHighRevenueAccountsQueryVariables
26
26
  ): Promise<(AccountNode | null | undefined)[]> {
27
- const response = await executeGraphQL<GetHighRevenueAccountsQuery>(
28
- HIGH_REVENUE_ACCOUNTS_QUERY,
29
- variables
30
- );
27
+ const data = await getDataSDK();
28
+ const response = await data.graphql?.<
29
+ GetHighRevenueAccountsQuery,
30
+ GetHighRevenueAccountsQueryVariables
31
+ >(HIGH_REVENUE_ACCOUNTS_QUERY, variables);
32
+
33
+ if (response?.errors?.length) {
34
+ const errorMessages = response.errors.map(e => e.message).join('; ');
35
+ throw new Error(`GraphQL Error: ${errorMessages}`);
36
+ }
31
37
 
32
- return response.uiapi?.query?.Account?.edges?.map(edge => edge?.node) || [];
38
+ return (
39
+ response?.data?.uiapi?.query?.Account?.edges?.map(edge => edge?.node) || []
40
+ );
33
41
  }
@@ -1,7 +1,7 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { z } from "zod";
3
3
 
4
- import { executeGraphQL } from "@salesforce/webapp-experimental/api";
4
+ import { getDataSDK } from "@salesforce/webapp-experimental/api";
5
5
 
6
6
  import { CenteredPageLayout } from "../layout/centered-page-layout";
7
7
  import { CardSkeleton } from "../layout/card-skeleton";
@@ -81,10 +81,14 @@ export default function Profile() {
81
81
  setSubmitError(null);
82
82
  setSuccess(false);
83
83
  try {
84
- const result: any = await executeGraphQL(MUTATE_PROFILE_GRAPHQL, {
84
+ const data = await getDataSDK();
85
+ const response: any = await data.graphql?.(MUTATE_PROFILE_GRAPHQL, {
85
86
  input: { Id: user.id, User: { ...value } },
86
87
  });
87
- setProfile(flattenGraphQLRecord(result?.uiapi?.UserUpdate?.Record));
88
+ if (response?.errors?.length) {
89
+ throw new Error(response.errors.map((e: any) => e.message).join("; "));
90
+ }
91
+ setProfile(flattenGraphQLRecord(response?.data?.uiapi?.UserUpdate?.Record));
88
92
 
89
93
  setSuccess(true);
90
94
  // Scroll to top of page after successful update so user sees it
@@ -99,11 +103,16 @@ export default function Profile() {
99
103
  useEffect(() => {
100
104
  let mounted = true;
101
105
 
102
- executeGraphQL(QUERY_PROFILE_GRAPHQL, { userId: user.id })
103
- .then(
104
- (result: any) =>
105
- mounted && setProfile(flattenGraphQLRecord(result?.uiapi?.query?.User?.edges?.[0]?.node)),
106
- )
106
+ getDataSDK()
107
+ .then((data) => data.graphql?.(QUERY_PROFILE_GRAPHQL, { userId: user.id }))
108
+ .then((response: any) => {
109
+ if (response?.errors?.length) {
110
+ throw new Error(response.errors.map((e: any) => e.message).join("; "));
111
+ }
112
+ if (mounted) {
113
+ setProfile(flattenGraphQLRecord(response?.data?.uiapi?.query?.User?.edges?.[0]?.node));
114
+ }
115
+ })
107
116
  .catch((err: any) => {
108
117
  if (mounted) {
109
118
  setLoadError(getErrorMessage(err, "Failed to load profile"));
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.2",
3
+ "version": "1.54.0",
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.53.2",
3
+ "version": "1.54.0",
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": "8866eb09bf1e24f023333d1ecc491a1e1a6c8904"
40
+ "gitHead": "b48827161c23db20c7e546a857fe8c9f5f560c20"
41
41
  }