@salesforce/webapp-template-feature-react-global-search-experimental 1.74.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.
Files changed (30) hide show
  1. package/dist/CHANGELOG.md +16 -0
  2. package/dist/force-app/main/default/webapplications/feature-react-global-search/package.json +4 -4
  3. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/DetailForm.tsx +1 -1
  4. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/GlobalSearchInput.tsx +1 -1
  5. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/SearchResultCard.tsx +1 -1
  6. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/DetailPage.tsx +1 -1
  7. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/GlobalSearch.tsx +1 -1
  8. package/dist/package.json +1 -1
  9. package/package.json +1 -1
  10. package/src/force-app/main/default/webapplications/feature-react-global-search/src/components/ui/__inherit__select.tsx +49 -55
  11. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/DetailForm.tsx +1 -1
  12. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/GlobalSearchInput.tsx +1 -1
  13. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/SearchResultCard.tsx +1 -1
  14. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/DetailPage.tsx +1 -1
  15. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/GlobalSearch.tsx +1 -1
  16. package/src/force-app/main/default/webapplications/feature-react-global-search/src/lib/__inherit__utils.ts +3 -4
  17. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/api/index.ts +0 -19
  18. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/formatted/index.ts +0 -6
  19. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/index.ts +0 -22
  20. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/types/index.ts +0 -5
  21. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/index.ts +0 -59
  22. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/index.ts +0 -10
  23. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/api/index.ts +0 -19
  24. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/formatted/index.ts +0 -6
  25. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/index.ts +0 -22
  26. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/types/index.ts +0 -5
  27. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/index.ts +0 -59
  28. package/src/force-app/main/default/webapplications/feature-react-global-search/src/index.ts +0 -10
  29. /package/dist/force-app/main/default/webapplications/feature-react-global-search/src/{constants.ts → features/global-search/constants.ts} +0 -0
  30. /package/src/force-app/main/default/webapplications/feature-react-global-search/src/{constants.ts → features/global-search/constants.ts} +0 -0
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.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
+
14
+ # [1.75.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.74.0...v1.75.0) (2026-03-05)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.74.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.73.1...v1.74.0) (2026-03-05)
7
23
 
8
24
  **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.74.0",
19
- "@salesforce/webapp-experimental": "^1.74.0",
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.4.0",
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.74.0",
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 "../../../../constants";
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 "../../../../constants";
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 "../../../constants";
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 "../../../constants";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.74.0",
3
+ "version": "1.75.1",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-feature-react-global-search-experimental",
3
- "version": "1.74.0",
3
+ "version": "1.75.1",
4
4
  "description": "Global search feature for Salesforce objects with filtering and pagination",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -1,63 +1,57 @@
1
1
  import * as React from "react";
