@copart/ops-tool-kit 1.5.35 → 1.5.36

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.
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
33
33
  var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
34
34
 
35
35
  const name$e = "@copart/ops-tool-kit";
36
- const version$3 = "1.5.35";
36
+ const version$3 = "1.5.36";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -39211,26 +39211,6 @@ function filterOutNotificationForOtherApps(notifications) {
39211
39211
  })(notifications);
39212
39212
  }
39213
39213
 
39214
- function filterOutDuplicateNotificationsForMiphone(notifications) {
39215
- var miphoneNotification = null;
39216
- var filtered = filter$1(function (notification) {
39217
- if (notification.news_source === 'Miphone') {
39218
- if (!miphoneNotification || Date.parse(miphoneNotification.lastUpdatedAt) < Date.parse(notification.lastUpdatedAt)) {
39219
- if (miphoneNotification) {
39220
- addNotificationToViewedList(miphoneNotification);
39221
- }
39222
-
39223
- miphoneNotification = notification;
39224
- } else {
39225
- addNotificationToViewedList(notification);
39226
- }
39227
- } else {
39228
- return true;
39229
- }
39230
- })(notifications);
39231
- return [].concat(_toConsumableArray(filtered), [miphoneNotification]);
39232
- }
39233
-
39234
39214
  var caseInsensitiveIncludes = function caseInsensitiveIncludes(val) {
39235
39215
  return function (arr) {
39236
39216
  try {
@@ -39272,7 +39252,8 @@ function filterOutNotificationByAudience(notifications) {
39272
39252
  }
39273
39253
  function filterNotifications(notifications) {
39274
39254
  try {
39275
- return compose(filterOutDuplicateNotificationsForMiphone, filterOutNotificationByAudience, filterOutViewedNotifications, filterOutExpiredNotifications, filterOutNotificationForOtherApps)(notifications);
39255
+ console.log(notifications);
39256
+ return compose(filterOutNotificationByAudience, filterOutViewedNotifications, filterOutExpiredNotifications, filterOutNotificationForOtherApps)(notifications);
39276
39257
  } catch (err) {
39277
39258
  console.error(err);
39278
39259
  return notifications;
@@ -43504,17 +43485,8 @@ function useFirebase(firebaseConfig) {
43504
43485
  React.useEffect(function () {
43505
43486
  connect(firebaseConfig);
43506
43487
  attachHandlers(setNotifications);
43507
-
43508
- var onStorageChanged = function onStorageChanged() {
43509
- refetchNotifications();
43510
- };
43511
-
43512
- window.addEventListener('localStorageChanged', onStorageChanged);
43513
- window.addEventListener('sessionStorageChanged', onStorageChanged);
43514
43488
  return function () {
43515
43489
  firebase.off();
43516
- window.removeEventListener('localStorageChanged', onStorageChanged);
43517
- window.removeEventListener('sessionStorageChanged', onStorageChanged);
43518
43490
  };
43519
43491
  }, []);
43520
43492
  React.useEffect(function () {
@@ -43780,16 +43752,6 @@ var AppFrame = function AppFrame(props) {
43780
43752
  setAppBarMounted: setAppBarMounted
43781
43753
  });
43782
43754
 
43783
- var onSettingsSaved = function onSettingsSaved() {
43784
- var handler = props.onSettingsSaved || function () {
43785
- return location.reload();
43786
- };
43787
-
43788
- var event = new Event('localStorageChanged');
43789
- window.dispatchEvent(event);
43790
- handler();
43791
- };
43792
-
43793
43755
  return React__default["default"].createElement("div", {
43794
43756
  className: "utilities_ops-app-frame_AppFrame_AppFrame--AppFrame",
43795
43757
  style: props.handleScrolling ? SCROLL : NO_SCROLL
@@ -43801,7 +43763,9 @@ var AppFrame = function AppFrame(props) {
43801
43763
  searchBarProps: props.searchBarProps,
43802
43764
  history: props.history,
43803
43765
  setAppBarMounted: setAppBarMounted,
43804
- onSettingsSaved: onSettingsSaved,
43766
+ onSettingsSaved: props.onSettingsSaved || function () {
43767
+ return location.reload();
43768
+ },
43805
43769
  showTitle: props.showTitle || true,
43806
43770
  title: props.appTitle
43807
43771
  })), React__default["default"].createElement(Breadcrumbs, {