@axos-web-dev/shared-components 2.2.7 → 2.2.9

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.
Files changed (192) hide show
  1. package/dist/ATMLocator/ATMLocator.d.ts +1 -1
  2. package/dist/ATMLocator/ATMLocator.js +1 -1
  3. package/dist/Accordion/Accordion.d.ts +3 -3
  4. package/dist/Article/Article.d.ts +1 -1
  5. package/dist/Auth/ErrorAlert.d.ts +1 -1
  6. package/dist/Auth/ErrorAlert.js +1 -1
  7. package/dist/Auth/Logout.d.ts +1 -1
  8. package/dist/Auth/SignInPassword.d.ts +1 -1
  9. package/dist/BulletItem/BulletItem.d.ts +1 -1
  10. package/dist/Button/Button.d.ts +1 -1
  11. package/dist/Button/Button.js +17 -1
  12. package/dist/Button/GoBackButton.d.ts +1 -1
  13. package/dist/Calculators/Calculator.d.ts +1 -1
  14. package/dist/Calculators/Calculator.js +1 -1
  15. package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
  16. package/dist/Carousel/index.d.ts +3 -3
  17. package/dist/Carousel/index.js +1 -1
  18. package/dist/Chatbot/Bubble.css.js +0 -1
  19. package/dist/Chatbot/Bubble.d.ts +1 -1
  20. package/dist/Chatbot/ChatWindow.css.js +1 -0
  21. package/dist/Chatbot/ChatWindow.js +85 -92
  22. package/dist/Chatbot/Chatbot.d.ts +1 -1
  23. package/dist/Chatbot/Chatbot.js +11 -7
  24. package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
  25. package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
  26. package/dist/Chevron/index.js +1 -1
  27. package/dist/Comparison/Comparison.d.ts +1 -1
  28. package/dist/Comparison/Comparison.js +1 -1
  29. package/dist/Comparison/ComparisonSet.d.ts +1 -1
  30. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  31. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  32. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  33. package/dist/ExecutiveBio/Overlay.d.ts +1 -1
  34. package/dist/FaqAccordion/index.d.ts +5 -5
  35. package/dist/FaqAccordion/index.js +1 -1
  36. package/dist/FdicCallout/index.d.ts +1 -1
  37. package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
  38. package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
  39. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
  40. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  41. package/dist/Forms/ApplicationStart.d.ts +1 -1
  42. package/dist/Forms/ApplyNow.d.ts +1 -1
  43. package/dist/Forms/ApplyNow.js +1 -1
  44. package/dist/Forms/BoatMooringLocation.d.ts +1 -1
  45. package/dist/Forms/ClearingForm.d.ts +1 -1
  46. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  47. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
  48. package/dist/Forms/CommercialLending.d.ts +1 -1
  49. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  50. package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
  51. package/dist/Forms/ContactCompany.d.ts +1 -1
  52. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  53. package/dist/Forms/ContactUs.d.ts +1 -1
  54. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  55. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  56. package/dist/Forms/ContactUsBusiness.js +1 -1
  57. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  58. package/dist/Forms/ContactUsBusinessNameEmail.js +1 -1
  59. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  60. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  61. package/dist/Forms/ContactUsNMLSId.js +1 -1
  62. package/dist/Forms/ContactUsSchwabAAS.d.ts +1 -1
  63. package/dist/Forms/CpraRequest.d.ts +1 -1
  64. package/dist/Forms/CpraRequest.js +1 -1
  65. package/dist/Forms/CraPublicFile.d.ts +1 -1
  66. package/dist/Forms/CraPublicFile.js +1 -1
  67. package/dist/Forms/DealerServices.d.ts +1 -1
  68. package/dist/Forms/EmailOnly.d.ts +1 -1
  69. package/dist/Forms/EmailOnly.js +1 -1
  70. package/dist/Forms/EmailUs.d.ts +1 -1
  71. package/dist/Forms/HoneyPot/index.d.ts +1 -1
  72. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  73. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  74. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
  75. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  76. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  77. package/dist/Forms/MortgageWarehouseLending.d.ts +1 -1
  78. package/dist/Forms/MortgageWarehouseLending.js +1 -1
  79. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  80. package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
  81. package/dist/Forms/ScheduleCall.d.ts +1 -1
  82. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  83. package/dist/Forms/SuccesForm.d.ts +1 -1
  84. package/dist/Forms/SuccesForm.js +1 -1
  85. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  86. package/dist/Forms/WcplSurvey.d.ts +1 -1
  87. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  88. package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
  89. package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
  90. package/dist/Hyperlink/index.js +1 -1
  91. package/dist/IconBillboard/IconBillboard.d.ts +1 -1
  92. package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
  93. package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
  94. package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
  95. package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
  96. package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
  97. package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
  98. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
  99. package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
  100. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  101. package/dist/ImageLink/ImageLink.d.ts +1 -1
  102. package/dist/ImageLink/ImageLink.js +1 -1
  103. package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
  104. package/dist/ImageLink/ImageLinkSet.js +1 -1
  105. package/dist/ImageLink/index.js +1 -1
  106. package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
  107. package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
  108. package/dist/Insight/Featured/CategorySelector.js +1 -1
  109. package/dist/Insight/Featured/Featured.d.ts +2 -2
  110. package/dist/Insight/Featured/Featured.js +1 -1
  111. package/dist/Insight/Featured/Header.d.ts +1 -1
  112. package/dist/Insight/Featured/Header.js +1 -1
  113. package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
  114. package/dist/LoadingIndicator/index.d.ts +1 -1
  115. package/dist/MainHTML/index.d.ts +1 -1
  116. package/dist/Modal/Modal.js +1 -1
  117. package/dist/Modal/contextApi/store.d.ts +1 -1
  118. package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
  119. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  120. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
  121. package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
  122. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
  123. package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
  124. package/dist/NavigationMenu/AxosAdvisorServices/index.js +0 -1
  125. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
  126. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -1
  127. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -1
  128. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +3 -3
  129. package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
  130. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
  131. package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
  132. package/dist/NavigationMenu/AxosBank/index.js +15 -17
  133. package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
  134. package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
  135. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -43
  136. package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
  137. package/dist/NavigationMenu/AxosFiduciary/index.js +0 -1
  138. package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
  139. package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
  140. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  141. package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
  142. package/dist/NavigationMenu/Navbar.d.ts +1 -1
  143. package/dist/NavigationMenu/Navbar.js +1 -1
  144. package/dist/NavigationMenu/SignInNavButton.d.ts +3 -1
  145. package/dist/NavigationMenu/SignInNavButton.js +1 -1
  146. package/dist/Pagination/Pagination.d.ts +1 -1
  147. package/dist/SecondaryFooter/index.d.ts +1 -1
  148. package/dist/SetContainer/SetContainer.d.ts +1 -1
  149. package/dist/SetContainer/SetContainer.js +1 -1
  150. package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
  151. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  152. package/dist/SocialMediaBar/index.d.ts +1 -1
  153. package/dist/Tab/Tab.d.ts +1 -1
  154. package/dist/Tab/TabContainer.d.ts +1 -1
  155. package/dist/Table/Table.d.ts +5 -5
  156. package/dist/TextBlock/TextBlock.d.ts +1 -1
  157. package/dist/Topic/Topic.d.ts +4 -4
  158. package/dist/VideoTile/VideoInit.d.ts +1 -1
  159. package/dist/VideoTile/VideoTile.js +1 -1
  160. package/dist/VideoWrapper/index.js +1 -1
  161. package/dist/WalnutIframe/index.d.ts +1 -1
  162. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css +82 -82
  163. package/dist/assets/TopicalNavSet/TopicalNavSet.css +1 -1
  164. package/dist/icons/AxosX/Blue.d.ts +1 -1
  165. package/dist/icons/AxosX/index.d.ts +1 -1
  166. package/dist/icons/CheckCircle.d.ts +1 -1
  167. package/dist/icons/CheckCircleLight.d.ts +1 -1
  168. package/dist/icons/CheckIcon/index.d.ts +1 -1
  169. package/dist/icons/ChevronDown.d.ts +1 -1
  170. package/dist/icons/ChevronUp.d.ts +1 -1
  171. package/dist/icons/Clock/index.d.ts +1 -1
  172. package/dist/icons/EqualHousingLender.d.ts +1 -1
  173. package/dist/icons/Logos/AAS.d.ts +1 -1
  174. package/dist/icons/Logos/AFS.d.ts +1 -1
  175. package/dist/icons/Logos/AXA.d.ts +1 -1
  176. package/dist/icons/Logos/AXB.d.ts +1 -1
  177. package/dist/icons/Logos/AXC.d.ts +1 -1
  178. package/dist/icons/Logos/AXI.d.ts +1 -1
  179. package/dist/icons/Logos/AXOS.d.ts +1 -1
  180. package/dist/icons/Logos/GBLVF.d.ts +1 -1
  181. package/dist/icons/Logos/LVF.d.ts +1 -1
  182. package/dist/icons/Logos/LVFText.d.ts +1 -1
  183. package/dist/icons/Logos/SPB.d.ts +1 -1
  184. package/dist/icons/MemberFdicLogo.d.ts +1 -1
  185. package/dist/icons/QuoteIconGrey.d.ts +1 -1
  186. package/dist/icons/QuoteIconWhite.d.ts +1 -1
  187. package/dist/icons/QuoteIconYellow.d.ts +1 -1
  188. package/package.json +147 -147
  189. package/dist/Chatbot/Chat.d.ts +0 -1
  190. package/dist/Chatbot/Chat.js +0 -158
  191. package/dist/Chatbot/useHeadlessChat.d.ts +0 -27
  192. package/dist/Chatbot/useHeadlessChat.js +0 -240
