@axos-web-dev/shared-components 2.2.19 → 2.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/ATMLocator/ATMLocator.d.ts +1 -1
  2. package/dist/Accordion/Accordion.d.ts +3 -3
  3. package/dist/Article/Article.d.ts +1 -1
  4. package/dist/Auth/ErrorAlert.d.ts +1 -1
  5. package/dist/Auth/Logout.d.ts +1 -1
  6. package/dist/Auth/SignInPassword.d.ts +1 -1
  7. package/dist/BulletItem/BulletItem.d.ts +1 -1
  8. package/dist/Button/Button.d.ts +1 -1
  9. package/dist/Button/Button.js +4 -2
  10. package/dist/Button/GoBackButton.d.ts +1 -1
  11. package/dist/Calculators/Calculator.d.ts +1 -1
  12. package/dist/Carousel/index.d.ts +3 -3
  13. package/dist/Chatbot/Bubble.d.ts +1 -1
  14. package/dist/Chatbot/Chatbot.d.ts +1 -1
  15. package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
  16. package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
  17. package/dist/Chevron/index.js +3 -0
  18. package/dist/Comparison/Comparison.d.ts +1 -1
  19. package/dist/Comparison/ComparisonSet.d.ts +1 -1
  20. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  21. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  22. package/dist/ExecutiveBio/Overlay.d.ts +1 -1
  23. package/dist/FaqAccordion/index.d.ts +5 -5
  24. package/dist/FdicCallout/index.d.ts +1 -1
  25. package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
  26. package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
  27. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
  28. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  29. package/dist/Forms/ApplicationStart.d.ts +1 -1
  30. package/dist/Forms/ApplyNow.d.ts +1 -1
  31. package/dist/Forms/BoatMooringLocation.d.ts +1 -1
  32. package/dist/Forms/ClearingForm.d.ts +1 -1
  33. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  34. package/dist/Forms/CommercialDepositsACS.d.ts +1 -1
  35. package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
  36. package/dist/Forms/CommercialLending.d.ts +1 -1
  37. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  38. package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
  39. package/dist/Forms/ContactCompany.d.ts +1 -1
  40. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  41. package/dist/Forms/ContactUs.d.ts +1 -1
  42. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  43. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  44. package/dist/Forms/ContactUsBusiness.js +2 -2
  45. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  46. package/dist/Forms/ContactUsBusinessNameEmail.js +2 -2
  47. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  48. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  49. package/dist/Forms/ContactUsNMLSId.js +2 -2
  50. package/dist/Forms/ContactUsSchwabAAS.d.ts +1 -1
  51. package/dist/Forms/CpraRequest.d.ts +1 -1
  52. package/dist/Forms/CraPublicFile.d.ts +1 -1
  53. package/dist/Forms/CraPublicFile.js +2 -2
  54. package/dist/Forms/DealerServices.d.ts +1 -1
  55. package/dist/Forms/EmailOnly.d.ts +1 -1
  56. package/dist/Forms/EmailOnly.js +3 -3
  57. package/dist/Forms/EmailUs.d.ts +1 -1
  58. package/dist/Forms/HoneyPot/index.d.ts +1 -1
  59. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  60. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
  61. package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
  62. package/dist/Forms/MortgageWarehouseLending.d.ts +1 -1
  63. package/dist/Forms/MortgageWarehouseLending.js +2 -2
  64. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  65. package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
  66. package/dist/Forms/ScheduleCall.d.ts +1 -1
  67. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  68. package/dist/Forms/SuccesForm.d.ts +1 -1
  69. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  70. package/dist/Forms/WcplSurvey.d.ts +1 -1
  71. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  72. package/dist/HeroBanner/HeroVideoPoster.d.ts +1 -1
  73. package/dist/HeroBanner/LargeHeroBanner.d.ts +1 -1
  74. package/dist/Hyperlink/index.js +2 -2
  75. package/dist/IconBillboard/IconBillboard.d.ts +1 -1
  76. package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
  77. package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
  78. package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
  79. package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
  80. package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
  81. package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
  82. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
  83. package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
  84. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  85. package/dist/ImageLink/ImageLink.d.ts +1 -1
  86. package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
  87. package/dist/ImageLink/index.js +1 -1
  88. package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
  89. package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
  90. package/dist/Insight/Featured/Featured.d.ts +2 -2
  91. package/dist/Insight/Featured/Header.d.ts +1 -1
  92. package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
  93. package/dist/LoadingIndicator/index.d.ts +1 -1
  94. package/dist/MainHTML/index.d.ts +1 -1
  95. package/dist/Modal/Modal.js +1 -1
  96. package/dist/Modal/contextApi/store.d.ts +1 -1
  97. package/dist/Modal/contextApi/store.js +72 -17
  98. package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
  99. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
  100. package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
  101. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
  102. package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
  103. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
  104. package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
  105. package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -2
  106. package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
  107. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  108. package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
  109. package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
  110. package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
  111. package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
  112. package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
  113. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  114. package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
  115. package/dist/NavigationMenu/Navbar.d.ts +1 -1
  116. package/dist/NavigationMenu/Navbar.js +2 -2
  117. package/dist/NavigationMenu/SignInNavButton.d.ts +3 -1
  118. package/dist/NavigationMenu/SignInNavButton.js +2 -2
  119. package/dist/Pagination/Pagination.d.ts +1 -1
  120. package/dist/SecondaryFooter/index.d.ts +1 -1
  121. package/dist/SetContainer/SetContainer.d.ts +1 -1
  122. package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
  123. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  124. package/dist/SocialMediaBar/index.d.ts +1 -1
  125. package/dist/Tab/Tab.d.ts +1 -1
  126. package/dist/Tab/TabContainer.d.ts +1 -1
  127. package/dist/Table/Table.d.ts +5 -5
  128. package/dist/TextBlock/TextBlock.d.ts +1 -1
  129. package/dist/Topic/Topic.d.ts +4 -4
  130. package/dist/VideoTile/VideoInit.d.ts +1 -1
  131. package/dist/VideoWrapper/index.js +1 -1
  132. package/dist/WalnutIframe/index.d.ts +1 -1
  133. package/dist/icons/AxosX/Blue.d.ts +1 -1
  134. package/dist/icons/AxosX/index.d.ts +1 -1
  135. package/dist/icons/CheckCircle.d.ts +1 -1
  136. package/dist/icons/CheckCircleLight.d.ts +1 -1
  137. package/dist/icons/CheckIcon/index.d.ts +1 -1
  138. package/dist/icons/ChevronDown.d.ts +1 -1
  139. package/dist/icons/ChevronUp.d.ts +1 -1
  140. package/dist/icons/Clock/index.d.ts +1 -1
  141. package/dist/icons/EqualHousingLender.d.ts +1 -1
  142. package/dist/icons/Logos/AAS.d.ts +1 -1
  143. package/dist/icons/Logos/AFS.d.ts +1 -1
  144. package/dist/icons/Logos/AXA.d.ts +1 -1
  145. package/dist/icons/Logos/AXB.d.ts +1 -1
  146. package/dist/icons/Logos/AXC.d.ts +1 -1
  147. package/dist/icons/Logos/AXI.d.ts +1 -1
  148. package/dist/icons/Logos/AXOS.d.ts +1 -1
  149. package/dist/icons/Logos/GBLVF.d.ts +1 -1
  150. package/dist/icons/Logos/LVF.d.ts +1 -1
  151. package/dist/icons/Logos/LVFText.d.ts +1 -1
  152. package/dist/icons/Logos/SPB.d.ts +1 -1
  153. package/dist/icons/MemberFdicLogo.d.ts +1 -1
  154. package/dist/icons/QuoteIconGrey.d.ts +1 -1
  155. package/dist/icons/QuoteIconWhite.d.ts +1 -1
  156. package/dist/icons/QuoteIconYellow.d.ts +1 -1
  157. package/dist/main.js +3 -1
  158. package/dist/utils/appendQueryParams.d.ts +3 -1
  159. package/dist/utils/appendQueryParams.js +66 -66
  160. package/dist/utils/index.js +3 -1
  161. package/dist/utils/tealiumOrganicFallback.d.ts +21 -0
  162. package/dist/utils/tealiumOrganicFallback.js +26 -0
  163. package/package.json +1 -1
