@salesforce/webapp-template-app-react-template-b2x-experimental 1.75.0 → 1.75.1
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/appreacttemplateb2x/package.json +4 -4
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/components/detail/DetailForm.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/components/search/GlobalSearchInput.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/components/search/SearchResultCard.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/pages/DetailPage.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/pages/GlobalSearch.tsx +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/api/index.ts +0 -19
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/components/detail/formatted/index.ts +0 -6
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/hooks/index.ts +0 -22
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/types/index.ts +0 -5
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/features/global-search/utils/index.ts +0 -59
- package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/index.ts +0 -10
- /package/dist/force-app/main/default/webapplications/appreacttemplateb2x/src/{constants.ts → features/global-search/constants.ts} +0 -0
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.75.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.75.0...v1.75.1) (2026-03-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [1.75.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.74.0...v1.75.0) (2026-03-05)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@salesforce/sdk-data": "^1.75.
|
|
19
|
-
"@salesforce/webapp-experimental": "^1.75.
|
|
18
|
+
"@salesforce/sdk-data": "^1.75.1",
|
|
19
|
+
"@salesforce/webapp-experimental": "^1.75.1",
|
|
20
20
|
"@tailwindcss/vite": "^4.1.17",
|
|
21
21
|
"@tanstack/react-form": "^1.28.4",
|
|
22
22
|
"class-variance-authority": "^0.7.1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"react-dom": "^19.2.0",
|
|
28
28
|
"react-router": "^7.10.1",
|
|
29
29
|
"shadcn": "^3.8.5",
|
|
30
|
-
"tailwind-merge": "^3.
|
|
30
|
+
"tailwind-merge": "^3.5.0",
|
|
31
31
|
"tailwindcss": "^4.1.17",
|
|
32
32
|
"tw-animate-css": "^1.4.0",
|
|
33
33
|
"zod": "^4.3.6"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
41
41
|
"@graphql-tools/utils": "^11.0.0",
|
|
42
42
|
"@playwright/test": "^1.49.0",
|
|
43
|
-
"@salesforce/vite-plugin-webapp-experimental": "^1.75.
|
|
43
|
+
"@salesforce/vite-plugin-webapp-experimental": "^1.75.1",
|
|
44
44
|
"@testing-library/jest-dom": "^6.6.3",
|
|
45
45
|
"@testing-library/react": "^16.1.0",
|
|
46
46
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
type PicklistOption,
|
|
14
14
|
type TransformedLayoutItem,
|
|
15
15
|
} from "../../utils/layoutTransformUtils";
|
|
16
|
-
import { FieldValueDisplay } from "./formatted";
|
|
16
|
+
import { FieldValueDisplay } from "./formatted/FieldValueDisplay";
|
|
17
17
|
import { Section } from "./Section";
|
|
18
18
|
import { SectionRow } from "./SectionRow";
|
|
19
19
|
|
|
@@ -11,7 +11,7 @@ import { Card, CardContent } from "../../../../components/ui/card";
|
|
|
11
11
|
import { Input } from "../../../../components/ui/input";
|
|
12
12
|
import { Button } from "../../../../components/ui/button";
|
|
13
13
|
import { Search } from "lucide-react";
|
|
14
|
-
import { OBJECT_API_NAMES } from "
|
|
14
|
+
import { OBJECT_API_NAMES } from "../../constants";
|
|
15
15
|
import { useObjectInfoBatch } from "../../hooks/useObjectInfoBatch";
|
|
16
16
|
|
|
17
17
|
const BROWSE_SEGMENT = "browse__all";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import type { Column, SearchResultRecordData } from "../../types/search/searchResults";
|
|
35
35
|
import { getNestedFieldValue } from "../../utils/fieldUtils";
|
|
36
36
|
import ResultCardFields from "./ResultCardFields";
|
|
37
|
-
import { OBJECT_API_NAMES } from "
|
|
37
|
+
import { OBJECT_API_NAMES } from "../../constants";
|
|
38
38
|
|
|
39
39
|
interface SearchResultCardProps {
|
|
40
40
|
record: SearchResultRecordData;
|
|
@@ -6,7 +6,7 @@ import { Alert, AlertDescription, AlertTitle } from "../../../components/ui/aler
|
|
|
6
6
|
import { AlertCircle } from "lucide-react";
|
|
7
7
|
import DetailHeader from "../components/detail/DetailHeader";
|
|
8
8
|
import { UiApiDetailForm } from "../components/detail/UiApiDetailForm";
|
|
9
|
-
import { OBJECT_API_NAMES, DEFAULT_DETAIL_PAGE_TITLE } from "
|
|
9
|
+
import { OBJECT_API_NAMES, DEFAULT_DETAIL_PAGE_TITLE } from "../constants";
|
|
10
10
|
import { toRecordDisplayNameMetadata } from "../utils/fieldUtils";
|
|
11
11
|
import { useRecordDetailLayout } from "../hooks/useRecordDetailLayout";
|
|
12
12
|
import { getGraphQLRecordDisplayName } from "../utils/graphQLNodeFieldUtils";
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { useMemo, useState, useCallback, useEffect, useRef } from "react";
|
|
15
15
|
import { useParams } from "react-router";
|
|
16
|
-
import { OBJECT_API_NAMES, DEFAULT_PAGE_SIZE } from "
|
|
16
|
+
import { OBJECT_API_NAMES, DEFAULT_PAGE_SIZE } from "../constants";
|
|
17
17
|
import { useObjectListMetadata } from "../hooks/useObjectSearchData";
|
|
18
18
|
import { useObjectInfoBatch } from "../hooks/useObjectInfoBatch";
|
|
19
19
|
import { useRecordListGraphQL } from "../hooks/useRecordListGraphQL";
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API layer: object metadata (GraphQL), layout + record detail (REST layout + GraphQL record), record list/single (GraphQL).
|
|
3
|
-
*/
|
|
4
|
-
export { objectInfoService } from "./objectInfoService";
|
|
5
|
-
export { objectDetailService, extractFieldsFromLayout } from "./objectDetailService";
|
|
6
|
-
export type { RecordDetailResult } from "./objectDetailService";
|
|
7
|
-
export {
|
|
8
|
-
getRecordsGraphQL,
|
|
9
|
-
getRecordByIdGraphQL,
|
|
10
|
-
buildGetRecordsQuery,
|
|
11
|
-
buildWhereFromCriteria,
|
|
12
|
-
buildOrderByFromSort,
|
|
13
|
-
} from "./recordListGraphQLService";
|
|
14
|
-
export type {
|
|
15
|
-
RecordListGraphQLResult,
|
|
16
|
-
RecordListGraphQLVariables,
|
|
17
|
-
RecordListGraphQLOptions,
|
|
18
|
-
GraphQLRecordNode,
|
|
19
|
-
} from "./recordListGraphQLService";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { FieldValueDisplay } from "./FieldValueDisplay";
|
|
2
|
-
export { FormattedAddress } from "./FormattedAddress";
|
|
3
|
-
export { FormattedEmail } from "./FormattedEmail";
|
|
4
|
-
export { FormattedPhone } from "./FormattedPhone";
|
|
5
|
-
export { FormattedText } from "./FormattedText";
|
|
6
|
-
export { FormattedUrl } from "./FormattedUrl";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Hooks
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
export {
|
|
5
|
-
useObjectColumns,
|
|
6
|
-
useObjectSearchResults,
|
|
7
|
-
useObjectFilters,
|
|
8
|
-
useObjectListMetadata,
|
|
9
|
-
} from "./useObjectSearchData";
|
|
10
|
-
export type { ObjectListMetadata } from "./useObjectSearchData";
|
|
11
|
-
export { useRecordListGraphQL } from "./useRecordListGraphQL";
|
|
12
|
-
export type {
|
|
13
|
-
UseRecordListGraphQLReturn,
|
|
14
|
-
UseRecordListGraphQLOptions,
|
|
15
|
-
} from "./useRecordListGraphQL";
|
|
16
|
-
export { useRecordDetailLayout } from "./useRecordDetailLayout";
|
|
17
|
-
export type {
|
|
18
|
-
UseRecordDetailLayoutReturn,
|
|
19
|
-
UseRecordDetailLayoutParams,
|
|
20
|
-
} from "./useRecordDetailLayout";
|
|
21
|
-
export { useObjectInfoBatch } from "./useObjectInfoBatch";
|
|
22
|
-
export type { UseObjectInfoBatchResult } from "./useObjectInfoBatch";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Utilities
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
export { fetchAndValidate, safeEncodePath } from "./apiUtils";
|
|
5
|
-
export type { FetchAndValidateOptions } from "./apiUtils";
|
|
6
|
-
export { createFiltersKey } from "./cacheUtils";
|
|
7
|
-
export { calculateFieldsToFetch, getSafeKey, isValidSalesforceId } from "./recordUtils";
|
|
8
|
-
export {
|
|
9
|
-
getNestedFieldValue,
|
|
10
|
-
getRecordDisplayName,
|
|
11
|
-
toRecordDisplayNameMetadata,
|
|
12
|
-
getDisplayValueForLayoutItem,
|
|
13
|
-
getDisplayValueForDetailField,
|
|
14
|
-
formatAddressFromConstituents,
|
|
15
|
-
formatAddressDisplay,
|
|
16
|
-
formatDateTimeForDisplay,
|
|
17
|
-
isAddressConstituents,
|
|
18
|
-
getAddressPartsFromConstituents,
|
|
19
|
-
extractFieldValue,
|
|
20
|
-
} from "./fieldUtils";
|
|
21
|
-
export type {
|
|
22
|
-
AddressParts,
|
|
23
|
-
LayoutItemDisplayResult,
|
|
24
|
-
RecordDisplayNameMetadata,
|
|
25
|
-
} from "./fieldUtils";
|
|
26
|
-
export { calculateFormData } from "./formDataTransformUtils";
|
|
27
|
-
export type { ObjectInfoMetadata } from "./formDataTransformUtils";
|
|
28
|
-
export { getTransformedSections } from "./layoutTransformUtils";
|
|
29
|
-
export type {
|
|
30
|
-
ObjectInfo,
|
|
31
|
-
ObjectInfoField,
|
|
32
|
-
PicklistOption,
|
|
33
|
-
LayoutTransformContext,
|
|
34
|
-
TransformedLayoutItem,
|
|
35
|
-
TransformedLayoutRow,
|
|
36
|
-
TransformedSection,
|
|
37
|
-
} from "./layoutTransformUtils";
|
|
38
|
-
export { parseFilterValue } from "./filterUtils";
|
|
39
|
-
export { sanitizeFilterValue } from "./sanitizationUtils";
|
|
40
|
-
export { getFormValueByPath, getUniqueErrors, validateRangeValues, isFormError } from "./formUtils";
|
|
41
|
-
export type { FormError } from "./formUtils";
|
|
42
|
-
export {
|
|
43
|
-
PAGE_SIZE_OPTIONS,
|
|
44
|
-
VALID_PAGE_SIZES,
|
|
45
|
-
getValidPageSize,
|
|
46
|
-
isValidPageSize,
|
|
47
|
-
} from "./paginationUtils";
|
|
48
|
-
export { isAllowedLinkUrl, ALLOWED_LINK_PROTOCOLS } from "./linkUtils";
|
|
49
|
-
export { graphQLNodeToSearchResultRecordData } from "./graphQLRecordAdapter";
|
|
50
|
-
export {
|
|
51
|
-
getGraphQLNodeValue,
|
|
52
|
-
getDisplayValueForLayoutItemFromNode,
|
|
53
|
-
getDisplayValueForDetailFieldFromNode,
|
|
54
|
-
getGraphQLRecordDisplayName,
|
|
55
|
-
} from "./graphQLNodeFieldUtils";
|
|
56
|
-
export type {
|
|
57
|
-
GraphQLRecordDisplayNameMetadata,
|
|
58
|
-
ObjectMetadataForDisplay,
|
|
59
|
-
} from "./graphQLNodeFieldUtils";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package entry for @salesforce/webapp-template-feature-react-global-search-experimental.
|
|
3
|
-
* Exports only API, hooks, utils, types, and constants so that consuming apps do not
|
|
4
|
-
* pull in the feature's UI (routes, __inherit__ components) which depend on @radix-ui.
|
|
5
|
-
*/
|
|
6
|
-
export * from "./features/global-search/api";
|
|
7
|
-
export * from "./features/global-search/hooks";
|
|
8
|
-
export * from "./features/global-search/utils";
|
|
9
|
-
export * from "./features/global-search/types";
|
|
10
|
-
export * from "./constants";
|