You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'v3' into feature/template-extensibility
* v3:
split ssr build on local (#1155) (#1156)
[V3] Update Page Designer (#1128)
[V3][Hooks Integration 🪝] Replace last of the `getProps` (#1149)
Fix Page Designer ImageWithText Link component (#1092)
# Conflicts:
# packages/template-retail-react-app/app/components/_app-config/index.jsx
Copy file name to clipboardexpand all lines: packages/template-retail-react-app/app/page-designer/README.md
+20-25
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,12 @@
7
7
8
8
---
9
9
10
-
This folder contains React components and utilities that render pages from [Page Designer](https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/content/b2c_commerce/topics/page_designer/b2c_creating_pd_pages.html).
10
+
This folder contains the React components used when rendering the pages from [Page Designer](https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/content/b2c_commerce/topics/page_designer/b2c_creating_pd_pages.html).
11
11
12
12
Use this folder to add React components that can render Page Designer components that have been serialized to JSON.
13
13
14
+
> NOTE: If you are creating components that do not already exist in Page Designer, follow [this](https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp) guide to first create your Page Designer components before creating their matching PWA-Kit React components.
15
+
14
16
This folder includes components for layout and visualization of images, grids, and carousels.
15
17
16
18
**By default, Page Designer integration is not enabled in the Retail React App.** Additionally, to utilize the `shopperExperience`
@@ -20,8 +22,7 @@ for more information on configuring your SLAS client.
20
22
21
23
## Folder Structure
22
24
23
-
-**`/core`** - Base components for rendering: `<Page>`, `<Region>`, and `<Component>`. Use `<Page>` to render Page Designer content. Use `<Region>` and `<Component>` for creating new assets.
24
-
-**`/assets`** - Non-visual components used in Page Designer. Includes `<Image>` and `<ImageWithText>` as well as any other Page Designer assets that you want to use in your PWA-Kit app. If you need to visualize a component, add it here.
25
+
-**`/assets`** - Visual components used in Page Designer. Includes `<Image>` and `<ImageWithText>` as well as any other Page Designer assets that you want to use in your PWA-Kit app. If you need to visualize a component, add it here.
25
26
-**`/layouts`** - Components responsible for layout. Includes various grids and a `<Carousel>` component.
26
27
27
28
## Sample Usage
@@ -32,8 +33,10 @@ Create a new file called `app/pages/page-viewer/index.jsx`, and add the followin
@@ -104,4 +99,4 @@ Open `app/routes.jsx` and add a route for `<PageViewer>`:
104
99
+ },
105
100
```
106
101
107
-
Using the local development server, you can now see Page Designer pages rendered in React.js at `http://localhost:3000/page-viewer/:pageid` by providing their `pageid`.
102
+
Using the local development server, you can now see Page Designer pages rendered in React.js at `http://localhost:3000/page-viewer/:pageid` by providing their `pageid` defined in Business Manager.
0 commit comments