@@ -6,4 +6,4 @@ export interface FooterItem {
6
6
  export interface SecondaryFooterProps {
7
7
  items: FooterItem[];
8
8
  }
9
- export declare const SecondaryFooter: (props: SecondaryFooterProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const SecondaryFooter: (props: SecondaryFooterProps) => import("react").JSX.Element;
@@ -11,4 +11,4 @@ export interface SetContainerProps extends Omit<ImageBillboardSetProps, "imageBi
11
11
  numberOfColumns?: string;
12
12
  additionalDetails?: ReactNode | string;
13
13
  }
14
- export declare const SetContainer: ({ id, variant, headline, bodyCopy, additionalDetails, children, internalName, icon, eyebrow, style, isolate, className, numberOfColumns, layout, }: SetContainerProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const SetContainer: ({ id, variant, headline, bodyCopy, additionalDetails, children, internalName, icon, eyebrow, style, isolate, className, numberOfColumns, layout, }: SetContainerProps) => import("react").JSX.Element;
@@ -2,43 +2,43 @@ import { UrlResolver } from '../utils/allowedAxosDomains';
2
2
 
3
3
  export declare const BusinessWire: ({ resolveUrl }: {
4
4
  resolveUrl: UrlResolver;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export declare const Facebook: ({ resolveUrl }: {
7
7
  resolveUrl: UrlResolver;
8
- }) => import("react/jsx-runtime").JSX.Element;
8
+ }) => import("react").JSX.Element;
9
9
  export declare const FacebookLVF: ({ resolveUrl }: {
10
10
  resolveUrl: UrlResolver;
11
- }) => import("react/jsx-runtime").JSX.Element;
11
+ }) => import("react").JSX.Element;
12
12
  export declare const Glassdoor: ({ resolveUrl }: {
13
13
  resolveUrl: UrlResolver;
14
- }) => import("react/jsx-runtime").JSX.Element;
14
+ }) => import("react").JSX.Element;
15
15
  export declare const Indeed: ({ resolveUrl }: {
16
16
  resolveUrl: UrlResolver;
17
- }) => import("react/jsx-runtime").JSX.Element;
17
+ }) => import("react").JSX.Element;
18
18
  export declare const Instagram: ({ resolveUrl }: {
19
19
  resolveUrl: UrlResolver;
20
- }) => import("react/jsx-runtime").JSX.Element;
20
+ }) => import("react").JSX.Element;
21
21
  export declare const InstagramLVF: ({ resolveUrl }: {
22
22
  resolveUrl: UrlResolver;
23
- }) => import("react/jsx-runtime").JSX.Element;
23
+ }) => import("react").JSX.Element;
24
24
  export declare const LinkedIn: ({ resolveUrl }: {
25
25
  resolveUrl: UrlResolver;
26
- }) => import("react/jsx-runtime").JSX.Element;
26
+ }) => import("react").JSX.Element;
27
27
  export declare const LinkedInLVF: ({ resolveUrl }: {
28
28
  resolveUrl: UrlResolver;
29
- }) => import("react/jsx-runtime").JSX.Element;
29
+ }) => import("react").JSX.Element;
30
30
  export declare const Libsyn: ({ resolveUrl }: {
31
31
  resolveUrl: UrlResolver;
32
- }) => import("react/jsx-runtime").JSX.Element;
32
+ }) => import("react").JSX.Element;
33
33
  export declare const Pinterest: ({ resolveUrl }: {
34
34
  resolveUrl: UrlResolver;
35
- }) => import("react/jsx-runtime").JSX.Element;
35
+ }) => import("react").JSX.Element;
36
36
  export declare const Spotify: ({ resolveUrl }: {
37
37
  resolveUrl: UrlResolver;
38
- }) => import("react/jsx-runtime").JSX.Element;
38
+ }) => import("react").JSX.Element;
39
39
  export declare const Youtube: ({ resolveUrl }: {
40
40
  resolveUrl: UrlResolver;
41
- }) => import("react/jsx-runtime").JSX.Element;
41
+ }) => import("react").JSX.Element;
42
42
  export declare const Xtwitter: ({ resolveUrl }: {
43
43
  resolveUrl: UrlResolver;
44
- }) => import("react/jsx-runtime").JSX.Element;
44
+ }) => import("react").JSX.Element;
@@ -9,8 +9,8 @@ import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
- import "clsx";
13
12
  import "react";
