@lendi/navbar 7.40.1 → 7.40.3

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.
@@ -1454,7 +1454,9 @@ var WithChatView = _ref => {
1454
1454
  var {
1455
1455
  brand
1456
1456
  } = lalaReact.useSession();
1457
- var hasChat = !calculateChatDisabled(brand, otherFlags);
1457
+ // TODO: Need to revisit this logic - as a part of this ticket : https://creditandfinance.atlassian.net/browse/SUBS-1012
1458
+ // Disabling Aussie chat by hardcoding instead relying on FF
1459
+ var hasChat = brand === lalaReact.Brand.Aussie ? false : !calculateChatDisabled(brand, otherFlags);
1458
1460
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1459
1461
  children: [(isCommPanelOpen && !isChatOpen || !enableHistoricalThreads) && /*#__PURE__*/jsxRuntime.jsx(StyledClose, {
1460
1462
  color: "shade.300",
@@ -924,7 +924,7 @@ var _templateObject$9, _templateObject2$4, _templateObject$8, _templateObject2$3
924
924
  displayName: "style__StyledClose",
925
925
  componentId: "lui__sc-qeih4b-0"
926
926
  })([ "position:absolute;" ]), _excluded$a = [ "enableHistoricalThreads" ], WithChatView = _ref => {
927
- var {legacySupport: legacySupport, userType: userType, isOtherUserOnline: isOtherUserOnline, hasNew: hasNew, onException: onException} = _ref, {closeCommPanel: closeCommPanel, isCommPanelOpen: isCommPanelOpen, isChatOpen: isChatOpen, openChat: openChat, teamMember: teamMember, broker: broker, store: store, channelId: channelId, migratedToConversation: migratedToConversation, setSelectedThread: setSelectedThread, applicationId: applicationId, closeChat: closeChat} = chat.useBootstrappedChatState(), _useFlags = launchdarkly.useFlags(), {enableHistoricalThreads: enableHistoricalThreads} = _useFlags, otherFlags = _objectWithoutProperties(_useFlags, _excluded$a), {brand: brand} = lalaReact.useSession(), hasChat = !calculateChatDisabled(brand, otherFlags);
927
+ var {legacySupport: legacySupport, userType: userType, isOtherUserOnline: isOtherUserOnline, hasNew: hasNew, onException: onException} = _ref, {closeCommPanel: closeCommPanel, isCommPanelOpen: isCommPanelOpen, isChatOpen: isChatOpen, openChat: openChat, teamMember: teamMember, broker: broker, store: store, channelId: channelId, migratedToConversation: migratedToConversation, setSelectedThread: setSelectedThread, applicationId: applicationId, closeChat: closeChat} = chat.useBootstrappedChatState(), _useFlags = launchdarkly.useFlags(), {enableHistoricalThreads: enableHistoricalThreads} = _useFlags, otherFlags = _objectWithoutProperties(_useFlags, _excluded$a), {brand: brand} = lalaReact.useSession(), hasChat = brand !== lalaReact.Brand.Aussie && !calculateChatDisabled(brand, otherFlags);
928
928
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
929
929
  children: [ (isCommPanelOpen && !isChatOpen || !enableHistoricalThreads) && jsxRuntime.jsx(StyledClose, {
930
930
  color: "shade.300",
@@ -1421,7 +1421,9 @@ var WithChatView = _ref => {
1421
1421
  var {
1422
1422
  brand
1423
1423
  } = useSession();
1424
- var hasChat = !calculateChatDisabled(brand, otherFlags);
1424
+ // TODO: Need to revisit this logic - as a part of this ticket : https://creditandfinance.atlassian.net/browse/SUBS-1012
1425
+ // Disabling Aussie chat by hardcoding instead relying on FF
1426
+ var hasChat = brand === Brand$1.Aussie ? false : !calculateChatDisabled(brand, otherFlags);
1425
1427
  return /*#__PURE__*/jsxs(Fragment, {
1426
1428
  children: [(isCommPanelOpen && !isChatOpen || !enableHistoricalThreads) && /*#__PURE__*/jsx(StyledClose, {
1427
1429
  color: "shade.300",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lendi/navbar",
3
3
  "access": "restricted",
4
- "version": "7.40.1",
4
+ "version": "7.40.3",
5
5
  "license": "ISC",
6
6
  "source": "src/index.tsx",
7
7
  "main": "dist/navbar.cjs.js",