@axos-web-dev/shared-components 1.0.100-dev.19 → 1.0.100-dev.20
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/Chatbot/useHeadlessChat.js +36 -18
- package/dist/LandingPageHeader/LandingPageHeader.js +13 -7
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +3 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +9 -0
- package/package.json +1 -1
|
@@ -35,10 +35,28 @@ function useHeadlessChat({
|
|
|
35
35
|
await clientRef.current?.finishChat();
|
|
36
36
|
clearMessages();
|
|
37
37
|
clientRef.current?.createChat(
|
|
38
|
-
menuRef.current.menus.find((menu) => menu.name === menuOption)?.id
|
|
38
|
+
menuRef.current.menus.find((menu) => menu.name === menuOption)?.id,
|
|
39
|
+
{
|
|
40
|
+
custom_data: {
|
|
41
|
+
unsigned: {
|
|
42
|
+
facingBrandId: {
|
|
43
|
+
label: "facingBrandId",
|
|
44
|
+
value: `${brandMap.get(projectId) || 1}`
|
|
45
|
+
},
|
|
46
|
+
channel: {
|
|
47
|
+
label: "channel",
|
|
48
|
+
value: "in_web"
|
|
49
|
+
},
|
|
50
|
+
user_auth: {
|
|
51
|
+
label: "user_auth",
|
|
52
|
+
value: "false"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
39
57
|
);
|
|
40
58
|
}
|
|
41
|
-
}, [clearMessages, menuOption]);
|
|
59
|
+
}, [clearMessages, menuOption, projectId]);
|
|
42
60
|
useEffect(() => {
|
|
43
61
|
let messageHandler;
|
|
44
62
|
let chatReadyHandler;
|
|
@@ -74,6 +92,22 @@ function useHeadlessChat({
|
|
|
74
92
|
"channelId:",
|
|
75
93
|
menuRef.current?.menus.find((menu) => menu.name === menuOption)?.id
|
|
76
94
|
);
|
|
95
|
+
const custom_data = {
|
|
96
|
+
unsigned: {
|
|
97
|
+
facingBrandId: {
|
|
98
|
+
label: "facingBrandId",
|
|
99
|
+
value: `${brandMap.get(projectId) || 1}`
|
|
100
|
+
},
|
|
101
|
+
channel: {
|
|
102
|
+
label: "channel",
|
|
103
|
+
value: "in_web"
|
|
104
|
+
},
|
|
105
|
+
user_auth: {
|
|
106
|
+
label: "user_auth",
|
|
107
|
+
value: "false"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
};
|
|
77
111
|
try {
|
|
78
112
|
chatRef.current = await clientRef.current?.loadOngoingChat();
|
|
79
113
|
if (chatRef.current != null) {
|
|
@@ -82,22 +116,6 @@ function useHeadlessChat({
|
|
|
82
116
|
);
|
|
83
117
|
if (debug) console.log("Resumed chatRef:", chatRef.current);
|
|
84
118
|
} else {
|
|
85
|
-
const custom_data = {
|
|
86
|
-
unsigned: {
|
|
87
|
-
facingBrandId: {
|
|
88
|
-
label: "facingBrandId",
|
|
89
|
-
value: brandMap.get(projectId) || 1
|
|
90
|
-
},
|
|
91
|
-
channel: {
|
|
92
|
-
label: "channel",
|
|
93
|
-
value: "in_web"
|
|
94
|
-
},
|
|
95
|
-
user_auth: {
|
|
96
|
-
label: "user_auth",
|
|
97
|
-
value: false
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
119
|
chatRef.current = await clientRef.current?.createChat(
|
|
102
120
|
menuRef.current.menus.find((menu) => menu.name === menuOption)?.id,
|
|
103
121
|
{
|
|
@@ -36,15 +36,21 @@ const LandingPageHeader = ({
|
|
|
36
36
|
["SPB", /* @__PURE__ */ jsx(SvgComponent$8, { height: "100%", width: "100%" })]
|
|
37
37
|
]);
|
|
38
38
|
const isSPBPage = project === "SPB";
|
|
39
|
-
return /* @__PURE__ */ jsx("header", { className: `${lp_theme({ variant })}`, id: `id_${id}`, children: /* @__PURE__ */ jsx(
|
|
40
|
-
"
|
|
39
|
+
return /* @__PURE__ */ jsx("header", { className: `${lp_theme({ variant })}`, id: `id_${id}`, children: /* @__PURE__ */ jsx(
|
|
40
|
+
"div",
|
|
41
41
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
className: `${isSPBPage ? spb_container : lp_container} flex center middle`,
|
|
43
|
+
children: /* @__PURE__ */ jsx(
|
|
44
|
+
"a",
|
|
45
|
+
{
|
|
46
|
+
href: project == "AXI" ? "/invest" : "/",
|
|
47
|
+
className: isSPBPage ? spb_hover : lp_hover,
|
|
48
|
+
"aria-label": alt ?? "axos logo, return to homepage",
|
|
49
|
+
children: website.get(project)
|
|
50
|
+
}
|
|
51
|
+
)
|
|
46
52
|
}
|
|
47
|
-
) })
|
|
53
|
+
) });
|
|
48
54
|
};
|
|
49
55
|
export {
|
|
50
56
|
LandingPageHeader
|
|
@@ -259,6 +259,9 @@ const menuData = {
|
|
|
259
259
|
"Marine Loans Home": findMoreAxosDomains(
|
|
260
260
|
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
261
261
|
),
|
|
262
|
+
"Find The Right Loan": findMoreAxosDomains(
|
|
263
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
264
|
+
),
|
|
262
265
|
"Contact Us": findMoreAxosDomains(
|
|
263
266
|
"{AXOSBANK}/personal/borrow/marine-loans#AXB----Lets-Talk-LVF-for-AXB----Webform"
|
|
264
267
|
)
|
|
@@ -1458,6 +1458,15 @@ function SubNavBar() {
|
|
|
1458
1458
|
children: "Marine Loans"
|
|
1459
1459
|
}
|
|
1460
1460
|
) }),
|
|
1461
|
+
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
1462
|
+
Link,
|
|
1463
|
+
{
|
|
1464
|
+
href: findMoreAxosDomains(
|
|
1465
|
+
"{AXOSBANK}/personal/borrow/marine-loans"
|
|
1466
|
+
),
|
|
1467
|
+
children: "Find The Right Loan"
|
|
1468
|
+
}
|
|
1469
|
+
) }),
|
|
1461
1470
|
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
1462
1471
|
Link,
|
|
1463
1472
|
{
|
package/package.json
CHANGED