@appcorp/app-corp-vista 0.0.48 → 0.0.50

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.
@@ -113,6 +113,8 @@ exports.vistaChatV2Props = {
113
113
  chatValue: '',
114
114
  handleChatOnChange: function () { return void 0; },
115
115
  sectionHeading: 'Psychic Tools',
116
+ name: 'John Doe',
117
+ timer: '00:20',
116
118
  user: {
117
119
  avatarUrl: '',
118
120
  avatarAlt: '',
@@ -1,6 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  interface Props {
3
3
  heading: string;
4
+ timer?: string;
4
5
  }
5
6
  export declare const VistaChatHeadingV1: FC<Props>;
6
7
  export {};
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VistaChatHeadingV1 = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var VistaChatHeadingV1 = function (_a) {
9
- var heading = _a.heading;
10
- return (react_1.default.createElement("div", { className: "border-b border-gray-200 p-4 text-black dark:text-white" },
11
- react_1.default.createElement("p", { className: "text-lg font-semibold" }, heading)));
9
+ var heading = _a.heading, timer = _a.timer;
10
+ return (react_1.default.createElement("div", { className: "border-b border-gray-200 p-4 text-black dark:text-white flex flex-row justify-between" },
11
+ react_1.default.createElement("p", { className: "text-lg font-semibold" }, heading),
12
+ timer && (react_1.default.createElement("p", null, timer))));
12
13
  };
13
14
  exports.VistaChatHeadingV1 = VistaChatHeadingV1;
@@ -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, sectionHeading = _a.sectionHeading, messages = _a.messages, user = _a.user, psychic = _a.psychic;
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;
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;
@@ -23,7 +23,7 @@ var VistaChatV2 = function (_a) {
23
23
  return (react_1.default.createElement("div", { className: "relative h-screen grid grid-cols-12 grid-rows-1 overflow-hidden" },
24
24
  react_1.default.createElement(vista_chat_side_bar_v2_1.VistaChatSideBarV2, { sectionHeading: sectionHeading }),
25
25
  react_1.default.createElement("section", { className: "col-span-9 flex flex-col" },
26
- react_1.default.createElement(vista_chat_heading_v1_1.VistaChatHeadingV1, { heading: "Doris Brown" }),
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" },
28
28
  react_1.default.createElement("div", { className: "h-full flex flex-col justify-end overflow-y-auto p-4" }, renderChatMessages())),
29
29
  react_1.default.createElement("div", { className: "flex flex-row items-center gap-4 border-t border-gray-200 p-4" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
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.45",
31
+ "@appcorp/app-corp-designs": "^0.4.62",
32
32
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
33
33
  "@fortawesome/react-fontawesome": "^0.2.2",
34
34
  "@headlessui/react": "^2.2.0",
@@ -36,47 +36,47 @@
36
36
  "@heroicons/react": "^2.2.0",
37
37
  "@mdx-js/loader": "^3.1.0",
38
38
  "@mdx-js/react": "^3.1.0",
39
- "@mdxeditor/editor": "^3.20.0",
40
- "@next/third-parties": "^15.1.3",
39
+ "@mdxeditor/editor": "^3.21.0",
40
+ "@next/third-parties": "^15",
41
41
  "@react-jvectormap/core": "^1.0.4",
42
42
  "@react-jvectormap/world": "^1.1.2",
43
43
  "@react-pakistan/react-icon-collection": "^3.5.0",
44
- "@react-pakistan/util-functions": "^1.23.34",
44
+ "@react-pakistan/util-functions": "^1.23.37",
45
45
  "@remixicon/react": "^4.6.0",
46
- "@storybook/addon-essentials": "8.4.7",
47
- "@storybook/addon-interactions": "8.4.7",
48
- "@storybook/addon-links": "8.4.7",
49
- "@storybook/addon-onboarding": "^8.4.7",
50
- "@storybook/addon-themes": "^8.4.7",
51
- "@storybook/blocks": "8.4.7",
52
- "@storybook/nextjs": "8.4.7",
53
- "@storybook/react": "8.4.7",
54
- "@storybook/test": "8.4.7",
55
- "@storybook/types": "8.4.7",
56
- "@tailwindcss/forms": "^0.5.9",
46
+ "@storybook/addon-essentials": "8.5.1",
47
+ "@storybook/addon-interactions": "8.5.1",
48
+ "@storybook/addon-links": "8.5.1",
49
+ "@storybook/addon-onboarding": "^8.5.1",
50
+ "@storybook/addon-themes": "^8.5.1",
51
+ "@storybook/blocks": "8.5.1",
52
+ "@storybook/nextjs": "8.5.1",
53
+ "@storybook/react": "8.5.1",
54
+ "@storybook/test": "8.5.1",
55
+ "@storybook/types": "8.5.1",
56
+ "@tailwindcss/forms": "^0.5.10",
57
+ "@tailwindcss/postcss": "^4.0.0",
57
58
  "@types/node": "^22",
58
59
  "@types/react": "^19",
59
- "@types/react-day-picker": "^5.3.0",
60
60
  "@types/react-dom": "^19",
61
61
  "autoprefixer": "^10.4.20",
62
62
  "clsx": "^2.1.1",
63
- "concurrently": "^9.1.1",
63
+ "concurrently": "^9.1.2",
64
64
  "date-fns": "^4.1.0",
65
65
  "eslint": "^9",
66
- "eslint-config-next": "15.1.3",
67
- "eslint-plugin-storybook": "^0.11.1",
68
- "fast-glob": "^3.3.2",
69
- "framer-motion": "^11.15.0",
66
+ "eslint-config-next": "^15",
67
+ "eslint-plugin-storybook": "^0.11.2",
68
+ "fast-glob": "^3.3.3",
69
+ "framer-motion": "^12.0.5",
70
70
  "husky": "^9.1.7",
71
- "next": "^15.1.3",
71
+ "next": "^15",
72
72
  "next-intl": "^3.26.3",
73
73
  "next-themes": "^0.4.4",
74
74
  "postcss": "^8",
75
- "react": "^19.0.0",
76
- "react-dom": "^19.0.0",
77
- "storybook": "8.4.7",
75
+ "react": "^19",
76
+ "react-dom": "^19",
77
+ "storybook": "8.5.1",
78
78
  "swr": "^2.3.0",
79
- "tailwindcss": "^3.4.17",
79
+ "tailwindcss": "^4.0.0",
80
80
  "tailwindcss-animate": "^1.0.7",
81
81
  "typescript": "^5"
82
82
  },
@@ -38,8 +38,10 @@ export interface VistaChatV2Props {
38
38
  chatId: string;
39
39
  chatValue: string;
40
40
  handleChatOnChange: (k: string, v: string) => void;
41
- sectionHeading: string;
42
41
  messages: VistaChatV2Message[];
43
- user: VistaChatV2User;
42
+ name: string;
44
43
  psychic: VistaChatV2Psychic;
44
+ sectionHeading: string;
45
+ timer: string;
46
+ user: VistaChatV2User;
45
47
  }