@axos-web-dev/shared-components 0.0.176 → 0.0.178

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.
@@ -10,6 +10,8 @@ import { Sign_in_btn, expand } from "./NavBar.css.js";
10
10
  import styles from "./NavBar.module.js";
11
11
  import { navItems } from "./NavData.js";
12
12
  import SubNavBar from "./SubNavBar.js";
13
+ import "../../utils/allowedAxosDomains.js";
14
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
13
15
  function NavBar() {
14
16
  const [isOpenSignIn, setisOpenSignIn] = useState(false);
15
17
  const [isOpenSignInToggle, setisOpenSignInToggle] = useState(false);
@@ -33,6 +35,9 @@ function NavBar() {
33
35
  useEffect(() => {
34
36
  getActiveIndex();
35
37
  }, [activeIndex]);
38
+ useEffect(() => {
39
+ appendQueryParams();
40
+ }, [lastNavItem]);
36
41
  useEffect(() => {
37
42
  setLastNavItem(navItems[navItems.length - 1]);
38
43
  }, [navItems]);
@@ -5,6 +5,8 @@ import { useLocation } from "react-use";
5
5
  import styles from "./NavBar.module.js";
6
6
  import { subNavItems } from "./NavData.js";
7
7
  import { sub_nav } from "./SubNavbar.css.js";
8
+ import "../../utils/allowedAxosDomains.js";
9
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
8
10
  function SubNavBar() {
9
11
  const { pathname } = useLocation();
10
12
  const scaleYourBusiness = subNavItems.scaleYourBusiness;
@@ -21,6 +23,7 @@ function SubNavBar() {
21
23
  "/cash-management-solutions"
22
24
  ].some((el) => pathname?.includes(el))
23
25
  );
26
+ appendQueryParams();
24
27
  }, [pathname]);
25
28
  return showNavbar ? /* @__PURE__ */ jsx("div", { className: `${styles.sub_nav} ${sub_nav} ${styles.desktop_only}`, children: /* @__PURE__ */ jsx("div", { className: styles.wrapper, children: /* @__PURE__ */ jsx("div", { className: styles.header_sub_row, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("ul", { className: "list_unstyled flex_row middle", children: [
26
29
  pathname?.includes("/scale-your-business") && scaleYourBusiness.length > 0 && scaleYourBusiness?.map(
@@ -11,6 +11,8 @@ import { Sign_in_btn, expand } from "./NavBar.css.js";
11
11
  import styles from "./NavBar.module.js";
12
12
  import { navItems } from "./NavData.js";
13
13
  import SubNavBar from "./SubNavBar.js";
14
+ import "../../utils/allowedAxosDomains.js";
15
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
14
16
  function NavBar() {
15
17
  const [isOpenSignIn, setisOpenSignIn] = useState(false);
16
18
  const [isOpenSignInToggle, setisOpenSignInToggle] = useState(false);
@@ -36,6 +38,7 @@ function NavBar() {
36
38
  };
37
39
  useEffect(() => {
38
40
  getActiveIndex();
41
+ appendQueryParams();
39
42
  }, [activeIndex]);
40
43
  useClickAway(ref, (e) => {
41
44
  if (e?.target?.tagName !== "A") {
@@ -14,6 +14,7 @@ import "../../AlertBanner/AlertBanner.css.js";
14
14
  import "../../Article/Article.css.js";
15
15
  import "../../IconBillboard/IconBillboard.css.js";
16
16
  import { findMoreAxosDomains } from "../../utils/allowedAxosDomains.js";
17
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
17
18
  /* empty css */
18
19
  /* empty css */
19
20
  import "../../Interstitial/Interstitial-variants.css.js";
@@ -142,6 +143,9 @@ function SubNavBar() {
142
143
  containerRef.current.focus();
143
144
  }
144
145
  }, [hoveredLink, isClient]);
146
+ useEffect(() => {
147
+ appendQueryParams();
148
+ }, [hoveredLink]);
145
149
  const handleKeyDownContainer = (e, linkId) => {
146
150
  if (e.key === "Tab") {
147
151
  const focusableElements = containerRef.current?.querySelectorAll(
@@ -18,6 +18,7 @@ import "../../Article/Article.css.js";
18
18
  import "../../ArticlesSet/ArticlesSet.css.js";
19
19
  import "../../IconBillboard/IconBillboard.css.js";
20
20
  import { findMoreAxosDomains } from "../../utils/allowedAxosDomains.js";
21
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
21
22
  import clsx from "clsx";
22
23
  import "../../Calculators/calculator.css.js";
23
24
  import "../../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
@@ -142,6 +143,9 @@ function NavBar() {
142
143
  setisOpenSignIn(false);
143
144
  }
144
145
  });
146
+ useEffect(() => {
147
+ appendQueryParams();
148
+ }, [lastNavItem]);
145
149
  useEffect(() => {
146
150
  setIsClient(true);
147
151
  }, []);
@@ -10,6 +10,8 @@ import { expand } from "./NavBar.css.js";
10
10
  import styles from "./NavBar.module.js";
11
11
  import { navItems } from "./NavData.js";
12
12
  import SubNavBar from "./SubNavBar.js";
13
+ import "../../utils/allowedAxosDomains.js";
14
+ import { appendQueryParams } from "../../utils/appendQueryParams.js";
13
15
  function NavBar() {
14
16
  const [isOpenSignIn, setisOpenSignIn] = useState(false);
15
17
  const [isOpenMobile, setisOpenMobile] = useState(false);
@@ -37,6 +39,9 @@ function NavBar() {
37
39
  useEffect(() => {
38
40
  getActiveIndex();
39
41
  }, [activeIndex]);
42
+ useEffect(() => {
43
+ appendQueryParams();
44
+ }, [lastNavItem]);
40
45
  useEffect(() => {
41
46
  setLastNavItem(navItems[navItems.length - 1]);
42
47
  }, []);
package/dist/main.js CHANGED
@@ -169,6 +169,7 @@ import { associatedEmail } from "./utils/EverestValidity.js";
169
169
  import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
170
170
  import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./utils/validateExternalLinks.js";
171
171
  import { columnValues } from "./utils/variant.types.js";
172
+ import { appendQueryParams } from "./utils/appendQueryParams.js";
172
173
  import { padding_in_footer, smb_section, smb_wrapper } from "./SocialMediaBar/SocialMediaBar.css.js";
173
174
  export {
174
175
  default20 as AASLogo,
@@ -338,6 +339,7 @@ export {
338
339
  ant_section,
339
340
  ant_svg_fill,
340
341
  app_col,
342
+ appendQueryParams,
341
343
  apy_billboard,
342
344
  apy_table,
343
345
  associatedEmail,
@@ -3,3 +3,4 @@ export * from './EverestValidity';
3
3
  export * from './getVariant';
4
4
  export * from './validateExternalLinks';
5
5
  export * from './variant.types';
6
+ export * from './appendQueryParams';
@@ -3,7 +3,9 @@ import { associatedEmail } from "./EverestValidity.js";
3
3
  import { getVariant, getVariantWithRegex } from "./getVariant.js";
4
4
  import { isAbsoluteUrl, isEmailLink, isPhoneLink, shortUrl, validateLink } from "./validateExternalLinks.js";
5
5
  import { columnValues } from "./variant.types.js";
6
+ import { appendQueryParams } from "./appendQueryParams.js";
6
7
  export {
8
+ appendQueryParams,
7
9
  associatedEmail,
8
10
  columnValues,
9
11
  findMoreAxosDomains,
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": "0.0.176",
4
+ "version": "0.0.178",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",