@salesforce/webapp-template-feature-react-global-search-experimental 1.53.2 → 1.54.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 +8 -0
- package/dist/force-app/main/default/webapplications/feature-react-global-search/package-lock.json +18 -18
- package/dist/force-app/main/default/webapplications/feature-react-global-search/src/api/objectInfoGraphQLService.ts +10 -2
- package/dist/force-app/main/default/webapplications/feature-react-global-search/src/api/recordListGraphQLService.ts +10 -2
- package/dist/force-app/main/default/webapplications/feature-react-global-search/src/api/utils/accounts.ts +14 -6
- package/dist/package.json +1 -1
- package/package.json +2 -2
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.54.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.53.2...v1.54.0) (2026-02-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.53.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.53.1...v1.53.2) (2026-02-25)
|
|
7
15
|
|
|
8
16
|
|
package/dist/force-app/main/default/webapplications/feature-react-global-search/package-lock.json
CHANGED
|
@@ -6020,9 +6020,9 @@
|
|
|
6020
6020
|
]
|
|
6021
6021
|
},
|
|
6022
6022
|
"node_modules/@salesforce/core": {
|
|
6023
|
-
"version": "8.26.
|
|
6024
|
-
"resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.
|
|
6025
|
-
"integrity": "sha512-
|
|
6023
|
+
"version": "8.26.3",
|
|
6024
|
+
"resolved": "https://registry.npmjs.org/@salesforce/core/-/core-8.26.3.tgz",
|
|
6025
|
+
"integrity": "sha512-lPNFHjHFeC4V3KuH88xuVLGhAqmtM8meUcvyejNh8bQ5w642APKRTGDZ0pOnWHJAe5SQy7cSQ1WqvO3V73ouQw==",
|
|
6026
6026
|
"license": "BSD-3-Clause",
|
|
6027
6027
|
"dependencies": {
|
|
6028
6028
|
"@jsforce/jsforce-node": "^3.10.13",
|
|
@@ -6071,19 +6071,19 @@
|
|
|
6071
6071
|
}
|
|
6072
6072
|
},
|
|
6073
6073
|
"node_modules/@salesforce/sdk-core": {
|
|
6074
|
-
"version": "1.53.
|
|
6075
|
-
"resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.
|
|
6076
|
-
"integrity": "sha512-
|
|
6074
|
+
"version": "1.53.2",
|
|
6075
|
+
"resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.53.2.tgz",
|
|
6076
|
+
"integrity": "sha512-q4Wxa4zIC2/vpJYtu91RfYP+XR+SayN0ENRxMYp0H9X4GuHBdwS1wCrZX2bUKQqsTXNKlLuOBF+aUSR6xsHfPA==",
|
|
6077
6077
|
"license": "SEE LICENSE IN LICENSE.txt"
|
|
6078
6078
|
},
|
|
6079
6079
|
"node_modules/@salesforce/sdk-data": {
|
|
6080
|
-
"version": "1.53.
|
|
6081
|
-
"resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.
|
|
6082
|
-
"integrity": "sha512-
|
|
6080
|
+
"version": "1.53.2",
|
|
6081
|
+
"resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.53.2.tgz",
|
|
6082
|
+
"integrity": "sha512-OnPUqLxbTUS0ZzyCBBJpXiChbbwdu4rwAewm9t12WuRZYuWYiIKskAa9rlQxGfZCj/SuEjRAYC/JcBL1jx7Dng==",
|
|
6083
6083
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6084
6084
|
"dependencies": {
|
|
6085
6085
|
"@conduit-client/salesforce-lightning-service-worker": "^3.7.0",
|
|
6086
|
-
"@salesforce/sdk-core": "^1.53.
|
|
6086
|
+
"@salesforce/sdk-core": "^1.53.2"
|
|
6087
6087
|
}
|
|
6088
6088
|
},
|
|
6089
6089
|
"node_modules/@salesforce/ts-types": {
|
|
@@ -6096,15 +6096,15 @@
|
|
|
6096
6096
|
}
|
|
6097
6097
|
},
|
|
6098
6098
|
"node_modules/@salesforce/vite-plugin-webapp-experimental": {
|
|
6099
|
-
"version": "1.53.
|
|
6100
|
-
"resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.
|
|
6101
|
-
"integrity": "sha512-
|
|
6099
|
+
"version": "1.53.2",
|
|
6100
|
+
"resolved": "https://registry.npmjs.org/@salesforce/vite-plugin-webapp-experimental/-/vite-plugin-webapp-experimental-1.53.2.tgz",
|
|
6101
|
+
"integrity": "sha512-1usI5gywg45/R+OJcgISHM00ggIniJuwLpJ7I2eYtz//O/ZHP3+3vAzRZO+iZjV4mtqNjO7+cG0OvheIyd5IvA==",
|
|
6102
6102
|
"dev": true,
|
|
6103
6103
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6104
6104
|
"dependencies": {
|
|
6105
6105
|
"@babel/core": "^7.28.4",
|
|
6106
6106
|
"@babel/helper-plugin-utils": "^7.28.3",
|
|
6107
|
-
"@salesforce/webapp-experimental": "^1.53.
|
|
6107
|
+
"@salesforce/webapp-experimental": "^1.53.2"
|
|
6108
6108
|
},
|
|
6109
6109
|
"engines": {
|
|
6110
6110
|
"node": ">=20.0.0"
|
|
@@ -6114,13 +6114,13 @@
|
|
|
6114
6114
|
}
|
|
6115
6115
|
},
|
|
6116
6116
|
"node_modules/@salesforce/webapp-experimental": {
|
|
6117
|
-
"version": "1.53.
|
|
6118
|
-
"resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.
|
|
6119
|
-
"integrity": "sha512-
|
|
6117
|
+
"version": "1.53.2",
|
|
6118
|
+
"resolved": "https://registry.npmjs.org/@salesforce/webapp-experimental/-/webapp-experimental-1.53.2.tgz",
|
|
6119
|
+
"integrity": "sha512-B6diQcMzxresuh4aud6Uw7Cr9dC89L3+pnxG4r0wbwCx5xRHeeyl6m6M4dUDFhR0y1D6p2/Jnhf3StoJ3u3thg==",
|
|
6120
6120
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6121
6121
|
"dependencies": {
|
|
6122
6122
|
"@salesforce/core": "^8.23.4",
|
|
6123
|
-
"@salesforce/sdk-data": "^1.53.
|
|
6123
|
+
"@salesforce/sdk-data": "^1.53.2",
|
|
6124
6124
|
"axios": "^1.7.7",
|
|
6125
6125
|
"micromatch": "^4.0.8",
|
|
6126
6126
|
"path-to-regexp": "^8.3.0"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module api/objectInfoGraphQLService
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { getDataSDK } from "@salesforce/webapp-experimental/api";
|
|
11
11
|
|
|
12
12
|
/** GraphQL objectInfoInputs for requesting picklist values (API v65.0+). Only apiName and fieldNames are sent; record type filtering is done from the response. */
|
|
13
13
|
export interface ObjectInfoInput {
|
|
@@ -182,5 +182,13 @@ export async function getObjectInfosGraphQL(
|
|
|
182
182
|
const variables: Record<string, unknown> = hasInputs
|
|
183
183
|
? { objectInfoInputs: options!.objectInfoInputs }
|
|
184
184
|
: { apiNames: names };
|
|
185
|
-
|
|
185
|
+
const data = await getDataSDK();
|
|
186
|
+
const response = await data.graphql?.<ObjectInfosGraphQLResponse>(query, variables);
|
|
187
|
+
|
|
188
|
+
if (response?.errors?.length) {
|
|
189
|
+
const errorMessages = response.errors.map((e) => e.message).join("; ");
|
|
190
|
+
throw new Error(`GraphQL Error: ${errorMessages}`);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return response?.data ?? ({} as ObjectInfosGraphQLResponse);
|
|
186
194
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @module api/recordListGraphQLService
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { getDataSDK } from "@salesforce/webapp-experimental/api";
|
|
11
11
|
import type { Column } from "../types/search/searchResults";
|
|
12
12
|
import type { FilterCriteria } from "../types/filters/filters";
|
|
13
13
|
|
|
@@ -328,7 +328,15 @@ export async function getRecordsGraphQL(
|
|
|
328
328
|
...(hasOrderBy && orderBy ? { orderBy } : {}),
|
|
329
329
|
};
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
const data = await getDataSDK();
|
|
332
|
+
const response = await data.graphql?.<RecordListGraphQLResult>(query, variables);
|
|
333
|
+
|
|
334
|
+
if (response?.errors?.length) {
|
|
335
|
+
const errorMessages = response.errors.map((e) => e.message).join("; ");
|
|
336
|
+
throw new Error(`GraphQL Error: ${errorMessages}`);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return response?.data ?? ({} as RecordListGraphQLResult);
|
|
332
340
|
}
|
|
333
341
|
|
|
334
342
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDataSDK } from '@salesforce/webapp-experimental/api';
|
|
2
2
|
import HIGH_REVENUE_ACCOUNTS_QUERY from './query/highRevenueAccountsQuery.graphql?raw';
|
|
3
3
|
import type {
|
|
4
4
|
GetHighRevenueAccountsQuery,
|
|
@@ -24,10 +24,18 @@ type AccountNode = NonNullable<
|
|
|
24
24
|
export async function getHighRevenueAccounts(
|
|
25
25
|
variables: GetHighRevenueAccountsQueryVariables
|
|
26
26
|
): Promise<(AccountNode | null | undefined)[]> {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const data = await getDataSDK();
|
|
28
|
+
const response = await data.graphql?.<
|
|
29
|
+
GetHighRevenueAccountsQuery,
|
|
30
|
+
GetHighRevenueAccountsQueryVariables
|
|
31
|
+
>(HIGH_REVENUE_ACCOUNTS_QUERY, variables);
|
|
32
|
+
|
|
33
|
+
if (response?.errors?.length) {
|
|
34
|
+
const errorMessages = response.errors.map(e => e.message).join('; ');
|
|
35
|
+
throw new Error(`GraphQL Error: ${errorMessages}`);
|
|
36
|
+
}
|
|
31
37
|
|
|
32
|
-
return
|
|
38
|
+
return (
|
|
39
|
+
response?.data?.uiapi?.query?.Account?.edges?.map(edge => edge?.node) || []
|
|
40
|
+
);
|
|
33
41
|
}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-feature-react-global-search-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.0",
|
|
4
4
|
"description": "Global search feature for Salesforce objects with filtering and pagination",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b48827161c23db20c7e546a857fe8c9f5f560c20"
|
|
45
45
|
}
|