13
+ import "clsx";
14
14
  import "../Chevron/Chevron.css.js";
15
15
  import "../AlertBanner/AlertBanner.css.js";
16
16
  import "../Article/Article.css.js";
@@ -4,4 +4,4 @@ export * from './SocialMediaBar.css';
4
4
  export declare const SocialMediaBar: ({ className, style, }: {
5
5
  className?: string;
6
6
  style?: CSSProperties;
7
- }) => import("react/jsx-runtime").JSX.Element;
7
+ }) => import("react").JSX.Element;
package/dist/Tab/Tab.d.ts CHANGED
@@ -7,4 +7,4 @@ export interface TabProps {
7
7
  onClick: () => void;
8
8
  variant: string;
9
9
  }
10
- export declare const Tab: ({ id, headline, className, onClick, variant, }: TabProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const Tab: ({ id, headline, className, onClick, variant, }: TabProps) => import("react").JSX.Element;
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
2
2
 
3
3
  export declare const TabContainer: ({ className, children, }: {
4
4
  className?: string;
5
- } & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ } & PropsWithChildren) => import("react").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { CellProps, RowProps, TableContainerProps, TableProps } from './Table.interface';
3
3
 
4
- export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, icon, variant, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, style, className, tableAriaLabel, }: TableProps) => import("react/jsx-runtime").JSX.Element;
6
- export declare const TableRow: ({ children, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
7
- export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
- export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, icon, variant, }: TableContainerProps) => import("react").JSX.Element;
5
+ export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, style, className, tableAriaLabel, }: TableProps) => import("react").JSX.Element;
6
+ export declare const TableRow: ({ children, ...props }: RowProps) => import("react").JSX.Element;
7
+ export declare const TableHead: ({ children }: PropsWithChildren) => import("react").JSX.Element;
8
+ export declare const TableBody: ({ children }: PropsWithChildren) => import("react").JSX.Element;
9
9
  export declare const TableCell: ({ children, as, variant, highlighted, colSpan, ...props }: CellProps) => import('react').DetailedReactHTMLElement<{
10
10
  colSpan: number | undefined;
11
11
  className: string;
@@ -6,4 +6,4 @@ export interface TextBlockProps {
6
6
  id?: string;
7
7
  internalName?: string;
8
8
  }
9
- export declare const TextBlock: (props: TextBlockProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const TextBlock: (props: TextBlockProps) => import("react").JSX.Element;
@@ -1,19 +1,19 @@
1
1
  import { default as React, PropsWithChildren } from 'react';
2
2
 
3
3
  export type Topic = PropsWithChildren;
4
- export declare const Topic: ({ children }: Topic) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Topic: ({ children }: Topic) => React.JSX.Element;
5
5
  export type TopicHeader = {
6
6
  As?: "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "a";
7
7
  title?: React.ReactNode;
8
8
  } & PropsWithChildren;
9
- export declare const TopicHeader: (props: TopicHeader) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const TopicHeader: (props: TopicHeader) => React.JSX.Element;
10
10
  export declare const TopicContent: (props: {
11
11
  url?: string;
12
12
  title?: string;
13
13
  children: React.ReactNode;
14
- }) => import("react/jsx-runtime").JSX.Element;
14
+ }) => React.JSX.Element;
15
15
  export declare const TopicItem: (props: {
16
16
  url?: string;
17
17
  title?: string;
18
18
  children: React.ReactNode;
19
- }) => import("react/jsx-runtime").JSX.Element;
19
+ }) => React.JSX.Element;
@@ -1 +1 @@
1
- export declare const VideoInit: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const VideoInit: () => import("react").JSX.Element;
@@ -10,8 +10,8 @@ import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavI
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import { getVariant } from "../utils/getVariant.js";
13
- import clsx from "clsx";
14
13
  import "react";
