@bigbinary/neeto-commons-frontend 2.0.34 → 2.0.35

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/initializers.d.ts CHANGED
@@ -47,7 +47,11 @@ type GlobalPropsType = {
47
47
  [key: string]: any;
48
48
  };
49
49
  authenticated: boolean;
50
- neetoApps: string[];
50
+ neetoApps: {
51
+ name: string;
52
+ description: string;
53
+ url: string
54
+ }[];
51
55
  isOwner: boolean;
52
56
  permissions: string[];
53
57
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -1365,9 +1365,9 @@ var ContactUs = function ContactUs() {
1365
1365
  label: i18next.t("neetoCommons.browserSupport.contactUs.buttonLabel"),
1366
1366
  style: "link",
1367
1367
  onClick: function onClick() {
1368
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
1369
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
1370
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
1368
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
1369
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
1370
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
1371
1371
  }
1372
1372
  })
1373
1373
  }
@@ -4177,9 +4177,9 @@ var FallbackComponent = function FallbackComponent() {
4177
4177
  label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4178
4178
  style: "link",
4179
4179
  onClick: function onClick() {
4180
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
4181
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
4182
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
4180
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
4181
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
4182
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
4183
4183
  }
4184
4184
  })
4185
4185
  }
@@ -91592,9 +91592,9 @@ var Sidebar = function Sidebar(_ref) {
91592
91592
  window.location.href = "/logout";
91593
91593
  };
91594
91594
  var openChatWidget = function openChatWidget() {
91595
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
91596
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
91597
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
91595
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
91596
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
91597
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
91598
91598
  };
91599
91599
  var profileInfo = ramda.mergeLeft(profileInfoOverrides, {
91600
91600
  name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),
package/react-utils.js CHANGED
@@ -1328,9 +1328,9 @@ var ContactUs = function ContactUs() {
1328
1328
  label: t("neetoCommons.browserSupport.contactUs.buttonLabel"),
1329
1329
  style: "link",
1330
1330
  onClick: function onClick() {
1331
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
1332
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
1333
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
1331
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
1332
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
1333
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
1334
1334
  }
1335
1335
  })
1336
1336
  }
@@ -4140,9 +4140,9 @@ var FallbackComponent = function FallbackComponent() {
4140
4140
  label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4141
4141
  style: "link",
4142
4142
  onClick: function onClick() {
4143
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
4144
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
4145
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
4143
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
4144
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
4145
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
4146
4146
  }
4147
4147
  })
4148
4148
  }
@@ -91555,9 +91555,9 @@ var Sidebar = function Sidebar(_ref) {
91555
91555
  window.location.href = "/logout";
91556
91556
  };
91557
91557
  var openChatWidget = function openChatWidget() {
91558
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
91559
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
91560
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
91558
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
91559
+ (_window$NeetoChat = window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : (_window$NeetoChat$con = _window$NeetoChat.contextualHelp) === null || _window$NeetoChat$con === void 0 ? void 0 : _window$NeetoChat$con.maximizeWidget();
91560
+ (_window$NeetoChat2 = window.NeetoChat) === null || _window$NeetoChat2 === void 0 ? void 0 : (_window$NeetoChat2$co = _window$NeetoChat2.contextualHelp) === null || _window$NeetoChat2$co === void 0 ? void 0 : _window$NeetoChat2$co.openWidget();
91561
91561
  };
91562
91562
  var profileInfo = mergeLeft(profileInfoOverrides, {
91563
91563
  name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),