@appcorp/app-corp-vista 0.3.36 → 0.3.38
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
|
@@ -157,6 +157,48 @@ exports.vistaChatV2Props = {
|
|
|
157
157
|
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.READ,
|
|
158
158
|
isUser: true,
|
|
159
159
|
},
|
|
160
|
+
{
|
|
161
|
+
message: 'Hello from Psychic',
|
|
162
|
+
id: 'item-2',
|
|
163
|
+
createdAt: '2025-01-11T10:15:49.891',
|
|
164
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
|
|
165
|
+
isUser: false,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
message: 'Hello from User',
|
|
169
|
+
id: 'item-3',
|
|
170
|
+
createdAt: '2025-01-11T10:19:49.891',
|
|
171
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
|
|
172
|
+
isUser: true,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
message: 'Hello from User',
|
|
176
|
+
id: 'item-4',
|
|
177
|
+
createdAt: '2025-01-12T10:29:49.891',
|
|
178
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.READ,
|
|
179
|
+
isUser: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
message: 'Hello from Psychic',
|
|
183
|
+
id: 'item-2',
|
|
184
|
+
createdAt: '2025-01-11T10:15:49.891',
|
|
185
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
|
|
186
|
+
isUser: false,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
message: 'Hello from User',
|
|
190
|
+
id: 'item-3',
|
|
191
|
+
createdAt: '2025-01-11T10:19:49.891',
|
|
192
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
|
|
193
|
+
isUser: true,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
message: 'Hello from User',
|
|
197
|
+
id: 'item-4',
|
|
198
|
+
createdAt: '2025-01-12T10:29:49.891',
|
|
199
|
+
messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.READ,
|
|
200
|
+
isUser: true,
|
|
201
|
+
},
|
|
160
202
|
],
|
|
161
203
|
actionItems: [
|
|
162
204
|
{
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
"use strict";
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
15
|
+
var t = {};
|
|
16
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
17
|
+
t[p] = s[p];
|
|
18
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
19
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
20
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
21
|
+
t[p[i]] = s[p[i]];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
3
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
27
|
};
|
|
@@ -7,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
29
|
exports.VistaTextAreaV1 = void 0;
|
|
8
30
|
var react_1 = __importDefault(require("react"));
|
|
9
31
|
var VistaTextAreaV1 = function (_a) {
|
|
10
|
-
var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, error = _a.error, handleOnChange = _a.handleOnChange, id = _a.id, info = _a.info, label = _a.label, optional = _a.optional, placeholder = _a.placeholder, _e = _a.readOnly, readOnly = _e === void 0 ? false : _e, _f = _a.required, required = _f === void 0 ? false : _f, _g = _a.rows, rows = _g === void 0 ? 4 : _g, value = _a.value;
|
|
32
|
+
var _b = _a.autoFocus, autoFocus = _b === void 0 ? false : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, error = _a.error, handleOnChange = _a.handleOnChange, id = _a.id, info = _a.info, label = _a.label, optional = _a.optional, placeholder = _a.placeholder, _e = _a.readOnly, readOnly = _e === void 0 ? false : _e, _f = _a.required, required = _f === void 0 ? false : _f, _g = _a.rows, rows = _g === void 0 ? 4 : _g, value = _a.value, rest = __rest(_a, ["autoFocus", "className", "disabled", "error", "handleOnChange", "id", "info", "label", "optional", "placeholder", "readOnly", "required", "rows", "value"]);
|
|
11
33
|
return (react_1.default.createElement("div", null,
|
|
12
34
|
react_1.default.createElement("div", { className: "flex justify-between" },
|
|
13
35
|
react_1.default.createElement("label", { htmlFor: id, className: "block text-sm/6 font-medium text-gray-900 dark:text-white" },
|
|
@@ -16,9 +38,9 @@ var VistaTextAreaV1 = function (_a) {
|
|
|
16
38
|
required && react_1.default.createElement("sup", { className: "text-red-500" }, "*")),
|
|
17
39
|
optional && (react_1.default.createElement("span", { id: "".concat(id, "-optional"), className: "text-sm/6 text-gray-500" }, optional))),
|
|
18
40
|
react_1.default.createElement("div", { className: "mt-2" },
|
|
19
|
-
react_1.default.createElement("textarea", { autoFocus: autoFocus, className: "block w-full rounded-md border-0 bg-white/5 dark:bg-white/5 py-1.5 text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-200 focus:ring-2 focus:ring-inset focus:ring-primary disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-300 disabled:ring-gray-200 sm:text-sm/6 dark:disabled:bg-gray-800 dark:disabled:text-gray-400 dark:disabled:ring-gray-700 placeholder:text-gray-500 ".concat(className), cols: 200, disabled: disabled, id: id, name: id, onChange: function (e) {
|
|
41
|
+
react_1.default.createElement("textarea", __assign({ autoFocus: autoFocus, className: "block w-full rounded-md border-0 bg-white/5 dark:bg-white/5 py-1.5 text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-200 focus:ring-2 focus:ring-inset focus:ring-primary disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-300 disabled:ring-gray-200 sm:text-sm/6 dark:disabled:bg-gray-800 dark:disabled:text-gray-400 dark:disabled:ring-gray-700 placeholder:text-gray-500 ".concat(className), cols: 200, disabled: disabled, id: id, name: id, onChange: function (e) {
|
|
20
42
|
return handleOnChange(id, e.target.value);
|
|
21
|
-
}, placeholder: placeholder, readOnly: readOnly, required: required, rows: rows, value: value })),
|
|
43
|
+
}, placeholder: placeholder, readOnly: readOnly, required: required, rows: rows, value: value }, rest))),
|
|
22
44
|
info && !error && (react_1.default.createElement("p", { id: "".concat(id, "-info"), className: "mt-2 text-sm text-indigo-500" }, info)),
|
|
23
45
|
error && !info && (react_1.default.createElement("p", { id: "".concat(id, "-error"), className: "mt-2 text-sm text-red-500" }, error))));
|
|
24
46
|
};
|
|
@@ -23,7 +23,7 @@ var VistaChatV2 = function (_a) {
|
|
|
23
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
24
|
sideBarNode && (react_1.default.createElement("div", { className: "col-span-1 h-full" },
|
|
25
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 w-full mx-auto ".concat(!sideBarNode ? 'col-span-6' : 'col-span-5') },
|
|
26
|
+
react_1.default.createElement("section", { className: "flex flex-col h-full w-full mx-auto overflow-scroll ".concat(!sideBarNode ? 'col-span-6' : 'col-span-5') },
|
|
27
27
|
react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { estimatedBalance: estimatedBalance, heading: name, timer: timer }),
|
|
28
28
|
showBanner && (react_1.default.createElement(vista_banner_v1_1.VistaBannerV1, { description: bannerDescription, heading: bannerHeading })),
|
|
29
29
|
react_1.default.createElement("div", { className: "overflow-y-auto h-full flex flex-col justify-end p-4" },
|
package/package.json
CHANGED