@appcorp/app-corp-vista 0.1.89 → 0.1.91

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.
@@ -197,4 +197,5 @@ exports.vistaChatV2Props = {
197
197
  paymentLoading: '',
198
198
  handlePayment: function () { return void 0; },
199
199
  isBalanceLow: false,
200
+ typing: 'Username is typing...',
200
201
  };
@@ -13,7 +13,7 @@ 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, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, chatValue = _a.chatValue, _b = _a.containerClassName, containerClassName = _b === void 0 ? '' : _b, _c = _a.estimatedBalance, estimatedBalance = _c === void 0 ? '' : _c, handleChatOnChange = _a.handleChatOnChange, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer, user = _a.user;
16
+ var actionItems = _a.actionItems, buttonDenominations = _a.buttonDenominations, chatId = _a.chatId, chatValue = _a.chatValue, _b = _a.containerClassName, containerClassName = _b === void 0 ? '' : _b, _c = _a.estimatedBalance, estimatedBalance = _c === void 0 ? '' : _c, handleChatOnChange = _a.handleChatOnChange, handlePayment = _a.handlePayment, isBalanceLow = _a.isBalanceLow, messages = _a.messages, name = _a.name, paymentLoading = _a.paymentLoading, psychic = _a.psychic, sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode, timer = _a.timer, typing = _a.typing, user = _a.user;
17
17
  var renderChatMessages = function () {
18
18
  return (react_1.default.createElement("div", { className: 'overflow-y-scroll' }, messages.map((function (_a, ind) {
19
19
  var createdAt = _a.createdAt, id = _a.id, isUser = _a.isUser, message = _a.message;
@@ -37,6 +37,7 @@ var VistaChatV2 = function (_a) {
37
37
  var loading = _a.loading, value = _a.value;
38
38
  return (react_1.default.createElement(vista_button_v1_1.VistaButtonV1, { className: "min-w-[120px] disabled:cursor-not-allowed", disabled: paymentLoading === loading, handleOnClick: function () { return handlePayment(loading, value); }, key: value, label: "Top up $".concat(value), loading: paymentLoading === loading, size: vista_button_type_1.VISTA_BUTTON_SIZE.LG }));
39
39
  })))),
40
+ react_1.default.createElement("div", { className: 'pl-4' }, typing && (react_1.default.createElement("p", { className: 'text-xs italic pb-1 text-primary' }, typing))),
40
41
  react_1.default.createElement("div", { className: "flex flex-row items-center gap-4 border-t border-gray-200 p-4" },
41
42
  react_1.default.createElement("div", { className: 'w-full' },
42
43
  react_1.default.createElement(vista_text_input_v1_1.VistaTextInputV1, { handleOnChange: handleChatOnChange, id: chatId, placeholder: 'Enter message...', value: chatValue, handleOnKeyDown: handleOnKeyDown })),
@@ -44,6 +44,7 @@ var vista_shimmer_v1_1 = require("../../atoms/vista-shimmer-v1/vista-shimmer-v1"
44
44
  var vista_table_type_1 = require("../../type/vista-table-type");
45
45
  var uuid_1 = require("uuid");
46
46
  var react_photo_view_1 = require("react-photo-view");
47
+ var solid_1 = require("@heroicons/react/24/solid");
47
48
  require("react-photo-view/dist/react-photo-view.css");
48
49
  exports.TOOLTIP_OFFSET = -8;
49
50
  exports.rowClasses = 'odd:bg-gray-100 even:bg-gray-200 hover:bg-gray-300 dark:odd:bg-gray-800 dark:even:bg-gray-700 dark:hover:bg-gray-600';
@@ -76,6 +77,7 @@ var componentMap = (_a = {},
76
77
  var id = (0, uuid_1.v4)();
77
78
  return (react_1.default.createElement(vista_table_cell_v1_1.VistaTableCellV1, { key: id, label: v }));
78
79
  }))); },
80
+ _a[vista_table_type_1.VISTA_TABLE_CELL_TYPE.PDF] = function (val) { return (react_1.default.createElement("td", { className: exports.dataClasses, onClick: function () { return window.open(val, '_blank'); } }, val && (react_1.default.createElement(solid_1.DocumentIcon, { className: 'size-10' })))); },
79
81
  _a);
80
82
  var VistaTableBodyV1 = function (_a) {
81
83
  var colLength = _a.colLength, loading = _a.loading, pageLimit = _a.pageLimit, tableBodyCols = _a.tableBodyCols, tableBodyRows = _a.tableBodyRows, rowActions = _a.rowActions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
6
6
  "build:next": "next build",
@@ -55,5 +55,6 @@ export interface VistaChatV2Props {
55
55
  sideBarHeading: string;
56
56
  sideBarNode: ReactNode;
57
57
  timer: string;
58
+ typing?: string;
58
59
  user: VistaChatV2User;
59
60
  }
@@ -20,6 +20,7 @@ export declare enum VISTA_TABLE_CELL_TYPE {
20
20
  IMAGE = "IMAGE",
21
21
  MULTIPLE_TEXT_LINES = "MULTIPLE_TEXT_LINES",
22
22
  OBJECT = "OBJECT",
23
+ PDF = "PDF",
23
24
  TEXT = "TEXT"
24
25
  }
25
26
  export interface VistaTableV1Props {
@@ -10,5 +10,6 @@ var VISTA_TABLE_CELL_TYPE;
10
10
  VISTA_TABLE_CELL_TYPE["IMAGE"] = "IMAGE";
11
11
  VISTA_TABLE_CELL_TYPE["MULTIPLE_TEXT_LINES"] = "MULTIPLE_TEXT_LINES";
12
12
  VISTA_TABLE_CELL_TYPE["OBJECT"] = "OBJECT";
13
+ VISTA_TABLE_CELL_TYPE["PDF"] = "PDF";
13
14
  VISTA_TABLE_CELL_TYPE["TEXT"] = "TEXT";
14
15
  })(VISTA_TABLE_CELL_TYPE || (exports.VISTA_TABLE_CELL_TYPE = VISTA_TABLE_CELL_TYPE = {}));