@salesforce/templates 66.5.4 → 66.5.6
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/lib/templates/project/.forceignore +3 -1
- package/lib/templates/project/reactb2e/AGENT.md +12 -2
- package/lib/templates/project/reactb2e/CHANGELOG.md +401 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/.forceignore +15 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/codegen.yml +1 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/eslint.config.js +44 -27
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/index.html +0 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/package.json +7 -11
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/accountSearchService.ts +46 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/distinctAccountIndustries.graphql +19 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/distinctAccountTypes.graphql +19 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/getAccountDetail.graphql +121 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/searchAccounts.graphql +51 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/AccountObjectDetailPage.tsx +357 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/AccountSearch.tsx +275 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/Home.tsx +34 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +84 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ActiveFilters.tsx +89 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterPanel.tsx +127 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ObjectBreadcrumb.tsx +66 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +151 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SearchBar.tsx +41 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SortControl.tsx +143 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/BooleanFilter.tsx +94 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +165 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateRangeFilter.tsx +78 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/MultiSelectFilter.tsx +106 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/NumericRangeFilter.tsx +102 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +40 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SelectFilter.tsx +97 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +77 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +53 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +183 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +225 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/debounce.ts +22 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/fieldUtils.ts +29 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/filterUtils.ts +372 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/sortUtils.ts +38 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/api/graphql-operations-types.ts +11260 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/app.tsx +4 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/appLayout.tsx +1 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/AgentforceConversationClient.tsx +33 -5
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/alerts/status-alert.tsx +1 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/badge.tsx +48 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/breadcrumb.tsx +109 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/calendar.tsx +232 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/checkbox.tsx +32 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/collapsible.tsx +33 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/datePicker.tsx +127 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/popover.tsx +89 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/components/ui/sonner.tsx +20 -0
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/index.ts +3 -117
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/pages/Home.tsx +10 -11
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/pages/TestAccPage.tsx +1 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/routes.tsx +8 -20
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/types/conversation.ts +14 -4
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/tsconfig.json +7 -1
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/vite.config.ts +17 -13
- package/lib/templates/project/reactb2e/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/SKILL.md +3 -3
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/implementation/bar-line-chart.md +316 -0
- package/lib/templates/project/{reactb2x/_r_/skills/webapp-react-data-visualization → reactb2e/_r_/skills/building-data-visualization}/implementation/donut-chart.md +1 -1
- package/lib/templates/project/{reactb2x/_r_/skills/webapp-react → reactb2e/_r_/skills/building-react-components}/SKILL.md +21 -5
- package/lib/templates/project/reactb2e/_r_/skills/{webapp-csp-trusted-sites → configuring-csp-trusted-sites}/SKILL.md +1 -1
- package/lib/templates/project/{reactb2x/_r_/webapp-webapplication.md → reactb2e/_r_/skills/configuring-webapp-metadata/SKILL.md} +2 -3
- package/lib/templates/project/reactb2e/_r_/{webapp.md → skills/creating-webapp/SKILL.md} +46 -4
- package/lib/templates/project/reactb2e/_r_/skills/deploying-to-salesforce/SKILL.md +226 -0
- package/lib/templates/project/reactb2e/_r_/skills/{feature-react-file-upload-file-upload → implementing-file-upload}/SKILL.md +1 -1
- package/lib/templates/project/{reactb2x/_r_/skills/webapp-features → reactb2e/_r_/skills/installing-webapp-features}/SKILL.md +3 -3
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/SKILL.md +186 -0
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/constraints.md +134 -0
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/examples.md +132 -0
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/style-tokens.md +101 -0
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/troubleshooting.md +57 -0
- package/lib/templates/project/reactb2e/_r_/skills/using-salesforce-data/SKILL.md +363 -0
- package/lib/templates/project/reactb2e/_r_/skills/using-salesforce-data/graphql-search.sh +139 -0
- package/lib/templates/project/reactb2e/_r_/webapp-data.md +353 -0
- package/lib/templates/project/reactb2e/_r_/webapp-ui.md +16 -0
- package/lib/templates/project/reactb2e/eslint.config.js +7 -0
- package/lib/templates/project/reactb2e/package-lock.json +9995 -0
- package/lib/templates/project/reactb2e/package.json +12 -11
- package/lib/templates/project/reactb2e/scripts/setup-cli.mjs +61 -31
- package/lib/templates/project/reactb2e/scripts/sf-project-setup.mjs +66 -0
- package/lib/templates/project/reactb2x/AGENT.md +12 -2
- package/lib/templates/project/reactb2x/CHANGELOG.md +401 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/.forceignore +15 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/codegen.yml +1 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/eslint.config.js +44 -27
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/index.html +0 -1
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/package.json +8 -11
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/accountSearchService.ts +46 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/distinctAccountIndustries.graphql +19 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/distinctAccountTypes.graphql +19 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/getAccountDetail.graphql +121 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/api/query/searchAccounts.graphql +51 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/AccountObjectDetailPage.tsx +357 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/AccountSearch.tsx +275 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__/pages/Home.tsx +34 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +84 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ActiveFilters.tsx +89 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterPanel.tsx +127 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ObjectBreadcrumb.tsx +66 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +151 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SearchBar.tsx +41 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SortControl.tsx +143 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/BooleanFilter.tsx +94 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +165 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateRangeFilter.tsx +78 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/MultiSelectFilter.tsx +106 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/NumericRangeFilter.tsx +102 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +40 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SelectFilter.tsx +97 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +77 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +53 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +183 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +225 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/debounce.ts +22 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/fieldUtils.ts +29 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/filterUtils.ts +372 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/sortUtils.ts +38 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/api/userProfileApi.ts +13 -13
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/layouts/privateRouteLayout.tsx +10 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ChangePassword.tsx +2 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ForgotPassword.tsx +2 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Login.tsx +2 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Profile.tsx +26 -4
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Register.tsx +2 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ResetPassword.tsx +2 -2
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/sessionTimeout/SessionTimeoutValidator.tsx +8 -16
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/authentication/sessionTimeout/sessionTimeService.ts +30 -42
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/api/graphql-operations-types.ts +11260 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/app.tsx +3 -1
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/alerts/status-alert.tsx +1 -1
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/badge.tsx +48 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/breadcrumb.tsx +109 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/calendar.tsx +232 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/checkbox.tsx +32 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/collapsible.tsx +33 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/datePicker.tsx +127 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/popover.tsx +89 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/components/ui/sonner.tsx +20 -0
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/pages/Home.tsx +10 -11
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/routes.tsx +9 -21
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/tsconfig.json +7 -1
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/vite.config.ts +17 -13
- package/lib/templates/project/reactb2x/_p_/_m_/networks/appreacttemplateb2x.network +1 -1
- package/lib/templates/project/reactb2x/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/SKILL.md +3 -3
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/implementation/bar-line-chart.md +316 -0
- package/lib/templates/project/{reactb2e/_r_/skills/webapp-react-data-visualization → reactb2x/_r_/skills/building-data-visualization}/implementation/donut-chart.md +1 -1
- package/lib/templates/project/{reactb2e/_r_/skills/webapp-react → reactb2x/_r_/skills/building-react-components}/SKILL.md +21 -5
- package/lib/templates/project/reactb2x/_r_/skills/{webapp-csp-trusted-sites → configuring-csp-trusted-sites}/SKILL.md +1 -1
- package/lib/templates/project/{reactb2e/_r_/webapp-webapplication.md → reactb2x/_r_/skills/configuring-webapp-metadata/SKILL.md} +2 -3
- package/lib/templates/project/reactb2x/_r_/{webapp.md → skills/creating-webapp/SKILL.md} +46 -4
- package/lib/templates/project/reactb2x/_r_/skills/deploying-to-salesforce/SKILL.md +226 -0
- package/lib/templates/project/reactb2x/_r_/skills/{feature-react-file-upload-file-upload → implementing-file-upload}/SKILL.md +1 -1
- package/lib/templates/project/{reactb2e/_r_/skills/webapp-features → reactb2x/_r_/skills/installing-webapp-features}/SKILL.md +3 -3
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/SKILL.md +186 -0
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/constraints.md +134 -0
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/examples.md +132 -0
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/style-tokens.md +101 -0
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/troubleshooting.md +57 -0
- package/lib/templates/project/reactb2x/_r_/skills/using-salesforce-data/SKILL.md +363 -0
- package/lib/templates/project/reactb2x/_r_/skills/using-salesforce-data/graphql-search.sh +139 -0
- package/lib/templates/project/reactb2x/_r_/webapp-data.md +353 -0
- package/lib/templates/project/reactb2x/_r_/webapp-ui.md +16 -0
- package/lib/templates/project/reactb2x/eslint.config.js +7 -0
- package/lib/templates/project/reactb2x/package-lock.json +9995 -0
- package/lib/templates/project/reactb2x/package.json +12 -11
- package/lib/templates/project/reactb2x/scripts/setup-cli.mjs +61 -31
- package/lib/templates/project/reactb2x/scripts/sf-project-setup.mjs +66 -0
- package/lib/templates/webapplication/reactbasic/.forceignore +15 -0
- package/lib/templates/webapplication/reactbasic/codegen.yml +1 -0
- package/lib/templates/webapplication/reactbasic/eslint.config.js +44 -27
- package/lib/templates/webapplication/reactbasic/index.html +0 -1
- package/lib/templates/webapplication/reactbasic/package.json +6 -3
- package/lib/templates/webapplication/reactbasic/src/app.tsx +4 -1
- package/lib/templates/webapplication/reactbasic/src/components/alerts/status-alert.tsx +1 -1
- package/lib/templates/webapplication/reactbasic/src/components/ui/badge.tsx +48 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/breadcrumb.tsx +109 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/calendar.tsx +232 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/checkbox.tsx +32 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/collapsible.tsx +33 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/datePicker.tsx +127 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/popover.tsx +89 -0
- package/lib/templates/webapplication/reactbasic/src/components/ui/sonner.tsx +20 -0
- package/lib/templates/webapplication/reactbasic/tsconfig.json +7 -1
- package/lib/templates/webapplication/reactbasic/vite.config.ts +17 -13
- package/lib/utils/template-placeholders.js +7 -0
- package/lib/utils/template-placeholders.js.map +1 -1
- package/lib/utils/webappTemplateUtils.d.ts +3 -1
- package/lib/utils/webappTemplateUtils.js +4 -1
- package/lib/utils/webappTemplateUtils.js.map +1 -1
- package/package.json +6 -6
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailFields.tsx +0 -55
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailForm.tsx +0 -146
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailHeader.tsx +0 -34
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailLayoutSections.tsx +0 -80
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/Section.tsx +0 -108
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/SectionRow.tsx +0 -20
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/UiApiDetailForm.tsx +0 -140
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FieldValueDisplay.tsx +0 -73
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedAddress.tsx +0 -29
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedEmail.tsx +0 -17
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedPhone.tsx +0 -24
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedText.tsx +0 -11
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedUrl.tsx +0 -29
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterField.tsx +0 -54
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterInput.tsx +0 -55
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterSelect.tsx +0 -72
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FiltersPanel.tsx +0 -380
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/forms/filters-form.tsx +0 -114
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/forms/submit-button.tsx +0 -47
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/GlobalSearchInput.tsx +0 -114
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/ResultCardFields.tsx +0 -71
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchHeader.tsx +0 -31
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchPagination.tsx +0 -144
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchResultCard.tsx +0 -136
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchResultsPanel.tsx +0 -197
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/shared/LoadingFallback.tsx +0 -61
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectDetailService.ts +0 -102
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectInfoGraphQLService.ts +0 -137
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectInfoService.ts +0 -95
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/recordListGraphQLService.ts +0 -364
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/constants.ts +0 -39
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/filters/FilterInput.tsx +0 -55
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/filters/FilterSelect.tsx +0 -72
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/form.tsx +0 -209
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useObjectInfoBatch.ts +0 -65
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useObjectSearchData.ts +0 -174
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useRecordDetailLayout.ts +0 -137
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useRecordListGraphQL.ts +0 -135
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/pages/DetailPage.tsx +0 -109
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/pages/GlobalSearch.tsx +0 -229
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/filters/filters.ts +0 -121
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/filters/picklist.ts +0 -6
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/objectInfo/objectInfo.ts +0 -49
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/recordDetail/recordDetail.ts +0 -61
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/schema.d.ts +0 -200
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/search/searchResults.ts +0 -229
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/apiUtils.ts +0 -59
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/cacheUtils.ts +0 -76
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/debounce.ts +0 -89
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/fieldUtils.ts +0 -354
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/fieldValueExtractor.ts +0 -67
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/filterUtils.ts +0 -32
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/formDataTransformUtils.ts +0 -260
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/formUtils.ts +0 -142
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLNodeFieldUtils.ts +0 -186
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLObjectInfoAdapter.ts +0 -77
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLRecordAdapter.ts +0 -90
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/layoutTransformUtils.ts +0 -236
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/linkUtils.ts +0 -14
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/paginationUtils.ts +0 -49
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/recordUtils.ts +0 -159
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/sanitizationUtils.ts +0 -49
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/tsconfig.tsbuildinfo +0 -1
- package/lib/templates/project/reactb2e/_r_/features/feature-graphql-graphql-data-access-rule.md +0 -470
- package/lib/templates/project/reactb2e/_r_/features/feature-react-agentforce-conversation-client-embedded-agent-rule.md +0 -18
- package/lib/templates/project/reactb2e/_r_/features/feature-react-chart-analytics-charts-rule.md +0 -27
- package/lib/templates/project/reactb2e/_r_/skills/_k_/SKILL.md +0 -148
- package/lib/templates/project/reactb2e/_r_/skills/_k_/docs/embed-examples.md +0 -192
- package/lib/templates/project/reactb2e/_r_/skills/_k_/docs/troubleshooting.md +0 -51
- package/lib/templates/project/reactb2e/_r_/skills/feature-graphql-graphql-data-access/SKILL.md +0 -155
- package/lib/templates/project/reactb2e/_r_/skills/feature-graphql-graphql-data-access/docs/explore-schema.md +0 -256
- package/lib/templates/project/reactb2e/_r_/skills/feature-graphql-graphql-data-access/docs/generate-mutation-query.md +0 -228
- package/lib/templates/project/reactb2e/_r_/skills/feature-graphql-graphql-data-access/docs/generate-read-query.md +0 -202
- package/lib/templates/project/reactb2e/_r_/skills/feature-graphql-graphql-data-access/docs/shared-schema.graphqls +0 -1150
- package/lib/templates/project/reactb2e/_r_/skills/feature-micro-frontend-micro-frontend/SKILL.md +0 -137
- package/lib/templates/project/reactb2e/_r_/skills/feature-react-chart-analytics-charts/SKILL.md +0 -41
- package/lib/templates/project/reactb2e/_r_/skills/feature-react-chart-analytics-charts/docs/schema-mapping.md +0 -4
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-interactive-map/SKILL.md +0 -92
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-interactive-map/implementation/geocoding.md +0 -245
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-interactive-map/implementation/leaflet-map.md +0 -279
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-weather-widget/SKILL.md +0 -65
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-weather-widget/implementation/weather-hook.md +0 -258
- package/lib/templates/project/reactb2e/_r_/skills/webapp-react-weather-widget/implementation/weather-ui.md +0 -216
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/SKILL.md +0 -271
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/charts.csv +0 -26
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/colors.csv +0 -97
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/icons.csv +0 -101
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/landing.csv +0 -31
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/products.csv +0 -97
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/react-performance.csv +0 -45
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/stacks/html-tailwind.csv +0 -56
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/stacks/react.csv +0 -54
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/stacks/shadcn.csv +0 -61
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/styles.csv +0 -68
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/typography.csv +0 -58
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/ui-reasoning.csv +0 -101
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/ux-guidelines.csv +0 -100
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/data/web-interface.csv +0 -31
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/scripts/core.js +0 -255
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/scripts/design_system.js +0 -861
- package/lib/templates/project/reactb2e/_r_/skills/webapp-ui-ux/scripts/search.js +0 -98
- package/lib/templates/project/reactb2e/_r_/skills/webapp-unsplash-images/SKILL.md +0 -71
- package/lib/templates/project/reactb2e/_r_/skills/webapp-unsplash-images/implementation/usage.md +0 -159
- package/lib/templates/project/reactb2e/_r_/webapp-cli-commands.md +0 -88
- package/lib/templates/project/reactb2e/_r_/webapp-react-code-quality.md +0 -136
- package/lib/templates/project/reactb2e/_r_/webapp-react-typescript.md +0 -205
- package/lib/templates/project/reactb2e/_r_/webapp-react.md +0 -202
- package/lib/templates/project/reactb2e/_r_/webapp-skills-first.md +0 -26
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailFields.tsx +0 -55
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailForm.tsx +0 -146
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailHeader.tsx +0 -34
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/DetailLayoutSections.tsx +0 -80
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/Section.tsx +0 -108
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/SectionRow.tsx +0 -20
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/UiApiDetailForm.tsx +0 -140
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FieldValueDisplay.tsx +0 -73
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedAddress.tsx +0 -29
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedEmail.tsx +0 -17
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedPhone.tsx +0 -24
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedText.tsx +0 -11
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedUrl.tsx +0 -29
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterField.tsx +0 -54
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterInput.tsx +0 -55
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterSelect.tsx +0 -72
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FiltersPanel.tsx +0 -380
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/forms/filters-form.tsx +0 -114
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/forms/submit-button.tsx +0 -47
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/GlobalSearchInput.tsx +0 -114
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/ResultCardFields.tsx +0 -71
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchHeader.tsx +0 -31
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchPagination.tsx +0 -144
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchResultCard.tsx +0 -136
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/search/SearchResultsPanel.tsx +0 -197
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/shared/LoadingFallback.tsx +0 -61
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectDetailService.ts +0 -102
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectInfoGraphQLService.ts +0 -137
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/objectInfoService.ts +0 -95
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/api/recordListGraphQLService.ts +0 -364
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/constants.ts +0 -39
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/filters/FilterInput.tsx +0 -55
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/filters/FilterSelect.tsx +0 -72
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/form.tsx +0 -209
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useObjectInfoBatch.ts +0 -65
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useObjectSearchData.ts +0 -174
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useRecordDetailLayout.ts +0 -137
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/hooks/useRecordListGraphQL.ts +0 -135
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/pages/DetailPage.tsx +0 -109
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/pages/GlobalSearch.tsx +0 -229
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/filters/filters.ts +0 -121
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/filters/picklist.ts +0 -6
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/objectInfo/objectInfo.ts +0 -49
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/recordDetail/recordDetail.ts +0 -61
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/schema.d.ts +0 -200
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/types/search/searchResults.ts +0 -229
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/apiUtils.ts +0 -59
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/cacheUtils.ts +0 -76
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/debounce.ts +0 -89
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/fieldUtils.ts +0 -354
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/fieldValueExtractor.ts +0 -67
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/filterUtils.ts +0 -32
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/formDataTransformUtils.ts +0 -260
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/formUtils.ts +0 -142
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLNodeFieldUtils.ts +0 -186
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLObjectInfoAdapter.ts +0 -77
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/graphQLRecordAdapter.ts +0 -90
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/layoutTransformUtils.ts +0 -236
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/linkUtils.ts +0 -14
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/paginationUtils.ts +0 -49
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/recordUtils.ts +0 -159
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/utils/sanitizationUtils.ts +0 -49
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/index.ts +0 -120
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/tsconfig.tsbuildinfo +0 -1
- package/lib/templates/project/reactb2x/_r_/features/feature-graphql-graphql-data-access-rule.md +0 -470
- package/lib/templates/project/reactb2x/_r_/features/feature-react-agentforce-conversation-client-embedded-agent-rule.md +0 -18
- package/lib/templates/project/reactb2x/_r_/features/feature-react-chart-analytics-charts-rule.md +0 -27
- package/lib/templates/project/reactb2x/_r_/skills/_k_/SKILL.md +0 -148
- package/lib/templates/project/reactb2x/_r_/skills/_k_/docs/embed-examples.md +0 -192
- package/lib/templates/project/reactb2x/_r_/skills/_k_/docs/troubleshooting.md +0 -51
- package/lib/templates/project/reactb2x/_r_/skills/feature-graphql-graphql-data-access/SKILL.md +0 -155
- package/lib/templates/project/reactb2x/_r_/skills/feature-graphql-graphql-data-access/docs/explore-schema.md +0 -256
- package/lib/templates/project/reactb2x/_r_/skills/feature-graphql-graphql-data-access/docs/generate-mutation-query.md +0 -228
- package/lib/templates/project/reactb2x/_r_/skills/feature-graphql-graphql-data-access/docs/generate-read-query.md +0 -202
- package/lib/templates/project/reactb2x/_r_/skills/feature-graphql-graphql-data-access/docs/shared-schema.graphqls +0 -1150
- package/lib/templates/project/reactb2x/_r_/skills/feature-micro-frontend-micro-frontend/SKILL.md +0 -137
- package/lib/templates/project/reactb2x/_r_/skills/feature-react-chart-analytics-charts/SKILL.md +0 -41
- package/lib/templates/project/reactb2x/_r_/skills/feature-react-chart-analytics-charts/docs/schema-mapping.md +0 -4
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-interactive-map/SKILL.md +0 -92
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-interactive-map/implementation/geocoding.md +0 -245
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-interactive-map/implementation/leaflet-map.md +0 -279
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-weather-widget/SKILL.md +0 -65
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-weather-widget/implementation/weather-hook.md +0 -258
- package/lib/templates/project/reactb2x/_r_/skills/webapp-react-weather-widget/implementation/weather-ui.md +0 -216
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/SKILL.md +0 -271
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/charts.csv +0 -26
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/colors.csv +0 -97
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/icons.csv +0 -101
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/landing.csv +0 -31
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/products.csv +0 -97
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/react-performance.csv +0 -45
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/stacks/html-tailwind.csv +0 -56
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/stacks/react.csv +0 -54
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/stacks/shadcn.csv +0 -61
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/styles.csv +0 -68
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/typography.csv +0 -58
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/ui-reasoning.csv +0 -101
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/ux-guidelines.csv +0 -100
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/data/web-interface.csv +0 -31
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/scripts/core.js +0 -255
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/scripts/design_system.js +0 -861
- package/lib/templates/project/reactb2x/_r_/skills/webapp-ui-ux/scripts/search.js +0 -98
- package/lib/templates/project/reactb2x/_r_/skills/webapp-unsplash-images/SKILL.md +0 -71
- package/lib/templates/project/reactb2x/_r_/skills/webapp-unsplash-images/implementation/usage.md +0 -159
- package/lib/templates/project/reactb2x/_r_/webapp-cli-commands.md +0 -88
- package/lib/templates/project/reactb2x/_r_/webapp-react-code-quality.md +0 -136
- package/lib/templates/project/reactb2x/_r_/webapp-react-typescript.md +0 -205
- package/lib/templates/project/reactb2x/_r_/webapp-react.md +0 -202
- package/lib/templates/project/reactb2x/_r_/webapp-skills-first.md +0 -26
- /package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/{src/components.json → components.json} +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/implementation/dashboard-layout.md +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/implementation/stat-card.md +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-react → building-react-components}/implementation/component.md +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-react → building-react-components}/implementation/header-footer.md +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-react → building-react-components}/implementation/page.md +0 -0
- /package/lib/templates/project/reactb2e/_r_/skills/{webapp-csp-trusted-sites → configuring-csp-trusted-sites}/implementation/metadata-format.md +0 -0
- /package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/{src/components.json → components.json} +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/implementation/dashboard-layout.md +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-react-data-visualization → building-data-visualization}/implementation/stat-card.md +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-react → building-react-components}/implementation/component.md +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-react → building-react-components}/implementation/header-footer.md +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-react → building-react-components}/implementation/page.md +0 -0
- /package/lib/templates/project/reactb2x/_r_/skills/{webapp-csp-trusted-sites → configuring-csp-trusted-sites}/implementation/metadata-format.md +0 -0
- /package/lib/templates/webapplication/reactbasic/{src/components.json → components.json} +0 -0
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Alternative detail rendering: layout sections → rows → items → label/value grid.
|
|
3
|
-
*
|
|
4
|
-
* Use when you have raw Layout API response + record and do not need the full
|
|
5
|
-
* layoutTransformUtils + formDataTransformUtils pipeline. The primary detail view
|
|
6
|
-
* (DetailPage) uses DetailForm via UiApiDetailForm; use this component for other
|
|
7
|
-
* entry points that already have layout + record in hand.
|
|
8
|
-
*/
|
|
9
|
-
import type { LayoutResponse } from "../../types/recordDetail/recordDetail";
|
|
10
|
-
import type { SearchResultRecordData } from "../../types/search/searchResults";
|
|
11
|
-
import { getNestedFieldValue } from "../../utils/fieldUtils";
|
|
12
|
-
|
|
13
|
-
interface DetailLayoutSectionsProps {
|
|
14
|
-
layout: LayoutResponse;
|
|
15
|
-
record: SearchResultRecordData;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface FieldEntry {
|
|
19
|
-
key: string;
|
|
20
|
-
label: string;
|
|
21
|
-
value: string | number | boolean | null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function getSectionFieldEntries(
|
|
25
|
-
section: LayoutResponse["sections"][number],
|
|
26
|
-
record: SearchResultRecordData,
|
|
27
|
-
): FieldEntry[] {
|
|
28
|
-
const entries: FieldEntry[] = [];
|
|
29
|
-
section.layoutRows.forEach((row, rowIdx) => {
|
|
30
|
-
row.layoutItems.forEach((item, itemIdx) => {
|
|
31
|
-
item.layoutComponents.forEach((comp, compIdx) => {
|
|
32
|
-
if (comp.componentType !== "Field" || !comp.apiName) return;
|
|
33
|
-
const value = getNestedFieldValue(record.fields, comp.apiName);
|
|
34
|
-
const label = comp.label ?? item.label;
|
|
35
|
-
entries.push({
|
|
36
|
-
key: `${section.id}-${rowIdx}-${itemIdx}-${comp.apiName ?? compIdx}`,
|
|
37
|
-
label: label || comp.apiName,
|
|
38
|
-
value: value ?? null,
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
return entries;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default function DetailLayoutSections({ layout, record }: DetailLayoutSectionsProps) {
|
|
47
|
-
return (
|
|
48
|
-
<div className="space-y-8" role="region" aria-label="Record details">
|
|
49
|
-
{layout.sections.map((section) => {
|
|
50
|
-
const entries = getSectionFieldEntries(section, record);
|
|
51
|
-
if (entries.length === 0) return null;
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<section
|
|
55
|
-
key={section.id}
|
|
56
|
-
className="space-y-4"
|
|
57
|
-
aria-labelledby={section.useHeading ? `section-${section.id}` : undefined}
|
|
58
|
-
>
|
|
59
|
-
{section.useHeading && section.heading ? (
|
|
60
|
-
<h3
|
|
61
|
-
id={`section-${section.id}`}
|
|
62
|
-
className="text-base font-semibold text-foreground border-b pb-2"
|
|
63
|
-
>
|
|
64
|
-
{section.heading}
|
|
65
|
-
</h3>
|
|
66
|
-
) : null}
|
|
67
|
-
<dl className="grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-4">
|
|
68
|
-
{entries.map(({ key, label, value }) => (
|
|
69
|
-
<div key={key} className="flex flex-col gap-1">
|
|
70
|
-
<dt className="text-sm font-medium text-muted-foreground">{label}</dt>
|
|
71
|
-
<dd className="text-sm text-foreground">{value || "—"}</dd>
|
|
72
|
-
</div>
|
|
73
|
-
))}
|
|
74
|
-
</dl>
|
|
75
|
-
</section>
|
|
76
|
-
);
|
|
77
|
-
})}
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback, useEffect, useRef } from "react";
|
|
2
|
-
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
3
|
-
import type { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
export interface SectionProps {
|
|
6
|
-
sectionId: string;
|
|
7
|
-
titleLabel: string;
|
|
8
|
-
showHeader: boolean;
|
|
9
|
-
collapsible: boolean;
|
|
10
|
-
/** When provided, section is controlled (parent owns state). When undefined, section is uncontrolled (internal state). */
|
|
11
|
-
collapsed?: boolean;
|
|
12
|
-
onToggle?: (sectionId: string, collapsed: boolean) => void;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Section block with optional heading and collapsible content. Controlled when
|
|
18
|
-
* `collapsed` is passed; uncontrolled otherwise. Accessible: aria-expanded, aria-controls, keyboard (Enter/Space).
|
|
19
|
-
*/
|
|
20
|
-
export function Section({
|
|
21
|
-
sectionId,
|
|
22
|
-
titleLabel,
|
|
23
|
-
showHeader,
|
|
24
|
-
collapsible,
|
|
25
|
-
collapsed: controlledCollapsed,
|
|
26
|
-
onToggle,
|
|
27
|
-
children,
|
|
28
|
-
}: SectionProps) {
|
|
29
|
-
const [internalCollapsed, setInternalCollapsed] = useState(false);
|
|
30
|
-
const isControlled = controlledCollapsed !== undefined;
|
|
31
|
-
const collapsed = isControlled ? controlledCollapsed : internalCollapsed;
|
|
32
|
-
|
|
33
|
-
const warnedUncontrolledRef = useRef(false);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (
|
|
36
|
-
process.env.NODE_ENV === "development" &&
|
|
37
|
-
onToggle != null &&
|
|
38
|
-
!isControlled &&
|
|
39
|
-
!warnedUncontrolledRef.current
|
|
40
|
-
) {
|
|
41
|
-
warnedUncontrolledRef.current = true;
|
|
42
|
-
console.warn(
|
|
43
|
-
"[Section] onToggle is passed but collapsed is undefined; section is uncontrolled. Pass collapsed to control from parent.",
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}, [onToggle, isControlled]);
|
|
47
|
-
|
|
48
|
-
const contentId = `section-content-${sectionId}`;
|
|
49
|
-
const headerId = `section-header-${sectionId}`;
|
|
50
|
-
|
|
51
|
-
const handleToggle = useCallback(() => {
|
|
52
|
-
const next = !collapsed;
|
|
53
|
-
if (!isControlled) setInternalCollapsed(next);
|
|
54
|
-
onToggle?.(sectionId, next);
|
|
55
|
-
}, [collapsed, isControlled, onToggle, sectionId]);
|
|
56
|
-
|
|
57
|
-
const handleKeyDown = useCallback(
|
|
58
|
-
(e: React.KeyboardEvent) => {
|
|
59
|
-
if (!collapsible) return;
|
|
60
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
61
|
-
e.preventDefault();
|
|
62
|
-
handleToggle();
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
[collapsible, handleToggle],
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
return (
|
|
69
|
-
<section
|
|
70
|
-
className="border-b border-border last:border-b-0 pb-6 last:pb-0"
|
|
71
|
-
aria-labelledby={showHeader ? headerId : undefined}
|
|
72
|
-
>
|
|
73
|
-
{showHeader && titleLabel && (
|
|
74
|
-
<h3 id={headerId} className="text-base font-semibold text-foreground mb-4">
|
|
75
|
-
{collapsible ? (
|
|
76
|
-
<button
|
|
77
|
-
type="button"
|
|
78
|
-
className="flex items-center gap-2 w-full text-left hover:opacity-80 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded"
|
|
79
|
-
onClick={handleToggle}
|
|
80
|
-
onKeyDown={handleKeyDown}
|
|
81
|
-
aria-expanded={!collapsed}
|
|
82
|
-
aria-controls={contentId}
|
|
83
|
-
aria-label={`${titleLabel}, ${collapsed ? "expand" : "collapse"} section`}
|
|
84
|
-
aria-roledescription="Section toggle"
|
|
85
|
-
>
|
|
86
|
-
{collapsed ? (
|
|
87
|
-
<ChevronRight className="h-4 w-4 shrink-0" aria-hidden />
|
|
88
|
-
) : (
|
|
89
|
-
<ChevronDown className="h-4 w-4 shrink-0" aria-hidden />
|
|
90
|
-
)}
|
|
91
|
-
<span>{titleLabel}</span>
|
|
92
|
-
</button>
|
|
93
|
-
) : (
|
|
94
|
-
<span className="block">{titleLabel}</span>
|
|
95
|
-
)}
|
|
96
|
-
</h3>
|
|
97
|
-
)}
|
|
98
|
-
<div
|
|
99
|
-
id={contentId}
|
|
100
|
-
className={showHeader && collapsible ? "mt-2" : ""}
|
|
101
|
-
aria-hidden={collapsible ? collapsed : undefined}
|
|
102
|
-
hidden={collapsible && collapsed}
|
|
103
|
-
>
|
|
104
|
-
{children}
|
|
105
|
-
</div>
|
|
106
|
-
</section>
|
|
107
|
-
);
|
|
108
|
-
}
|
package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/SectionRow.tsx
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export interface SectionRowProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* One row of the detail form: definition list (dl) with two-column grid. Each child
|
|
9
|
-
* is a layout item (field cell or placeholder) from the layout API row.
|
|
10
|
-
*/
|
|
11
|
-
export function SectionRow({ children }: SectionRowProps) {
|
|
12
|
-
return (
|
|
13
|
-
<dl
|
|
14
|
-
className="grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-4 sm:gap-y-2"
|
|
15
|
-
aria-label="Row of fields"
|
|
16
|
-
>
|
|
17
|
-
{children}
|
|
18
|
-
</dl>
|
|
19
|
-
);
|
|
20
|
-
}
|
package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/UiApiDetailForm.tsx
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { useEffect, useMemo } from "react";
|
|
2
|
-
import type { LayoutResponse } from "../../types/recordDetail/recordDetail";
|
|
3
|
-
import { useRecordDetailLayout } from "../../hooks/useRecordDetailLayout";
|
|
4
|
-
import { toRecordDisplayNameMetadata } from "../../utils/fieldUtils";
|
|
5
|
-
import { DetailForm } from "./DetailForm";
|
|
6
|
-
import type { ObjectInfoResult } from "../../types/objectInfo/objectInfo";
|
|
7
|
-
import type { ObjectInfoMetadata } from "../../utils/formDataTransformUtils";
|
|
8
|
-
import type { ObjectInfo } from "../../utils/layoutTransformUtils";
|
|
9
|
-
import type { GraphQLRecordNode } from "../../api/recordListGraphQLService";
|
|
10
|
-
import { getGraphQLRecordDisplayName } from "../../utils/graphQLNodeFieldUtils";
|
|
11
|
-
|
|
12
|
-
export interface UiApiDetailFormProps {
|
|
13
|
-
objectApiName: string;
|
|
14
|
-
recordId: string;
|
|
15
|
-
recordTypeId?: string | null;
|
|
16
|
-
/** When provided, skips fetching and uses this layout (controlled mode). */
|
|
17
|
-
layout?: LayoutResponse | null;
|
|
18
|
-
/** When provided with layout, skips fetching and uses this record (controlled mode). */
|
|
19
|
-
record?: GraphQLRecordNode | null;
|
|
20
|
-
/** When provided, skips fetching and uses this object metadata (controlled mode). */
|
|
21
|
-
objectMetadata?: ObjectInfoResult | null;
|
|
22
|
-
/** When true, shows a loading spinner until layout and record are ready. */
|
|
23
|
-
loadsWithSpinner?: boolean;
|
|
24
|
-
/** Reserved for future edit mode; no-op in read-only. */
|
|
25
|
-
hideFooter?: boolean;
|
|
26
|
-
/** Callback when layout and record are ready (e.g. for parent to show record title). */
|
|
27
|
-
onRecordDataUpdate?: (payload: { recordName: string; record: unknown }) => void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Entry component for the record detail view. When layout/record are not provided,
|
|
32
|
-
* fetches them via useRecordDetailLayout. Shows optional loading spinner and renders
|
|
33
|
-
* a read-only DetailForm when ready. Mirrors LWC uiApiDetailForm (read-only).
|
|
34
|
-
*
|
|
35
|
-
* Passes objectInfo (mapped from object metadata) to DetailForm for layout transform.
|
|
36
|
-
* lookupRecords (picklist/lookup options) are not fetched in this flow; DetailForm
|
|
37
|
-
* accepts them when provided (e.g. from a future picklist API). Omit for read-only
|
|
38
|
-
* display without API-driven picklist labels.
|
|
39
|
-
*/
|
|
40
|
-
export function UiApiDetailForm({
|
|
41
|
-
objectApiName,
|
|
42
|
-
recordId,
|
|
43
|
-
recordTypeId = null,
|
|
44
|
-
layout: layoutProp,
|
|
45
|
-
record: recordProp,
|
|
46
|
-
objectMetadata: objectMetadataProp,
|
|
47
|
-
loadsWithSpinner = false,
|
|
48
|
-
onRecordDataUpdate,
|
|
49
|
-
}: UiApiDetailFormProps) {
|
|
50
|
-
// Memoize so hook dependency doesn't change every render (avoids duplicate fetches)
|
|
51
|
-
const initialData = useMemo(
|
|
52
|
-
() =>
|
|
53
|
-
layoutProp && recordProp && objectMetadataProp
|
|
54
|
-
? {
|
|
55
|
-
layout: layoutProp,
|
|
56
|
-
record: recordProp,
|
|
57
|
-
objectMetadata: objectMetadataProp,
|
|
58
|
-
}
|
|
59
|
-
: null,
|
|
60
|
-
[layoutProp, recordProp, objectMetadataProp],
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
const fetched = useRecordDetailLayout({
|
|
64
|
-
objectApiName,
|
|
65
|
-
recordId,
|
|
66
|
-
recordTypeId,
|
|
67
|
-
initialData,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
const layout = layoutProp ?? fetched.layout;
|
|
71
|
-
const record = recordProp ?? fetched.record;
|
|
72
|
-
const metadata = objectMetadataProp ?? fetched.objectMetadata;
|
|
73
|
-
const loading = layoutProp == null || recordProp == null ? fetched.loading : false;
|
|
74
|
-
const error = layoutProp == null || recordProp == null ? fetched.error : null;
|
|
75
|
-
|
|
76
|
-
const objectInfo: ObjectInfo | null = useMemo(() => {
|
|
77
|
-
if (!metadata?.fields) return null;
|
|
78
|
-
const apiName = metadata.ApiName;
|
|
79
|
-
return {
|
|
80
|
-
apiName,
|
|
81
|
-
fields: Object.fromEntries(
|
|
82
|
-
Object.entries(metadata.fields).map(([name, f]) => [
|
|
83
|
-
name,
|
|
84
|
-
{
|
|
85
|
-
compoundFieldName: f.compoundFieldName ?? undefined,
|
|
86
|
-
dataType: f.dataType ?? "",
|
|
87
|
-
},
|
|
88
|
-
]),
|
|
89
|
-
),
|
|
90
|
-
};
|
|
91
|
-
}, [metadata]);
|
|
92
|
-
|
|
93
|
-
const isReadyToRender = Boolean(layout && record && layout.sections?.length);
|
|
94
|
-
|
|
95
|
-
const showSpinner = !isReadyToRender && loadsWithSpinner && loading;
|
|
96
|
-
|
|
97
|
-
useEffect(() => {
|
|
98
|
-
if (!record || !onRecordDataUpdate || !isReadyToRender) return;
|
|
99
|
-
onRecordDataUpdate({
|
|
100
|
-
recordName: getGraphQLRecordDisplayName(record, toRecordDisplayNameMetadata(metadata)),
|
|
101
|
-
record,
|
|
102
|
-
});
|
|
103
|
-
}, [record, metadata, onRecordDataUpdate, isReadyToRender]);
|
|
104
|
-
|
|
105
|
-
if (showSpinner) {
|
|
106
|
-
return (
|
|
107
|
-
<div
|
|
108
|
-
className="min-h-[80px] flex items-center justify-center"
|
|
109
|
-
role="status"
|
|
110
|
-
aria-live="polite"
|
|
111
|
-
aria-label="Loading record details"
|
|
112
|
-
>
|
|
113
|
-
<span className="sr-only">Loading record details</span>
|
|
114
|
-
<div
|
|
115
|
-
className="h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"
|
|
116
|
-
aria-hidden
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (error || !layout || !record) {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (!isReadyToRender) {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
return (
|
|
131
|
-
<DetailForm
|
|
132
|
-
layout={layout}
|
|
133
|
-
record={record}
|
|
134
|
-
metadata={metadata as ObjectInfoMetadata}
|
|
135
|
-
objectInfo={objectInfo}
|
|
136
|
-
showSectionHeaders
|
|
137
|
-
collapsibleSections
|
|
138
|
-
/>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Picks formatter by dataType (Address, Phone, Url, Email) or plain text. Empty values show "—" with a11y label.
|
|
3
|
-
*/
|
|
4
|
-
import { FormattedAddress } from "./FormattedAddress";
|
|
5
|
-
import { FormattedEmail } from "./FormattedEmail";
|
|
6
|
-
import { FormattedPhone } from "./FormattedPhone";
|
|
7
|
-
import { FormattedText } from "./FormattedText";
|
|
8
|
-
import { FormattedUrl } from "./FormattedUrl";
|
|
9
|
-
|
|
10
|
-
/** Salesforce UI API dataType values that have dedicated formatters. */
|
|
11
|
-
const DATA_TYPES = {
|
|
12
|
-
Address: "Address",
|
|
13
|
-
Email: "Email",
|
|
14
|
-
Phone: "Phone",
|
|
15
|
-
Url: "Url",
|
|
16
|
-
} as const;
|
|
17
|
-
|
|
18
|
-
/** Normalize dataType to canonical casing so "PHONE" / "phone" match Phone, etc. */
|
|
19
|
-
function normalizeDataType(dataType: string | undefined): string | undefined {
|
|
20
|
-
if (dataType == null || dataType === "") return dataType;
|
|
21
|
-
const lower = dataType.toLowerCase();
|
|
22
|
-
const canonical: Record<string, string> = {
|
|
23
|
-
phone: DATA_TYPES.Phone,
|
|
24
|
-
email: DATA_TYPES.Email,
|
|
25
|
-
url: DATA_TYPES.Url,
|
|
26
|
-
address: DATA_TYPES.Address,
|
|
27
|
-
};
|
|
28
|
-
return canonical[lower] ?? dataType;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface FieldValueDisplayProps {
|
|
32
|
-
/** Resolved display value (string, number, boolean, or null). */
|
|
33
|
-
value: string | number | boolean | null | undefined;
|
|
34
|
-
/** Field dataType from object info (e.g. Phone, Email, Url, Address). */
|
|
35
|
-
dataType?: string;
|
|
36
|
-
className?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const DEFAULT_CLASS = "text-sm text-foreground";
|
|
40
|
-
const LINK_CLASS =
|
|
41
|
-
"text-sm text-foreground text-primary underline underline-offset-2 hover:opacity-80";
|
|
42
|
-
|
|
43
|
-
export function FieldValueDisplay({
|
|
44
|
-
value,
|
|
45
|
-
dataType,
|
|
46
|
-
className = DEFAULT_CLASS,
|
|
47
|
-
}: FieldValueDisplayProps) {
|
|
48
|
-
const str = value || null;
|
|
49
|
-
|
|
50
|
-
if (str === null) {
|
|
51
|
-
return (
|
|
52
|
-
<span className={className} aria-label="No value">
|
|
53
|
-
—
|
|
54
|
-
</span>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const linkClassName = className === DEFAULT_CLASS ? LINK_CLASS : className;
|
|
59
|
-
const normalizedType = normalizeDataType(dataType);
|
|
60
|
-
|
|
61
|
-
switch (normalizedType) {
|
|
62
|
-
case DATA_TYPES.Address:
|
|
63
|
-
return <FormattedAddress value={str as string} className={linkClassName} />;
|
|
64
|
-
case DATA_TYPES.Phone:
|
|
65
|
-
return <FormattedPhone value={str as string} className={linkClassName} />;
|
|
66
|
-
case DATA_TYPES.Url:
|
|
67
|
-
return <FormattedUrl value={str as string} className={linkClassName} />;
|
|
68
|
-
case DATA_TYPES.Email:
|
|
69
|
-
return <FormattedEmail value={str as string} className={linkClassName} />;
|
|
70
|
-
default:
|
|
71
|
-
return <FormattedText value={value} className={className} />;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** Address as link to Google Maps search. External link: target _blank, rel noopener noreferrer. */
|
|
2
|
-
|
|
3
|
-
const GOOGLE_MAPS_SEARCH_BASE = "https://www.google.com/maps/search/?api=1&query=";
|
|
4
|
-
|
|
5
|
-
export interface FormattedAddressProps {
|
|
6
|
-
/** Full address string (e.g. "10 Main Rd.\nNew York, NY 31349\nUSA"). */
|
|
7
|
-
value: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function FormattedAddress({ value, className }: FormattedAddressProps) {
|
|
12
|
-
if (!value || !value.trim()) return null;
|
|
13
|
-
const url = GOOGLE_MAPS_SEARCH_BASE + encodeURIComponent(value.trim());
|
|
14
|
-
return (
|
|
15
|
-
<a
|
|
16
|
-
href={url}
|
|
17
|
-
target="_blank"
|
|
18
|
-
rel="noopener noreferrer"
|
|
19
|
-
className={className}
|
|
20
|
-
aria-label="Open address in Google Maps"
|
|
21
|
-
>
|
|
22
|
-
{value.split("\n").map((line, i) => (
|
|
23
|
-
<span key={i} className="block">
|
|
24
|
-
{line}
|
|
25
|
-
</span>
|
|
26
|
-
))}
|
|
27
|
-
</a>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** Email as mailto: link. */
|
|
2
|
-
|
|
3
|
-
export interface FormattedEmailProps {
|
|
4
|
-
value: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function FormattedEmail({ value, className }: FormattedEmailProps) {
|
|
9
|
-
const str = (value || "").trim();
|
|
10
|
-
if (!str) return null;
|
|
11
|
-
const href = `mailto:${encodeURIComponent(str)}`;
|
|
12
|
-
return (
|
|
13
|
-
<a href={href} className={className} aria-label={`Email ${str}`}>
|
|
14
|
-
{str}
|
|
15
|
-
</a>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Phone value as tel: link for dialer/VoIP. */
|
|
2
|
-
|
|
3
|
-
export interface FormattedPhoneProps {
|
|
4
|
-
value: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/** Normalizes value for tel: (digits and + only). */
|
|
9
|
-
function telHref(value: string): string {
|
|
10
|
-
const cleaned = value.replace(/[^\d+]/g, "");
|
|
11
|
-
return cleaned ? `tel:${cleaned}` : "#";
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function FormattedPhone({ value, className }: FormattedPhoneProps) {
|
|
15
|
-
if (!value) return null;
|
|
16
|
-
const trimmed = (value || "").trim();
|
|
17
|
-
const href = telHref(trimmed);
|
|
18
|
-
if (href === "#") return <span className={className}>{trimmed}</span>;
|
|
19
|
-
return (
|
|
20
|
-
<a href={href} className={className} aria-label={`Call ${trimmed}`}>
|
|
21
|
-
{trimmed}
|
|
22
|
-
</a>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** Plain-text field value when dataType has no dedicated formatter. */
|
|
2
|
-
|
|
3
|
-
export interface FormattedTextProps {
|
|
4
|
-
value: string | number | boolean | null | undefined;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function FormattedText({ value, className }: FormattedTextProps) {
|
|
9
|
-
if (!value) return null;
|
|
10
|
-
return <span className={className}>{value as string}</span>;
|
|
11
|
-
}
|
package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/_det_/_fmt_/FormattedUrl.tsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** URL as external link (new tab, noopener noreferrer). Falls back to plain text if not http(s). */
|
|
2
|
-
|
|
3
|
-
import { isAllowedLinkUrl } from "../../../utils/linkUtils";
|
|
4
|
-
|
|
5
|
-
export interface FormattedUrlProps {
|
|
6
|
-
value: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Optional display text; defaults to the URL. */
|
|
9
|
-
displayText?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function FormattedUrl({ value, className, displayText }: FormattedUrlProps) {
|
|
13
|
-
const str = (value || "").trim();
|
|
14
|
-
if (!str) return null;
|
|
15
|
-
const href = str.startsWith("http://") || str.startsWith("https://") ? str : `https://${str}`;
|
|
16
|
-
if (!isAllowedLinkUrl(href)) return <span className={className}>{str}</span>;
|
|
17
|
-
const label = displayText ?? str;
|
|
18
|
-
return (
|
|
19
|
-
<a
|
|
20
|
-
href={href}
|
|
21
|
-
target="_blank"
|
|
22
|
-
rel="noopener noreferrer"
|
|
23
|
-
className={className}
|
|
24
|
-
aria-label={`Open link in new tab: ${label}`}
|
|
25
|
-
>
|
|
26
|
-
{label}
|
|
27
|
-
</a>
|
|
28
|
-
);
|
|
29
|
-
}
|
package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterField.tsx
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FilterField Component
|
|
3
|
-
*
|
|
4
|
-
* Wrapper component that renders the appropriate filter input type based on filter affordance.
|
|
5
|
-
* Routes to FilterInput for text fields or FilterSelect for picklist fields.
|
|
6
|
-
*
|
|
7
|
-
* @param filter - Filter definition containing field path, label, and affordance
|
|
8
|
-
* @param value - Current filter value
|
|
9
|
-
* @param picklistValues - Array of picklist options (for select fields)
|
|
10
|
-
* @param onChange - Callback when filter value changes
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* - Automatically determines input type from filter.affordance
|
|
14
|
-
* - Returns null if filter is invalid
|
|
15
|
-
* - Defaults to text input if affordance is not 'select'
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```tsx
|
|
19
|
-
* <FilterField
|
|
20
|
-
* filter={filter}
|
|
21
|
-
* value={filterValue}
|
|
22
|
-
* picklistValues={picklistOptions}
|
|
23
|
-
* onChange={(value) => setFilterValue(value)}
|
|
24
|
-
* />
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
import FilterInput from "./FilterInput";
|
|
28
|
-
import FilterSelect from "./FilterSelect";
|
|
29
|
-
import type { Filter } from "../../types/filters/filters";
|
|
30
|
-
import type { PicklistValue } from "../../types/filters/picklist";
|
|
31
|
-
|
|
32
|
-
interface FilterFieldProps {
|
|
33
|
-
filter: Filter;
|
|
34
|
-
value: string;
|
|
35
|
-
picklistValues: PicklistValue[];
|
|
36
|
-
onChange: (value: string) => void;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export default function FilterField({ filter, value, picklistValues, onChange }: FilterFieldProps) {
|
|
40
|
-
// Guard against invalid filter objects
|
|
41
|
-
if (!filter || !filter.targetFieldPath) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const affordance = filter.affordance?.toLowerCase() || "";
|
|
46
|
-
|
|
47
|
-
if (affordance === "select") {
|
|
48
|
-
const options = picklistValues || [];
|
|
49
|
-
return <FilterSelect filter={filter} value={value} options={options} onChange={onChange} />;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Default to text input
|
|
53
|
-
return <FilterInput filter={filter} value={value} onChange={onChange} />;
|
|
54
|
-
}
|
package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_gs_/_c_/filters/FilterInput.tsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FilterInput Component
|
|
3
|
-
*
|
|
4
|
-
* Renders a text input field for filter values.
|
|
5
|
-
* Used for filters that don't have a picklist (affordance !== 'select').
|
|
6
|
-
*
|
|
7
|
-
* @param filter - Filter definition containing field path, label, and attributes
|
|
8
|
-
* @param value - Current filter input value
|
|
9
|
-
* @param onChange - Callback when input value changes
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* - Displays filter label or field path as the label
|
|
13
|
-
* - Shows placeholder text from filter attributes or generates default
|
|
14
|
-
* - Displays help message if available
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <FilterInput
|
|
19
|
-
* filter={textFilter}
|
|
20
|
-
* value={filterValue}
|
|
21
|
-
* onChange={(value) => setFilterValue(value)}
|
|
22
|
-
* />
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
import { Input } from "../../../../components/ui/input";
|
|
26
|
-
import { Field, FieldLabel, FieldDescription } from "../../../../components/ui/field";
|
|
27
|
-
import type { Filter } from "../../types/filters/filters";
|
|
28
|
-
|
|
29
|
-
interface FilterInputProps {
|
|
30
|
-
filter: Filter;
|
|
31
|
-
value: string;
|
|
32
|
-
onChange: (value: string) => void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default function FilterInput({ filter, value, onChange }: FilterInputProps) {
|
|
36
|
-
return (
|
|
37
|
-
<Field>
|
|
38
|
-
<FieldLabel htmlFor={filter.targetFieldPath}>
|
|
39
|
-
{filter.label || filter.targetFieldPath}
|
|
40
|
-
</FieldLabel>
|
|
41
|
-
<Input
|
|
42
|
-
id={filter.targetFieldPath}
|
|
43
|
-
type="text"
|
|
44
|
-
value={value}
|
|
45
|
-
onChange={(e: React.ChangeEvent<HTMLInputElement>) => onChange(e.target.value)}
|
|
46
|
-
placeholder={
|
|
47
|
-
filter.attributes?.placeholder ||
|
|
48
|
-
`Enter ${(filter.label || filter.targetFieldPath).toLowerCase()}`
|
|
49
|
-
}
|
|
50
|
-
aria-label={filter.label || filter.targetFieldPath}
|
|
51
|
-
/>
|
|
52
|
-
{filter.helpMessage && <FieldDescription>{filter.helpMessage}</FieldDescription>}
|
|
53
|
-
</Field>
|
|
54
|
-
);
|
|
55
|
-
}
|