@appcorp/app-corp-vista 0.3.8 → 0.3.11

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.
@@ -135,28 +135,28 @@ exports.vistaChatV2Props = {
135
135
  message: 'Hello from User',
136
136
  id: 'item-1',
137
137
  createdAt: '2025-01-11T10:09:49.891',
138
- // status: 'DELIVERED',
138
+ messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
139
139
  isUser: true,
140
140
  },
141
141
  {
142
142
  message: 'Hello from Psychic',
143
143
  id: 'item-2',
144
144
  createdAt: '2025-01-11T10:15:49.891',
145
- // status: 'DELIVERED',
145
+ messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
146
146
  isUser: false,
147
147
  },
148
148
  {
149
149
  message: 'Hello from User',
150
150
  id: 'item-3',
151
151
  createdAt: '2025-01-11T10:19:49.891',
152
- // status: 'DELIVERED',
152
+ messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
153
153
  isUser: true,
154
154
  },
155
155
  {
156
156
  message: 'Hello from User',
157
157
  id: 'item-4',
158
158
  createdAt: '2025-01-12T10:29:49.891',
159
- // status: 'DELIVERED',
159
+ messageStatus: vista_chat_type_1.VISTA_CHAT_MESSAGE_STATUS.DELIVERED,
160
160
  isUser: true,
161
161
  },
162
162
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/app-corp-vista",
3
- "version": "0.3.8",
3
+ "version": "0.3.11",
4
4
  "scripts": {
5
5
  "build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
6
6
  "build:next": "next build",
@@ -58,7 +58,7 @@ var VistaAuthV1 = function (_a) {
58
58
  react_1.default.createElement(image_1.default, { width: 20, height: 20, alt: label, src: icon }),
59
59
  react_1.default.createElement("span", { className: "text-sm/6 font-semibold" }, label)));
60
60
  }),
61
- react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, { checked: termsOfUseChecked, description: termsOfUseDescription, error: termsOfUseError, handleOnChange: termsOfUseHandleOnChange, heading: termsOfUseHeading, id: termsOfUseId, route: termsOfUseRoute })))),
61
+ termsOfUseId && (react_1.default.createElement(vista_checkbox_v2_1.VistaCheckboxV2, { checked: termsOfUseChecked, description: termsOfUseDescription, error: termsOfUseError, handleOnChange: termsOfUseHandleOnChange, heading: termsOfUseHeading, id: termsOfUseId, route: termsOfUseRoute }))))),
62
62
  react_1.default.createElement("div", { className: "relative hidden w-0 flex-1 lg:block ".concat(reverted ? 'order-1' : 'order-2') },
63
63
  react_1.default.createElement(image_1.default, { alt: bannerAlt, className: "absolute inset-0 size-full object-cover ".concat(reverted ? '' : 'scale-x-[-1]'), fill: true, height: 0, priority: true, sizes: "60vw", src: banner, width: 0 }),
64
64
  label && (react_1.default.createElement("div", { className: "absolute top-14 bg-primary px-6 py-2 ".concat(reverted ? 'right-0' : 'left-0') },
@@ -4,9 +4,9 @@ export declare enum VISTA_CHAT_BUBBLE_TYPES {
4
4
  PSYCHIC = "PSYCHIC",
5
5
  USER = "USER"
6
6
  }
7
- export declare enum VISTA_CHAT_BUBBLE_STATUS {
7
+ export declare enum VISTA_CHAT_MESSAGE_STATUS {
8
8
  DELIVERED = "DELIVERED",
9
- VIEWED = "VIEWED"
9
+ READ = "READ"
10
10
  }
11
11
  export interface VistaChatV1Props {
12
12
  currentUser: VISTA_CHAT_BUBBLE_TYPES;
@@ -30,10 +30,11 @@ export interface VistaChatV2Psychic {
30
30
  avatarAlt: string;
31
31
  }
32
32
  export interface VistaChatV2Message {
33
- createdAt: string;
34
- id: string;
35
- isUser: boolean;
33
+ messageStatus: VISTA_CHAT_MESSAGE_STATUS;
36
34
  message: string;
35
+ isUser: boolean;
36
+ id: string;
37
+ createdAt: string;
37
38
  }
38
39
  export interface ButtonDenomination {
39
40
  loading: string;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/no-explicit-any */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VISTA_CHAT_BUBBLE_STATUS = exports.VISTA_CHAT_BUBBLE_TYPES = void 0;
4
+ exports.VISTA_CHAT_MESSAGE_STATUS = exports.VISTA_CHAT_BUBBLE_TYPES = void 0;
5
5
  var VISTA_CHAT_BUBBLE_TYPES;
6
6
  (function (VISTA_CHAT_BUBBLE_TYPES) {
7
7
  VISTA_CHAT_BUBBLE_TYPES["PSYCHIC"] = "PSYCHIC";
8
8
  VISTA_CHAT_BUBBLE_TYPES["USER"] = "USER";
9
9
  })(VISTA_CHAT_BUBBLE_TYPES || (exports.VISTA_CHAT_BUBBLE_TYPES = VISTA_CHAT_BUBBLE_TYPES = {}));
10
- var VISTA_CHAT_BUBBLE_STATUS;
11
- (function (VISTA_CHAT_BUBBLE_STATUS) {
12
- VISTA_CHAT_BUBBLE_STATUS["DELIVERED"] = "DELIVERED";
13
- VISTA_CHAT_BUBBLE_STATUS["VIEWED"] = "VIEWED";
14
- })(VISTA_CHAT_BUBBLE_STATUS || (exports.VISTA_CHAT_BUBBLE_STATUS = VISTA_CHAT_BUBBLE_STATUS = {}));
10
+ var VISTA_CHAT_MESSAGE_STATUS;
11
+ (function (VISTA_CHAT_MESSAGE_STATUS) {
12
+ VISTA_CHAT_MESSAGE_STATUS["DELIVERED"] = "DELIVERED";
13
+ VISTA_CHAT_MESSAGE_STATUS["READ"] = "READ";
14
+ })(VISTA_CHAT_MESSAGE_STATUS || (exports.VISTA_CHAT_MESSAGE_STATUS = VISTA_CHAT_MESSAGE_STATUS = {}));