@axos-web-dev/shared-components 2.2.5 → 2.2.7-2
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.d.ts +1 -1
- package/dist/ATMLocator/ATMLocator.js +1 -0
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/Article/Article.d.ts +1 -1
- package/dist/Auth/ErrorAlert.d.ts +1 -1
- package/dist/Auth/ErrorAlert.js +1 -0
- package/dist/Auth/Logout.d.ts +1 -1
- package/dist/Auth/SignInPassword.d.ts +1 -1
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +1 -0
- package/dist/Button/GoBackButton.d.ts +1 -1
- package/dist/Calculators/Calculator.d.ts +1 -1
- package/dist/Calculators/Calculator.js +2 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +1 -0
- package/dist/Carousel/index.d.ts +3 -3
- package/dist/Carousel/index.js +1 -0
- package/dist/Chatbot/AudioManager.d.ts +19 -0
- package/dist/Chatbot/AudioManager.js +61 -0
- package/dist/Chatbot/Bubble.d.ts +1 -1
- package/dist/Chatbot/ChatWindow.css.d.ts +2 -0
- package/dist/Chatbot/ChatWindow.css.js +34 -30
- package/dist/Chatbot/ChatWindow.js +382 -363
- package/dist/Chatbot/Chatbot.d.ts +4 -1
- package/dist/Chatbot/Chatbot.js +24 -1
- package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
- package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
- package/dist/Chatbot/ExpandChatToggle.d.ts +8 -0
- package/dist/Chatbot/ExpandChatToggle.js +74 -0
- package/dist/Chatbot/index.js +5 -2
- package/dist/Chatbot/store/chat.d.ts +8 -0
- package/dist/Chatbot/store/chat.js +14 -2
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.d.ts +1 -1
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/Comparison/ComparisonSet.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -0
- package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
- package/dist/ExecutiveBio/Overlay.d.ts +1 -1
- package/dist/FaqAccordion/index.d.ts +5 -5
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FdicCallout/index.d.ts +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplyNow.d.ts +1 -1
- package/dist/Forms/ApplyNow.js +1 -0
- package/dist/Forms/BoatMooringLocation.d.ts +1 -1
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +1 -0
- package/dist/Forms/ContactUsLVF.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/ContactUsSchwabAAS.d.ts +1 -1
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +1 -0
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +1 -0
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/HoneyPot/index.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -0
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
- package/dist/Forms/MortgageWarehouseLending.d.ts +2 -2
- package/dist/Forms/MortgageWarehouseLending.js +8 -7
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/SuccesForm.d.ts +1 -1
- package/dist/Forms/SuccesForm.js +2 -1
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
- package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
- package/dist/Hyperlink/index.js +1 -0
- package/dist/IconBillboard/IconBillboard.d.ts +1 -1
- package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
- package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
- package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
- package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
- package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageLink/ImageLink.d.ts +1 -1
- package/dist/ImageLink/ImageLink.js +1 -0
- package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
- package/dist/ImageLink/ImageLinkSet.js +1 -0
- package/dist/ImageLink/index.js +1 -0
- package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
- package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
- package/dist/Insight/Featured/CategorySelector.js +1 -0
- package/dist/Insight/Featured/Featured.d.ts +2 -2
- package/dist/Insight/Featured/Featured.js +1 -0
- package/dist/Insight/Featured/Header.d.ts +1 -1
- package/dist/Insight/Featured/Header.js +1 -0
- package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
- package/dist/LoadingIndicator/index.d.ts +1 -1
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -0
- package/dist/Modal/contextApi/store.d.ts +1 -4
- package/dist/Modal/contextApi/store.js +34 -3
- package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosALTS/index.js +1 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
- package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +2 -0
- package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.js +1 -0
- package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
- package/dist/NavigationMenu/Navbar.d.ts +1 -1
- package/dist/NavigationMenu/Navbar.js +1 -0
- package/dist/NavigationMenu/SignInNavButton.d.ts +1 -3
- package/dist/NavigationMenu/SignInNavButton.js +2 -0
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/SecondaryFooter/index.d.ts +1 -1
- package/dist/SetContainer/SetContainer.d.ts +1 -1
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
- package/dist/SocialMediaBar/iconsRepository.js +1 -0
- package/dist/SocialMediaBar/index.d.ts +1 -1
- package/dist/Tab/Tab.d.ts +1 -1
- package/dist/Tab/TabContainer.d.ts +1 -1
- package/dist/Table/Table.d.ts +5 -5
- package/dist/TextBlock/TextBlock.d.ts +1 -1
- package/dist/Topic/Topic.d.ts +4 -4
- package/dist/VideoTile/VideoInit.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +1 -0
- package/dist/VideoWrapper/index.js +1 -0
- package/dist/WalnutIframe/index.d.ts +1 -1
- package/dist/assets/Chatbot/ChatWindow.css +69 -57
- package/dist/assets/globals.css +3 -0
- package/dist/assets/notification.mp3.js +4 -0
- package/dist/icons/AxosX/Blue.d.ts +1 -1
- package/dist/icons/AxosX/index.d.ts +1 -1
- package/dist/icons/CheckCircle.d.ts +1 -1
- package/dist/icons/CheckCircleLight.d.ts +1 -1
- package/dist/icons/CheckIcon/index.d.ts +1 -1
- package/dist/icons/ChevronDown.d.ts +1 -1
- package/dist/icons/ChevronUp.d.ts +1 -1
- package/dist/icons/Clock/index.d.ts +1 -1
- package/dist/icons/EqualHousingLender.d.ts +1 -1
- package/dist/icons/Logos/AAS.d.ts +1 -1
- package/dist/icons/Logos/AFS.d.ts +1 -1
- package/dist/icons/Logos/AXA.d.ts +1 -1
- package/dist/icons/Logos/AXB.d.ts +1 -1
- package/dist/icons/Logos/AXC.d.ts +1 -1
- package/dist/icons/Logos/AXI.d.ts +1 -1
- package/dist/icons/Logos/AXOS.d.ts +1 -1
- package/dist/icons/Logos/GBLVF.d.ts +1 -1
- package/dist/icons/Logos/LVF.d.ts +1 -1
- package/dist/icons/Logos/LVFText.d.ts +1 -1
- package/dist/icons/Logos/SPB.d.ts +1 -1
- package/dist/icons/MemberFdicLogo.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.d.ts +1 -1
- package/dist/icons/QuoteIconWhite.d.ts +1 -1
- package/dist/icons/QuoteIconYellow.d.ts +1 -1
- package/dist/main.js +5 -2
- package/dist/utils/useVisibility.d.ts +1 -0
- package/dist/utils/useVisibility.js +18 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +147 -147
- package/dist/Chatbot/Chat.d.ts +0 -1
- package/dist/Chatbot/Chat.js +0 -158
- package/dist/Chatbot/useHeadlessChat.d.ts +0 -27
- package/dist/Chatbot/useHeadlessChat.js +0 -240
|
@@ -14,4 +14,4 @@ export type DealerServicesInputs = {
|
|
|
14
14
|
zip: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
17
|
+
export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,4 +3,4 @@ import { FormProps } from './FormProps';
|
|
|
3
3
|
export type EmailOnlyInputs = {
|
|
4
4
|
email: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const EmailOnly: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const EmailOnly: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Forms/EmailOnly.js
CHANGED
package/dist/Forms/EmailUs.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export type EmailUsInputs = {
|
|
|
4
4
|
email: string;
|
|
5
5
|
message: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const EmailUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const EmailUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,4 +20,4 @@ export declare const isValidHoneyPot: (data: HoneyPotInterface) => boolean;
|
|
|
20
20
|
export declare const HoneyPot: ({ variant: fullVariant, register, }: {
|
|
21
21
|
variant?: FormProps["variant"];
|
|
22
22
|
register: UseFormRegister<any>;
|
|
23
|
-
}) => import("react").JSX.Element;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,4 +26,4 @@ export declare const MortgageRate: ({ icon, children, onSubmit, disclosure, vari
|
|
|
26
26
|
setRateWatchSubmitted?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
27
|
hideModalValue: boolean;
|
|
28
28
|
showingTables: boolean;
|
|
29
|
-
}) => import("react").JSX.Element;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,5 +25,5 @@ interface MortgageRateFiltersProps {
|
|
|
25
25
|
};
|
|
26
26
|
onSubmit: (values: MortgageRateFilterInputs) => void;
|
|
27
27
|
}
|
|
28
|
-
export declare const MortgageRateFilters: ({ formData, onSubmit, }: MortgageRateFiltersProps) => import("react").JSX.Element;
|
|
28
|
+
export declare const MortgageRateFilters: ({ formData, onSubmit, }: MortgageRateFiltersProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -25,5 +25,5 @@ type RateWatchFormProps = {
|
|
|
25
25
|
toggleModal: () => void;
|
|
26
26
|
setRateWatchSubmitted?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
27
|
};
|
|
28
|
-
export declare const RateWatchForm: ({ email, lastName, rateWatchOnSubmit, toggleModal, setRateWatchSubmitted, }: RateWatchFormProps) => import("react").JSX.Element;
|
|
28
|
+
export declare const RateWatchForm: ({ email, lastName, rateWatchOnSubmit, toggleModal, setRateWatchSubmitted, }: RateWatchFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -6,6 +6,6 @@ export type MortgageWarehouseLendingInputs = {
|
|
|
6
6
|
email: string;
|
|
7
7
|
phone: string;
|
|
8
8
|
Company_NMLS_ID__c: string;
|
|
9
|
-
|
|
9
|
+
company: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -78,6 +78,7 @@ import "../Carousel/index.js";
|
|
|
78
78
|
/* empty css */
|
|
79
79
|
/* empty css */
|
|
80
80
|
import "../Chatbot/store/chat.js";
|
|
81
|
+
import "../Chatbot/Chatbot.js";
|
|
81
82
|
/* empty css */
|
|
82
83
|
/* empty css */
|
|
83
84
|
import "../Chatbot/store/messages.js";
|
|
@@ -147,8 +148,8 @@ const MortgageWarehouseLending = ({
|
|
|
147
148
|
}) => {
|
|
148
149
|
const cachedEmailValidator = useCachedEmailValidator(validateEmail);
|
|
149
150
|
const schema = z.object({
|
|
150
|
-
first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/
|
|
151
|
-
last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/
|
|
151
|
+
first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/).trim().min(1, { message: "First Name is required." }),
|
|
152
|
+
last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/).trim().min(1, { message: "Last Name is required." }),
|
|
152
153
|
email: z.string().email({ message: "Email is required." }).refine(cachedEmailValidator, { message: "Invalid email address." }),
|
|
153
154
|
phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
154
155
|
const removeDashes = val.replace(/-/gi, "");
|
|
@@ -169,7 +170,7 @@ const MortgageWarehouseLending = ({
|
|
|
169
170
|
return removeDashes;
|
|
170
171
|
}),
|
|
171
172
|
Company_NMLS_ID__c: z.string().min(6).max(7),
|
|
172
|
-
|
|
173
|
+
company: z.string().min(1)
|
|
173
174
|
});
|
|
174
175
|
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
175
176
|
if (!isValidHoneyPot(data)) {
|
|
@@ -298,16 +299,16 @@ const MortgageWarehouseLending = ({
|
|
|
298
299
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
299
300
|
Input,
|
|
300
301
|
{
|
|
301
|
-
id: "
|
|
302
|
-
...register("
|
|
302
|
+
id: "company",
|
|
303
|
+
...register("company", {
|
|
303
304
|
required: true
|
|
304
305
|
}),
|
|
305
306
|
type: "text",
|
|
306
307
|
label: "Business Name",
|
|
307
308
|
sizes: "medium",
|
|
308
309
|
required: true,
|
|
309
|
-
error: !!errors.
|
|
310
|
-
helperText: errors.
|
|
310
|
+
error: !!errors.company,
|
|
311
|
+
helperText: errors.company?.message,
|
|
311
312
|
variant
|
|
312
313
|
}
|
|
313
314
|
) }),
|
|
@@ -43,4 +43,4 @@ export type QuickPricerInputs = {
|
|
|
43
43
|
Email_Address__c: string;
|
|
44
44
|
Cell_Phone__c: string;
|
|
45
45
|
};
|
|
46
|
-
export declare const QuickPricer: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, id, description, validateEmail, validateNMLS, onValidate, }: FormProps) => import("react").JSX.Element;
|
|
46
|
+
export declare const QuickPricer: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, id, description, validateEmail, validateNMLS, onValidate, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export type UserInformationI = {
|
|
|
7
7
|
src_img?: string;
|
|
8
8
|
title: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const UserInformation: ({ name, phone, email, src_img, title, children, }: UserInformationI & PropsWithChildren) => import("react").JSX.Element;
|
|
10
|
+
export declare const UserInformation: ({ name, phone, email, src_img, title, children, }: UserInformationI & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,4 +8,4 @@ export type ScheduleCallInputs = {
|
|
|
8
8
|
Best_Time_To_Call__c: string;
|
|
9
9
|
Best_Contact_Date__c: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, id, description, }: FormProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,4 +9,4 @@ export type ScheduleCallPremierInputs = {
|
|
|
9
9
|
Best_Time_To_Call__c: string;
|
|
10
10
|
Potential_Funding__c: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const ScheduleCallPremier: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react").JSX.Element;
|
|
12
|
+
export declare const ScheduleCallPremier: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface SuccessFormProps extends PropsWithChildren {
|
|
|
7
7
|
isSubmitted: boolean;
|
|
8
8
|
variant?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function SuccesFormWrapper({ children, isSubmitted, variant: fullVariant, bodyCopy, headline, id, }: SuccessFormProps): import("react").JSX.Element;
|
|
10
|
+
export declare function SuccesFormWrapper({ children, isSubmitted, variant: fullVariant, bodyCopy, headline, id, }: SuccessFormProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/Forms/SuccesForm.js
CHANGED
|
@@ -61,8 +61,9 @@ import "../Carousel/index.js";
|
|
|
61
61
|
/* empty css */
|
|
62
62
|
/* empty css */
|
|
63
63
|
import "../Chatbot/store/chat.js";
|
|
64
|
-
import "
|
|
64
|
+
import "../Chatbot/Chatbot.js";
|
|
65
65
|
/* empty css */
|
|
66
|
+
import "react-use";
|
|
66
67
|
/* empty css */
|
|
67
68
|
import "../Chatbot/store/messages.js";
|
|
68
69
|
/* empty css */
|
|
@@ -55,4 +55,4 @@ export type VendorQuestionnaireInputs = {
|
|
|
55
55
|
"jobtitle/0-1": string;
|
|
56
56
|
"email/0-1": string;
|
|
57
57
|
};
|
|
58
|
-
export declare const VendorQuestionnaire: ({ children, onSubmit, variant: fullVariant, validateEmail, onValidate, callToAction, id, }: FormProps) => import("react").JSX.Element;
|
|
58
|
+
export declare const VendorQuestionnaire: ({ children, onSubmit, variant: fullVariant, validateEmail, onValidate, callToAction, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type WCPLSruveyInputs = {
|
|
|
5
5
|
Description_of_Deal_Details: string;
|
|
6
6
|
Telephone: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const WCPLSurvey: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, onValidate, id, description, }: FormProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const WCPLSurvey: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, onValidate, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HeroBannerInterface } from './HeroBanner.interface';
|
|
2
2
|
|
|
3
|
-
export declare const HeroBanner: ({ id, eyebrow, headline, bodyCopy, bullets, subBodyCopy, callToActionRow, bannerType, image, imagePlacement, variant, selection, isSelectionBanner, video, videoTextPosition, }: HeroBannerInterface) => import("react").JSX.Element;
|
|
3
|
+
export declare const HeroBanner: ({ id, eyebrow, headline, bodyCopy, bullets, subBodyCopy, callToActionRow, bannerType, image, imagePlacement, variant, selection, isSelectionBanner, video, videoTextPosition, }: HeroBannerInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,4 +2,4 @@ export interface HeroVideoPosterProps {
|
|
|
2
2
|
otherSource: string;
|
|
3
3
|
thumbnailImage?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const HeroVideoPoster: ({ otherSource, thumbnailImage, }: HeroVideoPosterProps) => import("react").JSX.Element;
|
|
5
|
+
export declare const HeroVideoPoster: ({ otherSource, thumbnailImage, }: HeroVideoPosterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeroBannerInterface } from './HeroBanner.interface';
|
|
2
2
|
|
|
3
3
|
type LargeHeroBannerProps = Pick<HeroBannerInterface, "id" | "eyebrow" | "headline" | "bodyCopy" | "bullets" | "callToActionRow" | "image" | "imagePlacement" | "variant" | "video" | "bannerType" | "videoTextPosition">;
|
|
4
|
-
export declare const LargeHeroBanner: ({ id, eyebrow, headline, bodyCopy, bullets, callToActionRow, image, imagePlacement, variant, video, bannerType, videoTextPosition, }: LargeHeroBannerProps) => import("react").JSX.Element;
|
|
4
|
+
export declare const LargeHeroBanner: ({ id, eyebrow, headline, bodyCopy, bullets, callToActionRow, image, imagePlacement, variant, video, bannerType, videoTextPosition, }: LargeHeroBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
package/dist/Hyperlink/index.js
CHANGED
|
@@ -15,4 +15,4 @@ export interface FocusProps {
|
|
|
15
15
|
set?: boolean;
|
|
16
16
|
id?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare const IconBillboard: (props: FocusProps & ContainerVariants & LayoutVariants) => import("react").JSX.Element;
|
|
18
|
+
export declare const IconBillboard: (props: FocusProps & ContainerVariants & LayoutVariants) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconBillboardSet as Props } from './IconBillboard.interface';
|
|
2
2
|
|
|
3
|
-
export declare const IconBillboardSet: ({ variant, side, iconBillboards, headline, bodyCopy, additionalDetails, }: Props) => import("react").JSX.Element;
|
|
3
|
+
export declare const IconBillboardSet: ({ variant, side, iconBillboards, headline, bodyCopy, additionalDetails, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,5 @@ export declare const useFullClick: (callToActionRow?: ChevronProps[]) => {
|
|
|
8
8
|
handleClick: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
9
|
chevronText: string | undefined;
|
|
10
10
|
};
|
|
11
|
-
export declare const CallToActionSection: ({ callToActionRow, }: CallToActionSectionProps) => import("react").JSX.Element | null;
|
|
11
|
+
export declare const CallToActionSection: ({ callToActionRow, }: CallToActionSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
2
|
import { QuaternaryTypes } from '../../utils';
|
|
3
3
|
|
|
4
4
|
export interface HeaderSectionProps {
|
|
@@ -8,4 +8,4 @@ export interface HeaderSectionProps {
|
|
|
8
8
|
headline?: ReactNode | undefined;
|
|
9
9
|
variant: QuaternaryTypes;
|
|
10
10
|
}
|
|
11
|
-
export declare const HeaderSection: ({ body, headingLevel, headingRef, headline, variant, }: HeaderSectionProps) =>
|
|
11
|
+
export declare const HeaderSection: ({ body, headingLevel, headingRef, headline, variant, }: HeaderSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import { ImageInterface } from '..';
|
|
|
3
3
|
interface IconSectionProps {
|
|
4
4
|
icon?: ImageInterface;
|
|
5
5
|
}
|
|
6
|
-
export declare const IconSection: ({ icon }: IconSectionProps) => import("react").JSX.Element | null;
|
|
6
|
+
export declare const IconSection: ({ icon }: IconSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -8,4 +8,4 @@ export interface ItemsSectionProps {
|
|
|
8
8
|
}[];
|
|
9
9
|
variant: QuaternaryTypes;
|
|
10
10
|
}
|
|
11
|
-
export declare const ItemsSection: ({ items, variant }: ItemsSectionProps) => import("react").JSX.Element | null;
|
|
11
|
+
export declare const ItemsSection: ({ items, variant }: ItemsSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -4,5 +4,5 @@ interface LayoutSectionProps {
|
|
|
4
4
|
side: boolean;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const LayoutSection: ({ side, children }: LayoutSectionProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const LayoutSection: ({ side, children }: LayoutSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -5,5 +5,5 @@ interface ModalWrapperProps {
|
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
modalRef: React.RefObject<HTMLDivElement | null>;
|
|
7
7
|
}
|
|
8
|
-
export declare const ModalWrapper: ({ children, onClose, modalRef, }: ModalWrapperProps) =>
|
|
8
|
+
export declare const ModalWrapper: ({ children, onClose, modalRef, }: ModalWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageBillboardSetProps as Props } from './ImageBillboard.interface';
|
|
2
2
|
|
|
3
|
-
export declare const ImageBillboardSet: ({ id, variant, headline, bodyCopy, additionalDetails, imageBillboards, }: Props) => import("react").JSX.Element;
|
|
3
|
+
export declare const ImageBillboardSet: ({ id, variant, headline, bodyCopy, additionalDetails, imageBillboards, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageBillboardInterface } from './ImageBillboard.interface';
|
|
2
2
|
|
|
3
|
-
export declare const ImageBillboard: ({ id, bodyCopy, bordered, bullets, callToActionRow, exitIntent, eyebrow, headline, image, video, imagePlacement: position, internalName, set, textImageLineOneSmall, textImageLineThreeSmall, textImageLineTwoBig, variant, }: ImageBillboardInterface) => import("react").JSX.Element | null;
|
|
3
|
+
export declare const ImageBillboard: ({ id, bodyCopy, bordered, bullets, callToActionRow, exitIntent, eyebrow, headline, image, video, imagePlacement: position, internalName, set, textImageLineOneSmall, textImageLineThreeSmall, textImageLineTwoBig, variant, }: ImageBillboardInterface) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -11,5 +11,5 @@ export interface ImageLinkProps extends PropsWithChildren {
|
|
|
11
11
|
altText?: string;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
declare const ImageLink: ({ id, image, targetUrl, children }: ImageLinkProps) => import("react").JSX.Element;
|
|
14
|
+
declare const ImageLink: ({ id, image, targetUrl, children }: ImageLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default ImageLink;
|
|
@@ -7,4 +7,4 @@ export interface ImageLinkSetProps extends SetContainerProps {
|
|
|
7
7
|
callToActionRow?: ChevronProps[];
|
|
8
8
|
icon?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const ImageLinkSet: (props: ImageLinkSetProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const ImageLinkSet: (props: ImageLinkSetProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/ImageLink/index.js
CHANGED
|
@@ -6,5 +6,5 @@ export interface ImageWrapperProps {
|
|
|
6
6
|
heigth?: string | number;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
declare const ImageWrapper: ({ image }: ImageWrapperProps) => import("react").JSX.Element;
|
|
9
|
+
declare const ImageWrapper: ({ image }: ImageWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default ImageWrapper;
|
|
@@ -11,5 +11,5 @@ export interface CategorySelectorProps extends PropsWithChildren {
|
|
|
11
11
|
hideLink?: boolean;
|
|
12
12
|
hideMore?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const CategorySelector: (props: CategorySelectorProps) => import("react").JSX.Element;
|
|
15
|
-
export declare const InsightItem: (props: FeaturedItemProps) => import("react").JSX.Element;
|
|
14
|
+
export declare const CategorySelector: (props: CategorySelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const InsightItem: (props: FeaturedItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,5 +21,5 @@ export interface FeaturedItemProps {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const FeaturedItem: (props: FeaturedItemProps & {
|
|
23
23
|
variant: QuaternaryTypes;
|
|
24
|
-
}) => import("react").JSX.Element;
|
|
25
|
-
export declare const Featured: (props: InsightProps) => import("react").JSX.Element;
|
|
24
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const Featured: (props: InsightProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ type Props = {
|
|
|
3
3
|
breadcumb: Array<string> | undefined;
|
|
4
4
|
section: string | undefined;
|
|
5
5
|
};
|
|
6
|
-
declare const BreadcumbHeader: (props: Props) => import("react").JSX.Element;
|
|
6
|
+
declare const BreadcumbHeader: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { BreadcumbHeader };
|
|
@@ -8,4 +8,4 @@ export interface LandingPageHeaderProps {
|
|
|
8
8
|
alt?: string;
|
|
9
9
|
logo?: ImageInterface;
|
|
10
10
|
}
|
|
11
|
-
export declare const LandingPageHeader: ({ id, variant: fullVariant, project, alt, logo, }: LandingPageHeaderProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const LandingPageHeader: ({ id, variant: fullVariant, project, alt, logo, }: LandingPageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,4 +7,4 @@ export interface LoadingIndicatorProps {
|
|
|
7
7
|
variant: QuaternaryTypes;
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
}
|
|
10
|
-
export declare const LoadingIndicator: ({ width, height, variant, style, }: LoadingIndicatorProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const LoadingIndicator: ({ width, height, variant, style, }: LoadingIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/MainHTML/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export interface BodyProps extends PropsWithChildren {
|
|
|
4
4
|
theme: "Axos" | "Premier" | "Victorie" | "Ufb";
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const MainHTML: ({ theme, children, className, }: BodyProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const MainHTML: ({ theme, children, className, }: BodyProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Modal/Modal.js
CHANGED
|
@@ -13,13 +13,10 @@ export interface ContextProps {
|
|
|
13
13
|
domains: Record<string, string>;
|
|
14
14
|
domainsLoading: boolean;
|
|
15
15
|
domainsError: Error | null;
|
|
16
|
-
/** Resolve a template URL (e.g. "{AXOSBANK}/personal") using configured domains. Prefer this over passing domains to utils. */
|
|
17
16
|
resolveUrl: UrlResolver;
|
|
18
|
-
/** Check if a URL is allowed (same host as configured domains). Use for external-link validation. */
|
|
19
17
|
isAllowedUrl: (url: string) => boolean;
|
|
20
|
-
/** Returns true if the link should open the external-link modal. Use in link/button onClick. */
|
|
21
18
|
validateLink: (url: string) => boolean;
|
|
22
19
|
}
|
|
23
20
|
export declare const GlobalContext: import('react').Context<ContextProps>;
|
|
24
|
-
export declare const GlobalContextProvider: ({ children, domains: initialDomains, }: GlobalContextProviderProps) => import("react").JSX.Element;
|
|
21
|
+
export declare const GlobalContextProvider: ({ children, domains: initialDomains, }: GlobalContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
22
|
export declare const useGlobalContext: () => ContextProps;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Modal } from "../Modal.js";
|
|
4
4
|
import { findMoreAxosDomains, isAllowedUrl } from "../../utils/allowedAxosDomains.js";
|
|
5
|
-
import { createContext, useState, useCallback, useContext } from "react";
|
|
5
|
+
import { createContext, useState, useEffect, useCallback, useContext } from "react";
|
|
6
6
|
import { validateLink, shortUrl } from "../../utils/validateExternalLinks.js";
|
|
7
7
|
const noopResolver = (url) => url;
|
|
8
8
|
const GlobalContext = createContext({
|
|
@@ -26,9 +26,40 @@ const GlobalContextProvider = ({
|
|
|
26
26
|
const [domains] = useState(initialDomains);
|
|
27
27
|
const [domainsLoading] = useState(false);
|
|
28
28
|
const [domainsError] = useState(null);
|
|
29
|
+
const [currentSearch, setCurrentSearch] = useState(
|
|
30
|
+
typeof window !== "undefined" ? window.location.search.slice(1) : ""
|
|
31
|
+
);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const originalReplace = window.history.replaceState.bind(window.history);
|
|
34
|
+
window.history.replaceState = (...args) => {
|
|
35
|
+
originalReplace(...args);
|
|
36
|
+
setCurrentSearch(window.location.search.slice(1));
|
|
37
|
+
};
|
|
38
|
+
setCurrentSearch(window.location.search.slice(1));
|
|
39
|
+
return () => {
|
|
40
|
+
window.history.replaceState = originalReplace;
|
|
41
|
+
};
|
|
42
|
+
}, []);
|
|
29
43
|
const resolveUrl = useCallback(
|
|
30
|
-
(url) =>
|
|
31
|
-
|
|
44
|
+
(url) => {
|
|
45
|
+
const resolved = findMoreAxosDomains(url, domains);
|
|
46
|
+
if (!currentSearch || !url) return resolved;
|
|
47
|
+
try {
|
|
48
|
+
const resolvedUrl = new URL(resolved, window.location.origin);
|
|
49
|
+
const existingParams = new URLSearchParams(resolvedUrl.search);
|
|
50
|
+
const pageParams = new URLSearchParams(currentSearch);
|
|
51
|
+
for (const [key, value] of pageParams.entries()) {
|
|
52
|
+
if (!existingParams.has(key)) {
|
|
53
|
+
existingParams.append(key, value);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
resolvedUrl.search = existingParams.toString();
|
|
57
|
+
return resolvedUrl.toString();
|
|
58
|
+
} catch {
|
|
59
|
+
return resolved;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
[domains, currentSearch]
|
|
32
63
|
);
|
|
33
64
|
const isAllowedUrl$1 = useCallback(
|
|
34
65
|
(url) => isAllowedUrl(url, domains),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function NavBar(): import("react").JSX.Element;
|
|
1
|
+
declare function NavBar(): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default NavBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function SubNavBar(): import("react").JSX.Element;
|
|
1
|
+
export default function SubNavBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function NavBar(): import("react").JSX.Element;
|
|
1
|
+
declare function NavBar(): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default NavBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function SubNavBar(): import("react").JSX.Element;
|
|
1
|
+
export default function SubNavBar(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function NavBar(): import("react").JSX.Element;
|
|
1
|
+
declare function NavBar(): import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default NavBar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const MobileDrawerMenu: () => import("react").JSX.Element;
|
|
1
|
+
declare const MobileDrawerMenu: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default MobileDrawerMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function SubNavBar(): import("react").JSX.Element | null;
|
|
1
|
+
export default function SubNavBar(): import("react/jsx-runtime").JSX.Element | null;
|