@axos-web-dev/shared-components 1.0.100-dev.53-chat-revamp.2 → 1.0.100-dev.53-chat-revamp.3
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/dist/Chatbot/ChatWindow.d.ts +1 -1
- package/dist/Chatbot/ChatWindow.js +15 -155
- package/dist/Chatbot/ChatbotMessage.d.ts +16 -0
- package/dist/Chatbot/ChatbotMessage.js +189 -0
- package/dist/Chatbot/store/messages.d.ts +1 -1
- package/dist/Chatbot/store/messages.js +12 -3
- package/dist/assets/Chatbot/ChatWindow.css +1 -1
- package/dist/assets/themes/axos.css +1 -0
- package/dist/assets/themes/premier.css +1 -0
- package/dist/assets/themes/ufb.css +1 -0
- package/dist/assets/themes/victorie.css +1 -0
- package/dist/themes/axos.css.d.ts +1 -0
- package/dist/themes/axos.css.js +1 -1
- package/package.json +1 -1
|
@@ -6,12 +6,11 @@ import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import clsx from "clsx";
|
|
9
|
-
import React, { useRef, useEffect
|
|
10
|
-
import ReactMarkdown from "react-markdown";
|
|
9
|
+
import React, { useRef, useEffect } from "react";
|
|
11
10
|
import { useNetworkState, useMount } from "react-use";
|
|
12
|
-
import remarkGfm from "remark-gfm";
|
|
13
11
|
import { gradientFocus } from "./AnimatedGradientBorder.css.js";
|
|
14
|
-
import {
|
|
12
|
+
import { ChatbotMessage } from "./ChatbotMessage.js";
|
|
13
|
+
import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, messagesContainerStyle, inputStyle, autoResize, sendButtonStyle, windowStyle, windowOpenStyle } from "./ChatWindow.css.js";
|
|
15
14
|
import EllipsisLoader from "./EllipsisAnimation.js";
|
|
16
15
|
import { EllipsisIcon } from "./EllipsisIcon.js";
|
|
17
16
|
import { useOpenChat } from "./store/chat.js";
|
|
@@ -408,157 +407,18 @@ const ChatWindow = ({
|
|
|
408
407
|
)
|
|
409
408
|
}
|
|
410
409
|
),
|
|
411
|
-
messages?.map((msg) => /* @__PURE__ */
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
/* @__PURE__ */ jsxs(
|
|
424
|
-
"div",
|
|
425
|
-
{
|
|
426
|
-
className: notificationStyle,
|
|
427
|
-
style: { fontSize: 12 },
|
|
428
|
-
children: [
|
|
429
|
-
"Our chat team is available weekdays, 8am-5pm, except federal bank holidays. For immediate assistance you can reach out to us at ",
|
|
430
|
-
/* @__PURE__ */ jsx("a", { href: "tel:1-888-502-2967", children: "1-888-502-2967" }),
|
|
431
|
-
"."
|
|
432
|
-
]
|
|
433
|
-
},
|
|
434
|
-
msg.$index
|
|
435
|
-
),
|
|
436
|
-
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx(
|
|
437
|
-
"button",
|
|
438
|
-
{
|
|
439
|
-
className: endChatButtonStyle,
|
|
440
|
-
onClick: onCancelEndChat,
|
|
441
|
-
children: "End Chat"
|
|
442
|
-
}
|
|
443
|
-
) })
|
|
444
|
-
] }),
|
|
445
|
-
["text", "markdown_template", "markdown"].includes(msg.type) && /* @__PURE__ */ jsx(
|
|
446
|
-
"div",
|
|
447
|
-
{
|
|
448
|
-
className: clsx(
|
|
449
|
-
messageStyle,
|
|
450
|
-
msg.$userType == "end_user" ? user_msg : agent_msg
|
|
451
|
-
),
|
|
452
|
-
children: /* @__PURE__ */ jsxs(
|
|
453
|
-
"div",
|
|
454
|
-
{
|
|
455
|
-
style: {
|
|
456
|
-
fontSize: 14,
|
|
457
|
-
display: "flex",
|
|
458
|
-
flexDirection: "column",
|
|
459
|
-
gap: 4
|
|
460
|
-
},
|
|
461
|
-
children: [
|
|
462
|
-
msg.$userType == "virtual_agent" && /* @__PURE__ */ jsxs(
|
|
463
|
-
"div",
|
|
464
|
-
{
|
|
465
|
-
style: {
|
|
466
|
-
display: "flex",
|
|
467
|
-
alignItems: "center",
|
|
468
|
-
gap: "8px"
|
|
469
|
-
},
|
|
470
|
-
children: [
|
|
471
|
-
showAvatar && /* @__PURE__ */ jsx(
|
|
472
|
-
"img",
|
|
473
|
-
{
|
|
474
|
-
width: 24,
|
|
475
|
-
height: 24,
|
|
476
|
-
src: virtualAgent?.avatar_url,
|
|
477
|
-
alt: "agent avatar"
|
|
478
|
-
}
|
|
479
|
-
),
|
|
480
|
-
showName && /* @__PURE__ */ jsx("strong", { children: virtualAgent?.name })
|
|
481
|
-
]
|
|
482
|
-
}
|
|
483
|
-
),
|
|
484
|
-
msg.$userType != "end_user" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
485
|
-
ReactMarkdown,
|
|
486
|
-
{
|
|
487
|
-
remarkPlugins: [[remarkGfm, { singleTilde: false }]],
|
|
488
|
-
components: {
|
|
489
|
-
p: ({ ...props }) => /* @__PURE__ */ jsx(
|
|
490
|
-
"p",
|
|
491
|
-
{
|
|
492
|
-
style: { margin: 0, fontSize: "inherit" },
|
|
493
|
-
title: new Date(
|
|
494
|
-
msg.$timestamp
|
|
495
|
-
).toLocaleTimeString([], {
|
|
496
|
-
hour: "2-digit",
|
|
497
|
-
minute: "2-digit"
|
|
498
|
-
}),
|
|
499
|
-
...props
|
|
500
|
-
}
|
|
501
|
-
)
|
|
502
|
-
},
|
|
503
|
-
children: msg.content
|
|
504
|
-
}
|
|
505
|
-
) }) : /* @__PURE__ */ jsx(
|
|
506
|
-
"div",
|
|
507
|
-
{
|
|
508
|
-
title: new Date(msg.$timestamp).toLocaleTimeString([], {
|
|
509
|
-
hour: "2-digit",
|
|
510
|
-
minute: "2-digit"
|
|
511
|
-
}),
|
|
512
|
-
children: msg.content
|
|
513
|
-
}
|
|
514
|
-
)
|
|
515
|
-
]
|
|
516
|
-
}
|
|
517
|
-
)
|
|
518
|
-
},
|
|
519
|
-
msg.$index
|
|
520
|
-
),
|
|
521
|
-
msg.type == "inline_button" && Array.isArray(msg.buttons) && msg.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: inline_button_wrapper, children: msg.buttons.length !== 0 && Array.isArray(msg.buttons) && msg.buttons.map((button, index) => {
|
|
522
|
-
return /* @__PURE__ */ jsx(
|
|
523
|
-
"button",
|
|
524
|
-
{
|
|
525
|
-
className: inline_button,
|
|
526
|
-
onClick: () => {
|
|
527
|
-
onSend(button?.title);
|
|
528
|
-
},
|
|
529
|
-
children: button.title
|
|
530
|
-
},
|
|
531
|
-
index
|
|
532
|
-
);
|
|
533
|
-
}) }),
|
|
534
|
-
msg.event == "chatEnded" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
535
|
-
/* @__PURE__ */ jsxs(
|
|
536
|
-
"div",
|
|
537
|
-
{
|
|
538
|
-
title: (/* @__PURE__ */ new Date()).toLocaleString(),
|
|
539
|
-
style: {
|
|
540
|
-
fontSize: 12,
|
|
541
|
-
color: "#888",
|
|
542
|
-
marginBottom: 4,
|
|
543
|
-
textAlign: "center"
|
|
544
|
-
},
|
|
545
|
-
children: [
|
|
546
|
-
"Thank you for chatting!",
|
|
547
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
548
|
-
" This conversation has ended."
|
|
549
|
-
]
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx(
|
|
553
|
-
"button",
|
|
554
|
-
{
|
|
555
|
-
className: endChatButtonStyle,
|
|
556
|
-
onClick: onCancelEndChat,
|
|
557
|
-
children: "End Chat"
|
|
558
|
-
}
|
|
559
|
-
) })
|
|
560
|
-
] })
|
|
561
|
-
] }, msg.$index)),
|
|
410
|
+
messages?.map((msg) => /* @__PURE__ */ jsx(
|
|
411
|
+
ChatbotMessage,
|
|
412
|
+
{
|
|
413
|
+
msg,
|
|
414
|
+
onSend,
|
|
415
|
+
showAvatar,
|
|
416
|
+
showName,
|
|
417
|
+
virtualAgent,
|
|
418
|
+
onCancelEndChat
|
|
419
|
+
},
|
|
420
|
+
msg?.$index
|
|
421
|
+
)),
|
|
562
422
|
showReconnect && /* @__PURE__ */ jsx(
|
|
563
423
|
"button",
|
|
564
424
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MessageResponse as BaseMessageResponse, HumanAgent, VirtualAgent } from '@ujet/websdk-headless';
|
|
3
|
+
|
|
4
|
+
interface MessageResponse extends BaseMessageResponse {
|
|
5
|
+
to_agent?: HumanAgent;
|
|
6
|
+
}
|
|
7
|
+
interface ChatbotMessageProps {
|
|
8
|
+
msg: MessageResponse;
|
|
9
|
+
showAvatar?: boolean;
|
|
10
|
+
showName?: boolean;
|
|
11
|
+
virtualAgent?: VirtualAgent | null;
|
|
12
|
+
onCancelEndChat?: () => void;
|
|
13
|
+
onSend?: (content: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const ChatbotMessage: FC<ChatbotMessageProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import ReactMarkdown from "react-markdown";
|
|
5
|
+
import remarkGfm from "remark-gfm";
|
|
6
|
+
import { vars } from "../themes/axos.css.js";
|
|
7
|
+
import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import clsx from "clsx";
|
|
12
|
+
import { notificationStyle, endChatButtonStyle, messageStyle, user_msg, agent_msg, inline_button_wrapper, inline_button } from "./ChatWindow.css.js";
|
|
13
|
+
function timeAgo(date) {
|
|
14
|
+
const seconds = Math.floor(((/* @__PURE__ */ new Date()).getTime() - date.getTime()) / 1e3);
|
|
15
|
+
if (seconds < 60) return "Just now";
|
|
16
|
+
return new Date(date).toLocaleTimeString([], {
|
|
17
|
+
hour: "2-digit",
|
|
18
|
+
minute: "2-digit"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const ChatbotMessage = ({
|
|
22
|
+
msg,
|
|
23
|
+
showAvatar,
|
|
24
|
+
showName,
|
|
25
|
+
virtualAgent,
|
|
26
|
+
onCancelEndChat,
|
|
27
|
+
onSend
|
|
28
|
+
}) => {
|
|
29
|
+
const [timeText, setTimeText] = useState(timeAgo(msg.$timestamp));
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const interval = setInterval(() => {
|
|
32
|
+
setTimeText(timeAgo(msg.$timestamp));
|
|
33
|
+
}, 3e4);
|
|
34
|
+
return () => clearInterval(interval);
|
|
35
|
+
}, [msg.$timestamp]);
|
|
36
|
+
if (msg.$sid === "typing-1") {
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { children: "IA is thinking..." });
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
|
+
msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationStarted" && /* @__PURE__ */ jsx("div", { className: notificationStyle, children: "We are connecting you with a human agent..." }, msg.$index),
|
|
41
|
+
msg.type == "noti" && msg.$userType == "system" && msg.event == "memberLeft" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
|
|
42
|
+
/* @__PURE__ */ jsx("strong", { children: "Virtual Agent" }),
|
|
43
|
+
" just left the conversation."
|
|
44
|
+
] }, msg.$index),
|
|
45
|
+
msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationAccepted" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
|
|
46
|
+
"You are now connected with a",
|
|
47
|
+
" ",
|
|
48
|
+
msg.to_agent ? /* @__PURE__ */ jsx("strong", { children: msg?.to_agent?.name }) : "an agent"
|
|
49
|
+
] }, msg.$index),
|
|
50
|
+
msg.type == "noti" && msg.$userType == "virtual_agent" && msg.event == "escalationDeflected" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ jsxs(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: notificationStyle,
|
|
55
|
+
style: { fontSize: 12 },
|
|
56
|
+
children: [
|
|
57
|
+
"Our chat team is available weekdays, 8am-5pm, except federal bank holidays. For immediate assistance you can reach out to us at",
|
|
58
|
+
" ",
|
|
59
|
+
/* @__PURE__ */ jsx("a", { href: "tel:1-888-502-2967", children: "1-888-502-2967" }),
|
|
60
|
+
"."
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
msg.$index
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onCancelEndChat, children: "End Chat" }) })
|
|
66
|
+
] }),
|
|
67
|
+
["text", "markdown_template", "markdown"].includes(msg.type) && /* @__PURE__ */ jsx(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: clsx(
|
|
71
|
+
messageStyle,
|
|
72
|
+
msg.$userType == "end_user" ? user_msg : agent_msg
|
|
73
|
+
),
|
|
74
|
+
children: /* @__PURE__ */ jsxs(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
style: {
|
|
78
|
+
fontSize: 14,
|
|
79
|
+
display: "flex",
|
|
80
|
+
flexDirection: "column",
|
|
81
|
+
gap: 4
|
|
82
|
+
},
|
|
83
|
+
children: [
|
|
84
|
+
msg.$userType == "virtual_agent" && /* @__PURE__ */ jsxs(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
style: {
|
|
88
|
+
display: "flex",
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
gap: "8px"
|
|
91
|
+
},
|
|
92
|
+
children: [
|
|
93
|
+
showAvatar && /* @__PURE__ */ jsx(
|
|
94
|
+
"img",
|
|
95
|
+
{
|
|
96
|
+
width: 24,
|
|
97
|
+
height: 24,
|
|
98
|
+
src: virtualAgent?.avatar_url,
|
|
99
|
+
alt: "agent avatar"
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
showName && /* @__PURE__ */ jsx("strong", { children: virtualAgent?.name })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
msg.$userType != "end_user" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
107
|
+
ReactMarkdown,
|
|
108
|
+
{
|
|
109
|
+
remarkPlugins: [[remarkGfm, { singleTilde: false }]],
|
|
110
|
+
components: {
|
|
111
|
+
p: ({ ...props }) => /* @__PURE__ */ jsx(
|
|
112
|
+
"p",
|
|
113
|
+
{
|
|
114
|
+
style: { margin: 0, fontSize: "inherit" },
|
|
115
|
+
title: new Date(msg.$timestamp).toLocaleTimeString([], {
|
|
116
|
+
hour: "2-digit",
|
|
117
|
+
minute: "2-digit"
|
|
118
|
+
}),
|
|
119
|
+
...props
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
},
|
|
123
|
+
children: msg.content
|
|
124
|
+
}
|
|
125
|
+
) }) : /* @__PURE__ */ jsx(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
title: new Date(msg.$timestamp).toLocaleTimeString([], {
|
|
129
|
+
hour: "2-digit",
|
|
130
|
+
minute: "2-digit"
|
|
131
|
+
}),
|
|
132
|
+
children: msg.content
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
},
|
|
139
|
+
msg.$index
|
|
140
|
+
),
|
|
141
|
+
msg.type == "inline_button" && Array.isArray(msg.buttons) && msg.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: inline_button_wrapper, children: msg.buttons.length !== 0 && Array.isArray(msg.buttons) && msg.buttons.map((button, index) => {
|
|
142
|
+
return /* @__PURE__ */ jsx(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
className: inline_button,
|
|
146
|
+
onClick: () => {
|
|
147
|
+
onSend?.(button?.title);
|
|
148
|
+
},
|
|
149
|
+
children: button.title
|
|
150
|
+
},
|
|
151
|
+
index
|
|
152
|
+
);
|
|
153
|
+
}) }),
|
|
154
|
+
msg.event == "chatEnded" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
155
|
+
/* @__PURE__ */ jsxs(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
title: (/* @__PURE__ */ new Date()).toLocaleString(),
|
|
159
|
+
style: {
|
|
160
|
+
fontSize: 12,
|
|
161
|
+
color: "#888",
|
|
162
|
+
marginBottom: 4,
|
|
163
|
+
textAlign: "center"
|
|
164
|
+
},
|
|
165
|
+
children: [
|
|
166
|
+
"Thank you for chatting!",
|
|
167
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
168
|
+
" This conversation has ended."
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onCancelEndChat, children: "End Chat" }) })
|
|
173
|
+
] }),
|
|
174
|
+
msg.type == "text" && /* @__PURE__ */ jsx(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
style: {
|
|
178
|
+
textAlign: msg.$userType === "end_user" ? "right" : "left",
|
|
179
|
+
fontSize: 12,
|
|
180
|
+
color: vars.chatbot.window.timestampColor
|
|
181
|
+
},
|
|
182
|
+
children: timeText
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] });
|
|
186
|
+
};
|
|
187
|
+
export {
|
|
188
|
+
ChatbotMessage
|
|
189
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageResponse } from '@ujet/websdk-headless';
|
|
2
2
|
|
|
3
3
|
interface MessageStore {
|
|
4
|
-
messages: MessageResponse
|
|
4
|
+
messages: Array<MessageResponse>;
|
|
5
5
|
addMessage: (message: MessageResponse) => void;
|
|
6
6
|
removeMessage: (id: string) => void;
|
|
7
7
|
addMessages: (newMessages: MessageResponse[]) => void;
|
|
@@ -2,9 +2,18 @@ import { create } from "zustand";
|
|
|
2
2
|
const useMessages = create((set) => ({
|
|
3
3
|
messages: [],
|
|
4
4
|
addMessage: (message) => set((state) => ({ messages: [...state.messages, message] })),
|
|
5
|
-
removeMessage: (id) =>
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
removeMessage: (id) => (
|
|
6
|
+
// set((state) => ({
|
|
7
|
+
// messages: state.messages.filter(
|
|
8
|
+
// (msg) => "$sid" in msg && msg.$sid !== id
|
|
9
|
+
// ),
|
|
10
|
+
// })
|
|
11
|
+
setTimeout(() => {
|
|
12
|
+
set((state) => ({
|
|
13
|
+
messages: state.messages.filter((msg) => msg.$sid !== id)
|
|
14
|
+
}));
|
|
15
|
+
}, 800)
|
|
16
|
+
),
|
|
8
17
|
addMessages: (newMessages) => set((state) => ({ messages: [...state.messages, ...newMessages] })),
|
|
9
18
|
clearMessages: () => set({ messages: [] })
|
|
10
19
|
}));
|
package/dist/themes/axos.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/themes/axos.css';/* empty css */
|
|
2
2
|
var axosTheme = "_1073cm80";
|
|
3
|
-
var vars = { colors: { primary: { background: "var(--_1073cm81)", backgroundButton: "var(--_1073cm82)", body: "var(--_1073cm83)", border: "var(--_1073cm84)", headline: "var(--_1073cm85)", textButton: "var(--_1073cm86)", textGradient: "var(--_1073cm87)" }, secondary: { background: "var(--_1073cm88)", backgroundButton: "var(--_1073cm89)", body: "var(--_1073cm8a)", border: "var(--_1073cm8b)", headline: "var(--_1073cm8c)", textButton: "var(--_1073cm8d)", textGradient: "var(--_1073cm8e)" }, tertiary: { background: "var(--_1073cm8f)", backgroundButton: "var(--_1073cm8g)", body: "var(--_1073cm8h)", border: "var(--_1073cm8i)", headline: "var(--_1073cm8j)", textButton: "var(--_1073cm8k)", textGradient: "var(--_1073cm8l)" }, quaternary: { background: "var(--_1073cm8m)", backgroundButton: "var(--_1073cm8n)", body: "var(--_1073cm8o)", border: "var(--_1073cm8p)", headline: "var(--_1073cm8q)", textButton: "var(--_1073cm8r)", textGradient: "var(--_1073cm8s)" } }, error: "var(--_1073cm8t)", disabled: { border: "var(--_1073cm8u)", color: "var(--_1073cm8v)", background: "var(--_1073cm8w)" }, icons: { check: { primary: "var(--_1073cm8x)", secondary: "var(--_1073cm8y)" } }, table: { highlight: "var(--_1073cm8z)", color: "var(--_1073cm810)" }, footer: { link: { color: "var(--_1073cm811)" } }, selecction: { icon: { color: "var(--_1073cm812)" } }, chatbot: { bubble: { background: "var(--_1073cm813)", border: "var(--_1073cm814)", borderGradient: "var(--_1073cm815)", icon: "var(--_1073cm816)" }, window: { background: "var(--_1073cm817)", headerBackground: "var(--_1073cm818)", headerText: "var(--_1073cm819)", agentBackground: "var(--_1073cm81a)", userBackground: "var(--_1073cm81b)", inputBorder: "var(--_1073cm81c)" } } };
|
|
3
|
+
var vars = { colors: { primary: { background: "var(--_1073cm81)", backgroundButton: "var(--_1073cm82)", body: "var(--_1073cm83)", border: "var(--_1073cm84)", headline: "var(--_1073cm85)", textButton: "var(--_1073cm86)", textGradient: "var(--_1073cm87)" }, secondary: { background: "var(--_1073cm88)", backgroundButton: "var(--_1073cm89)", body: "var(--_1073cm8a)", border: "var(--_1073cm8b)", headline: "var(--_1073cm8c)", textButton: "var(--_1073cm8d)", textGradient: "var(--_1073cm8e)" }, tertiary: { background: "var(--_1073cm8f)", backgroundButton: "var(--_1073cm8g)", body: "var(--_1073cm8h)", border: "var(--_1073cm8i)", headline: "var(--_1073cm8j)", textButton: "var(--_1073cm8k)", textGradient: "var(--_1073cm8l)" }, quaternary: { background: "var(--_1073cm8m)", backgroundButton: "var(--_1073cm8n)", body: "var(--_1073cm8o)", border: "var(--_1073cm8p)", headline: "var(--_1073cm8q)", textButton: "var(--_1073cm8r)", textGradient: "var(--_1073cm8s)" } }, error: "var(--_1073cm8t)", disabled: { border: "var(--_1073cm8u)", color: "var(--_1073cm8v)", background: "var(--_1073cm8w)" }, icons: { check: { primary: "var(--_1073cm8x)", secondary: "var(--_1073cm8y)" } }, table: { highlight: "var(--_1073cm8z)", color: "var(--_1073cm810)" }, footer: { link: { color: "var(--_1073cm811)" } }, selecction: { icon: { color: "var(--_1073cm812)" } }, chatbot: { bubble: { background: "var(--_1073cm813)", border: "var(--_1073cm814)", borderGradient: "var(--_1073cm815)", icon: "var(--_1073cm816)" }, window: { background: "var(--_1073cm817)", headerBackground: "var(--_1073cm818)", headerText: "var(--_1073cm819)", agentBackground: "var(--_1073cm81a)", userBackground: "var(--_1073cm81b)", inputBorder: "var(--_1073cm81c)", timestampColor: "var(--_1073cm81d)" } } };
|
|
4
4
|
export {
|
|
5
5
|
axosTheme,
|
|
6
6
|
vars
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axos-web-dev/shared-components",
|
|
3
3
|
"description": "Axos shared components library for web.",
|
|
4
|
-
"version": "1.0.100-dev.53-chat-revamp.
|
|
4
|
+
"version": "1.0.100-dev.53-chat-revamp.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|