@zohoim/chat-components 1.1.2-beta.5 → 1.1.2-beta.6

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.
@@ -47,6 +47,7 @@ export default function ReplyComposer(props) {
47
47
  onFileSubmit: propOnFileSubmit,
48
48
  attachmentPreviewTexts,
49
49
  renderHeader,
50
+ renderBody,
50
51
  renderFooter,
51
52
  renderStencils,
52
53
  getEditorState: propGetEditorState,
@@ -102,6 +103,7 @@ export default function ReplyComposer(props) {
102
103
  isLoaded
103
104
  }, newStyle);
104
105
  const headerElement = useMemo(() => renderHandler(renderHeader)(), [renderHeader]);
106
+ const bodyElement = useMemo(() => renderBody ? renderHandler(renderBody)() : null, [renderBody]);
105
107
  const stencilsElement = useMemo(() => isLoading ? renderHandler(renderStencils)({
106
108
  needFooter
107
109
  }) : null, [renderStencils, needFooter, isLoading]);
@@ -125,7 +127,7 @@ export default function ReplyComposer(props) {
125
127
  onSubmit: onFileSubmit,
126
128
  texts: attachmentPreviewTexts,
127
129
  ...attachmentPreviewCustomProps
128
- }) : null, isLoaded ? headerElement : null, stencilsElement || null, /*#__PURE__*/React.createElement("div", {
130
+ }) : null, isLoaded ? headerElement : null, stencilsElement || null, bodyElement || /*#__PURE__*/React.createElement("div", {
129
131
  className: replEditorWrapperClass
130
132
  }, /*#__PURE__*/React.createElement(ReplyEditor, {
131
133
  content: content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohoim/chat-components",
3
- "version": "1.1.2-beta.5",
3
+ "version": "1.1.2-beta.6",
4
4
  "description": "Chat Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -42,8 +42,8 @@
42
42
  "@zohodesk/utils": "1.3.13",
43
43
  "@zohodesk/variables": "1.0.0",
44
44
  "@zohodesk/virtualizer": "1.0.13",
45
- "@zohoim/chat-components-hooks": "1.1.2-beta.4",
46
- "@zohoim/chat-components-utils": "1.1.2-beta.4"
45
+ "@zohoim/chat-components-hooks": "1.1.2-beta.5",
46
+ "@zohoim/chat-components-utils": "1.1.2-beta.5"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@zohodesk-private/color-variable-preprocessor": "1.2.1",
@@ -52,5 +52,5 @@
52
52
  "jsdom": "23.0.0",
53
53
  "react-to-jsx": "1.3.2"
54
54
  },
55
- "gitHead": "5abd2d04a34198fae69875c11bfcd95a4f47930f"
55
+ "gitHead": "806d1392ade802275f7d0228ffe81a0144cc6e0e"
56
56
  }