14
+ import clsx from "clsx";
15
15
  import "../Chevron/Chevron.css.js";
16
16
  import "../AlertBanner/AlertBanner.css.js";
17
17
  import "../Article/Article.css.js";
@@ -2,5 +2,5 @@ type WalnutProps = {
2
2
  id?: string;
3
3
  sourceUrl?: string;
4
4
  };
5
- declare const WalnutIframe: ({ id, sourceUrl }: WalnutProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const WalnutIframe: ({ id, sourceUrl }: WalnutProps) => import("react").JSX.Element;
6
6
  export default WalnutIframe;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgComponent;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgAxosX: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgAxosX: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgAxosX;
@@ -1,5 +1,5 @@
1
1
  import { SVGProps } from 'react';
2
2
  import { CheckColorVariant } from './CheckIcon/CheckIcon.css';
3
3
 
4
- declare const SvgCheckCircle: (props: SVGProps<SVGSVGElement> & CheckColorVariant) => import("react/jsx-runtime").JSX.Element;
4
+ declare const SvgCheckCircle: (props: SVGProps<SVGSVGElement> & CheckColorVariant) => import("react").JSX.Element;
5
5
  export default SvgCheckCircle;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgCheckCircleLight: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgCheckCircleLight: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgCheckCircleLight;
@@ -1,4 +1,4 @@
1
1
  import { CheckColorVariant } from './CheckIcon.css';
2
2
 
3
- declare const SvgCheckIcon: (props: CheckColorVariant) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgCheckIcon: (props: CheckColorVariant) => import("react").JSX.Element;
4
4
  export default SvgCheckIcon;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgChevronDown: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgChevronDown: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgChevronDown;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgChevronUp: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgChevronUp: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgChevronUp;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const ClockIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ClockIcon: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default ClockIcon;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgEqualHousingLender: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgEqualHousingLender: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgEqualHousingLender;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -4,5 +4,5 @@ declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
5
  height?: number;
6
6
  width?: number;
7
- }) => import("react/jsx-runtime").JSX.Element;
7
+ }) => import("react").JSX.Element;
8
8
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgComponent;
@@ -2,5 +2,5 @@ import { SVGProps } from 'react';
2
2
 
