@axos-web-dev/shared-components 1.0.40 → 1.0.41

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 (46) hide show
  1. package/dist/ATMLocator/ATMLocator.js +0 -1
  2. package/dist/Button/Button.js +0 -1
  3. package/dist/Calculators/Calculator.js +0 -1
  4. package/dist/Carousel/index.js +0 -1
  5. package/dist/Chevron/index.js +0 -1
  6. package/dist/Comparison/Comparison.js +0 -1
  7. package/dist/ExecutiveBio/ExecutiveBio.js +0 -1
  8. package/dist/FaqAccordion/index.js +0 -1
  9. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +0 -1
  10. package/dist/Forms/ApplyNow.js +0 -1
  11. package/dist/Forms/ContactUsBusiness.js +0 -1
  12. package/dist/Forms/ContactUsNMLSId.js +0 -1
  13. package/dist/Forms/CraPublicFile.js +0 -1
  14. package/dist/Forms/EmailOnly.js +0 -1
  15. package/dist/Forms/MortgageRate/MortgageRateForm.js +0 -1
  16. package/dist/Forms/MortgageRate/MortgageRateWatch.js +0 -1
  17. package/dist/Forms/SuccesForm.js +0 -1
  18. package/dist/Hyperlink/index.js +0 -1
  19. package/dist/ImageLink/ImageLink.js +0 -1
  20. package/dist/ImageLink/ImageLinkSet.js +0 -1
  21. package/dist/ImageLink/index.js +0 -1
  22. package/dist/Insight/Featured/CategorySelector.js +0 -1
  23. package/dist/Insight/Featured/Featured.js +0 -1
  24. package/dist/Insight/Featured/Header.js +0 -1
  25. package/dist/Modal/Modal.js +0 -1
  26. package/dist/NavigationMenu/AxosALTS/NavData.js +0 -1
  27. package/dist/NavigationMenu/AxosALTS/index.js +0 -1
  28. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +0 -2
  29. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +1 -346
  30. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +2 -48
  31. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +0 -250
  32. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -627
  33. package/dist/NavigationMenu/AxosBank/NavBar.module.js +81 -39
  34. package/dist/NavigationMenu/AxosBank/NavData.js +0 -1
  35. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -2
  36. package/dist/NavigationMenu/AxosBank/index.js +521 -80
  37. package/dist/NavigationMenu/LaVictoire/NavData.js +0 -1
  38. package/dist/NavigationMenu/LaVictoire/index.js +0 -1
  39. package/dist/SetContainer/SetContainer.js +0 -1
  40. package/dist/SocialMediaBar/iconsRepository.js +0 -1
  41. package/dist/VideoWrapper/index.js +0 -1
  42. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +166 -166
  43. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +689 -473
  44. package/dist/utils/allowedAxosDomains.js +12 -0
  45. package/dist/utils/appendQueryParams.js +3 -6
  46. package/package.json +131 -131
@@ -57,6 +57,18 @@ const findMoreAxosDomains = (url) => {
57
57
  regexSearching,
58
58
  moreDomains[domainToReplace[0]]
59
59
  );
60
+ if (typeof window !== "undefined" && window.location.search) {
61
+ const original = new URL(newURL, window.location.origin);
62
+ const incomingParams = new URLSearchParams(window.location.search);
63
+ const existingParams = new URLSearchParams(original.search);
64
+ for (const [key, value] of incomingParams.entries()) {
65
+ if (!existingParams.has(key)) {
66
+ existingParams.append(key, value);
67
+ }
68
+ }
69
+ original.search = existingParams.toString();
70
+ return original.toString();
71
+ }
60
72
  return newURL;
61
73
  }
62
74
  }
@@ -33,12 +33,9 @@ const appendQueryParams = () => {
33
33
  };
