@salesforce/webapp-template-app-react-template-vibe-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
 
@@ -8,7 +8,7 @@
8
8
  "name": "base-react-app",
9
9
  "version": "1.0.0",
10
10
  "dependencies": {
11
- "@salesforce/agentforce-conversation-client": "^1.53.1",
11
+ "@salesforce/agentforce-conversation-client": "^1.53.2",
12
12
  "@salesforce/sdk-data": "^1.11.2",
13
13
  "@salesforce/webapp-experimental": "*",
14
14
  "@tailwindcss/vite": "^4.1.17",
@@ -6027,9 +6027,9 @@
6027
6027
  ]
6028
6028
  },
6029
6029
  "node_modules/@salesforce/agentforce-conversation-client": {
6030
- "version": "1.53.1",
6031
- "resolved": "https://registry.npmjs.org/@salesforce/agentforce-conversation-client/-/agentforce-conversation-client-1.53.1.tgz",
6032
- "integrity": "sha512-JP/163sUyNI/vKHK2nclHRMl8HV/a94aGN+u63Og4zxUhI1lCNJoX/7L4GkzDGjhnKOroUIlmr115tF9Lb3pWw==",
6030
+ "version": "1.53.2",
6031
+ "resolved": "https://registry.npmjs.org/@salesforce/agentforce-conversation-client/-/agentforce-conversation-client-1.53.2.tgz",
6032
+ "integrity": "sha512-XMFD95+6Mt3Zcc5ssQ55kfvvGsGcK2ng1DTJJL5NMfI0wTUzUEQ8VtoKC7M87UkwIcuZ4SwCuJ25qzzPWU044A==",
6033
6033
  "license": "SEE LICENSE IN LICENSE.txt",
6034
6034
  "dependencies": {
6035
6035
  "@lightning-out/application": "2.1.1-rc.2"
@@ -6039,9 +6039,9 @@
6039
6039
  }
6040
6040
  },
6041
6041
  "node_modules/@salesforce/core": {
6042
- "version": "8.26.2",
6043
- "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.2.tgz",
6044
- "integrity": "sha512-P1otybl1d+sXg5FORl3PD82TzaOOP5aH1j0UVkpGf1p4BLw6VD0mJekS4mDc0pz6UKK2iIt0CFxXAEMKa/YtBA==",
6042
+ "version": "8.26.3",
6043
+ "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.3.tgz",
6044
+ "integrity": "sha512-lPNFHjHFeC4V3KuH88xuVLGhAqmtM8meUcvyejNh8bQ5w642APKRTGDZ0pOnWHJAe5SQy7cSQ1WqvO3V73ouQw==",
6045
6045
  "license": "BSD-3-Clause",
6046
6046
  "dependencies": {
6047
6047
  "@jsforce/jsforce-node": "^3.10.13",
@@ -6090,19 +6090,19 @@
6090
6090
  }
6091
6091
  },
6092
6092
  "node_modules/@salesforce/sdk-core": {
6093
- "version": "1.53.1",
6094
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.1.tgz",
6095
- "integrity": "sha512-ofJ9yhxX03n0Gy6OrdDZygyL4wL+HDyAoziOF5YrPA9QImRAvEo5s6TR1t7u8noTacVvgDgAHJQBVyz0qZXZvg==",
6093
+ "version": "1.53.2",
6094
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.2.tgz",
6095
+ "integrity": "sha512-q4Wxa4zIC2/vpJYtu91RfYP+XR+SayN0ENRxMYp0H9X4GuHBdwS1wCrZX2bUKQqsTXNKlLuOBF+aUSR6xsHfPA==",
6096
6096
  "license": "SEE LICENSE IN LICENSE.txt"
6097
6097
  },
6098
6098
  "node_modules/@salesforce/sdk-data": {
6099
- "version": "1.53.1",
6100
- "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.1.tgz",
6101
- "integrity": "sha512-ltzKLGpYt2H1H8op8n917+IUC4QKGc/GbfHcpHYCQl9eNrQxumjnm7DmiF+zldrd6HsHDp6nDYjWQx3dinag4A==",
6099
+ "version": "1.53.2",
6100
+ "resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.2.tgz",
6101
+ "integrity": "sha512-OnPUqLxbTUS0ZzyCBBJpXiChbbwdu4rwAewm9t12WuRZYuWYiIKskAa9rlQxGfZCj/SuEjRAYC/JcBL1jx7Dng==",
6102
6102
  "license": "SEE LICENSE IN LICENSE.txt",
6103
6103
  "dependencies": {
6104
6104
  "@conduit-client/salesforce-lightning-service-worker": "^3.7.0",
6105
- "@salesforce/sdk-core": "^1.53.1"
6105
+ "@salesforce/sdk-core": "^1.53.2"
6106
6106
  }
6107
6107
  },
