@appcorp/app-corp-vista 0.1.29 → 0.1.30
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/data/vista-chat-props.js
CHANGED
|
@@ -115,6 +115,7 @@ exports.vistaChatV1Props = {
|
|
|
115
115
|
exports.vistaChatV2Props = {
|
|
116
116
|
chatId: 'id',
|
|
117
117
|
chatValue: '',
|
|
118
|
+
containerClassName: '',
|
|
118
119
|
handleChatOnChange: function () { return void 0; },
|
|
119
120
|
sideBarHeading: 'Psychic Tools',
|
|
120
121
|
sideBarNode: react_1.default.createElement("p", null, "Hello World"),
|
|
@@ -15,7 +15,7 @@ var vista_chat_bubble_v1_1 = require("../../molecules/vista-chat-bubble-v1/vista
|
|
|
15
15
|
var VistaChatV2 = function (_a) {
|
|
16
16
|
var actionItems = _a.actionItems, chatId = _a.chatId, chatValue = _a.chatValue, _b = _a.containerClassName, containerClassName = _b === void 0 ? '' : _b, handleChatOnChange = _a.handleChatOnChange, messages = _a.messages, name = _a.name, psychic = _a.psychic, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer, user = _a.user;
|
|
17
17
|
var renderChatMessages = function () {
|
|
18
|
-
return (react_1.default.createElement(
|
|
18
|
+
return (react_1.default.createElement("div", { className: 'overflow-y-scroll' }, messages.map((function (_a) {
|
|
19
19
|
var createdAt = _a.createdAt, id = _a.id, isUser = _a.isUser, message = _a.message;
|
|
20
20
|
return (react_1.default.createElement(vista_chat_bubble_v1_1.VistaChatBubbleV1, { createdAt: createdAt, isUser: isUser, key: id, message: message, psychic: psychic, user: user }));
|
|
21
21
|
}))));
|