@salesforce/webapp-template-feature-react-global-search-experimental 1.107.2 → 1.107.4

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 (56) hide show
  1. package/dist/.a4drules/features/feature-react-agentforce-conversation-client-embedded-agent-rule.md +30 -6
  2. package/dist/.a4drules/skills/creating-webapp/SKILL.md +20 -0
  3. package/dist/.a4drules/skills/deploying-to-salesforce/SKILL.md +229 -0
  4. package/dist/.a4drules/skills/exploring-graphql-schema/SKILL.md +7 -18
  5. package/dist/.a4drules/skills/managing-agentforce-conversation-client/SKILL.md +186 -0
  6. package/dist/.a4drules/skills/managing-agentforce-conversation-client/references/constraints.md +134 -0
  7. package/dist/.a4drules/skills/managing-agentforce-conversation-client/references/examples.md +132 -0
  8. package/dist/.a4drules/skills/managing-agentforce-conversation-client/references/style-tokens.md +101 -0
  9. package/dist/.a4drules/skills/{integrating-agentforce-conversation-client/docs → managing-agentforce-conversation-client/references}/troubleshooting.md +9 -12
  10. package/dist/.a4drules/skills/using-graphql/SKILL.md +2 -1
  11. package/dist/.a4drules/webapp-code-quality.md +5 -2
  12. package/dist/.a4drules/webapp-data-access.md +25 -0
  13. package/dist/.a4drules/webapp-deployment.md +32 -0
  14. package/dist/.a4drules/webapp-react-typescript.md +4 -12
  15. package/dist/.a4drules/webapp-react.md +7 -13
  16. package/dist/AGENT.md +3 -0
  17. package/dist/CHANGELOG.md +19 -0
  18. package/dist/eslint.config.js +7 -0
  19. package/dist/force-app/main/default/webapplications/feature-react-global-search/eslint.config.js +2 -0
  20. package/dist/force-app/main/default/webapplications/feature-react-global-search/package.json +3 -9
  21. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/app.tsx +4 -1
  22. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/components/alerts/status-alert.tsx +1 -1
  23. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/api/recordListGraphQLService.ts +2 -2
  24. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/DetailForm.tsx +2 -2
  25. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/filters/FiltersPanel.tsx +1 -1
  26. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/SearchResultCard.tsx +29 -27
  27. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/form.tsx +1 -1
  28. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useObjectInfoBatch.ts +3 -3
  29. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useObjectSearchData.ts +3 -3
  30. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useRecordDetailLayout.ts +1 -1
  31. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useRecordListGraphQL.ts +1 -1
  32. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/GlobalSearch.tsx +16 -10
  33. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/types/filters/filters.ts +2 -2
  34. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/debounce.ts +1 -0
  35. package/dist/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/sanitizationUtils.ts +1 -0
  36. package/dist/force-app/main/default/webapplications/feature-react-global-search/tsconfig.json +7 -1
  37. package/dist/package-lock.json +9995 -0
  38. package/dist/package.json +7 -7
  39. package/package.json +1 -1
  40. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/api/recordListGraphQLService.ts +2 -2
  41. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/detail/DetailForm.tsx +2 -2
  42. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/filters/FiltersPanel.tsx +1 -1
  43. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/components/search/SearchResultCard.tsx +29 -27
  44. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/form.tsx +1 -1
  45. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useObjectInfoBatch.ts +3 -3
  46. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useObjectSearchData.ts +3 -3
  47. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useRecordDetailLayout.ts +1 -1
  48. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/hooks/useRecordListGraphQL.ts +1 -1
  49. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/pages/GlobalSearch.tsx +16 -10
  50. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/types/filters/filters.ts +2 -2
  51. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/debounce.ts +1 -0
  52. package/src/force-app/main/default/webapplications/feature-react-global-search/src/features/global-search/utils/sanitizationUtils.ts +1 -0
  53. package/dist/.a4drules/skills/generating-micro-frontend-lwc/SKILL.md +0 -137
  54. package/dist/.a4drules/skills/integrating-agentforce-conversation-client/SKILL.md +0 -92
  55. package/dist/.a4drules/skills/integrating-agentforce-conversation-client/docs/embed-examples.md +0 -116
  56. package/dist/force-app/main/default/webapplications/feature-react-global-search/tsconfig.tsbuildinfo +0 -1
