@dotcms/react 0.0.1-beta.7 → 0.0.1-beta.8

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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -53,6 +53,7 @@ The `DotCMSLayoutBody` component renders the layout body for a DotCMS page.
53
53
  - **components**: A mapping of custom components for content rendering.
54
54
  - **mode** (optional): The renderer mode; defaults to `'production'`.
55
55
 
56
+
56
57
  #### Usage
57
58
 
58
59
  ```javascript
@@ -63,6 +64,26 @@ const MyPage = ({ page }) => {
63
64
  };
64
65
  ```
65
66
 
67
+
68
+ ### `BlockEditorRenderer`
69
+
70
+ The `BlockEditorRenderer` component renders the content of a Block Editor Content Type from dotCMS.
71
+ [More information of Block Editor Content Type](https://dev.dotcms.com/docs/block-editor)
72
+
73
+ #### Props
74
+
75
+
76
+ | Prop | Type | Description |
77
+ |------|------|-------------|
78
+ | `blocks` | `Block` | The block editor content structure to render. |
79
+ | `customRenderers` | `CustomRenderer` | Optional custom renderers for specific block types. |
80
+ | `className` | `string` | Optional CSS class name to apply to the container. |
81
+ | `style` | `React.CSSProperties` | Optional inline styles to apply to the container. |
82
+ | `contentlet` | `DotCMSContentlet` | Contentlet object containing the field to be edited. Required when editable is true. |
83
+ | `fieldName` | `string` | Name of the field in the contentlet that contains the block editor content. Required when editable is true. |
84
+
85
+ For a more in-depth explanation of BlockEditorRenderer, visit the [documentation](./src/lib/deprecated/components/BlockEditorRenderer/BlockEditorRenderer.md).
86
+
66
87
  ## Hooks
67
88
 
68
89
  ### `useDotcmsPageContext`
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dotcms/react",
3
- "version": "0.0.1-beta.7",
3
+ "version": "0.0.1-beta.8",
4
4
  "peerDependencies": {
5
5
  "react": ">=18",
6
6
  "react-dom": ">=18",
7
- "@dotcms/client": "0.0.1-beta.7",
8
- "@dotcms/uve": "0.0.1-beta.7",
7
+ "@dotcms/client": "0.0.1-beta.8",
8
+ "@dotcms/uve": "0.0.1-beta.8",
9
9
  "@tinymce/tinymce-react": "^5.1.1"
10
10
  },
11
11
  "description": "Official React Components library to render a dotCMS page.",