@myun/gimi-chat 0.4.3 → 0.4.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.
|
@@ -6,13 +6,27 @@ import { Provider } from 'react-redux';
|
|
|
6
6
|
var GimiChatComponent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7
7
|
var commonChatRef = React.useRef(null);
|
|
8
8
|
React.useImperativeHandle(ref, function () {
|
|
9
|
-
var _commonChatRef$curren, _commonChatRef$curren2, _commonChatRef$curren3, _commonChatRef$curren4, _commonChatRef$curren5;
|
|
10
9
|
return {
|
|
11
|
-
messageList
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
get messageList() {
|
|
11
|
+
var _commonChatRef$curren;
|
|
12
|
+
return ((_commonChatRef$curren = commonChatRef.current) === null || _commonChatRef$curren === void 0 ? void 0 : _commonChatRef$curren.messageList) || [];
|
|
13
|
+
},
|
|
14
|
+
get agentDetail() {
|
|
15
|
+
var _commonChatRef$curren2;
|
|
16
|
+
return ((_commonChatRef$curren2 = commonChatRef.current) === null || _commonChatRef$curren2 === void 0 ? void 0 : _commonChatRef$curren2.agentDetail) || {};
|
|
17
|
+
},
|
|
18
|
+
get conversationId() {
|
|
19
|
+
var _commonChatRef$curren3;
|
|
20
|
+
return ((_commonChatRef$curren3 = commonChatRef.current) === null || _commonChatRef$curren3 === void 0 ? void 0 : _commonChatRef$curren3.conversationId) || null;
|
|
21
|
+
},
|
|
22
|
+
get inputEditor() {
|
|
23
|
+
var _commonChatRef$curren4;
|
|
24
|
+
return ((_commonChatRef$curren4 = commonChatRef.current) === null || _commonChatRef$curren4 === void 0 ? void 0 : _commonChatRef$curren4.inputEditor) || null;
|
|
25
|
+
},
|
|
26
|
+
get uploadFileList() {
|
|
27
|
+
var _commonChatRef$curren5;
|
|
28
|
+
return ((_commonChatRef$curren5 = commonChatRef.current) === null || _commonChatRef$curren5 === void 0 ? void 0 : _commonChatRef$curren5.uploadFileList) || [];
|
|
29
|
+
}
|
|
16
30
|
};
|
|
17
31
|
});
|
|
18
32
|
return /*#__PURE__*/React.createElement(Provider, {
|