@axos-web-dev/shared-components 1.0.100-dev.53-chat-revamp.3 → 1.0.100-dev.54

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.
@@ -33,3 +33,4 @@ export declare const thankyou_image: string;
33
33
  export declare const chatEndCircle: string;
34
34
  export declare const user_msg: string;
35
35
  export declare const agent_msg: string;
36
+ export declare const shimmerText: string;
@@ -34,6 +34,7 @@ var thankyou_image = "_13n1jqkq";
34
34
  var chatEndCircle = "_13n1jqkr";
35
35
  var user_msg = "_13n1jqks";
36
36
  var agent_msg = "_13n1jqkt";
37
+ var shimmerText = "_13n1jqkv";
37
38
  export {
38
39
  agent_msg,
39
40
  arrowFill,
@@ -58,6 +59,7 @@ export {
58
59
  noAnswerButton,
59
60
  notificationStyle,
60
61
  sendButtonStyle,
62
+ shimmerText,
61
63
  thankyou_image,
62
64
  thankyou_message,
63
65
  thankyou_overlay,
@@ -10,8 +10,7 @@ import React, { useRef, useEffect } from "react";
10
10
  import { useNetworkState, useMount } from "react-use";
11
11
  import { gradientFocus } from "./AnimatedGradientBorder.css.js";
12
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";
14
- import EllipsisLoader from "./EllipsisAnimation.js";
13
+ import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, shimmerText, messagesContainerStyle, inputStyle, autoResize, sendButtonStyle, windowStyle, windowOpenStyle } from "./ChatWindow.css.js";
15
14
  import { EllipsisIcon } from "./EllipsisIcon.js";
16
15
  import { useOpenChat } from "./store/chat.js";
17
16
  import { ThankYouMessage } from "./ThankYouMessage.js";
@@ -386,7 +385,6 @@ const ChatWindow = ({
386
385
  style: {
387
386
  textAlign: "left",
388
387
  alignSelf: "flex-start",
389
- background: "#eee",
390
388
  color: "#1e3860",
391
389
  borderRadius: 16,
392
390
  padding: "8px 8px",
@@ -402,7 +400,7 @@ const ChatWindow = ({
402
400
  flexDirection: "column",
403
401
  gap: 4
404
402
  },
405
- children: /* @__PURE__ */ jsx(EllipsisLoader, {})
403
+ children: /* @__PURE__ */ jsx("p", { className: shimmerText, children: "AI thinking..." })
406
404
  }
407
405
  )
408
406
  }
@@ -4,7 +4,7 @@ import { borderHoverGradient, bubbleButton, bubbleText, bubbleWrapper, inner, sv
4
4
  import { Chatbot } from "./Chatbot.js";
5
5
  import { chatbotAXB, chatbotUFB } from "./Chatbot.css.js";
6
6
  import { ChatWindow } from "./ChatWindow.js";
7
- import { agent_msg, arrowFill, autoResize, button_bar, button_reset, buttonss_section, chatEndCircle, chatEndDialogOverlay, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, left_bar_section, messageStyle, messagesContainerStyle, noAnswerButton, notificationStyle, sendButtonStyle, thankyou_image, thankyou_message, thankyou_overlay, user_msg, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
7
+ import { agent_msg, arrowFill, autoResize, button_bar, button_reset, buttonss_section, chatEndCircle, chatEndDialogOverlay, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, left_bar_section, messageStyle, messagesContainerStyle, noAnswerButton, notificationStyle, sendButtonStyle, shimmerText, thankyou_image, thankyou_message, thankyou_overlay, user_msg, windowBarStyle, windowOpenStyle, windowStyle } from "./ChatWindow.css.js";
8
8
  import { useOpenChat } from "./store/chat.js";
9
9
  import { useMessages } from "./store/messages.js";
10
10
  export {
@@ -41,6 +41,7 @@ export {
41
41
  noAnswerButton,
42
42
  notificationStyle,
43
43
  sendButtonStyle,
44
+ shimmerText,
44
45
  svgFill,
45
46
  thankyou_image,
46
47
  thankyou_message,
@@ -34,7 +34,7 @@ const GlobalContextProvider = ({ children }) => {
34
34
  body: shortUrl(targetLinkUrl),
35
35
  onCancel: () => setOpenModal(false),
36
36
  onAccept: () => {
37
- window.open(targetLinkUrl, "_blank", "noreferrer");
37
+ window.location.href = targetLinkUrl;
38
38
  setOpenModal(false);
39
39
  }
40
40
  }
@@ -1,3 +1,11 @@
1
+ @keyframes _13n1jqku {
2
+ 0% {
3
+ background-position: -200% 0;
4
+ }
5
+ 100% {
6
+ background-position: 200% 0;
7
+ }
8
+ }
1
9
  ._13n1jqk0 {
2
10
  background: var(--_1073cm817);
3
11
  border-radius: 10px;
@@ -287,6 +295,16 @@
287
295
  align-self: flex-start;
288
296
  border-bottom-right-radius: 32px;
289
297
  }
298
+ ._13n1jqkv {
299
+ background: linear-gradient(90deg, var(--_1073cm819) 0%, rgba(255,255,255,0.8) 50%, var(--_1073cm819) 100%);
300
+ background-size: 200% 100%;
301
+ background-clip: text;
302
+ -webkit-background-clip: text;
303
+ color: transparent;
304
+ animation: _13n1jqku 2s linear infinite;
305
+ font-weight: bold;
306
+ letter-spacing: 0.22px;
307
+ }
290
308
  @media screen and (max-width: 768px) {
291
309
  ._13n1jqk0 {
292
310
  width: 100dvw;
@@ -32,7 +32,7 @@
32
32
  padding: 20px;
33
33
  }
34
34
  ._14gexxj3 tbody tr:nth-child(odd) {
35
- background-color: F4F4F4;
35
+ background-color: #F4F4F4;
36
36
  }
37
37
  ._14gexxj3 tr {
38
38
  display: flex;
package/dist/main.js CHANGED
@@ -42,7 +42,7 @@ import { borderHoverGradient, bubbleButton, bubbleText, bubbleWrapper, inner, sv
42
42
  import { Chatbot } from "./Chatbot/Chatbot.js";
43
43
  import { chatbotAXB, chatbotUFB } from "./Chatbot/Chatbot.css.js";
44
44
  import { ChatWindow } from "./Chatbot/ChatWindow.js";
45
- import { agent_msg, arrowFill, autoResize, button_bar, button_reset, buttonss_section, chatEndCircle, chatEndDialogOverlay, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, left_bar_section, messageStyle, messagesContainerStyle, noAnswerButton, notificationStyle, sendButtonStyle, thankyou_image, thankyou_message, thankyou_overlay, user_msg, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
45
+ import { agent_msg, arrowFill, autoResize, button_bar, button_reset, buttonss_section, chatEndCircle, chatEndDialogOverlay, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, left_bar_section, messageStyle, messagesContainerStyle, noAnswerButton, notificationStyle, sendButtonStyle, shimmerText, thankyou_image, thankyou_message, thankyou_overlay, user_msg, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
46
46
  import { useOpenChat } from "./Chatbot/store/chat.js";
47
47
  import { useMessages } from "./Chatbot/store/messages.js";
48
48
  import { Chevron } from "./Chevron/index.js";
@@ -763,6 +763,7 @@ export {
763
763
  set_logo,
764
764
  setcontainer_section_text,
765
765
  shift,
766
+ shimmerText,
766
767
  shortUrl,
767
768
  show,
768
769
  show_options,
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.3",
4
+ "version": "1.0.100-dev.54",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",