@salesforce/templates 66.5.6 → 66.6.0
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/generators/projectGenerator.d.ts +1 -1
- package/lib/generators/projectGenerator.js +3 -3
- package/lib/generators/projectGenerator.js.map +1 -1
- package/lib/templates/project/{reactb2e → reactexternalapp}/AGENT.md +6 -10
- package/lib/templates/project/{reactb2e → reactexternalapp}/CHANGELOG.md +59 -0
- package/lib/templates/project/{reactb2x → reactexternalapp}/README.md +14 -14
- package/lib/templates/project/{reactb2x/_p_/_m_/_d_/_s_/_a1_/appreacttemplateb2x1.digitalExperience-meta.xml → reactexternalapp/_p_/_m_/_d_/_s_/_a1_/reactexternalapp1.digitalExperience-meta.xml} +1 -1
- package/lib/templates/project/{reactb2x/_p_/_m_/_d_/_s_/_a1_/sfdc_cms__site/appreacttemplateb2x1 → reactexternalapp/_p_/_m_/_d_/_s_/_a1_/sfdc_cms__site/reactexternalapp1}/_meta.json +1 -1
- package/lib/templates/project/{reactb2x/_p_/_m_/_d_/_s_/_a1_/sfdc_cms__site/appreacttemplateb2x1 → reactexternalapp/_p_/_m_/_d_/_s_/_a1_/sfdc_cms__site/reactexternalapp1}/content.json +3 -3
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/README.md +2 -2
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/package.json +3 -3
- package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/appreacttemplateb2x.webapplication-meta.xml → reactexternalapp/_p_/_m_/_w_/_a_/reactexternalapp.webapplication-meta.xml} +1 -1
- package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/AccountSearch.tsx +82 -54
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterContext.tsx +73 -0
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +109 -0
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/BooleanFilter.tsx +16 -36
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +121 -0
- package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateRangeFilter.tsx +14 -23
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/MultiSelectFilter.tsx +18 -26
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/NumericRangeFilter.tsx +22 -39
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +37 -0
- package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SelectFilter.tsx +30 -34
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +74 -0
- package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +1 -0
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +1 -0
- package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +22 -0
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/api/graphqlClient.ts +25 -0
- package/lib/templates/project/{reactb2x/_p_/_m_/digitalExperienceConfigs/appreacttemplateb2x1.digitalExperienceConfig → reactexternalapp/_p_/_m_/digitalExperienceConfigs/reactexternalapp1.digitalExperienceConfig} +3 -3
- package/lib/templates/project/{reactb2x/_p_/_m_/networks/appreacttemplateb2x.network → reactexternalapp/_p_/_m_/networks/reactexternalapp.network} +4 -4
- package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/package.xml +4 -4
- package/lib/templates/project/{reactb2x/_p_/_m_/sites/appreacttemplateb2x.site → reactexternalapp/_p_/_m_/sites/reactexternalapp.site} +2 -2
- package/lib/templates/project/{reactb2e → reactexternalapp}/_r_/webapp-data.md +5 -5
- package/lib/templates/project/{reactb2x → reactexternalapp}/_r_/webapp-ui.md +2 -2
- package/lib/templates/project/{reactb2e → reactexternalapp}/package-lock.json +2 -2
- package/lib/templates/project/{reactb2e → reactexternalapp}/package.json +1 -1
- package/lib/templates/project/{reactb2x/_r_/skills/using-salesforce-data → reactexternalapp/scripts}/graphql-search.sh +73 -21
- package/lib/templates/project/{reactb2x → reactinternalapp}/AGENT.md +6 -10
- package/lib/templates/project/{reactb2x → reactinternalapp}/CHANGELOG.md +59 -0
- package/lib/templates/project/{reactb2e → reactinternalapp}/README.md +9 -9
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/README.md +2 -2
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/package.json +3 -3
- package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/appreacttemplateb2e.webapplication-meta.xml → reactinternalapp/_p_/_m_/_w_/_a_/reactinternalapp.webapplication-meta.xml} +1 -1
- package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/AccountSearch.tsx +82 -54
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterContext.tsx +73 -0
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +109 -0
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/BooleanFilter.tsx +16 -36
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +121 -0
- package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateRangeFilter.tsx +14 -23
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/MultiSelectFilter.tsx +18 -26
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/NumericRangeFilter.tsx +22 -39
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +37 -0
- package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SelectFilter.tsx +30 -34
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +74 -0
- package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +1 -0
- package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +1 -0
- package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +22 -0
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/api/graphqlClient.ts +25 -0
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/routes.tsx +21 -0
- package/lib/templates/project/{reactb2x → reactinternalapp}/_r_/webapp-data.md +5 -5
- package/lib/templates/project/{reactb2e → reactinternalapp}/_r_/webapp-ui.md +2 -2
- package/lib/templates/project/{reactb2x → reactinternalapp}/package-lock.json +2 -2
- package/lib/templates/project/{reactb2x → reactinternalapp}/package.json +1 -1
- package/lib/templates/project/{reactb2e/_r_/skills/using-salesforce-data → reactinternalapp/scripts}/graphql-search.sh +73 -21
- package/lib/templates/webapplication/reactbasic/package.json +3 -3
- package/lib/templates/webapplication/reactbasic/src/api/graphqlClient.ts +25 -0
- package/lib/utils/template-placeholders.js +8 -1
- package/lib/utils/template-placeholders.js.map +1 -1
- package/lib/utils/types.d.ts +1 -1
- package/lib/utils/webappTemplateUtils.d.ts +6 -4
- package/lib/utils/webappTemplateUtils.js +17 -11
- package/lib/utils/webappTemplateUtils.js.map +1 -1
- package/package.json +5 -5
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterPanel.tsx +0 -127
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +0 -151
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +0 -165
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +0 -40
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +0 -77
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/pages/TestAccPage.tsx +0 -19
- package/lib/templates/project/reactb2e/_p_/_m_/_w_/_a_/src/routes.tsx +0 -38
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/SKILL.md +0 -72
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/implementation/bar-line-chart.md +0 -316
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/implementation/dashboard-layout.md +0 -189
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/implementation/donut-chart.md +0 -181
- package/lib/templates/project/reactb2e/_r_/skills/building-data-visualization/implementation/stat-card.md +0 -150
- package/lib/templates/project/reactb2e/_r_/skills/building-react-components/SKILL.md +0 -96
- package/lib/templates/project/reactb2e/_r_/skills/building-react-components/implementation/component.md +0 -78
- package/lib/templates/project/reactb2e/_r_/skills/building-react-components/implementation/header-footer.md +0 -132
- package/lib/templates/project/reactb2e/_r_/skills/building-react-components/implementation/page.md +0 -93
- package/lib/templates/project/reactb2e/_r_/skills/configuring-csp-trusted-sites/SKILL.md +0 -90
- package/lib/templates/project/reactb2e/_r_/skills/configuring-csp-trusted-sites/implementation/metadata-format.md +0 -281
- package/lib/templates/project/reactb2e/_r_/skills/configuring-webapp-metadata/SKILL.md +0 -158
- package/lib/templates/project/reactb2e/_r_/skills/creating-webapp/SKILL.md +0 -140
- package/lib/templates/project/reactb2e/_r_/skills/deploying-to-salesforce/SKILL.md +0 -226
- package/lib/templates/project/reactb2e/_r_/skills/implementing-file-upload/SKILL.md +0 -396
- package/lib/templates/project/reactb2e/_r_/skills/installing-webapp-features/SKILL.md +0 -210
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/SKILL.md +0 -186
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/constraints.md +0 -134
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/examples.md +0 -132
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/style-tokens.md +0 -101
- package/lib/templates/project/reactb2e/_r_/skills/managing-agentforce-conversation-client/references/troubleshooting.md +0 -57
- package/lib/templates/project/reactb2e/_r_/skills/using-salesforce-data/SKILL.md +0 -363
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/FilterPanel.tsx +0 -127
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/PaginationControls.tsx +0 -151
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/DateFilter.tsx +0 -165
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/SearchFilter.tsx +0 -40
- package/lib/templates/project/reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/components/filters/TextFilter.tsx +0 -77
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/SKILL.md +0 -72
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/implementation/bar-line-chart.md +0 -316
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/implementation/dashboard-layout.md +0 -189
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/implementation/donut-chart.md +0 -181
- package/lib/templates/project/reactb2x/_r_/skills/building-data-visualization/implementation/stat-card.md +0 -150
- package/lib/templates/project/reactb2x/_r_/skills/building-react-components/SKILL.md +0 -96
- package/lib/templates/project/reactb2x/_r_/skills/building-react-components/implementation/component.md +0 -78
- package/lib/templates/project/reactb2x/_r_/skills/building-react-components/implementation/header-footer.md +0 -132
- package/lib/templates/project/reactb2x/_r_/skills/building-react-components/implementation/page.md +0 -93
- package/lib/templates/project/reactb2x/_r_/skills/configuring-csp-trusted-sites/SKILL.md +0 -90
- package/lib/templates/project/reactb2x/_r_/skills/configuring-csp-trusted-sites/implementation/metadata-format.md +0 -281
- package/lib/templates/project/reactb2x/_r_/skills/configuring-webapp-metadata/SKILL.md +0 -158
- package/lib/templates/project/reactb2x/_r_/skills/creating-webapp/SKILL.md +0 -140
- package/lib/templates/project/reactb2x/_r_/skills/deploying-to-salesforce/SKILL.md +0 -226
- package/lib/templates/project/reactb2x/_r_/skills/implementing-file-upload/SKILL.md +0 -396
- package/lib/templates/project/reactb2x/_r_/skills/installing-webapp-features/SKILL.md +0 -210
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/SKILL.md +0 -186
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/constraints.md +0 -134
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/examples.md +0 -132
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/style-tokens.md +0 -101
- package/lib/templates/project/reactb2x/_r_/skills/managing-agentforce-conversation-client/references/troubleshooting.md +0 -57
- package/lib/templates/project/reactb2x/_r_/skills/using-salesforce-data/SKILL.md +0 -363
- /package/lib/templates/project/{reactb2e → reactexternalapp}/.forceignore +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/.husky/pre-commit +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/.prettierignore +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/.prettierrc +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/.forceignore +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/.graphqlrc.yml +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/.prettierignore +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/.prettierrc +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/CHANGELOG.md +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/codegen.yml +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/components.json +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/e2e/app.spec.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/eslint.config.js +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/index.html +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/playwright.config.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/scripts/get-graphql-schema.mjs +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/scripts/rewrite-e2e-assets.mjs +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/accountSearchService.ts +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/distinctAccountIndustries.graphql +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/distinctAccountTypes.graphql +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/getAccountDetail.graphql +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/searchAccounts.graphql +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/AccountObjectDetailPage.tsx +0 -0
- /package/lib/templates/project/{reactb2e/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/Home.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ActiveFilters.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ObjectBreadcrumb.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SearchBar.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SortControl.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/debounce.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/fieldUtils.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/filterUtils.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/sortUtils.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/api/userProfileApi.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/authHelpers.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/authenticationConfig.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/context/AuthContext.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/footers/footer-link.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/forms/auth-form.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/forms/submit-button.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/hooks/form.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/hooks/useCountdownTimer.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/hooks/useRetryWithBackoff.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/layout/card-skeleton.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/layout/centered-page-layout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/layouts/AuthAppLayout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/layouts/authenticationRouteLayout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/layouts/privateRouteLayout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ChangePassword.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ForgotPassword.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Login.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Profile.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/Register.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/pages/ResetPassword.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/sessionTimeout/SessionTimeoutValidator.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/sessionTimeout/sessionTimeService.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/sessionTimeout/sessionTimeoutConfig.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/_f_/authentication/utils/helpers.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/api/graphql-operations-types.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/app.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/appLayout.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/book.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/copy.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/rocket.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/star.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-1.png +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-2.png +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-3.png +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/assets/images/vibe-codey.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/alerts/status-alert.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/layouts/card-layout.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/alert.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/badge.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/breadcrumb.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/button.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/calendar.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/card.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/checkbox.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/collapsible.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/datePicker.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/dialog.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/field.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/index.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/input.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/label.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/pagination.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/popover.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/select.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/separator.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/skeleton.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/sonner.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/spinner.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/table.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/components/ui/tabs.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/lib/utils.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/navigationMenu.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/pages/Home.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/pages/NotFound.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/router-utils.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/_w_/_a_/src/routes.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/src/styles/global.css +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/tsconfig.json +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/tsconfig.node.json +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/vite-env.d.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/vite.config.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/vitest-env.d.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/vitest.config.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/vitest.setup.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/_p_/_m_/_w_/_a_/webapplication.json +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppAuthUtils.cls +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppAuthUtils.cls-meta.xml +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppChangePassword.cls +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppChangePassword.cls-meta.xml +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppForgotPassword.cls +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppForgotPassword.cls-meta.xml +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppLogin.cls +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppLogin.cls-meta.xml +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppRegistration.cls +0 -0
- /package/lib/templates/project/{reactb2x → reactexternalapp}/_p_/_m_/classes/WebAppRegistration.cls-meta.xml +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/config/project-scratch-def.json +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/eslint.config.js +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/jest.config.js +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/scripts/apex/hello.apex +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/scripts/prepare-import-unique-fields.js +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/scripts/setup-cli.mjs +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/scripts/sf-project-setup.mjs +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/scripts/soql/account.soql +0 -0
- /package/lib/templates/project/{reactb2e → reactexternalapp}/sfdx-project.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/.forceignore +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/.husky/pre-commit +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/.prettierignore +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/.prettierrc +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/.forceignore +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/.graphqlrc.yml +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/.prettierignore +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/.prettierrc +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/CHANGELOG.md +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/codegen.yml +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/components.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/e2e/app.spec.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/eslint.config.js +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/index.html +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/playwright.config.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/scripts/get-graphql-schema.mjs +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/scripts/rewrite-e2e-assets.mjs +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/accountSearchService.ts +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/distinctAccountIndustries.graphql +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/distinctAccountTypes.graphql +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/getAccountDetail.graphql +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/api/query/searchAccounts.graphql +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/AccountObjectDetailPage.tsx +0 -0
- /package/lib/templates/project/{reactb2x/_p_/_m_/_w_/_a_/src/_f_/_os_/__examples__ → reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_}/pages/Home.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ActiveFilters.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/ObjectBreadcrumb.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SearchBar.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/components/SortControl.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/debounce.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/fieldUtils.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/filterUtils.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/_f_/_os_/utils/sortUtils.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/api/graphql-operations-types.ts +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/app.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/appLayout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/book.svg +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/copy.svg +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/rocket.svg +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/icons/star.svg +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-1.png +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-2.png +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/images/codey-3.png +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/assets/images/vibe-codey.svg +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/AgentforceConversationClient.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/__inherit_AgentforceConversationClient.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/alerts/status-alert.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/layouts/card-layout.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/alert.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/badge.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/breadcrumb.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/button.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/calendar.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/card.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/checkbox.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/collapsible.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/datePicker.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/dialog.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/field.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/index.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/input.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/label.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/pagination.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/popover.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/select.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/separator.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/skeleton.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/sonner.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/spinner.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/table.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/components/ui/tabs.tsx +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/index.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/lib/utils.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/navigationMenu.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/pages/Home.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/pages/NotFound.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/router-utils.tsx +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/src/styles/global.css +0 -0
- /package/lib/templates/project/{reactb2e → reactinternalapp}/_p_/_m_/_w_/_a_/src/types/conversation.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/tsconfig.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/tsconfig.node.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/vite-env.d.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/vite.config.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/vitest-env.d.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/vitest.config.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/vitest.setup.ts +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/_p_/_m_/_w_/_a_/webapplication.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/config/project-scratch-def.json +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/eslint.config.js +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/jest.config.js +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/scripts/apex/hello.apex +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/scripts/prepare-import-unique-fields.js +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/scripts/setup-cli.mjs +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/scripts/sf-project-setup.mjs +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/scripts/soql/account.soql +0 -0
- /package/lib/templates/project/{reactb2x → reactinternalapp}/sfdx-project.json +0 -0
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: deploying-to-salesforce
|
|
3
|
-
description: Enforces the correct order for deploying metadata, assigning permission sets, and fetching GraphQL schema. Use for ANY deployment to a Salesforce org — webapps, LWC, Aura, Apex, metadata, schema fetch, or org sync. Codifies setup-cli.mjs.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Deploying to Salesforce
|
|
7
|
-
|
|
8
|
-
Guidance for AI agents deploying metadata to a Salesforce org or syncing with the org. **The order of operations is critical.** This skill codifies the exact sequence from `scripts/setup-cli.mjs` and documents **every Salesforce interaction**.
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
|
|
12
|
-
Invoke this skill whenever the task involves:
|
|
13
|
-
|
|
14
|
-
- Deploying metadata (objects, permission sets, layouts, Apex, web applications)
|
|
15
|
-
- Generating deploy commands or setup instructions
|
|
16
|
-
- Fetching the GraphQL schema (`npm run graphql:schema`)
|
|
17
|
-
- Running GraphQL codegen (`npm run graphql:codegen`)
|
|
18
|
-
- Full org setup (login, deploy, permset, data, schema, build)
|
|
19
|
-
- Any manual step that touches the Salesforce org
|
|
20
|
-
|
|
21
|
-
## Canonical Sequence (from setup-cli.mjs)
|
|
22
|
-
|
|
23
|
-
Execute steps in this **exact order**. Steps marked **(SF)** perform a Salesforce API or CLI interaction.
|
|
24
|
-
|
|
25
|
-
### Step 1: Login — org authentication
|
|
26
|
-
|
|
27
|
-
| Action | Salesforce interaction? | Command |
|
|
28
|
-
|--------|-------------------------|---------|
|
|
29
|
-
| Check if org is connected | **(SF)** | `sf org display --target-org <alias> --json` |
|
|
30
|
-
| If not connected: authenticate | **(SF)** | `sf org login web --alias <alias>` |
|
|
31
|
-
|
|
32
|
-
- **Run when:** Org is not connected. **Omit when:** Org is already authenticated (check via `sf org display`).
|
|
33
|
-
- All subsequent steps require an authenticated org.
|
|
34
|
-
|
|
35
|
-
### Step 2: Webapp build — pre-deploy (required for entity deployment)
|
|
36
|
-
|
|
37
|
-
| Action | Salesforce interaction? | Command |
|
|
38
|
-
|--------|-------------------------|---------|
|
|
39
|
-
| Install dependencies | No | `npm install` (in each webapp dir) |
|
|
40
|
-
| Build web app | No | `npm run build` (in each webapp dir) |
|
|
41
|
-
|
|
42
|
-
- Produces `dist/` so `sf project deploy start` can deploy web application entities. Run **before** deploy when deploying web apps.
|
|
43
|
-
- **Run when:** Deploying web apps AND (`dist/` does not exist OR webapp source has changed since last build). **Omit when:** Not deploying, or `dist/` is current and no source changes.
|
|
44
|
-
|
|
45
|
-
### Step 3: Deploy metadata
|
|
46
|
-
|
|
47
|
-
| Action | Salesforce interaction? | Command |
|
|
48
|
-
|--------|-------------------------|---------|
|
|
49
|
-
| Deploy metadata | **(SF)** | See below |
|
|
50
|
-
|
|
51
|
-
**Check for a manifest (package.xml) first.** Only use it if present:
|
|
52
|
-
|
|
53
|
-
- **If `manifest/package.xml` (or `package.xml`) exists:** Deploy using the manifest:
|
|
54
|
-
```bash
|
|
55
|
-
sf project deploy start --manifest manifest/package.xml --target-org <alias>
|
|
56
|
-
```
|
|
57
|
-
- **If no manifest exists:** Deploy all metadata from the project (packageDirectories in sfdx-project.json):
|
|
58
|
-
```bash
|
|
59
|
-
sf project deploy start --target-org <alias>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Do not assume a manifest exists. Check the project root and common locations (e.g., `manifest/`, `config/`) before choosing the deploy command.
|
|
63
|
-
|
|
64
|
-
- Deploys objects, layouts, permission sets, Apex classes, web applications, and all other metadata.
|
|
65
|
-
- **Must complete successfully before schema fetch** — the schema reflects org state; custom objects/fields appear only after deployment.
|
|
66
|
-
- **Run when:** Metadata has changed since last deploy, or never deployed. **Omit when:** No metadata changes and deploy has already run successfully.
|
|
67
|
-
|
|
68
|
-
### Step 4: Post-deployment configuration — assign permissions and configure
|
|
69
|
-
|
|
70
|
-
| Action | Salesforce interaction? | Command |
|
|
71
|
-
|--------|-------------------------|---------|
|
|
72
|
-
| Assign permission set or group | **(SF)** | `sf org assign permset --name <name> --target-org <alias>` (works for both permsets and permset groups) |
|
|
73
|
-
| Assign profile to user | **(SF)** | `sf data update record` or at user creation |
|
|
74
|
-
| Other post-deploy config | **(SF)** | Varies (e.g., named credentials, connected apps, custom settings) |
|
|
75
|
-
|
|
76
|
-
**Example commands:**
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
# Permission set (assigns to default user of target org)
|
|
80
|
-
sf org assign permset --name Property_Management_Access --target-org myorg
|
|
81
|
-
|
|
82
|
-
# Permission set group (same command; pass the group name)
|
|
83
|
-
sf org assign permset --name My_Permset_Group --target-org myorg
|
|
84
|
-
|
|
85
|
-
# Assign to a specific user
|
|
86
|
-
sf org assign permset --name Property_Management_Access --target-org myorg --on-behalf-of user@example.com
|
|
87
|
-
|
|
88
|
-
# Profile — update existing user's profile (requires ProfileId and User Id)
|
|
89
|
-
sf data update record --sobject User --record-id <userId> --values "ProfileId=<profileId>" --target-org myorg
|
|
90
|
-
|
|
91
|
-
# Profile — get ProfileId first
|
|
92
|
-
sf data query --query "SELECT Id, Name FROM Profile WHERE Name='Standard User'" --target-org myorg
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
- **Deploying does not mean assigning.** Even after permission sets, permission set groups, and profiles are deployed to the org, they must be explicitly assigned or configured for users. Deployment makes them available; assignment/configuration grants access.
|
|
96
|
-
- **Permission sets** — Assign to users so they have access to custom objects and fields. Required for GraphQL introspection to return the correct schema.
|
|
97
|
-
- **Permission set groups** — Assign to users when using grouped permission sets.
|
|
98
|
-
- **Profiles** — Ensure users have the correct profile; profile assignment may be done at user creation or via Setup.
|
|
99
|
-
- **Other post-deploy configuration** — Named credentials, connected apps, custom settings, flow activation, and any metadata that requires manual configuration after deploy.
|
|
100
|
-
- All of the above must exist in the org (deployed in Step 3).
|
|
101
|
-
- **Run when:** Any permission set, permission set group, profile, or other post-deploy config was deployed or changed and not yet assigned/configured. **Omit when:** All required assignments and configuration are already in place.
|
|
102
|
-
|
|
103
|
-
**Proactive behavior:** After a successful deploy, discover permission sets in the project (e.g., `force-app/main/default/permissionsets/*.permissionset-meta.xml`) and assign each one. Extract the API name from the filename (e.g., `Property_Management_Access.permissionset-meta.xml` → `Property_Management_Access`). If the user has not explicitly requested a full setup, you may ask: "Do you want me to assign the permission sets to your org?" — but do not skip this step silently; either run it or ask.
|
|
104
|
-
|
|
105
|
-
### Step 5: Data — prepare and import (optional)
|
|
106
|
-
|
|
107
|
-
| Action | Salesforce interaction? | Command |
|
|
108
|
-
|--------|-------------------------|---------|
|
|
109
|
-
| Prepare unique fields | No | `node scripts/prepare-import-unique-fields.js --data-dir <dataDir>` |
|
|
110
|
-
| Clean existing records | **(SF)** | `sf apex run --target-org <alias> --file <apex>` (per sobject, reverse plan order) |
|
|
111
|
-
| Import records | **(SF)** | `sf apex run --target-org <alias> --file <apex>` (per batch) |
|
|
112
|
-
|
|
113
|
-
- Only runs if `data/data-plan.json` and `data/` exist.
|
|
114
|
-
- Delete runs in reverse plan order (children before parents).
|
|
115
|
-
- Import uses Anonymous Apex with `Database.DMLOptions.duplicateRuleHeader.allowSave = true`.
|
|
116
|
-
- **Run when:** Data plan exists AND (never imported OR data files or plan changed). **Omit when:** No data plan, or data already imported and unchanged.
|
|
117
|
-
|
|
118
|
-
**Proactive behavior:** If `data/data-plan.json` and `data/` exist, you MUST ask the user: "Do you want me to import the sample data now? This will prepare unique fields, optionally clean existing records, and import data. Reply yes to proceed." Do not skip this step silently; either run it (after confirmation) or ask. Never import or clean without explicit user confirmation.
|
|
119
|
-
|
|
120
|
-
### Step 6: GraphQL schema and codegen
|
|
121
|
-
|
|
122
|
-
| Action | Salesforce interaction? | Command |
|
|
123
|
-
|--------|-------------------------|---------|
|
|
124
|
-
| Install webapp deps | No | `npm install` (in webapp dir) |
|
|
125
|
-
| Set default org | **(SF)** | `sf config set target-org <alias> --global` |
|
|
126
|
-
| Fetch schema (introspection) | **(SF)** | `npm run graphql:schema` (from webapp dir) |
|
|
127
|
-
| Generate types | No | `npm run graphql:codegen` (from webapp dir) |
|
|
128
|
-
|
|
129
|
-
- `graphql:schema` performs GraphQL introspection against the org — a **Salesforce API call**.
|
|
130
|
-
- Schema is written to `schema.graphql` at the SFDX project root.
|
|
131
|
-
- Codegen reads the schema file locally; no Salesforce interaction.
|
|
132
|
-
- **Run when:** Schema does not exist, OR metadata was deployed/changed since last schema fetch, OR permissions or post-deploy config was assigned since last schema fetch. **Omit when:** Schema exists and is current relative to org state.
|
|
133
|
-
|
|
134
|
-
### Step 7: Webapp build (if not done in Step 2)
|
|
135
|
-
|
|
136
|
-
| Action | Salesforce interaction? | Command |
|
|
137
|
-
|--------|-------------------------|---------|
|
|
138
|
-
| Build web app | No | `npm run build` (in webapp dir) |
|
|
139
|
-
|
|
140
|
-
- **Run when:** Build is needed (e.g., for dev server or deploy) AND (`dist/` does not exist OR webapp source has changed since last build). **Omit when:** `dist/` is current and no build needed.
|
|
141
|
-
|
|
142
|
-
### Step 8: Dev server (optional)
|
|
143
|
-
|
|
144
|
-
| Action | Salesforce interaction? | Command |
|
|
145
|
-
|--------|-------------------------|---------|
|
|
146
|
-
| Launch dev server | No | `npm run dev` (in webapp dir) |
|
|
147
|
-
|
|
148
|
-
- **Run when:** User requests to launch the dev server. **Omit when:** Not requested.
|
|
149
|
-
|
|
150
|
-
## Summary: All Salesforce Interactions (in order)
|
|
151
|
-
|
|
152
|
-
1. `sf org display` — check org connection
|
|
153
|
-
2. `sf org login web` — authenticate (if needed)
|
|
154
|
-
3. `sf project deploy start` — deploy metadata
|
|
155
|
-
4. `sf org assign permset` (permsets and permset groups) / profile assignment / other post-deploy config — assign permissions and configure
|
|
156
|
-
5. `sf apex run` — delete existing data (if data plan)
|
|
157
|
-
6. `sf apex run` — import data (if data plan)
|
|
158
|
-
7. `sf config set target-org` — set default org for schema
|
|
159
|
-
8. `npm run graphql:schema` — GraphQL introspection (Salesforce API)
|
|
160
|
-
|
|
161
|
-
## Post-Deploy Checklist (MUST NOT SKIP)
|
|
162
|
-
|
|
163
|
-
After **every successful metadata deploy**, the agent MUST address these before considering the task complete:
|
|
164
|
-
|
|
165
|
-
1. **Permission sets** — Discover `force-app/main/default/permissionsets/*.permissionset-meta.xml`, extract API names, and assign each via `sf org assign permset --name <name> --target-org <alias>`. If unsure, ask: "Do you want me to assign the permission sets (e.g., Property_Management_Access, Tenant_Maintenance_Access) to your org?"
|
|
166
|
-
2. **Data import** — If `data/data-plan.json` exists, ask: "Do you want me to import the sample data now? Reply yes to proceed." Do not import without confirmation.
|
|
167
|
-
3. **Schema refetch** — Run `npm run graphql:schema` and `npm run graphql:codegen` from the webapp dir (required after deploy).
|
|
168
|
-
|
|
169
|
-
Do not silently skip permission set assignment or data import. Either run them or ask the user.
|
|
170
|
-
|
|
171
|
-
## Agent Decision Criteria
|
|
172
|
-
|
|
173
|
-
Evaluate each step before running it. Ask:
|
|
174
|
-
|
|
175
|
-
- **Has this step ever run before?** If not, it is likely needed.
|
|
176
|
-
- **Have changes been made that require this step?** (e.g., metadata edits → deploy; deploy → schema refetch)
|
|
177
|
-
- **Is the current state sufficient?** (e.g., org connected, schema exists and is current, permissions and post-deploy config assigned)
|
|
178
|
-
|
|
179
|
-
Do not rely on CLI flags. Decide based on project state and what has changed.
|
|
180
|
-
|
|
181
|
-
## Evaluation: When Each Step Touches Salesforce
|
|
182
|
-
|
|
183
|
-
| Step | Salesforce interaction | Run when |
|
|
184
|
-
|------|------------------------|----------|
|
|
185
|
-
| 1. Login | Yes | Org not connected |
|
|
186
|
-
| 2. Webapp build | No | Deploying web apps AND dist missing or source changed |
|
|
187
|
-
| 3. Deploy | Yes | Metadata changed or never deployed |
|
|
188
|
-
| 4. Post-deploy config | Yes | Permission sets, permset groups, profiles, or other config deployed/changed and not assigned |
|
|
189
|
-
| 5. Data | Yes | Data plan exists AND (never imported OR data changed) |
|
|
190
|
-
| 6. GraphQL | Yes (schema only) | Schema missing or metadata/permissions changed since last fetch |
|
|
191
|
-
| 7. Webapp build | No | Build needed AND dist missing or source changed |
|
|
192
|
-
| 8. Dev | No | User requests dev server |
|
|
193
|
-
|
|
194
|
-
**Critical rule:** Steps 3 (deploy) and 4 (post-deploy config) must complete **before** step 6 (graphql:schema). The schema reflects the org state; running introspection too early yields an incomplete schema.
|
|
195
|
-
|
|
196
|
-
## Schema Refetch Rule (CRITICAL)
|
|
197
|
-
|
|
198
|
-
**After any metadata deployment**, you MUST re-run schema fetch and codegen:
|
|
199
|
-
|
|
200
|
-
- New custom objects
|
|
201
|
-
- New custom fields
|
|
202
|
-
- New or updated permission sets
|
|
203
|
-
- Any change to metadata that affects the GraphQL schema
|
|
204
|
-
|
|
205
|
-
```bash
|
|
206
|
-
# From webapp dir (force-app/main/default/webapplications/<appName>/)
|
|
207
|
-
npm run graphql:schema
|
|
208
|
-
npm run graphql:codegen
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
Do **not** assume the existing `schema.graphql` is current after metadata changes.
|
|
212
|
-
|
|
213
|
-
## One-Command Setup (Reference)
|
|
214
|
-
|
|
215
|
-
The project includes `scripts/setup-cli.mjs` which runs this sequence in batch. Use it when the user wants a full setup; otherwise, follow this skill and run only the steps that are needed based on current state.
|
|
216
|
-
|
|
217
|
-
## Prohibited Actions
|
|
218
|
-
|
|
219
|
-
- **Do not** run `npm run graphql:schema` before metadata is deployed — the schema will not include custom objects/fields
|
|
220
|
-
- **Do not** skip schema refetch after deploying new metadata — types and queries will be out of sync
|
|
221
|
-
- **Do not** assign permissions or configure before deploying — permission sets, permset groups, and profiles must exist in the org first
|
|
222
|
-
- **Do not** run GraphQL introspection before assigning permissions — the user may lack FLS for custom fields
|
|
223
|
-
|
|
224
|
-
## Related Skills
|
|
225
|
-
|
|
226
|
-
- **using-salesforce-data** — Full data access workflow (GraphQL queries/mutations, REST APIs, schema exploration, webapp integration)
|
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: implementing-file-upload
|
|
3
|
-
description: Add file upload functionality to React webapps with progress tracking and Salesforce ContentVersion integration. Use when the user wants to upload files, attach documents, handle file input, create file dropzones, track upload progress, or link files to Salesforce records. This feature provides programmatic APIs ONLY — no components or hooks are exported. Build your own custom UI using the upload() API. ALWAYS use this feature instead of building file upload from scratch with FormData or XHR.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# File Upload API (workflow)
|
|
7
|
-
|
|
8
|
-
When the user wants file upload functionality in a React webapp, follow this workflow. This feature provides **APIs only** — you must build the UI components yourself using the provided APIs.
|
|
9
|
-
|
|
10
|
-
## CRITICAL: This is an API-only package
|
|
11
|
-
|
|
12
|
-
The package exports **programmatic APIs**, not React components or hooks. You will:
|
|
13
|
-
|
|
14
|
-
- Use the `upload()` function to handle file uploads with progress tracking
|
|
15
|
-
- Build your own custom UI (file input, dropzone, progress bars, etc.)
|
|
16
|
-
- Track upload progress through the `onProgress` callback
|
|
17
|
-
|
|
18
|
-
**Do NOT:**
|
|
19
|
-
|
|
20
|
-
- Expect pre-built components like `<FileUpload />` — they are not exported
|
|
21
|
-
- Try to import React hooks like `useFileUpload` — they are not exported
|
|
22
|
-
- Look for dropzone components — they are not exported
|
|
23
|
-
|
|
24
|
-
The source code contains reference components for demonstration, but they are **not available** as imports. Use them as examples to build your own UI.
|
|
25
|
-
|
|
26
|
-
## 1. Install the package
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npm install @salesforce/webapp-template-feature-react-file-upload-experimental
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Dependencies are automatically installed:
|
|
33
|
-
|
|
34
|
-
- `@salesforce/webapp-experimental` (API client)
|
|
35
|
-
- `@salesforce/sdk-data` (data SDK)
|
|
36
|
-
|
|
37
|
-
## 2. Understand the three upload patterns
|
|
38
|
-
|
|
39
|
-
### Pattern A: Basic upload (no record linking)
|
|
40
|
-
|
|
41
|
-
Upload files to Salesforce and get back `contentBodyId` for each file. No ContentVersion record is created.
|
|
42
|
-
|
|
43
|
-
**When to use:**
|
|
44
|
-
|
|
45
|
-
- User wants to upload files first, then create/link them to a record later
|
|
46
|
-
- Building a multi-step form where the record doesn't exist yet
|
|
47
|
-
- Deferred record linking scenarios
|
|
48
|
-
|
|
49
|
-
```tsx
|
|
50
|
-
import { upload } from "@salesforce/webapp-template-feature-react-file-upload-experimental";
|
|
51
|
-
|
|
52
|
-
const results = await upload({
|
|
53
|
-
files: [file1, file2],
|
|
54
|
-
onProgress: (progress) => {
|
|
55
|
-
console.log(`${progress.fileName}: ${progress.status} - ${progress.progress}%`);
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// results[0].contentBodyId: "069..." (always available)
|
|
60
|
-
// results[0].contentVersionId: undefined (no record linked)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Pattern B: Upload with immediate record linking
|
|
64
|
-
|
|
65
|
-
Upload files and immediately link them to an existing Salesforce record by creating ContentVersion records.
|
|
66
|
-
|
|
67
|
-
**When to use:**
|
|
68
|
-
|
|
69
|
-
- Record already exists (Account, Opportunity, Case, etc.)
|
|
70
|
-
- User wants files immediately attached to the record
|
|
71
|
-
- Direct upload-and-attach scenarios
|
|
72
|
-
|
|
73
|
-
```tsx
|
|
74
|
-
import { upload } from "@salesforce/webapp-template-feature-react-file-upload-experimental";
|
|
75
|
-
|
|
76
|
-
const results = await upload({
|
|
77
|
-
files: [file1, file2],
|
|
78
|
-
recordId: "001xx000000yyyy", // Existing record ID
|
|
79
|
-
onProgress: (progress) => {
|
|
80
|
-
console.log(`${progress.fileName}: ${progress.status} - ${progress.progress}%`);
|
|
81
|
-
},
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
// results[0].contentBodyId: "069..." (always available)
|
|
85
|
-
// results[0].contentVersionId: "068..." (linked to record)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Pattern C: Deferred record linking (record creation flow)
|
|
89
|
-
|
|
90
|
-
Upload files without a record, then link them after the record is created.
|
|
91
|
-
|
|
92
|
-
**When to use:**
|
|
93
|
-
|
|
94
|
-
- Building a "create record with attachments" form
|
|
95
|
-
- Record doesn't exist until form submission
|
|
96
|
-
- Need to upload files before knowing the final record ID
|
|
97
|
-
|
|
98
|
-
```tsx
|
|
99
|
-
import {
|
|
100
|
-
upload,
|
|
101
|
-
createContentVersion,
|
|
102
|
-
} from "@salesforce/webapp-template-feature-react-file-upload-experimental";
|
|
103
|
-
|
|
104
|
-
// Step 1: Upload files (no recordId)
|
|
105
|
-
const uploadResults = await upload({
|
|
106
|
-
files: [file1, file2],
|
|
107
|
-
onProgress: (progress) => console.log(progress),
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
// Step 2: Create the record
|
|
111
|
-
const newRecordId = await createRecord(formData);
|
|
112
|
-
|
|
113
|
-
// Step 3: Link uploaded files to the new record
|
|
114
|
-
for (const file of uploadResults) {
|
|
115
|
-
const contentVersionId = await createContentVersion(
|
|
116
|
-
new File([""], file.fileName),
|
|
117
|
-
file.contentBodyId,
|
|
118
|
-
newRecordId,
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## 3. Build your custom UI
|
|
124
|
-
|
|
125
|
-
The package provides the backend — you build the frontend. Here's a minimal example:
|
|
126
|
-
|
|
127
|
-
```tsx
|
|
128
|
-
import {
|
|
129
|
-
upload,
|
|
130
|
-
type FileUploadProgress,
|
|
131
|
-
} from "@salesforce/webapp-template-feature-react-file-upload-experimental";
|
|
132
|
-
import { useState } from "react";
|
|
133
|
-
|
|
134
|
-
function CustomFileUpload({ recordId }: { recordId?: string }) {
|
|
135
|
-
const [progress, setProgress] = useState<Map<string, FileUploadProgress>>(new Map());
|
|
136
|
-
|
|
137
|
-
const handleFileSelect = async (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
138
|
-
const files = Array.from(event.target.files || []);
|
|
139
|
-
|
|
140
|
-
await upload({
|
|
141
|
-
files,
|
|
142
|
-
recordId,
|
|
143
|
-
onProgress: (fileProgress) => {
|
|
144
|
-
setProgress((prev) => new Map(prev).set(fileProgress.fileName, fileProgress));
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return (
|
|
150
|
-
<div>
|
|
151
|
-
<input type="file" multiple onChange={handleFileSelect} />
|
|
152
|
-
|
|
153
|
-
{Array.from(progress.entries()).map(([fileName, fileProgress]) => (
|
|
154
|
-
<div key={fileName}>
|
|
155
|
-
{fileName}: {fileProgress.status} - {fileProgress.progress}%
|
|
156
|
-
{fileProgress.error && <span>Error: {fileProgress.error}</span>}
|
|
157
|
-
</div>
|
|
158
|
-
))}
|
|
159
|
-
</div>
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
## 4. Track upload progress
|
|
165
|
-
|
|
166
|
-
The `onProgress` callback fires multiple times for each file as it moves through stages:
|
|
167
|
-
|
|
168
|
-
| Status | When | Progress Value |
|
|
169
|
-
| -------------- | ---------------------------------------------- | -------------------- |
|
|
170
|
-
| `"pending"` | File queued for upload | `0` |
|
|
171
|
-
| `"uploading"` | Upload in progress (XHR) | `0-100` (percentage) |
|
|
172
|
-
| `"processing"` | Creating ContentVersion (if recordId provided) | `0` |
|
|
173
|
-
| `"success"` | Upload complete | `100` |
|
|
174
|
-
| `"error"` | Upload failed | `0` |
|
|
175
|
-
|
|
176
|
-
**Always provide visual feedback:**
|
|
177
|
-
|
|
178
|
-
- Show file name
|
|
179
|
-
- Display current status
|
|
180
|
-
- Render progress bar for "uploading" status
|
|
181
|
-
- Show error message if status is "error"
|
|
182
|
-
|
|
183
|
-
## 5. Cancel uploads (optional)
|
|
184
|
-
|
|
185
|
-
Use an `AbortController` to allow users to cancel uploads:
|
|
186
|
-
|
|
187
|
-
```tsx
|
|
188
|
-
const abortController = new AbortController();
|
|
189
|
-
|
|
190
|
-
const handleUpload = async (files: File[]) => {
|
|
191
|
-
try {
|
|
192
|
-
await upload({
|
|
193
|
-
files,
|
|
194
|
-
signal: abortController.signal,
|
|
195
|
-
onProgress: (progress) => console.log(progress),
|
|
196
|
-
});
|
|
197
|
-
} catch (error) {
|
|
198
|
-
console.error("Upload cancelled or failed:", error);
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
const cancelUpload = () => {
|
|
203
|
-
abortController.abort();
|
|
204
|
-
};
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## 6. Link to current user (special case)
|
|
208
|
-
|
|
209
|
-
If the user wants to upload files to their own profile or personal library:
|
|
210
|
-
|
|
211
|
-
```tsx
|
|
212
|
-
import {
|
|
213
|
-
upload,
|
|
214
|
-
getCurrentUserId,
|
|
215
|
-
} from "@salesforce/webapp-template-feature-react-file-upload-experimental";
|
|
216
|
-
|
|
217
|
-
const userId = await getCurrentUserId();
|
|
218
|
-
await upload({ files, recordId: userId });
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
## API Reference
|
|
222
|
-
|
|
223
|
-
### upload(options)
|
|
224
|
-
|
|
225
|
-
Main upload API that handles complete flow with progress tracking.
|
|
226
|
-
|
|
227
|
-
```typescript
|
|
228
|
-
interface UploadOptions {
|
|
229
|
-
files: File[];
|
|
230
|
-
recordId?: string | null; // If provided, creates ContentVersion
|
|
231
|
-
onProgress?: (progress: FileUploadProgress) => void;
|
|
232
|
-
signal?: AbortSignal; // Optional cancellation
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
interface FileUploadProgress {
|
|
236
|
-
fileName: string;
|
|
237
|
-
status: "pending" | "uploading" | "processing" | "success" | "error";
|
|
238
|
-
progress: number; // 0-100 for uploading, 0 for other states
|
|
239
|
-
error?: string;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface FileUploadResult {
|
|
243
|
-
fileName: string;
|
|
244
|
-
size: number;
|
|
245
|
-
contentBodyId: string; // Always available
|
|
246
|
-
contentVersionId?: string; // Only if recordId was provided
|
|
247
|
-
}
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
**Returns:** `Promise<FileUploadResult[]>`
|
|
251
|
-
|
|
252
|
-
### createContentVersion(file, contentBodyId, recordId)
|
|
253
|
-
|
|
254
|
-
Manually create a ContentVersion record from a previously uploaded file.
|
|
255
|
-
|
|
256
|
-
```typescript
|
|
257
|
-
async function createContentVersion(
|
|
258
|
-
file: File,
|
|
259
|
-
contentBodyId: string,
|
|
260
|
-
recordId: string,
|
|
261
|
-
): Promise<string | undefined>;
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
**Parameters:**
|
|
265
|
-
|
|
266
|
-
- `file` — File object (used for metadata like name)
|
|
267
|
-
- `contentBodyId` — ContentBody ID from previous upload
|
|
268
|
-
- `recordId` — Record ID for FirstPublishLocationId
|
|
269
|
-
|
|
270
|
-
**Returns:** ContentVersion ID if successful
|
|
271
|
-
|
|
272
|
-
### getCurrentUserId()
|
|
273
|
-
|
|
274
|
-
Get the current user's Salesforce ID.
|
|
275
|
-
|
|
276
|
-
```typescript
|
|
277
|
-
async function getCurrentUserId(): Promise<string>;
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
**Returns:** Current user ID
|
|
281
|
-
|
|
282
|
-
## Common UI patterns
|
|
283
|
-
|
|
284
|
-
### File input with button
|
|
285
|
-
|
|
286
|
-
```tsx
|
|
287
|
-
<input type="file" multiple accept=".pdf,.doc,.docx,.jpg,.png" onChange={handleFileSelect} />
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### Drag-and-drop zone
|
|
291
|
-
|
|
292
|
-
Build your own dropzone using native events:
|
|
293
|
-
|
|
294
|
-
```tsx
|
|
295
|
-
function DropZone({ onDrop }: { onDrop: (files: File[]) => void }) {
|
|
296
|
-
const handleDrop = (e: React.DragEvent) => {
|
|
297
|
-
e.preventDefault();
|
|
298
|
-
const files = Array.from(e.dataTransfer.files);
|
|
299
|
-
onDrop(files);
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
return (
|
|
303
|
-
<div
|
|
304
|
-
onDrop={handleDrop}
|
|
305
|
-
onDragOver={(e) => e.preventDefault()}
|
|
306
|
-
style={{ border: "2px dashed #ccc", padding: "2rem" }}
|
|
307
|
-
>
|
|
308
|
-
Drop files here
|
|
309
|
-
</div>
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
### Progress bar
|
|
315
|
-
|
|
316
|
-
```tsx
|
|
317
|
-
{
|
|
318
|
-
progress.status === "uploading" && (
|
|
319
|
-
<div style={{ width: "100%", background: "#eee" }}>
|
|
320
|
-
<div
|
|
321
|
-
style={{
|
|
322
|
-
width: `${progress.progress}%`,
|
|
323
|
-
background: "#0176d3",
|
|
324
|
-
height: "8px",
|
|
325
|
-
}}
|
|
326
|
-
/>
|
|
327
|
-
</div>
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
## Decision tree for agents
|
|
333
|
-
|
|
334
|
-
**User asks for file upload functionality:**
|
|
335
|
-
|
|
336
|
-
1. **Ask about record context:**
|
|
337
|
-
- "Do you want to link uploaded files to a specific record, or upload them first and link later?"
|
|
338
|
-
|
|
339
|
-
2. **Based on response:**
|
|
340
|
-
- **Link to existing record** → Use Pattern B with `recordId`
|
|
341
|
-
- **Upload first, link later** → Use Pattern A (no recordId), then Pattern C for linking
|
|
342
|
-
- **Link to current user** → Use Pattern B with `getCurrentUserId()`
|
|
343
|
-
|
|
344
|
-
3. **Build the UI:**
|
|
345
|
-
- Create file input or dropzone (not provided by package)
|
|
346
|
-
- Add progress display for each file (status + progress bar)
|
|
347
|
-
- Handle errors in the UI
|
|
348
|
-
|
|
349
|
-
4. **Test the implementation:**
|
|
350
|
-
- Verify progress callbacks fire correctly
|
|
351
|
-
- Check that `contentBodyId` is returned
|
|
352
|
-
- If `recordId` was provided, verify `contentVersionId` is returned
|
|
353
|
-
|
|
354
|
-
## Reference implementation
|
|
355
|
-
|
|
356
|
-
The package includes a reference implementation in `src/features/fileupload/` with:
|
|
357
|
-
|
|
358
|
-
- `FileUpload.tsx` — Complete component with dropzone and dialog
|
|
359
|
-
- `FileUploadDialog.tsx` — Progress tracking dialog
|
|
360
|
-
- `FileUploadDropZone.tsx` — Drag-and-drop zone
|
|
361
|
-
- `useFileUpload.ts` — React hook for state management
|
|
362
|
-
|
|
363
|
-
**These are NOT exported** but can be viewed as examples. Read the source files to understand patterns for building your own UI.
|
|
364
|
-
|
|
365
|
-
## Troubleshooting
|
|
366
|
-
|
|
367
|
-
**Upload fails with CORS error:**
|
|
368
|
-
|
|
369
|
-
- Ensure the webapp is properly deployed to Salesforce or running on `localhost`
|
|
370
|
-
- Check that the org allows the origin in CORS settings
|
|
371
|
-
|
|
372
|
-
**No progress updates:**
|
|
373
|
-
|
|
374
|
-
- Verify `onProgress` callback is provided
|
|
375
|
-
- Check that the callback function updates React state correctly
|
|
376
|
-
|
|
377
|
-
**ContentVersion not created:**
|
|
378
|
-
|
|
379
|
-
- Verify `recordId` is provided to `upload()` function
|
|
380
|
-
- Check that the record ID is valid and exists in the org
|
|
381
|
-
- Ensure user has permissions to create ContentVersion records
|
|
382
|
-
|
|
383
|
-
**Files upload but don't appear in record:**
|
|
384
|
-
|
|
385
|
-
- Verify `recordId` is correct
|
|
386
|
-
- Check that ContentVersion was created (look for `contentVersionId` in results)
|
|
387
|
-
- Confirm user has access to view files on the record
|
|
388
|
-
|
|
389
|
-
## DO NOT do these things
|
|
390
|
-
|
|
391
|
-
- ❌ Build XHR/fetch upload logic from scratch — use the `upload()` API
|
|
392
|
-
- ❌ Try to import `<FileUpload />` component — it's not exported
|
|
393
|
-
- ❌ Try to import `useFileUpload` hook — it's not exported
|
|
394
|
-
- ❌ Use third-party file upload libraries when this feature exists
|
|
395
|
-
- ❌ Skip progress tracking — always provide user feedback
|
|
396
|
-
- ❌ Ignore errors — always handle and display error messages
|