@appcorp/app-corp-vista 0.1.13 → 0.1.15

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.
@@ -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 = [
@@ -112,7 +116,8 @@ exports.vistaChatV2Props = {
112
116
  chatId: 'id',
113
117
  chatValue: '',
114
118
  handleChatOnChange: function () { return void 0; },
115
- sectionHeading: 'Psychic Tools',
119
+ sideBarHeading: 'Psychic Tools',
120
+ sideBarNode: react_1.default.createElement("p", null, "Hello World"),
116
121
  name: 'John Doe',
117
122
  timer: '00:20',
118
123
  user: {
@@ -1,6 +1,3 @@
1
1
  import { FC } from 'react';
2
- interface Props {
3
- sectionHeading: string;
4
- }
5
- export declare const VistaChatSideBarV2: FC<Props>;
6
- export {};
2
+ import { VistaChatV2Props } from '../../type/vista-chat-type';
3
+ export declare const VistaChatSideBarV2: FC<Pick<VistaChatV2Props, 'sideBarHeading' | 'sideBarNode'>>;
@@ -7,11 +7,9 @@ exports.VistaChatSideBarV2 = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var vista_chat_heading_v1_1 = require("../vista-chat-heading-v1/vista-chat-heading-v1");
9
9
  var VistaChatSideBarV2 = function (_a) {
10
- var sectionHeading = _a.sectionHeading;
10
+ var sideBarHeading = _a.sideBarHeading, sideBarNode = _a.sideBarNode;
11
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: sectionHeading }),
13
- react_1.default.createElement("div", { className: "divide flex-1 divide-y divide-gray-600 overflow-y-auto" }, new Array(1).map(function (_, i) { return (
14
- // <VistaChatListItemV1 key={item.firstName} {...item} />
15
- react_1.default.createElement("div", { key: i }, "Jello")); }))));
12
+ react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { heading: sideBarHeading }),
13
+ react_1.default.createElement("div", { className: "divide flex-1 divide-y divide-gray-600 overflow-y-auto" }, sideBarNode)));
16
14
  };
17
15
  exports.VistaChatSideBarV2 = VistaChatSideBarV2;
@@ -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, chatId = _a.chatId, chatValue = _a.chatValue, handleChatOnChange = _a.handleChatOnChange, messages = _a.messages, psychic = _a.psychic, sectionHeading = _a.sectionHeading, timer = _a.timer, user = _a.user, name = _a.name;
16
+ var actionItems = _a.actionItems, chatId = _a.chatId, chatValue = _a.chatValue, handleChatOnChange = _a.handleChatOnChange, messages = _a.messages, psychic = _a.psychic, sideBarHeading = _a.sideBarHeading, timer = _a.timer, user = _a.user, name = _a.name, sideBarNode = _a.sideBarNode;
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;
@@ -21,7 +21,7 @@ var VistaChatV2 = function (_a) {
21
21
  }))));
22
22
  };
23
23
  return (react_1.default.createElement("div", { className: "relative h-screen grid grid-cols-12 grid-rows-1 overflow-hidden" },
24
- react_1.default.createElement(vista_chat_side_bar_v2_1.VistaChatSideBarV2, { sectionHeading: sectionHeading }),
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 }),
27
27
  react_1.default.createElement("div", { className: "overflow-hidden h-full" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
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",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {},
30
30
  "devDependencies": {
31
- "@appcorp/app-corp-designs": "^0.4.64",
31
+ "@appcorp/app-corp-designs": "^0.4.76",
32
32
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
33
33
  "@fortawesome/react-fontawesome": "^0.2.2",
34
34
  "@headlessui/react": "^2.2.0",
@@ -69,7 +69,7 @@
69
69
  "eslint-config-next": "^15",
70
70
  "eslint-plugin-storybook": "^0.11.2",
71
71
  "fast-glob": "^3.3.3",
72
- "framer-motion": "^12.4.2",
72
+ "framer-motion": "^12",
73
73
  "husky": "^9.1.7",
74
74
  "next": "^15",
75
75
  "next-intl": "^3.26.3",
@@ -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",
@@ -41,7 +42,8 @@ export interface VistaChatV2Props {
41
42
  messages: VistaChatV2Message[];
42
43
  name: string;
43
44
  psychic: VistaChatV2Psychic;
44
- sectionHeading: string;
45
+ sideBarHeading: string;
46
+ sideBarNode: ReactNode;
45
47
  timer: string;
46
48
  user: VistaChatV2User;
47
49
  }