@appcorp/app-corp-vista 0.3.31 → 0.3.32
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 +6 -0
- package/molecules/vista-chat-side-bar-v2/vista-chat-side-bar-v2.d.ts +3 -0
- package/molecules/vista-chat-side-bar-v2/vista-chat-side-bar-v2.js +15 -15
- package/organisms/vista-chat-v2/vista-chat-v2.js +6 -3
- package/package.json +1 -1
- package/type/vista-chat-type.d.ts +3 -0
package/data/vista-chat-props.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.vistaChatV2Props = exports.vistaChatV1Props = exports.messages = exports.chats = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
4
8
|
var vista_button_type_1 = require("../type/vista-button-type");
|
|
5
9
|
var vista_chat_type_1 = require("../type/vista-chat-type");
|
|
6
10
|
exports.chats = [
|
|
@@ -201,4 +205,6 @@ exports.vistaChatV2Props = {
|
|
|
201
205
|
showControls: true,
|
|
202
206
|
showLoadMore: true,
|
|
203
207
|
chatIsLoading: true,
|
|
208
|
+
sideBarHeading: 'hello',
|
|
209
|
+
sideBarNode: react_1.default.createElement("p", null, "Hello World"),
|
|
204
210
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VistaChatSideBarV2 = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var vista_chat_heading_v1_1 = require("../vista-chat-heading-v1/vista-chat-heading-v1");
|
|
9
|
+
var VistaChatSideBarV2 = function (_a) {
|
|
10
|
+
var sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode;
|
|
11
|
+
return (react_1.default.createElement("div", { className: "col-span-3 flex flex-col border-r border-gray-200 shadow-md" },
|
|
12
|
+
react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { heading: sideBarHeading || '' }),
|
|
13
|
+
sideBarNode && (react_1.default.createElement("div", { className: "divide flex-1 divide-y divide-gray-600 overflow-y-auto" }, sideBarNode))));
|
|
14
|
+
};
|
|
15
|
+
exports.VistaChatSideBarV2 = VistaChatSideBarV2;
|
|
@@ -12,15 +12,18 @@ var vista_button_v1_1 = require("../../molecules/vista-button-v1/vista-button-v1
|
|
|
12
12
|
var vista_button_type_1 = require("../../type/vista-button-type");
|
|
13
13
|
var vista_banner_v1_1 = require("../../atoms/vista-banner-v1/vista-banner-v1");
|
|
14
14
|
var vista_chat_messages_v2_1 = require("./vista-chat-messages-v2");
|
|
15
|
+
var vista_chat_side_bar_v2_1 = require("../../molecules/vista-chat-side-bar-v2/vista-chat-side-bar-v2");
|
|
15
16
|
var VistaChatV2 = function (_a) {
|
|
16
|
-
var actionItems = _a.actionItems, bannerDescription = _a.bannerDescription, bannerHeading = _a.bannerHeading, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, _b = _a.chatIsLoading, chatIsLoading = _b === void 0 ? false : _b, chatValue = _a.chatValue, _c = _a.containerClassName, containerClassName = _c === void 0 ? '' : _c, _d = _a.estimatedBalance, estimatedBalance = _d === void 0 ? '' : _d, handleChatOnChange = _a.handleChatOnChange, handleLoadMore = _a.handleLoadMore, handleOnBlur = _a.handleOnBlur, handleOnFocus = _a.handleOnFocus, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, _e = _a.showBanner, showBanner = _e === void 0 ? false : _e, _f = _a.showControls, showControls = _f === void 0 ? true : _f, showLoadMore = _a.showLoadMore, timer = _a.timer, typing = _a.typing, user = _a.user;
|
|
17
|
+
var actionItems = _a.actionItems, bannerDescription = _a.bannerDescription, bannerHeading = _a.bannerHeading, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, _b = _a.chatIsLoading, chatIsLoading = _b === void 0 ? false : _b, chatValue = _a.chatValue, _c = _a.containerClassName, containerClassName = _c === void 0 ? '' : _c, _d = _a.estimatedBalance, estimatedBalance = _d === void 0 ? '' : _d, handleChatOnChange = _a.handleChatOnChange, handleLoadMore = _a.handleLoadMore, handleOnBlur = _a.handleOnBlur, handleOnFocus = _a.handleOnFocus, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, _e = _a.showBanner, showBanner = _e === void 0 ? false : _e, _f = _a.showControls, showControls = _f === void 0 ? true : _f, showLoadMore = _a.showLoadMore, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer, typing = _a.typing, user = _a.user;
|
|
17
18
|
var handleOnKeyDown = function (e) {
|
|
18
19
|
if (e.key === 'Enter') {
|
|
19
20
|
actionItems[0].handleOnClick();
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
|
-
return (react_1.default.createElement("div", { className: "relative h-screen overflow-hidden max-w-7xl mx-auto ".concat(containerClassName) },
|
|
23
|
-
react_1.default.createElement("
|
|
23
|
+
return (react_1.default.createElement("div", { className: "relative h-screen overflow-hidden max-w-7xl mx-auto grid grid-cols-6 ".concat(containerClassName) },
|
|
24
|
+
react_1.default.createElement("div", { className: "col-span-1 h-full" },
|
|
25
|
+
react_1.default.createElement(vista_chat_side_bar_v2_1.VistaChatSideBarV2, { sideBarHeading: sideBarHeading, sideBarNode: sideBarNode })),
|
|
26
|
+
react_1.default.createElement("section", { className: "flex flex-col h-full col-span-5" },
|
|
24
27
|
react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { estimatedBalance: estimatedBalance, heading: name, timer: timer }),
|
|
25
28
|
showBanner && (react_1.default.createElement(vista_banner_v1_1.VistaBannerV1, { description: bannerDescription, heading: bannerHeading })),
|
|
26
29
|
react_1.default.createElement("div", { className: "overflow-y-auto h-full flex flex-col justify-end p-4" },
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { VISTA_BUTTON_VARIANT } from './vista-button-type';
|
|
2
3
|
export declare enum VISTA_CHAT_BUBBLE_TYPES {
|
|
3
4
|
PSYCHIC = "PSYCHIC",
|
|
@@ -62,6 +63,8 @@ export interface VistaChatV2Props {
|
|
|
62
63
|
showBanner?: boolean;
|
|
63
64
|
showControls?: boolean;
|
|
64
65
|
showLoadMore: boolean;
|
|
66
|
+
sideBarHeading?: string;
|
|
67
|
+
sideBarNode?: ReactNode;
|
|
65
68
|
timer: string;
|
|
66
69
|
typing?: string;
|
|
67
70
|
user: VistaChatV2User;
|