@salesforce/webapp-template-app-react-template-b2x-experimental 1.88.0 → 1.89.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,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.89.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.88.1...v1.89.0) (2026-03-10)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.88.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.88.0...v1.88.1) (2026-03-10)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.88.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.87.0...v1.88.0) (2026-03-10)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
@@ -4,7 +4,7 @@
4
4
  "contentBody": {
5
5
  "authenticationType": "AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED",
6
6
  "appContainer": true,
7
- "appSpace": "c/appreacttemplateb2x"
7
+ "appSpace": "c-appreacttemplateb2x"
8
8
  },
9
9
  "urlName": "appreacttemplateb2x"
10
10
  }
@@ -15,8 +15,8 @@
15
15
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
16
16
  },
17
17
  "dependencies": {
18
- "@salesforce/sdk-data": "^1.88.0",
19
- "@salesforce/webapp-experimental": "^1.88.0",
18
+ "@salesforce/sdk-data": "^1.89.0",
19
+ "@salesforce/webapp-experimental": "^1.89.0",
20
20
  "@tailwindcss/vite": "^4.1.17",
21
21
  "@tanstack/react-form": "^1.28.4",
22
22
  "class-variance-authority": "^0.7.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.88.0",
43
+ "@salesforce/vite-plugin-webapp-experimental": "^1.89.0",
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",
@@ -16,6 +16,10 @@ const USER_PROFILE_FIELDS_FULL = `
16
16
  PostalCode { value }
17
17
  Country { value }`;
18
18
 
19
+ const USER_CONTACT_FIELDS = `
20
+ Id
21
+ ContactId { value }`;
22
+
19
23
  function getUserProfileQuery(fields: string): string {
20
24
  return `
21
25
  query GetUserProfile($userId: ID) {
@@ -58,11 +62,21 @@ export async function fetchUserProfile<T>(
58
62
  fields: string = USER_PROFILE_FIELDS_FULL,
59
63
  ): Promise<T> {
60
64
  const data = await getDataSDK();
61
- const response: any = await data.graphql?.(getUserProfileQuery(fields), { userId });
65
+ const response: any = await data.graphql?.(getUserProfileQuery(fields), {
66
+ userId,
67
+ });
62
68
  throwOnGraphQLErrors(response);
63
69
  return flattenGraphQLRecord<T>(response?.data?.uiapi?.query?.User?.edges?.[0]?.node);
64
70
  }
65
71
 
72
+ /**
73
+ * Fetches the user's associated contact record ID via GraphQL and returns a flattened record.
74
+ * @param userId - The Salesforce User Id.
75
+ */
76
+ export async function fetchUserContact<T>(userId: string): Promise<T> {
77
+ return fetchUserProfile<T>(userId, USER_CONTACT_FIELDS);
78
+ }
79
+
66
80
  /**
67
81
  * Updates the user profile via GraphQL and returns the flattened updated record.
68
82
  * @param userId - The Salesforce User Id.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.88.0",
3
+ "version": "1.89.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.88.0",
3
+ "version": "1.89.0",
4
4
  "description": "Base reference app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",