@copart/ops-tool-kit 1.12.8 → 1.12.9

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.12.9
2
+
3
+ - Added support for hiding user status functionality via `storage.coreConfig?.hideUserStatus` config flag. When enabled, user status data is not loaded and status indicators are not displayed in LogOutMenu and ProfileDetails components.
4
+
1
5
  ### 1.12.8
2
6
 
3
7
  - Added user availability status circle indicator to LogOutMenu component (similar to Teams availability status display).
@@ -47,7 +47,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
47
47
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
48
48
 
49
49
  const name$r = "@copart/ops-tool-kit";
50
- const version$8 = "1.12.8";
50
+ const version$8 = "1.12.9";
51
51
  const main$1 = "dist/ops-tool-kit.js";
52
52
  const style = "dist/ops-tool-kit.css";
53
53
  const files = [
@@ -36450,6 +36450,7 @@ var AppBar = function AppBar(_ref) {
36450
36450
  tileConfigAccess = userHasAccess(currentTile);
36451
36451
  }
36452
36452
  if (history.location.pathname !== '/logout' && history.location.pathname !== '/login' && localStorage.getItem('login') && tileConfigAccess) {
36453
+ var _storage$coreConfig2;
36453
36454
  if (notificationsSource.includes('Nchan')) {
36454
36455
  fetchG2Notifications(updateNotifications, updateAllNotificationsList);
36455
36456
  if (!(window.navigator.userAgent.includes('Chrome') && window.location.href.includes('localhost'))) {
@@ -36554,7 +36555,9 @@ var AppBar = function AppBar(_ref) {
36554
36555
  return _ref5.apply(this, arguments);
36555
36556
  };
36556
36557
  }();
36557
- loadUserStatus();
36558
+ if (!((_storage$coreConfig2 = storage$1.coreConfig) !== null && _storage$coreConfig2 !== void 0 && _storage$coreConfig2.hideUserStatus)) {
36559
+ loadUserStatus();
36560
+ }
36558
36561
  }
36559
36562
  }
36560
36563
  }, [selectedYard, pathname]);