@botpress/webchat 0.2.5 → 0.3.2
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 +31 -0
- package/assets/fonts/roboto/roboto.woff2 +0 -0
- package/assets/fonts/roboto/roboto500.woff2 +0 -0
- package/assets/fonts/roboto.css +128 -0
- package/assets/notification.mp3 +0 -0
- package/dist/components/Composer.d.ts +4 -5
- package/dist/components/Composer.js +16 -25
- package/dist/components/Container.js +1 -4
- package/dist/components/ConversationList.d.ts +1 -1
- package/dist/components/ConversationList.js +5 -46
- package/dist/components/Header.d.ts +1 -3
- package/dist/components/Header.js +7 -37
- package/dist/components/common/BotInfo/index.d.ts +1 -1
- package/dist/components/common/BotInfo/index.js +4 -14
- package/dist/components/messages/InlineFeedback.d.ts +2 -1
- package/dist/components/messages/Message.js +3 -6
- package/dist/components/messages/MessageGroup.d.ts +1 -5
- package/dist/components/messages/MessageGroup.js +4 -7
- package/dist/components/messages/MessageList.d.ts +1 -1
- package/dist/components/messages/MessageList.js +7 -29
- package/dist/core/api.d.ts +2 -6
- package/dist/core/api.js +4 -32
- package/dist/core/constants.d.ts +4 -32
- package/dist/core/constants.js +18 -32
- package/dist/core/socket.d.ts +1 -7
- package/dist/core/socket.js +8 -30
- package/dist/index.d.ts +2 -8
- package/dist/index.js +6 -27
- package/dist/main.d.ts +2 -2
- package/dist/main.js +84 -135
- package/dist/store/composer.js +1 -1
- package/dist/store/index.d.ts +4 -8
- package/dist/store/index.js +25 -62
- package/dist/store/view.d.ts +3 -4
- package/dist/store/view.js +6 -13
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +36 -1
- package/dist/typings.d.ts +123 -55
- package/dist/utils/analytics.d.ts +5 -0
- package/dist/utils/analytics.js +37 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +27 -0
- package/package.json +6 -5
- package/dist/components/ContextMenu.d.ts +0 -2
- package/dist/components/ContextMenu.js +0 -24
- package/dist/components/OverridableComponent.d.ts +0 -24
- package/dist/components/OverridableComponent.js +0 -50
- package/dist/components/Stylesheet.d.ts +0 -5
- package/dist/components/Stylesheet.js +0 -7
- package/dist/components/common/MoreOptions/index.d.ts +0 -21
- package/dist/components/common/MoreOptions/index.js +0 -60
- package/dist/components/common/Overlay/index.d.ts +0 -7
- package/dist/components/common/Overlay/index.js +0 -36
- package/dist/icons/CloseChat.d.ts +0 -6
- package/dist/icons/CloseChat.js +0 -9
- package/dist/icons/Send.d.ts +0 -6
- package/dist/icons/Send.js +0 -8
- package/dist/utils.d.ts +0 -8
- package/dist/utils.js +0 -111
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Webchat
|
|
2
|
+
|
|
3
|
+
### Sending
|
|
4
|
+
|
|
5
|
+
| Channels | Webchat | Details |
|
|
6
|
+
| -------- | :-----: | :------ |
|
|
7
|
+
| Text | ✅ | |
|
|
8
|
+
| Image | ✅ | |
|
|
9
|
+
| Choice | ✅ | |
|
|
10
|
+
| Dropdown | ✅ | |
|
|
11
|
+
| Card | ✅ | |
|
|
12
|
+
| Carousel | ✅ | |
|
|
13
|
+
| File | ✅ | |
|
|
14
|
+
| Audio | ✅ | |
|
|
15
|
+
| Video | ✅ | |
|
|
16
|
+
| Location | ❌ | |
|
|
17
|
+
|
|
18
|
+
### Receiving
|
|
19
|
+
|
|
20
|
+
| Channels | Webchat | Details |
|
|
21
|
+
| ------------- | :-----: | :------ |
|
|
22
|
+
| Text | ✅ | |
|
|
23
|
+
| Quick Reply | ✅ | |
|
|
24
|
+
| Postback | ✅ | |
|
|
25
|
+
| Say Something | ✅ | |
|
|
26
|
+
| Voice | ❌ | |
|
|
27
|
+
| Image | ❌ | |
|
|
28
|
+
| File | ❌ | |
|
|
29
|
+
| Audio | ❌ | |
|
|
30
|
+
| Video | ❌ | |
|
|
31
|
+
| Location | ❌ | |
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* cyrillic-ext */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Roboto';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
8
|
+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
9
|
+
}
|
|
10
|
+
/* cyrillic */
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: 'Roboto';
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
17
|
+
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
18
|
+
}
|
|
19
|
+
/* greek-ext */
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'Roboto';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-display: swap;
|
|
25
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
26
|
+
unicode-range: U+1F00-1FFF;
|
|
27
|
+
}
|
|
28
|
+
/* greek */
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Roboto';
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
35
|
+
unicode-range: U+0370-03FF;
|
|
36
|
+
}
|
|
37
|
+
/* vietnamese */
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Roboto';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
44
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
|
45
|
+
}
|
|
46
|
+
/* latin-ext */
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: 'Roboto';
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
53
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
54
|
+
}
|
|
55
|
+
/* latin */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'Roboto';
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src: local('Roboto'), local('Roboto-Regular'), url(roboto/roboto.woff2) format('woff2');
|
|
62
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
|
|
63
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
64
|
+
}
|
|
65
|
+
/* cyrillic-ext */
|
|
66
|
+
@font-face {
|
|
67
|
+
font-family: 'Roboto';
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-weight: 500;
|
|
70
|
+
font-display: swap;
|
|
71
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
72
|
+
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
73
|
+
}
|
|
74
|
+
/* cyrillic */
|
|
75
|
+
@font-face {
|
|
76
|
+
font-family: 'Roboto';
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
font-display: swap;
|
|
80
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
81
|
+
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
82
|
+
}
|
|
83
|
+
/* greek-ext */
|
|
84
|
+
@font-face {
|
|
85
|
+
font-family: 'Roboto';
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
font-display: swap;
|
|
89
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
90
|
+
unicode-range: U+1F00-1FFF;
|
|
91
|
+
}
|
|
92
|
+
/* greek */
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'Roboto';
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
font-display: swap;
|
|
98
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
99
|
+
unicode-range: U+0370-03FF;
|
|
100
|
+
}
|
|
101
|
+
/* vietnamese */
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: 'Roboto';
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-weight: 500;
|
|
106
|
+
font-display: swap;
|
|
107
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
108
|
+
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
|
109
|
+
}
|
|
110
|
+
/* latin-ext */
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: 'Roboto';
|
|
113
|
+
font-style: normal;
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
font-display: swap;
|
|
116
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
117
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
118
|
+
}
|
|
119
|
+
/* latin */
|
|
120
|
+
@font-face {
|
|
121
|
+
font-family: 'Roboto';
|
|
122
|
+
font-style: normal;
|
|
123
|
+
font-weight: 500;
|
|
124
|
+
font-display: swap;
|
|
125
|
+
src: local('Roboto Medium'), local('Roboto-Medium'), url(roboto/roboto500.woff2) format('woff2');
|
|
126
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
|
|
127
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
128
|
+
}
|
|
Binary file
|
|
@@ -8,8 +8,7 @@ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omi
|
|
|
8
8
|
} & import("mobx-react").IWrappedComponent<unknown>;
|
|
9
9
|
export default _default;
|
|
10
10
|
declare type ComposerProps = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} & WrappedComponentProps & Pick<StoreDef, 'botName' | 'composerPlaceholder' | 'intl' | 'focusedArea' | 'sendMessage' | 'sendVoiceMessage' | 'focusPrevious' | 'focusNext' | 'recallHistory' | 'setFocus' | 'updateMessage' | 'message' | 'enableArrowNavigation' | 'resetSession' | 'enableResetSessionShortcut' | 'enableVoiceComposer' | 'currentConversation' | 'preferredLanguage'>;
|
|
11
|
+
composerPlaceholder?: string;
|
|
12
|
+
composerLocked?: boolean;
|
|
13
|
+
composerHidden?: boolean;
|
|
14
|
+
} & WrappedComponentProps & Pick<StoreDef, 'botName' | 'composerPlaceholder' | 'intl' | 'focusedArea' | 'sendMessage' | 'sendVoiceMessage' | 'focusPrevious' | 'focusNext' | 'recallHistory' | 'setFocus' | 'updateMessage' | 'message' | 'enableVoiceComposer' | 'currentConversation' | 'preferredLanguage'>;
|
|
@@ -21,31 +21,20 @@ const VoiceRecorder_1 = __importDefault(require("./VoiceRecorder"));
|
|
|
21
21
|
class Composer extends react_1.default.Component {
|
|
22
22
|
constructor(props) {
|
|
23
23
|
super(props);
|
|
24
|
+
this.focus = () => {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
var _a;
|
|
27
|
+
(_a = this.textInput.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
28
|
+
}, 50);
|
|
29
|
+
};
|
|
24
30
|
this.handleKeyPress = (e) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
if (this.props.enableResetSessionShortcut && e.ctrlKey && e.key === 'Enter') {
|
|
26
|
-
e.preventDefault();
|
|
27
|
-
yield this.props.resetSession();
|
|
28
|
-
yield this.props.sendMessage();
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
31
|
if (e.key === 'Enter') {
|
|
32
32
|
e.preventDefault();
|
|
33
33
|
yield this.props.sendMessage();
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
this.handleKeyDown = (e) => {
|
|
37
|
-
if (
|
|
38
|
-
const shouldFocusPrevious = e.target.selectionStart === 0 && (e.key === 'ArrowUp' || e.key === 'ArrowLeft');
|
|
39
|
-
if (shouldFocusPrevious) {
|
|
40
|
-
this.props.focusPrevious();
|
|
41
|
-
}
|
|
42
|
-
const shouldFocusNext = e.target.selectionStart === this.textInput.current.value.length &&
|
|
43
|
-
(e.key === 'ArrowDown' || e.key === 'ArrowRight');
|
|
44
|
-
if (shouldFocusNext) {
|
|
45
|
-
this.props.focusNext();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
37
|
+
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
49
38
|
this.props.recallHistory(e.key);
|
|
50
39
|
}
|
|
51
40
|
};
|
|
@@ -68,13 +57,18 @@ class Composer extends react_1.default.Component {
|
|
|
68
57
|
this.state = { isRecording: false };
|
|
69
58
|
}
|
|
70
59
|
componentDidMount() {
|
|
71
|
-
|
|
72
|
-
this.textInput.current.focus();
|
|
73
|
-
}, 50);
|
|
60
|
+
this.focus();
|
|
74
61
|
(0, mobx_1.observe)(this.props.focusedArea, (focus) => {
|
|
75
|
-
|
|
62
|
+
var _a;
|
|
63
|
+
focus.newValue === 'input' && ((_a = this.textInput.current) === null || _a === void 0 ? void 0 : _a.focus());
|
|
76
64
|
});
|
|
77
65
|
}
|
|
66
|
+
componentWillReceiveProps(newProps) {
|
|
67
|
+
// Focus on the composer when it's unlocked
|
|
68
|
+
if (this.props.composerLocked === true && newProps.composerLocked === false) {
|
|
69
|
+
this.focus();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
78
72
|
render() {
|
|
79
73
|
if (this.props.composerHidden) {
|
|
80
74
|
return null;
|
|
@@ -119,9 +113,6 @@ exports.default = (0, mobx_react_1.inject)(({ store }) => ({
|
|
|
119
113
|
focusedArea: store.view.focusedArea,
|
|
120
114
|
focusPrevious: store.view.focusPrevious,
|
|
121
115
|
focusNext: store.view.focusNext,
|
|
122
|
-
enableArrowNavigation: store.config.enableArrowNavigation,
|
|
123
|
-
enableResetSessionShortcut: store.config.enableResetSessionShortcut,
|
|
124
|
-
resetSession: store.resetSession,
|
|
125
116
|
currentConversation: store.currentConversation,
|
|
126
117
|
preferredLanguage: store.preferredLanguage
|
|
127
118
|
}))((0, react_intl_1.injectIntl)((0, mobx_react_1.observer)(Composer)));
|
|
@@ -14,7 +14,6 @@ const ConversationList_1 = __importDefault(require("./ConversationList"));
|
|
|
14
14
|
const Footer_1 = __importDefault(require("./Footer"));
|
|
15
15
|
const Header_1 = __importDefault(require("./Header"));
|
|
16
16
|
const MessageList_1 = __importDefault(require("./messages/MessageList"));
|
|
17
|
-
const OverridableComponent_1 = __importDefault(require("./OverridableComponent"));
|
|
18
17
|
class Container extends react_1.default.Component {
|
|
19
18
|
renderBody() {
|
|
20
19
|
if (!this.props.isInitialized) {
|
|
@@ -33,7 +32,7 @@ class Container extends react_1.default.Component {
|
|
|
33
32
|
}) },
|
|
34
33
|
react_1.default.createElement(MessageList_1.default, null),
|
|
35
34
|
react_1.default.createElement(messaging_components_1.Keyboard, null,
|
|
36
|
-
react_1.default.createElement(
|
|
35
|
+
react_1.default.createElement(Composer_1.default, null))));
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
render() {
|
|
@@ -42,11 +41,9 @@ class Container extends react_1.default.Component {
|
|
|
42
41
|
[`bpw-anim-${this.props.sideTransition}`]: true
|
|
43
42
|
});
|
|
44
43
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
45
|
-
react_1.default.createElement(OverridableComponent_1.default, { name: 'before_container', original: null }),
|
|
46
44
|
react_1.default.createElement("div", { className: classNames, style: { width: this.props.dimensions.layout } },
|
|
47
45
|
react_1.default.createElement(Header_1.default, null),
|
|
48
46
|
this.renderBody(),
|
|
49
|
-
react_1.default.createElement(OverridableComponent_1.default, { name: 'below_conversation', original: null }),
|
|
50
47
|
this.props.isPoweredByDisplayed && react_1.default.createElement(Footer_1.default, null))));
|
|
51
48
|
}
|
|
52
49
|
}
|
|
@@ -7,4 +7,4 @@ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omi
|
|
|
7
7
|
WrappedComponent: React.ComponentType<ConversationListProps>;
|
|
8
8
|
} & import("mobx-react").IWrappedComponent<unknown>;
|
|
9
9
|
export default _default;
|
|
10
|
-
declare type ConversationListProps = WrappedComponentProps & Pick<StoreDef, 'conversations' | 'fetchConversation' | 'createConversation'
|
|
10
|
+
declare type ConversationListProps = WrappedComponentProps & Pick<StoreDef, 'conversations' | 'fetchConversation' | 'createConversation'>;
|
|
@@ -8,7 +8,7 @@ const mobx_react_1 = require("mobx-react");
|
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const react_intl_1 = require("react-intl");
|
|
10
10
|
const Add_1 = __importDefault(require("../icons/Add"));
|
|
11
|
-
const ConversationListItem = (0, react_intl_1.injectIntl)(({ conversation, onClick,
|
|
11
|
+
const ConversationListItem = (0, react_intl_1.injectIntl)(({ conversation, onClick, intl }) => {
|
|
12
12
|
var _a, _b, _c;
|
|
13
13
|
const title = intl.formatMessage({ id: 'conversationList.title' }, { id: conversation.id });
|
|
14
14
|
const { value, unit } = (0, intl_utils_1.selectUnit)(new Date(((_a = conversation.lastMessage) === null || _a === void 0 ? void 0 : _a.sentOn) || conversation.createdOn));
|
|
@@ -23,60 +23,19 @@ const ConversationListItem = (0, react_intl_1.injectIntl)(({ conversation, onCli
|
|
|
23
23
|
react_1.default.createElement("div", { className: 'bpw-convo-preview' }, message))));
|
|
24
24
|
});
|
|
25
25
|
class ConversationList extends react_1.default.Component {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
this.state = {
|
|
29
|
-
focusIdx: undefined
|
|
30
|
-
};
|
|
31
|
-
this.changeFocus = (step) => {
|
|
32
|
-
let focusIdx = this.state.focusIdx || 0;
|
|
33
|
-
focusIdx += step;
|
|
34
|
-
if (focusIdx > this.props.conversations.length) {
|
|
35
|
-
focusIdx = 0;
|
|
36
|
-
}
|
|
37
|
-
else if (focusIdx < 0) {
|
|
38
|
-
focusIdx = this.props.conversations.length;
|
|
39
|
-
}
|
|
40
|
-
this.setState({ focusIdx });
|
|
41
|
-
};
|
|
42
|
-
this.handleKeyDown = (e) => {
|
|
43
|
-
if (!this.props.enableArrowNavigation) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (e.key === 'ArrowDown' || e.key === 'ArrowRight') {
|
|
47
|
-
this.changeFocus(1);
|
|
48
|
-
}
|
|
49
|
-
else if (e.key === 'ArrowUp' || e.key === 'ArrowLeft') {
|
|
50
|
-
this.changeFocus(-1);
|
|
51
|
-
}
|
|
52
|
-
else if (e.key === 'Enter' && this.state.focusIdx && this.state.focusIdx < this.props.conversations.length) {
|
|
53
|
-
const convoId = this.props.conversations[this.state.focusIdx].id;
|
|
54
|
-
this.props.fetchConversation.bind(this, convoId);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
26
|
componentDidMount() {
|
|
59
27
|
this.main.focus();
|
|
60
28
|
}
|
|
61
|
-
componentDidUpdate(_, prevState) {
|
|
62
|
-
if (this.state.focusIdx === this.props.conversations.length) {
|
|
63
|
-
this.btn.focus();
|
|
64
|
-
}
|
|
65
|
-
else if (prevState.focusIdx === this.props.conversations.length) {
|
|
66
|
-
this.main.focus();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
29
|
render() {
|
|
70
30
|
const { conversations, createConversation, fetchConversation } = this.props;
|
|
71
|
-
return (react_1.default.createElement("div", { tabIndex: 0, ref: (el) => (this.main = el), className: 'bpw-convo-list'
|
|
72
|
-
conversations.map((
|
|
73
|
-
react_1.default.createElement("button", {
|
|
31
|
+
return (react_1.default.createElement("div", { tabIndex: 0, ref: (el) => (this.main = el), className: 'bpw-convo-list' },
|
|
32
|
+
conversations.map((conversation, idx) => (react_1.default.createElement(ConversationListItem, { key: conversation.id, conversation: conversation, onClick: fetchConversation.bind(this, conversation.id) }))),
|
|
33
|
+
react_1.default.createElement("button", { id: "btn-convo-add", className: 'bpw-convo-add-btn', onClick: createConversation.bind(this, undefined) },
|
|
74
34
|
react_1.default.createElement(Add_1.default, { width: 15, height: 15 }))));
|
|
75
35
|
}
|
|
76
36
|
}
|
|
77
37
|
exports.default = (0, mobx_react_1.inject)(({ store }) => ({
|
|
78
38
|
conversations: store.conversations,
|
|
79
39
|
createConversation: store.createConversation,
|
|
80
|
-
fetchConversation: store.fetchConversation
|
|
81
|
-
enableArrowNavigation: store.config.enableArrowNavigation
|
|
40
|
+
fetchConversation: store.fetchConversation
|
|
82
41
|
}))((0, react_intl_1.injectIntl)((0, mobx_react_1.observer)(ConversationList)));
|
|
@@ -13,16 +13,14 @@ declare class Header extends React.Component<HeaderProps> {
|
|
|
13
13
|
renderTitle: () => JSX.Element;
|
|
14
14
|
handleDeleteConversation: () => Promise<void>;
|
|
15
15
|
renderDeleteConversationButton(): JSX.Element;
|
|
16
|
-
renderResetButton(): JSX.Element;
|
|
17
16
|
renderDownloadButton(): JSX.Element;
|
|
18
17
|
renderConvoButton(): JSX.Element;
|
|
19
18
|
renderBotInfoButton(): JSX.Element;
|
|
20
19
|
renderCloseButton(): JSX.Element;
|
|
21
20
|
renderCustomButtons(): JSX.Element[];
|
|
22
|
-
handleKeyDown: (action: any, e: any) => void;
|
|
23
21
|
setShowingOption: (val: any) => void;
|
|
24
22
|
render(): JSX.Element;
|
|
25
23
|
}
|
|
26
24
|
declare const _default: typeof Header & import("mobx-react").IWrappedComponent<unknown>;
|
|
27
25
|
export default _default;
|
|
28
|
-
declare type HeaderProps = Pick<StoreDef, 'intl' | 'sendMessage' | 'focusPrevious' | 'focusNext' | 'focusedArea' | 'isConversationsDisplayed' | 'botName' | 'hasUnreadMessages' | 'unreadCount' | 'hasBotInfoDescription' | 'deleteConversation' | '
|
|
26
|
+
declare type HeaderProps = Pick<StoreDef, 'intl' | 'sendMessage' | 'focusPrevious' | 'focusNext' | 'focusedArea' | 'isConversationsDisplayed' | 'botName' | 'hasUnreadMessages' | 'unreadCount' | 'hasBotInfoDescription' | 'deleteConversation' | 'downloadConversation' | 'toggleConversations' | 'hideChat' | 'toggleBotInfo' | 'botAvatarUrl' | 'showDeleteConversationButton' | 'showDownloadButton' | 'showConversationsButton' | 'showBotInfoButton' | 'showCloseButton' | 'botConversationDescription' | 'customButtons'>;
|
|
@@ -20,7 +20,6 @@ const Delete_1 = __importDefault(require("../icons/Delete"));
|
|
|
20
20
|
const Download_1 = __importDefault(require("../icons/Download"));
|
|
21
21
|
const Information_1 = __importDefault(require("../icons/Information"));
|
|
22
22
|
const List_1 = __importDefault(require("../icons/List"));
|
|
23
|
-
const Reload_1 = __importDefault(require("../icons/Reload"));
|
|
24
23
|
const Avatar_1 = __importDefault(require("./common/Avatar"));
|
|
25
24
|
const ConfirmDialog_1 = __importDefault(require("./common/ConfirmDialog"));
|
|
26
25
|
class Header extends react_1.default.Component {
|
|
@@ -63,7 +62,7 @@ class Header extends react_1.default.Component {
|
|
|
63
62
|
react_1.default.createElement("div", { className: 'bpw-header-name' },
|
|
64
63
|
title,
|
|
65
64
|
this.props.hasUnreadMessages && react_1.default.createElement("span", { className: 'bpw-header-unread' }, this.props.unreadCount)),
|
|
66
|
-
this.props.hasBotInfoDescription && (react_1.default.createElement("div", { className: 'bpw-header-subtitle' }, this.props.
|
|
65
|
+
this.props.hasBotInfoDescription && (react_1.default.createElement("div", { className: 'bpw-header-subtitle' }, this.props.botConversationDescription))));
|
|
67
66
|
};
|
|
68
67
|
this.handleDeleteConversation = () => __awaiter(this, void 0, void 0, function* () {
|
|
69
68
|
if (yield (0, ConfirmDialog_1.default)(this.props.intl.formatMessage({
|
|
@@ -79,27 +78,6 @@ class Header extends react_1.default.Component {
|
|
|
79
78
|
yield this.props.deleteConversation();
|
|
80
79
|
}
|
|
81
80
|
});
|
|
82
|
-
this.handleKeyDown = (action, e) => {
|
|
83
|
-
if (!this.props.enableArrowNavigation) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (e.key === 'ArrowUp') {
|
|
87
|
-
this.props.focusPrevious();
|
|
88
|
-
}
|
|
89
|
-
else if (e.key === 'ArrowDown') {
|
|
90
|
-
this.props.focusNext();
|
|
91
|
-
}
|
|
92
|
-
else if (e.key === 'ArrowLeft') {
|
|
93
|
-
this.changeButtonFocus(-1);
|
|
94
|
-
}
|
|
95
|
-
else if (e.key === 'ArrowRight') {
|
|
96
|
-
this.changeButtonFocus(1);
|
|
97
|
-
}
|
|
98
|
-
else if (e.key === 'Enter') {
|
|
99
|
-
e.preventDefault();
|
|
100
|
-
action();
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
81
|
this.setShowingOption = (val) => {
|
|
104
82
|
this.setState({ showingOption: val });
|
|
105
83
|
};
|
|
@@ -110,30 +88,26 @@ class Header extends react_1.default.Component {
|
|
|
110
88
|
});
|
|
111
89
|
}
|
|
112
90
|
renderDeleteConversationButton() {
|
|
113
|
-
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-delete", ref: (el) => (this.btnEls[0] = el), className: 'bpw-header-icon bpw-header-icon-delete', onClick: this.handleDeleteConversation,
|
|
91
|
+
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-delete", ref: (el) => (this.btnEls[0] = el), className: 'bpw-header-icon bpw-header-icon-delete', onClick: this.handleDeleteConversation, onBlur: this.onBlur },
|
|
114
92
|
react_1.default.createElement(Delete_1.default, null)));
|
|
115
93
|
}
|
|
116
|
-
renderResetButton() {
|
|
117
|
-
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-reset", ref: (el) => (this.btnEls[1] = el), className: 'bpw-header-icon bpw-header-icon-reset', onClick: this.props.resetSession, onKeyDown: this.handleKeyDown.bind(this, this.props.resetSession), onBlur: this.onBlur },
|
|
118
|
-
react_1.default.createElement(Reload_1.default, null)));
|
|
119
|
-
}
|
|
120
94
|
renderDownloadButton() {
|
|
121
|
-
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-download", ref: (el) => (this.btnEls[2] = el), className: 'bpw-header-icon bpw-header-icon-download', onClick: this.props.downloadConversation,
|
|
95
|
+
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-download", ref: (el) => (this.btnEls[2] = el), className: 'bpw-header-icon bpw-header-icon-download', onClick: this.props.downloadConversation, onBlur: this.onBlur },
|
|
122
96
|
react_1.default.createElement(Download_1.default, null)));
|
|
123
97
|
}
|
|
124
98
|
renderConvoButton() {
|
|
125
|
-
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-conversations", ref: (el) => (this.btnEls[3] = el), className: 'bpw-header-icon bpw-header-icon-convo', onClick: this.props.toggleConversations,
|
|
99
|
+
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-conversations", ref: (el) => (this.btnEls[3] = el), className: 'bpw-header-icon bpw-header-icon-convo', onClick: this.props.toggleConversations, onBlur: this.onBlur },
|
|
126
100
|
react_1.default.createElement(List_1.default, null)));
|
|
127
101
|
}
|
|
128
102
|
renderBotInfoButton() {
|
|
129
|
-
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-botinfo", ref: (el) => (this.btnEls[4] = el), className: 'bpw-header-icon bpw-header-icon-botinfo', onClick: this.props.toggleBotInfo,
|
|
103
|
+
return (react_1.default.createElement("button", { type: "button", tabIndex: -1, id: "btn-botinfo", ref: (el) => (this.btnEls[4] = el), className: 'bpw-header-icon bpw-header-icon-botinfo', onClick: this.props.toggleBotInfo, onBlur: this.onBlur },
|
|
130
104
|
react_1.default.createElement(Information_1.default, null)));
|
|
131
105
|
}
|
|
132
106
|
renderCloseButton() {
|
|
133
107
|
return (react_1.default.createElement("button", { type: "button", id: "btn-close", "aria-label": this.props.intl.formatMessage({
|
|
134
108
|
id: 'header.hideChatWindow',
|
|
135
109
|
defaultMessage: 'Hide the chat window'
|
|
136
|
-
}), ref: (el) => (this.btnEls[5] = el), className: 'bpw-header-icon bpw-header-icon-close', onClick: this.props.hideChat,
|
|
110
|
+
}), ref: (el) => (this.btnEls[5] = el), className: 'bpw-header-icon bpw-header-icon-close', onClick: this.props.hideChat, onBlur: this.onBlur },
|
|
137
111
|
react_1.default.createElement(Close_1.default, null)));
|
|
138
112
|
}
|
|
139
113
|
renderCustomButtons() {
|
|
@@ -175,7 +149,6 @@ class Header extends react_1.default.Component {
|
|
|
175
149
|
this.renderTitle())),
|
|
176
150
|
!!this.props.customButtons.length && this.renderCustomButtons(),
|
|
177
151
|
this.props.showDeleteConversationButton && this.renderDeleteConversationButton(),
|
|
178
|
-
this.props.showResetButton && this.renderResetButton(),
|
|
179
152
|
this.props.showDownloadButton && this.renderDownloadButton(),
|
|
180
153
|
this.props.showConversationsButton && this.renderConvoButton(),
|
|
181
154
|
this.props.showBotInfoButton && this.renderBotInfoButton(),
|
|
@@ -189,7 +162,6 @@ exports.default = (0, mobx_react_1.inject)(({ store }) => ({
|
|
|
189
162
|
showDownloadButton: store.view.showDownloadButton,
|
|
190
163
|
showBotInfoButton: store.view.showBotInfoButton,
|
|
191
164
|
showConversationsButton: store.view.showConversationsButton,
|
|
192
|
-
showResetButton: store.view.showResetButton,
|
|
193
165
|
showCloseButton: store.view.showCloseButton,
|
|
194
166
|
hasUnreadMessages: store.view.hasUnreadMessages,
|
|
195
167
|
unreadCount: store.view.unreadCount,
|
|
@@ -201,11 +173,9 @@ exports.default = (0, mobx_react_1.inject)(({ store }) => ({
|
|
|
201
173
|
toggleBotInfo: store.view.toggleBotInfo,
|
|
202
174
|
customButtons: store.view.customButtons,
|
|
203
175
|
deleteConversation: store.deleteConversation,
|
|
204
|
-
resetSession: store.resetSession,
|
|
205
176
|
downloadConversation: store.downloadConversation,
|
|
206
177
|
botName: store.botName,
|
|
207
178
|
botAvatarUrl: store.botAvatarUrl,
|
|
208
179
|
hasBotInfoDescription: store.hasBotInfoDescription,
|
|
209
|
-
|
|
210
|
-
enableArrowNavigation: store.config.enableArrowNavigation
|
|
180
|
+
botConversationDescription: store.config.botConversationDescription
|
|
211
181
|
}))((0, mobx_react_1.observer)(Header));
|
|
@@ -7,4 +7,4 @@ declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omi
|
|
|
7
7
|
WrappedComponent: React.ComponentType<BotInfoProps>;
|
|
8
8
|
} & import("mobx-react").IWrappedComponent<unknown>;
|
|
9
9
|
export default _default;
|
|
10
|
-
declare type BotInfoProps = WrappedComponentProps & Pick<StoreDef, 'botInfo' | 'botName' | 'avatarUrl' | 'toggleBotInfo' | 'startConversation' | 'isConversationStarted' | '
|
|
10
|
+
declare type BotInfoProps = WrappedComponentProps & Pick<StoreDef, 'botInfo' | 'botName' | 'avatarUrl' | 'toggleBotInfo' | 'startConversation' | 'isConversationStarted' | 'updatePreferredLanguage' | 'preferredLanguage' | 'escapeHTML' | 'rtl'>;
|
|
@@ -18,15 +18,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
23
|
};
|
|
@@ -41,15 +32,14 @@ const Website_1 = __importDefault(require("../../../icons/Website"));
|
|
|
41
32
|
const utils_1 = require("../../../utils");
|
|
42
33
|
const Avatar_1 = __importDefault(require("../Avatar"));
|
|
43
34
|
const CoverPicture = ({ botInfo }) => (react_1.default.createElement("div", { className: 'bpw-botinfo-cover-picture-wrapper' },
|
|
44
|
-
react_1.default.createElement("img", { className: 'bpw-botinfo-cover-picture', src: (botInfo
|
|
45
|
-
`https://via.placeholder.com/400x175?text=${botInfo.name}` })));
|
|
35
|
+
react_1.default.createElement("img", { className: 'bpw-botinfo-cover-picture', src: (botInfo === null || botInfo === void 0 ? void 0 : botInfo.details.coverPictureUrl) || `https://via.placeholder.com/400x175?text=${(botInfo === null || botInfo === void 0 ? void 0 : botInfo.name) || ''}` })));
|
|
46
36
|
class BotInfoPage extends react_1.default.Component {
|
|
47
37
|
constructor() {
|
|
48
38
|
super(...arguments);
|
|
49
|
-
this.changeLanguage = (e) =>
|
|
39
|
+
this.changeLanguage = (e) => {
|
|
50
40
|
const lang = e.target.value;
|
|
51
|
-
|
|
52
|
-
}
|
|
41
|
+
this.props.updatePreferredLanguage(lang);
|
|
42
|
+
};
|
|
53
43
|
}
|
|
54
44
|
componentDidMount() {
|
|
55
45
|
var _a;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { IntlShape } from 'react-intl';
|
|
2
3
|
import { EventFeedback as MessageFeedback } from '../../typings';
|
|
3
4
|
interface Props {
|
|
4
5
|
onFeedback: (feedback: number, eventId: string) => void;
|
|
5
6
|
messageId: string;
|
|
6
7
|
messageFeedbacks: MessageFeedback[];
|
|
7
|
-
intl:
|
|
8
|
+
intl: IntlShape;
|
|
8
9
|
}
|
|
9
10
|
export declare const InlineFeedback: FC<Props>;
|
|
10
11
|
export {};
|
|
@@ -27,7 +27,6 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
27
27
|
const mobx_react_1 = require("mobx-react");
|
|
28
28
|
const react_1 = __importStar(require("react"));
|
|
29
29
|
const react_intl_1 = require("react-intl");
|
|
30
|
-
const ContextMenu_1 = require("../ContextMenu");
|
|
31
30
|
class Message extends react_1.Component {
|
|
32
31
|
constructor() {
|
|
33
32
|
super(...arguments);
|
|
@@ -35,9 +34,6 @@ class Message extends react_1.Component {
|
|
|
35
34
|
hasError: false,
|
|
36
35
|
showMore: false
|
|
37
36
|
};
|
|
38
|
-
this.handleContextMenu = (e) => {
|
|
39
|
-
(0, ContextMenu_1.showContextMenu)(e, this.props);
|
|
40
|
-
};
|
|
41
37
|
}
|
|
42
38
|
static getDerivedStateFromError(_error) {
|
|
43
39
|
return { hasError: true };
|
|
@@ -67,7 +63,8 @@ class Message extends react_1.Component {
|
|
|
67
63
|
shouldPlay: this.props.shouldPlay,
|
|
68
64
|
intl: this.props.store.intl,
|
|
69
65
|
escapeHTML: true,
|
|
70
|
-
showTimestamp: this.props.store.config.showTimestamp
|
|
66
|
+
showTimestamp: this.props.store.config.showTimestamp,
|
|
67
|
+
googleMapsAPIKey: this.props.store.config.googleMapsAPIKey
|
|
71
68
|
} }));
|
|
72
69
|
if (rendered === null) {
|
|
73
70
|
return null;
|
|
@@ -77,7 +74,7 @@ class Message extends react_1.Component {
|
|
|
77
74
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(this.props.className, wrappedClass), style: additionalStyle }, rendered));
|
|
78
75
|
}
|
|
79
76
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(this.props.className, wrappedClass, 'bpw-chat-bubble', `bpw-bubble-${type}`), "data-from": this.props.fromLabel, tabIndex: -1, style: additionalStyle },
|
|
80
|
-
react_1.default.createElement("div", { tabIndex: -1, className: "bpw-chat-bubble-content"
|
|
77
|
+
react_1.default.createElement("div", { tabIndex: -1, className: "bpw-chat-bubble-content" },
|
|
81
78
|
react_1.default.createElement("span", { className: "sr-only" }, this.props.store.intl.formatMessage({
|
|
82
79
|
id: this.props.isBotMessage ? 'message.botSaid' : 'message.iSaid',
|
|
83
80
|
defaultMessage: this.props.isBotMessage ? 'Virtual assistant said : ' : 'I said : '
|
|
@@ -17,11 +17,7 @@ export default _default;
|
|
|
17
17
|
declare type Props = {
|
|
18
18
|
isBot: boolean;
|
|
19
19
|
avatar: JSX.Element;
|
|
20
|
-
userName: string;
|
|
21
20
|
messages: MessageDetails[];
|
|
22
21
|
isLastGroup: boolean;
|
|
23
|
-
onFileUpload?: any;
|
|
24
|
-
onSendData?: any;
|
|
25
|
-
onFeedback?: any;
|
|
26
22
|
store?: RootStore;
|
|
27
|
-
} & Pick<StoreDef, '
|
|
23
|
+
} & Pick<StoreDef, 'sendFeedback' | 'sendData'>;
|
|
@@ -29,7 +29,7 @@ class MessageGroup extends react_1.default.Component {
|
|
|
29
29
|
return { hasError: true };
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
const { messages, avatar, isBot
|
|
32
|
+
const { messages, avatar, isBot } = this.props;
|
|
33
33
|
const fromLabel = this.props.store.intl.formatMessage({
|
|
34
34
|
id: this.props.isBot ? 'message.fromBotLabel' : 'message.fromMeLabel',
|
|
35
35
|
defaultMessage: 'Me'
|
|
@@ -43,21 +43,18 @@ class MessageGroup extends react_1.default.Component {
|
|
|
43
43
|
}) },
|
|
44
44
|
avatar,
|
|
45
45
|
react_1.default.createElement("div", { role: "region", className: 'bpw-message-container' },
|
|
46
|
-
showUserName && react_1.default.createElement("div", { className: 'bpw-message-username' }, userName),
|
|
47
46
|
react_1.default.createElement("div", { "aria-live": "assertive", role: "log", className: 'bpw-message-group' },
|
|
48
47
|
react_1.default.createElement("span", { "data-from": fromLabel, className: "from hidden", "aria-hidden": "true" }, fromLabel),
|
|
49
48
|
(0, sortBy_1.default)(messages, ['sent_on', 'eventId']).map((message, i, messages) => {
|
|
50
49
|
const isLastMsg = i === messages.length - 1;
|
|
51
50
|
const payload = message.payload;
|
|
52
51
|
const showInlineFeedback = isBot && isLastMsg && payload.collectFeedback;
|
|
53
|
-
return (react_1.default.createElement(Message_1.default, { key: `${message.id}-${message.payload.type}`, inlineFeedback: showInlineFeedback && (react_1.default.createElement(InlineFeedback_1.InlineFeedback, { intl: this.props.store.intl, messageId: message.id, onFeedback: this.props.
|
|
52
|
+
return (react_1.default.createElement(Message_1.default, { key: `${message.id}-${message.payload.type}`, inlineFeedback: showInlineFeedback && (react_1.default.createElement(InlineFeedback_1.InlineFeedback, { intl: this.props.store.intl, messageId: message.id, onFeedback: this.props.sendFeedback, messageFeedbacks: this.props.store.messageFeedbacks })), messageId: message.id, noBubble: !!payload.noBubble, fromLabel: fromLabel, isLastOfGroup: i >= this.props.messages.length - 1, isLastGroup: this.props.isLastGroup, isBotMessage: !message.authorId, payload: payload, sentOn: message.sentOn, onSendData: this.props.sendData, store: this.props.store, onAudioEnded: this.onAudioEnded, shouldPlay: this.state.audioPlayingIndex === i }));
|
|
54
53
|
})))));
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
exports.default = (0, mobx_react_1.inject)(({ store }) => ({
|
|
58
57
|
store,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
onFileUpload: store.uploadFile,
|
|
62
|
-
showUserName: store.config.showUserName
|
|
58
|
+
sendFeedback: store.sendFeedback,
|
|
59
|
+
sendData: store.sendData
|
|
63
60
|
}))(MessageGroup);
|