@zohoim/chat-components 1.1.2-beta.6 → 1.1.2-beta.7
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.
|
@@ -21,7 +21,7 @@ export default function IMAttachmentHandler(props) {
|
|
|
21
21
|
isMultiAttachment,
|
|
22
22
|
onAttach: propOnAttach,
|
|
23
23
|
attachmentType,
|
|
24
|
-
|
|
24
|
+
integrationServiceId
|
|
25
25
|
} = props;
|
|
26
26
|
const {
|
|
27
27
|
attachmentHandlerProps = dummyObject
|
|
@@ -32,7 +32,7 @@ export default function IMAttachmentHandler(props) {
|
|
|
32
32
|
} = useIMAttachmentHandler({
|
|
33
33
|
onAttach: propOnAttach,
|
|
34
34
|
attachmentType,
|
|
35
|
-
|
|
35
|
+
integrationServiceId
|
|
36
36
|
});
|
|
37
37
|
return /*#__PURE__*/React.createElement(AttachmentHandler, {
|
|
38
38
|
iconName: iconName,
|
|
@@ -23,6 +23,6 @@ const imAttachmentHandlerPropTypes = {
|
|
|
23
23
|
onAttach: PropTypes.func,
|
|
24
24
|
customProps: PropTypes.object,
|
|
25
25
|
attachmentType: PropTypes.oneOf(['image', 'document', 'documentAndImage']),
|
|
26
|
-
|
|
26
|
+
integrationServiceId: PropTypes.oneOf([WHATSAPP, TELEGRAM, INSTAGRAM, WECHAT, TWILLIO, LINE, IM_TALK, FACEBOOKMESSENGER])
|
|
27
27
|
};
|
|
28
28
|
export default imAttachmentHandlerPropTypes;
|
|
@@ -52,7 +52,7 @@ const imMessagePropTypes = {
|
|
|
52
52
|
type: PropTypes.string
|
|
53
53
|
}).isRequired,
|
|
54
54
|
sessionDetails: PropTypes.shape({
|
|
55
|
-
|
|
55
|
+
integrationServiceId: PropTypes.string
|
|
56
56
|
}),
|
|
57
57
|
defaultAvatarUrls: PropTypes.shape({
|
|
58
58
|
autoMessageAvatar: PropTypes.string,
|
|
@@ -47,7 +47,6 @@ export default function ReplyComposer(props) {
|
|
|
47
47
|
onFileSubmit: propOnFileSubmit,
|
|
48
48
|
attachmentPreviewTexts,
|
|
49
49
|
renderHeader,
|
|
50
|
-
renderBody,
|
|
51
50
|
renderFooter,
|
|
52
51
|
renderStencils,
|
|
53
52
|
getEditorState: propGetEditorState,
|
|
@@ -103,7 +102,6 @@ export default function ReplyComposer(props) {
|
|
|
103
102
|
isLoaded
|
|
104
103
|
}, newStyle);
|
|
105
104
|
const headerElement = useMemo(() => renderHandler(renderHeader)(), [renderHeader]);
|
|
106
|
-
const bodyElement = useMemo(() => renderBody ? renderHandler(renderBody)() : null, [renderBody]);
|
|
107
105
|
const stencilsElement = useMemo(() => isLoading ? renderHandler(renderStencils)({
|
|
108
106
|
needFooter
|
|
109
107
|
}) : null, [renderStencils, needFooter, isLoading]);
|
|
@@ -127,7 +125,7 @@ export default function ReplyComposer(props) {
|
|
|
127
125
|
onSubmit: onFileSubmit,
|
|
128
126
|
texts: attachmentPreviewTexts,
|
|
129
127
|
...attachmentPreviewCustomProps
|
|
130
|
-
}) : null, isLoaded ? headerElement : null, stencilsElement || null,
|
|
128
|
+
}) : null, isLoaded ? headerElement : null, stencilsElement || null, /*#__PURE__*/React.createElement("div", {
|
|
131
129
|
className: replEditorWrapperClass
|
|
132
130
|
}, /*#__PURE__*/React.createElement(ReplyEditor, {
|
|
133
131
|
content: content,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "1.1.2-beta.
|
|
3
|
+
"version": "1.1.2-beta.7",
|
|
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.
|
|
46
|
-
"@zohoim/chat-components-utils": "1.1.2-beta.
|
|
45
|
+
"@zohoim/chat-components-hooks": "1.1.2-beta.6",
|
|
46
|
+
"@zohoim/chat-components-utils": "1.1.2-beta.6"
|
|
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": "
|
|
55
|
+
"gitHead": "e43b1e87603a306bbd20a97192e6f5d51e6299ae"
|
|
56
56
|
}
|