@axos-web-dev/shared-components 1.0.100-dev.55 → 1.0.100-dev.57
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 +2 -4
- package/dist/Accordion/Accordion.css.js +1 -2
- package/dist/Accordion/Accordion.js +1 -2
- package/dist/AlertBanner/index.js +1 -2
- package/dist/Article/Article.css.js +1 -2
- package/dist/ArticlesSet/ArticlesSet.css.js +1 -2
- package/dist/Auth/ErrorAlert.js +2 -4
- package/dist/Auth/SignIn.css.js +1 -2
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -2
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/BulletItem/BulletItem.js +1 -2
- package/dist/Button/Button.css.js +1 -2
- package/dist/Button/Button.js +2 -4
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -2
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -2
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +2 -0
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +7 -3
- package/dist/Calculators/AxosOneCalculator/index.js +72 -66
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -2
- package/dist/Calculators/BalanceAPYCalculator/index.js +1 -2
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +1 -2
- package/dist/Calculators/Calculator.js +2 -4
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +1 -2
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -2
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -2
- package/dist/Calculators/SummitApyCalculator/index.js +1 -2
- package/dist/Calculators/calculator.css.js +1 -2
- package/dist/CallToActionBar/CallToActionBar.css.js +1 -2
- package/dist/Carousel/Carousel.css.js +1 -2
- package/dist/Carousel/index.js +2 -4
- package/dist/Chatbot/Bubble.css.d.ts +0 -4
- package/dist/Chatbot/Bubble.css.js +3 -15
- package/dist/Chatbot/Bubble.js +19 -26
- package/dist/Chatbot/ChatWindow.css.d.ts +0 -17
- package/dist/Chatbot/ChatWindow.css.js +17 -46
- package/dist/Chatbot/ChatWindow.d.ts +1 -4
- package/dist/Chatbot/ChatWindow.js +283 -322
- package/dist/Chatbot/Chatbot.css.js +1 -1
- package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
- package/dist/Chatbot/Chatbot.js +5 -32
- package/dist/Chatbot/index.js +2 -18
- package/dist/Chatbot/store/chat.d.ts +0 -3
- package/dist/Chatbot/store/chat.js +1 -4
- package/dist/Chatbot/store/messages.d.ts +1 -1
- package/dist/Chatbot/store/messages.js +2 -7
- package/dist/Chevron/Chevron.css.js +1 -2
- package/dist/Chevron/index.js +2 -4
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -2
- package/dist/CollectInformationAlert/index.js +1 -2
- package/dist/Comparison/Comparison.css.js +1 -2
- package/dist/Comparison/Comparison.js +2 -4
- package/dist/ContentBanner/ContentBanner.css.js +1 -2
- package/dist/DownloadTile/DownloadTile.css.js +1 -2
- package/dist/ExecutiveBio/ExecutiveBio.css.js +1 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +2 -4
- package/dist/FaqAccordion/FaqAccordion.css.js +1 -2
- package/dist/FaqAccordion/index.js +2 -4
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -2
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +1 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -4
- package/dist/Forms/ApplicationStart.js +1 -2
- package/dist/Forms/ApplyNow.js +2 -4
- package/dist/Forms/ClearingForm.js +1 -2
- package/dist/Forms/CommercialDeposits.js +1 -2
- package/dist/Forms/CommercialDepositsNoLendingOption.js +1 -2
- package/dist/Forms/CommercialLending.js +1 -2
- package/dist/Forms/CommercialPremiumFinance.js +1 -2
- package/dist/Forms/ContactCompany.js +1 -2
- package/dist/Forms/ContactCompanyTitle.js +1 -2
- package/dist/Forms/ContactUs.js +1 -2
- package/dist/Forms/ContactUsAAS.js +1 -2
- package/dist/Forms/ContactUsBusiness.js +2 -4
- package/dist/Forms/ContactUsBusinessNameEmail.js +2 -4
- package/dist/Forms/ContactUsLVF.js +1 -2
- package/dist/Forms/ContactUsNMLSId.js +2 -4
- package/dist/Forms/CpraRequest.js +1 -2
- package/dist/Forms/CraPublicFile.js +2 -4
- package/dist/Forms/DealerServices.js +1 -2
- package/dist/Forms/EmailOnly.js +2 -4
- package/dist/Forms/EmailUs.js +1 -2
- package/dist/Forms/Forms.css.js +1 -2
- package/dist/Forms/MortgageRate/MortgageRateForm.js +2 -4
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -4
- package/dist/Forms/MortgageWarehouseLending.js +2 -4
- package/dist/Forms/QuickPricer/QuickPricerForm.js +1 -2
- package/dist/Forms/QuickPricer/UserInformation.css.js +1 -2
- package/dist/Forms/ScheduleCall.js +1 -2
- package/dist/Forms/ScheduleCallPremier.js +1 -2
- package/dist/Forms/SuccesForm.js +2 -4
- package/dist/Forms/WcplSurvey.js +1 -2
- package/dist/HeroBanner/HeroBanner.css.js +1 -2
- package/dist/HeroBanner/HeroBanner.js +1 -2
- package/dist/HeroBanner/LargeBanner.css.js +1 -2
- package/dist/HeroBanner/SelectionBanner.css.js +1 -2
- package/dist/Hyperlink/Hyperlink.css.js +1 -2
- package/dist/Hyperlink/index.js +2 -4
- package/dist/IconBillboard/IconBillboard.css.js +1 -2
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -2
- package/dist/ImageBillboard/ImageBillboard.js +1 -2
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -2
- package/dist/ImageLink/ImageLink.js +2 -4
- package/dist/ImageLink/ImageLinkSet.js +2 -4
- package/dist/ImageLink/index.js +2 -4
- package/dist/Input/Input.css.js +1 -2
- package/dist/Inputs/Input.css.js +1 -2
- package/dist/Insight/Featured/CategorySelector.css.js +1 -2
- package/dist/Insight/Featured/CategorySelector.js +2 -4
- package/dist/Insight/Featured/Featured.js +2 -4
- package/dist/Insight/Featured/Header.js +2 -4
- package/dist/Interstitial/Interstitial-variants.css.js +1 -2
- package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -2
- package/dist/LandingPageHeader/LandingPageHeader.js +1 -2
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/MainHTML/index.js +1 -3
- package/dist/Modal/Modal.css.js +1 -2
- package/dist/Modal/Modal.js +2 -4
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -2
- package/dist/NavigationMenu/AxosALTS/NavData.js +2 -4
- package/dist/NavigationMenu/AxosALTS/index.js +2 -4
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -2
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -2
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -2
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -2
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +2 -4
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -2
- package/dist/NavigationMenu/AxosBank/NavData.js +2 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -4
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -2
- package/dist/NavigationMenu/AxosBank/index.js +2 -4
- package/dist/NavigationMenu/LaVictoire/NavData.js +2 -4
- package/dist/NavigationMenu/LaVictoire/index.js +2 -4
- package/dist/NavigationMenu/NavDataJson.js +2 -4
- package/dist/NavigationMenu/Navbar.js +2 -4
- package/dist/NavigationMenu/SignInNavButton.js +2 -4
- package/dist/PageNavItem/PageNavItem.css.js +1 -2
- package/dist/Pagination/Pagination.js +1 -2
- package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -2
- package/dist/SetContainer/SetContainer.css.js +1 -2
- package/dist/SetContainer/SetContainer.js +2 -4
- package/dist/SocialMediaBar/iconsRepository.js +2 -4
- package/dist/StepItem/StepItem.css.js +1 -2
- package/dist/StepItemSet/StepItemSet.css.js +1 -2
- package/dist/StepItemSet/StepItemSet.js +1 -2
- package/dist/Tab/Tab.css.js +1 -2
- package/dist/Table/Table.css.js +1 -2
- package/dist/Table/Table.js +1 -2
- package/dist/TextBlock/TextBlock.css.js +1 -2
- package/dist/VideoTile/VideoTile.css.js +1 -2
- package/dist/VideoTile/VideoTile.js +2 -4
- package/dist/VideoWrapper/index.js +2 -4
- package/dist/assets/Blockquote/Blockquote.css.css +72 -72
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +40 -2
- package/dist/assets/Chatbot/Bubble.css +21 -58
- package/dist/assets/Chatbot/ChatWindow.css +83 -208
- package/dist/assets/DownloadTile/DownloadTile.css +1 -1
- package/dist/assets/Insight/Insight.css +2 -2
- package/dist/assets/themes/axos.css +0 -11
- package/dist/assets/themes/premier.css +0 -11
- package/dist/assets/themes/victorie.css +0 -11
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -2
- package/dist/icons/CheckIcon/CheckIcon.css.js +1 -2
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -2
- package/dist/icons/FollowIcon/FollowIcon.css.js +1 -2
- package/dist/main.js +2 -20
- package/dist/themes/axos.css.d.ts +0 -17
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/index.js +0 -2
- package/package.json +136 -136
- package/dist/Chatbot/AnimatedGradientBorder.css.d.ts +0 -3
- package/dist/Chatbot/AnimatedGradientBorder.css.js +0 -13
- package/dist/Chatbot/ChatbotMessage.d.ts +0 -16
- package/dist/Chatbot/ChatbotMessage.js +0 -215
- package/dist/Chatbot/ThankYouMessage.d.ts +0 -9
- package/dist/Chatbot/ThankYouMessage.js +0 -510
- package/dist/assets/Chatbot/AnimatedGradientBorder.css +0 -37
- package/dist/assets/Chatbot/Chatbot.css +0 -3
- package/dist/assets/themes/ufb.css +0 -51
- package/dist/themes/ufb.css.d.ts +0 -1
- package/dist/themes/ufb.css.js +0 -6
package/dist/themes/index.d.ts
CHANGED
package/dist/themes/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { axosTheme, vars } from "./axos.css.js";
|
|
2
2
|
import { premierTheme } from "./premier.css.js";
|
|
3
|
-
import { ufbTheme } from "./ufb.css.js";
|
|
4
3
|
import { victorieTheme } from "./victorie.css.js";
|
|
5
4
|
export {
|
|
6
5
|
axosTheme,
|
|
7
6
|
premierTheme,
|
|
8
|
-
ufbTheme,
|
|
9
7
|
vars,
|
|
10
8
|
victorieTheme
|
|
11
9
|
};
|
package/package.json
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@axos-web-dev/shared-components",
|
|
3
|
-
"description": "Axos shared components library for web.",
|
|
4
|
-
"version": "1.0.100-dev.
|
|
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
|
-
"@ts-stack/markdown": "^1.5.0",
|
|
39
|
-
"@types/iframe-resizer": "3.5.13",
|
|
40
|
-
"@ujet/websdk-headless": "^3.41.4",
|
|
41
|
-
"@vanilla-extract/css": "^1.16.1",
|
|
42
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
43
|
-
"antd": "^5.22.5",
|
|
44
|
-
"clsx": "^2.1.1",
|
|
45
|
-
"framer-motion": "^12.9.2",
|
|
46
|
-
"iframe-resizer": "^3.6.6",
|
|
47
|
-
"lodash": "^4.17.21",
|
|
48
|
-
"moment": "^2.30.1",
|
|
49
|
-
"next-safe-action": "^8.0.2",
|
|
50
|
-
"react-date-picker": "^11.0.0",
|
|
51
|
-
"react-date-range": "^2.0.1",
|
|
52
|
-
"react-hook-form": "^7.54.2",
|
|
53
|
-
"react-markdown": "^9.1.0",
|
|
54
|
-
"react-popper": "^2.3.0",
|
|
55
|
-
"react-slick": "^0.30.2",
|
|
56
|
-
"react-use": "^17.6.0",
|
|
57
|
-
"react-wrap-balancer": "^1.1.1",
|
|
58
|
-
"remark-gfm": "^4.0.1",
|
|
59
|
-
"rsuite": "^5.75.0",
|
|
60
|
-
"slick-carousel": "^1.8.1",
|
|
61
|
-
"typed-css-modules": "^0.9.1",
|
|
62
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
63
|
-
"zod": "^3.24.1",
|
|
64
|
-
"zustand": "^4.5.5"
|
|
65
|
-
},
|
|
66
|
-
"peerDependencies": {
|
|
67
|
-
"@vanilla-extract/css-utils": "^0.1.3",
|
|
68
|
-
"@vanilla-extract/recipes": "^0.5.1",
|
|
69
|
-
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
70
|
-
"next": "^14.1.4",
|
|
71
|
-
"react": "^18.2.0",
|
|
72
|
-
"react-date-range": "^2.0.1",
|
|
73
|
-
"react-dom": "^18.2.0",
|
|
74
|
-
"react-popper": "^2.3.0",
|
|
75
|
-
"react-slick": "^0.30.2",
|
|
76
|
-
"slick-carousel": "^1.8.1"
|
|
77
|
-
},
|
|
78
|
-
"devDependencies": {
|
|
79
|
-
"@chromatic-com/storybook": "^1.9.0",
|
|
80
|
-
"@rollup/plugin-alias": "^5.1.1",
|
|
81
|
-
"@storybook/addon-essentials": "^8.4.7",
|
|
82
|
-
"@storybook/addon-interactions": "^8.4.7",
|
|
83
|
-
"@storybook/addon-links": "^8.4.7",
|
|
84
|
-
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
85
|
-
"@storybook/addon-onboarding": "^8.4.7",
|
|
86
|
-
"@storybook/addon-themes": "^8.4.7",
|
|
87
|
-
"@storybook/blocks": "^8.4.7",
|
|
88
|
-
"@storybook/react": "^8.6.14",
|
|
89
|
-
"@storybook/react-vite": "^8.4.7",
|
|
90
|
-
"@storybook/test": "^8.6.14",
|
|
91
|
-
"@svgr/core": "^8.1.0",
|
|
92
|
-
"@svgr/plugin-prettier": "^8.1.0",
|
|
93
|
-
"@svgr/plugin-svgo": "^8.1.0",
|
|
94
|
-
"@types/lodash": "^4.17.17",
|
|
95
|
-
"@types/node": "^20.19.0",
|
|
96
|
-
"@types/react": "^18.3.23",
|
|
97
|
-
"@types/react-date-range": "^1.4.9",
|
|
98
|
-
"@types/react-datepicker": "^6.2.0",
|
|
99
|
-
"@types/react-dom": "^18.3.7",
|
|
100
|
-
"@types/react-slick": "^0.23.13",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
102
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
103
|
-
"@vanilla-extract/css-utils": "^0.1.4",
|
|
104
|
-
"@vanilla-extract/recipes": "^0.5.5",
|
|
105
|
-
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
106
|
-
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
107
|
-
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
108
|
-
"eslint": "^8.57.1",
|
|
109
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
110
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
111
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
-
"glob": "^10.4.5",
|
|
113
|
-
"husky": "^9.1.7",
|
|
114
|
-
"next": "^14.1.4",
|
|
115
|
-
"prettier": "3.2.5",
|
|
116
|
-
"react": "^18.3.1",
|
|
117
|
-
"react-dom": "^18.3.1",
|
|
118
|
-
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
119
|
-
"rollup-plugin-svg-import": "^3.0.0",
|
|
120
|
-
"rollup-plugin-svgo": "^2.0.0",
|
|
121
|
-
"storybook": "^8.4.7",
|
|
122
|
-
"typescript": "^5.7.2",
|
|
123
|
-
"typescript-plugin-css-modules": "^5.1.0",
|
|
124
|
-
"vite": "^5.4.11",
|
|
125
|
-
"vite-plugin-dts": "^3.9.1",
|
|
126
|
-
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
127
|
-
"vite-plugin-setting-css-module": "^1.1.4",
|
|
128
|
-
"vite-tsconfig-paths": "^4.3.2"
|
|
129
|
-
},
|
|
130
|
-
"main": "index.js",
|
|
131
|
-
"directories": {
|
|
132
|
-
"lib": "lib"
|
|
133
|
-
},
|
|
134
|
-
"author": "axos-web-dev",
|
|
135
|
-
"license": "ISC"
|
|
136
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@axos-web-dev/shared-components",
|
|
3
|
+
"description": "Axos shared components library for web.",
|
|
4
|
+
"version": "1.0.100-dev.57",
|
|
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
|
+
"@ts-stack/markdown": "^1.5.0",
|
|
39
|
+
"@types/iframe-resizer": "3.5.13",
|
|
40
|
+
"@ujet/websdk-headless": "^3.41.4",
|
|
41
|
+
"@vanilla-extract/css": "^1.16.1",
|
|
42
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
43
|
+
"antd": "^5.22.5",
|
|
44
|
+
"clsx": "^2.1.1",
|
|
45
|
+
"framer-motion": "^12.9.2",
|
|
46
|
+
"iframe-resizer": "^3.6.6",
|
|
47
|
+
"lodash": "^4.17.21",
|
|
48
|
+
"moment": "^2.30.1",
|
|
49
|
+
"next-safe-action": "^8.0.2",
|
|
50
|
+
"react-date-picker": "^11.0.0",
|
|
51
|
+
"react-date-range": "^2.0.1",
|
|
52
|
+
"react-hook-form": "^7.54.2",
|
|
53
|
+
"react-markdown": "^9.1.0",
|
|
54
|
+
"react-popper": "^2.3.0",
|
|
55
|
+
"react-slick": "^0.30.2",
|
|
56
|
+
"react-use": "^17.6.0",
|
|
57
|
+
"react-wrap-balancer": "^1.1.1",
|
|
58
|
+
"remark-gfm": "^4.0.1",
|
|
59
|
+
"rsuite": "^5.75.0",
|
|
60
|
+
"slick-carousel": "^1.8.1",
|
|
61
|
+
"typed-css-modules": "^0.9.1",
|
|
62
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
63
|
+
"zod": "^3.24.1",
|
|
64
|
+
"zustand": "^4.5.5"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
68
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
69
|
+
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
70
|
+
"next": "^14.1.4",
|
|
71
|
+
"react": "^18.2.0",
|
|
72
|
+
"react-date-range": "^2.0.1",
|
|
73
|
+
"react-dom": "^18.2.0",
|
|
74
|
+
"react-popper": "^2.3.0",
|
|
75
|
+
"react-slick": "^0.30.2",
|
|
76
|
+
"slick-carousel": "^1.8.1"
|
|
77
|
+
},
|
|
78
|
+
"devDependencies": {
|
|
79
|
+
"@chromatic-com/storybook": "^1.9.0",
|
|
80
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
81
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
82
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
83
|
+
"@storybook/addon-links": "^8.4.7",
|
|
84
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
85
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
86
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
87
|
+
"@storybook/blocks": "^8.4.7",
|
|
88
|
+
"@storybook/react": "^8.6.14",
|
|
89
|
+
"@storybook/react-vite": "^8.4.7",
|
|
90
|
+
"@storybook/test": "^8.6.14",
|
|
91
|
+
"@svgr/core": "^8.1.0",
|
|
92
|
+
"@svgr/plugin-prettier": "^8.1.0",
|
|
93
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
94
|
+
"@types/lodash": "^4.17.17",
|
|
95
|
+
"@types/node": "^20.19.0",
|
|
96
|
+
"@types/react": "^18.3.23",
|
|
97
|
+
"@types/react-date-range": "^1.4.9",
|
|
98
|
+
"@types/react-datepicker": "^6.2.0",
|
|
99
|
+
"@types/react-dom": "^18.3.7",
|
|
100
|
+
"@types/react-slick": "^0.23.13",
|
|
101
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
102
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
103
|
+
"@vanilla-extract/css-utils": "^0.1.4",
|
|
104
|
+
"@vanilla-extract/recipes": "^0.5.5",
|
|
105
|
+
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
106
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
107
|
+
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
108
|
+
"eslint": "^8.57.1",
|
|
109
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
110
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
111
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
+
"glob": "^10.4.5",
|
|
113
|
+
"husky": "^9.1.7",
|
|
114
|
+
"next": "^14.1.4",
|
|
115
|
+
"prettier": "3.2.5",
|
|
116
|
+
"react": "^18.3.1",
|
|
117
|
+
"react-dom": "^18.3.1",
|
|
118
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
119
|
+
"rollup-plugin-svg-import": "^3.0.0",
|
|
120
|
+
"rollup-plugin-svgo": "^2.0.0",
|
|
121
|
+
"storybook": "^8.4.7",
|
|
122
|
+
"typescript": "^5.7.2",
|
|
123
|
+
"typescript-plugin-css-modules": "^5.1.0",
|
|
124
|
+
"vite": "^5.4.11",
|
|
125
|
+
"vite-plugin-dts": "^3.9.1",
|
|
126
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
127
|
+
"vite-plugin-setting-css-module": "^1.1.4",
|
|
128
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
129
|
+
},
|
|
130
|
+
"main": "index.js",
|
|
131
|
+
"directories": {
|
|
132
|
+
"lib": "lib"
|
|
133
|
+
},
|
|
134
|
+
"author": "axos-web-dev",
|
|
135
|
+
"license": "ISC"
|
|
136
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../assets/Chatbot/AnimatedGradientBorder.css';import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
var angle = "var(--angle)";
|
|
7
|
-
var gradientBorder = "ic6iil1";
|
|
8
|
-
var gradientFocus = "ic6iil2";
|
|
9
|
-
export {
|
|
10
|
-
angle,
|
|
11
|
-
gradientBorder,
|
|
12
|
-
gradientFocus
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { MessageResponse as BaseMessageResponse, HumanAgent, VirtualAgent } from '@ujet/websdk-headless';
|
|
3
|
-
|
|
4
|
-
interface MessageResponse extends BaseMessageResponse {
|
|
5
|
-
to_agent?: HumanAgent;
|
|
6
|
-
}
|
|
7
|
-
interface ChatbotMessageProps {
|
|
8
|
-
msg: MessageResponse;
|
|
9
|
-
showAvatar?: boolean;
|
|
10
|
-
showName?: boolean;
|
|
11
|
-
virtualAgent?: VirtualAgent | null;
|
|
12
|
-
onCancelEndChat?: () => void;
|
|
13
|
-
onSend?: (content: string) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const ChatbotMessage: FC<ChatbotMessageProps>;
|
|
16
|
-
export {};
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useEffect } from "react";
|
|
4
|
-
import ReactMarkdown from "react-markdown";
|
|
5
|
-
import remarkGfm from "remark-gfm";
|
|
6
|
-
import { vars } from "../themes/axos.css.js";
|
|
7
|
-
import '../assets/themes/victorie.css';import '../assets/themes/ufb.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
/* empty css */
|
|
11
|
-
import clsx from "clsx";
|
|
12
|
-
import { shimmerText, notificationStyle, endChatButtonStyle, messageStyle, user_msg, agent_msg, inline_button_wrapper, inline_button } from "./ChatWindow.css.js";
|
|
13
|
-
function timeAgo(date) {
|
|
14
|
-
const seconds = Math.floor(((/* @__PURE__ */ new Date()).getTime() - date.getTime()) / 1e3);
|
|
15
|
-
if (seconds < 60) return "Just now";
|
|
16
|
-
return new Date(date).toLocaleTimeString([], {
|
|
17
|
-
hour: "2-digit",
|
|
18
|
-
minute: "2-digit"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
const ChatbotMessage = ({
|
|
22
|
-
msg,
|
|
23
|
-
showAvatar,
|
|
24
|
-
showName,
|
|
25
|
-
virtualAgent,
|
|
26
|
-
onCancelEndChat,
|
|
27
|
-
onSend
|
|
28
|
-
}) => {
|
|
29
|
-
const [timeText, setTimeText] = useState(timeAgo(msg.$timestamp));
|
|
30
|
-
useEffect(() => {
|
|
31
|
-
const interval = setInterval(() => {
|
|
32
|
-
setTimeText(timeAgo(msg.$timestamp));
|
|
33
|
-
}, 3e4);
|
|
34
|
-
return () => clearInterval(interval);
|
|
35
|
-
}, [msg.$timestamp]);
|
|
36
|
-
if (msg.$sid === "typing-1") {
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
className: clsx(),
|
|
41
|
-
style: {
|
|
42
|
-
textAlign: "left",
|
|
43
|
-
alignSelf: "flex-start",
|
|
44
|
-
color: "#1e3860",
|
|
45
|
-
borderRadius: 16,
|
|
46
|
-
padding: "8px 8px",
|
|
47
|
-
maxWidth: "80%",
|
|
48
|
-
marginBottom: 2
|
|
49
|
-
},
|
|
50
|
-
children: /* @__PURE__ */ jsx(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
style: {
|
|
54
|
-
fontSize: 14,
|
|
55
|
-
display: "flex",
|
|
56
|
-
flexDirection: "column",
|
|
57
|
-
gap: 4
|
|
58
|
-
},
|
|
59
|
-
children: /* @__PURE__ */ jsx("p", { className: shimmerText, children: "AI thinking..." })
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
-
msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationStarted" && /* @__PURE__ */ jsx("div", { className: notificationStyle, children: "We are connecting you with a human agent..." }, msg.$index),
|
|
67
|
-
msg.type == "noti" && msg.$userType == "system" && msg.event == "memberLeft" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
|
|
68
|
-
/* @__PURE__ */ jsx("strong", { children: "Virtual Agent" }),
|
|
69
|
-
" just left the conversation."
|
|
70
|
-
] }, msg.$index),
|
|
71
|
-
msg.type == "noti" && msg.$userType == "system" && msg.event == "escalationAccepted" && /* @__PURE__ */ jsxs("div", { className: notificationStyle, children: [
|
|
72
|
-
"You are now connected with a",
|
|
73
|
-
" ",
|
|
74
|
-
msg.to_agent ? /* @__PURE__ */ jsx("strong", { children: msg?.to_agent?.name }) : "an agent"
|
|
75
|
-
] }, msg.$index),
|
|
76
|
-
msg.type == "noti" && msg.$userType == "virtual_agent" && msg.event == "escalationDeflected" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
77
|
-
/* @__PURE__ */ jsxs(
|
|
78
|
-
"div",
|
|
79
|
-
{
|
|
80
|
-
className: notificationStyle,
|
|
81
|
-
style: { fontSize: 12 },
|
|
82
|
-
children: [
|
|
83
|
-
"Our chat team is available weekdays, 8am-5pm, except federal bank holidays. For immediate assistance you can reach out to us at",
|
|
84
|
-
" ",
|
|
85
|
-
/* @__PURE__ */ jsx("a", { href: "tel:1-888-502-2967", children: "1-888-502-2967" }),
|
|
86
|
-
"."
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
msg.$index
|
|
90
|
-
),
|
|
91
|
-
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onCancelEndChat, children: "End Chat" }) })
|
|
92
|
-
] }),
|
|
93
|
-
["text", "markdown_template", "markdown"].includes(msg.type) && /* @__PURE__ */ jsx(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
className: clsx(
|
|
97
|
-
messageStyle,
|
|
98
|
-
msg.$userType == "end_user" ? user_msg : agent_msg
|
|
99
|
-
),
|
|
100
|
-
children: /* @__PURE__ */ jsxs(
|
|
101
|
-
"div",
|
|
102
|
-
{
|
|
103
|
-
style: {
|
|
104
|
-
fontSize: 14,
|
|
105
|
-
display: "flex",
|
|
106
|
-
flexDirection: "column",
|
|
107
|
-
gap: 4
|
|
108
|
-
},
|
|
109
|
-
children: [
|
|
110
|
-
msg.$userType == "virtual_agent" && /* @__PURE__ */ jsxs(
|
|
111
|
-
"div",
|
|
112
|
-
{
|
|
113
|
-
style: {
|
|
114
|
-
display: "flex",
|
|
115
|
-
alignItems: "center",
|
|
116
|
-
gap: "8px"
|
|
117
|
-
},
|
|
118
|
-
children: [
|
|
119
|
-
showAvatar && /* @__PURE__ */ jsx(
|
|
120
|
-
"img",
|
|
121
|
-
{
|
|
122
|
-
width: 24,
|
|
123
|
-
height: 24,
|
|
124
|
-
src: virtualAgent?.avatar_url,
|
|
125
|
-
alt: "agent avatar"
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
showName && /* @__PURE__ */ jsx("strong", { children: virtualAgent?.name })
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
msg.$userType != "end_user" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
133
|
-
ReactMarkdown,
|
|
134
|
-
{
|
|
135
|
-
remarkPlugins: [[remarkGfm, { singleTilde: false }]],
|
|
136
|
-
components: {
|
|
137
|
-
p: ({ ...props }) => /* @__PURE__ */ jsx(
|
|
138
|
-
"p",
|
|
139
|
-
{
|
|
140
|
-
style: { margin: 0, fontSize: "inherit" },
|
|
141
|
-
title: new Date(msg.$timestamp).toLocaleTimeString([], {
|
|
142
|
-
hour: "2-digit",
|
|
143
|
-
minute: "2-digit"
|
|
144
|
-
}),
|
|
145
|
-
...props
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
},
|
|
149
|
-
children: msg.content
|
|
150
|
-
}
|
|
151
|
-
) }) : /* @__PURE__ */ jsx(
|
|
152
|
-
"div",
|
|
153
|
-
{
|
|
154
|
-
title: new Date(msg.$timestamp).toLocaleTimeString([], {
|
|
155
|
-
hour: "2-digit",
|
|
156
|
-
minute: "2-digit"
|
|
157
|
-
}),
|
|
158
|
-
children: msg.content
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
},
|
|
165
|
-
msg.$index
|
|
166
|
-
),
|
|
167
|
-
msg.type == "inline_button" && Array.isArray(msg.buttons) && msg.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: inline_button_wrapper, children: msg.buttons.length !== 0 && Array.isArray(msg.buttons) && msg.buttons.map((button, index) => {
|
|
168
|
-
return /* @__PURE__ */ jsx(
|
|
169
|
-
"button",
|
|
170
|
-
{
|
|
171
|
-
className: inline_button,
|
|
172
|
-
onClick: () => {
|
|
173
|
-
onSend?.(button?.title);
|
|
174
|
-
},
|
|
175
|
-
children: button.title
|
|
176
|
-
},
|
|
177
|
-
index
|
|
178
|
-
);
|
|
179
|
-
}) }),
|
|
180
|
-
msg.event == "chatEnded" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
181
|
-
/* @__PURE__ */ jsxs(
|
|
182
|
-
"div",
|
|
183
|
-
{
|
|
184
|
-
title: (/* @__PURE__ */ new Date()).toLocaleString(),
|
|
185
|
-
style: {
|
|
186
|
-
fontSize: 12,
|
|
187
|
-
color: "#888",
|
|
188
|
-
marginBottom: 4,
|
|
189
|
-
textAlign: "center"
|
|
190
|
-
},
|
|
191
|
-
children: [
|
|
192
|
-
"Thank you for chatting!",
|
|
193
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
194
|
-
" This conversation has ended."
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
/* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginBottom: 12 }, children: /* @__PURE__ */ jsx("button", { className: endChatButtonStyle, onClick: onCancelEndChat, children: "End Chat" }) })
|
|
199
|
-
] }),
|
|
200
|
-
msg.type == "text" && /* @__PURE__ */ jsx(
|
|
201
|
-
"div",
|
|
202
|
-
{
|
|
203
|
-
style: {
|
|
204
|
-
textAlign: msg.$userType === "end_user" ? "right" : "left",
|
|
205
|
-
fontSize: 12,
|
|
206
|
-
color: vars.chatbot.window.timestampColor
|
|
207
|
-
},
|
|
208
|
-
children: timeText
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
] });
|
|
212
|
-
};
|
|
213
|
-
export {
|
|
214
|
-
ChatbotMessage
|
|
215
|
-
};
|