@burdenoff/microfe-notification 2026.1125.1 → 2026.1129.1

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.
Files changed (161) hide show
  1. package/dist/NotificationRoutes.d.ts +10 -0
  2. package/dist/NotificationRoutes.js +76 -71
  3. package/dist/NotificationRoutes.js.map +1 -1
  4. package/dist/components/NotificationPanel.js +0 -1
  5. package/dist/components/NotificationPanel.js.map +1 -1
  6. package/dist/generated/global-operations.d.ts +58 -3
  7. package/dist/generated/global-operations.js +31 -23
  8. package/dist/generated/global-operations.js.map +1 -1
  9. package/dist/generated/global-types.d.ts +10933 -581
  10. package/dist/graphql/global-client.js +34 -34
  11. package/dist/hooks/useNotificationAnalytics.d.ts +1 -1
  12. package/dist/hooks/useNotificationAnalytics.js.map +1 -1
  13. package/dist/hooks/useNotifications.d.ts +7 -0
  14. package/dist/hooks/useNotifications.js +1 -1
  15. package/dist/hooks/useNotifications.js.map +1 -1
  16. package/dist/index.js +9 -11
  17. package/dist/navigation-v2/NotificationArchivedV2.js +7 -8
  18. package/dist/navigation-v2/NotificationArchivedV2.js.map +1 -1
  19. package/dist/navigation-v2/NotificationInboxV2.js +8 -9
  20. package/dist/navigation-v2/NotificationInboxV2.js.map +1 -1
  21. package/dist/navigation-v2/NotificationSettingsV2.js +0 -1
  22. package/dist/navigation-v2/NotificationSettingsV2.js.map +1 -1
  23. package/dist/pages/NotificationCenterPage.js +5 -6
  24. package/dist/pages/NotificationCenterPage.js.map +1 -1
  25. package/dist/pages/NotificationHistoryAdminPage.js +9 -10
  26. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  27. package/dist/pages/NotificationHistoryPage.js +5 -6
  28. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  29. package/dist/pages/NotificationPreferencesPage.js +0 -1
  30. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  31. package/dist/pages/NotificationTopicsPage.js +0 -1
  32. package/dist/pages/NotificationTopicsPage.js.map +1 -1
  33. package/dist/translations/en.d.ts +80 -0
  34. package/dist/types/index.d.ts +2 -1
  35. package/dist/v2/ArchivedRedirect.d.ts +1 -0
  36. package/dist/v2/ArchivedRedirect.js +14 -0
  37. package/dist/v2/ArchivedRedirect.js.map +1 -0
  38. package/dist/v2/InboxPage.d.ts +1 -0
  39. package/dist/v2/InboxPage.js +191 -0
  40. package/dist/v2/InboxPage.js.map +1 -0
  41. package/dist/v2/InboxRows.d.ts +10 -0
  42. package/dist/v2/InboxRows.js +101 -0
  43. package/dist/v2/InboxRows.js.map +1 -0
  44. package/dist/v2/KindIcon.d.ts +4 -0
  45. package/dist/v2/KindIcon.js +33 -0
  46. package/dist/v2/KindIcon.js.map +1 -0
  47. package/dist/v2/NotificationDetailPanel.d.ts +7 -0
  48. package/dist/v2/NotificationDetailPanel.js +200 -0
  49. package/dist/v2/NotificationDetailPanel.js.map +1 -0
  50. package/dist/v2/PreferencesPage.d.ts +1 -0
  51. package/dist/v2/PreferencesPage.js +139 -0
  52. package/dist/v2/PreferencesPage.js.map +1 -0
  53. package/dist/v2/__tests__/routeShapes.d.ts +13 -0
  54. package/dist/v2/model/days.d.ts +9 -0
  55. package/dist/v2/model/days.js +25 -0
  56. package/dist/v2/model/days.js.map +1 -0
  57. package/dist/v2/model/events.d.ts +17 -0
  58. package/dist/v2/model/events.js +72 -0
  59. package/dist/v2/model/events.js.map +1 -0
  60. package/dist/v2/model/icons.d.ts +6 -0
  61. package/dist/v2/model/icons.js +19 -0
  62. package/dist/v2/model/icons.js.map +1 -0
  63. package/dist/v2/model/inbox.d.ts +15 -0
  64. package/dist/v2/model/inbox.js +22 -0
  65. package/dist/v2/model/inbox.js.map +1 -0
  66. package/dist/v2/model/thing.d.ts +16 -0
  67. package/dist/v2/model/thing.js +41 -0
  68. package/dist/v2/model/thing.js.map +1 -0
  69. package/dist/v2/model/tr.d.ts +2 -0
  70. package/dist/v2/useNotificationDetail.d.ts +19 -0
  71. package/dist/v2/useNotificationDetail.js +65 -0
  72. package/dist/v2/useNotificationDetail.js.map +1 -0
  73. package/package.json +5 -2
  74. package/dist/components/index.js +0 -4
  75. package/dist/hooks/index.js +0 -8
  76. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +0 -23
  77. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
  78. package/dist/node_modules/@apollo/client/errors/utils.js +0 -15
  79. package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
  80. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +0 -51
  81. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
  82. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +0 -40
  83. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
  84. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +0 -33
  85. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
  86. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -5
  87. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
  88. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +0 -15
  89. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
  90. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +0 -18
  91. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
  92. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -20
  93. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
  94. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +0 -16
  95. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
  96. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -8
  97. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
  98. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -8
  99. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
  100. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -7
  101. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
  102. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -8
  103. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
  104. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -9
  105. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
  106. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -7
  107. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
  108. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -9
  109. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
  110. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +0 -22
  111. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
  112. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -9
  113. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
  114. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +0 -56
  115. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
  116. package/dist/node_modules/@apollo/client/version.js +0 -5
  117. package/dist/node_modules/@apollo/client/version.js.map +0 -1
  118. package/dist/node_modules/@wry/caches/lib/weak.js +0 -66
  119. package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
  120. package/dist/node_modules/@wry/trie/lib/index.js +0 -52
  121. package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
  122. package/dist/node_modules/graphql-ws/dist/client.js +0 -279
  123. package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
  124. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +0 -61
  125. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
  126. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +0 -20
  127. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
  128. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -77
  129. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
  130. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -116
  131. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
  132. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -96
  133. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
  134. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -11
  135. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
  136. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
  137. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
  138. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -15
  139. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
  140. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -7
  141. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
  142. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -12
  143. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
  144. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
  145. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
  146. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -10
  147. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
  148. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -21
  149. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
  150. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
  151. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
  152. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
  153. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
  154. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
  155. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
  156. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -12
  157. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
  158. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
  159. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
  160. package/dist/node_modules/tslib/tslib.es6.js +0 -51
  161. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -16,3 +16,13 @@
