@notificationapi/react 1.6.1 → 1.6.2

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.
@@ -119,9 +119,9 @@ const Oe = (o) => {
119
119
  children: l,
120
120
  className: u,
121
121
  collapsedSize: d = "0px",
122
- component: m,
122
+ component: g,
123
123
  easing: a,
124
- in: g,
124
+ in: m,
125
125
  onEnter: E,
126
126
  onEntered: R,
127
127
  onEntering: A,
@@ -187,7 +187,7 @@ const Oe = (o) => {
187
187
  r.style[N] = z, r.style.transitionTimingFunction = B, v && v(r);
188
188
  });
189
189
  return /* @__PURE__ */ i(k, {
190
- in: g,
190
+ in: m,
191
191
  onEnter: le,
192
192
  onEntered: ue,
193
193
  onEntering: pe,
@@ -204,10 +204,10 @@ const Oe = (o) => {
204
204
  ownerState: h,
205
205
  ...y
206
206
  }) => /* @__PURE__ */ i($e, {
207
- as: m,
207
+ as: g,
208
208
  className: U(x.root, u, {
209
209
  entered: x.entered,
210
- exited: !g && z === "0px" && x.hidden
210
+ exited: !m && z === "0px" && x.hidden
211
211
  }[r]),
212
212
  style: {
213
213
  [S ? "minWidth" : "minHeight"]: z,
@@ -454,9 +454,9 @@ const F = q("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
454
454
  className: l,
455
455
  defaultExpanded: u = !1,
456
456
  disabled: d = !1,
457
- disableGutters: m = !1,
457
+ disableGutters: g = !1,
458
458
  expanded: a,
459
- onChange: g,
459
+ onChange: m,
460
460
  square: E = !1,
461
461
  slots: R = {},
462
462
  slotProps: A = {},
@@ -469,17 +469,17 @@ const F = q("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
469
469
  name: "Accordion",
470
470
  state: "expanded"
471
471
  }), b = p.useCallback((Y) => {
472
- M(!f), g && g(Y, !f);
473
- }, [f, g, M]), [k, ...Q] = p.Children.toArray(c), P = p.useMemo(() => ({
472
+ M(!f), m && m(Y, !f);
473
+ }, [f, m, M]), [k, ...Q] = p.Children.toArray(c), P = p.useMemo(() => ({
474
474
  expanded: f,
475
475
  disabled: d,
476
- disableGutters: m,
476
+ disableGutters: g,
477
477
  toggle: b
478
- }), [f, d, m, b]), x = {
478
+ }), [f, d, g, b]), x = {
479
479
  ...s,
480
480
  square: E,
481
481
  disabled: d,
482
- disableGutters: m,
482
+ disableGutters: g,
483
483
  expanded: f
484
484
  }, O = We(x), X = {
485
485
  transition: D,
@@ -764,25 +764,25 @@ const W = q("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
764
764
  className: l,
765
765
  expandIcon: u,
766
766
  focusVisibleClassName: d,
767
- onClick: m,
767
+ onClick: g,
768
768
  ...a
769
769
  } = s, {
770
- disabled: g = !1,
770
+ disabled: m = !1,
771
771
  disableGutters: E,
772
772
  expanded: R,
773
773
  toggle: A
774
774
  } = p.useContext(ne), D = (f) => {
775
- A && A(f), m && m(f);
775
+ A && A(f), g && g(f);
776
776
  }, w = {
777
777
  ...s,
778
778
  expanded: R,
779
- disabled: g,
779
+ disabled: m,
780
780
  disableGutters: E
781
781
  }, v = Le(w);
782
782
  return /* @__PURE__ */ G(qe, {
783
783
  focusRipple: !1,
784
784
  disableRipple: !0,
785
- disabled: g,
785
+ disabled: m,
786
786
  "aria-expanded": R,
787
787
  className: U(v.root, l),
788
788
  focusVisibleClassName: U(v.focusVisible, d),
@@ -848,14 +848,14 @@ function uo() {
848
848
  if (!o || !o.preferences)
849
849
  return null;
850
850
  const t = o.preferences.notifications.sort((n, s) => n.title.localeCompare(s.title)).map((n) => {
851
- var u, d, m;
851
+ var u, d, g;
852
852
  const s = (u = o.preferences) == null ? void 0 : u.preferences.filter(
853
853
  (a) => a.notificationId === n.notificationId && !a.subNotificationId
854
854
  ), c = (d = o.preferences) == null ? void 0 : d.preferences.filter(
855
855
  (a) => a.notificationId === n.notificationId && a.subNotificationId
856
- ), l = (m = o.preferences) == null ? void 0 : m.subNotifications.filter(
856
+ ), l = (g = o.preferences) == null ? void 0 : g.subNotifications.filter(
857
857
  (a) => c == null ? void 0 : c.find(
858
- (g) => g.subNotificationId === a.subNotificationId
858
+ (m) => m.subNotificationId === a.subNotificationId && m.notificationId === a.notificationId
859
859
  )
860
860
  );
861
861
  return /* @__PURE__ */ G(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@notificationapi/react",
3
3
  "private": false,
4
- "version": "1.6.1",
4
+ "version": "1.6.2",
5
5
  "type": "module",
6
6
  "overrides": {
7
7
  "esbuild": "^0.25.0",