@salesforce/webapp-template-app-react-template-b2x-experimental 1.112.10 → 1.113.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/README.md +9 -9
- package/dist/CHANGELOG.md +8 -0
- package/dist/README.md +14 -14
- package/dist/force-app/main/default/digitalExperienceConfigs/{appreacttemplateb2x1.digitalExperienceConfig → reactexternalapp1.digitalExperienceConfig} +3 -3
- package/dist/force-app/main/default/digitalExperiences/site/{appreacttemplateb2x1/appreacttemplateb2x1.digitalExperience-meta.xml → reactexternalapp1/reactexternalapp1.digitalExperience-meta.xml} +1 -1
- package/dist/force-app/main/default/digitalExperiences/site/{appreacttemplateb2x1/sfdc_cms__site/appreacttemplateb2x1 → reactexternalapp1/sfdc_cms__site/reactexternalapp1}/_meta.json +1 -1
- package/dist/force-app/main/default/digitalExperiences/site/{appreacttemplateb2x1/sfdc_cms__site/appreacttemplateb2x1 → reactexternalapp1/sfdc_cms__site/reactexternalapp1}/content.json +3 -3
- package/dist/force-app/main/default/networks/{appreacttemplateb2x.network → reactexternalapp.network} +4 -4
- package/dist/force-app/main/default/package.xml +4 -4
- package/dist/force-app/main/default/sites/{appreacttemplateb2x.site → reactexternalapp.site} +2 -2
- package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/README.md +2 -2
- package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/package.json +3 -3
- package/dist/force-app/main/default/webapplications/{appreacttemplateb2x/appreacttemplateb2x.webapplication-meta.xml → reactexternalapp/reactexternalapp.webapplication-meta.xml} +1 -1
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +2 -2
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/.forceignore +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/.graphqlrc.yml +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/.prettierignore +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/.prettierrc +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/CHANGELOG.md +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/codegen.yml +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/components.json +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/e2e/app.spec.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/eslint.config.js +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/index.html +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/playwright.config.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/scripts/get-graphql-schema.mjs +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/scripts/rewrite-e2e-assets.mjs +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/api/graphql-operations-types.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/api/graphqlClient.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/app.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/appLayout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/icons/book.svg +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/icons/copy.svg +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/icons/rocket.svg +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/icons/star.svg +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/images/codey-1.png +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/images/codey-2.png +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/images/codey-3.png +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/assets/images/vibe-codey.svg +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/alerts/status-alert.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/layouts/card-layout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/alert.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/badge.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/breadcrumb.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/button.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/calendar.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/card.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/checkbox.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/collapsible.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/datePicker.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/dialog.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/field.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/index.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/input.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/label.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/pagination.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/popover.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/select.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/separator.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/skeleton.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/sonner.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/spinner.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/table.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/components/ui/tabs.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/api/userProfileApi.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/authHelpers.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/authenticationConfig.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/context/AuthContext.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/footers/footer-link.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/forms/auth-form.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/forms/submit-button.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/hooks/form.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/hooks/useCountdownTimer.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/hooks/useRetryWithBackoff.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/layout/card-skeleton.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/layout/centered-page-layout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/layouts/AuthAppLayout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/layouts/authenticationRouteLayout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/layouts/privateRouteLayout.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/ChangePassword.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/ForgotPassword.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/Login.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/Profile.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/Register.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/pages/ResetPassword.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/sessionTimeout/SessionTimeoutValidator.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/sessionTimeout/sessionTimeService.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/sessionTimeout/sessionTimeoutConfig.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/authentication/utils/helpers.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/api/accountSearchService.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/api/query/distinctAccountIndustries.graphql +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/api/query/distinctAccountTypes.graphql +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/api/query/getAccountDetail.graphql +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/api/query/searchAccounts.graphql +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/pages/AccountObjectDetailPage.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/pages/AccountSearch.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/__examples__/pages/Home.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/api/objectSearchService.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/ActiveFilters.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/FilterContext.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/ObjectBreadcrumb.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/PaginationControls.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/SearchBar.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/SortControl.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/BooleanFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/DateFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/DateRangeFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/MultiSelectFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/NumericRangeFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/SearchFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/SelectFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/components/filters/TextFilter.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/hooks/useAsyncData.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/hooks/useCachedAsyncData.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/hooks/useObjectSearchParams.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/utils/debounce.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/utils/fieldUtils.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/utils/filterUtils.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/features/object-search/utils/sortUtils.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/lib/utils.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/navigationMenu.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/pages/Home.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/pages/NotFound.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/router-utils.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/routes.tsx +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/src/styles/global.css +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/tsconfig.json +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/tsconfig.node.json +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/vite-env.d.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/vite.config.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/vitest-env.d.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/vitest.config.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/vitest.setup.ts +0 -0
- /package/dist/force-app/main/default/webapplications/{appreacttemplateb2x → reactexternalapp}/webapplication.json +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React External App
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React external app template — authentication, global search, and site container for Experience Cloud.
|
|
4
4
|
|
|
5
5
|
## In this monorepo
|
|
6
6
|
|
|
@@ -9,15 +9,15 @@ This package is a **template app** in the webapps monorepo. It is built by apply
|
|
|
9
9
|
### Build
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
nx run
|
|
12
|
+
nx run reactexternalapp:build
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Produces an SFDX project in `dist/` with the web app at `dist/force-app/main/default/webapplications/
|
|
15
|
+
Produces an SFDX project in `dist/` with the web app at `dist/force-app/main/default/webapplications/reactexternalapp/`.
|
|
16
16
|
|
|
17
17
|
### Dev server
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
nx run
|
|
20
|
+
nx run reactexternalapp:dev
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Starts the Vite dev server from the built output in `dist/`.
|
|
@@ -25,7 +25,7 @@ Starts the Vite dev server from the built output in `dist/`.
|
|
|
25
25
|
### Watch
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
nx run
|
|
28
|
+
nx run reactexternalapp:watch
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Re-applies patches automatically when source files change.
|
|
@@ -35,8 +35,8 @@ Re-applies patches automatically when source files change.
|
|
|
35
35
|
This package has no dedicated test target. To run tests, build first, then run them from the built web app:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
nx run
|
|
39
|
-
cd dist/force-app/main/default/webapplications/
|
|
38
|
+
nx run reactexternalapp:build
|
|
39
|
+
cd dist/force-app/main/default/webapplications/reactexternalapp && npm install && npm test
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Clean
|
|
@@ -49,4 +49,4 @@ Removes the `dist/` directory.
|
|
|
49
49
|
|
|
50
50
|
---
|
|
51
51
|
|
|
52
|
-
For standalone run, deploy, and test instructions (e.g. after publishing or extracting `dist/`), see the [web app README](dist/force-app/main/default/webapplications/
|
|
52
|
+
For standalone run, deploy, and test instructions (e.g. after publishing or extracting `dist/`), see the [web app README](dist/force-app/main/default/webapplications/reactexternalapp/README.md).
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.113.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.112.10...v1.113.0) (2026-03-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.112.10](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.112.9...v1.112.10) (2026-03-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
package/dist/README.md
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React External App
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An external React starter template for customer-facing apps on the Salesforce platform. Includes authentication, global search, and an Experience Cloud site container. Built with React, Vite, TypeScript, and Tailwind/shadcn.
|
|
4
4
|
|
|
5
5
|
## What's included
|
|
6
6
|
|
|
7
|
-
| Path
|
|
8
|
-
|
|
|
9
|
-
| `force-app/main/default/webapplications/
|
|
10
|
-
| `force-app/main/default/classes/`
|
|
11
|
-
| `force-app/main/default/digitalExperienceConfigs/`
|
|
12
|
-
| `force-app/main/default/digitalExperiences/`
|
|
13
|
-
| `force-app/main/default/networks/`
|
|
14
|
-
| `force-app/main/default/sites/`
|
|
7
|
+
| Path | Description |
|
|
8
|
+
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| `force-app/main/default/webapplications/reactexternalapp/` | React web app (source, config, tests) |
|
|
10
|
+
| `force-app/main/default/classes/` | Apex classes for authentication — `WebAppAuthUtils`, `WebAppChangePassword`, `WebAppForgotPassword`, `WebAppLogin`, `WebAppRegistration` |
|
|
11
|
+
| `force-app/main/default/digitalExperienceConfigs/` | Experience Cloud site configuration |
|
|
12
|
+
| `force-app/main/default/digitalExperiences/` | Experience Cloud site definition |
|
|
13
|
+
| `force-app/main/default/networks/` | Experience Cloud network |
|
|
14
|
+
| `force-app/main/default/sites/` | Salesforce site |
|
|
15
15
|
|
|
16
16
|
## Getting started
|
|
17
17
|
|
|
18
18
|
Navigate to the web app and install dependencies:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
cd force-app/main/default/webapplications/
|
|
21
|
+
cd force-app/main/default/webapplications/reactexternalapp
|
|
22
22
|
npm install
|
|
23
23
|
npm run dev
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Opens at http://localhost:5173 by default. For build and test instructions, see the [web app README](force-app/main/default/webapplications/
|
|
26
|
+
Opens at http://localhost:5173 by default. For build and test instructions, see the [web app README](force-app/main/default/webapplications/reactexternalapp/README.md).
|
|
27
27
|
|
|
28
28
|
## Deploy
|
|
29
29
|
|
|
30
30
|
### Deploy everything (metadata + Experience Cloud site + web app)
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
cd force-app/main/default/webapplications/
|
|
33
|
+
cd force-app/main/default/webapplications/reactexternalapp && npm install && npm run build && cd -
|
|
34
34
|
sf project deploy start --source-dir force-app --target-org <alias>
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### Deploy the web app only
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
cd force-app/main/default/webapplications/
|
|
40
|
+
cd force-app/main/default/webapplications/reactexternalapp && npm install && npm run build && cd -
|
|
41
41
|
sf project deploy start --source-dir force-app/main/default/webapplications --target-org <alias>
|
|
42
42
|
```
|
|
43
43
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<DigitalExperienceConfig xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<label>
|
|
3
|
+
<label>reactexternalapp</label>
|
|
4
4
|
<site>
|
|
5
|
-
<urlPathPrefix>
|
|
5
|
+
<urlPathPrefix>reactexternalapp</urlPathPrefix>
|
|
6
6
|
</site>
|
|
7
|
-
<space>site/
|
|
7
|
+
<space>site/reactexternalapp1</space>
|
|
8
8
|
</DigitalExperienceConfig>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<DigitalExperienceBundle xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
3
|
<digitalExperienceFolderShares/>
|
|
4
|
-
<label>
|
|
4
|
+
<label>reactexternalapp1</label>
|
|
5
5
|
<modules>
|
|
6
6
|
<module>
|
|
7
7
|
<fullyQualifiedName>sfdc_cms__collection</fullyQualifiedName>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "sfdc_cms__site",
|
|
3
|
-
"title": "
|
|
3
|
+
"title": "reactexternalapp",
|
|
4
4
|
"contentBody": {
|
|
5
5
|
"authenticationType": "AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED",
|
|
6
6
|
"appContainer": true,
|
|
7
|
-
"appSpace": "
|
|
7
|
+
"appSpace": "c__reactexternalapp"
|
|
8
8
|
},
|
|
9
|
-
"urlName": "
|
|
9
|
+
"urlName": "reactexternalapp"
|
|
10
10
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<communityRoles/>
|
|
7
7
|
<disableReputationRecordConversations>true</disableReputationRecordConversations>
|
|
8
8
|
<emailSenderAddress>trialorgfarmforu@salesforce.com.invalid.invalid</emailSenderAddress>
|
|
9
|
-
<emailSenderName>
|
|
9
|
+
<emailSenderName>reactexternalapp</emailSenderName>
|
|
10
10
|
<embeddedLoginEnabled>false</embeddedLoginEnabled>
|
|
11
11
|
<enableApexCDNCaching>true</enableApexCDNCaching>
|
|
12
12
|
<enableCustomVFErrorPageOverrides>false</enableCustomVFErrorPageOverrides>
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
<selfRegProfilePageOverrideSetting>Designer</selfRegProfilePageOverrideSetting>
|
|
46
46
|
</networkPageOverrides>
|
|
47
47
|
<newSenderAddress>trialorgfarmforu@salesforce.com</newSenderAddress>
|
|
48
|
-
<picassoSite>
|
|
48
|
+
<picassoSite>reactexternalapp1</picassoSite>
|
|
49
49
|
<selfRegistration>false</selfRegistration>
|
|
50
50
|
<sendWelcomeEmail>true</sendWelcomeEmail>
|
|
51
|
-
<site>
|
|
51
|
+
<site>reactexternalapp</site>
|
|
52
52
|
<siteArchiveStatus>NotArchived</siteArchiveStatus>
|
|
53
53
|
<status>Live</status>
|
|
54
54
|
<tabs>
|
|
55
55
|
<defaultTab>home</defaultTab>
|
|
56
56
|
<standardTab>Chatter</standardTab>
|
|
57
57
|
</tabs>
|
|
58
|
-
<urlPathPrefix>
|
|
58
|
+
<urlPathPrefix>reactexternalappvforcesite</urlPathPrefix>
|
|
59
59
|
<welcomeTemplate>unfiled$public/CommunityWelcomeEmailTemplate</welcomeTemplate>
|
|
60
60
|
</Network>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
3
|
<types>
|
|
4
|
-
<members>
|
|
4
|
+
<members>reactexternalapp</members>
|
|
5
5
|
<name>CustomSite</name>
|
|
6
6
|
</types>
|
|
7
7
|
<types>
|
|
8
|
-
<members>site/
|
|
8
|
+
<members>site/reactexternalapp1</members>
|
|
9
9
|
<name>DigitalExperienceBundle</name>
|
|
10
10
|
</types>
|
|
11
11
|
<types>
|
|
12
|
-
<members>
|
|
12
|
+
<members>reactexternalapp1</members>
|
|
13
13
|
<name>DigitalExperienceConfig</name>
|
|
14
14
|
</types>
|
|
15
15
|
<types>
|
|
16
|
-
<members>
|
|
16
|
+
<members>reactexternalapp</members>
|
|
17
17
|
<name>Network</name>
|
|
18
18
|
</types>
|
|
19
19
|
<version>66.0</version>
|
package/dist/force-app/main/default/sites/{appreacttemplateb2x.site → reactexternalapp.site}
RENAMED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<genericErrorPage>Exception</genericErrorPage>
|
|
20
20
|
<inMaintenancePage>InMaintenance</inMaintenancePage>
|
|
21
21
|
<indexPage>CommunitiesLanding</indexPage>
|
|
22
|
-
<masterLabel>
|
|
22
|
+
<masterLabel>reactexternalapp</masterLabel>
|
|
23
23
|
<redirectToCustomDomain>false</redirectToCustomDomain>
|
|
24
24
|
<referrerPolicyOriginWhenCrossOrigin>true</referrerPolicyOriginWhenCrossOrigin>
|
|
25
25
|
<selfRegPage>CommunitiesSelfReg</selfRegPage>
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
<!-- <siteAdmin>epic.out.d1d3a2d722c8@orgfarm.salesforce.com</siteAdmin> -->
|
|
28
28
|
<!-- <siteGuestRecordDefaultOwner>epic.out.d1d3a2d722c8@orgfarm.salesforce.com</siteGuestRecordDefaultOwner> -->
|
|
29
29
|
<siteType>ChatterNetwork</siteType>
|
|
30
|
-
<urlPathPrefix>
|
|
30
|
+
<urlPathPrefix>reactexternalappvforcesite</urlPathPrefix>
|
|
31
31
|
</CustomSite>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# React External App
|
|
2
2
|
|
|
3
|
-
A
|
|
3
|
+
A React template for customer-facing apps on the Salesforce platform. Includes authentication, global search, and an Experience Cloud site container. Built with React, Vite, TypeScript, and Tailwind/shadcn.
|
|
4
4
|
|
|
5
5
|
For project-level details (metadata, deploy), see the [project README](../../../../../../README.md).
|
|
6
6
|
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@salesforce/sdk-data": "^1.
|
|
19
|
-
"@salesforce/webapp-experimental": "^1.
|
|
18
|
+
"@salesforce/sdk-data": "^1.113.0",
|
|
19
|
+
"@salesforce/webapp-experimental": "^1.113.0",
|
|
20
20
|
"@tailwindcss/vite": "^4.1.17",
|
|
21
21
|
"class-variance-authority": "^0.7.1",
|
|
22
22
|
"clsx": "^2.1.1",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
44
44
|
"@graphql-tools/utils": "^11.0.0",
|
|
45
45
|
"@playwright/test": "^1.49.0",
|
|
46
|
-
"@salesforce/vite-plugin-webapp-experimental": "^1.
|
|
46
|
+
"@salesforce/vite-plugin-webapp-experimental": "^1.113.0",
|
|
47
47
|
"@testing-library/jest-dom": "^6.6.3",
|
|
48
48
|
"@testing-library/react": "^16.1.0",
|
|
49
49
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<WebApplication xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
-
<masterLabel>
|
|
3
|
+
<masterLabel>reactexternalapp</masterLabel>
|
|
4
4
|
<description>A Salesforce web application.</description>
|
|
5
5
|
<isActive>true</isActive>
|
|
6
6
|
<version>1</version>
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.113.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.113.0",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-app-react-template-b2x-experimental",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.113.0",
|
|
4
|
+
"description": "Salesforce React external app template",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
7
7
|
"type": "module",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|