16
16
  * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)
17
17
  */
18
18
  export declare function NotificationRoutes(): import('react').JSX.Element;
19
+ /**
20
+ * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic
21
+ * routes keeps working: `/` opens straight on the inbox (old `?tab=` values
22
+ * still open their page), and the admin pages get a route-level permission
23
+ * gate and a way back to the inbox.
24
+ */
25
+ export declare function NavigationV2Routes({ centerPath, v2 }: {
26
+ centerPath: string;
27
+ v2: boolean;
28
+ }): import('react').JSX.Element;
@@ -4,146 +4,151 @@ import { NotificationLandingPage as n } from "./pages/NotificationLandingPage.js
4
4
  import { AdminPageV2 as r } from "./navigation-v2/AdminPageV2.js";
5
5
  import { DeliveryLogV2 as i, NotificationsV2Landing as a } from "./navigation-v2/NotificationsV2Landing.js";
6
6
  import { CompactMarkOr as o, SectionLoaderOr as s } from "./components/loadingSystem.js";
7
- import { Suspense as c, lazy as l } from "react";
8
- import { Navigate as u, Route as d, Routes as f } from "react-router";
9
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
7
+ import { ArchivedRedirect as c } from "./v2/ArchivedRedirect.js";
8
+ import { Suspense as l, lazy as u } from "react";
9
+ import { Navigate as d, Route as f, Routes as p } from "react-router";
10
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
11
+ import { useAccountPagesV2 as g } from "@burdenoff/fe-libs/ui/account-pages-v2";
10
12
  // src/NotificationRoutes.tsx
