@zohoim/chat-components 1.1.6 → 1.2.0
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/README.md +4 -0
- package/es/im/IMAttachmentHandler/IMAttachmentHandler.js +2 -2
- package/es/im/IMAttachmentHandler/props/propTypes.js +1 -1
- package/es/im/IMMessage/props/propTypes.js +1 -1
- package/lib/im/IMAttachmentHandler/IMAttachmentHandler.js +2 -2
- package/lib/im/IMAttachmentHandler/props/propTypes.js +1 -1
- package/lib/im/IMMessage/props/propTypes.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ In this Library, We Provide Some Basic Message Components to Build Your Chat App
|
|
|
10
10
|
|
|
11
11
|
> import MessageBubble from '@zohoim/chat-components/es/MessageBubble/MessageBubble’;
|
|
12
12
|
|
|
13
|
+
# 1.2.0
|
|
14
|
+
|
|
15
|
+
- In the chat components, integrationService key name is changed to integrationServiceId
|
|
16
|
+
|
|
13
17
|
# 1.1.6
|
|
14
18
|
|
|
15
19
|
- In the message component, MP3 format support has been added for some integrations.
|
|
@@ -23,7 +23,7 @@ export default function IMAttachmentHandler(props) {
|
|
|
23
23
|
isMultiAttachment,
|
|
24
24
|
onAttach: propOnAttach,
|
|
25
25
|
attachmentType,
|
|
26
|
-
|
|
26
|
+
integrationServiceId
|
|
27
27
|
} = props;
|
|
28
28
|
const {
|
|
29
29
|
attachmentHandlerProps = dummyObject
|
|
@@ -34,7 +34,7 @@ export default function IMAttachmentHandler(props) {
|
|
|
34
34
|
} = useIMAttachmentHandler({
|
|
35
35
|
onAttach: propOnAttach,
|
|
36
36
|
attachmentType,
|
|
37
|
-
|
|
37
|
+
integrationServiceId
|
|
38
38
|
});
|
|
39
39
|
return /*#__PURE__*/React.createElement(AttachmentHandler, _extends({
|
|
40
40
|
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,
|
|
@@ -31,14 +31,14 @@ function IMAttachmentHandler(props) {
|
|
|
31
31
|
isMultiAttachment = props.isMultiAttachment,
|
|
32
32
|
propOnAttach = props.onAttach,
|
|
33
33
|
attachmentType = props.attachmentType,
|
|
34
|
-
|
|
34
|
+
integrationServiceId = props.integrationServiceId;
|
|
35
35
|
var _customProps$attachme = customProps.attachmentHandlerProps,
|
|
36
36
|
attachmentHandlerProps = _customProps$attachme === void 0 ? _emptyConstants.dummyObject : _customProps$attachme;
|
|
37
37
|
|
|
38
38
|
var _useIMAttachmentHandl = (0, _useIMAttachmentHandler["default"])({
|
|
39
39
|
onAttach: propOnAttach,
|
|
40
40
|
attachmentType: attachmentType,
|
|
41
|
-
|
|
41
|
+
integrationServiceId: integrationServiceId
|
|
42
42
|
}),
|
|
43
43
|
onAttach = _useIMAttachmentHandl.onAttach,
|
|
44
44
|
supportedTypes = _useIMAttachmentHandl.supportedTypes;
|
|
@@ -32,7 +32,7 @@ var imAttachmentHandlerPropTypes = {
|
|
|
32
32
|
onAttach: _propTypes["default"].func,
|
|
33
33
|
customProps: _propTypes["default"].object,
|
|
34
34
|
attachmentType: _propTypes["default"].oneOf(['image', 'document', 'documentAndImage']),
|
|
35
|
-
|
|
35
|
+
integrationServiceId: _propTypes["default"].oneOf([WHATSAPP, TELEGRAM, INSTAGRAM, WECHAT, TWILLIO, LINE, IM_TALK, FACEBOOKMESSENGER])
|
|
36
36
|
};
|
|
37
37
|
var _default = imAttachmentHandlerPropTypes;
|
|
38
38
|
exports["default"] = _default;
|
|
@@ -62,7 +62,7 @@ var imMessagePropTypes = {
|
|
|
62
62
|
type: _propTypes["default"].string
|
|
63
63
|
}).isRequired,
|
|
64
64
|
sessionDetails: _propTypes["default"].shape({
|
|
65
|
-
|
|
65
|
+
integrationServiceId: _propTypes["default"].string
|
|
66
66
|
}),
|
|
67
67
|
defaultAvatarUrls: _propTypes["default"].shape({
|
|
68
68
|
autoMessageAvatar: _propTypes["default"].string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Chat Components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@zohodesk/utils": "1.3.14",
|
|
46
46
|
"@zohodesk/variables": "1.0.0",
|
|
47
47
|
"@zohodesk/virtualizer": "1.0.13",
|
|
48
|
-
"@zohoim/chat-components-hooks": "1.
|
|
49
|
-
"@zohoim/chat-components-utils": "1.
|
|
48
|
+
"@zohoim/chat-components-hooks": "1.2.0",
|
|
49
|
+
"@zohoim/chat-components-utils": "1.2.0",
|
|
50
50
|
"html-to-react": "1.7.0 ",
|
|
51
51
|
"jsdom": "23.0.0",
|
|
52
52
|
"react-sortable-hoc": "1.11.0",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"@zohodesk/utils": "1.3.14",
|
|
66
66
|
"@zohodesk/variables": "1.0.0",
|
|
67
67
|
"@zohodesk/virtualizer": "1.0.13",
|
|
68
|
-
"@zohoim/chat-components-hooks": "1.1.
|
|
69
|
-
"@zohoim/chat-components-utils": "1.1.
|
|
68
|
+
"@zohoim/chat-components-hooks": "1.1.6",
|
|
69
|
+
"@zohoim/chat-components-utils": "1.1.6",
|
|
70
70
|
"react-sortable-hoc": "1.11.0",
|
|
71
71
|
"velocity-react": "1.4.3"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "dd1848de47c607ef8f2d570df7e5de340153ddbf"
|
|
74
74
|
}
|