@salesforce/ui-bundle-template-app-react-template-b2e 4.0.0 → 5.0.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/AGENT.md CHANGED
@@ -148,9 +148,9 @@ Do not consider a task complete until all three steps have been run successfully
148
148
 
149
149
  **Before writing any code that connects to Salesforce, you MUST invoke the `using-ui-bundle-salesforce-data` skill. Do not write any data access code without consulting it first.**
150
150
 
151
- This applies to: GraphQL queries/mutations, REST calls, SDK initialization, custom hooks that fetch data, or any code that imports from `@salesforce/platform-sdk-data`.
151
+ This applies to: GraphQL queries/mutations, REST calls, SDK initialization, custom hooks that fetch data, or any code that imports from `@salesforce/platform-sdk`.
152
152
 
153
- - **All data access uses the Data SDK** (`@salesforce/platform-sdk-data`) via `createDataSDK()`.
153
+ - **All data access uses the Data SDK** (`@salesforce/platform-sdk`) via `createDataSDK()`.
154
154
  - **Never** use `fetch()` or `axios` directly for Salesforce data.
155
155
  - **GraphQL is preferred** for record operations (`sdk.graphql`). Use `sdk.fetch` only when GraphQL cannot cover the case (UI API REST, Apex REST, Connect REST, Einstein LLM).
156
156
  - Use optional chaining: `sdk.graphql?.()`, `sdk.fetch?.()`.
@@ -181,7 +181,7 @@ Any endpoint not listed above is not permitted.
181
181
  6. **HTTP 200 does not mean success** — Salesforce returns HTTP 200 even on failure. Always check the `errors` array in the response body.
182
182
 
183
183
  #### GraphQL inline queries
184
- Must use the `gql` template tag from `@salesforce/platform-sdk-data` — plain template strings bypass `@graphql-eslint` schema validation. For complex queries, use external `.graphql` files with codegen.
184
+ Must use the `gql` template tag from `@salesforce/platform-sdk` — plain template strings bypass `@graphql-eslint` schema validation. For complex queries, use external `.graphql` files with codegen.
185
185
 
186
186
  #### Current user info
187
187
  Use GraphQL (`uiapi { currentUser { Id Name { value } } }`), not Chatter (`/chatter/users/me`).
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+ ## [5.0.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v4.0.0...v5.0.0) (2026-05-12)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **sdk:** @W-22453506 flip packages/template/** to @salesforce/platform-sdk (#510)
12
+
13
+ ### Features
14
+
15
+ * **sdk:** @W-22453506 flip packages/template/** to @salesforce/platform-sdk ([#510](https://github.com/salesforce-experience-platform-emu/webapps/issues/510)) ([ab56fab](https://github.com/salesforce-experience-platform-emu/webapps/commit/ab56fab3f4bae239daeaac3f5f29cf31c951be29))
16
+
17
+
18
+
6
19
  ## [4.0.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v3.1.1...v4.0.0) (2026-05-12)
7
20
 
8
21
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@salesforce/agentforce-conversation-client": "file:../../../../../../../../../agentforceConversationClient",
22
- "@salesforce/platform-sdk-data": "file:../../../../../../../../../sdk/platform-sdk-data",
22
+ "@salesforce/platform-sdk": "file:../../../../../../../../../sdk/platform-sdk",
23
23
  "@salesforce/ui-bundle": "file:../../../../../../../../../ui-bundle",
24
24
  "@tailwindcss/vite": "^4.1.17",
25
25
  "class-variance-authority": "^0.7.1",
@@ -2,7 +2,7 @@
2
2
  * Thin GraphQL client: createDataSDK + data.graphql with centralized error handling.
3
3
  * Use with gql-tagged queries and generated operation types for type-safe calls.
4
4
  */
5
- import { createDataSDK } from '@salesforce/platform-sdk-data';
5
+ import { createDataSDK } from '@salesforce/platform-sdk';
6
6
 
7
7
  export async function executeGraphQL<TData, TVariables>(
8
8
  query: string,
@@ -1,6 +1,6 @@
1
1
  import { useState } from "react";
2
2
  import { useParams, useNavigate } from "react-router";
3
- import { createDataSDK } from "@salesforce/platform-sdk-data";
3
+ import { createDataSDK } from "@salesforce/platform-sdk";
4
4
  import { AlertCircle, ChevronDown, ChevronRight, FileQuestion } from "lucide-react";
5
5
  import GET_ACCOUNT_DETAIL from "../api/query/getAccountDetail.graphql?raw";
6
6
  import type {
@@ -1,4 +1,4 @@
1
- import { createDataSDK } from "@salesforce/platform-sdk-data";
1
+ import { createDataSDK } from "@salesforce/platform-sdk";
2
2
 
3
3
  export interface ObjectSearchOptions<TWhere, TOrderBy> {
4
4
  where?: TWhere;
@@ -1,6 +1,6 @@
1
1
  import { useState } from "react";
2
2
  import { useParams, useNavigate } from "react-router";
3
- import { createDataSDK } from "@salesforce/platform-sdk-data";
3
+ import { createDataSDK } from "@salesforce/platform-sdk";
4
4
  import { AlertCircle, ChevronDown, ChevronRight, FileQuestion } from "lucide-react";
5
5
  import GET_ACCOUNT_DETAIL from "../api/account/query/getAccountDetail.graphql?raw";
6
6
  import type {
@@ -28,11 +28,8 @@
28
28
  "@utils/*": ["./src/utils/*"],
29
29
  "@styles/*": ["./src/styles/*"],
30
30
  "@assets/*": ["./src/assets/*"],
31
- "@salesforce/platform-sdk-core": [
32
- "../../../../../../../../../../packages/sdk/platform-sdk-core/src/index.ts"
33
- ],
34
- "@salesforce/platform-sdk-data": [
35
- "../../../../../../../../../../packages/sdk/platform-sdk-data/src/index.ts"
31
+ "@salesforce/platform-sdk": [
32
+ "../../../../../../../../../../packages/sdk/platform-sdk/src/index.ts"
36
33
  ]
37
34
  }
38
35
  },
@@ -41,7 +38,8 @@
41
38
  "e2e",
42
39
  "vite-env.d.ts",
43
40
  "vitest-env.d.ts",
44
- "vitest.setup.ts"
41
+ "vitest.setup.ts",
42
+ "../../../../../../../../../../packages/sdk/platform-sdk/types"
45
43
  ],
46
44
  "references": [{ "path": "./tsconfig.node.json" }]
47
45
  }
@@ -2,6 +2,3 @@
2
2
 
3
3
  /** Salesforce API version injected at build time by the Vite define plugin. */
4
4
  declare const __SF_API_VERSION__: string;
5
-
6
- /** Package version of @salesforce/platform-sdk-data injected at build time by its own Vite build. */
7
- declare const __SDK_DATA_VERSION__: string;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
9
- "version": "4.0.0",
9
+ "version": "5.0.0",
10
10
  "license": "SEE LICENSE IN LICENSE.txt",
11
11
  "devDependencies": {
12
12
  "@lwc/eslint-plugin-lwc": "^3.3.0",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "Base SFDX project template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-app-react-template-b2e",
3
- "version": "4.0.0",
3
+ "version": "5.0.0",
4
4
  "description": "Salesforce React internal app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",