34
34
  if (window.location.search.length) {
35
35
  document.querySelectorAll("a[href]:not(.ext-link)").forEach((anchor) => {
36
- const href = anchor.getAttribute("href");
37
- if (href) {
38
- const lowerHref = href.trim().toLowerCase();
39
- if (!lowerHref.startsWith("tel:") && !lowerHref.startsWith("mailto:")) {
40
- anchor.href = filterParams(href);
41
- }
36
+ const href = anchor.getAttribute("href")?.trim();
37
+ if (href && !href.startsWith("tel:") && !href.startsWith("mailto:") && href !== "#" && href !== "" && !href.startsWith("#")) {
38
+ anchor.href = filterParams(href);
42
39
  }
43
40
  });
44
41
  }
package/package.json CHANGED
@@ -1,131 +1,131 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.40",
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.9.1",
33
- "@react-input/mask": "^1.2.15",
34
- "@react-input/number-format": "^1.1.3",
35
- "@storybook/icons": "^1.3.0",
36
- "@storybook/preview-api": "^8.4.7",
37
- "@types/iframe-resizer": "3.5.13",
38
- "@vanilla-extract/css": "^1.16.1",
39
- "@vanilla-extract/recipes": "^0.5.1",
40
- "antd": "^5.22.5",
41
- "clsx": "^2.1.1",
42
- "framer-motion": "^12.9.2",
43
- "iframe-resizer": "^3.6.6",
44
- "lodash": "^4.17.21",
45
- "moment": "^2.30.1",
46
- "react-date-picker": "^11.0.0",
47
- "react-date-range": "^2.0.1",
48
- "react-hook-form": "^7.54.2",
49
- "react-markdown": "^9.0.1",
50
- "react-popper": "^2.3.0",
51
- "react-slick": "^0.30.2",
52
- "react-use": "^17.6.0",
53
- "react-wrap-balancer": "^1.1.1",
54
- "rsuite": "^5.75.0",
55
- "slick-carousel": "^1.8.1",
56
- "typed-css-modules": "^0.9.1",
57
- "vite-plugin-svgr": "^4.3.0",
58
- "zod": "^3.24.1",
59
- "zustand": "^4.5.5"
60
- },
61
- "peerDependencies": {
62
- "@vanilla-extract/css-utils": "^0.1.3",
63
- "@vanilla-extract/recipes": "^0.5.1",
64
- "@vanilla-extract/vite-plugin": "^4.0.3",
65
- "next": "^14.1.4",
66
- "react": "^18.2.0",
67
- "react-date-range": "^2.0.1",
68
- "react-dom": "^18.2.0",
69
- "react-popper": "^2.3.0",
70
- "react-slick": "^0.30.2",
71
- "slick-carousel": "^1.8.1"
72
- },
73
- "devDependencies": {
74
- "@chromatic-com/storybook": "^1.9.0",
75
- "@rollup/plugin-alias": "^5.1.1",
76
- "@storybook/addon-essentials": "^8.4.7",
77
- "@storybook/addon-interactions": "^8.4.7",
78
- "@storybook/addon-links": "^8.4.7",
79
- "@storybook/addon-mdx-gfm": "^8.4.7",
80
- "@storybook/addon-onboarding": "^8.4.7",
81
- "@storybook/addon-themes": "^8.4.7",
82
- "@storybook/blocks": "^8.4.7",
83
- "@storybook/react": "^8.4.7",
84
- "@storybook/react-vite": "^8.4.7",
85
- "@storybook/test": "^8.4.7",
86
- "@svgr/core": "^8.1.0",
87
- "@svgr/plugin-prettier": "^8.1.0",
88
- "@svgr/plugin-svgo": "^8.1.0",
89
- "@types/lodash": "^4.17.13",
90
- "@types/node": "^20.17.10",
91
- "@types/react": "^18.3.18",
92
- "@types/react-date-range": "^1.4.9",
93
- "@types/react-datepicker": "^6.2.0",
94
- "@types/react-dom": "^18.3.5",
95
- "@types/react-slick": "^0.23.13",
96
- "@typescript-eslint/eslint-plugin": "^7.18.0",
97
- "@typescript-eslint/parser": "^7.18.0",
98
- "@vanilla-extract/css-utils": "^0.1.4",
99
- "@vanilla-extract/recipes": "^0.5.5",
100
- "@vanilla-extract/vite-plugin": "^4.0.18",
101
- "@vitejs/plugin-react-swc": "^3.7.2",
102
- "esbuild-vanilla-image-loader": "^0.1.3",
103
- "eslint": "^8.57.1",
104
- "eslint-plugin-react-hooks": "^4.6.2",
105
- "eslint-plugin-react-refresh": "^0.4.16",
106
- "eslint-plugin-storybook": "^0.8.0",
107
- "glob": "^10.4.5",
108
- "husky": "^9.1.7",
109
- "next": "^14.1.4",
110
- "prettier": "3.2.5",
111
- "react": "^18.3.1",
112
- "react-dom": "^18.3.1",
113
- "rollup-plugin-preserve-directives": "^0.4.0",
114
- "rollup-plugin-svg-import": "^3.0.0",
115
- "rollup-plugin-svgo": "^2.0.0",
116
- "storybook": "^8.4.7",
117
- "typescript": "^5.7.2",
118
- "typescript-plugin-css-modules": "^5.1.0",
119
- "vite": "^5.4.11",
120
- "vite-plugin-dts": "^3.9.1",
121
- "vite-plugin-lib-inject-css": "^2.1.1",
122
- "vite-plugin-setting-css-module": "^1.1.4",
123
- "vite-tsconfig-paths": "^4.3.2"
124
- },
125
- "main": "index.js",
126
- "directories": {
127
- "lib": "lib"
128
- },
129
- "author": "axos-web-dev",
130
- "license": "ISC"
131
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.41",
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.9.1",
33
+ "@react-input/mask": "^1.2.15",
34
+ "@react-input/number-format": "^1.1.3",
35
+ "@storybook/icons": "^1.3.0",
36
+ "@storybook/preview-api": "^8.4.7",
37
+ "@types/iframe-resizer": "3.5.13",
38
+ "@vanilla-extract/css": "^1.16.1",
39
+ "@vanilla-extract/recipes": "^0.5.1",
40
+ "antd": "^5.22.5",
41
+ "clsx": "^2.1.1",
42
+ "framer-motion": "^12.9.2",
43
+ "iframe-resizer": "^3.6.6",
44
+ "lodash": "^4.17.21",
45
+ "moment": "^2.30.1",
46
+ "react-date-picker": "^11.0.0",
47
+ "react-date-range": "^2.0.1",
48
+ "react-hook-form": "^7.54.2",
49
+ "react-markdown": "^9.0.1",
50
+ "react-popper": "^2.3.0",
51
+ "react-slick": "^0.30.2",
52
+ "react-use": "^17.6.0",
53
+ "react-wrap-balancer": "^1.1.1",
54
+ "rsuite": "^5.75.0",
55
+ "slick-carousel": "^1.8.1",
56
+ "typed-css-modules": "^0.9.1",
57
+ "vite-plugin-svgr": "^4.3.0",
58
+ "zod": "^3.24.1",
59
+ "zustand": "^4.5.5"
60
+ },
61
+ "peerDependencies": {
62
+ "@vanilla-extract/css-utils": "^0.1.3",
63
+ "@vanilla-extract/recipes": "^0.5.1",
64
+ "@vanilla-extract/vite-plugin": "^4.0.3",
65
+ "next": "^14.1.4",
66
+ "react": "^18.2.0",
67
+ "react-date-range": "^2.0.1",
68
+ "react-dom": "^18.2.0",
69
+ "react-popper": "^2.3.0",
70
+ "react-slick": "^0.30.2",
71
+ "slick-carousel": "^1.8.1"
72
+ },
73
+ "devDependencies": {
74
+ "@chromatic-com/storybook": "^1.9.0",
75
+ "@rollup/plugin-alias": "^5.1.1",
76
+ "@storybook/addon-essentials": "^8.4.7",
77
+ "@storybook/addon-interactions": "^8.4.7",
78
+ "@storybook/addon-links": "^8.4.7",
79
+ "@storybook/addon-mdx-gfm": "^8.4.7",
80
+ "@storybook/addon-onboarding": "^8.4.7",
81
+ "@storybook/addon-themes": "^8.4.7",
82
+ "@storybook/blocks": "^8.4.7",
83
+ "@storybook/react": "^8.4.7",
84
+ "@storybook/react-vite": "^8.4.7",
85
+ "@storybook/test": "^8.4.7",
86
+ "@svgr/core": "^8.1.0",
87
+ "@svgr/plugin-prettier": "^8.1.0",
88
+ "@svgr/plugin-svgo": "^8.1.0",
89
+ "@types/lodash": "^4.17.13",
90
+ "@types/node": "^20.17.10",
91
+ "@types/react": "^18.3.18",
92
+ "@types/react-date-range": "^1.4.9",
93
+ "@types/react-datepicker": "^6.2.0",
94
+ "@types/react-dom": "^18.3.5",
95
+ "@types/react-slick": "^0.23.13",
96
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
97
+ "@typescript-eslint/parser": "^7.18.0",
98
+ "@vanilla-extract/css-utils": "^0.1.4",
99
+ "@vanilla-extract/recipes": "^0.5.5",
100
+ "@vanilla-extract/vite-plugin": "^4.0.18",
101
+ "@vitejs/plugin-react-swc": "^3.7.2",
102
+ "esbuild-vanilla-image-loader": "^0.1.3",
103
+ "eslint": "^8.57.1",
104
+ "eslint-plugin-react-hooks": "^4.6.2",
105
+ "eslint-plugin-react-refresh": "^0.4.16",
106
+ "eslint-plugin-storybook": "^0.8.0",
107
+ "glob": "^10.4.5",
108
+ "husky": "^9.1.7",
109
+ "next": "^14.1.4",
110
+ "prettier": "3.2.5",
111
+ "react": "^18.3.1",
112
+ "react-dom": "^18.3.1",
113
+ "rollup-plugin-preserve-directives": "^0.4.0",
114
+ "rollup-plugin-svg-import": "^3.0.0",
115
+ "rollup-plugin-svgo": "^2.0.0",
116
+ "storybook": "^8.4.7",
117
+ "typescript": "^5.7.2",
118
+ "typescript-plugin-css-modules": "^5.1.0",
119
+ "vite": "^5.4.11",
120
+ "vite-plugin-dts": "^3.9.1",
121
+ "vite-plugin-lib-inject-css": "^2.1.1",
122
+ "vite-plugin-setting-css-module": "^1.1.4",
123
+ "vite-tsconfig-paths": "^4.3.2"
124
+ },
125
+ "main": "index.js",
126
+ "directories": {
127
+ "lib": "lib"
128
+ },
129
+ "author": "axos-web-dev",
130
+ "license": "ISC"
131
+ }