@appcorp/app-corp-vista 0.1.16 → 0.1.18
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.
|
@@ -13,14 +13,14 @@ var vista_button_v1_1 = require("../../molecules/vista-button-v1/vista-button-v1
|
|
|
13
13
|
var vista_button_type_1 = require("../../type/vista-button-type");
|
|
14
14
|
var vista_chat_bubble_v1_1 = require("../../molecules/vista-chat-bubble-v1/vista-chat-bubble-v1");
|
|
15
15
|
var VistaChatV2 = function (_a) {
|
|
16
|
-
var actionItems = _a.actionItems, chatId = _a.chatId, chatValue = _a.chatValue, handleChatOnChange = _a.handleChatOnChange, messages = _a.messages,
|
|
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
18
|
return (react_1.default.createElement(react_1.default.Fragment, null, 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
|
}))));
|
|
22
22
|
};
|
|
23
|
-
return (react_1.default.createElement("div", { className: "relative h-screen grid grid-cols-12 grid-rows-1 overflow-hidden" },
|
|
23
|
+
return (react_1.default.createElement("div", { className: "relative h-screen grid grid-cols-12 grid-rows-1 overflow-hidden ".concat(containerClassName) },
|
|
24
24
|
react_1.default.createElement(vista_chat_side_bar_v2_1.VistaChatSideBarV2, { sideBarHeading: sideBarHeading, sideBarNode: sideBarNode }),
|
|
25
25
|
react_1.default.createElement("section", { className: "col-span-9 flex flex-col" },
|
|
26
26
|
react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { heading: name, timer: timer }),
|
package/package.json
CHANGED
package/utils/form-schema.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { VistaRadioV1Props } from "../type/vista-radio-type";
|
|
|
9
9
|
import { VistaButtonV1Props } from "../type/vista-button-type";
|
|
10
10
|
import { VistaUploadV1Props } from "../type/vista-upload-type";
|
|
11
11
|
export declare enum VISTA_FORM_ELEMENTS {
|
|
12
|
+
AUDIO_V1 = "AUDIO_V1",
|
|
12
13
|
BUTTON_V1 = "BUTTON_V1",
|
|
13
14
|
CHECKBOX_V1 = "CHECKBOX_V1",
|
|
14
15
|
CHECKBOX_V2 = "CHECKBOX_V2",
|
|
@@ -22,6 +23,7 @@ export declare enum VISTA_FORM_ELEMENTS {
|
|
|
22
23
|
UPLOAD_V1 = "UPLOAD_V1"
|
|
23
24
|
}
|
|
24
25
|
export declare const formSchema: {
|
|
26
|
+
AUDIO_V1: (props: any) => React.JSX.Element;
|
|
25
27
|
BUTTON_V1: (props: VistaButtonV1Props) => React.JSX.Element;
|
|
26
28
|
CHECKBOX_V1: (props: VistaCheckboxV1Props) => React.JSX.Element;
|
|
27
29
|
CHECKBOX_V2: (props: VistaCheckboxV2Props) => React.JSX.Element;
|
package/utils/form-schema.js
CHANGED
|
@@ -30,6 +30,7 @@ var vista_button_v1_1 = require("../molecules/vista-button-v1/vista-button-v1");
|
|
|
30
30
|
var vista_upload_v1_1 = require("../molecules/vista-upload-v1/vista-upload-v1");
|
|
31
31
|
var VISTA_FORM_ELEMENTS;
|
|
32
32
|
(function (VISTA_FORM_ELEMENTS) {
|
|
33
|
+
VISTA_FORM_ELEMENTS["AUDIO_V1"] = "AUDIO_V1";
|
|
33
34
|
VISTA_FORM_ELEMENTS["BUTTON_V1"] = "BUTTON_V1";
|
|
34
35
|
VISTA_FORM_ELEMENTS["CHECKBOX_V1"] = "CHECKBOX_V1";
|
|
35
36
|
VISTA_FORM_ELEMENTS["CHECKBOX_V2"] = "CHECKBOX_V2";
|
|
@@ -43,6 +44,7 @@ var VISTA_FORM_ELEMENTS;
|
|
|
43
44
|
VISTA_FORM_ELEMENTS["UPLOAD_V1"] = "UPLOAD_V1";
|
|
44
45
|
})(VISTA_FORM_ELEMENTS || (exports.VISTA_FORM_ELEMENTS = VISTA_FORM_ELEMENTS = {}));
|
|
45
46
|
exports.formSchema = (_a = {},
|
|
47
|
+
_a[VISTA_FORM_ELEMENTS.AUDIO_V1] = function (props) { return react_1.default.createElement("audio", __assign({}, props)); },
|
|
46
48
|
_a[VISTA_FORM_ELEMENTS.BUTTON_V1] = function (props) { return react_1.default.createElement(vista_button_v1_1.VistaButtonV1, __assign({}, props)); },
|
|
47
49
|
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V1] = function (props) { return react_1.default.createElement(vista_checkbox_v1_1.VistaCheckboxV1, __assign({}, props)); },
|
|
48
50
|
_a[VISTA_FORM_ELEMENTS.CHECKBOX_V2] = function (props) { return react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, __assign({}, props)); },
|