3
3
  declare const SvgComponent: (props: SVGProps<SVGSVGElement> & {
4
4
  classNameFill?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export default SvgComponent;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgComponent;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgComponent: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgComponent;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgMemberFdicLogo: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgMemberFdicLogo: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgMemberFdicLogo;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgQuoteIconGrey: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgQuoteIconGrey: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgQuoteIconGrey;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgQuoteIconWhite: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgQuoteIconWhite: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgQuoteIconWhite;
@@ -1,4 +1,4 @@
1
1
  import { SVGProps } from 'react';
2
2
 
3
- declare const SvgQuoteIconYellow: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ declare const SvgQuoteIconYellow: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
4
4
  export default SvgQuoteIconYellow;
package/dist/main.js CHANGED
@@ -211,7 +211,7 @@ import { VideoWrapper } from "./VideoWrapper/index.js";
211
211
  import { Tab } from "./Tab/Tab.js";
212
212
  import { TabContainer } from "./Tab/TabContainer.js";
213
213
  import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./utils/allowedAxosDomains.js";
214
- import { appendQueryParams } from "./utils/appendQueryParams.js";
214
+ import { appendQueryParams, filterParams, handleAnchorClick } from "./utils/appendQueryParams.js";
215
215
  import { createCachedEmailValidator } from "./utils/emailValidation.js";
216
216
  import { associatedEmail } from "./utils/EverestValidity.js";
217
217
  import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
@@ -583,6 +583,7 @@ export {
583
583
  featured_subgrid_title,
584
584
  featured_supertag,
585
585
  featured_title,
586
+ filterParams,
586
587
  findMoreAxosDomains,
587
588
  flexColumn,
588
589
  footerDisclosure,
@@ -612,6 +613,7 @@ export {
612
613
  getMoreDomains,
613
614
  getVariant,
614
615
  getVariantWithRegex,
616
+ handleAnchorClick,
615
617
  header,
616
618
  headerAccordion,
617
619
  headerCell,
@@ -1 +1,3 @@
1
- export declare const appendQueryParams: () => void;
1
+ export declare const filterParams: (href: string, currentSearch?: string) => string;
2
+ export declare const handleAnchorClick: (e: MouseEvent | React.MouseEvent, resolved: string) => boolean;
3
+ export declare const appendQueryParams: (currentSearch?: string) => void;
@@ -1,76 +1,76 @@
1
- const appendQueryParams = () => {
2
- const currentOrigin = window.location.origin;
3
- const currentPathname = window.location.pathname;
4
- const filterParams = (href, currentSearch) => {
5
- try {
6
- const search = currentSearch ?? window.location.search;
7
- const searchParams = new URLSearchParams(search);
8
- const base = window.location.origin + window.location.pathname + window.location.search;
9
- const url = new URL(href, base);
10
- const existingParams = new URLSearchParams(url.search);
11
- const newParams = new URLSearchParams();
12
- const addedKeys = /* @__PURE__ */ new Set();
13
- for (const key of existingParams.keys()) {
14
- addedKeys.add(decodeURIComponent(key));
15
- }
1
+ const filterParams = (href, currentSearch) => {
2
+ if (typeof window === "undefined") return href;
3
+ try {
4
+ if (!href || href.startsWith("tel:") || href.startsWith("mailto:") || href === "#" || href === "") {
5
+ return href;
6
+ }
7
+ const search = currentSearch ?? window.location.search;
8
+ const searchParams = new URLSearchParams(search);
9
+ const base = window.location.href;
10
+ const url = new URL(href, base);
11
+ if (url.pathname === window.location.pathname && url.hash) {
12
+ const existingInHash = new URLSearchParams(url.search);
16
13
  for (const [key, value] of searchParams.entries()) {
17
- const decodedKey = decodeURIComponent(key);
18
- const decodedValue = decodeURIComponent(value);
19
- const lowerKey = decodedKey.toLowerCase();
20
- if (!addedKeys.has(lowerKey) && !decodedKey.includes("[]")) {
21
- newParams.append(lowerKey, decodedValue);
22
- addedKeys.add(lowerKey);
23
- } else if (decodedKey.includes("[]")) {
24
- const existingValues = existingParams.getAll(key).map(decodeURIComponent);
25
- if (!existingValues.includes(decodedValue)) {
26
- newParams.append(decodedKey, decodedValue);
27
- }
14
+ const decodedKey = decodeURIComponent(key).toLowerCase();
15
+ if (!existingInHash.has(decodedKey) && !decodedKey.includes("[]")) {
16
+ existingInHash.set(decodedKey, decodeURIComponent(value));
28
17
  }
29
18
  }
30
- const mergedParams = new URLSearchParams(existingParams);
31
- newParams.forEach((value, key) => mergedParams.append(key, value));
32
- return `${url.origin}${url.pathname}?${mergedParams.toString()}${url.hash}`;
33
- } catch (e) {
34
- console.error(e);
35
- return href;
19
+ return `?${existingInHash.toString()}${url.hash}`;
36
20
  }
37
- };
38
- const handleSamePageClick = (e) => {
39
- const anchor = e.target?.closest?.("a[href]");
40
- if (!anchor || anchor.classList.contains("ext-link"))
41
- return;
42
- const href = anchor.getAttribute("href")?.trim();
43
- if (!href || href.startsWith("tel:") || href.startsWith("mailto:") || href === "#" || href === "" || href.startsWith("#"))
44
- return;
45
- const base = window.location.origin + window.location.pathname + window.location.search;
46
- const url = new URL(href, base);
47
- if (url.origin !== currentOrigin || url.pathname !== currentPathname)
48
- return;
49
- e.preventDefault();
50
- e.stopImmediatePropagation();
51
- const merged = filterParams(href, window.location.search);
52
- const mergedUrl = new URL(merged, window.location.origin);
53
- const fullUrl = `${mergedUrl.pathname}${mergedUrl.search}${mergedUrl.hash}`;
54
- window.history.replaceState({ ...window.history.state }, "", fullUrl);
55
- window.dispatchEvent(
56
- new PopStateEvent("popstate", { state: window.history.state })
57
- );
58
- if (mergedUrl.hash) {
59
- const el = document.querySelector(mergedUrl.hash);
60
- el?.scrollIntoView({ behavior: "smooth" });
21
+ const existingParams = new URLSearchParams(url.search);
22
+ const newParams = new URLSearchParams();
23
+ const addedKeys = /* @__PURE__ */ new Set();
24
+ for (const key of existingParams.keys()) {
25
+ addedKeys.add(decodeURIComponent(key));
61
26
  }
62
- };
63
- document.addEventListener("click", handleSamePageClick, true);
64
- if (window.location.search.length) {
65
- const searchParams = new URLSearchParams(window.location.search);
66
- document.querySelectorAll("a[href]:not(.ext-link)").forEach((anchor) => {
67
- const href = anchor.getAttribute("href")?.trim();
68
- if (href && !href.startsWith("tel:") && !href.startsWith("mailto:") && href !== "#" && href !== "" && !href.startsWith("#")) {
69
- anchor.href = filterParams(href, searchParams.toString());
27
+ for (const [key, value] of searchParams.entries()) {
28
+ const decodedKey = decodeURIComponent(key);
29
+ const decodedValue = decodeURIComponent(value);
30
+ const lowerKey = decodedKey.toLowerCase();
31
+ if (!addedKeys.has(lowerKey) && !decodedKey.includes("[]")) {
32
+ newParams.append(lowerKey, decodedValue);
33
+ addedKeys.add(lowerKey);
34
+ } else if (decodedKey.includes("[]")) {
35
+ const existingValues = existingParams.getAll(key).map(decodeURIComponent);
36
+ if (!existingValues.includes(decodedValue)) {
37
+ newParams.append(decodedKey, decodedValue);
38
+ }
70
39
  }
71
- });
40
+ }
41
+ const mergedParams = new URLSearchParams(existingParams);
42
+ newParams.forEach((value, key) => mergedParams.append(key, value));
43
+ return `${url.origin}${url.pathname}?${mergedParams.toString()}${url.hash}`;
44
+ } catch (e) {
45
+ console.error(e);
46
+ return href;
47
+ }
48
+ };
49
+ const handleAnchorClick = (e, resolved) => {
50
+ if (resolved.includes("#") && !resolved.startsWith("http")) {
51
+ e.preventDefault();
52
+ const hash = resolved.split("#")[1];
53
+ const fullUrl = new URL(resolved, window.location.href);
54
+ window.history.pushState(null, "", fullUrl.search + fullUrl.hash);
55
+ window.dispatchEvent(new PopStateEvent("popstate"));
56
+ document.getElementById(hash)?.scrollIntoView({ behavior: "smooth" });
57
+ return true;
72
58
  }
59
+ return false;
60
+ };
61
+ const appendQueryParams = (currentSearch) => {
62
+ const search = currentSearch ?? window.location.search;
63
+ if (!search.length) return;
64
+ const searchParams = new URLSearchParams(search);
65
+ document.querySelectorAll("a[href]:not(.ext-link)").forEach((anchor) => {
66
+ const href = anchor.getAttribute("href")?.trim();
67
+ if (href && !href.startsWith("tel:") && !href.startsWith("mailto:") && href !== "#" && href !== "" && !href.startsWith("#")) {
68
+ anchor.href = filterParams(href, searchParams.toString());
69
+ }
70
+ });
73
71
  };
74
72
  export {
75
- appendQueryParams
73
+ appendQueryParams,
74
+ filterParams,
75
+ handleAnchorClick
76
76
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { findMoreAxosDomains, getMoreDomains, isAllowedUrl } from "./allowedAxosDomains.js";
3
- import { appendQueryParams } from "./appendQueryParams.js";
3
+ import { appendQueryParams, filterParams, handleAnchorClick } from "./appendQueryParams.js";
4
4
  import { createCachedEmailValidator } from "./emailValidation.js";
5
5
  import { associatedEmail } from "./EverestValidity.js";
6
6
  import { getVariant, getVariantWithRegex } from "./getVariant.js";
@@ -14,10 +14,12 @@ export {
14
14
  columnValues,
15
15
  createCachedEmailValidator,
16
16
  createCachedNMLSValidator,
17
+ filterParams,
17
18
  findMoreAxosDomains,
18
19
  getMoreDomains,
19
20
  getVariant,
20
21
  getVariantWithRegex,
22
+ handleAnchorClick,
21
23
  isAbsoluteUrl,
22
24
  isAllowedUrl,
23
25
  isEmailLink,
@@ -0,0 +1,21 @@
1
+ interface UtagData {
2
+ traffic_type?: string;
3
+ traffic_source?: string;
4
+ [key: string]: unknown;
5
+ }
6
+ declare global {
7
+ interface Window {
8
+ utag?: {
9
+ data: UtagData;
10
+ };
11
+ utag_data?: UtagData;
12
+ }
13
+ }
14
+ export interface OrganicUtms {
15
+ utm_source: string;
16
+ utm_medium: string;
17
+ utm_campaign: string;
18
+ }
19
+ export declare const getTealiumOrganicFallback: () => OrganicUtms | null;
20
+ export declare const hasNoUtms: (params: URLSearchParams) => boolean;
21
+ export {};
@@ -0,0 +1,26 @@
1
+ const getTealiumOrganicFallback = () => {
2
+ if (typeof window === "undefined") return null;
3
+ try {
4
+ const utagData = window.utag?.data ?? window.utag_data ?? {};
5
+ const trafficType = utagData.traffic_type ?? "";
6
+ const trafficSource = utagData.traffic_source ?? "";
7
+ if (trafficType !== "organic" || !trafficSource) return null;
8
+ let sourceName = trafficSource;
9
+ try {
10
+ sourceName = new URL(trafficSource).hostname.replace(/^www\./, "").split(".")[0];
11
+ } catch (_) {
12
+ }
13
+ return {
14
+ utm_source: sourceName,
15
+ utm_medium: "organic",
16
+ utm_campaign: "organic-search"
17
+ };
18
+ } catch {
19
+ return null;
20
+ }
21
+ };
22
+ const hasNoUtms = (params) => !params.has("utm_source") && !params.has("utm_medium") && !params.has("utm_campaign") && !params.has("utm_content") && !params.has("utm_term");
23
+ export {
24
+ getTealiumOrganicFallback,
25
+ hasNoUtms
26
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "2.2.19",
4
+ "version": "2.2.21",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.js",