@salesforce/ui-bundle-template-app-react-template-b2e 7.0.1 → 8.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/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
+ ## [8.0.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v7.1.0...v8.0.0) (2026-05-15)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [7.1.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v7.0.1...v7.1.0) (2026-05-14)
15
+
16
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
17
+
18
+
19
+
20
+
21
+
6
22
  ## [7.0.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v7.0.0...v7.0.1) (2026-05-14)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Thin GraphQL client: createDataSDK + data.graphql with centralized error handling.
3
- * Use with gql-tagged queries and generated operation types for type-safe calls.
2
+ * Thin GraphQL client: createDataSDK + sdk.graphql.query with centralized
3
+ * error handling. Use with gql-tagged queries and generated operation types
4
+ * for type-safe calls.
4
5
  */
5
6
  import { createDataSDK } from '@salesforce/platform-sdk';
6
7
 
@@ -9,20 +10,19 @@ export async function executeGraphQL<TData, TVariables>(
9
10
  variables?: TVariables
10
11
  ): Promise<TData> {
11
12
  const data = await createDataSDK();
12
- // SDK types graphql() first param as string; at runtime it may accept gql DocumentNode too
13
- const response = await data.graphql?.<TData, TVariables>({
14
- query,
15
- variables,
13
+ const result = await data.graphql!.query<TData, TVariables>({
14
+ query: query,
15
+ variables: variables,
16
16
  });
17
17
 
18
- if (!response) {
19
- throw new Error('GraphQL response is undefined');
18
+ if (result.errors?.length) {
19
+ const msg = result.errors.map(e => e.message).join('; ');
20
+ throw new Error(`GraphQL Error: ${msg}`);
20
21
  }
21
22
 
22
- if (response?.errors?.length) {
23
- const msg = response.errors.map(e => e.message).join('; ');
24
- throw new Error(`GraphQL Error: ${msg}`);
23
+ if (result.data == null) {
24
+ throw new Error('GraphQL response data is null');
25
25
  }
26
26
 
27
- return response.data;
27
+ return result.data;
28
28
  }
@@ -113,6 +113,7 @@ export function AgentforceConversationClient({
113
113
  ...(agentLabel !== undefined && { agentLabel }),
114
114
  styleTokens: { ...DEFAULT_STYLE_TOKENS, ...styleTokens },
115
115
  renderingConfig,
116
+ channel: "Vibes",
116
117
  };
117
118
  }, [agentId, agentLabel, inlineProp, headerEnabled, showHeaderIcon, width, height, styleTokens]);
118
119
 
@@ -29,16 +29,16 @@ type AccountNode = NonNullable<
29
29
 
30
30
  async function fetchAccountDetail(recordId: string): Promise<AccountNode | null | undefined> {
31
31
  const data = await createDataSDK();
32
- const response = await data.graphql?.<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
32
+ const result = await data.graphql!.query<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
33
33
  query: GET_ACCOUNT_DETAIL,
34
34
  variables: { id: recordId },
35
35
  });
36
36
 
37
- if (response?.errors?.length) {
38
- throw new Error(response.errors.map((e) => e.message).join("; "));
37
+ if (result.errors?.length) {
38
+ throw new Error(result.errors.map((e) => e.message).join("; "));
39
39
  }
40
40
 
41
- return response?.data?.uiapi?.query?.Account?.edges?.[0]?.node;
41
+ return result.data?.uiapi?.query?.Account?.edges?.[0]?.node;
42
42
  }
43
43
 
44
44
  export default function AccountObjectDetail() {
@@ -21,24 +21,20 @@ export async function searchObjects<TResult, TQuery, TVariables>(
21
21
  const { where, orderBy, first = 20, after } = options;
22
22
 
23
23
  const data = await createDataSDK();
24
- const response = await data.graphql?.<TQuery, TVariables>({
25
- query,
26
- variables: {
27
- first,
28
- after,
29
- where,
30
- orderBy,
31
- } as TVariables,
24
+ const variables = { first, after, where, orderBy } as TVariables;
25
+ const result = await data.graphql!.query<TQuery, TVariables>({
26
+ query: query,
27
+ variables: variables,
32
28
  });
33
29
 
34
- if (response?.errors?.length) {
35
- throw new Error(response.errors.map((e) => e.message).join("; "));
30
+ if (result.errors?.length) {
31
+ throw new Error(result.errors.map((e) => e.message).join("; "));
36
32
  }
37
33
 
38
- const result = (response?.data as Record<string, unknown> | undefined)?.uiapi as
34
+ const uiapi = (result.data as Record<string, unknown> | undefined)?.uiapi as
39
35
  | Record<string, unknown>
40
36
  | undefined;
41
- const queryResult = (result?.query as Record<string, unknown> | undefined)?.[objectName] as
37
+ const queryResult = (uiapi?.query as Record<string, unknown> | undefined)?.[objectName] as
42
38
  | TResult
43
39
  | undefined;
44
40
 
@@ -59,17 +55,16 @@ export async function fetchDistinctValues<TQuery>(
59
55
  fieldName: string,
60
56
  ): Promise<PicklistOption[]> {
61
57
  const data = await createDataSDK();
62
- const response = await data.graphql?.<TQuery>({ query });
63
- const errors = response?.errors;
58
+ const result = await data.graphql!.query<TQuery>({ query: query });
64
59
 
65
- if (errors?.length) {
66
- throw new Error(errors.map((e) => e.message).join("; "));
60
+ if (result.errors?.length) {
61
+ throw new Error(result.errors.map((e) => e.message).join("; "));
67
62
  }
68
63
 
69
- const result = (response?.data as Record<string, unknown> | undefined)?.uiapi as
64
+ const uiapi = (result.data as Record<string, unknown> | undefined)?.uiapi as
70
65
  | Record<string, unknown>
71
66
  | undefined;
72
- const aggregate = (result?.aggregate as Record<string, unknown> | undefined)?.[objectName] as
67
+ const aggregate = (uiapi?.aggregate as Record<string, unknown> | undefined)?.[objectName] as
73
68
  | { edges?: Array<{ node?: { aggregate?: Record<string, unknown> } }> }
74
69
  | undefined;
75
70
 
@@ -33,16 +33,16 @@ type AccountNode = NonNullable<
33
33
 
34
34
  async function fetchAccountDetail(recordId: string): Promise<AccountNode | null | undefined> {
35
35
  const data = await createDataSDK();
36
- const response = await data.graphql?.<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
36
+ const result = await data.graphql!.query<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
37
37
  query: GET_ACCOUNT_DETAIL,
38
38
  variables: { id: recordId },
39
39
  });
40
40
 
41
- if (response?.errors?.length) {
42
- throw new Error(response.errors.map((e) => e.message).join("; "));
41
+ if (result.errors?.length) {
42
+ throw new Error(result.errors.map((e) => e.message).join("; "));
43
43
  }
44
44
 
45
- return response?.data?.uiapi?.query?.Account?.edges?.[0]?.node;
45
+ return result.data?.uiapi?.query?.Account?.edges?.[0]?.node;
46
46
  }
47
47
 
48
48
  export default function AccountObjectDetail() {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "7.0.1",
3
+ "version": "8.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": "7.0.1",
9
+ "version": "8.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": "7.0.1",
3
+ "version": "8.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": "7.0.1",
3
+ "version": "8.0.0",
4
4
  "description": "Salesforce React internal app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",