@lendi/navbar 5.3.12 → 5.4.2-beta0
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/CHANGELOG.md +19 -0
- package/dist/cjs/MultiNavbar/components/MultiOptions/index.js +7 -2
- package/dist/cjs/MultiNavbar/components/MultiOptions/index.js.map +1 -1
- package/dist/cjs/shared/components/CTA/LogoutComponent/DropdownMenu/index.js +3 -4
- package/dist/cjs/shared/components/CTA/LogoutComponent/DropdownMenu/index.js.map +1 -1
- package/dist/cjs/shared/components/CTA/LogoutComponent/index.js +7 -2
- package/dist/cjs/shared/components/CTA/LogoutComponent/index.js.map +1 -1
- package/dist/cjs/shared/components/CTA/index.style.js +47 -0
- package/dist/cjs/shared/components/CTA/index.style.js.map +1 -0
- package/dist/cjs/shared/hooks/useEmailOpenChat.js +12 -9
- package/dist/cjs/shared/hooks/useEmailOpenChat.js.map +1 -1
- package/dist/types/playground/style.d.ts +4 -0
- package/dist/types/shared/components/CTA/index.style.d.ts +23 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog - @lendi/navbar
|
|
2
2
|
|
|
3
|
+
## 5.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 16cdee87: Add SSR compatability to @lendi/navbar and @lendi/comm-panel
|
|
8
|
+
- Updated dependencies [16cdee87]
|
|
9
|
+
- @lendi/comm-panel@9.3.1
|
|
10
|
+
|
|
11
|
+
## 5.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- b1fc331d: - Add open new tab link with customerid in url query
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [b1fc331d]
|
|
20
|
+
- @lendi/comm-panel@9.3.0
|
|
21
|
+
|
|
3
22
|
## 5.3.12
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -16,10 +16,15 @@ var MenuOptions = function (props) {
|
|
|
16
16
|
var _a = React.useState(''), currentSelected = _a[0], setCurrentSelected = _a[1];
|
|
17
17
|
var displayPanel = React.useRef(null);
|
|
18
18
|
var selectedItem = menuData_1.MULTI_MENU_OPTIONS.find(function (menuItem) { return menuItem.label === currentSelected; });
|
|
19
|
+
var hasWindow = typeof window !== 'undefined';
|
|
19
20
|
React.useEffect(function () {
|
|
20
|
-
|
|
21
|
+
if (hasWindow) {
|
|
22
|
+
window.addEventListener('mousedown', closeDisplayPanel);
|
|
23
|
+
}
|
|
21
24
|
return function () {
|
|
22
|
-
|
|
25
|
+
if (hasWindow) {
|
|
26
|
+
window.removeEventListener('mousedown', closeDisplayPanel);
|
|
27
|
+
}
|
|
23
28
|
};
|
|
24
29
|
});
|
|
25
30
|
var closeDisplayPanel = function (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/MultiNavbar/components/MultiOptions/index.tsx"],"names":[],"mappings":";;AAAA,wEAAmE;AACnE,qDAA6D;AAC7D,mDAA+C;AAC/C,4DAAwD;AACxD,6BAA+B;AAC/B,4DAA+E;AAC/E,uDAAyF;AACzF,sDAAmE;AACnE,6CAgBuB;AAEvB,IAAI,YAAY,GAAW,EAAE,CAAC;AAQ9B,IAAM,WAAW,GAAG,UAAC,KAAuB;IAClC,IAAA,kEAAa,CAA4B;IACzC,IAAA,uCAAe,EAAE,qBAAM,EAAE,+BAAW,CAAW;IACjD,IAAA,uBAAkE,EAAjE,uBAAe,EAAE,0BAAgD,CAAC;IACzE,IAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IACxD,IAAM,YAAY,GAAG,6BAAkB,CAAC,IAAI,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,KAAK,KAAK,eAAe,EAAlC,CAAkC,CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index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CAAC,KAAK,CAAC,CAAC;KAC3B;AACH,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -24,8 +24,6 @@ exports.DropdownMenu = function () {
|
|
|
24
24
|
});
|
|
25
25
|
}, href: "" + path + constants_1.ROUTE_APPLICATIONS, "aria-label": constants_1.LABEL_APPLICATIONS }, constants_1.LABEL_APPLICATIONS),
|
|
26
26
|
dashboardURL && (React.createElement(style_1.LinkWrapper, { color: "shade.700", onClick: function () {
|
|
27
|
-
session.logout();
|
|
28
|
-
onLogout();
|
|
29
27
|
Analytics_1.analytics({
|
|
30
28
|
event_name: constants_1.LABEL_DASHBOARD,
|
|
31
29
|
action: Analytics_1.ACTION_CLICK,
|
|
@@ -33,7 +31,7 @@ exports.DropdownMenu = function () {
|
|
|
33
31
|
category: segment_tracking_1.EventCategory.NAVBAR,
|
|
34
32
|
});
|
|
35
33
|
}, href: "" + path + dashboardURL, "aria-label": constants_1.LABEL_DASHBOARD }, constants_1.LABEL_DASHBOARD)),
|
|
36
|
-
React.createElement(style_1.LinkWrapper, { color: "shade.700", onClick: function () {
|
|
34
|
+
!isDomain && (React.createElement(style_1.LinkWrapper, { color: "shade.700", onClick: function () {
|
|
37
35
|
Analytics_1.analytics({
|
|
38
36
|
event_name: constants_1.LABEL_PROPERTY_REPORT,
|
|
39
37
|
action: Analytics_1.ACTION_CLICK,
|
|
@@ -42,8 +40,9 @@ exports.DropdownMenu = function () {
|
|
|
42
40
|
});
|
|
43
41
|
}, href: "" + path + constants_1.ROUTE_PROPERTY_REPORT, target: "_blank", "aria-label": constants_1.LABEL_PROPERTY_REPORT },
|
|
44
42
|
constants_1.LABEL_PROPERTY_REPORT,
|
|
45
|
-
React.createElement(style_1.LaunchIcon, { width: "18px", height: "18px" })),
|
|
43
|
+
React.createElement(style_1.LaunchIcon, { width: "18px", height: "18px" }))),
|
|
46
44
|
React.createElement(style_1.LinkWrapper, { color: "shade.700", onClick: function () {
|
|
45
|
+
session.logout();
|
|
47
46
|
onLogout();
|
|
48
47
|
Analytics_1.analytics({
|
|
49
48
|
event_name: constants_1.LABEL_LOG_OUT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/shared/components/CTA/LogoutComponent/DropdownMenu/index.tsx"],"names":[],"mappings":";;AAAA,6BAA+B;AAC/B,iCAAiF;AACjF,4DAAyE;AACzE,mDAS+B;AAC/B,qCAA4C;AAC5C,gDAA+C;AAC/C,4DAAwD;AACxD,gDAAgE;AAEnD,QAAA,YAAY,GAAG;IAC1B,IAAM,QAAQ,GAAG,iCAAoB,EAAE,KAAK,kBAAK,CAAC,MAAM,CAAC;IACzD,IAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,uBAAW,CAAC,CAAC,CAAC,sBAAU,CAAC;IAEjD,IAAM,OAAO,GAAG,uBAAU,EAAE,CAAC;IACvB,IAAA,gCAA8C,EAA5C,8BAAY,EAAE,sBAA8B,CAAC;IAErD,OAAO,CACL,oBAAC,qBAAa;QACZ,oBAAC,sBAAc,qBAA4B;QAC3C,oBAAC,mBAAW,IACV,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE;gBACP,qBAAS,CAAC;oBACR,UAAU,EAAE,8BAAkB;oBAC9B,MAAM,EAAE,wBAAY;oBACpB,KAAK,EAAE,8BAAkB;oBACzB,QAAQ,EAAE,gCAAa,CAAC,MAAM;iBAC/B,CAAC,CAAC;YACL,CAAC,EACD,IAAI,EAAE,KAAG,IAAI,GAAG,8BAAoB,gBACxB,8BAAkB,IAE7B,8BAAkB,CACP;QACb,YAAY,IAAI,CACf,oBAAC,mBAAW,IACV,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE;gBACP,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/shared/components/CTA/LogoutComponent/DropdownMenu/index.tsx"],"names":[],"mappings":";;AAAA,6BAA+B;AAC/B,iCAAiF;AACjF,4DAAyE;AACzE,m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iCAAqB;oBAC5B,QAAQ,EAAE,gCAAa,CAAC,MAAM;iBAC/B,CAAC,CAAC;YACL,CAAC,EACD,IAAI,EAAE,KAAG,IAAI,GAAG,iCAAuB,EACvC,MAAM,EAAC,QAAQ,gBACH,iCAAqB;YAEhC,iCAAqB;YACtB,oBAAC,kBAAU,IAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAG,CAC7B,CACf;QACD,oBAAC,mBAAW,IACV,KAAK,EAAC,WAAW,EACjB,OAAO,EAAE;gBACP,OAAO,CAAC,MAAM,EAAE,CAAC;gBACjB,QAAS,EAAE,CAAC;gBACZ,qBAAS,CAAC;oBACR,UAAU,EAAE,yBAAa;oBACzB,MAAM,EAAE,wBAAY;oBACpB,KAAK,EAAE,yBAAa;oBACpB,QAAQ,EAAE,gCAAa,CAAC,MAAM;iBAC/B,CAAC,CAAC;YACL,CAAC,gBACW,yBAAa,IAExB,yBAAa,CACF,CACA,CACjB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -12,15 +12,20 @@ exports.LogoutComponent = function () {
|
|
|
12
12
|
var isTransparent = navbar_base_1.useNavbarBaseContext().isTransparent;
|
|
13
13
|
var _a = React.useState(false), isLogoutDisplay = _a[0], setIsLogoutDisplay = _a[1];
|
|
14
14
|
var logoutPanel = React.useRef();
|
|
15
|
+
var hasWindow = typeof window !== 'undefined';
|
|
15
16
|
var closeLogoutPanel = function (e) {
|
|
16
17
|
if (logoutPanel && logoutPanel.current && !logoutPanel.current.contains(e.target)) {
|
|
17
18
|
setIsLogoutDisplay(false);
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
21
|
React.useEffect(function () {
|
|
21
|
-
|
|
22
|
+
if (hasWindow) {
|
|
23
|
+
window.addEventListener('mousedown', closeLogoutPanel);
|
|
24
|
+
}
|
|
22
25
|
return function () {
|
|
23
|
-
|
|
26
|
+
if (hasWindow) {
|
|
27
|
+
window.removeEventListener('mousedown', closeLogoutPanel);
|
|
28
|
+
}
|
|
24
29
|
};
|
|
25
30
|
});
|
|
26
31
|
return (React.createElement("div", { ref: logoutPanel },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/shared/components/CTA/LogoutComponent/index.tsx"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,qDAA6D;AAC7D,6BAA+B;AAC/B,+CAA8C;AAC9C,yDAAsE;AACtE,iCAAoC;AACpC,gDAAwD;AACxD,4DAAwD;AAE3C,QAAA,eAAe,GAAG;IACrB,IAAA,kEAAa,CAA4B;IAC3C,IAAA,0BAA6D,EAA5D,uBAAe,EAAE,0BAA2C,CAAC;IACpE,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAA8C,CAAC;IAC/E,IAAM,gBAAgB,GAAG,UAAC,CAAa;QACrC,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAqB,CAAC,EAAE;YAChG,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAC3B;IACH,CAAC,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC;QACd,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/shared/components/CTA/LogoutComponent/index.tsx"],"names":[],"mappings":";;AAAA,oDAA+C;AAC/C,qDAA6D;AAC7D,6BAA+B;AAC/B,+CAA8C;AAC9C,yDAAsE;AACtE,iCAAoC;AACpC,gDAAwD;AACxD,4DAAwD;AAE3C,QAAA,eAAe,GAAG;IACrB,IAAA,kEAAa,CAA4B;IAC3C,IAAA,0BAA6D,EAA5D,uBAAe,EAAE,0BAA2C,CAAC;IACpE,IAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAA8C,CAAC;IAC/E,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;IAChD,IAAM,gBAAgB,GAAG,UAAC,CAAa;QACrC,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAqB,CAAC,EAAE;YAChG,kBAAkB,CAAC,KAAK,CAAC,CAAC;SAC3B;IACH,CAAC,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,SAAS,EAAE;YACb,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;SACxD;QACD,OAAO;YACL,IAAI,SAAS,EAAE;gBACb,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;aAC3D;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,WAAW;QACnB,oBAAC,iBAAS,IACR,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,EAClD,OAAO,EAAE;gBACP,kBAAkB,CAAC,CAAC,eAAe,CAAC,CAAC;gBACrC,qBAAS,CAAC;oBACR,UAAU,EAAE,8BAAkB;oBAC9B,MAAM,EAAE,wBAAY;oBACpB,KAAK,EAAE,8BAAkB;oBACzB,QAAQ,EAAE,gCAAa,CAAC,MAAM;iBAC/B,CAAC,CAAC;YACL,CAAC,gBACW,8BAAkB,EAC9B,IAAI,EAAE,kBAAQ,GACd;QACD,eAAe,IAAI,oBAAC,2BAAY,OAAG,CAChC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var breakpoint_1 = require("@lendi-ui/breakpoint");
|
|
8
|
+
var button_1 = require("@lendi-ui/button");
|
|
9
|
+
var color_1 = require("@lendi-ui/color");
|
|
10
|
+
var depth_1 = require("@lendi-ui/depth");
|
|
11
|
+
var ExitToApp_1 = require("@lendi-ui/icon/ExitToApp");
|
|
12
|
+
var UnreadMessage_1 = require("@lendi-ui/icon/UnreadMessage");
|
|
13
|
+
var spacing_1 = require("@lendi-ui/spacing");
|
|
14
|
+
var theme_1 = require("@lendi-ui/theme");
|
|
15
|
+
var typography_1 = require("@lendi-ui/typography");
|
|
16
|
+
var utils_1 = require("@lendi-ui/utils");
|
|
17
|
+
var styled_components_1 = require("styled-components");
|
|
18
|
+
exports.MobileActions = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n ", ";\n .noHover {\n ", " :hover {\n box-shadow: none;\n }\n }\n"], ["\n display: flex;\n ",
|
|
19
|
+
";\n .noHover {\n ", " :hover {\n box-shadow: none;\n }\n }\n"])), breakpoint_1.gte('desktop')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none;\n "], ["\n display: none;\n "]))), spacing_1.mr('nil'));
|
|
20
|
+
exports.DesktopActions = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n ", ";\n"], ["\n display: flex;\n ",
|
|
21
|
+
";\n"])), breakpoint_1.between('mobile', 'desktop')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: none;\n "], ["\n display: none;\n "]))));
|
|
22
|
+
exports.TalkExpertAction = styled_components_1.default(button_1.Button)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n width: 100%;\n ", " ", ";\n min-width: 180px;\n ", "\n"], ["\n width: 100%;\n ", " ",
|
|
23
|
+
";\n min-width: 180px;\n ",
|
|
24
|
+
"\n"])), spacing_1.mr('sm'), breakpoint_1.between('mobile', 'desktop')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: none;\n "], ["\n border: none;\n "]))), function (_a) {
|
|
25
|
+
var bigLabelAccomodate = _a.bigLabelAccomodate;
|
|
26
|
+
return bigLabelAccomodate && styled_components_1.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n min-width: 202px;\n "], ["\n min-width: 202px;\n "])));
|
|
27
|
+
});
|
|
28
|
+
exports.TalkExpertActionMobile = styled_components_1.default(button_1.Button)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n ", ";\n min-width: 102px;\n padding: 0;\n line-height: 1.33;\n ", "\n"], ["\n ", "\n ",
|
|
29
|
+
";\n min-width: 102px;\n padding: 0;\n line-height: 1.33;\n ",
|
|
30
|
+
"\n"])), spacing_1.mr('sm'), breakpoint_1.between('mobile', 'desktop')(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border: none;\n "], ["\n border: none;\n "]))), function (_a) {
|
|
31
|
+
var isContinue = _a.isContinue;
|
|
32
|
+
return isContinue && styled_components_1.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n min-width: 90px;\n "], ["\n min-width: 90px;\n "])));
|
|
33
|
+
});
|
|
34
|
+
exports.SecondaryAction = styled_components_1.default(button_1.Button)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n min-width: 180px;\n ", "\n word-wrap: break-word;\n"], ["\n min-width: 180px;\n ",
|
|
35
|
+
"\n word-wrap: break-word;\n"])), function (_a) {
|
|
36
|
+
var bigLabelAccomodate = _a.bigLabelAccomodate;
|
|
37
|
+
return bigLabelAccomodate && styled_components_1.css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n min-width: 202px;\n "], ["\n min-width: 202px;\n "])));
|
|
38
|
+
});
|
|
39
|
+
exports.SecondaryActionMobile = styled_components_1.default(button_1.Button)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n width: 90px;\n padding: 0;\n"], ["\n width: 90px;\n padding: 0;\n"])));
|
|
40
|
+
exports.LogoutWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n position: absolute;\n right: 5px;\n top: 56px;\n ", "\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n ", " ", " ", " ", "\n"], ["\n position: absolute;\n right: 5px;\n top: 56px;\n ", "\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: ", ";\n ", " ", " ", " ", "\n"])), breakpoint_1.gte('desktop')(templateObject_14 || (templateObject_14 = __makeTemplateObject(["top: 70px;"], ["top: 70px;"]))), theme_1.select('borderRadius'), spacing_1.px('md'), spacing_1.py('sm'), depth_1.depth(2), color_1.bg('shade.0'));
|
|
41
|
+
exports.ExitToAppWrapper = styled_components_1.default(ExitToApp_1.default)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), spacing_1.mr('sm'));
|
|
42
|
+
exports.LogoutLinkWrapper = styled_components_1.default(typography_1.Link)(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n overflow: hidden;\n text-decoration: none;\n font-weight: normal;\n margin-right: 0;\n"], ["\n overflow: hidden;\n text-decoration: none;\n font-weight: normal;\n margin-right: 0;\n"])));
|
|
43
|
+
exports.DesktopLogoutWrapper = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), utils_1.display({ mobile: 'none', desktop: 'block' }));
|
|
44
|
+
exports.KebabMenu = styled_components_1.default(button_1.IconButton)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), spacing_1.ml('xxxs'));
|
|
45
|
+
exports.UnreadMessageWrapper = styled_components_1.default(UnreadMessage_1.default)(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n margin-top: -0.4em;\n margin-right: 0.5em;\n margin-left: -0.5em;\n"], ["\n margin-top: -0.4em;\n margin-right: 0.5em;\n margin-left: -0.5em;\n"])));
|
|
46
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20;
|
|
47
|
+
//# sourceMappingURL=index.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.style.js","sourceRoot":"","sources":["../../../../../src/shared/components/CTA/index.style.tsx"],"names":[],"mappings":";;;;;;AAAA,mDAAoD;AACpD,2CAAsD;AACtD,yCAAqC;AACrC,yCAAwC;AACxC,sDAAiD;AACjD,8DAAyD;AACzD,6CAAmD;AACnD,yCAAyC;AACzC,mDAA4C;AAC5C,yCAA0C;AAC1C,uDAAgD;AAMnC,QAAA,aAAa,GAAG,2BAAM,CAAC,GAAG,wKAAA,wBAEnC;IAED,uBAEG,EAAS,kDAId,KARG,gBAAG,CAAC,SAAS,CAAC,6FAAA,0BAEf,MAEG,YAAE,CAAC,KAAK,CAAC,EAIb;AAEW,QAAA,cAAc,GAAG,2BAAM,CAAC,GAAG,kGAAA,wBAEpC;IAED,KACF,KAHG,oBAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,6FAAA,0BAE7B,MACD;AAEW,QAAA,gBAAgB,GAAG,2BAAM,CAAC,eAAM,CAAC,kIAAoB,sBAE9D,EAAQ,GAAI;IAEb,4BAEC;IAIC,IACJ,KATG,YAAE,CAAC,IAAI,CAAC,EAAI,oBAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,4FAAA,yBAEzC,MAEC,UAAC,EAAsB;QAApB,0CAAkB;IACrB,OAAA,kBAAkB,IAClB,uBAAG,oGAAA,iCAEF,IAAA;AAHD,CAGC,EACH;AAMW,QAAA,sBAAsB,GAAG,2BAAM,CAAC,eAAM,CAAC,4JAA4B,MAC5E,EAAQ,MACR;IAED,iEAIC;IAIC,IACJ,KAZG,YAAE,CAAC,IAAI,CAAC,EACR,oBAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,4FAAA,yBAE7B,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@ -4,16 +4,19 @@ var segment_tracking_1 = require("@lendi/segment-tracking");
|
|
|
4
4
|
var React = require("react");
|
|
5
5
|
var Analytics_1 = require("../../utils/Analytics");
|
|
6
6
|
exports.useEmailOpenChat = function (openChatWindow, userGroupHash) {
|
|
7
|
+
var hasWindow = typeof window !== 'undefined';
|
|
7
8
|
React.useEffect(function () {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
if (hasWindow) {
|
|
10
|
+
var queryData = new URLSearchParams(window.location.search);
|
|
11
|
+
var shouldOpenChatWindow = queryData.get('openChatWindow');
|
|
12
|
+
if (userGroupHash && shouldOpenChatWindow) {
|
|
13
|
+
openChatWindow();
|
|
14
|
+
Analytics_1.analytics({
|
|
15
|
+
event_name: 'Chat Opened From Email',
|
|
16
|
+
action: 'Opened From Email',
|
|
17
|
+
category: segment_tracking_1.EventCategory.NAVBAR,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
17
20
|
}
|
|
18
21
|
}, [userGroupHash]);
|
|
19
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEmailOpenChat.js","sourceRoot":"","sources":["../../../../src/shared/hooks/useEmailOpenChat.ts"],"names":[],"mappings":";;AAAA,4DAAwD;AACxD,6BAA+B;AAC/B,mDAAkD;AAErC,QAAA,gBAAgB,GAAG,UAAC,cAA0B,EAAE,aAAsB;IACjF,KAAK,CAAC,SAAS,CAAC;QACd,IAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useEmailOpenChat.js","sourceRoot":"","sources":["../../../../src/shared/hooks/useEmailOpenChat.ts"],"names":[],"mappings":";;AAAA,4DAAwD;AACxD,6BAA+B;AAC/B,mDAAkD;AAErC,QAAA,gBAAgB,GAAG,UAAC,cAA0B,EAAE,aAAsB;IACjF,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;IAEhD,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,SAAS,EAAE;YACb,IAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC9D,IAAM,oBAAoB,GAAG,SAAS,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;YAC7D,IAAI,aAAa,IAAI,oBAAoB,EAAE;gBACzC,cAAc,EAAE,CAAC;gBACjB,qBAAS,CAAC;oBACR,UAAU,EAAE,wBAAwB;oBACpC,MAAM,EAAE,mBAAmB;oBAC3B,QAAQ,EAAE,gCAAa,CAAC,MAAM;iBAC/B,CAAC,CAAC;aACJ;SACF;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Button } from '@lendi-ui/button';
|
|
2
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ButtonWrapper: import("styled-components").StyledComponent<typeof Button, any, {}, never>;
|
|
4
|
+
export declare const ButtonSection: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Button, IconButton } from '@lendi-ui/button';
|
|
3
|
+
import ExitToApp from '@lendi-ui/icon/ExitToApp';
|
|
4
|
+
import UnreadMessage from '@lendi-ui/icon/UnreadMessage';
|
|
5
|
+
interface AccomodateBigLabel {
|
|
6
|
+
bigLabelAccomodate?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const MobileActions: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const DesktopActions: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const TalkExpertAction: import("styled-components").StyledComponent<typeof Button, any, AccomodateBigLabel, never>;
|
|
11
|
+
interface TalkExpertActionMobileProp {
|
|
12
|
+
isContinue?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const TalkExpertActionMobile: import("styled-components").StyledComponent<typeof Button, any, TalkExpertActionMobileProp, never>;
|
|
15
|
+
export declare const SecondaryAction: import("styled-components").StyledComponent<typeof Button, any, AccomodateBigLabel, never>;
|
|
16
|
+
export declare const SecondaryActionMobile: import("styled-components").StyledComponent<typeof Button, any, {}, never>;
|
|
17
|
+
export declare const LogoutWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
export declare const ExitToAppWrapper: import("styled-components").StyledComponent<typeof ExitToApp, any, {}, never>;
|
|
19
|
+
export declare const LogoutLinkWrapper: import("styled-components").StyledComponent<(props: import("@lendi-ui/typography").LinkProps) => JSX.Element, any, {}, never>;
|
|
20
|
+
export declare const DesktopLogoutWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export declare const KebabMenu: import("styled-components").StyledComponent<typeof IconButton, any, {}, never>;
|
|
22
|
+
export declare const UnreadMessageWrapper: import("styled-components").StyledComponent<typeof UnreadMessage, any, {}, never>;
|
|
23
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/navbar",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.2-beta0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@lendi-ui/transition": "^4.0.2",
|
|
41
41
|
"@lendi-ui/typography": "^5.0.0",
|
|
42
42
|
"@lendi-ui/utils": "^4.0.1",
|
|
43
|
-
"@lendi/comm-panel": "9.
|
|
43
|
+
"@lendi/comm-panel": "9.3.1",
|
|
44
44
|
"@lendi/lala-utils": "^9.2.0",
|
|
45
45
|
"@lendi/segment-tracking": "0.10.0",
|
|
46
46
|
"@sentry/browser": "^5.15.0",
|