6108
6108
  "node_modules/@salesforce/ts-types": {
@@ -6115,15 +6115,15 @@
6115
6115
  }
6116
6116
  },
6117
6117
  "node_modules/@salesforce/vite-plugin-webapp-experimental": {
6118
- "version": "1.53.1",
6119
- "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.1.tgz",
6120
- "integrity": "sha512-XsnxLhB15FvKpcrKTL1SGTIV/I3hZX3V44v4mItaVvWa53DYhdEmqgM60bYd8+TAEnuKEgYyjqrrwMGQc0qJhg==",
6118
+ "version": "1.53.2",
6119
+ "resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.2.tgz",
6120
+ "integrity": "sha512-1usI5gywg45/R+OJcgISHM00ggIniJuwLpJ7I2eYtz//O/ZHP3+3vAzRZO+iZjV4mtqNjO7+cG0OvheIyd5IvA==",
6121
6121
  "dev": true,
6122
6122
  "license": "SEE LICENSE IN LICENSE.txt",
6123
6123
  "dependencies": {
6124
6124
  "@babel/core": "^7.28.4",
6125
6125
  "@babel/helper-plugin-utils": "^7.28.3",
6126
- "@salesforce/webapp-experimental": "^1.53.1"
6126
+ "@salesforce/webapp-experimental": "^1.53.2"
6127
6127
  },
6128
6128
  "engines": {
6129
6129
  "node": ">=20.0.0"
@@ -6133,13 +6133,13 @@
6133
6133
  }
6134
6134
  },
6135
6135
  "node_modules/@salesforce/webapp-experimental": {
6136
- "version": "1.53.1",
6137
- "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.1.tgz",
6138
- "integrity": "sha512-vX5+fLStDCsBUQp5uP5s7n4qbSTdrjLQ3PqYsQSpVlPL1+lfEvwIwIeRygdtluAQB02U7uIBFeN/GvObLA+/xg==",
6136
+ "version": "1.53.2",
6137
+ "resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.2.tgz",
6138
+ "integrity": "sha512-B6diQcMzxresuh4aud6Uw7Cr9dC89L3+pnxG4r0wbwCx5xRHeeyl6m6M4dUDFhR0y1D6p2/Jnhf3StoJ3u3thg==",
6139
6139
  "license": "SEE LICENSE IN LICENSE.txt",
6140
6140
  "dependencies": {
6141
6141
  "@salesforce/core": "^8.23.4",
6142
- "@salesforce/sdk-data": "^1.53.1",
6142
+ "@salesforce/sdk-data": "^1.53.2",
6143
6143
  "axios": "^1.7.7",
6144
6144
  "micromatch": "^4.0.8",
6145
6145
  "path-to-regexp": "^8.3.0"
@@ -14,7 +14,7 @@
14
14
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
15
15
  },
16
16
  "dependencies": {
17
- "@salesforce/agentforce-conversation-client": "^1.53.1",
17
+ "@salesforce/agentforce-conversation-client": "^1.53.2",
18
18
  "@salesforce/sdk-data": "^1.11.2",
19
19
  "@salesforce/webapp-experimental": "*",
20
20
  "@tailwindcss/vite": "^4.1.17",
@@ -190,7 +190,7 @@ Be sure to also change the footer background. Remember to change every component
190
190
 
191
191
  6. Limit the query to the first 20 accounts for performance.
192
192
 
193
- 7. Use the existing executeGraphQL utility function from @/api/graphql for the GraphQL query."
193
+ 7. Use getDataSDK() from @salesforce/webapp-experimental/api, then call data.graphql?.() for the GraphQL query."
194
194
  />
195
195
  </PromptHighlight>
196
196
 
@@ -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-vibe-experimental",
3
- "version": "1.53.2",
3
+ "version": "1.54.0",
4
4
  "description": "Vibe coding starter app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -43,5 +43,5 @@
43
43
  }
44
44
  }
45
45
  },
46
- "gitHead": "8866eb09bf1e24f023333d1ecc491a1e1a6c8904"
46
+ "gitHead": "b48827161c23db20c7e546a857fe8c9f5f560c20"
47
47
  }