@axos-web-dev/shared-components 1.0.100-dev.62 → 1.0.100-dev.62-1
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/ATMLocator/ATMLocator.js +1 -1
- package/dist/Accordion/Accordion.css.d.ts +1 -1
- package/dist/Accordion/Accordion.css.js +1 -1
- package/dist/Accordion/Accordion.js +2 -2
- package/dist/AlertBanner/AlertBanner.css.js +1 -1
- package/dist/AlertBanner/index.js +1 -1
- package/dist/Article/Article.css.d.ts +40 -40
- package/dist/Article/Article.css.js +1 -1
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +20 -20
- package/dist/ArticlesSet/ArticlesSet.css.js +1 -1
- package/dist/Auth/ErrorAlert.css.js +1 -1
- package/dist/Auth/ErrorAlert.js +2 -2
- package/dist/Auth/Logout.js +1 -1
- package/dist/Auth/SignIn.css.js +1 -1
- package/dist/Auth/SignInPassword.js +1 -1
- package/dist/Avatar/Avatar.module.js +1 -1
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
- package/dist/AwardsItem/AwardsItem.css.js +1 -1
- package/dist/Blockquote/Blockquote.module.js +1 -1
- package/dist/BulletItem/BulletItem.css.js +1 -1
- package/dist/BulletItem/BulletItem.js +1 -1
- package/dist/Button/Button.css.d.ts +18 -18
- package/dist/Button/Button.css.js +1 -1
- package/dist/Button/Button.js +1 -1
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +12 -12
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -1
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/AxosOneCalculator/index.js +2 -2
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +20 -20
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/BalanceAPYCalculator/index.js +2 -2
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +18 -18
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +1 -1
- package/dist/Calculators/BuyDownCalculator/index.js +2 -2
- package/dist/Calculators/Calculator.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +2 -2
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +1 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/index.js +2 -2
- package/dist/Calculators/calculator.css.d.ts +12 -12
- package/dist/Calculators/calculator.css.js +1 -1
- package/dist/CallToActionBar/CallToActionBar.css.js +1 -1
- package/dist/CallToActionBar/index.js +1 -1
- package/dist/Carousel/Carousel.css.d.ts +24 -24
- package/dist/Carousel/Carousel.css.js +1 -1
- package/dist/Carousel/index.js +2 -2
- package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +1 -1
- package/dist/Chatbot/AnimatedGradientBorder.css.js +1 -1
- package/dist/Chatbot/Bubble.css.js +1 -1
- package/dist/Chatbot/Bubble.js +1 -1
- package/dist/Chatbot/Chat.js +0 -7
- package/dist/Chatbot/ChatWindow.css.js +1 -1
- package/dist/Chatbot/ChatWindow.d.ts +2 -0
- package/dist/Chatbot/ChatWindow.js +20 -4
- package/dist/Chatbot/Chatbot.css.js +1 -1
- package/dist/Chatbot/Chatbot.js +90 -9
- package/dist/Chatbot/ChatbotMessage.d.ts +1 -0
- package/dist/Chatbot/ChatbotMessage.js +6 -3
- package/dist/Chatbot/ThankYouMessage.js +2 -2
- package/dist/Chatbot/store/chat.d.ts +3 -0
- package/dist/Chatbot/store/chat.js +10 -2
- package/dist/Chatbot/store/messages.d.ts +1 -0
- package/dist/Chatbot/store/messages.js +5 -2
- package/dist/Chevron/Chevron.css.d.ts +4 -4
- package/dist/Chevron/Chevron.css.js +1 -1
- package/dist/Chevron/index.js +2 -2
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -1
- package/dist/CollectInformationAlert/index.js +1 -1
- package/dist/Comparison/Comparison.css.d.ts +10 -10
- package/dist/Comparison/Comparison.css.js +1 -1
- package/dist/Comparison/Comparison.js +2 -2
- package/dist/Comparison/ComparisonSet.js +1 -1
- package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
- package/dist/ContentBanner/ContentBanner.css.js +1 -1
- package/dist/DownloadTile/DownloadTile.css.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +69 -69
- package/dist/ExecutiveBio/ExecutiveBio.css.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/FaqAccordion/FaqAccordion.css.js +1 -1
- package/dist/FaqAccordion/index.js +2 -2
- package/dist/FdicCallout/FdicCallout.module.js +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
- package/dist/Forms/ApplicationStart.js +2 -2
- package/dist/Forms/ApplyNow.js +2 -2
- package/dist/Forms/ClearingForm.js +2 -2
- package/dist/Forms/CommercialDeposits.js +2 -2
- package/dist/Forms/CommercialDepositsNoLendingOption.js +2 -2
- package/dist/Forms/CommercialLending.js +2 -2
- package/dist/Forms/CommercialPremiumFinance.js +2 -2
- package/dist/Forms/ContactCompany.js +2 -2
- package/dist/Forms/ContactCompanyTitle.js +2 -2
- package/dist/Forms/ContactUs.js +2 -2
- package/dist/Forms/ContactUsAAS.js +2 -2
- package/dist/Forms/ContactUsBusiness.js +2 -2
- package/dist/Forms/ContactUsBusinessNameEmail.js +2 -2
- package/dist/Forms/ContactUsLVF.js +2 -2
- package/dist/Forms/ContactUsNMLSId.js +2 -2
- package/dist/Forms/CpraRequest.js +2 -2
- package/dist/Forms/CraPublicFile.js +2 -2
- package/dist/Forms/DealerServices.js +2 -2
- package/dist/Forms/EmailOnly.js +2 -2
- package/dist/Forms/EmailUs.js +2 -2
- package/dist/Forms/Forms.css.d.ts +44 -44
- package/dist/Forms/Forms.css.js +1 -1
- package/dist/Forms/HoneyPot/HoneyPot.css.js +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +2 -2
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
- package/dist/Forms/MortgageWarehouseLending.js +2 -2
- package/dist/Forms/QuickPricer/QuickPricerForm.js +3 -3
- package/dist/Forms/QuickPricer/QuickPricerResults.css.js +1 -1
- package/dist/Forms/QuickPricer/UserInformation.css.js +1 -1
- package/dist/Forms/ScheduleCall.js +2 -2
- package/dist/Forms/ScheduleCallPremier.js +2 -2
- package/dist/Forms/SuccesForm.js +2 -2
- package/dist/Forms/VendorQuestionnaire.js +1 -1
- package/dist/Forms/WcplSurvey.js +2 -2
- package/dist/HelpArticle/HelpArticle.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +16 -16
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
- package/dist/HeroBanner/LargeBanner.css.js +1 -1
- package/dist/HeroBanner/SelectionBanner.css.d.ts +4 -4
- package/dist/HeroBanner/SelectionBanner.css.js +1 -1
- package/dist/Hyperlink/Hyperlink.css.d.ts +4 -4
- package/dist/Hyperlink/Hyperlink.css.js +1 -1
- package/dist/Hyperlink/index.js +1 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts +22 -22
- package/dist/IconBillboard/IconBillboard.css.js +1 -1
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +16 -16
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +2 -2
- package/dist/ImageLink/ImageLink.css.js +1 -1
- package/dist/ImageLink/ImageLink.js +1 -1
- package/dist/ImageLink/ImageLinkSet.js +1 -1
- package/dist/ImageLink/index.js +1 -1
- package/dist/Input/Checkbox.css.js +1 -1
- package/dist/Input/Dropdown.css.js +1 -1
- package/dist/Input/Input.css.d.ts +16 -16
- package/dist/Input/Input.css.js +1 -1
- package/dist/Input/RadioButton.css.js +1 -1
- package/dist/Inputs/Input.css.d.ts +14 -14
- package/dist/Inputs/Input.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.js +3 -3
- package/dist/Insight/Featured/Featured.css.js +1 -1
- package/dist/Insight/Featured/Featured.js +2 -2
- package/dist/Insight/Featured/Header.css.js +1 -1
- package/dist/Insight/Featured/Header.js +2 -2
- package/dist/Insight/Insight.css.js +1 -1
- package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
- package/dist/Interstitial/Interstitial-variants.css.js +1 -1
- package/dist/Interstitial/Interstitial.module.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
- package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/dist/Modal/Modal.css.js +1 -1
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +1 -1
- package/dist/NavigationMenu/AxosALTS/index.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +1 -1
- package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.css.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
- package/dist/NavigationMenu/LaVictoire/index.js +1 -1
- package/dist/NavigationMenu/NavDataJson.js +1 -1
- package/dist/NavigationMenu/Navbar.js +1 -1
- package/dist/NavigationMenu/SignInNavButton.js +1 -1
- package/dist/PageNavItem/PageNavItem.css.d.ts +4 -4
- package/dist/PageNavItem/PageNavItem.css.js +1 -1
- package/dist/PageNavSet/PageNavSet.js +1 -1
- package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
- package/dist/Pagination/Pagination.css.js +1 -1
- package/dist/Pagination/Pagination.js +2 -2
- package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -1
- package/dist/SecondaryFooter/index.js +1 -1
- package/dist/SetContainer/SetContainer.css.d.ts +16 -16
- package/dist/SetContainer/SetContainer.css.js +1 -1
- package/dist/SetContainer/SetContainer.js +2 -2
- package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
- package/dist/SocialMediaBar/iconsRepository.js +1 -1
- package/dist/StepItem/StepItem.css.d.ts +20 -20
- package/dist/StepItem/StepItem.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.css.d.ts +12 -12
- package/dist/StepItemSet/StepItemSet.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Tab/Tab.css.d.ts +12 -12
- package/dist/Tab/Tab.css.js +1 -1
- package/dist/Table/Table.css.d.ts +26 -26
- package/dist/Table/Table.css.js +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Table.js +2 -2
- package/dist/TextBlock/TextBlock.css.js +1 -1
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/Topic/Topic.css.js +1 -1
- package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
- package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
- package/dist/Typography/Typography.css.js +1 -1
- package/dist/VideoTile/VideoTile.css.js +1 -1
- package/dist/VideoTile/VideoTile.js +1 -1
- package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
- package/dist/VideoWrapper/index.js +1 -1
- package/dist/WalnutIframe/wrapper.module.js +1 -1
- package/dist/globals.css.js +1 -1
- package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -1
- package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
- package/dist/icons/CheckIcon/CheckIcon.css.js +1 -1
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -1
- package/dist/icons/FollowIcon/FollowIcon.css.js +1 -1
- package/dist/icons/Star/Star.css.js +1 -1
- package/dist/index.css.js +1 -1
- package/dist/themes/axos.css.d.ts +50 -50
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/premier.css.js +1 -1
- package/dist/themes/ufb.css.js +1 -1
- package/dist/themes/victorie.css.js +1 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +1 -1
- package/package.json +1 -1
|
@@ -2,36 +2,36 @@ export declare const calculator: string;
|
|
|
2
2
|
export declare const calculator_description: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
3
3
|
variant: {
|
|
4
4
|
primary: {
|
|
5
|
-
background: `var(--${string})
|
|
6
|
-
color: `var(--${string})
|
|
5
|
+
background: `var(--${string})`;
|
|
6
|
+
color: `var(--${string})`;
|
|
7
7
|
};
|
|
8
8
|
secondary: {
|
|
9
|
-
background: `var(--${string})
|
|
10
|
-
color: `var(--${string})
|
|
9
|
+
background: `var(--${string})`;
|
|
10
|
+
color: `var(--${string})`;
|
|
11
11
|
};
|
|
12
12
|
tertiary: {
|
|
13
|
-
background: `var(--${string})
|
|
14
|
-
color: `var(--${string})
|
|
13
|
+
background: `var(--${string})`;
|
|
14
|
+
color: `var(--${string})`;
|
|
15
15
|
};
|
|
16
16
|
quaternary: {
|
|
17
|
-
background: `var(--${string})
|
|
18
|
-
color: `var(--${string})
|
|
17
|
+
background: `var(--${string})`;
|
|
18
|
+
color: `var(--${string})`;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
}>;
|
|
22
22
|
export declare const calculator_headline: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
23
23
|
variant: {
|
|
24
24
|
primary: {
|
|
25
|
-
color: `var(--${string})
|
|
25
|
+
color: `var(--${string})`;
|
|
26
26
|
};
|
|
27
27
|
secondary: {
|
|
28
|
-
color: `var(--${string})
|
|
28
|
+
color: `var(--${string})`;
|
|
29
29
|
};
|
|
30
30
|
tertiary: {
|
|
31
|
-
color: `var(--${string})
|
|
31
|
+
color: `var(--${string})`;
|
|
32
32
|
};
|
|
33
33
|
quaternary: {
|
|
34
|
-
color: `var(--${string})
|
|
34
|
+
color: `var(--${string})`;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../assets/Calculators/calculator.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';import '../assets/Typography/Typography.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/Typography/Typography.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -8,7 +8,7 @@ import { Chevron } from "../Chevron/index.js";
|
|
|
8
8
|
import { getVariant } from "../utils/getVariant.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { getBannerSizeClassName } from "../utils/ctaOptions.js";
|
|
11
|
-
import { sticky_banner, is_sticky, cta,
|
|
11
|
+
import { sticky_banner, is_sticky, cta, cta_image_section, cta_image_section_overlap, cta_image_overlap, cta_large_image, cta_h2, cta_text, ctas_section, cta_body_section, cta_containment } from "./CallToActionBar.css.js";
|
|
12
12
|
const CallToActionBar = ({
|
|
13
13
|
bannerSize,
|
|
14
14
|
image,
|
|
@@ -5,53 +5,53 @@ export declare const dots: string;
|
|
|
5
5
|
export declare const headerCarousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
6
6
|
variant: {
|
|
7
7
|
primary: {
|
|
8
|
-
color: `var(--${string})
|
|
8
|
+
color: `var(--${string})`;
|
|
9
9
|
};
|
|
10
10
|
secondary: {
|
|
11
|
-
color: `var(--${string})
|
|
11
|
+
color: `var(--${string})`;
|
|
12
12
|
};
|
|
13
13
|
tertiary: {
|
|
14
|
-
color: `var(--${string})
|
|
14
|
+
color: `var(--${string})`;
|
|
15
15
|
};
|
|
16
16
|
quaternary: {
|
|
17
|
-
color: `var(--${string})
|
|
17
|
+
color: `var(--${string})`;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
21
21
|
export declare const carousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
22
22
|
variant: {
|
|
23
23
|
primary: {
|
|
24
|
-
background: `var(--${string})
|
|
24
|
+
background: `var(--${string})`;
|
|
25
25
|
border: "1px solid #E9EBEF";
|
|
26
|
-
color: `var(--${string})
|
|
26
|
+
color: `var(--${string})`;
|
|
27
27
|
};
|
|
28
28
|
secondary: {
|
|
29
|
-
background: `var(--${string})
|
|
30
|
-
color: `var(--${string})
|
|
29
|
+
background: `var(--${string})`;
|
|
30
|
+
color: `var(--${string})`;
|
|
31
31
|
};
|
|
32
32
|
tertiary: {
|
|
33
|
-
background: `var(--${string})
|
|
34
|
-
color: `var(--${string})
|
|
33
|
+
background: `var(--${string})`;
|
|
34
|
+
color: `var(--${string})`;
|
|
35
35
|
};
|
|
36
36
|
quaternary: {
|
|
37
|
-
background: `var(--${string})
|
|
38
|
-
color: `var(--${string})
|
|
37
|
+
background: `var(--${string})`;
|
|
38
|
+
color: `var(--${string})`;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}>;
|
|
42
42
|
export declare const descriptionCarousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
43
43
|
variant: {
|
|
44
44
|
primary: {
|
|
45
|
-
color: `var(--${string})
|
|
45
|
+
color: `var(--${string})`;
|
|
46
46
|
};
|
|
47
47
|
secondary: {
|
|
48
|
-
color: `var(--${string})
|
|
48
|
+
color: `var(--${string})`;
|
|
49
49
|
};
|
|
50
50
|
tertiary: {
|
|
51
|
-
color: `var(--${string})
|
|
51
|
+
color: `var(--${string})`;
|
|
52
52
|
};
|
|
53
53
|
quaternary: {
|
|
54
|
-
color: `var(--${string})
|
|
54
|
+
color: `var(--${string})`;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
@@ -59,16 +59,16 @@ export declare const authorLocation: string;
|
|
|
59
59
|
export declare const author: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
60
60
|
variant: {
|
|
61
61
|
primary: {
|
|
62
|
-
color: `var(--${string})
|
|
62
|
+
color: `var(--${string})`;
|
|
63
63
|
};
|
|
64
64
|
secondary: {
|
|
65
|
-
color: `var(--${string})
|
|
65
|
+
color: `var(--${string})`;
|
|
66
66
|
};
|
|
67
67
|
tertiary: {
|
|
68
|
-
color: `var(--${string})
|
|
68
|
+
color: `var(--${string})`;
|
|
69
69
|
};
|
|
70
70
|
quaternary: {
|
|
71
|
-
color: `var(--${string})
|
|
71
|
+
color: `var(--${string})`;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
}>;
|
|
@@ -79,7 +79,7 @@ export declare const icon: import('@vanilla-extract/recipes').RuntimeFn<{}>;
|
|
|
79
79
|
export declare const dot: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
80
80
|
variant: {
|
|
81
81
|
primary: {
|
|
82
|
-
borderColor: `var(--${string})
|
|
82
|
+
borderColor: `var(--${string})`;
|
|
83
83
|
selectors: {
|
|
84
84
|
"&:hover": {
|
|
85
85
|
background: "#87B9D7";
|
|
@@ -87,7 +87,7 @@ export declare const dot: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
secondary: {
|
|
90
|
-
borderColor: `var(--${string})
|
|
90
|
+
borderColor: `var(--${string})`;
|
|
91
91
|
selectors: {
|
|
92
92
|
"&:hover": {
|
|
93
93
|
background: "#87B9D7";
|
|
@@ -95,7 +95,7 @@ export declare const dot: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
tertiary: {
|
|
98
|
-
borderColor: `var(--${string})
|
|
98
|
+
borderColor: `var(--${string})`;
|
|
99
99
|
selectors: {
|
|
100
100
|
"&:hover": {
|
|
101
101
|
background: "#EBEBEB";
|
|
@@ -103,7 +103,7 @@ export declare const dot: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
105
|
quaternary: {
|
|
106
|
-
borderColor: `var(--${string})
|
|
106
|
+
borderColor: `var(--${string})`;
|
|
107
107
|
selectors: {
|
|
108
108
|
"&:hover": {
|
|
109
109
|
background: "#EBEBEB";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../assets/Carousel/Carousel.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
package/dist/Carousel/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getVariant } from "../utils/getVariant.js";
|
|
|
6
6
|
import { section_text } from "../IconBillboard/IconBillboard.css.js";
|
|
7
7
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
8
8
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
9
|
-
|
|
9
|
+
import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar.css';import '../assets/NavigationMenu/AxosALTS/NavBar.css';import '../assets/NavigationMenu/AxosClearing/NavBar.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Chatbot.css';import '../assets/Chatbot/Bubble.css';import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/Insight/Insight.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Modal/Modal.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
@@ -133,7 +133,7 @@ import "../StepItemSet/StepItemSet.css.js";
|
|
|
133
133
|
/* empty css */
|
|
134
134
|
/* empty css */
|
|
135
135
|
/* empty css */
|
|
136
|
-
import { icon, slide, authorLocation, author, quoteSetContainer, headerCarousel, descriptionCarousel,
|
|
136
|
+
import { icon, slide, authorLocation, author, quoteSetContainer, headerCarousel, descriptionCarousel, slides, carousel, dots, dot } from "./Carousel.css.js";
|
|
137
137
|
import { useCarousel } from "./store.js";
|
|
138
138
|
const iconVarints = /* @__PURE__ */ new Map([
|
|
139
139
|
[
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
package/dist/Chatbot/Bubble.js
CHANGED
|
@@ -4,7 +4,7 @@ import { vars } from "../themes/axos.css.js";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { AnimatePresence, motion } from "framer-motion";
|
|
6
6
|
import { gradientBorder } from "./AnimatedGradientBorder.css.js";
|
|
7
|
-
import {
|
|
7
|
+
import { inner, svgFill, bubbleText, bubbleButton, bubbleWrapper } from "./Bubble.css.js";
|
|
8
8
|
import { useOpenChat } from "./store/chat.js";
|
|
9
9
|
const Bubble = ({
|
|
10
10
|
children,
|
package/dist/Chatbot/Chat.js
CHANGED
|
@@ -33,7 +33,6 @@ function Chat() {
|
|
|
33
33
|
let chatConnectedHandler;
|
|
34
34
|
async function initChat() {
|
|
35
35
|
const { Client, consoleLoggerHandler, Logger } = await import("@ujet/websdk-headless");
|
|
36
|
-
console.log("this", isMounted);
|
|
37
36
|
Logger.addHandler(consoleLoggerHandler);
|
|
38
37
|
clientRef.current = new Client({
|
|
39
38
|
companyId,
|
|
@@ -71,14 +70,11 @@ function Chat() {
|
|
|
71
70
|
menus?.menus[5].id
|
|
72
71
|
);
|
|
73
72
|
}
|
|
74
|
-
console.log("this");
|
|
75
73
|
identityHandler = (identity) => {
|
|
76
74
|
if (!isMounted.current) return;
|
|
77
75
|
console.log("identity:", identity);
|
|
78
76
|
};
|
|
79
77
|
messageHandler = (msg) => {
|
|
80
|
-
console.log("new message:", msg);
|
|
81
|
-
console.log("addMessage:", msg);
|
|
82
78
|
addMessage(msg);
|
|
83
79
|
};
|
|
84
80
|
chatUpdatedHandler = (chat) => {
|
|
@@ -87,13 +83,11 @@ function Chat() {
|
|
|
87
83
|
chatConnectedHandler = async () => {
|
|
88
84
|
console.log("connected");
|
|
89
85
|
const messagesFetched = await clientRef.current?.fetchMessages();
|
|
90
|
-
console.log("[messages]:", messagesFetched);
|
|
91
86
|
addMessages(messagesFetched || []);
|
|
92
87
|
};
|
|
93
88
|
memberJoinedHandler = (identity) => {
|
|
94
89
|
console.log("member joined:", identity);
|
|
95
90
|
};
|
|
96
|
-
console.log(isMounted.current);
|
|
97
91
|
clientRef.current?.on("authenticated", () => {
|
|
98
92
|
console.log("authenticated");
|
|
99
93
|
});
|
|
@@ -144,7 +138,6 @@ function Chat() {
|
|
|
144
138
|
const form = e.target;
|
|
145
139
|
const input = form.elements[0];
|
|
146
140
|
const message = input.value;
|
|
147
|
-
console.log("Sending message:", message);
|
|
148
141
|
try {
|
|
149
142
|
await clientRef.current?.sendTextMessage(message);
|
|
150
143
|
input.value = "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../assets/Chatbot/ChatWindow.css';import '../assets/Chatbot/Chatbot.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -24,6 +24,8 @@ interface ChatWindowProps {
|
|
|
24
24
|
showName?: boolean;
|
|
25
25
|
onNewChat?: () => void;
|
|
26
26
|
onCloseAfterThankYou?: () => void;
|
|
27
|
+
isTyping?: boolean;
|
|
28
|
+
previewTyping?: (msg: string) => void;
|
|
27
29
|
}
|
|
28
30
|
export declare const ChatWindow: React.FC<ChatWindowProps>;
|
|
29
31
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { vars } from "../themes/axos.css.js";
|
|
4
|
-
|
|
4
|
+
import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
@@ -10,7 +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 {
|
|
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";
|
|
14
14
|
import { EllipsisIcon } from "./EllipsisIcon.js";
|
|
15
15
|
import { useOpenChat } from "./store/chat.js";
|
|
16
16
|
import { ThankYouMessage } from "./ThankYouMessage.js";
|
|
@@ -32,9 +32,17 @@ const ChatWindow = ({
|
|
|
32
32
|
showName = false,
|
|
33
33
|
onCloseAfterThankYou = () => {
|
|
34
34
|
console.log("Close after thank you");
|
|
35
|
+
},
|
|
36
|
+
previewTyping = (msg) => {
|
|
37
|
+
console.log("Preview typing: ", msg);
|
|
35
38
|
}
|
|
36
39
|
}) => {
|
|
37
|
-
const {
|
|
40
|
+
const {
|
|
41
|
+
showThankyouMessage,
|
|
42
|
+
displayThankyouMessage,
|
|
43
|
+
toggleThankyouMessage,
|
|
44
|
+
hasEscalated
|
|
45
|
+
} = useOpenChat();
|
|
38
46
|
const [mounted, setMounted] = React.useState(false);
|
|
39
47
|
const [menuOpen, setMenuOpen] = React.useState(false);
|
|
40
48
|
const [showEndChatDialog, setShowEndChatDialog] = React.useState(false);
|
|
@@ -136,6 +144,7 @@ const ChatWindow = ({
|
|
|
136
144
|
/* @__PURE__ */ jsx(
|
|
137
145
|
"button",
|
|
138
146
|
{
|
|
147
|
+
disabled: messages.length === 0,
|
|
139
148
|
onClick: () => {
|
|
140
149
|
setMenuOpen(!menuOpen);
|
|
141
150
|
},
|
|
@@ -417,7 +426,11 @@ const ChatWindow = ({
|
|
|
417
426
|
showAvatar,
|
|
418
427
|
showName,
|
|
419
428
|
virtualAgent,
|
|
420
|
-
onCancelEndChat
|
|
429
|
+
onCancelEndChat,
|
|
430
|
+
onEndChat: () => {
|
|
431
|
+
endChat();
|
|
432
|
+
onCloseAfterThankYou();
|
|
433
|
+
}
|
|
421
434
|
},
|
|
422
435
|
msg?.$index
|
|
423
436
|
)),
|
|
@@ -449,6 +462,9 @@ const ChatWindow = ({
|
|
|
449
462
|
value: input,
|
|
450
463
|
onChange: (e) => setInput(e.target.value),
|
|
451
464
|
onKeyDown: (e) => {
|
|
465
|
+
if (hasEscalated) {
|
|
466
|
+
previewTyping(e.target?.value);
|
|
467
|
+
}
|
|
452
468
|
if (e.key === "Enter" && !e.shiftKey) {
|
|
453
469
|
e.preventDefault();
|
|
454
470
|
const cleaned = cleanInput(input);
|
package/dist/Chatbot/Chatbot.js
CHANGED
|
@@ -14,7 +14,14 @@ const Chatbot = ({
|
|
|
14
14
|
menuOption = "Support Virtual Agent",
|
|
15
15
|
debug = false
|
|
16
16
|
}) => {
|
|
17
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
hasOpenedOnce,
|
|
19
|
+
toggle,
|
|
20
|
+
reset,
|
|
21
|
+
startEscalation,
|
|
22
|
+
hasEscalated,
|
|
23
|
+
endEscalation
|
|
24
|
+
} = useOpenChat();
|
|
18
25
|
const { addMessage, addMessages, clearMessages, messages } = useMessages();
|
|
19
26
|
const clientRef = useRef(null);
|
|
20
27
|
const menuRef = useRef(null);
|
|
@@ -26,6 +33,20 @@ const Chatbot = ({
|
|
|
26
33
|
const [hasStarted, setHasStarted] = useState(false);
|
|
27
34
|
const [menusLoaded, setMenusLoaded] = useState(false);
|
|
28
35
|
const [pendingStart, setPendingStart] = useState(false);
|
|
36
|
+
const [isTyping, setIsTyping] = useState(false);
|
|
37
|
+
const [scalationStarted, setScalationStarted] = useState(false);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (messages.length === 0) return;
|
|
40
|
+
const hasScalation = messages.some(
|
|
41
|
+
(msg) => msg.$userType === "user" || ["escalationAccepted", "escalationStarted"].includes(
|
|
42
|
+
msg.event
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
setScalationStarted(hasScalation);
|
|
46
|
+
return () => {
|
|
47
|
+
setScalationStarted(false);
|
|
48
|
+
};
|
|
49
|
+
}, [messages]);
|
|
29
50
|
const brandMap = /* @__PURE__ */ new Map([
|
|
30
51
|
["axos", 1],
|
|
31
52
|
["ufb", 3]
|
|
@@ -33,8 +54,7 @@ const Chatbot = ({
|
|
|
33
54
|
const typingMessage = {
|
|
34
55
|
$sid: "typing-1",
|
|
35
56
|
type: "system",
|
|
36
|
-
|
|
37
|
-
text: "AI is typing...",
|
|
57
|
+
text: scalationStarted ? "Typing" : "AI is typing...",
|
|
38
58
|
sender: { id: "system", type: "system" },
|
|
39
59
|
$timestamp: /* @__PURE__ */ new Date(),
|
|
40
60
|
$userType: "system",
|
|
@@ -77,13 +97,39 @@ const Chatbot = ({
|
|
|
77
97
|
};
|
|
78
98
|
const onChatMessageHandler = async (message) => {
|
|
79
99
|
console.log("Received message:", message);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
100
|
+
if (["system", "virtual_agent", "user"].includes(message.$userType) && message.event === void 0) {
|
|
101
|
+
addMessage(message);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const eventName = message?.event;
|
|
105
|
+
switch (eventName) {
|
|
106
|
+
case "escalationAccepted":
|
|
107
|
+
setScalationStarted(true);
|
|
108
|
+
startEscalation?.();
|
|
109
|
+
addMessage(message);
|
|
110
|
+
return;
|
|
111
|
+
case "escalationStarted":
|
|
112
|
+
setScalationStarted(true);
|
|
113
|
+
startEscalation?.();
|
|
114
|
+
addMessage(message);
|
|
115
|
+
return;
|
|
116
|
+
default:
|
|
117
|
+
addMessage(message);
|
|
118
|
+
if (["end_user"].includes(message.$userType)) {
|
|
119
|
+
if (!hasEscalated) {
|
|
120
|
+
addMessage(typingMessage);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return;
|
|
83
124
|
}
|
|
84
125
|
};
|
|
85
126
|
const onChatTypingStartedHandler = async (identity) => {
|
|
86
127
|
console.log("Typing started by:", identity);
|
|
128
|
+
setIsTyping(true);
|
|
129
|
+
};
|
|
130
|
+
const onChatTypingEndedHandler = async (identity) => {
|
|
131
|
+
console.log("Typing ended by:", identity);
|
|
132
|
+
setIsTyping(false);
|
|
87
133
|
};
|
|
88
134
|
const onChatDisconnectedHandler = async () => {
|
|
89
135
|
console.log("Chat disconnected");
|
|
@@ -105,23 +151,38 @@ const Chatbot = ({
|
|
|
105
151
|
const onChatMemberLeftHandler = async (identity) => {
|
|
106
152
|
console.log("Chat member left:", identity);
|
|
107
153
|
};
|
|
154
|
+
const onChatMemberJoinedHandler = async (identity) => {
|
|
155
|
+
console.log("Chat member joined:", identity);
|
|
156
|
+
};
|
|
108
157
|
const onChatConnectedHandler = async () => {
|
|
109
158
|
setStatus("connected");
|
|
110
159
|
console.log("connected");
|
|
111
160
|
const messages2 = await clientRef.current?.fetchMessages();
|
|
112
161
|
if (messages2) {
|
|
113
162
|
addMessages(messages2);
|
|
163
|
+
const hasEscalation = messages2.some(
|
|
164
|
+
(msg) => msg.$userType === "user" || ["escalationAccepted", "escalationStarted"].includes(
|
|
165
|
+
msg.event
|
|
166
|
+
)
|
|
167
|
+
);
|
|
168
|
+
console.log(hasEscalation);
|
|
169
|
+
if (hasEscalation) {
|
|
170
|
+
setScalationStarted(true);
|
|
171
|
+
startEscalation?.();
|
|
172
|
+
}
|
|
114
173
|
}
|
|
115
174
|
};
|
|
116
175
|
const registerEventHandlers = () => {
|
|
117
176
|
clientRef.current?.on("chat.ongoing", onChatOngoingHandler);
|
|
118
177
|
clientRef.current?.on("chat.message", onChatMessageHandler);
|
|
119
178
|
clientRef.current?.on("chat.typingStarted", onChatTypingStartedHandler);
|
|
179
|
+
clientRef.current?.on("chat.typingEnded", onChatTypingEndedHandler);
|
|
120
180
|
clientRef.current?.on("chat.disconnected", onChatDisconnectedHandler);
|
|
121
181
|
clientRef.current?.on("chat.dismissed", onDismissedHandler);
|
|
122
182
|
clientRef.current?.on("chat.timeout", onTimeoutHandler);
|
|
123
183
|
clientRef.current?.on("chat.ended", onEndedHandler);
|
|
124
184
|
clientRef.current?.on("chat.destroyed", onDestroyedHandler);
|
|
185
|
+
clientRef.current?.on("chat.memberJoined", onChatMemberJoinedHandler);
|
|
125
186
|
clientRef.current?.on("chat.memberLeft", onChatMemberLeftHandler);
|
|
126
187
|
clientRef?.current?.on("chat.connected", onChatConnectedHandler);
|
|
127
188
|
};
|
|
@@ -131,12 +192,14 @@ const Chatbot = ({
|
|
|
131
192
|
clientRef.current?.off("chat.ongoing", onDismissedHandler);
|
|
132
193
|
clientRef.current?.off("chat.message", onChatMessageHandler);
|
|
133
194
|
clientRef.current?.off("chat.typingStarted", onChatTypingStartedHandler);
|
|
195
|
+
clientRef.current?.off("chat.typingEnded", onChatTypingEndedHandler);
|
|
134
196
|
clientRef.current?.off("chat.disconnected", onChatDisconnectedHandler);
|
|
135
197
|
clientRef.current?.off("chat.dismissed", onDismissedHandler);
|
|
136
198
|
clientRef.current?.off("chat.timeout", onTimeoutHandler);
|
|
137
199
|
clientRef.current?.off("chat.ended", onEndedHandler);
|
|
138
200
|
clientRef.current?.off("chat.destroyed", onDestroyedHandler);
|
|
139
201
|
clientRef.current?.off("chat.memberLeft", onChatMemberLeftHandler);
|
|
202
|
+
clientRef.current?.off("chat.memberJoined", onChatMemberJoinedHandler);
|
|
140
203
|
clientRef.current?.off("chat.connected", onChatConnectedHandler);
|
|
141
204
|
};
|
|
142
205
|
const createClient = async () => {
|
|
@@ -150,6 +213,9 @@ const Chatbot = ({
|
|
|
150
213
|
tenant: process.env.CCAI_TENANT_NAME || "",
|
|
151
214
|
host: process.env.CCAI_HOST || "",
|
|
152
215
|
// or your region
|
|
216
|
+
// companyId: import.meta.env.VITE_COMPANY_ID || "",
|
|
217
|
+
// tenant: import.meta.env.VITE_TENANT_NAME || "",
|
|
218
|
+
// host: import.meta.env.VITE_HOST || "", // or your region
|
|
153
219
|
authenticate
|
|
154
220
|
});
|
|
155
221
|
client?.on("ready", onReadyHandler);
|
|
@@ -210,9 +276,9 @@ const Chatbot = ({
|
|
|
210
276
|
setHasStarted(true);
|
|
211
277
|
}
|
|
212
278
|
};
|
|
213
|
-
const onSendMessage = (msg) => {
|
|
279
|
+
const onSendMessage = async (msg) => {
|
|
214
280
|
console.log("Sending message:", msg);
|
|
215
|
-
clientRef.current?.sendTextMessage(msg);
|
|
281
|
+
await clientRef.current?.sendTextMessage(msg);
|
|
216
282
|
};
|
|
217
283
|
const onEndChat = async () => {
|
|
218
284
|
console.log("Ending chat");
|
|
@@ -223,6 +289,7 @@ const Chatbot = ({
|
|
|
223
289
|
chatRef.current = null;
|
|
224
290
|
console.log("Chat ended");
|
|
225
291
|
setHasStarted(false);
|
|
292
|
+
endEscalation?.();
|
|
226
293
|
}
|
|
227
294
|
};
|
|
228
295
|
const onEndAndStartNewChat = async () => {
|
|
@@ -251,6 +318,7 @@ const Chatbot = ({
|
|
|
251
318
|
setHasStarted(false);
|
|
252
319
|
setStatus("idle");
|
|
253
320
|
clearMessages();
|
|
321
|
+
endEscalation?.();
|
|
254
322
|
clientRef.current?.destroy();
|
|
255
323
|
clientRef.current?.destroyChat();
|
|
256
324
|
clientRef.current = null;
|
|
@@ -262,6 +330,17 @@ const Chatbot = ({
|
|
|
262
330
|
reset();
|
|
263
331
|
setHasStarted(false);
|
|
264
332
|
};
|
|
333
|
+
const onPreviewTyping = async (msg) => {
|
|
334
|
+
console.log("Preview typing message:", msg);
|
|
335
|
+
try {
|
|
336
|
+
if (clientRef.current) {
|
|
337
|
+
chatRef.current?.startTyping();
|
|
338
|
+
await clientRef.current?.sendPreviewMessage(msg);
|
|
339
|
+
}
|
|
340
|
+
} catch (error) {
|
|
341
|
+
console.error("Error sending preview message:", error);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
265
344
|
return /* @__PURE__ */ jsxs("div", { className: project === "ufb" ? chatbotUFB : chatbotAXB, children: [
|
|
266
345
|
/* @__PURE__ */ jsx(Bubble, { onClick: handleClick }),
|
|
267
346
|
/* @__PURE__ */ jsx(
|
|
@@ -274,7 +353,9 @@ const Chatbot = ({
|
|
|
274
353
|
endChat: onEndChat,
|
|
275
354
|
onClose,
|
|
276
355
|
onNewChat: onEndAndStartNewChat,
|
|
277
|
-
onCloseAfterThankYou
|
|
356
|
+
onCloseAfterThankYou,
|
|
357
|
+
previewTyping: onPreviewTyping,
|
|
358
|
+
isTyping
|
|
278
359
|
}
|
|
279
360
|
)
|
|
280
361
|
] });
|