@salesforce/ui-bundle-template-app-react-sample-b2x 12.4.1 → 12.4.3

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,23 @@
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
+ ## [12.4.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.2...v12.4.3) (2026-09-03)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [12.4.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.1...v12.4.2) (2026-09-02)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **ui-bundle:** use UI API GraphQL instead of Chatter for current-user lookup ([#951](https://github.com/salesforce-experience-platform-emu/webapps/issues/951)) ([47c28c1](https://github.com/salesforce-experience-platform-emu/webapps/commit/47c28c10a0b838eacef6c4a3e45e3a4fe587d20a))
20
+
21
+
22
+
6
23
  ## [12.4.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.0...v12.4.1) (2026-09-02)
7
24
 
8
25
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
package/dist/README.md CHANGED
@@ -330,6 +330,8 @@ cd -
330
330
 
331
331
  > **Prerequisite:** The org must be authenticated and metadata must already be deployed before running these commands, as the schema is generated from the org's live metadata.
332
332
 
333
+ > **Guest and Portal GraphQL API Access requires an org preference** Starting with org release 264, unauthenticated (guest) sessions can only call the GraphQL API — the endpoint this app's data layer uses — if the **Enable GraphQL API for Guest Users** org preference is enabled. It is off by default. This is a security-sensitive, org-wide setting, so enable it through **Setup > Security > API Access Controls > Enable GraphQL API for Guest Users**. Enable it before configuring the guest user profile in [Step 4](#step-4-configure-the-guest-user-profile). Without it, guest GraphQL calls fail with `403 GUEST_INSUFFICIENT_ACCESS`. This applies to any b2b/b2c (external) app whose site allows guest browsing — not just this sample.
334
+
333
335
  ### 7. Rebuild the UI Bundle
334
336
 
335
337
  Step 6 updates the generated GraphQL types in the UI Bundle source. Rebuild the app to compile those changes into the bundle before deploying:
@@ -504,6 +506,8 @@ Open the guest user profile (linked from the site's Preferences page, as describ
504
506
 
505
507
  > **Security note:** Enabling API access for the guest profile is required for the UI Bundle to make GraphQL API calls on behalf of unauthenticated users. Ensure that object-level and field-level permissions are restrictive (as listed below) to avoid exposing sensitive data.
506
508
 
509
+ > **Org preference (orgs on API v264+):** Profile-level "API Enabled" is not sufficient on its own. On orgs at API version 264 or later, guest sessions also need the org-wide **`GraphQLApiOrgPrefForGuestUsers`** preference enabled (**Setup > Security > API Access Controls > Enable GraphQL API for Guest Users**), or GraphQL calls from the guest user return `403 GUEST_INSUFFICIENT_ACCESS`. See the note in [Step 6](#6-generate-graphql-types).
510
+
507
511
  **Custom Object Permissions:**
508
512
 
509
513
  Guest users can only browse available properties and listings. All other objects are restricted.
@@ -19,8 +19,8 @@
19
19
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
20
20
  },
21
21
  "dependencies": {
22
- "@salesforce/platform-sdk": "^12.4.1",
23
- "@salesforce/ui-bundle": "^12.4.1",
22
+ "@salesforce/platform-sdk": "^12.4.3",
23
+ "@salesforce/ui-bundle": "^12.4.3",
24
24
  "@tailwindcss/vite": "^4.1.17",
25
25
  "class-variance-authority": "^0.7.1",
26
26
  "clsx": "^2.1.1",
@@ -51,8 +51,8 @@
51
51
  "@graphql-eslint/eslint-plugin": "^4.1.0",
52
52
  "@graphql-tools/utils": "^11.0.0",
53
53
  "@playwright/test": "^1.49.0",
54
- "@salesforce/graphiti": "^12.4.1",
55
- "@salesforce/vite-plugin-ui-bundle": "^12.4.1",
54
+ "@salesforce/graphiti": "^12.4.3",
55
+ "@salesforce/vite-plugin-ui-bundle": "^12.4.3",
56
56
  "@testing-library/jest-dom": "^6.6.3",
57
57
  "@testing-library/react": "^16.1.0",
58
58
  "@testing-library/user-event": "^14.5.2",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "12.4.1",
3
+ "version": "12.4.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
9
- "version": "12.4.1",
9
+ "version": "12.4.3",
10
10
  "license": "SEE LICENSE IN LICENSE.txt",
11
11
  "dependencies": {
12
12
  "fast-xml-parser": "^5.9.3",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "12.4.1",
3
+ "version": "12.4.3",
4
4
  "description": "Base SFDX project template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {
@@ -72,8 +72,8 @@ export const ConfigSchema = z
72
72
  // Required because React (Site Container) sites hide SSO config in Admin UI.
73
73
  authProviderNames: z.array(z.string().min(1)).min(1),
74
74
  // Permission set to assign to community users created via SSO.
75
- // Required because getCurrentUser() calls /chatter/users/me which needs
76
- // API access (PermissionsApiEnabled) that the community profile lacks.
75
+ // Required because getCurrentUser() calls UI API GraphQL (uiapi.currentUser)
76
+ // which needs API access (PermissionsApiEnabled) that the community profile lacks.
77
77
  // Typically the app's "*_Guest_User_Api_Access" permset.
78
78
  communityUserPermset: z.string().min(1).optional(),
79
79
  })
@@ -546,7 +546,7 @@ function loadSelfRegConfig(config) {
546
546
  * - communityMemberProfile: profile added to NetworkMemberGroup (required for access)
547
547
  * - authProviderNames: DeveloperNames of AuthProvider (OAuth) or SamlSsoConfig (SAML) records to link to site
548
548
  * - communityUserPermset: permset assigned to community users so getCurrentUser()
549
- * works (requires PermissionsApiEnabled for /chatter/users/me via /sf/api/)
549
+ * works (requires PermissionsApiEnabled for UI API GraphQL via /sf/api/)
550
550
  *
551
551
  * Returns null if no "socialLogin" section exists in config (the step is hidden).
552
552
  */
@@ -937,7 +937,7 @@ function addCommunityMemberProfile(profileName, siteName, targetOrg) {
937
937
  * Assign a permission set to all existing community users with a given profile.
938
938
  *
939
939
  * After SSO login, community users need the app's API-enabled permset so that
940
- * getCurrentUser() (which calls /chatter/users/me via the /sf/api/ proxy) works.
940
+ * getCurrentUser() (which calls UI API GraphQL via the /sf/api/ proxy) works.
941
941
  * Without PermissionsApiEnabled the proxy returns API_DISABLED_FOR_ORG and the
942
942
  * React app treats the user as unauthenticated.
943
943
  *
@@ -2309,7 +2309,7 @@ async function main() {
2309
2309
  addCommunityMemberProfile(socialLoginConfig.communityMemberProfile, siteName, targetOrg);
2310
2310
 
2311
2311
  // Sub-step 4 (optional): Assign API-enabled permset to community users.
2312
- // Without this, getCurrentUser() fails because /chatter/users/me requires
2312
+ // Without this, getCurrentUser() fails because UI API GraphQL requires
2313
2313
  // PermissionsApiEnabled which the standard community profile lacks.
2314
2314
  if (socialLoginConfig.communityUserPermset) {
2315
2315
  console.log(` [4/${totalSubSteps}] Assigning API permset to community users...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-app-react-sample-b2x",
3
- "version": "12.4.1",
3
+ "version": "12.4.3",
4
4
  "description": "Salesforce sample property rental React app",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",