@dotcms/react 0.0.1-beta.2 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/next.esm.js
CHANGED
|
@@ -614,28 +614,18 @@ const Row = ({
|
|
|
614
614
|
/**
|
|
615
615
|
* DotCMSLayoutBody component renders the layout body for a DotCMS page.
|
|
616
616
|
*
|
|
617
|
-
* It utilizes the page asset's layout body to render
|
|
618
|
-
* If the layout body does not exist, it renders an error message
|
|
619
|
-
* It also provides context (DotCMSPageContext) with the page asset, optional user components,
|
|
620
|
-
* and the renderer mode to its children.
|
|
617
|
+
* It utilizes the dotCMS page asset's layout body to render the page body.
|
|
618
|
+
* If the layout body does not exist, it renders an error message in the mode is `development`.
|
|
621
619
|
*
|
|
622
620
|
* @public
|
|
623
621
|
* @component
|
|
624
622
|
* @param {Object} props - Component properties.
|
|
625
623
|
* @param {DotCMSPageAsset} props.page - The DotCMS page asset containing the layout information.
|
|
626
|
-
* @param {Record<string, React.ComponentType<DotCMSContentlet>>} [props.components] -
|
|
624
|
+
* @param {Record<string, React.ComponentType<DotCMSContentlet>>} [props.components] - mapping of custom components for content rendering.
|
|
627
625
|
* @param {DotCMSPageRendererMode} [props.mode='production'] - The renderer mode; defaults to 'production'. Alternate modes might trigger different behaviors.
|
|
628
626
|
*
|
|
629
627
|
* @returns {JSX.Element} The rendered DotCMS page body or an error message if the layout body is missing.
|
|
630
628
|
*
|
|
631
|
-
* -------------------------------------------------------------------
|
|
632
|
-
*
|
|
633
|
-
* El componente DotCMSLayoutBody renderiza el cuerpo del layout para una página de DotCMS.
|
|
634
|
-
*
|
|
635
|
-
* Utiliza el "body" del layout del asset de la página para renderizar las filas mediante el componente Row.
|
|
636
|
-
* Si el "body" del layout no está presente, renderiza un mensaje de error.
|
|
637
|
-
* También provee un contexto (DotCMSPageContext) con el asset de la página, componentes de usuario opcionales,
|
|
638
|
-
* y el modo del renderizado para sus componentes hijos.
|
|
639
629
|
*/
|
|
640
630
|
const DotCMSLayoutBody = ({
|
|
641
631
|
page,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/react",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=18",
|
|
6
6
|
"react-dom": ">=18",
|
|
7
|
-
"@dotcms/client": "0.0.1-beta.
|
|
8
|
-
"@dotcms/uve": "0.0.1-beta.
|
|
7
|
+
"@dotcms/client": "0.0.1-beta.4",
|
|
8
|
+
"@dotcms/uve": "0.0.1-beta.4",
|
|
9
9
|
"@tinymce/tinymce-react": "^5.1.1"
|
|
10
10
|
},
|
|
11
11
|
"description": "Official React Components library to render a dotCMS page.",
|
|
@@ -22,6 +22,27 @@
|
|
|
22
22
|
"React",
|
|
23
23
|
"Components"
|
|
24
24
|
],
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": "./package.json",
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./index.esm.js",
|
|
29
|
+
"types": "./index.esm.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./next": {
|
|
32
|
+
"import": "./next.esm.js",
|
|
33
|
+
"types": "./next.esm.d.ts"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"typesVersions": {
|
|
37
|
+
"*": {
|
|
38
|
+
".": [
|
|
39
|
+
"./src/index.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"next": [
|
|
42
|
+
"./src/next.d.ts"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
25
46
|
"author": "dotcms <dev@dotcms.com>",
|
|
26
47
|
"license": "MIT",
|
|
27
48
|
"bugs": {
|
|
@@ -9,28 +9,18 @@ interface DotCMSLayoutBodyProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* DotCMSLayoutBody component renders the layout body for a DotCMS page.
|
|
11
11
|
*
|
|
12
|
-
* It utilizes the page asset's layout body to render
|
|
13
|
-
* If the layout body does not exist, it renders an error message
|
|
14
|
-
* It also provides context (DotCMSPageContext) with the page asset, optional user components,
|
|
15
|
-
* and the renderer mode to its children.
|
|
12
|
+
* It utilizes the dotCMS page asset's layout body to render the page body.
|
|
13
|
+
* If the layout body does not exist, it renders an error message in the mode is `development`.
|
|
16
14
|
*
|
|
17
15
|
* @public
|
|
18
16
|
* @component
|
|
19
17
|
* @param {Object} props - Component properties.
|
|
20
18
|
* @param {DotCMSPageAsset} props.page - The DotCMS page asset containing the layout information.
|
|
21
|
-
* @param {Record<string, React.ComponentType<DotCMSContentlet>>} [props.components] -
|
|
19
|
+
* @param {Record<string, React.ComponentType<DotCMSContentlet>>} [props.components] - mapping of custom components for content rendering.
|
|
22
20
|
* @param {DotCMSPageRendererMode} [props.mode='production'] - The renderer mode; defaults to 'production'. Alternate modes might trigger different behaviors.
|
|
23
21
|
*
|
|
24
22
|
* @returns {JSX.Element} The rendered DotCMS page body or an error message if the layout body is missing.
|
|
25
23
|
*
|
|
26
|
-
* -------------------------------------------------------------------
|
|
27
|
-
*
|
|
28
|
-
* El componente DotCMSLayoutBody renderiza el cuerpo del layout para una página de DotCMS.
|
|
29
|
-
*
|
|
30
|
-
* Utiliza el "body" del layout del asset de la página para renderizar las filas mediante el componente Row.
|
|
31
|
-
* Si el "body" del layout no está presente, renderiza un mensaje de error.
|
|
32
|
-
* También provee un contexto (DotCMSPageContext) con el asset de la página, componentes de usuario opcionales,
|
|
33
|
-
* y el modo del renderizado para sus componentes hijos.
|
|
34
24
|
*/
|
|
35
25
|
export declare const DotCMSLayoutBody: ({ page, components, mode }: DotCMSLayoutBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
26
|
export {};
|