@@ -1,4 +1,4 @@
1
1
  import { CalculatorProps } from '../Calculators';
2
2
 
3
3
  export type ATMLocatorProps = CalculatorProps;
4
- export declare const ATMLocator: (props: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ATMLocator: (props: CalculatorProps) => import("react").JSX.Element;
@@ -68,10 +68,10 @@ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js"
68
68
  /* empty css */
69
69
  import "../Carousel/index.js";
70
70
  /* empty css */
71
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
72
71
  /* empty css */
73
72
  import "../Chatbot/store/chat.js";
74
73
  import "../Chatbot/Chatbot.js";
74
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
75
75
  /* empty css */
76
76
  import "../Chatbot/store/messages.js";
77
77
  /* empty css */
@@ -7,6 +7,6 @@ export declare const AccordionCtx: React.Context<{
7
7
  isOpen: boolean;
8
8
  onclick: () => void;
9
9
  }>;
10
- export declare const AccordionHeader: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
11
- export declare const AccordionDetails: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
12
- export declare const Accordion: (props: Accordion & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const AccordionHeader: (props: PropsWithChildren) => React.JSX.Element;
11
+ export declare const AccordionDetails: ({ children }: PropsWithChildren) => React.JSX.Element;
12
+ export declare const Accordion: (props: Accordion & PropsWithChildren) => React.JSX.Element;
@@ -12,4 +12,4 @@ export interface ArticleProps {
12
12
  variant?: QuaternaryTypes;
13
13
  useChevron?: boolean | false;
14
14
  }
15
- export declare const Article: ({ id, image, itemType, title, description, targetUrl, variant: fullVariant, useChevron, }: ArticleProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const Article: ({ id, image, itemType, title, description, targetUrl, variant: fullVariant, useChevron, }: ArticleProps) => import("react").JSX.Element;
@@ -10,5 +10,5 @@ type Props = {
10
10
  onClose?: () => void;
11
11
  modalRef?: React.RefObject<HTMLDivElement>;
12
12
  };
13
- export declare const ErrorAlert: ({ variant: fullVariant, modalRef, onClose, }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ErrorAlert: ({ variant: fullVariant, modalRef, onClose, }: Props) => import("react").JSX.Element;
14
14
  export {};
@@ -63,11 +63,11 @@ import "./SignInPassword.js";
63
63
  /* empty css */
64
64
  import "../Carousel/index.js";
65
65
  /* empty css */
66
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
67
66
  /* empty css */
68
67
  import "../Chatbot/store/chat.js";
69
68
  import "../Chatbot/Chatbot.js";
70
69
  import "../LoadingIndicator/LoadingIndicator.css.js";
70
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
71
71
  /* empty css */
72
72
  import "../Chatbot/store/messages.js";
73
73
  import { Hyperlink } from "../Hyperlink/index.js";
@@ -1,3 +1,3 @@
1
1
  export declare const Logout: ({ action, }: {
2
2
  action: (prev: unknown, formData: FormData) => void;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => import("react").JSX.Element;
@@ -12,4 +12,4 @@ export type Credentials = {
12
12
  username: string;
13
13
  password: string;
14
14
  };
15
- export declare const SignIn: (props: SignIn) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const SignIn: (props: SignIn) => import("react").JSX.Element;
@@ -12,4 +12,4 @@ export interface BulletItemProps extends PropsWithChildren {
12
12
  subBullet?: boolean;
13
13
  className?: string;
14
14
  }
15
- export declare const BulletItem: (props: BulletItemProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const BulletItem: (props: BulletItemProps) => import("react").JSX.Element;
@@ -18,4 +18,4 @@ export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElem
18
18
  as?: "a";
19
19
  };
20
20
  export type ButtonProps = ButtonAsButton | ButtonAsLink;
21
- export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, ...rest }: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, ...rest }: ButtonProps & ButtonVariants) => import("react").JSX.Element;
@@ -71,10 +71,10 @@ import "../Auth/SignInPassword.js";
71
71
  /* empty css */
72
72
  import "../Carousel/index.js";
73
73
  /* empty css */
74
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
75
74
  /* empty css */
76
75
  import "../Chatbot/store/chat.js";
77
76
  import "../Chatbot/Chatbot.js";
77
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
78
  /* empty css */
79
79
  import "../Chatbot/store/messages.js";
80
80
  /* empty css */
@@ -160,9 +160,24 @@ const Button = ({
160
160
  e.preventDefault();
161
161
  setOpenModal(external_link);
162
162
  setTargetLinkUrl(targetUrl);
163
+ return;
164
+ }
165
+ e.preventDefault();
166
+ const resolved = resolveUrl(targetUrl);
167
+ if (newTab) {
168
+ window.open(resolved, "_blank");
169
+ } else {
170
+ window.location.href = resolved;
163
171
  }
164
172
  }
165
173
  };
174
+ const handleMouseDown = (e) => {
175
+ if (!targetUrl) return;
176
+ if (e.button === 1 || e.metaKey || e.ctrlKey) {
177
+ const el = e.currentTarget;
178
+ el.href = resolveUrl(targetUrl);
179
+ }
180
+ };
166
181
  return /* @__PURE__ */ jsxs(Fragment, { children: [
167
182
  createElement(
168
183
  as,
@@ -176,6 +191,7 @@ const Button = ({
176
191
  id,
177
192
  target: newTab ? "_blank" : "_self",
178
193
  onClick: marketingIntersitial ? openMarketingInterstitial : action ?? onClick,
194
+ onMouseDown: handleMouseDown,
179
195
  disabled: disabled ?? false
180
196
  },
181
197
  children
@@ -1,4 +1,4 @@
1
1
  import { ButtonProps } from './Button';
2
2
  import { ButtonVariants } from './Button.css';
3
3
 
4
- export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react").JSX.Element;
@@ -16,4 +16,4 @@ export interface CalculatorProps {
16
16
  initialBalance?: number;
17
17
  callToActionRow?: ChevronProps[];
18
18
  }
19
- export declare const Calculator: (props: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const Calculator: (props: CalculatorProps) => React.JSX.Element;
@@ -50,12 +50,12 @@ import { SummitApyCalculator } from "./SummitApyCalculator/index.js";
50
50
  /* empty css */
51
51
  import "../Carousel/index.js";
52
52
  /* empty css */
53
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
54
53
  /* empty css */
55
54
  import "../Chatbot/store/chat.js";
56
55
  import "../Chatbot/Chatbot.js";
57
56
  import "../LoadingIndicator/LoadingIndicator.css.js";
58
57
  import "react-use";
58
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
59
59
  /* empty css */
60
60
  import "../Chatbot/store/messages.js";
61
61
  /* empty css */
@@ -72,10 +72,10 @@ import "../../Auth/SignInPassword.js";
72
72
  /* empty css */
73
73
  import "../../Carousel/index.js";
74
74
  /* empty css */
75
- import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
75
  /* empty css */
77
76
  import "../../Chatbot/store/chat.js";
78
77
  import "../../Chatbot/Chatbot.js";
78
+ import "../../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../../Chatbot/store/messages.js";
81
81
  /* empty css */
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { default as React, PropsWithChildren, ReactNode } from 'react';
2
2
  import { carouselVariants } from './Carousel.css';
3
3
 
4
4
  export interface SlideProps extends PropsWithChildren {
@@ -17,5 +17,5 @@ export interface CarouselProps extends PropsWithChildren {
17
17
  description?: ReactNode;
18
18
  internalName?: string;
19
19
  }
20
- export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
21
- export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const CarouselSlide: (props: SlideProps & carouselVariants) => React.JSX.Element;
21
+ export declare const Carousel: (props: CarouselProps & carouselVariants) => React.JSX.Element;
@@ -73,10 +73,10 @@ import "../Auth/SignInPassword.js";
73
73
  /* empty css */
74
74
  /* empty css */
75
75
  /* empty css */
76
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
77
76
  /* empty css */
78
77
  import "../Chatbot/store/chat.js";
79
78
  import "../Chatbot/Chatbot.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
80
  /* empty css */
81
81
  import "../Chatbot/store/messages.js";
82
82
  /* empty css */
@@ -2,7 +2,6 @@ import '../assets/Chatbot/Bubble.css';import '../assets/themes/victorie.css';imp
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import "./Chatbot.css.ts.vanilla.css.js";
6
5
  /* empty css */
7
6
  var borderHoverGradient = "_7u9pv31";
8
7
  var bubbleWrapper = "_7u9pv32";
@@ -3,4 +3,4 @@ import { PropsWithChildren } from 'react';
3
3
  export declare const Bubble: ({ children, onClick, }: PropsWithChildren & {
4
4
  onClick?: () => void;
5
5
  project: "axos" | "ufb" | "Axos" | "Ufb";
6
- }) => import("react/jsx-runtime").JSX.Element;
6
+ }) => import("react").JSX.Element;
@@ -3,6 +3,7 @@ import '../assets/Chatbot/ChatWindow.css';import '../assets/Typography/Typograph
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
+ import "./Chatbot.css.ts.vanilla.css.js";
6
7
  /* empty css */
7
8
  var windowStyle = "_13n1jqk1";
8
9
  var windowExpandedStyle = "_13n1jqk2";
@@ -11,7 +11,7 @@ import React, { useRef, useState, useEffect } from "react";
11
11
  import { useNetworkState, useMount } from "react-use";
12
12
  import { focusAnimation, gradientFocus } from "./AnimatedGradientBorder.css.js";
13
13
  import { ChatbotMessage } from "./ChatbotMessage.js";
14
- import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, shimmerText, messagesContainerStyle, formTextButton, inputStyle, autoResize, sendButtonStyle, chatAiDisclaimer, windowStyle, windowOpenStyle, windowExpandedStyle } from "./ChatWindow.css.js";
14
+ import { windowBarStyle, left_bar_section, chat_title, button_bar, chatbotMenuItem, chatbotMenu, chatEndDialogOverlay, chatFinishDialog, chatEndCircle, endChatButtonStyle, noAnswerButton, arrowFill, button_reset, buttonss_section, chatNetworkStatus, shimmerText, messagesContainerStyle, formTextButton, inputStyle, autoResize, sendButtonStyle, windowStyle, windowOpenStyle, windowExpandedStyle } from "./ChatWindow.css.js";
15
15
  import { EllipsisIcon } from "./EllipsisIcon.js";
16
16
  import { ExpandChatToggle } from "./ExpandChatToggle.js";
17
17
  import { useOpenChat } from "./store/chat.js";
@@ -136,7 +136,6 @@ const ChatWindow = ({
136
136
  height: "17",
137
137
  viewBox: "0 0 20 17",
138
138
  fill: "none",
139
- "aria-hidden": "true",
140
139
  children: [
141
140
  /* @__PURE__ */ jsx(
142
141
  "path",
@@ -183,8 +182,6 @@ const ChatWindow = ({
183
182
  alignContent: "center",
184
183
  background: menuOpen ? "#0000000f" : void 0
185
184
  },
186
- "aria-label": "end chat with evo ai",
187
- title: "end chat",
188
185
  children: /* @__PURE__ */ jsx(EllipsisIcon, { color: vars.chatbot.window.headerText })
189
186
  }
190
187
  ),
@@ -518,95 +515,91 @@ const ChatWindow = ({
518
515
  ),
519
516
  /* @__PURE__ */ jsx("div", { ref: messagesEndRef })
520
517
  ] }),
521
- /* @__PURE__ */ jsxs("div", { style: { padding: "16px 16px 24px 16px" }, children: [
522
- /* @__PURE__ */ jsxs("form", { onSubmit: handleSend, className: clsx(gradientFocus), children: [
523
- /* @__PURE__ */ jsx(
524
- "div",
525
- {
526
- className: clsx(
527
- focused && !inputDisabled && !isBlockedInput ? focusAnimation : ""
528
- ),
529
- style: {
530
- position: "absolute",
531
- left: "10%",
532
- width: "80%",
533
- height: "40px",
534
- zIndex: "-1"
535
- }
536
- }
537
- ),
538
- /* @__PURE__ */ jsxs(
539
- "div",
540
- {
541
- className: formTextButton,
542
- style: {
543
- display: "flex",
544
- padding: "12px 16px",
545
- background: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected ? "light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3))" : "#ffffff",
546
- borderRadius: 12
547
- },
548
- children: [
549
- /* @__PURE__ */ jsx(
550
- "textarea",
551
- {
552
- ref: inputRef,
553
- value: input,
554
- onChange: (e) => setInput(e.target.value),
555
- onKeyDown: (e) => {
556
- if (hasEscalated) {
557
- previewTyping(e.target?.value);
558
- }
559
- if (e.key === "Enter" && !e.shiftKey) {
560
- handleSend(e);
561
- }
562
- },
563
- onFocus: () => setFocused(() => true),
564
- onBlur: () => setFocused(() => false),
565
- placeholder: "Ask anything...",
566
- "aria-label": "Ask anything...",
567
- className: clsx(inputStyle, autoResize),
568
- autoFocus: true,
569
- disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
570
- rows: 1
571
- }
572
- ),
573
- /* @__PURE__ */ jsx(
574
- "button",
575
- {
576
- className: clsx(
577
- sendButtonStyle,
578
- input.trim().length > 0 && "active"
579
- ),
580
- type: "submit",
581
- title: "Send message",
582
- disabled: isBlockedInput || inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
583
- children: /* @__PURE__ */ jsx(
584
- "svg",
585
- {
586
- xmlns: "http://www.w3.org/2000/svg",
587
- width: "20",
588
- height: "20",
589
- viewBox: "0 0 16 16",
590
- fill: "none",
591
- children: /* @__PURE__ */ jsx(
592
- "path",
593
- {
594
- fillRule: "evenodd",
595
- clipRule: "evenodd",
596
- d: "M0.0030533 5.42479C0.0273417 5.1795 0.193529 4.9714 0.427369 4.89345L15.0114 0.0320896C15.236 -0.0427712 15.4836 0.0156801 15.651 0.183075C15.8184 0.35047 15.8769 0.598075 15.802 0.822659L10.9407 15.4067C10.8627 15.6406 10.6546 15.8068 10.4093 15.8311C10.164 15.8553 9.92737 15.7332 9.80508 15.5192L6.35411 9.47999L0.314925 6.02903C0.100912 5.90673 -0.0212351 5.67008 0.0030533 5.42479ZM7.59169 9.1263L9.64202 12.7144C9.85645 13.0896 10.4138 13.0344 10.5505 12.6244L13.9046 2.56191C14.0349 2.17103 13.6631 1.79916 13.2722 1.92946L3.20969 5.28362C2.79967 5.4203 2.74448 5.97766 3.11973 6.19209L6.70781 8.24242L9.90579 5.04443C10.1499 4.80036 10.5456 4.80036 10.7897 5.04443C11.0337 5.28851 11.0337 5.68424 10.7897 5.92832L7.59169 9.1263Z",
597
- fill: "#435164"
598
- }
599
- )
600
- }
601
- )
602
- }
603
- )
604
- ]
518
+ /* @__PURE__ */ jsx("div", { style: { padding: "16px 16px 24px 16px" }, children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSend, className: clsx(gradientFocus), children: [
519
+ /* @__PURE__ */ jsx(
520
+ "div",
521
+ {
522
+ className: clsx(
523
+ focused && !inputDisabled && !isBlockedInput ? focusAnimation : ""
524
+ ),
525
+ style: {
526
+ position: "absolute",
527
+ left: "10%",
528
+ width: "80%",
529
+ height: "40px",
530
+ zIndex: "-1"
605
531
  }
606
- )
607
- ] }),
608
- /* @__PURE__ */ jsx("p", { className: chatAiDisclaimer, children: "Evo is AI and can make mistakes. Verify important details." })
609
- ] })
532
+ }
533
+ ),
534
+ /* @__PURE__ */ jsxs(
535
+ "div",
536
+ {
537
+ className: formTextButton,
538
+ style: {
539
+ display: "flex",
540
+ padding: "12px 16px",
541
+ background: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected ? "light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3))" : "#ffffff",
542
+ borderRadius: 12
543
+ },
544
+ children: [
545
+ /* @__PURE__ */ jsx(
546
+ "textarea",
547
+ {
548
+ ref: inputRef,
549
+ value: input,
550
+ onChange: (e) => setInput(e.target.value),
551
+ onKeyDown: (e) => {
552
+ if (hasEscalated) {
553
+ previewTyping(e.target?.value);
554
+ }
555
+ if (e.key === "Enter" && !e.shiftKey) {
556
+ handleSend(e);
557
+ }
558
+ },
559
+ onFocus: () => setFocused(() => true),
560
+ onBlur: () => setFocused(() => false),
561
+ placeholder: "Ask anything...",
562
+ className: clsx(inputStyle, autoResize),
563
+ autoFocus: true,
564
+ disabled: isBlockedInput || inputDisabled || status !== "connected" || messages.length == 0 || escalationDeflected,
565
+ rows: 1
566
+ }
567
+ ),
568
+ /* @__PURE__ */ jsx(
569
+ "button",
570
+ {
571
+ className: clsx(
572
+ sendButtonStyle,
573
+ input.trim().length > 0 && "active"
574
+ ),
575
+ type: "submit",
576
+ title: "Send message",
577
+ disabled: isBlockedInput || inputDisabled || status !== "connected" || !input.trim() || messages.length == 0 || escalationDeflected,
578
+ children: /* @__PURE__ */ jsx(
579
+ "svg",
580
+ {
581
+ xmlns: "http://www.w3.org/2000/svg",
582
+ width: "20",
583
+ height: "20",
584
+ viewBox: "0 0 16 16",
585
+ fill: "none",
586
+ children: /* @__PURE__ */ jsx(
587
+ "path",
588
+ {
589
+ fillRule: "evenodd",
590
+ clipRule: "evenodd",
591
+ d: "M0.0030533 5.42479C0.0273417 5.1795 0.193529 4.9714 0.427369 4.89345L15.0114 0.0320896C15.236 -0.0427712 15.4836 0.0156801 15.651 0.183075C15.8184 0.35047 15.8769 0.598075 15.802 0.822659L10.9407 15.4067C10.8627 15.6406 10.6546 15.8068 10.4093 15.8311C10.164 15.8553 9.92737 15.7332 9.80508 15.5192L6.35411 9.47999L0.314925 6.02903C0.100912 5.90673 -0.0212351 5.67008 0.0030533 5.42479ZM7.59169 9.1263L9.64202 12.7144C9.85645 13.0896 10.4138 13.0344 10.5505 12.6244L13.9046 2.56191C14.0349 2.17103 13.6631 1.79916 13.2722 1.92946L3.20969 5.28362C2.79967 5.4203 2.74448 5.97766 3.11973 6.19209L6.70781 8.24242L9.90579 5.04443C10.1499 4.80036 10.5456 4.80036 10.7897 5.04443C11.0337 5.28851 11.0337 5.68424 10.7897 5.92832L7.59169 9.1263Z",
592
+ fill: "#435164"
593
+ }
594
+ )
595
+ }
596
+ )
597
+ }
598
+ )
599
+ ]
600
+ }
601
+ )
602
+ ] }) })
610
603
  ]
611
604
  }
612
605
  );
@@ -17,5 +17,5 @@ export declare const Chatbot: ({ project, projectEnv, menuOption, config, }: {
17
17
  menuOption?: "Support Virtual Agent" | string;
18
18
  debug?: boolean;
19
19
  config: InitalizeChatbot;
20
- }) => false | import("react/jsx-runtime").JSX.Element;
20
+ }) => false | import("react").JSX.Element;
21
21
  export {};
@@ -2,7 +2,7 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { usePageVisibility } from "../utils/useVisibility.js";
4
4
  import { useRef, useState, useEffect } from "react";
5
- import { useLocation, useMount, useUnmount } from "react-use";
5
+ import { useMount, useUnmount } from "react-use";
6
6
  import notificationSound from "../assets/notification.mp3.js";
7
7
  import AudioManager from "./AudioManager.js";
8
8
  import { Bubble } from "./Bubble.js";
@@ -13,6 +13,9 @@ import { useMessages } from "./store/messages.js";
13
13
  const audioManager = new AudioManager();
14
14
  audioManager.installUjetAudioOverride(notificationSound);
15
15
  audioManager.setSoundEnabled(false);
16
+ function isChat(obj) {
17
+ return obj !== null && typeof obj === "object" && "id" in obj && "agent" in obj && typeof obj.connect === "function";
18
+ }
16
19
  const Chatbot = ({
17
20
  project = "axos",
18
21
  projectEnv = "dev",
@@ -37,7 +40,6 @@ const Chatbot = ({
37
40
  hideDisplayThankyouMessage
38
41
  } = useOpenChat();
39
42
  const isVisible = usePageVisibility();
40
- const location = useLocation();
41
43
  const { addMessage, addMessages, clearMessages, messages } = useMessages();
42
44
  const clientRef = useRef(null);
43
45
  const menuRef = useRef(null);
@@ -75,7 +77,7 @@ const Chatbot = ({
75
77
  $index: -10,
76
78
  $userId: 0
77
79
  };
78
- const custom_data = {
80
+ const custom_data = () => ({
79
81
  unsigned: {
80
82
  facingBrandId: {
81
83
  label: "facingBrandId",
@@ -95,10 +97,10 @@ const Chatbot = ({
95
97
  },
96
98
  url: {
97
99
  label: "url",
98
- value: location.href
100
+ value: window.location.href
99
101
  }
100
102
  }
101
- };
103
+ });
102
104
  const onReadyHandler = async () => {
103
105
  console.log("Chat client is ready");
104
106
  if (clientRef.current) {
@@ -314,8 +316,10 @@ const Chatbot = ({
314
316
  if (!foundMenu) {
315
317
  throw new Error("Menu not found: " + menuOption);
316
318
  }
317
- const newChat = await client.createChat(menuId, { custom_data });
318
- if (newChat !== null) {
319
+ const newChat = await client.createChat(menuId, {
320
+ custom_data: custom_data()
321
+ });
322
+ if (newChat && typeof newChat === "object" && isChat(newChat)) {
319
323
  chatRef.current = newChat;
320
324
  agent_virtual.current = newChat.agent;
321
325
  console.log("Chat created id:", newChat.id);
@@ -1,2 +1,2 @@
1
- declare const EllipsisLoader: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const EllipsisLoader: () => import("react").JSX.Element;
2
2
  export default EllipsisLoader;
@@ -1,4 +1,4 @@
1
1
  export declare const EllipsisIcon: ({ size, color }: {
2
2
  size?: number | undefined;
3
3
  color?: string | undefined;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => import("react").JSX.Element;
@@ -72,10 +72,10 @@ import "../Auth/SignInPassword.js";
72
72
  /* empty css */
73
73
  import "../Carousel/index.js";
74
74
  /* empty css */
75
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
76
75
  /* empty css */
77
76
  import "../Chatbot/store/chat.js";
78
77
  import "../Chatbot/Chatbot.js";
78
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
79
79
  /* empty css */
80
80
  import "../Chatbot/store/messages.js";
81
81
  /* empty css */
@@ -1,3 +1,3 @@
1
1
  import { ComparisonProps } from './Comparison.interface';
2
2
 
3
- export declare const Comparison: ({ id, variant: fullVariant, headline, description, bullets, callToActionRow, keyFeature, keyFeatureDescription, highlightedFeature, index, toggleState, table, }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Comparison: ({ id, variant: fullVariant, headline, description, bullets, callToActionRow, keyFeature, keyFeatureDescription, highlightedFeature, index, toggleState, table, }: ComparisonProps) => import("react").JSX.Element;
@@ -73,10 +73,10 @@ import "../Auth/SignInPassword.js";
73
73
  /* empty css */
74
74
  import "../Carousel/index.js";
75
75
  /* empty css */
76
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
77
76
  /* empty css */
78
77
  import "../Chatbot/store/chat.js";
79
78
  import "../Chatbot/Chatbot.js";
79
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
80
80
  /* empty css */
81
81
  import "../Chatbot/store/messages.js";
82
82
  /* empty css */
@@ -1,3 +1,3 @@
1
1
  import { ComparisonSetProps } from './Comparison.interface';
2
2
 
3
- export declare const ComparisonSet: ({ headline, variant, id, additionalDetails, icon, eyebrow, bodyCopy, comparisonElements, }: ComparisonSetProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ComparisonSet: ({ headline, variant, id, additionalDetails, icon, eyebrow, bodyCopy, comparisonElements, }: ComparisonSetProps) => import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ExecutiveBioProps as Props } from './ExecutiveBio.interface';
2
2
 
3
- export declare const ExecutiveBio: ({ id, hasParentH2, executiveName, executiveTitle, executiveBodyCopy, executiveEmailAddress, executivePhoneNumber, executiveLinkedIn, executiveWebsite, executiveHeadshot, variant: fullVariant, bannerType, executiveTwitter, executiveFacebook, bullets, bulletsTitle, quote, backgroundOverlay, }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ExecutiveBio: ({ id, hasParentH2, executiveName, executiveTitle, executiveBodyCopy, executiveEmailAddress, executivePhoneNumber, executiveLinkedIn, executiveWebsite, executiveHeadshot, variant: fullVariant, bannerType, executiveTwitter, executiveFacebook, bullets, bulletsTitle, quote, backgroundOverlay, }: Props) => import("react").JSX.Element;
@@ -74,10 +74,10 @@ import "../Auth/SignInPassword.js";
74
74
  /* empty css */
75
75
  import "../Carousel/index.js";
76
76
  /* empty css */
77
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
77
  /* empty css */
79
78
  import "../Chatbot/store/chat.js";
80
79
  import "../Chatbot/Chatbot.js";
80
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
81
  /* empty css */
82
82
  import "../Chatbot/store/messages.js";
83
83
  /* empty css */
@@ -1,3 +1,3 @@
1
1
  import { ExecutiveBioSetProps as Props } from './ExecutiveBio.interface';
2
2
 
3
- export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant: fullVariant, numberOfColumns, }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant: fullVariant, numberOfColumns, }: Props) => import("react").JSX.Element;
@@ -4,5 +4,5 @@ interface OverlayProps {
4
4
  className?: string;
5
5
  variant?: QuaternaryTypes;
6
6
  }
7
- export declare const Overlay: ({ className, variant }: OverlayProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Overlay: ({ className, variant }: OverlayProps) => import("react").JSX.Element;
8
8
  export {};
@@ -4,19 +4,19 @@ import { PropsWithChildren, ReactNode } from 'react';
4
4
  export interface AccordionItemProps extends PropsWithChildren {
5
5
  id: string;
6
6
  }
7
- export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AccordionItem: (props: AccordionItemProps) => import("react").JSX.Element;
8
8
  export declare const AccordionItemSummary: (props: {
9
9
  id: string;
10
10
  level: string;
11
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
11
+ } & PropsWithChildren) => import("react").JSX.Element;
12
12
  export declare const AccordionCtas: (props: {
13
13
  callToActionRow: ChevronProps;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
14
+ }) => import("react").JSX.Element;
15
+ export declare const AccordionItemContent: (props: PropsWithChildren) => import("react").JSX.Element;
16
16
  export declare const FaqAccordion: (props: {
17
17
  header?: string;
18
18
  accordionEmbedLevel?: string;
19
19
  internalName?: string;
20
20
  id?: string;
21
21
  additionalDetails?: ReactNode | string;
22
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
22
+ } & PropsWithChildren) => import("react").JSX.Element;
@@ -74,10 +74,10 @@ import "../Auth/SignInPassword.js";
74
74
  /* empty css */
75
75
  import "../Carousel/index.js";
76
76
  /* empty css */
77
- import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
78
77
  /* empty css */
79
78
  import "../Chatbot/store/chat.js";
80
79
  import "../Chatbot/Chatbot.js";
80
+ import "../Chatbot/Chatbot.css.ts.vanilla.css.js";
81
81
  /* empty css */
82
82
  import "../Chatbot/store/messages.js";
83
83
  /* empty css */