@@ -1,116 +0,0 @@
1
- # Embed examples (flat-prop API)
2
-
3
- All examples use `AgentforceConversationClient` with flat props.
4
-
5
- > `agentId` is required in practice. Use this placeholder pattern in examples: `"<USER_AGENT_ID_18_CHAR_0Xx...>"`.
6
-
7
- ---
8
-
9
- ## Floating mode (default)
10
-
11
- ```tsx
12
- <AgentforceConversationClient agentId="<USER_AGENT_ID_18_CHAR_0Xx...>" />
13
- ```
14
-
15
- ## Explicit floating
16
-
17
- ```tsx
18
- <AgentforceConversationClient agentId="<USER_AGENT_ID_18_CHAR_0Xx...>" />
19
- ```
20
-
21
- ---
22
-
23
- ## Inline mode
24
-
25
- ### Fixed pixels
26
-
27
- ```tsx
28
- <AgentforceConversationClient
29
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
30
- inline
31
- width={420}
32
- height={600}
33
- />
34
- ```
35
-
36
- ### CSS string size
37
-
38
- ```tsx
39
- <AgentforceConversationClient
40
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
41
- inline
42
- width="100%"
43
- height="80vh"
44
- />
45
- ```
46
-
47
- ### Inline sidebar
48
-
49
- ```tsx
50
- <div style={{ display: "flex", height: "100vh" }}>
51
- <main style={{ flex: 1 }}>{/* App content */}</main>
52
- <aside style={{ width: 400 }}>
53
- <AgentforceConversationClient
54
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
55
- inline
56
- width="100%"
57
- height="100%"
58
- />
59
- </aside>
60
- </div>
61
- ```
62
-
63
- ---
64
-
65
- ## Theming
66
-
67
- ```tsx
68
- <AgentforceConversationClient
69
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
70
- styleTokens={{
71
- headerBlockBackground: "#0176d3",
72
- headerBlockTextColor: "#ffffff",
73
- messageBlockInboundColor: "#0176d3",
74
- }}
75
- />
76
- ```
77
-
78
- ---
79
-
80
- ## Inline with header enabled
81
-
82
- ```tsx
83
- <AgentforceConversationClient
84
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
85
- inline
86
- width={420}
87
- height={600}
88
- headerEnabled
89
- />
90
- ```
91
-
92
- `headerEnabled` defaults to `true` for floating mode, and you can use it in inline mode to add/remove the header.
93
-
94
- ---
95
-
96
- ## Full layout example
97
-
98
- ```tsx
99
- import { Outlet } from "react-router";
100
- import { AgentforceConversationClient } from "@salesforce/webapp-template-feature-react-agentforce-conversation-client-experimental";
101
-
102
- export default function AppLayout() {
103
- return (
104
- <>
105
- <Outlet />
106
- <AgentforceConversationClient
107
- agentId="<USER_AGENT_ID_18_CHAR_0Xx...>"
108
- styleTokens={{
109
- headerBlockBackground: "#0176d3",
110
- headerBlockTextColor: "#ffffff",
111
- }}
112
- />
113
- </>
114
- );
115
- }
116
- ```
@@ -1 +0,0 @@
1
- {"root":["./src/app.tsx","./src/appLayout.tsx","./src/index.ts","./src/navigationMenu.tsx","./src/router-utils.tsx","./src/routes.tsx","./src/components/alerts/status-alert.tsx","./src/components/layouts/card-layout.tsx","./src/components/ui/alert.tsx","./src/components/ui/badge.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.tsx","./src/components/ui/calendar.tsx","./src/components/ui/card.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/collapsible.tsx","./src/components/ui/datePicker.tsx","./src/components/ui/dialog.tsx","./src/components/ui/field.tsx","./src/components/ui/index.ts","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/pagination.tsx","./src/components/ui/popover.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/spinner.tsx","./src/components/ui/table.tsx","./src/components/ui/tabs.tsx","./src/features/global-search/constants.ts","./src/features/global-search/api/objectDetailService.ts","./src/features/global-search/api/objectInfoGraphQLService.ts","./src/features/global-search/api/objectInfoService.ts","./src/features/global-search/api/recordListGraphQLService.ts","./src/features/global-search/components/detail/DetailFields.tsx","./src/features/global-search/components/detail/DetailForm.tsx","./src/features/global-search/components/detail/DetailHeader.tsx","./src/features/global-search/components/detail/DetailLayoutSections.tsx","./src/features/global-search/components/detail/Section.tsx","./src/features/global-search/components/detail/SectionRow.tsx","./src/features/global-search/components/detail/UiApiDetailForm.tsx","./src/features/global-search/components/detail/formatted/FieldValueDisplay.tsx","./src/features/global-search/components/detail/formatted/FormattedAddress.tsx","./src/features/global-search/components/detail/formatted/FormattedEmail.tsx","./src/features/global-search/components/detail/formatted/FormattedPhone.tsx","./src/features/global-search/components/detail/formatted/FormattedText.tsx","./src/features/global-search/components/detail/formatted/FormattedUrl.tsx","./src/features/global-search/components/filters/FilterField.tsx","./src/features/global-search/components/filters/FilterInput.tsx","./src/features/global-search/components/filters/FilterSelect.tsx","./src/features/global-search/components/filters/FiltersPanel.tsx","./src/features/global-search/components/forms/filters-form.tsx","./src/features/global-search/components/forms/submit-button.tsx","./src/features/global-search/components/search/GlobalSearchInput.tsx","./src/features/global-search/components/search/ResultCardFields.tsx","./src/features/global-search/components/search/SearchHeader.tsx","./src/features/global-search/components/search/SearchPagination.tsx","./src/features/global-search/components/search/SearchResultCard.tsx","./src/features/global-search/components/search/SearchResultsPanel.tsx","./src/features/global-search/components/shared/LoadingFallback.tsx","./src/features/global-search/filters/FilterInput.tsx","./src/features/global-search/filters/FilterSelect.tsx","./src/features/global-search/hooks/form.tsx","./src/features/global-search/hooks/useObjectInfoBatch.ts","./src/features/global-search/hooks/useObjectSearchData.ts","./src/features/global-search/hooks/useRecordDetailLayout.ts","./src/features/global-search/hooks/useRecordListGraphQL.ts","./src/features/global-search/pages/DetailPage.tsx","./src/features/global-search/pages/GlobalSearch.tsx","./src/features/global-search/types/schema.d.ts","./src/features/global-search/types/filters/filters.ts","./src/features/global-search/types/filters/picklist.ts","./src/features/global-search/types/objectInfo/objectInfo.ts","./src/features/global-search/types/recordDetail/recordDetail.ts","./src/features/global-search/types/search/searchResults.ts","./src/features/global-search/utils/apiUtils.ts","./src/features/global-search/utils/cacheUtils.ts","./src/features/global-search/utils/debounce.ts","./src/features/global-search/utils/fieldUtils.ts","./src/features/global-search/utils/fieldValueExtractor.ts","./src/features/global-search/utils/filterUtils.ts","./src/features/global-search/utils/formDataTransformUtils.ts","./src/features/global-search/utils/formUtils.ts","./src/features/global-search/utils/graphQLNodeFieldUtils.ts","./src/features/global-search/utils/graphQLObjectInfoAdapter.ts","./src/features/global-search/utils/graphQLRecordAdapter.ts","./src/features/global-search/utils/layoutTransformUtils.ts","./src/features/global-search/utils/linkUtils.ts","./src/features/global-search/utils/paginationUtils.ts","./src/features/global-search/utils/recordUtils.ts","./src/features/global-search/utils/sanitizationUtils.ts","./src/lib/utils.ts","./src/pages/Home.tsx","./src/pages/NotFound.tsx","./vite-env.d.ts","./vitest-env.d.ts"],"version":"5.9.3"}