@axos-web-dev/shared-components 0.0.177 → 0.0.179

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
  }, []);
@@ -416,7 +420,7 @@ function NavBar() {
416
420
  "a",
417
421
  {
418
422
  className: styles.signin_header,
419
- href: findMoreAxosDomains("{AXOSBANK}/personal"),
423
+ href: findMoreAxosDomains("{AXOSBANK}/personal/bank"),
420
424
  children: "Personal"
421
425
  }
422
426
  ),
@@ -515,7 +519,7 @@ function NavBar() {
515
519
  /* @__PURE__ */ jsx(
516
520
  "a",
517
521
  {
518
- href: findMoreAxosDomains("{AXOSBANK/partners}"),
522
+ href: findMoreAxosDomains("{AXOSBANK}/partners"),
519
523
  className: `${styles.signin_header}`,
520
524
  children: "Partners"
521
525
  }
@@ -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
  }, []);
@@ -93,9 +93,7 @@ const PageNavSet = ({ id, pageNavItems }) => {
93
93
  }
94
94
  useEffect(() => {
95
95
  if (isClient) {
96
- const pageNavLinks = document.querySelectorAll(
97
- '#pageNav a[href*="#"]'
98
- );
96
+ const pageNavLinks = document.querySelectorAll('a[href*="#"]');
99
97
  pageNavLinks.forEach((link) => {
100
98
  link.addEventListener("click", (e) => {
101
99
  e.preventDefault();
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.177",
4
+ "version": "0.0.179",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",