@axos-web-dev/shared-components 1.0.100-dev.43-executive.2 → 1.0.100-dev.43
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 +2 -3
- package/dist/Auth/ErrorAlert.js +1 -2
- package/dist/Auth/SignInPassword.js +2 -2
- package/dist/BulletItem/BulletItem.js +1 -0
- package/dist/Button/Button.js +1 -2
- package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
- package/dist/Calculators/BuyDownCalculator/index.js +1 -1
- package/dist/Calculators/Calculator.js +2 -3
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
- package/dist/Carousel/index.js +1 -2
- package/dist/Chatbot/Bubble.css.js +0 -1
- package/dist/Chatbot/ChatWindow.css.d.ts +1 -0
- package/dist/Chatbot/ChatWindow.css.js +14 -11
- package/dist/Chatbot/ChatWindow.js +87 -66
- package/dist/Chatbot/Chatbot.d.ts +1 -1
- package/dist/Chatbot/Chatbot.js +46 -10
- package/dist/Chatbot/index.js +2 -1
- package/dist/Chevron/index.js +1 -2
- package/dist/Comparison/Comparison.js +1 -2
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +0 -136
- package/dist/ExecutiveBio/ExecutiveBio.css.js +0 -46
- package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +4 -10
- package/dist/ExecutiveBio/ExecutiveBio.js +86 -331
- package/dist/ExecutiveBio/index.js +1 -24
- package/dist/FaqAccordion/index.js +1 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -2
- package/dist/Forms/ApplicationStart.js +4 -2
- package/dist/Forms/ApplyNow.js +2 -3
- package/dist/Forms/ClearingForm.js +4 -2
- package/dist/Forms/CommercialDeposits.js +4 -2
- package/dist/Forms/CommercialDepositsNoLendingOption.js +4 -2
- package/dist/Forms/CommercialLending.js +4 -2
- package/dist/Forms/CommercialPremiumFinance.js +4 -2
- package/dist/Forms/ContactCompany.js +4 -2
- package/dist/Forms/ContactCompanyTitle.js +4 -2
- package/dist/Forms/ContactUs.js +4 -2
- package/dist/Forms/ContactUsAAS.js +4 -2
- package/dist/Forms/ContactUsBusiness.js +5 -4
- package/dist/Forms/ContactUsBusinessNameEmail.js +5 -4
- package/dist/Forms/ContactUsLVF.js +4 -2
- package/dist/Forms/ContactUsNMLSId.js +5 -4
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +5 -2
- package/dist/Forms/CraPublicFile.js +5 -4
- package/dist/Forms/DealerServices.js +4 -2
- package/dist/Forms/EmailOnly.js +5 -4
- package/dist/Forms/EmailUs.js +7 -5
- package/dist/Forms/HoneyPot/index.js +2 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +6 -5
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -2
- package/dist/Forms/MortgageWarehouseLending.js +5 -4
- package/dist/Forms/QuickPricer/QuickPricerForm.js +16 -12
- package/dist/Forms/ScheduleCall.js +4 -2
- package/dist/Forms/ScheduleCallPremier.js +4 -2
- package/dist/Forms/SuccesForm.js +2 -3
- package/dist/Forms/VendorQuestionnaire.js +6 -2
- package/dist/Forms/index.js +1 -0
- package/dist/Hyperlink/index.js +1 -2
- package/dist/ImageLink/ImageLink.js +2 -3
- package/dist/ImageLink/ImageLinkSet.js +1 -2
- package/dist/ImageLink/index.js +1 -2
- package/dist/Insight/Featured/CategorySelector.js +1 -2
- package/dist/Insight/Featured/Featured.js +1 -2
- package/dist/Insight/Featured/Header.js +1 -2
- package/dist/LoadingIndicator/index.js +1 -0
- package/dist/Modal/Modal.js +1 -2
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +1 -2
- package/dist/NavigationMenu/AxosALTS/index.js +1 -2
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -2
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -2
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +8 -7
- package/dist/NavigationMenu/AxosBank/index.js +1 -2
- package/dist/NavigationMenu/LaVictoire/NavData.js +1 -2
- package/dist/NavigationMenu/LaVictoire/index.js +1 -2
- package/dist/NavigationMenu/NavDataJson.js +1 -2
- package/dist/NavigationMenu/Navbar.js +1 -2
- package/dist/NavigationMenu/SignInNavButton.js +1 -2
- package/dist/SetContainer/SetContainer.js +2 -3
- package/dist/SocialMediaBar/iconsRepository.js +1 -2
- package/dist/Tab/Tab.js +1 -0
- package/dist/Table/Table.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +1 -2
- package/dist/VideoWrapper/index.js +1 -2
- package/dist/assets/Chatbot/ChatWindow.css +38 -26
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +0 -239
- package/dist/main.js +11 -26
- package/dist/utils/emailValidation.d.ts +1 -0
- package/dist/utils/emailValidation.js +31 -0
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.js +9 -1
- package/dist/utils/nmlsValidation.d.ts +1 -0
- package/dist/utils/nmlsValidation.js +34 -0
- package/dist/utils/useCachedValidators.d.ts +2 -0
- package/dist/utils/useCachedValidators.js +22 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -42,7 +42,7 @@ import { bubbleWrapper, svgFill } from "./Chatbot/Bubble.css.js";
|
|
|
42
42
|
import { Chatbot } from "./Chatbot/Chatbot.js";
|
|
43
43
|
import { chatbotAXB, chatbotUFB } from "./Chatbot/Chatbot.css.js";
|
|
44
44
|
import { ChatWindow } from "./Chatbot/ChatWindow.js";
|
|
45
|
-
import { arrowFill, button_reset, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
|
|
45
|
+
import { arrowFill, autoResize, button_reset, chatFinishDialog, chatNetworkStatus, chat_title, chatbotMenu, chatbotMenuItem, endChatButtonStyle, inline_button, inline_button_wrapper, inputStyle, messageStyle, messagesContainerStyle, notificationStyle, sendButtonStyle, windowBarStyle, windowOpenStyle, windowStyle } from "./Chatbot/ChatWindow.css.js";
|
|
46
46
|
import { useOpenChat } from "./Chatbot/store/chat.js";
|
|
47
47
|
import { useMessages } from "./Chatbot/store/messages.js";
|
|
48
48
|
import { Chevron } from "./Chevron/index.js";
|
|
@@ -52,7 +52,7 @@ import { ComparisonSet } from "./Comparison/ComparisonSet.js";
|
|
|
52
52
|
import { ContentBanner } from "./ContentBanner/index.js";
|
|
53
53
|
import { DownloadTile } from "./DownloadTile/index.js";
|
|
54
54
|
import { ExecutiveBio } from "./ExecutiveBio/ExecutiveBio.js";
|
|
55
|
-
import { bio_section_text,
|
|
55
|
+
import { bio_section_text, components, contact_col, contact_entry, contacts, copy, description, details, executive_bio, header_theme, headline_setting, headshot, img_area, item_bio, job_title, media, padding, person, section_theme, shift, svg_icon, url_row } from "./ExecutiveBio/ExecutiveBio.css.js";
|
|
56
56
|
import { ExecutiveBioSet } from "./ExecutiveBio/ExecutiveBioSet.js";
|
|
57
57
|
import { AccordionCtas, AccordionItem, AccordionItemContent, AccordionItemSummary, FaqAccordion } from "./FaqAccordion/index.js";
|
|
58
58
|
import { FdicBanner } from "./FdicCallout/index.js";
|
|
@@ -205,11 +205,14 @@ import { VideoWrapper } from "./VideoWrapper/index.js";
|
|
|
205
205
|
import { Tab } from "./Tab/Tab.js";
|
|
206
206
|
import { TabContainer } from "./Tab/TabContainer.js";
|
|
207
207
|
import { findMoreAxosDomains, isAllowedUrl } from "./utils/allowedAxosDomains.js";
|
|
208
|
+
import { appendQueryParams } from "./utils/appendQueryParams.js";
|
|
209
|
+
import { createCachedEmailValidator } from "./utils/emailValidation.js";
|
|
208
210
|
import { associatedEmail } from "./utils/EverestValidity.js";
|
|
209
211
|
import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
|
|
212
|
+
import { createCachedNMLSValidator } from "./utils/nmlsValidation.js";
|
|
213
|
+
import { useCachedEmailValidator, useCachedNMLSValidator } from "./utils/useCachedValidators.js";
|
|
210
214
|
import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./utils/validateExternalLinks.js";
|
|
211
215
|
import { columnValues } from "./utils/variant.types.js";
|
|
212
|
-
import { appendQueryParams } from "./utils/appendQueryParams.js";
|
|
213
216
|
import { padding_in_footer, smb_section, smb_wrapper } from "./SocialMediaBar/SocialMediaBar.css.js";
|
|
214
217
|
export {
|
|
215
218
|
default20 as AASLogo,
|
|
@@ -431,6 +434,7 @@ export {
|
|
|
431
434
|
article_share_svg,
|
|
432
435
|
article_spacer,
|
|
433
436
|
associatedEmail,
|
|
437
|
+
autoResize,
|
|
434
438
|
award_company,
|
|
435
439
|
award_item,
|
|
436
440
|
award_name,
|
|
@@ -466,8 +470,6 @@ export {
|
|
|
466
470
|
bs_wrapper,
|
|
467
471
|
bubbleWrapper,
|
|
468
472
|
bullet_details,
|
|
469
|
-
bulletsHeadline,
|
|
470
|
-
bulletsWrapper,
|
|
471
473
|
button,
|
|
472
474
|
button_reset,
|
|
473
475
|
buttons,
|
|
@@ -478,19 +480,6 @@ export {
|
|
|
478
480
|
center_center,
|
|
479
481
|
center_left,
|
|
480
482
|
center_right,
|
|
481
|
-
ceoContainer,
|
|
482
|
-
ceoContent,
|
|
483
|
-
ceoHeader,
|
|
484
|
-
ceoImgWrapper,
|
|
485
|
-
ceoMedia,
|
|
486
|
-
ceoPersonalInfo,
|
|
487
|
-
ceoSection,
|
|
488
|
-
ceoWrapper,
|
|
489
|
-
ceo_body,
|
|
490
|
-
ceo_contacts,
|
|
491
|
-
ceo_name,
|
|
492
|
-
ceo_quote,
|
|
493
|
-
ceo_title,
|
|
494
483
|
chatFinishDialog,
|
|
495
484
|
chatNetworkStatus,
|
|
496
485
|
chat_title,
|
|
@@ -516,6 +505,8 @@ export {
|
|
|
516
505
|
containerIconBillboard,
|
|
517
506
|
content,
|
|
518
507
|
copy,
|
|
508
|
+
createCachedEmailValidator,
|
|
509
|
+
createCachedNMLSValidator,
|
|
519
510
|
description,
|
|
520
511
|
descriptionField,
|
|
521
512
|
details,
|
|
@@ -555,7 +546,6 @@ export {
|
|
|
555
546
|
featured_supertag,
|
|
556
547
|
featured_title,
|
|
557
548
|
findMoreAxosDomains,
|
|
558
|
-
flexColumn,
|
|
559
549
|
footerDisclosure,
|
|
560
550
|
footerLink,
|
|
561
551
|
footerParagraph,
|
|
@@ -617,9 +607,7 @@ export {
|
|
|
617
607
|
highlight_first_row,
|
|
618
608
|
highlight_last_row,
|
|
619
609
|
highlight_th,
|
|
620
|
-
highlights,
|
|
621
610
|
honeyPotSchema,
|
|
622
|
-
hover,
|
|
623
611
|
icon,
|
|
624
612
|
iconContainer,
|
|
625
613
|
iconContainerBase,
|
|
@@ -632,7 +620,6 @@ export {
|
|
|
632
620
|
image_background,
|
|
633
621
|
image_based,
|
|
634
622
|
image_inner_wrapper,
|
|
635
|
-
imgAlignment,
|
|
636
623
|
img_area,
|
|
637
624
|
img_contents,
|
|
638
625
|
inline_button,
|
|
@@ -693,7 +680,6 @@ export {
|
|
|
693
680
|
notificationStyle,
|
|
694
681
|
ol,
|
|
695
682
|
one_row,
|
|
696
|
-
order_3,
|
|
697
683
|
padding,
|
|
698
684
|
padding_in_footer,
|
|
699
685
|
paragraph,
|
|
@@ -752,7 +738,6 @@ export {
|
|
|
752
738
|
single_container,
|
|
753
739
|
smb_section,
|
|
754
740
|
smb_wrapper,
|
|
755
|
-
social,
|
|
756
741
|
spb_container,
|
|
757
742
|
spb_hover,
|
|
758
743
|
step_num,
|
|
@@ -765,7 +750,6 @@ export {
|
|
|
765
750
|
success_wrap,
|
|
766
751
|
supertag,
|
|
767
752
|
svgFill,
|
|
768
|
-
svg_color,
|
|
769
753
|
svg_fill,
|
|
770
754
|
svg_icon,
|
|
771
755
|
svg_logo,
|
|
@@ -787,7 +771,6 @@ export {
|
|
|
787
771
|
three_inline,
|
|
788
772
|
title,
|
|
789
773
|
toggle_container,
|
|
790
|
-
tooltip,
|
|
791
774
|
top_center,
|
|
792
775
|
top_left,
|
|
793
776
|
top_right,
|
|
@@ -801,6 +784,8 @@ export {
|
|
|
801
784
|
two_inline,
|
|
802
785
|
up_to,
|
|
803
786
|
url_row,
|
|
787
|
+
useCachedEmailValidator,
|
|
788
|
+
useCachedNMLSValidator,
|
|
804
789
|
useGlobalContext,
|
|
805
790
|
useMessages,
|
|
806
791
|
useOpenChat,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createCachedEmailValidator(validateEmail: (email: string) => Promise<boolean>): (val: string) => Promise<boolean>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
function createCachedEmailValidator(validateEmail) {
|
|
3
|
+
const emailValidationCache = /* @__PURE__ */ new Map();
|
|
4
|
+
const validatingEmails = /* @__PURE__ */ new Set();
|
|
5
|
+
return async (val) => {
|
|
6
|
+
if (!val || !z.string().email().safeParse(val).success) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
if (emailValidationCache.has(val)) {
|
|
10
|
+
return emailValidationCache.get(val) ?? false;
|
|
11
|
+
}
|
|
12
|
+
if (validatingEmails.has(val)) {
|
|
13
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
14
|
+
if (emailValidationCache.has(val)) {
|
|
15
|
+
return emailValidationCache.get(val) ?? false;
|
|
16
|
+
}
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
validatingEmails.add(val);
|
|
20
|
+
try {
|
|
21
|
+
const isValid = await validateEmail(val);
|
|
22
|
+
emailValidationCache.set(val, isValid);
|
|
23
|
+
return isValid;
|
|
24
|
+
} finally {
|
|
25
|
+
validatingEmails.delete(val);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
createCachedEmailValidator
|
|
31
|
+
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './allowedAxosDomains';
|
|
2
|
+
export * from './appendQueryParams';
|
|
3
|
+
export * from './emailValidation';
|
|
2
4
|
export * from './EverestValidity';
|
|
3
5
|
export * from './getVariant';
|
|
6
|
+
export * from './nmlsValidation';
|
|
7
|
+
export * from './useCachedValidators';
|
|
4
8
|
export * from './validateExternalLinks';
|
|
5
9
|
export * from './variant.types';
|
|
6
|
-
export * from './appendQueryParams';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { findMoreAxosDomains, isAllowedUrl } from "./allowedAxosDomains.js";
|
|
3
|
+
import { appendQueryParams } from "./appendQueryParams.js";
|
|
4
|
+
import { createCachedEmailValidator } from "./emailValidation.js";
|
|
2
5
|
import { associatedEmail } from "./EverestValidity.js";
|
|
3
6
|
import { getVariant, getVariantWithRegex } from "./getVariant.js";
|
|
7
|
+
import { createCachedNMLSValidator } from "./nmlsValidation.js";
|
|
8
|
+
import { useCachedEmailValidator, useCachedNMLSValidator } from "./useCachedValidators.js";
|
|
4
9
|
import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./validateExternalLinks.js";
|
|
5
10
|
import { columnValues } from "./variant.types.js";
|
|
6
|
-
import { appendQueryParams } from "./appendQueryParams.js";
|
|
7
11
|
export {
|
|
8
12
|
appendQueryParams,
|
|
9
13
|
associatedEmail,
|
|
10
14
|
columnValues,
|
|
15
|
+
createCachedEmailValidator,
|
|
16
|
+
createCachedNMLSValidator,
|
|
11
17
|
findMoreAxosDomains,
|
|
12
18
|
getVariant,
|
|
13
19
|
getVariantWithRegex,
|
|
@@ -16,5 +22,7 @@ export {
|
|
|
16
22
|
isEmailLink,
|
|
17
23
|
isPhoneLink,
|
|
18
24
|
shortUrl,
|
|
25
|
+
useCachedEmailValidator,
|
|
26
|
+
useCachedNMLSValidator,
|
|
19
27
|
validateLink
|
|
20
28
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createCachedNMLSValidator(validateNMLS: (nmls_id: string) => Promise<any>): (val: string) => Promise<boolean>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function createCachedNMLSValidator(validateNMLS) {
|
|
2
|
+
const nmlsValidationCache = /* @__PURE__ */ new Map();
|
|
3
|
+
const validatingNMLS = /* @__PURE__ */ new Set();
|
|
4
|
+
return async (val) => {
|
|
5
|
+
if (!val || val.trim().length === 0 || val.trim().length < 4) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
if (nmlsValidationCache.has(val)) {
|
|
9
|
+
return nmlsValidationCache.get(val) ?? false;
|
|
10
|
+
}
|
|
11
|
+
if (validatingNMLS.has(val)) {
|
|
12
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
13
|
+
if (nmlsValidationCache.has(val)) {
|
|
14
|
+
return nmlsValidationCache.get(val) ?? false;
|
|
15
|
+
}
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
validatingNMLS.add(val);
|
|
19
|
+
try {
|
|
20
|
+
const res = await validateNMLS(val);
|
|
21
|
+
const isValid = Boolean(res?.body?.data?.records?.length > 0);
|
|
22
|
+
nmlsValidationCache.set(val, isValid);
|
|
23
|
+
return isValid;
|
|
24
|
+
} catch (error) {
|
|
25
|
+
nmlsValidationCache.set(val, false);
|
|
26
|
+
return false;
|
|
27
|
+
} finally {
|
|
28
|
+
validatingNMLS.delete(val);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
createCachedNMLSValidator
|
|
34
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRef } from "react";
|
|
3
|
+
import { createCachedEmailValidator } from "./emailValidation.js";
|
|
4
|
+
import { createCachedNMLSValidator } from "./nmlsValidation.js";
|
|
5
|
+
function useCachedEmailValidator(validateEmail) {
|
|
6
|
+
const validatorRef = useRef();
|
|
7
|
+
if (!validatorRef.current) {
|
|
8
|
+
validatorRef.current = createCachedEmailValidator(validateEmail);
|
|
9
|
+
}
|
|
10
|
+
return validatorRef.current;
|
|
11
|
+
}
|
|
12
|
+
function useCachedNMLSValidator(validateNMLS) {
|
|
13
|
+
const validatorRef = useRef();
|
|
14
|
+
if (!validatorRef.current) {
|
|
15
|
+
validatorRef.current = createCachedNMLSValidator(validateNMLS);
|
|
16
|
+
}
|
|
17
|
+
return validatorRef.current;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
useCachedEmailValidator,
|
|
21
|
+
useCachedNMLSValidator
|
|
22
|
+
};
|
package/package.json
CHANGED