@axos-web-dev/shared-components 1.0.95 → 1.0.96-envVars-0.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 +3 -8
- package/dist/Auth/ErrorAlert.js +4 -9
- package/dist/Auth/SignInPassword.js +0 -1
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/BulletItem/BulletItem.js +0 -1
- package/dist/Button/Button.js +4 -8
- package/dist/Calculators/AnnualFeeCalculator/index.js +0 -1
- package/dist/Calculators/AxosOneCalculator/index.js +0 -1
- package/dist/Calculators/BalanceAPYCalculator/index.js +0 -1
- package/dist/Calculators/BuyDownCalculator/index.js +0 -1
- package/dist/Calculators/Calculator.js +0 -5
- package/dist/Calculators/MarginTradingCalculator/index.js +111 -1
- package/dist/Calculators/MaxLoanCalculator/index.js +0 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +0 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +0 -1
- package/dist/Calculators/SummitApyCalculator/index.js +0 -1
- package/dist/Carousel/index.js +7 -12
- package/dist/Chevron/index.js +3 -7
- package/dist/Comparison/Comparison.js +6 -11
- package/dist/ExecutiveBio/ExecutiveBio.js +0 -5
- package/dist/FaqAccordion/index.js +3 -8
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +139 -89
- package/dist/Forms/ApplicationStart.js +0 -1
- package/dist/Forms/ApplyNow.js +1 -6
- package/dist/Forms/ClearingForm.js +0 -1
- package/dist/Forms/CommercialDeposits.js +0 -1
- package/dist/Forms/CommercialLending.js +0 -1
- package/dist/Forms/CommercialPremiumFinance.js +0 -1
- package/dist/Forms/ContactCompany.js +0 -1
- package/dist/Forms/ContactCompanyTitle.js +0 -1
- package/dist/Forms/ContactUs.js +0 -1
- package/dist/Forms/ContactUsAAS.js +0 -1
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +8 -13
- package/dist/Forms/ContactUsBusinessNameEmail.js +3 -8
- package/dist/Forms/ContactUsLVF.js +0 -1
- package/dist/Forms/ContactUsNMLSId.js +3 -8
- package/dist/Forms/CpraRequest.js +93 -2
- package/dist/Forms/CraPublicFile.js +3 -8
- package/dist/Forms/DealerServices.js +0 -1
- package/dist/Forms/EmailOnly.js +3 -8
- package/dist/Forms/EmailUs.js +0 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +4 -9
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +3 -8
- package/dist/Forms/QuickPricer/QuickPricerForm.js +0 -1
- package/dist/Forms/ScheduleCall.js +0 -1
- package/dist/Forms/ScheduleCallPremier.js +0 -1
- package/dist/Forms/SuccesForm.js +3 -8
- package/dist/Forms/VendorQuestionnaire.js +0 -1
- package/dist/Forms/index.js +0 -1
- package/dist/Hyperlink/index.js +4 -8
- package/dist/IconBillboard/IconBillboard.d.ts +1 -2
- package/dist/IconBillboard/IconBillboard.js +27 -109
- package/dist/IconBillboard/index.js +1 -2
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
- package/dist/IconBillboard/sections/CallToActionSection.js +101 -0
- package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
- package/dist/IconBillboard/sections/HeaderSection.js +23 -0
- package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
- package/dist/IconBillboard/sections/IconSection.js +18 -0
- package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
- package/dist/IconBillboard/sections/ItemsSection.js +11 -0
- package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
- package/dist/IconBillboard/sections/LayoutSection.js +6 -0
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -1
- package/dist/ImageLink/ImageLink.js +3 -8
- package/dist/ImageLink/ImageLinkSet.js +5 -10
- package/dist/ImageLink/index.js +1 -6
- package/dist/Insight/Featured/CategorySelector.js +1 -6
- package/dist/Insight/Featured/Featured.js +7 -12
- package/dist/Insight/Featured/Header.js +6 -11
- package/dist/LoadingIndicator/index.js +0 -1
- package/dist/Modal/Modal.js +1 -6
- package/dist/Modal/contextApi/store.d.ts +9 -2
- package/dist/Modal/contextApi/store.js +15 -4
- package/dist/NavigationMenu/AxosALTS/NavData.d.ts +5 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +10 -10
- package/dist/NavigationMenu/AxosALTS/index.js +14 -11
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +2 -10
- package/dist/NavigationMenu/AxosAdvisor/index.js +2 -11
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.js +0 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.js +0 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +118 -3
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +2 -3
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +292 -183
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/NavData.d.ts +37 -2
- package/dist/NavigationMenu/AxosBank/NavData.js +44 -39
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +320 -177
- package/dist/NavigationMenu/AxosBank/index.js +22 -16
- package/dist/NavigationMenu/AxosClearing/index.js +0 -1
- package/dist/NavigationMenu/LaVictoire/NavData.d.ts +11 -2
- package/dist/NavigationMenu/LaVictoire/NavData.js +14 -19
- package/dist/NavigationMenu/LaVictoire/SubNavBar.js +4 -1
- package/dist/NavigationMenu/LaVictoire/index.js +17 -17
- package/dist/SetContainer/SetContainer.js +3 -8
- package/dist/SocialMediaBar/iconsRepository.d.ts +42 -14
- package/dist/SocialMediaBar/iconsRepository.js +33 -32
- package/dist/SocialMediaBar/index.js +3 -1
- package/dist/Tab/Tab.js +0 -1
- package/dist/Table/Table.js +0 -1
- package/dist/VideoTile/VideoTile.js +0 -5
- package/dist/VideoWrapper/index.js +0 -5
- package/dist/assets/Blockquote/Blockquote.css.css +68 -68
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
- package/dist/main.js +3 -3
- package/dist/utils/allowedAxosDomains.d.ts +3 -2
- package/dist/utils/allowedAxosDomains.js +47 -44
- package/dist/utils/index.js +2 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/dist/utils/validateExternalLinks.d.ts +1 -1
- package/dist/utils/validateExternalLinks.js +2 -2
- package/package.json +133 -133
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
@keyframes
|
|
2
|
-
from {
|
|
3
|
-
transform: translateX(-100%);
|
|
4
|
-
}
|
|
5
|
-
to {
|
|
6
|
-
transform: translateX(100%);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
height: 100%;
|
|
12
|
-
width: 100%;
|
|
13
|
-
inset: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
position: relative;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
background: #1e3860;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
._1es6o1h0 .
|
|
25
|
-
background-color: var(--_1073cm8f);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.fl2fv50 .
|
|
29
|
-
background-color: #28587d;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.
|
|
33
|
-
content: "";
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 0;
|
|
36
|
-
left: 0;
|
|
37
|
-
width: 190%;
|
|
38
|
-
height: 100%;
|
|
39
|
-
background: linear-gradient(
|
|
40
|
-
65deg,
|
|
41
|
-
rgba(255, 255, 255, 0) 20%,
|
|
42
|
-
rgba(255, 255, 255, 0.5) 50%,
|
|
43
|
-
rgba(255, 255, 255, 0) 80%
|
|
44
|
-
);
|
|
45
|
-
animation:
|
|
46
|
-
z-index: 1;
|
|
47
|
-
}
|
|
1
|
+
@keyframes _shimmer_1cu2x_1 {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(-100%);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(100%);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._loader_1cu2x_19 {
|
|
11
|
+
height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
inset: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._loading_1cu2x_31 {
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
background: #1e3860;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
._1es6o1h0 ._loading_1cu2x_31 {
|
|
25
|
+
background-color: var(--_1073cm8f);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.fl2fv50 ._loading_1cu2x_31 {
|
|
29
|
+
background-color: #28587d;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
._loading_1cu2x_31::before {
|
|
33
|
+
content: "";
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
width: 190%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
background: linear-gradient(
|
|
40
|
+
65deg,
|
|
41
|
+
rgba(255, 255, 255, 0) 20%,
|
|
42
|
+
rgba(255, 255, 255, 0.5) 50%,
|
|
43
|
+
rgba(255, 255, 255, 0) 80%
|
|
44
|
+
);
|
|
45
|
+
animation: _shimmer_1cu2x_1 1.3s infinite linear;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
}
|
package/dist/main.js
CHANGED
|
@@ -94,7 +94,7 @@ import { HeroBanner } from "./HeroBanner/HeroBanner.js";
|
|
|
94
94
|
import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_embedded_image, hero_img, hero_text, hero_wrapper, img_contents, logout, reversed, reversed_lg_image } from "./HeroBanner/HeroBanner.css.js";
|
|
95
95
|
import { selection_headline_text, selection_section, selection_section_bg, selection_section_content, selection_section_icon, selection_section_icon_img } from "./HeroBanner/SelectionBanner.css.js";
|
|
96
96
|
import { Hyperlink } from "./Hyperlink/index.js";
|
|
97
|
-
import {
|
|
97
|
+
import { IconBillboard } from "./IconBillboard/IconBillboard.js";
|
|
98
98
|
import { billboard_icon, buttons, containerIconBillboard, content, headerIconBillboard, header_section, layout, link_wrapper, list, listItem, section_body, section_container, section_text, title } from "./IconBillboard/IconBillboard.css.js";
|
|
99
99
|
import { IconBillboardSet } from "./IconBillboard/IconBillboardSet.js";
|
|
100
100
|
import { default as default2 } from "./icons/ArrowIcon/index.js";
|
|
@@ -190,7 +190,7 @@ import { expand_icon, hide_transcript, item, mb_8, show, toggle_container, trans
|
|
|
190
190
|
import { VideoWrapper } from "./VideoWrapper/index.js";
|
|
191
191
|
import { Tab } from "./Tab/Tab.js";
|
|
192
192
|
import { TabContainer } from "./Tab/TabContainer.js";
|
|
193
|
-
import { findMoreAxosDomains, isAllowedUrl } from "./utils/allowedAxosDomains.js";
|
|
193
|
+
import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./utils/allowedAxosDomains.js";
|
|
194
194
|
import { associatedEmail } from "./utils/EverestValidity.js";
|
|
195
195
|
import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
|
|
196
196
|
import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./utils/validateExternalLinks.js";
|
|
@@ -292,7 +292,6 @@ export {
|
|
|
292
292
|
GoBackButton,
|
|
293
293
|
HeroBanner,
|
|
294
294
|
Hyperlink,
|
|
295
|
-
Icon,
|
|
296
295
|
IconBillboard,
|
|
297
296
|
IconBillboardSet,
|
|
298
297
|
ImageBillboard,
|
|
@@ -508,6 +507,7 @@ export {
|
|
|
508
507
|
fullRowForm,
|
|
509
508
|
fullRowSelect,
|
|
510
509
|
getLink,
|
|
510
|
+
getMoreDomains,
|
|
511
511
|
getVariant,
|
|
512
512
|
getVariantWithRegex,
|
|
513
513
|
header,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const getMoreDomains: (domains: Record<string, string>) => Record<string, string>;
|
|
2
|
+
export declare const isAllowedUrl: (url: string, domains: Record<string, string>) => boolean;
|
|
3
|
+
export declare const findMoreAxosDomains: (url: string, domains: Record<string, string>) => string;
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
const
|
|
2
|
-
"{AXOS}":
|
|
3
|
-
"{AXOSBANK}":
|
|
4
|
-
"{AXOSCLEARING}":
|
|
5
|
-
"{AAS}":
|
|
6
|
-
"{AXA}":
|
|
7
|
-
"{AFS}":
|
|
8
|
-
"{NATIONWIDE}":
|
|
9
|
-
"{ENROLLMENT}":
|
|
1
|
+
const getMoreDomains = (domains) => ({
|
|
2
|
+
"{AXOS}": domains.AXOS_URL || "https://www.axos.com",
|
|
3
|
+
"{AXOSBANK}": domains.AXOS_BANK_URL !== void 0 ? domains.AXOS_BANK_URL : "https://www.axosbank.com",
|
|
4
|
+
"{AXOSCLEARING}": domains.CLEARING_URL || "https://axosclearing.com",
|
|
5
|
+
"{AAS}": domains.AAS_URL || "https://www.axosadvisorservices.com",
|
|
6
|
+
"{AXA}": domains.AXA_URL || "https://www.axosadvisor.com",
|
|
7
|
+
"{AFS}": domains.AFS_URL || "https://www.axosfiduciaryservices.com",
|
|
8
|
+
"{NATIONWIDE}": domains.NATIOWIDE_URL || "https://www.nationwide.axosbank.com",
|
|
9
|
+
"{ENROLLMENT}": domains.ENROLLMENT_URL || "https://enrollment.axosbank.com",
|
|
10
10
|
"{ASSETSURL}": "https://assets.axos.com",
|
|
11
11
|
"{IMAGEASSETSURL}": "https://images.axos.com",
|
|
12
|
-
"{ONLINEBANKING}":
|
|
13
|
-
"{UFBDIRECT}":
|
|
14
|
-
"{ARMS}":
|
|
15
|
-
"{APPS}":
|
|
16
|
-
"{AFP}":
|
|
17
|
-
"{INVESTORS}":
|
|
18
|
-
"{OBAXB}":
|
|
19
|
-
"{UNVENROLLMENT}":
|
|
12
|
+
"{ONLINEBANKING}": domains.ONLINEBANKING_URL || "https://onlinebanking.uat.axosbank.com",
|
|
13
|
+
"{UFBDIRECT}": domains.UFB_URL || "https://www.ufbdirect.com",
|
|
14
|
+
"{ARMS}": domains.ARMS_URL || "https://arms.axosadvisor.com",
|
|
15
|
+
"{APPS}": domains.APPS_URL || "https://apps.axosbank.com",
|
|
16
|
+
"{AFP}": domains.AFP_URL || "https://afp.axosbank.com",
|
|
17
|
+
"{INVESTORS}": domains.INVESTORS_URL || "https://investors.axosfinancial.com",
|
|
18
|
+
"{OBAXB}": domains.ONLINEBANKING_URL || "https://onlinebanking.axosbank.com",
|
|
19
|
+
"{UNVENROLLMENT}": domains.UNVENROLLMENT_URL || "https://enroll.axosbank.com",
|
|
20
20
|
"{AUTOAXB}": "https://auto.axosbank.com/partner/axos-purchase/AU",
|
|
21
|
-
"{COMMERCIALPORTAL}":
|
|
22
|
-
"{DEVAXC}":
|
|
23
|
-
"{AFF}":
|
|
24
|
-
"{APL}":
|
|
25
|
-
"{AXSEC}":
|
|
26
|
-
"{SECURE}":
|
|
27
|
-
"{DOWNLOADAXOS}":
|
|
28
|
-
"{SBEAX}":
|
|
29
|
-
"{CPDS}":
|
|
30
|
-
"{JHALOAN}":
|
|
31
|
-
"{AXSECURITIES}":
|
|
32
|
-
"{LIBSYN}":
|
|
33
|
-
"{AXBC}":
|
|
34
|
-
"{AXMWDJ}":
|
|
35
|
-
"{AXMHA}":
|
|
36
|
-
"{AXTPL}":
|
|
37
|
-
"{AXBHUBSVIDYARD}":
|
|
38
|
-
"{AUTOAX}":
|
|
39
|
-
"{AFAST}":
|
|
40
|
-
"{LVFMYSITE}":
|
|
41
|
-
"{PERSONALLOANS}":
|
|
42
|
-
"{MODELSELECTION}":
|
|
43
|
-
"{COMMERCIALPORTAL_LOGIN}": `${
|
|
44
|
-
"{COMMERCIALPORTAL_REGISTER}":
|
|
45
|
-
};
|
|
46
|
-
const isAllowedUrl = (url) => {
|
|
21
|
+
"{COMMERCIALPORTAL}": domains.COMMERCIALPORTAL_URL || "https://portals.axosbank.com",
|
|
22
|
+
"{DEVAXC}": domains.DEVELOPER_CLEARING || "https://developer.axosclearing.com",
|
|
23
|
+
"{AFF}": domains.FUNDFINDER_URL || "https://axosfundfinder.com",
|
|
24
|
+
"{APL}": domains.PERSONAL_LOANS_URL || "https://personalloans.axosbank.com",
|
|
25
|
+
"{AXSEC}": domains.AXOS_SECURE_URL || "https://secure.axosbank.com",
|
|
26
|
+
"{SECURE}": domains.AXOS_SECURE_URL || "https://secure.axosbank.com",
|
|
27
|
+
"{DOWNLOADAXOS}": domains.AXOS_DOWNLOAD_URL || "https://downloads.axos.com",
|
|
28
|
+
"{SBEAX}": domains.SBB_ENROLL || "https://small-business-enrollment.axosbank.com",
|
|
29
|
+
"{CPDS}": domains.CP_DECISIONLENDER || "https://cp.decisionlender.solutions",
|
|
30
|
+
"{JHALOAN}": domains.JHA_LOANSPQ || "https://jha.loanspq.com",
|
|
31
|
+
"{AXSECURITIES}": domains.AXOS_SECURITIES_URL || "https://www.axossecurities.com",
|
|
32
|
+
"{LIBSYN}": domains.AXOS_LIBSYN || "https://sites.libsyn.com",
|
|
33
|
+
"{AXBC}": domains.AXOS_BUSINESS_CENTER || "https://www.axosbusinesscenter.com",
|
|
34
|
+
"{AXMWDJ}": domains.AXOS_MY_WORK_DAY_JOBS || "https://axos.wd5.myworkdayjobs.com/Axos",
|
|
35
|
+
"{AXMHA}": domains.AXOS_MY_HOME_ADVANTAGE || "https://axos.myhomeadvantage.com",
|
|
36
|
+
"{AXTPL}": domains.AXOS_THIRD_PARTY_LENDING || "https://thirdpartylending.axosbank.com",
|
|
37
|
+
"{AXBHUBSVIDYARD}": domains.AXBHUBSVIDYARD_URL || "https://www.axosbank.hubs.vidyard.com",
|
|
38
|
+
"{AUTOAX}": domains.AUTO_AXOSBANK_URL || "https://auto.axosbank.com",
|
|
39
|
+
"{AFAST}": domains.SECURE_FAST_URL || "https://secure.approvedfast.com",
|
|
40
|
+
"{LVFMYSITE}": domains.LVF_MYSITE_URL || "https://lavictoire-finance.my.site.com",
|
|
41
|
+
"{PERSONALLOANS}": domains.PERSONAL_LOANS_URL || "https://personalloans.axosbank.com",
|
|
42
|
+
"{MODELSELECTION}": domains.MODEL_SELECTION_URL || "https://modelselection.axos.com",
|
|
43
|
+
"{COMMERCIALPORTAL_LOGIN}": `${domains.COMMERCIALPORTAL_URL}/login` || "https://portals.axosbank.com/login",
|
|
44
|
+
"{COMMERCIALPORTAL_REGISTER}": domains.COMMERCIALPORTAL_URL + "/Register" || "https://portals.axosbank.com/Register"
|
|
45
|
+
});
|
|
46
|
+
const isAllowedUrl = (url, domains) => {
|
|
47
|
+
const moreDomains = getMoreDomains(domains);
|
|
47
48
|
const uri = new URL(url, location.href);
|
|
48
49
|
for (const key in moreDomains) {
|
|
49
50
|
const urlToCompare = new URL(moreDomains[key], location.href);
|
|
@@ -51,7 +52,8 @@ const isAllowedUrl = (url) => {
|
|
|
51
52
|
}
|
|
52
53
|
return false;
|
|
53
54
|
};
|
|
54
|
-
const findMoreAxosDomains = (url) => {
|
|
55
|
+
const findMoreAxosDomains = (url, domains) => {
|
|
56
|
+
const moreDomains = getMoreDomains(domains);
|
|
55
57
|
const regexSearching = /\{[a-xA-Z_-]+\}/;
|
|
56
58
|
if (regexSearching.test(url)) {
|
|
57
59
|
const domainToReplace = url.match(regexSearching);
|
|
@@ -79,5 +81,6 @@ const findMoreAxosDomains = (url) => {
|
|
|
79
81
|
};
|
|
80
82
|
export {
|
|
81
83
|
findMoreAxosDomains,
|
|
84
|
+
getMoreDomains,
|
|
82
85
|
isAllowedUrl
|
|
83
86
|
};
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { findMoreAxosDomains, isAllowedUrl } from "./allowedAxosDomains.js";
|
|
1
|
+
import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./allowedAxosDomains.js";
|
|
2
2
|
import { associatedEmail } from "./EverestValidity.js";
|
|
3
3
|
import { getVariant, getVariantWithRegex } from "./getVariant.js";
|
|
4
4
|
import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./validateExternalLinks.js";
|
|
@@ -9,6 +9,7 @@ export {
|
|
|
9
9
|
associatedEmail,
|
|
10
10
|
columnValues,
|
|
11
11
|
findMoreAxosDomains,
|
|
12
|
+
getMoreDomains,
|
|
12
13
|
getVariant,
|
|
13
14
|
getVariantWithRegex,
|
|
14
15
|
isAbsoluteUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "
|
|
2
|
-
const loading = "
|
|
3
|
-
const shimmer = "
|
|
1
|
+
import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_1cu2x_19";
|
|
2
|
+
const loading = "_loading_1cu2x_31";
|
|
3
|
+
const shimmer = "_shimmer_1cu2x_1";
|
|
4
4
|
const css = {
|
|
5
5
|
loader,
|
|
6
6
|
loading,
|
|
@@ -2,4 +2,4 @@ export declare const isAbsoluteUrl: (url: string) => boolean;
|
|
|
2
2
|
export declare const shortUrl: (url: string) => string;
|
|
3
3
|
export declare const isEmailLink: (url: string) => boolean;
|
|
4
4
|
export declare const isPhoneLink: (url: string) => boolean;
|
|
5
|
-
export declare const validateLink: (url: string) => boolean;
|
|
5
|
+
export declare const validateLink: (url: string, domains: Record<string, string>) => boolean;
|
|
@@ -15,9 +15,9 @@ const isPhoneLink = (url) => {
|
|
|
15
15
|
const uri = new URL(url, location.href);
|
|
16
16
|
return uri.protocol === "tel:";
|
|
17
17
|
};
|
|
18
|
-
const validateLink = (url) => {
|
|
18
|
+
const validateLink = (url, domains) => {
|
|
19
19
|
let openModal = false;
|
|
20
|
-
if (isAbsoluteUrl(url) && !isEmailLink(url) && !isPhoneLink(url) && !isAllowedUrl(url)) {
|
|
20
|
+
if (isAbsoluteUrl(url) && !isEmailLink(url) && !isPhoneLink(url) && !isAllowedUrl(url, domains)) {
|
|
21
21
|
openModal = true;
|
|
22
22
|
}
|
|
23
23
|
return openModal;
|
package/package.json
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@axos-web-dev/shared-components",
|
|
3
|
-
"description": "Axos shared components library for web.",
|
|
4
|
-
"version": "1.0.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"module": "dist/main.js",
|
|
7
|
-
"types": "dist/main.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"sideEffects": [
|
|
12
|
-
"dist/assets/**/*.css"
|
|
13
|
-
],
|
|
14
|
-
"scripts": {
|
|
15
|
-
"dev": "vite",
|
|
16
|
-
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
17
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
-
"preview": "vite preview",
|
|
19
|
-
"prepublishOnly": "npm run build",
|
|
20
|
-
"check-types": "tsc --pretty --noEmit",
|
|
21
|
-
"check-format": "prettier --check .",
|
|
22
|
-
"check-lint": "eslint . --ext ts --ext tsx --ext js",
|
|
23
|
-
"format": "prettier --write .",
|
|
24
|
-
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
25
|
-
"prepare": "husky",
|
|
26
|
-
"storybook": "storybook dev -p 6006",
|
|
27
|
-
"build-storybook": "storybook build",
|
|
28
|
-
"npm:link": "npm run build && npm link"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@headlessui/react": "^2.2.0",
|
|
32
|
-
"@hookform/resolvers": "^3.10.0",
|
|
33
|
-
"@next-safe-action/adapter-react-hook-form": "^2.0.0",
|
|
34
|
-
"@react-input/mask": "^1.2.15",
|
|
35
|
-
"@react-input/number-format": "^1.1.3",
|
|
36
|
-
"@storybook/icons": "^1.3.0",
|
|
37
|
-
"@storybook/preview-api": "^8.4.7",
|
|
38
|
-
"@types/iframe-resizer": "3.5.13",
|
|
39
|
-
"@vanilla-extract/css": "^1.16.1",
|
|
40
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
41
|
-
"antd": "^5.22.5",
|
|
42
|
-
"clsx": "^2.1.1",
|
|
43
|
-
"framer-motion": "^12.9.2",
|
|
44
|
-
"iframe-resizer": "^3.6.6",
|
|
45
|
-
"lodash": "^4.17.21",
|
|
46
|
-
"moment": "^2.30.1",
|
|
47
|
-
"next-safe-action": "^8.0.2",
|
|
48
|
-
"react-date-picker": "^11.0.0",
|
|
49
|
-
"react-date-range": "^2.0.1",
|
|
50
|
-
"react-hook-form": "^7.54.2",
|
|
51
|
-
"react-markdown": "^9.0.1",
|
|
52
|
-
"react-popper": "^2.3.0",
|
|
53
|
-
"react-slick": "^0.30.2",
|
|
54
|
-
"react-use": "^17.6.0",
|
|
55
|
-
"react-wrap-balancer": "^1.1.1",
|
|
56
|
-
"rsuite": "^5.75.0",
|
|
57
|
-
"slick-carousel": "^1.8.1",
|
|
58
|
-
"typed-css-modules": "^0.9.1",
|
|
59
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
60
|
-
"zod": "^3.24.1",
|
|
61
|
-
"zustand": "^4.5.5"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"@vanilla-extract/css-utils": "^0.1.3",
|
|
65
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
66
|
-
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
67
|
-
"next": "^14.1.4",
|
|
68
|
-
"react": "^18.2.0",
|
|
69
|
-
"react-date-range": "^2.0.1",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"react-popper": "^2.3.0",
|
|
72
|
-
"react-slick": "^0.30.2",
|
|
73
|
-
"slick-carousel": "^1.8.1"
|
|
74
|
-
},
|
|
75
|
-
"devDependencies": {
|
|
76
|
-
"@chromatic-com/storybook": "^1.9.0",
|
|
77
|
-
"@rollup/plugin-alias": "^5.1.1",
|
|
78
|
-
"@storybook/addon-essentials": "^8.4.7",
|
|
79
|
-
"@storybook/addon-interactions": "^8.4.7",
|
|
80
|
-
"@storybook/addon-links": "^8.4.7",
|
|
81
|
-
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
82
|
-
"@storybook/addon-onboarding": "^8.4.7",
|
|
83
|
-
"@storybook/addon-themes": "^8.4.7",
|
|
84
|
-
"@storybook/blocks": "^8.4.7",
|
|
85
|
-
"@storybook/react": "^8.6.14",
|
|
86
|
-
"@storybook/react-vite": "^8.4.7",
|
|
87
|
-
"@storybook/test": "^8.6.14",
|
|
88
|
-
"@svgr/core": "^8.1.0",
|
|
89
|
-
"@svgr/plugin-prettier": "^8.1.0",
|
|
90
|
-
"@svgr/plugin-svgo": "^8.1.0",
|
|
91
|
-
"@types/lodash": "^4.17.17",
|
|
92
|
-
"@types/node": "^20.19.0",
|
|
93
|
-
"@types/react": "^18.3.23",
|
|
94
|
-
"@types/react-date-range": "^1.4.9",
|
|
95
|
-
"@types/react-datepicker": "^6.2.0",
|
|
96
|
-
"@types/react-dom": "^18.3.7",
|
|
97
|
-
"@types/react-slick": "^0.23.13",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
99
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
100
|
-
"@vanilla-extract/css-utils": "^0.1.4",
|
|
101
|
-
"@vanilla-extract/recipes": "^0.5.5",
|
|
102
|
-
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
103
|
-
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
104
|
-
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
105
|
-
"eslint": "^8.57.1",
|
|
106
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
107
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
108
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
109
|
-
"glob": "^10.4.5",
|
|
110
|
-
"husky": "^9.1.7",
|
|
111
|
-
"next": "^14.1.4",
|
|
112
|
-
"prettier": "3.2.5",
|
|
113
|
-
"react": "^18.3.1",
|
|
114
|
-
"react-dom": "^18.3.1",
|
|
115
|
-
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
116
|
-
"rollup-plugin-svg-import": "^3.0.0",
|
|
117
|
-
"rollup-plugin-svgo": "^2.0.0",
|
|
118
|
-
"storybook": "^8.4.7",
|
|
119
|
-
"typescript": "^5.7.2",
|
|
120
|
-
"typescript-plugin-css-modules": "^5.1.0",
|
|
121
|
-
"vite": "^5.4.11",
|
|
122
|
-
"vite-plugin-dts": "^3.9.1",
|
|
123
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
124
|
-
"vite-plugin-setting-css-module": "^1.1.4",
|
|
125
|
-
"vite-tsconfig-paths": "^4.3.2"
|
|
126
|
-
},
|
|
127
|
-
"main": "index.js",
|
|
128
|
-
"directories": {
|
|
129
|
-
"lib": "lib"
|
|
130
|
-
},
|
|
131
|
-
"author": "axos-web-dev",
|
|
132
|
-
"license": "ISC"
|
|
133
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@axos-web-dev/shared-components",
|
|
3
|
+
"description": "Axos shared components library for web.",
|
|
4
|
+
"version": "1.0.96-envVars-0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"dist/assets/**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
17
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
|
+
"check-types": "tsc --pretty --noEmit",
|
|
21
|
+
"check-format": "prettier --check .",
|
|
22
|
+
"check-lint": "eslint . --ext ts --ext tsx --ext js",
|
|
23
|
+
"format": "prettier --write .",
|
|
24
|
+
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
25
|
+
"prepare": "husky",
|
|
26
|
+
"storybook": "storybook dev -p 6006",
|
|
27
|
+
"build-storybook": "storybook build",
|
|
28
|
+
"npm:link": "npm run build && npm link"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@headlessui/react": "^2.2.0",
|
|
32
|
+
"@hookform/resolvers": "^3.10.0",
|
|
33
|
+
"@next-safe-action/adapter-react-hook-form": "^2.0.0",
|
|
34
|
+
"@react-input/mask": "^1.2.15",
|
|
35
|
+
"@react-input/number-format": "^1.1.3",
|
|
36
|
+
"@storybook/icons": "^1.3.0",
|
|
37
|
+
"@storybook/preview-api": "^8.4.7",
|
|
38
|
+
"@types/iframe-resizer": "3.5.13",
|
|
39
|
+
"@vanilla-extract/css": "^1.16.1",
|
|
40
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
41
|
+
"antd": "^5.22.5",
|
|
42
|
+
"clsx": "^2.1.1",
|
|
43
|
+
"framer-motion": "^12.9.2",
|
|
44
|
+
"iframe-resizer": "^3.6.6",
|
|
45
|
+
"lodash": "^4.17.21",
|
|
46
|
+
"moment": "^2.30.1",
|
|
47
|
+
"next-safe-action": "^8.0.2",
|
|
48
|
+
"react-date-picker": "^11.0.0",
|
|
49
|
+
"react-date-range": "^2.0.1",
|
|
50
|
+
"react-hook-form": "^7.54.2",
|
|
51
|
+
"react-markdown": "^9.0.1",
|
|
52
|
+
"react-popper": "^2.3.0",
|
|
53
|
+
"react-slick": "^0.30.2",
|
|
54
|
+
"react-use": "^17.6.0",
|
|
55
|
+
"react-wrap-balancer": "^1.1.1",
|
|
56
|
+
"rsuite": "^5.75.0",
|
|
57
|
+
"slick-carousel": "^1.8.1",
|
|
58
|
+
"typed-css-modules": "^0.9.1",
|
|
59
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
60
|
+
"zod": "^3.24.1",
|
|
61
|
+
"zustand": "^4.5.5"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
65
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
66
|
+
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
67
|
+
"next": "^14.1.4",
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-date-range": "^2.0.1",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"react-popper": "^2.3.0",
|
|
72
|
+
"react-slick": "^0.30.2",
|
|
73
|
+
"slick-carousel": "^1.8.1"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@chromatic-com/storybook": "^1.9.0",
|
|
77
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
78
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
79
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
80
|
+
"@storybook/addon-links": "^8.4.7",
|
|
81
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
82
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
83
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
84
|
+
"@storybook/blocks": "^8.4.7",
|
|
85
|
+
"@storybook/react": "^8.6.14",
|
|
86
|
+
"@storybook/react-vite": "^8.4.7",
|
|
87
|
+
"@storybook/test": "^8.6.14",
|
|
88
|
+
"@svgr/core": "^8.1.0",
|
|
89
|
+
"@svgr/plugin-prettier": "^8.1.0",
|
|
90
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
91
|
+
"@types/lodash": "^4.17.17",
|
|
92
|
+
"@types/node": "^20.19.0",
|
|
93
|
+
"@types/react": "^18.3.23",
|
|
94
|
+
"@types/react-date-range": "^1.4.9",
|
|
95
|
+
"@types/react-datepicker": "^6.2.0",
|
|
96
|
+
"@types/react-dom": "^18.3.7",
|
|
97
|
+
"@types/react-slick": "^0.23.13",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
99
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
100
|
+
"@vanilla-extract/css-utils": "^0.1.4",
|
|
101
|
+
"@vanilla-extract/recipes": "^0.5.5",
|
|
102
|
+
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
103
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
104
|
+
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
105
|
+
"eslint": "^8.57.1",
|
|
106
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
107
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
108
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
109
|
+
"glob": "^10.4.5",
|
|
110
|
+
"husky": "^9.1.7",
|
|
111
|
+
"next": "^14.1.4",
|
|
112
|
+
"prettier": "3.2.5",
|
|
113
|
+
"react": "^18.3.1",
|
|
114
|
+
"react-dom": "^18.3.1",
|
|
115
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
116
|
+
"rollup-plugin-svg-import": "^3.0.0",
|
|
117
|
+
"rollup-plugin-svgo": "^2.0.0",
|
|
118
|
+
"storybook": "^8.4.7",
|
|
119
|
+
"typescript": "^5.7.2",
|
|
120
|
+
"typescript-plugin-css-modules": "^5.1.0",
|
|
121
|
+
"vite": "^5.4.11",
|
|
122
|
+
"vite-plugin-dts": "^3.9.1",
|
|
123
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
124
|
+
"vite-plugin-setting-css-module": "^1.1.4",
|
|
125
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
126
|
+
},
|
|
127
|
+
"main": "index.js",
|
|
128
|
+
"directories": {
|
|
129
|
+
"lib": "lib"
|
|
130
|
+
},
|
|
131
|
+
"author": "axos-web-dev",
|
|
132
|
+
"license": "ISC"
|
|
133
|
+
}
|