@salesforce/ui-bundle-template-app-react-template-b2e 1.130.1 → 1.131.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 +16 -0
- package/dist/force-app/main/default/uiBundles/reactinternalapp/package.json +3 -3
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/api/graphqlClient.ts +4 -1
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/object-search/__examples__/pages/AccountObjectDetailPage.tsx +4 -4
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/object-search/api/objectSearchService.ts +10 -7
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/pages/AccountObjectDetailPage.tsx +4 -4
- package/dist/force-app/main/default/uiBundles/reactinternalapp/tsconfig.json +7 -1
- package/dist/force-app/main/default/uiBundles/reactinternalapp/vite-env.d.ts +6 -0
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
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.131.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.130.2...v1.131.0) (2026-04-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.130.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.130.1...v1.130.2) (2026-04-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.130.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.130.0...v1.130.1) (2026-04-24)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/sdk-data": "^1.
|
|
22
|
-
"@salesforce/ui-bundle": "^1.
|
|
21
|
+
"@salesforce/sdk-data": "^1.131.0",
|
|
22
|
+
"@salesforce/ui-bundle": "^1.131.0",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
46
46
|
"@graphql-tools/utils": "^11.0.0",
|
|
47
47
|
"@playwright/test": "^1.49.0",
|
|
48
|
-
"@salesforce/vite-plugin-ui-bundle": "^1.
|
|
48
|
+
"@salesforce/vite-plugin-ui-bundle": "^1.131.0",
|
|
49
49
|
"@testing-library/jest-dom": "^6.6.3",
|
|
50
50
|
"@testing-library/react": "^16.1.0",
|
|
51
51
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -10,7 +10,10 @@ export async function executeGraphQL<TData, TVariables>(
|
|
|
10
10
|
): Promise<TData> {
|
|
11
11
|
const data = await createDataSDK();
|
|
12
12
|
// SDK types graphql() first param as string; at runtime it may accept gql DocumentNode too
|
|
13
|
-
const response = await data.graphql?.<TData, TVariables>(
|
|
13
|
+
const response = await data.graphql?.<TData, TVariables>({
|
|
14
|
+
query,
|
|
15
|
+
variables,
|
|
16
|
+
});
|
|
14
17
|
|
|
15
18
|
if (!response) {
|
|
16
19
|
throw new Error('GraphQL response is undefined');
|
|
@@ -29,10 +29,10 @@ 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>(
|
|
33
|
-
GET_ACCOUNT_DETAIL,
|
|
34
|
-
{ id: recordId },
|
|
35
|
-
);
|
|
32
|
+
const response = await data.graphql?.<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
|
|
33
|
+
query: GET_ACCOUNT_DETAIL,
|
|
34
|
+
variables: { id: recordId },
|
|
35
|
+
});
|
|
36
36
|
|
|
37
37
|
if (response?.errors?.length) {
|
|
38
38
|
throw new Error(response.errors.map((e) => e.message).join("; "));
|
|
@@ -21,12 +21,15 @@ 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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
const response = await data.graphql?.<TQuery, TVariables>({
|
|
25
|
+
query,
|
|
26
|
+
variables: {
|
|
27
|
+
first,
|
|
28
|
+
after,
|
|
29
|
+
where,
|
|
30
|
+
orderBy,
|
|
31
|
+
} as TVariables,
|
|
32
|
+
});
|
|
30
33
|
|
|
31
34
|
if (response?.errors?.length) {
|
|
32
35
|
throw new Error(response.errors.map((e) => e.message).join("; "));
|
|
@@ -56,7 +59,7 @@ export async function fetchDistinctValues<TQuery>(
|
|
|
56
59
|
fieldName: string,
|
|
57
60
|
): Promise<PicklistOption[]> {
|
|
58
61
|
const data = await createDataSDK();
|
|
59
|
-
const response = await data.graphql?.<TQuery>(query);
|
|
62
|
+
const response = await data.graphql?.<TQuery>({ query });
|
|
60
63
|
const errors = response?.errors;
|
|
61
64
|
|
|
62
65
|
if (errors?.length) {
|
package/dist/force-app/main/default/uiBundles/reactinternalapp/src/pages/AccountObjectDetailPage.tsx
CHANGED
|
@@ -33,10 +33,10 @@ 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>(
|
|
37
|
-
GET_ACCOUNT_DETAIL,
|
|
38
|
-
{ id: recordId },
|
|
39
|
-
);
|
|
36
|
+
const response = await data.graphql?.<GetAccountDetailQuery, GetAccountDetailQueryVariables>({
|
|
37
|
+
query: GET_ACCOUNT_DETAIL,
|
|
38
|
+
variables: { id: recordId },
|
|
39
|
+
});
|
|
40
40
|
|
|
41
41
|
if (response?.errors?.length) {
|
|
42
42
|
throw new Error(response.errors.map((e) => e.message).join("; "));
|
|
@@ -28,7 +28,13 @@
|
|
|
28
28
|
"@components/*": ["./src/components/*"],
|
|
29
29
|
"@utils/*": ["./src/utils/*"],
|
|
30
30
|
"@styles/*": ["./src/styles/*"],
|
|
31
|
-
"@assets/*": ["./src/assets/*"]
|
|
31
|
+
"@assets/*": ["./src/assets/*"],
|
|
32
|
+
"@salesforce/sdk-core": [
|
|
33
|
+
"../../../../../../../../../../packages/sdk/sdk-core/src/index.ts"
|
|
34
|
+
],
|
|
35
|
+
"@salesforce/sdk-data": [
|
|
36
|
+
"../../../../../../../../../../packages/sdk/sdk-data/src/index.ts"
|
|
37
|
+
]
|
|
32
38
|
}
|
|
33
39
|
},
|
|
34
40
|
"include": [
|
|
@@ -1 +1,7 @@
|
|
|
1
1
|
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
/** Salesforce API version injected at build time by the Vite define plugin. */
|
|
4
|
+
declare const __SF_API_VERSION__: string;
|
|
5
|
+
|
|
6
|
+
/** Package version of @salesforce/sdk-data injected at build time by its own Vite build. */
|
|
7
|
+
declare const __SDK_DATA_VERSION__: string;
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.131.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": "1.
|
|
9
|
+
"version": "1.131.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