@salesforce/ui-bundle-template-app-react-template-b2e 12.3.6 → 12.3.7
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/uiBundles/reactinternalapp/package.json +4 -4
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/hooks/useSearch.ts +4 -3
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/utils/filterUtils.ts +7 -2
- 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,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
|
+
## [12.3.7](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.3.6...v12.3.7) (2026-09-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [12.3.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.3.5...v12.3.6) (2026-09-01)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@salesforce/platform-sdk": "^12.3.
|
|
23
|
-
"@salesforce/ui-bundle": "^12.3.
|
|
22
|
+
"@salesforce/platform-sdk": "^12.3.7",
|
|
23
|
+
"@salesforce/ui-bundle": "^12.3.7",
|
|
24
24
|
"@tailwindcss/vite": "^4.1.17",
|
|
25
25
|
"class-variance-authority": "^0.7.1",
|
|
26
26
|
"clsx": "^2.1.1",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
47
47
|
"@graphql-tools/utils": "^11.0.0",
|
|
48
48
|
"@playwright/test": "^1.49.0",
|
|
49
|
-
"@salesforce/graphiti": "^12.3.
|
|
50
|
-
"@salesforce/vite-plugin-ui-bundle": "^12.3.
|
|
49
|
+
"@salesforce/graphiti": "^12.3.7",
|
|
50
|
+
"@salesforce/vite-plugin-ui-bundle": "^12.3.7",
|
|
51
51
|
"@testing-library/jest-dom": "^6.6.3",
|
|
52
52
|
"@testing-library/react": "^16.1.0",
|
|
53
53
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -102,7 +102,7 @@ interface ResolvedPagination {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/** Resolves the single global pagination config, filling in defaults. */
|
|
105
|
-
function resolvePagination(config: SearchConfig): ResolvedPagination {
|
|
105
|
+
export function resolvePagination(config: SearchConfig): ResolvedPagination {
|
|
106
106
|
const p = config.pagination;
|
|
107
107
|
const pageSizeOptions =
|
|
108
108
|
p?.pageSizeOptions && p.pageSizeOptions.length > 0
|
|
@@ -123,7 +123,7 @@ function validatePageSize(pagination: ResolvedPagination, size: number): number
|
|
|
123
123
|
return valid.includes(size) ? size : pagination.pageSize;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
function initSourceState(
|
|
126
|
+
export function initSourceState(
|
|
127
127
|
source: SourceConfig,
|
|
128
128
|
params: URLSearchParams,
|
|
129
129
|
pagination: ResolvedPagination,
|
|
@@ -139,7 +139,8 @@ function initSourceState(
|
|
|
139
139
|
filters: read.filters,
|
|
140
140
|
sort,
|
|
141
141
|
pageSize,
|
|
142
|
-
|
|
142
|
+
// Cursors aren't persisted to the URL, so always seed the first page (page param ignored on read).
|
|
143
|
+
pageIndex: 0,
|
|
143
144
|
afterCursor: undefined,
|
|
144
145
|
cursorStack: [],
|
|
145
146
|
};
|
|
@@ -233,8 +233,13 @@ function buildSingleFilter(filter: ActiveFilterValue, config?: FilterFieldConfig
|
|
|
233
233
|
if (config?.max != null) n = Math.min(n, config.max);
|
|
234
234
|
return n;
|
|
235
235
|
};
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
// Drop any endpoint that isn't finite — NaN/Infinity serialize to null on the wire.
|
|
237
|
+
const lo = Number(min);
|
|
238
|
+
if (min && Number.isFinite(lo)) ops.gte = clamp(lo);
|
|
239
|
+
const hi = Number(max);
|
|
240
|
+
if (max && Number.isFinite(hi)) ops.lte = clamp(hi);
|
|
241
|
+
// If both endpoints were dropped as invalid, emit no clause at all.
|
|
242
|
+
if (Object.keys(ops).length === 0) return null;
|
|
238
243
|
return { [field]: ops };
|
|
239
244
|
}
|
|
240
245
|
case "boolean": {
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.7",
|
|
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.3.
|
|
9
|
+
"version": "12.3.7",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fast-xml-parser": "^5.9.3",
|
package/dist/package.json
CHANGED