11
- var h = l(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), g = l(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), _ = l(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), v = l(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), y = l(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), b = l(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
12
- function x() {
13
- return /* @__PURE__ */ p(s, {
13
+ var _ = u(() => import("./v2/InboxPage.js").then((e) => ({ default: e.InboxPage }))), v = u(() => import("./v2/PreferencesPage.js").then((e) => ({ default: e.PreferencesPage }))), y = u(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), b = u(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), x = u(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), S = u(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), C = u(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), w = u(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
14
+ function T() {
15
+ return /* @__PURE__ */ m(s, {
14
16
  route: !0,
15
17
  minHeight: "16rem",
16
- today: /* @__PURE__ */ p("div", {
18
+ today: /* @__PURE__ */ m("div", {
17
19
  className: "flex h-64 items-center justify-center",
18
- children: /* @__PURE__ */ p(o, {
20
+ children: /* @__PURE__ */ m(o, {
19
21
  className: "h-8 w-8",
20
- today: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
22
+ today: /* @__PURE__ */ m("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
21
23
  })
22
24
  })
23
25
  });
24
26
  }
25
- function S() {
26
- let { basePath: r = "/", navigationV2: i } = e(), a = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
27
- return i ? /* @__PURE__ */ p(C, { centerPath: a }) : /* @__PURE__ */ p(c, {
28
- fallback: /* @__PURE__ */ p(x, {}),
29
- children: /* @__PURE__ */ m(f, { children: [
30
- /* @__PURE__ */ p(d, {
27
+ function E() {
28
+ let { basePath: r = "/", navigationV2: i } = e(), a = g(), o = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
29
+ return i ? /* @__PURE__ */ m(D, {
30
+ centerPath: o,
31
+ v2: a
32
+ }) : /* @__PURE__ */ m(l, {
33
+ fallback: /* @__PURE__ */ m(T, {}),
34
+ children: /* @__PURE__ */ h(p, { children: [
35
+ /* @__PURE__ */ m(f, {
31
36
  index: !0,
32
- element: /* @__PURE__ */ p(n, {})
37
+ element: m(a ? _ : n, {})
33
38
  }),
34
- /* @__PURE__ */ p(d, {
39
+ /* @__PURE__ */ m(f, {
35
40
  path: "list",
36
- element: /* @__PURE__ */ p(t, {})
41
+ element: m(a ? _ : t, {})
37
42
  }),
38
- /* @__PURE__ */ p(d, {
43
+ /* @__PURE__ */ m(f, {
39
44
  path: "center",
40
- element: /* @__PURE__ */ p(t, {})
45
+ element: m(a ? _ : t, {})
41
46
  }),
42
- /* @__PURE__ */ p(d, {
47
+ /* @__PURE__ */ m(f, {
43
48
  path: "history",
44
- element: /* @__PURE__ */ p(h, {})
49
+ element: m(a ? c : y, {})
45
50
  }),
46
- /* @__PURE__ */ p(d, {
51
+ /* @__PURE__ */ m(f, {
47
52
  path: "templates",
48
- element: /* @__PURE__ */ p(g, {})
53
+ element: /* @__PURE__ */ m(b, {})
49
54
  }),
50
- /* @__PURE__ */ p(d, {
55
+ /* @__PURE__ */ m(f, {
51
56
  path: "templates/new",
52
- element: /* @__PURE__ */ p(_, {})
57
+ element: /* @__PURE__ */ m(x, {})
53
58
  }),
54
- /* @__PURE__ */ p(d, {
59
+ /* @__PURE__ */ m(f, {
55
60
  path: "templates/:templateId",
56
- element: /* @__PURE__ */ p(_, {})
61
+ element: /* @__PURE__ */ m(x, {})
57
62
  }),
58
- /* @__PURE__ */ p(d, {
63
+ /* @__PURE__ */ m(f, {
59
64
  path: "create",
60
- element: /* @__PURE__ */ p(v, {})
65
+ element: /* @__PURE__ */ m(S, {})
61
66
  }),
62
- /* @__PURE__ */ p(d, {
67
+ /* @__PURE__ */ m(f, {
63
68
  path: "topics",
64
- element: /* @__PURE__ */ p(y, {})
69
+ element: /* @__PURE__ */ m(C, {})
65
70
  }),
66
- /* @__PURE__ */ p(d, {
71
+ /* @__PURE__ */ m(f, {
67
72
  path: "preferences",
68
- element: /* @__PURE__ */ p(b, {})
73
+ element: m(a ? v : w, {})
69
74
  }),
70
- /* @__PURE__ */ p(d, {
75
+ /* @__PURE__ */ m(f, {
71
76
  path: "*",
72
- element: /* @__PURE__ */ p(u, {
73
- to: a,
77
+ element: /* @__PURE__ */ m(d, {
78
+ to: o,
74
79
  replace: !0
75
80
  })
76
81
  })
77
82
  ] })
78
83
  });
79
84
  }
80
- function C({ centerPath: e }) {
81
- return /* @__PURE__ */ p(c, {
82
- fallback: /* @__PURE__ */ p(x, {}),
83
- children: /* @__PURE__ */ m(f, { children: [
84
- /* @__PURE__ */ p(d, {
85
+ function D({ centerPath: e, v2: n }) {
86
+ return /* @__PURE__ */ m(l, {
87
+ fallback: /* @__PURE__ */ m(T, {}),
88
+ children: /* @__PURE__ */ h(p, { children: [
89
+ /* @__PURE__ */ m(f, {
85
90
  index: !0,
86
- element: /* @__PURE__ */ p(a, {})
91
+ element: m(n ? _ : a, {})
87
92
  }),
88
- /* @__PURE__ */ p(d, {
93
+ /* @__PURE__ */ m(f, {
89
94
  path: "list",
90
- element: /* @__PURE__ */ p(t, {})
95
+ element: m(n ? _ : t, {})
91
96
  }),
92
- /* @__PURE__ */ p(d, {
97
+ /* @__PURE__ */ m(f, {
93
98
  path: "center",
94
- element: /* @__PURE__ */ p(t, {})
99
+ element: m(n ? _ : t, {})
95
100
  }),
96
- /* @__PURE__ */ p(d, {
101
+ /* @__PURE__ */ m(f, {
97
102
  path: "history",
98
- element: /* @__PURE__ */ p(h, {})
103
+ element: m(n ? c : y, {})
99
104
  }),
100
- /* @__PURE__ */ p(d, {
105
+ /* @__PURE__ */ m(f, {
101
106
  path: "preferences",
102
- element: /* @__PURE__ */ p(b, {})
107
+ element: m(n ? v : w, {})
103
108
  }),
104
- /* @__PURE__ */ p(d, {
109
+ /* @__PURE__ */ m(f, {
105
110
  path: "templates",
106
- element: /* @__PURE__ */ p(r, {
111
+ element: /* @__PURE__ */ m(r, {
107
112
  tool: "templates",
108
- children: /* @__PURE__ */ p(g, {})
113
+ children: /* @__PURE__ */ m(b, {})
109
114
  })
110
115
  }),
111
- /* @__PURE__ */ p(d, {
116
+ /* @__PURE__ */ m(f, {
112
117
  path: "templates/new",
113
- element: /* @__PURE__ */ p(r, {
118
+ element: /* @__PURE__ */ m(r, {
114
119
  tool: "templates",
115
- children: /* @__PURE__ */ p(_, {})
120
+ children: /* @__PURE__ */ m(x, {})
116
121
  })
117
122
  }),
118
- /* @__PURE__ */ p(d, {
123
+ /* @__PURE__ */ m(f, {
119
124
  path: "templates/:templateId",
120
- element: /* @__PURE__ */ p(r, {
125
+ element: /* @__PURE__ */ m(r, {
121
126
  tool: "templates",
122
- children: /* @__PURE__ */ p(_, {})
127
+ children: /* @__PURE__ */ m(x, {})
123
128
  })
124
129
  }),
125
- /* @__PURE__ */ p(d, {
130
+ /* @__PURE__ */ m(f, {
126
131
  path: "create",
127
- element: /* @__PURE__ */ p(r, {
132
+ element: /* @__PURE__ */ m(r, {
128
133
  tool: "send",
129
134
  back: !1,
130
- children: /* @__PURE__ */ p(v, {})
135
+ children: /* @__PURE__ */ m(S, {})
131
136
  })
132
137
  }),
133
- /* @__PURE__ */ p(d, {
138
+ /* @__PURE__ */ m(f, {
134
139
  path: "topics",
135
- element: /* @__PURE__ */ p(r, {
140
+ element: /* @__PURE__ */ m(r, {
136
141
  tool: "topics",
137
- children: /* @__PURE__ */ p(y, {})
142
+ children: /* @__PURE__ */ m(C, {})
138
143
  })
139
144
  }),
140
- /* @__PURE__ */ p(d, {
145
+ /* @__PURE__ */ m(f, {
141
146
  path: "delivery-log",
142
- element: /* @__PURE__ */ p(i, {})
147
+ element: /* @__PURE__ */ m(i, {})
143
148
  }),
144
- /* @__PURE__ */ p(d, {
149
+ /* @__PURE__ */ m(f, {
145
150
  path: "*",
146
- element: /* @__PURE__ */ p(u, {
151
+ element: /* @__PURE__ */ m(d, {
147
152
  to: e,
148
153
  replace: !0
149
154
  })
@@ -151,6 +156,6 @@ function C({ centerPath: e }) {
151
156
  ] })
152
157
  });
153
158
  }
154
- export { S as NotificationRoutes };
159
+ export { D as NavigationV2Routes, E as NotificationRoutes };
155
160
 
156
161
  //# sourceMappingURL=NotificationRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","SectionLoaderOr","CompactMarkOr","NotificationRoutes","useNotification","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","NotificationLandingPage","NotificationCenterPage","Navigate","NotificationsV2Landing","AdminPageV2","DeliveryLogV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { DeliveryLogV2, NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\nimport { CompactMarkOr, SectionLoaderOr } from './components/loadingSystem';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n route\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\n/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={<NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={<NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route path=\"templates\" element={<NotificationTemplatesPage />} />\n <Route path=\"templates/new\" element={<TemplateEditorPage />} />\n <Route path=\"templates/:templateId\" element={<TemplateEditorPage />} />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={<NotificationTopicsPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nfunction NavigationV2Routes({ centerPath }: { centerPath: string }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<NotificationsV2Landing />} />\n <Route path=\"list\" element={<NotificationCenterPage />} />\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n <Route\n path=\"templates\"\n element={\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/new\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n }\n />\n <Route path=\"delivery-log\" element={<DeliveryLogV2 />} />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;AAYA,IAAMA,IAA0BC,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMC,IAA4BF,QAChC,OAAO,uCAAoC,CAAC,MAAM,OAAO,EACvD,SAASC,EAAE,0BACb,EAAE,CACJ,GACME,IAAqBH,QACzB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,mBAAmB,EAAE,CACtF,GACMG,IAAyBJ,QAC7B,OAAO,oCAAiC,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,uBAAuB,EAAE,CAC9F,GACMI,IAAyBL,QAC7B,OAAO,oCAAiC,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,uBAAuB,EAAE,CAC9F,GACMK,IAA8BN,QAClC,OAAO,yCAAsC,CAAC,MAAM,OAAO,EACzD,SAASC,EAAE,4BACb,EAAE,CACJ;AAGA,SAASM,IAAa;CACpB,OACE,kBAACC,GAAD;EACE,OAAA;EACA,WAAU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AA,kBAACnB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACc,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IAAO,MAAK;IAAe,SAAS,kBAACM,GAAD,CAAgB,CAAA;GAAI,CAAA;GACxD,kBAACN,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACG,GAAD;KAAU,IAAIT;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
1
+ {"version":3,"file":"NotificationRoutes.js","names":["InboxPageV2","lazy","m","PreferencesPageV2","NotificationHistoryPage","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","SectionLoaderOr","CompactMarkOr","NotificationRoutes","useNotification","v2","useAccountPagesV2","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","jsx","NotificationLandingPage","NotificationCenterPage","ArchivedRedirect","Navigate","NotificationsV2Landing","AdminPageV2","DeliveryLogV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { DeliveryLogV2, NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\nimport { CompactMarkOr, SectionLoaderOr } from './components/loadingSystem';\nimport { useAccountPagesV2 } from '@burdenoff/fe-libs/ui/account-pages-v2';\nimport { ArchivedRedirect } from './v2/ArchivedRedirect';\n\n// Account & platform v2 (BOFF-16785, C1): FluidGrids' redesigned inbox and notification settings.\nconst InboxPageV2 = lazy(() => import('./v2/InboxPage').then((m) => ({ default: m.InboxPage })));\nconst PreferencesPageV2 = lazy(() =>\n import('./v2/PreferencesPage').then((m) => ({ default: m.PreferencesPage }))\n);\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n route\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\n/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n // FluidGrids' Account & platform pages (BOFF-16785): every other host keeps the elements below.\n const v2 = useAccountPagesV2();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} v2={v2} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={v2 ? <InboxPageV2 /> : <NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"history\" element={v2 ? <ArchivedRedirect /> : <NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route path=\"templates\" element={<NotificationTemplatesPage />} />\n <Route path=\"templates/new\" element={<TemplateEditorPage />} />\n <Route path=\"templates/:templateId\" element={<TemplateEditorPage />} />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={<NotificationTopicsPage />} />\n <Route\n path=\"preferences\"\n element={v2 ? <PreferencesPageV2 /> : <NotificationPreferencesPage />}\n />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nexport function NavigationV2Routes({ centerPath, v2 }: { centerPath: string; v2: boolean }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={v2 ? <InboxPageV2 /> : <NotificationsV2Landing />} />\n <Route path=\"list\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"center\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"history\" element={v2 ? <ArchivedRedirect /> : <NotificationHistoryPage />} />\n <Route\n path=\"preferences\"\n element={v2 ? <PreferencesPageV2 /> : <NotificationPreferencesPage />}\n />\n <Route\n path=\"templates\"\n element={\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/new\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n }\n />\n <Route path=\"delivery-log\" element={<DeliveryLogV2 />} />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAcA,IAAMA,IAAcC,QAAW,OAAO,oBAAiB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,UAAU,EAAE,CAAC,GACzFC,IAAoBF,QACxB,OAAO,0BAAuB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CAC7E,GAGME,IAA0BH,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMG,IAA4BJ,QAChC,OAAO,uCAAoC,CAAC,MAAM,OAAO,EACvD,SAASC,EAAE,0BACb,EAAE,CACJ,GACMI,IAAqBL,QACzB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,mBAAmB,EAAE,CACtF,GACMK,IAAyBN,QA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L,SAAcC,EAALT,IAAMZ,IAAwBM,GAAzB,CAAoB,CAAkC;GACrE,CAAA;GACD,kBAACc,GAAD;IACE,MAAK;IACL,SACE,kBAACO,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACzB,GAAD,CAA4B,CAAA;IACjB,CAAA;GAEhB,CAAA;GACD,kBAACkB,GAAD;IACE,MAAK;IACL,SACE,kBAACO,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACxB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACiB,GAAD;IACE,MAAK;IACL,SACE,kBAACO,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACxB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACiB,GAAD;IACE,MAAK;IACL,SACE,kBAACO,GAAD;KAAa,MAAK;KAAO,MAAM;KAC7B,UAAA,kBAACvB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACgB,GAAD;IACE,MAAK;IACL,SACE,kBAACO,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACtB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACe,GAAD;IAAO,MAAK;IAAe,SAAS,kBAACQ,GAAD,CAAgB,CAAA;GAAI,CAAA;GACxD,kBAACR,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACK,GAAD;KAAU,IAAIX;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
@@ -1,6 +1,5 @@
1
1
  import { useNotificationStore as e } from "../store/notificationStore.js";
2
2
  import { useNotifications as t } from "../hooks/useNotifications.js";
3
- import "../hooks/index.js";
4
3
  import { NotificationCard as n } from "./NotificationCard.js";
5
4
  import { useTr as r } from "../shared/hooks/useTr.js";
6
5
  import { Bell as i, X as a } from "lucide-react";
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationPanel.js","names":["_Fragment","NotificationPanel","tr","useTr","glass","useGlassEmptyStates","useNotificationStore","useNotifications","isPanelOpen","recentNotifications","notifications","Fragment","togglePanel","Bell","unreadCount","markAllAsRead","X","NotificationCard","markAsRead","archiveNotification","recordAction","notification","EmptyState","onViewAll"],"sources":["../../src/components/NotificationPanel.tsx"],"sourcesContent":["import { X, Bell } from 'lucide-react';\nimport { EmptyState, useGlassEmptyStates } from '@burdenoff/fe-libs/ui';\nimport { useNotificationStore } from '../store/notificationStore';\nimport { useNotifications } from '../hooks';\nimport { NotificationCard } from './NotificationCard';\nimport { useTr } from '../shared/hooks/useTr';\n\ninterface NotificationPanelProps {\n onViewAll?: () => void;\n}\n\n/**\n * Notification dropdown panel\n *\n * Quick view of recent notifications that appears when clicking the bell icon\n */\nexport function NotificationPanel({ onViewAll }: NotificationPanelProps) {\n const tr = useTr();\n const glass = useGlassEmptyStates();\n const { isPanelOpen, togglePanel } = useNotificationStore();\n const {\n notifications,\n unreadCount,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n } = useNotifications();\n\n if (!isPanelOpen) return null;\n\n // Show only the 5 most recent notifications\n const recentNotifications = notifications.slice(0, 5);\n\n return (\n <>\n {/* Backdrop */}\n <div className=\"fixed inset-0 z-40\" onClick={togglePanel} aria-hidden=\"true\" />\n\n {/* Panel */}\n <div\n data-tour=\"notification-panel\"\n className=\"absolute right-0 top-full mt-2 w-96 max-h-[600px] bg-gloss-card border border-border-seam rounded-lg shadow-[var(--shadow-pop)] z-50 overflow-hidden flex flex-col animate-in fade-in slide-in-from-top-2 duration-200\"\n >\n {/* Header */}\n <div className=\"flex items-center justify-between p-4 border-b border-border-seam bg-accent-wash\">\n <div className=\"flex items-center gap-2\">\n <Bell size={20} className=\"text-primary\" />\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifCommon.notifications', 'Notifications')}\n </h2>\n {unreadCount > 0 && (\n <span className=\"px-2 py-0.5 text-xs font-semibold tabular-nums text-white bg-primary-500 rounded-full\">\n {unreadCount}\n </span>\n )}\n </div>\n\n <div className=\"flex items-center gap-2\">\n {unreadCount > 0 && (\n <button\n data-tour=\"notification-panel-mark-all-read\"\n onClick={markAllAsRead}\n className=\"text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n >\n {tr('notifCommon.markAllRead', 'Mark all read')}\n </button>\n )}\n <button\n onClick={togglePanel}\n className=\"p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.closePanel', 'Close panel')}\n >\n <X size={16} className=\"text-tertiary\" />\n </button>\n </div>\n </div>\n\n {/* Notifications list */}\n <div className=\"flex-1 overflow-y-auto\">\n {recentNotifications.length > 0 ? (\n <div className=\"flex flex-col gap-2 p-2\">\n {recentNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n compact\n analyticsSource=\"panel\"\n />\n ))}\n </div>\n ) : glass ? (\n <EmptyState\n kind=\"all-done\"\n size=\"panel\"\n title={tr('notifCommon.noNotifications', 'No notifications')}\n description={tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n />\n ) : (\n // BOFF-15570: drop the legacy branch once every product opts in to glassEmptyStates.\n <div className=\"flex flex-col items-center justify-center p-8 text-center animate-in fade-in duration-200\">\n <Bell size={48} className=\"text-tertiary mb-4\" />\n <p className=\"text-sm text-text-secondary\">\n {tr('notifCommon.noNotifications', 'No notifications')}\n </p>\n <p className=\"text-xs text-tertiary mt-1\">\n {tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n </p>\n </div>\n )}\n </div>\n\n {/* Footer */}\n {recentNotifications.length > 0 && (\n <div className=\"p-3 border-t border-default\">\n <button\n data-tour=\"notification-panel-view-all\"\n onClick={() => {\n togglePanel();\n if (onViewAll) onViewAll();\n }}\n className=\"w-full py-2 text-sm text-accent-primary hover:text-accent-primary/80 font-medium transition-colors duration-150\"\n >\n {tr('notifCommon.viewAllNotifications', 'View All Notifications')}\n </button>\n </div>\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d,cAAcC;MACd,WAAWC;MACX,UAAUC;MACV,SAAA;MACA,iBAAgB;KACjB,GAPMC,EAAa,EAOnB,CACF;IACE,CAAA,IACHjB,IACF,kBAACkB,GAAD;KACE,MAAK;KACL,MAAK;KACL,OAAOpB,EAAG,+BAA+B,kBAAkB;KAC3D,aAAaA,EAAG,2BAA2B,uBAAuB;IACnE,CAAA,IAGD,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACE,kBAACW,GAAD;OAAM,MAAM;OAAI,WAAU;MAAsB,CAAA;MAChD,kBAAC,KAAD;OAAG,WAAU;OACV,UAAAX,EAAG,+BAA+B,kBAAkB;MACpD,CAAA;MACH,kBAAC,KAAD;OAAG,WAAU;OACV,UAAAA,EAAG,2BAA2B,uBAAuB;MACrD,CAAA;KACA;;GAEJ,CAAA;GAGJO,EAAoB,SAAS,KAC5B,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAAC,UAAD;KACE,aAAU;KACV,eAAe;MAEb,AADAG,EAAY,GACRW,KAAWA,EAAU;KAC3B;KACA,WAAU;KAET,UAAArB,EAAG,oCAAoC,wBAAwB;IAC1D,CAAA;GACL,CAAA;EAEJ;CACL,CAAA,CAAA,EAAA,CAAA;AAEN"}
1
+ {"version":3,"file":"NotificationPanel.js","names":["_Fragment","NotificationPanel","tr","useTr","glass","useGlassEmptyStates","useNotificationStore","useNotifications","isPanelOpen","recentNotifications","notifications","Fragment","togglePanel","Bell","unreadCount","markAllAsRead","X","NotificationCard","markAsRead","archiveNotification","recordAction","notification","EmptyState","onViewAll"],"sources":["../../src/components/NotificationPanel.tsx"],"sourcesContent":["import { X, Bell } from 'lucide-react';\nimport { EmptyState, useGlassEmptyStates } from '@burdenoff/fe-libs/ui';\nimport { useNotificationStore } from '../store/notificationStore';\nimport { useNotifications } from '../hooks';\nimport { NotificationCard } from './NotificationCard';\nimport { useTr } from '../shared/hooks/useTr';\n\ninterface NotificationPanelProps {\n onViewAll?: () => void;\n}\n\n/**\n * Notification dropdown panel\n *\n * Quick view of recent notifications that appears when clicking the bell icon\n */\nexport function NotificationPanel({ onViewAll }: NotificationPanelProps) {\n const tr = useTr();\n const glass = useGlassEmptyStates();\n const { isPanelOpen, togglePanel } = useNotificationStore();\n const {\n notifications,\n unreadCount,\n markAsRead,\n markAllAsRead,\n archiveNotification,\n recordAction,\n } = useNotifications();\n\n if (!isPanelOpen) return null;\n\n // Show only the 5 most recent notifications\n const recentNotifications = notifications.slice(0, 5);\n\n return (\n <>\n {/* Backdrop */}\n <div className=\"fixed inset-0 z-40\" onClick={togglePanel} aria-hidden=\"true\" />\n\n {/* Panel */}\n <div\n data-tour=\"notification-panel\"\n className=\"absolute right-0 top-full mt-2 w-96 max-h-[600px] bg-gloss-card border border-border-seam rounded-lg shadow-[var(--shadow-pop)] z-50 overflow-hidden flex flex-col animate-in fade-in slide-in-from-top-2 duration-200\"\n >\n {/* Header */}\n <div className=\"flex items-center justify-between p-4 border-b border-border-seam bg-accent-wash\">\n <div className=\"flex items-center gap-2\">\n <Bell size={20} className=\"text-primary\" />\n <h2 className=\"text-base font-semibold text-primary\">\n {tr('notifCommon.notifications', 'Notifications')}\n </h2>\n {unreadCount > 0 && (\n <span className=\"px-2 py-0.5 text-xs font-semibold tabular-nums text-white bg-primary-500 rounded-full\">\n {unreadCount}\n </span>\n )}\n </div>\n\n <div className=\"flex items-center gap-2\">\n {unreadCount > 0 && (\n <button\n data-tour=\"notification-panel-mark-all-read\"\n onClick={markAllAsRead}\n className=\"text-xs text-accent-primary hover:text-accent-primary/80 transition-colors duration-150\"\n >\n {tr('notifCommon.markAllRead', 'Mark all read')}\n </button>\n )}\n <button\n onClick={togglePanel}\n className=\"p-1 hover:bg-bg-sunken rounded transition-colors duration-150\"\n aria-label={tr('notifCommon.closePanel', 'Close panel')}\n >\n <X size={16} className=\"text-tertiary\" />\n </button>\n </div>\n </div>\n\n {/* Notifications list */}\n <div className=\"flex-1 overflow-y-auto\">\n {recentNotifications.length > 0 ? (\n <div className=\"flex flex-col gap-2 p-2\">\n {recentNotifications.map((notification) => (\n <NotificationCard\n key={notification.id}\n notification={notification}\n onMarkAsRead={markAsRead}\n onArchive={archiveNotification}\n onAction={recordAction}\n compact\n analyticsSource=\"panel\"\n />\n ))}\n </div>\n ) : glass ? (\n <EmptyState\n kind=\"all-done\"\n size=\"panel\"\n title={tr('notifCommon.noNotifications', 'No notifications')}\n description={tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n />\n ) : (\n // BOFF-15570: drop the legacy branch once every product opts in to glassEmptyStates.\n <div className=\"flex flex-col items-center justify-center p-8 text-center animate-in fade-in duration-200\">\n <Bell size={48} className=\"text-tertiary mb-4\" />\n <p className=\"text-sm text-text-secondary\">\n {tr('notifCommon.noNotifications', 'No notifications')}\n </p>\n <p className=\"text-xs text-tertiary mt-1\">\n {tr('notifCommon.allCaughtUp', \"You're all caught up!\")}\n </p>\n </div>\n )}\n </div>\n\n {/* Footer */}\n {recentNotifications.length > 0 && (\n <div className=\"p-3 border-t border-default\">\n <button\n data-tour=\"notification-panel-view-all\"\n onClick={() => {\n togglePanel();\n if (onViewAll) onViewAll();\n }}\n className=\"w-full py-2 text-sm text-accent-primary hover:text-accent-primary/80 font-medium transition-colors duration-150\"\n >\n {tr('notifCommon.viewAllNotifications', 'View All Notifications')}\n </button>\n </div>\n )}\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;AAgBA,SAAgBC,EAAkB,EAAE,gBAAqC;CACvE,IAAMC,IAAKC,EAAM,GACXC,IAAQC,EAAoB,GAC5B,EAAE,gBAAa,mBAAgBC,EAAqB,GACpD,EACJ,kBACA,gBACA,eACA,kBACA,wBACA,oBACEC,EAAiB;CAErB,IAAI,CAACC,GAAa,OAAO;CAGzB,IAAMC,IAAsBC,EAAc,MAAM,GAAG,CAAC;CAEpD,OACE,kBAAAV,GAAA,EAAA,UAAA,CAEE,kBAAC,OAAD;EAAK,WAAU;EAAqB,SAASY;EAAa,eAAY;CAAQ,CAAA,GAG9E,k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,kBAAC,KAAD;OAAG,WAAU;OACV,UAAAA,EAAG,2BAA2B,uBAAuB;MACrD,CAAA;KACA;;GAEJ,CAAA;GAGJO,EAAoB,SAAS,KAC5B,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAAC,UAAD;KACE,aAAU;KACV,eAAe;MAEb,AADAG,EAAY,GACRW,KAAWA,EAAU;KAC3B;KACA,WAAU;KAET,UAAArB,EAAG,oCAAoC,wBAAwB;IAC1D,CAAA;GACL,CAAA;EAEJ;CACL,CAAA,CAAA,EAAA,CAAA;AAEN"}
@@ -15,6 +15,11 @@ export type CreateNotificationInput = {
15
15
  actions?: Array<NotificationActionInput> | null | undefined;
16
16
  appName?: string | null | undefined;
17
17
  body: string;
18
+ /**
19
+ * Feature category, a lower-case slug (letters, digits, "-", "_"; max 64),
20
+ * e.g. "proactive". Out-of-app copies follow the user's CATEGORY preference.
21
+ */
22
+ category?: string | null | undefined;
18
23
  channel: NotificationChannel;
19
24
  data?: Record<string, unknown> | null | undefined;
20
25
  expiresAt?: string | null | undefined;
@@ -31,6 +36,11 @@ export type CreateNotificationInput = {
31
36
  type?: NotificationType | null | undefined;
32
37
  };
33
38
  export type CreateNotificationPreferenceInput = {
39
+ /**
40
+ * Required for scope CATEGORY: "<category>" or "<category>.<appName>", e.g.
41
+ * "proactive.fluidgrids". The product-level key wins over the category-wide one.
42
+ */
43
+ category?: string | null | undefined;
34
44
  channel?: NotificationChannel | null | undefined;
35
45
  enabled?: boolean | null | undefined;
36
46
  frequency?: NotificationPreferenceFrequency | null | undefined;
@@ -79,9 +89,13 @@ export type NotificationEventType = 'BOUNCED' | 'CANCELLED' | 'CLICKED' | 'COMPL
79
89
  export type NotificationFilterInput = {
80
90
  appName?: string | null | undefined;
81
91
  archived?: boolean | null | undefined;
92
+ /** Only notifications in this category */
93
+ category?: string | null | undefined;
82
94
  channel?: NotificationChannel | null | undefined;
83
95
  deliveryStatus?: NotificationDeliveryStatus | null | undefined;
84
96
  endDate?: string | null | undefined;
97
+ /** Also return notifications snoozed into the future (hidden by default) */
98
+ includeSnoozed?: boolean | null | undefined;
85
99
  isRead?: boolean | null | undefined;
86
100
  priority?: NotificationPriority | null | undefined;
87
101
  search?: string | null | undefined;
@@ -108,6 +122,8 @@ export type NotificationMediaInput = {
108
122
  url: string;
109
123
  };
110
124
  export type NotificationPreferenceFilterInput = {
125
+ /** CATEGORY preference key, e.g. "proactive.fluidgrids" */
126
+ category?: string | null | undefined;
111
127
  channel?: NotificationChannel | null | undefined;
112
128
  enabled?: boolean | null | undefined;
113
129
  scope?: NotificationPreferenceScope | null | undefined;
@@ -116,7 +132,9 @@ export type NotificationPreferenceFilterInput = {
116
132
  userId?: string | number | null | undefined;
117
133
  };
118
134
  export type NotificationPreferenceFrequency = 'DAILY_DIGEST' | 'IMMEDIATE' | 'NEVER' | 'WEEKLY_DIGEST';
119
- export type NotificationPreferenceScope = 'CHANNEL' | 'GLOBAL' | 'TOPIC' | 'TYPE';
135
+ export type NotificationPreferenceScope =
136
+ /** Feature category (e.g. proactive), optionally per app: key "proactive.fluidgrids" */
137
+ 'CATEGORY' | 'CHANNEL' | 'GLOBAL' | 'TOPIC' | 'TYPE';
120
138
  export type NotificationPriority = 'HIGH' | 'LOW' | 'MEDIUM' | 'URGENT';
121
139
  export type NotificationStatus = 'CANCELLED' | 'DELIVERED' | 'DRAFT' | 'EXPIRED' | 'FAILED' | 'PENDING' | 'READ' | 'SCHEDULED' | 'SENT' | 'TRIGGERED';
122
140
  export type NotificationTopicFilterInput = {
@@ -188,8 +206,6 @@ export type TriggerBatchNotificationsInput = {
188
206
  export type TriggerNotificationInput = {
189
207
  /** Specific channel instance ID from channel service (takes precedence) */
190
208
  channelId?: string | number | null | undefined;
191
- /** Channels to deliver to (deprecated - use channelId or platform instead) */
192
- channels?: Array<NotificationChannel> | null | undefined;
193
209
  /** Also deliver as in-app notification alongside the primary platform */
194
210
  includeInApp?: boolean | null | undefined;
195
211
  /** Or create and trigger a new notification */
@@ -203,9 +219,13 @@ export type TriggerNotificationInput = {
203
219
  };
204
220
  export type TriggerNotificationWithTemplateInput = {
205
221
  actions?: Array<NotificationActionInput> | null | undefined;
222
+ /** Feature category stored on every created notification, e.g. "proactive" */
223
+ category?: string | null | undefined;
206
224
  /** Specific channel instance ID from channel service (takes precedence) */
207
225
  channelId?: string | number | null | undefined;
208
226
  expiresAt?: string | null | undefined;
227
+ /** At-most-once delivery key forwarded to channel-svc (same key + same input = one delivery) */
228
+ idempotencyKey?: string | null | undefined;
209
229
  /** Also deliver as in-app notification alongside the primary platform */
210
230
  includeInApp?: boolean | null | undefined;
211
231
  media?: Array<NotificationMediaInput> | null | undefined;
@@ -230,6 +250,8 @@ export type TriggerNotificationWithTemplateInput = {
230
250
  };
231
251
  export type TriggerStatus = 'CANCELLED' | 'FAILED' | 'PENDING' | 'TRIGGERED';
232
252
  export type UpdateNotificationPreferenceInput = {
253
+ /** CATEGORY preference key; see CreateNotificationPreferenceInput.category */
254
+ category?: string | null | undefined;
233
255
  channel?: NotificationChannel | null | undefined;
234
256
  enabled?: boolean | null | undefined;
235
257
  frequency?: NotificationPreferenceFrequency | null | undefined;
@@ -547,6 +569,16 @@ export type MarkNotificationAsReadMutation = {
547
569
  status: Types.NotificationStatus;
548
570
  };
549
571
  };
572
+ export type MarkNotificationAsUnreadMutationVariables = Exact<{
573
+ id: string | number;
574
+ }>;
575
+ export type MarkNotificationAsUnreadMutation = {
576
+ markNotificationAsUnread: {
577
+ id: string;
578
+ readAt: string | null;
579
+ isRead: boolean;
580
+ };
581
+ };
550
582
  export type MarkNotificationsAsReadMutationVariables = Exact<{
551
583
  notificationIds: Array<string | number> | string | number;
552
584
  }>;
@@ -1481,6 +1513,29 @@ export declare function useMarkNotificationAsReadMutation(baseOptions?: ApolloRe
1481
1513
  export type MarkNotificationAsReadMutationHookResult = ReturnType<typeof useMarkNotificationAsReadMutation>;
1482
1514
  export type MarkNotificationAsReadMutationResult = Apollo.MutationResult<Types.MarkNotificationAsReadMutation>;
1483
1515
  export type MarkNotificationAsReadMutationOptions = Apollo.BaseMutationOptions<Types.MarkNotificationAsReadMutation, Types.MarkNotificationAsReadMutationVariables>;
1516
+ export declare const MarkNotificationAsUnreadDocument: Apollo.DocumentNode;
1517
+ export type MarkNotificationAsUnreadMutationFn = Apollo.MutationFunction<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>;
1518
+ /**
1519
+ * __useMarkNotificationAsUnreadMutation__
1520
+ *
1521
+ * To run a mutation, you first call `useMarkNotificationAsUnreadMutation` within a React component and pass it any options that fit your needs.
1522
+ * When your component renders, `useMarkNotificationAsUnreadMutation` returns a tuple that includes:
1523
+ * - A mutate function that you can call at any time to execute the mutation
1524
+ * - An object with fields that represent the current status of the mutation's execution
1525
+ *
1526
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1527
+ *
1528
+ * @example
1529
+ * const [markNotificationAsUnreadMutation, { data, loading, error }] = useMarkNotificationAsUnreadMutation({
1530
+ * variables: {
1531
+ * id: // value for 'id'
1532
+ * },
1533
+ * });
1534
+ */
1535
+ export declare function useMarkNotificationAsUnreadMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.MarkNotificationAsUnreadMutation, any, Apollo.ApolloCache, undefined>;
1536
+ export type MarkNotificationAsUnreadMutationHookResult = ReturnType<typeof useMarkNotificationAsUnreadMutation>;
1537
+ export type MarkNotificationAsUnreadMutationResult = Apollo.MutationResult<Types.MarkNotificationAsUnreadMutation>;
1538
+ export type MarkNotificationAsUnreadMutationOptions = Apollo.BaseMutationOptions<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>;
1484
1539
  export declare const MarkNotificationsAsReadDocument: Apollo.DocumentNode;
1485
1540
  export type MarkNotificationsAsReadMutationFn = Apollo.MutationFunction<Types.MarkNotificationsAsReadMutation, Types.MarkNotificationsAsReadMutationVariables>;
1486
1541
  /**