2
- import * as SelectPrimitive from "@radix-ui/react-select";
3
-
4
- const Select = SelectPrimitive.Root;
5
-
6
- const SelectGroup = SelectPrimitive.Group;
7
-
8
- const SelectValue = SelectPrimitive.Value;
9
-
10
- const SelectTrigger = React.forwardRef<
11
- React.ElementRef<typeof SelectPrimitive.Trigger>,
12
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
13
- >(({ className, children, ...props }, ref) => <></>);
14
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
15
-
16
- const SelectScrollUpButton = React.forwardRef<
17
- React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
18
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
19
- >(({ className, ...props }, ref) => <></>);
20
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
21
-
22
- const SelectScrollDownButton = React.forwardRef<
23
- React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
24
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
25
- >(({ className, ...props }, ref) => <></>);
26
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
27
-
28
- const SelectContent = React.forwardRef<
29
- React.ElementRef<typeof SelectPrimitive.Content>,
30
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
31
- >(({ className, children, position = "popper", ...props }, ref) => <></>);
32
- SelectContent.displayName = SelectPrimitive.Content.displayName;
33
-
34
- const SelectLabel = React.forwardRef<
35
- React.ElementRef<typeof SelectPrimitive.Label>,
36
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
37
- >(({ className, ...props }, ref) => <></>);
38
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
39
-
40
- const SelectItem = React.forwardRef<
41
- React.ElementRef<typeof SelectPrimitive.Item>,
42
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
43
- >(({ className, children, ...props }, ref) => <></>);
44
- SelectItem.displayName = SelectPrimitive.Item.displayName;
45
-
46
- const SelectSeparator = React.forwardRef<
47
- React.ElementRef<typeof SelectPrimitive.Separator>,
48
- React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
49
- >(({ className, ...props }, ref) => <></>);
50
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
2
+ import { Select as SelectPrimitive } from "radix-ui";
3
+
4
+ function Select({}: React.ComponentProps<typeof SelectPrimitive.Root>) {
5
+ return <></>;
6
+ }
7
+
8
+ function SelectGroup({}: React.ComponentProps<typeof SelectPrimitive.Group>) {
9
+ return <></>;
10
+ }
11
+
12
+ function SelectValue({}: React.ComponentProps<typeof SelectPrimitive.Value>) {
13
+ return <></>;
14
+ }
15
+
16
+ function SelectTrigger({}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
17
+ size?: "sm" | "default";
18
+ }) {
19
+ return <></>;
20
+ }
21
+
22
+ function SelectContent({}: React.ComponentProps<typeof SelectPrimitive.Content>) {
23
+ return <></>;
24
+ }
25
+
26
+ function SelectLabel({}: React.ComponentProps<typeof SelectPrimitive.Label>) {
27
+ return <></>;
28
+ }
29
+
30
+ function SelectItem({}: React.ComponentProps<typeof SelectPrimitive.Item>) {
31
+ return <></>;
32
+ }
33
+
34
+ function SelectSeparator({}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
35
+ return <></>;
36
+ }
37
+
38
+ function SelectScrollUpButton({}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
39
+ return <></>;
40
+ }
41
+
42
+ function SelectScrollDownButton({}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
43
+ return <></>;
44
+ }
51
45
 
52
46
  export {
53
47
  Select,
54
- SelectGroup,
55
- SelectValue,
56
- SelectTrigger,
57
48
  SelectContent,
58
- SelectLabel,
49
+ SelectGroup,
59
50
  SelectItem,
60
- SelectSeparator,
61
- SelectScrollUpButton,
51
+ SelectLabel,
62
52
  SelectScrollDownButton,
53
+ SelectScrollUpButton,
54
+ SelectSeparator,
55
+ SelectTrigger,
56
+ SelectValue,
63
57
  };
@@ -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/__inherit__card";
11
11
  import { Input } from "../../../../components/ui/__inherit__input";
12
12
  import { Button } from "../../../../components/ui/__inherit__button";
13
13
  import { Search } from "lucide-react";
14
- import { OBJECT_API_NAMES } from "../../../../constants";
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 "../../../../constants";
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/__in
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 "../../../constants";
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 "../../../constants";
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";
@@ -1,6 +1,5 @@
1
- import { clsx, type ClassValue } from "clsx";
2
- import { twMerge } from "tailwind-merge";
1
+ import { type ClassValue } from "clsx";
3
2
 
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs));
3
+ export function cn(..._ignored: ClassValue[]): string {
4
+ return "";
6
5
  }
@@ -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,5 +0,0 @@
1
- export * from "./filters/filters";
2
- export * from "./filters/picklist";
3
- export * from "./objectInfo/objectInfo";
4
- export * from "./recordDetail/recordDetail";
5
- export * from "./search/searchResults";
@@ -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";
@@ -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,5 +0,0 @@
1
- export * from "./filters/filters";
2
- export * from "./filters/picklist";
3
- export * from "./objectInfo/objectInfo";
4
- export * from "./recordDetail/recordDetail";
5
- export * from "./search/searchResults";
@@ -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";