@vokril/ui-solid 0.28.0 → 0.31.0

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 (262) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +48 -4
  3. package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
  4. package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
  5. package/dist/Button-4meERfnv.js +300 -0
  6. package/dist/Button-OyZHrl-t.cjs +1 -0
  7. package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
  8. package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
  9. package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
  10. package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
  11. package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
  12. package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
  13. package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
  14. package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
  15. package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
  16. package/dist/HostPortal-CpWsArs6.cjs +1 -0
  17. package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
  18. package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
  19. package/dist/Input-Brp5EDhg.cjs +1 -0
  20. package/dist/Input-CZi8KEfm.js +374 -0
  21. package/dist/Modal-CBi7Wd2V.cjs +1 -0
  22. package/dist/Modal-iyY1HUtr.js +588 -0
  23. package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
  24. package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
  25. package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
  26. package/dist/Popover-DXrczbt9.cjs +1 -0
  27. package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
  28. package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
  29. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
  30. package/dist/{StatusBarNotificationBell-yryWdwyX.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4980 -4678
  31. package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
  32. package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
  33. package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
  34. package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
  35. package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
  36. package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
  37. package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
  38. package/dist/ToggleButton-DWslrIBN.cjs +1 -0
  39. package/dist/_internal/contract/notification.d.cts +13 -3
  40. package/dist/_internal/contract/notification.d.ts +13 -3
  41. package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
  42. package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
  43. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
  44. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
  45. package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
  46. package/dist/anchoredLayout-E0mqCWxk.js +233 -0
  47. package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
  48. package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  49. package/dist/base.css +2 -2
  50. package/dist/charts/index.cjs +1 -1
  51. package/dist/charts/index.js +1 -1
  52. package/dist/context/DesktopContextMenuContext.d.cts +8 -1
  53. package/dist/context/DesktopContextMenuContext.d.ts +8 -1
  54. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
  55. package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
  56. package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
  57. package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
  58. package/dist/desktop/index.cjs +1 -1
  59. package/dist/desktop/index.js +3 -3
  60. package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
  61. package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  62. package/dist/feedback/index.cjs +1 -1
  63. package/dist/feedback/index.js +3 -3
  64. package/dist/forms/Input.d.cts +20 -0
  65. package/dist/forms/Input.d.ts +20 -0
  66. package/dist/forms/InputMessage.d.cts +19 -0
  67. package/dist/forms/InputMessage.d.ts +19 -0
  68. package/dist/forms/index.cjs +1 -1
  69. package/dist/forms/index.js +9 -9
  70. package/dist/grid/index.cjs +1 -1
  71. package/dist/grid/index.js +1 -1
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.js +516 -509
  74. package/dist/layout/index.cjs +1 -1
  75. package/dist/layout/index.js +2 -2
  76. package/dist/layout/resizeCarry.d.cts +17 -0
  77. package/dist/layout/resizeCarry.d.ts +17 -0
  78. package/dist/mainRealmDom-B215swW-.js +166 -0
  79. package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
  80. package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
  81. package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
  82. package/dist/navigation/index.cjs +1 -1
  83. package/dist/navigation/index.js +1 -1
  84. package/dist/notifications/NotificationItem.d.cts +12 -3
  85. package/dist/notifications/NotificationItem.d.ts +12 -3
  86. package/dist/notifications/NotificationsCenter.d.cts +18 -0
  87. package/dist/notifications/NotificationsCenter.d.ts +18 -0
  88. package/dist/notifications/RunningProgressCards.d.cts +3 -0
  89. package/dist/notifications/RunningProgressCards.d.ts +3 -0
  90. package/dist/notifications/StatusBarNotificationBell.d.cts +18 -6
  91. package/dist/notifications/StatusBarNotificationBell.d.ts +18 -6
  92. package/dist/notifications/dismissableToastIds.d.cts +2 -1
  93. package/dist/notifications/dismissableToastIds.d.ts +2 -1
  94. package/dist/notifications/fireNotification.d.cts +35 -16
  95. package/dist/notifications/fireNotification.d.ts +35 -16
  96. package/dist/notifications/index.cjs +1 -1
  97. package/dist/notifications/index.d.cts +1 -0
  98. package/dist/notifications/index.d.ts +1 -0
  99. package/dist/notifications/index.js +56 -52
  100. package/dist/notifications/nativeEngine.d.cts +54 -16
  101. package/dist/notifications/nativeEngine.d.ts +54 -16
  102. package/dist/notifications/notificationCardServices.d.cts +2 -1
  103. package/dist/notifications/notificationCardServices.d.ts +2 -1
  104. package/dist/notifications/notificationCommands.d.cts +3 -3
  105. package/dist/notifications/notificationCommands.d.ts +3 -3
  106. package/dist/notifications/notificationEntryList.d.cts +91 -0
  107. package/dist/notifications/notificationEntryList.d.ts +91 -0
  108. package/dist/notifications/notificationService.d.cts +33 -3
  109. package/dist/notifications/notificationService.d.ts +33 -3
  110. package/dist/notifications/toast.d.cts +3 -0
  111. package/dist/notifications/toast.d.ts +3 -0
  112. package/dist/notifications/toastCorner.d.cts +8 -0
  113. package/dist/notifications/toastCorner.d.ts +8 -0
  114. package/dist/notifications/toastFilterPolicy.d.cts +33 -1
  115. package/dist/notifications/toastFilterPolicy.d.ts +33 -1
  116. package/dist/overlay/Modal.d.cts +6 -0
  117. package/dist/overlay/Modal.d.ts +6 -0
  118. package/dist/overlay/backgroundInert.d.cts +6 -2
  119. package/dist/overlay/backgroundInert.d.ts +6 -2
  120. package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
  121. package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
  122. package/dist/overlay/index.cjs +1 -1
  123. package/dist/overlay/index.js +70 -68
  124. package/dist/overlay/nativeTitleHold.d.cts +24 -0
  125. package/dist/overlay/nativeTitleHold.d.ts +24 -0
  126. package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
  127. package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
  128. package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
  129. package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
  130. package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
  131. package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
  132. package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
  133. package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
  134. package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
  135. package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
  136. package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
  137. package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
  138. package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
  139. package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
  140. package/dist/server/Input-AdF-i0O8.js +245 -0
  141. package/dist/server/Input-XF9Jr0G9.cjs +1 -0
  142. package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
  143. package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
  144. package/dist/server/Popover-C5avmGWz.cjs +1 -0
  145. package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
  146. package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
  147. package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
  148. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
  149. package/dist/server/{StatusBarNotificationBell-DdAdsduo.js → StatusBarNotificationBell-DW2l5O9B.js} +4812 -4520
  150. package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
  151. package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
  152. package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
  153. package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
  154. package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
  155. package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
  156. package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
  157. package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
  158. package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
  159. package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  160. package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
  161. package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
  162. package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
  163. package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
  164. package/dist/server/desktop/index.cjs +1 -1
  165. package/dist/server/desktop/index.js +3 -3
  166. package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
  167. package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  168. package/dist/server/forms/index.cjs +1 -1
  169. package/dist/server/forms/index.js +7 -7
  170. package/dist/server/grid/index.cjs +1 -1
  171. package/dist/server/grid/index.js +1 -1
  172. package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
  173. package/dist/server/index-C6rYfWCJ.cjs +1 -0
  174. package/dist/server/index.cjs +1 -1
  175. package/dist/server/index.js +478 -472
  176. package/dist/server/layout/index.cjs +1 -1
  177. package/dist/server/layout/index.js +2 -2
  178. package/dist/server/navigation/index.cjs +1 -1
  179. package/dist/server/navigation/index.js +1 -1
  180. package/dist/server/notifications/index.cjs +1 -1
  181. package/dist/server/notifications/index.js +56 -52
  182. package/dist/server/overlay/index.cjs +1 -1
  183. package/dist/server/overlay/index.js +54 -53
  184. package/dist/server/tokens/index.cjs +1 -1
  185. package/dist/server/tokens/index.js +30 -28
  186. package/dist/solid/feedback/Badge.jsx +3 -14
  187. package/dist/solid/forms/Button.jsx +3 -14
  188. package/dist/solid/forms/Input.jsx +31 -5
  189. package/dist/solid/forms/Input.module.css.js +1 -0
  190. package/dist/solid/forms/InputMessage.jsx +86 -0
  191. package/dist/solid/forms/PressableSurface.jsx +3 -14
  192. package/dist/solid/layout/ResizeHandle.jsx +11 -1
  193. package/dist/solid/layout/resizeCarry.js +31 -0
  194. package/dist/solid/notifications/NotificationHost.jsx +6 -29
  195. package/dist/solid/notifications/NotificationItem.jsx +5 -5
  196. package/dist/solid/notifications/NotificationPanel.jsx +14 -4
  197. package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
  198. package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
  199. package/dist/solid/notifications/StatusBarNotificationBell.jsx +21 -19
  200. package/dist/solid/notifications/catalogAdapter.js +1 -0
  201. package/dist/solid/notifications/fireNotification.js +21 -16
  202. package/dist/solid/notifications/index.js +1 -0
  203. package/dist/solid/notifications/nativeEngine.js +51 -11
  204. package/dist/solid/notifications/notificationEntryList.js +168 -0
  205. package/dist/solid/notifications/notificationService.js +22 -4
  206. package/dist/solid/notifications/toast.js +54 -7
  207. package/dist/solid/notifications/toastCorner.js +3 -0
  208. package/dist/solid/notifications/toastFilterPolicy.js +12 -0
  209. package/dist/solid/overlay/Drawer.jsx +2 -1
  210. package/dist/solid/overlay/Modal.jsx +42 -4
  211. package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
  212. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
  213. package/dist/solid/overlay/nativeTitleHold.js +33 -0
  214. package/dist/solid/overlay/tooltipDirective.js +3 -11
  215. package/dist/solid/tokens/index.js +1 -0
  216. package/dist/solid/tokens/palette/paletteContract.js +27 -0
  217. package/dist/style.css +2 -2
  218. package/dist/theme.css +1 -1
  219. package/dist/tokens/index.cjs +1 -1
  220. package/dist/tokens/index.d.cts +1 -0
  221. package/dist/tokens/index.d.ts +1 -0
  222. package/dist/tokens/index.js +30 -28
  223. package/dist/tokens/palette/paletteContract.d.cts +17 -0
  224. package/dist/tokens/palette/paletteContract.d.ts +17 -0
  225. package/dist/tokens/tokens.css +1 -1
  226. package/dist/ui.css +1 -1
  227. package/package.json +1 -1
  228. package/dist/Button-Bb68ymNP.cjs +0 -1
  229. package/dist/Button-D-T0tyGF.js +0 -305
  230. package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
  231. package/dist/HostPortal-CgJwxt-f.cjs +0 -1
  232. package/dist/Input-CZruORyy.cjs +0 -1
  233. package/dist/Input-DkPhsdfk.js +0 -227
  234. package/dist/Modal-CY6ePolt.cjs +0 -1
  235. package/dist/Modal-NzZzHSwb.js +0 -559
  236. package/dist/Popover-CWrR51eG.cjs +0 -1
  237. package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
  238. package/dist/StatusBarNotificationBell-CJ3HuhRu.cjs +0 -50
  239. package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
  240. package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
  241. package/dist/anchoredLayout-FC-qv8xm.js +0 -250
  242. package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
  243. package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
  244. package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
  245. package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
  246. package/dist/dialogFocusRestore--dH59ER2.js +0 -35
  247. package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  248. package/dist/mainRealmDom-C12lr9lm.js +0 -171
  249. package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
  250. package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
  251. package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
  252. package/dist/server/Input-CjvD8w18.cjs +0 -1
  253. package/dist/server/Input-DaEN2JJd.js +0 -127
  254. package/dist/server/Popover-BsxIKBbl.cjs +0 -1
  255. package/dist/server/StatusBarNotificationBell-Z2LmIkM1.cjs +0 -49
  256. package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
  257. package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
  258. package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
  259. package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  260. package/dist/server/index-2mQPVEDR.cjs +0 -1
  261. package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
  262. package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
@@ -1,8 +1,17 @@
1
1
  export interface StatusBarNotificationBellProps {
2
+ /**
3
+ * Whether the popover's notification center is open, when the host holds that state — so the host's own code can
4
+ * open the center, as a status-bar entry of a progress that runs out of sight does (the reference's window progress
5
+ * entry runs `notifications.showList`, `workbench/services/progress/browser/progressService.ts:258-263`). The bell
6
+ * then shows what `open` says and asks for each change of its own through `onOpenChange`. Unset, the bell holds the
7
+ * state itself.
8
+ */
9
+ readonly open?: boolean | undefined;
2
10
  /**
3
11
  * The popover's notification center opened or closed — by the bell, a click outside, the center's own hide, or the
4
- * bell leaving the page while open. A host feeds it to its `NotificationHost`'s `centerOpen`, so the toast stack
5
- * hides while the popover lists the same cards: the center draws the running progress cards too.
12
+ * bell leaving the page while open; a bell whose host holds the state (`open`) asks for that change here and waits
13
+ * for `open`. A host feeds it to its `NotificationHost`'s `centerOpen`, so the toast stack hides while the popover
14
+ * lists the same cards: the center draws the running progress cards too.
6
15
  */
7
16
  readonly onOpenChange?: (open: boolean) => void;
8
17
  }
@@ -12,10 +21,13 @@ export interface StatusBarNotificationBellProps {
12
21
  * bell-off glyph while Do Not Disturb is on, hints at the progress that runs out of
13
22
  * sight, and toggles the familiar NotificationsCenter popover anchored above it. The
14
23
  * caller gates rendering (hidden on the SQL editor page, which already surfaces
15
- * notifications in the bottom dock).
24
+ * notifications in the bottom dock). A host that opens the center from its own code
25
+ * holds the popover's state (`open` with `onOpenChange`), as the kit's other popovers
26
+ * with a controlled state do (`DropdownMenu`, `Picker`).
16
27
  *
17
- * The hint reads this window's toasts: the bell registers its window for the right to
18
- * paint them (`DisplayOwner`), like the `NotificationHost` the window mounts, so it is
19
- * mounted under the root's `HostWindowProvider` too.
28
+ * The hint counts what the realm's stack keeps out of sight (`hiddenRunningProgress`),
29
+ * the definition an application's status-bar mirror of such a progress reads too, so
30
+ * the two never disagree. A card the stack shows is in sight wherever the user looks:
31
+ * the stack paints in the window that owns the display, the focused one.
20
32
  */
21
33
  export declare function StatusBarNotificationBell(props: StatusBarNotificationBellProps): import("solid-js").JSX.Element;
@@ -17,7 +17,8 @@ export interface DismissableToastCandidate {
17
17
  * the caller can send exactly those away through the stack's `dismiss(id)`.
18
18
  * A running progress among them is not closed: `dismiss` only takes it off the
19
19
  * stack and the notification center keeps it alive, as the reference's Escape
20
- * hides every toast and closes none (`notificationsToasts.ts:481-489`).
20
+ * hides every toast and closes none (`notificationsToasts.ts:481-489`) — and
21
+ * where no center is reachable, `dismiss` leaves it on the stack.
21
22
  *
22
23
  * Pure and input-immutable: it reads `items` and returns a fresh array.
23
24
  */
@@ -17,7 +17,8 @@ export interface DismissableToastCandidate {
17
17
  * the caller can send exactly those away through the stack's `dismiss(id)`.
18
18
  * A running progress among them is not closed: `dismiss` only takes it off the
19
19
  * stack and the notification center keeps it alive, as the reference's Escape
20
- * hides every toast and closes none (`notificationsToasts.ts:481-489`).
20
+ * hides every toast and closes none (`notificationsToasts.ts:481-489`) — and
21
+ * where no center is reachable, `dismiss` leaves it on the stack.
21
22
  *
22
23
  * Pure and input-immutable: it reads `items` and returns a fresh array.
23
24
  */
@@ -15,7 +15,7 @@
15
15
  * service, passed in as {@link NotificationSinks}.
16
16
  */
17
17
  import type { OsNotifyOptions } from '../_internal/app/platform/electronBridge.cjs';
18
- import { type FilterDecision } from './toastFilterPolicy.cjs';
18
+ import { type FilterDecision, type NotificationFilter } from './toastFilterPolicy.cjs';
19
19
  import type { NotificationAudio } from './notificationAudio.cjs';
20
20
  import type { WebhookDelivery } from './webhookDelivery.cjs';
21
21
  import type { EmailDigest } from './emailDigest.cjs';
@@ -34,31 +34,50 @@ export interface NotificationSinks {
34
34
  /** The OS notification centre (fire-and-forget; the in-app toast is shown regardless). */
35
35
  readonly osNotify: (options: OsNotifyOptions) => void;
36
36
  }
37
+ /** The keys an issue names its notification by — the user's choices on its cards are kept on them. */
38
+ export interface IssueKeys {
39
+ /** "Don't show again" (`ToastCommonOptions.dontShowAgainKey`). */
40
+ readonly dontShowAgainKey: string | undefined;
41
+ /** The issuer's key for "remind me later" (`ToastCommonOptions.remindKey`). */
42
+ readonly remindKey: string | undefined;
43
+ }
44
+ /** One issue as its filter decision reads it. */
45
+ export interface IssueDecisionInput extends IssueKeys {
46
+ readonly source: NotificationSourceId;
47
+ readonly title: string;
48
+ readonly severity: NotificationSeverity;
49
+ readonly priority: NotificationPriority;
50
+ /** The caller's `recordTimeline`; `false` always wins. */
51
+ readonly recordTimeline: boolean | undefined;
52
+ /** The realm's run-time filter at the issue (`Notifications.getFilter`). */
53
+ readonly filter: NotificationFilter;
54
+ }
37
55
  /**
38
56
  * The filter decision with its gates computed: the pure policy takes the suppression answers as
39
- * precomputed booleans, and they are asked here, in one place.
57
+ * precomputed booleans, and they are asked here, in one place. The run-time filter decides through the
58
+ * priority ({@link filteredPriority}).
40
59
  */
41
- export declare function decideFilter(source: NotificationSourceId, title: string, priority: NotificationPriority, dontShowAgainKey: string | undefined, recordTimeline: boolean | undefined): FilterDecision;
60
+ export declare function decideFilter(issue: IssueDecisionInput): FilterDecision;
42
61
  /**
43
- * Whether the user turned a notification of this key and text down on a card — "don't show again", "remind me later".
44
- * Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's explicit
45
- * rejections): a progress gets no card, not even one in the notification center.
62
+ * Whether the user turned a notification of these keys and this text down on a card — "don't show again", "remind me
63
+ * later". Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
64
+ * explicit rejections): a progress gets no card, not even one in the notification center.
46
65
  */
47
- export declare function turnedDownOnCard(source: string, title: string, dontShowAgainKey: string | undefined): boolean;
66
+ export declare function turnedDownOnCard(source: string, title: string, keys: IssueKeys): boolean;
48
67
  /**
49
68
  * Whether the user turned a shown card's notification down — the keys its gear menu writes (`NotificationItem`):
50
- * "don't show again" on its `neverShowAgainKey`, "remind me later" on that key, else on the card's `remindKey` (the
51
- * text a progress was issued with), else on the key derived from its source and title. The engine ends a running card
52
- * the user closes under such a choice instead of sending it to the notification center
69
+ * "don't show again" on its `neverShowAgainKey`, "remind me later" on the card's remind key ({@link cardRemindKey}).
70
+ * The engine ends a running card the user closes under such a choice instead of sending it to the notification center
53
71
  * (`NativeNotificationEngineDependencies.isTurnedDown`).
54
72
  */
55
73
  export declare function turnedDownCard(item: Pick<NotificationInput, 'neverShowAgainKey' | 'remindKey' | 'source' | 'title'>): boolean;
56
74
  /**
57
- * Whether the notification settings now keep a card of this source and priority off the screen — an issue's decision
58
- * without the per-key choices: "don't show again" and "remind me later" are made on the card, which they close — a
59
- * running progress too ({@link turnedDownCard}) —, and an issue they turn down is {@link turnedDownOnCard}.
75
+ * Whether the notification settings — and the realm's run-time filter — now keep a card of this source, severity and
76
+ * priority off the screen: an issue's decision without the per-key choices. "Don't show again" and "remind me later"
77
+ * are made on the card, which they close — a running progress too ({@link turnedDownCard}) —, and an issue they turn
78
+ * down is {@link turnedDownOnCard}.
60
79
  */
61
- export declare function silencedBySettings(source: string, priority: NotificationPriority): boolean;
80
+ export declare function silencedBySettings(source: string, severity: NotificationSeverity, priority: NotificationPriority, filter: NotificationFilter): boolean;
62
81
  /**
63
82
  * A card's buttons as the engine takes them — `primary` first, then `others` in declaration order. A click is counted
64
83
  * for the source; unless the action keeps the card (`expireOnAction: false`) the card then closes, as the program's
@@ -68,9 +87,9 @@ export declare function nativeActionsOf(sinks: NotificationSinks, primary: Toast
68
87
  /**
69
88
  * A card's presentation from a verb's options — one mapping for the message verbs and the progress, so a progress no
70
89
  * longer drops what its catalog payload carries and the catalog preview paints: the body, markdown, icon,
71
- * announcement, page, duration and "don't show again" key.
90
+ * announcement, page, duration, "don't show again" key and the issuer's remind key.
72
91
  */
73
- export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'icon' | 'announce' | 'defaultRoute'>;
92
+ export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'remindKey' | 'icon' | 'announce' | 'defaultRoute'>;
74
93
  export interface FireOptions {
75
94
  severity: NotificationSeverity;
76
95
  title: string;
@@ -15,7 +15,7 @@
15
15
  * service, passed in as {@link NotificationSinks}.
16
16
  */
17
17
  import type { OsNotifyOptions } from '../_internal/app/platform/electronBridge.js';
18
- import { type FilterDecision } from './toastFilterPolicy.js';
18
+ import { type FilterDecision, type NotificationFilter } from './toastFilterPolicy.js';
19
19
  import type { NotificationAudio } from './notificationAudio.js';
20
20
  import type { WebhookDelivery } from './webhookDelivery.js';
21
21
  import type { EmailDigest } from './emailDigest.js';
@@ -34,31 +34,50 @@ export interface NotificationSinks {
34
34
  /** The OS notification centre (fire-and-forget; the in-app toast is shown regardless). */
35
35
  readonly osNotify: (options: OsNotifyOptions) => void;
36
36
  }
37
+ /** The keys an issue names its notification by — the user's choices on its cards are kept on them. */
38
+ export interface IssueKeys {
39
+ /** "Don't show again" (`ToastCommonOptions.dontShowAgainKey`). */
40
+ readonly dontShowAgainKey: string | undefined;
41
+ /** The issuer's key for "remind me later" (`ToastCommonOptions.remindKey`). */
42
+ readonly remindKey: string | undefined;
43
+ }
44
+ /** One issue as its filter decision reads it. */
45
+ export interface IssueDecisionInput extends IssueKeys {
46
+ readonly source: NotificationSourceId;
47
+ readonly title: string;
48
+ readonly severity: NotificationSeverity;
49
+ readonly priority: NotificationPriority;
50
+ /** The caller's `recordTimeline`; `false` always wins. */
51
+ readonly recordTimeline: boolean | undefined;
52
+ /** The realm's run-time filter at the issue (`Notifications.getFilter`). */
53
+ readonly filter: NotificationFilter;
54
+ }
37
55
  /**
38
56
  * The filter decision with its gates computed: the pure policy takes the suppression answers as
39
- * precomputed booleans, and they are asked here, in one place.
57
+ * precomputed booleans, and they are asked here, in one place. The run-time filter decides through the
58
+ * priority ({@link filteredPriority}).
40
59
  */
41
- export declare function decideFilter(source: NotificationSourceId, title: string, priority: NotificationPriority, dontShowAgainKey: string | undefined, recordTimeline: boolean | undefined): FilterDecision;
60
+ export declare function decideFilter(issue: IssueDecisionInput): FilterDecision;
42
61
  /**
43
- * Whether the user turned a notification of this key and text down on a card — "don't show again", "remind me later".
44
- * Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's explicit
45
- * rejections): a progress gets no card, not even one in the notification center.
62
+ * Whether the user turned a notification of these keys and this text down on a card — "don't show again", "remind me
63
+ * later". Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
64
+ * explicit rejections): a progress gets no card, not even one in the notification center.
46
65
  */
47
- export declare function turnedDownOnCard(source: string, title: string, dontShowAgainKey: string | undefined): boolean;
66
+ export declare function turnedDownOnCard(source: string, title: string, keys: IssueKeys): boolean;
48
67
  /**
49
68
  * Whether the user turned a shown card's notification down — the keys its gear menu writes (`NotificationItem`):
50
- * "don't show again" on its `neverShowAgainKey`, "remind me later" on that key, else on the card's `remindKey` (the
51
- * text a progress was issued with), else on the key derived from its source and title. The engine ends a running card
52
- * the user closes under such a choice instead of sending it to the notification center
69
+ * "don't show again" on its `neverShowAgainKey`, "remind me later" on the card's remind key ({@link cardRemindKey}).
70
+ * The engine ends a running card the user closes under such a choice instead of sending it to the notification center
53
71
  * (`NativeNotificationEngineDependencies.isTurnedDown`).
54
72
  */
55
73
  export declare function turnedDownCard(item: Pick<NotificationInput, 'neverShowAgainKey' | 'remindKey' | 'source' | 'title'>): boolean;
56
74
  /**
57
- * Whether the notification settings now keep a card of this source and priority off the screen — an issue's decision
58
- * without the per-key choices: "don't show again" and "remind me later" are made on the card, which they close — a
59
- * running progress too ({@link turnedDownCard}) —, and an issue they turn down is {@link turnedDownOnCard}.
75
+ * Whether the notification settings — and the realm's run-time filter — now keep a card of this source, severity and
76
+ * priority off the screen: an issue's decision without the per-key choices. "Don't show again" and "remind me later"
77
+ * are made on the card, which they close — a running progress too ({@link turnedDownCard}) —, and an issue they turn
78
+ * down is {@link turnedDownOnCard}.
60
79
  */
61
- export declare function silencedBySettings(source: string, priority: NotificationPriority): boolean;
80
+ export declare function silencedBySettings(source: string, severity: NotificationSeverity, priority: NotificationPriority, filter: NotificationFilter): boolean;
62
81
  /**
63
82
  * A card's buttons as the engine takes them — `primary` first, then `others` in declaration order. A click is counted
64
83
  * for the source; unless the action keeps the card (`expireOnAction: false`) the card then closes, as the program's
@@ -68,9 +87,9 @@ export declare function nativeActionsOf(sinks: NotificationSinks, primary: Toast
68
87
  /**
69
88
  * A card's presentation from a verb's options — one mapping for the message verbs and the progress, so a progress no
70
89
  * longer drops what its catalog payload carries and the catalog preview paints: the body, markdown, icon,
71
- * announcement, page, duration and "don't show again" key.
90
+ * announcement, page, duration, "don't show again" key and the issuer's remind key.
72
91
  */
73
- export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'icon' | 'announce' | 'defaultRoute'>;
92
+ export declare function cardPresentation(options: ToastCommonOptions): Pick<NotificationInput, 'body' | 'markdown' | 'durationMs' | 'neverShowAgainKey' | 'remindKey' | 'icon' | 'announce' | 'defaultRoute'>;
74
93
  export interface FireOptions {
75
94
  severity: NotificationSeverity;
76
95
  title: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-CJ3HuhRu.cjs"),e=require("../mainRealmDom-S6teqEr4.cjs"),t=require("../useSettingsSubscription-DKjCwmRd.cjs");exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=i.ACCEPT_PRIMARY_ACTION_NOTIFICATION;exports.CLEAR_NOTIFICATION=i.CLEAR_NOTIFICATION;exports.HIDE_NOTIFICATION_TOASTS=i.HIDE_NOTIFICATION_TOASTS;exports.LogFilterBar=i.LogFilterBar;exports.NOTIFICATION_SOURCES=i.NOTIFICATION_SOURCES;exports.NOTIFICATION_SOURCE_IDS=i.NOTIFICATION_SOURCE_IDS;exports.NO_NOTIFICATION_OVERLAY=i.NO_NOTIFICATION_OVERLAY;exports.NotificationHost=i.NotificationHost;exports.NotificationItem=i.NotificationItem;exports.NotificationPanel=i.NotificationPanel;exports.NotificationService=i.NotificationService;exports.NotificationTimeline=i.NotificationTimeline;exports.NotificationsCenter=i.NotificationsCenter;exports.SEVERITY_ORDER=i.SEVERITY_ORDER;exports.SEVERITY_TONES=i.SEVERITY_TONES;exports.StatusBarNotificationBell=i.StatusBarNotificationBell;exports.appWindowNotificationOverlay=i.appWindowNotificationOverlay;exports.applyNotificationRules=i.applyNotificationRules;exports.clearCompiledRuleRegexCache=i.clearCompiledRuleRegexCache;exports.compileNotificationSearchMatcher=i.compileNotificationSearchMatcher;exports.createNativeNotificationEngine=i.createNativeNotificationEngine;exports.createNotificationPreviewRuntime=i.createNotificationPreviewRuntime;exports.decideFilter=i.decideFilter;exports.deleteWebhookUrl=i.deleteWebhookUrl;exports.deriveImplicitRemindKey=i.deriveImplicitRemindKey;exports.dismissKey=i.dismissKey;exports.dismissableToastIds=i.dismissableToastIds;exports.entryVendorMatch=i.entryVendorMatch;exports.exportTimelineAsCsv=i.exportTimelineAsCsv;exports.exportTimelineAsJson=i.exportTimelineAsJson;exports.filterNotificationTimeline=i.filterNotificationTimeline;exports.getSmtpPass=i.getSmtpPass;exports.getWebhookUrl=i.getWebhookUrl;exports.groupTimelineEntries=i.groupTimelineEntries;exports.isInQuietHours=i.isInQuietHours;exports.isKeyDismissed=i.isKeyDismissed;exports.isKeyRemindSuppressed=i.isKeyRemindSuppressed;exports.isNotificationSourceId=i.isNotificationSourceId;exports.isNotificationSticky=i.isNotificationSticky;exports.isOnToastStack=i.isOnToastStack;exports.isProgressRunning=i.isProgressRunning;exports.isSourceMuted=i.isSourceMuted;exports.isSpamDropHandle=i.isSpamDropHandle;exports.listNotificationSources=i.listNotificationSources;exports.nextQuietHoursStart=i.nextQuietHoursStart;exports.pruneOrphanWebhookSecrets=i.pruneOrphanWebhookSecrets;exports.registerFenceAliases=i.registerFenceAliases;exports.registerNotificationCommands=i.registerNotificationCommands;exports.remindLater=i.remindLater;exports.resolveCatalogPreviewPriority=i.resolveCatalogPreviewPriority;exports.resolveNotificationDuration=i.resolveNotificationDuration;exports.resolveNotificationSource=i.resolveNotificationSource;exports.resolveSeverityTone=i.resolveSeverityTone;exports.restoreAllKeys=i.restoreAllKeys;exports.restoreKey=i.restoreKey;exports.setSmtpPass=i.setSmtpPass;exports.setSourceMuted=i.setSourceMuted;exports.setWebhookUrl=i.setWebhookUrl;exports.shouldFireOsNative=i.shouldFireOsNative;exports.toTimelineActions=i.toTimelineActions;exports.unmuteAllSources=i.unmuteAllSources;exports.defineNotification=e.defineNotification;exports.defineNotificationScenario=e.defineNotificationScenario;exports.notificationSettings=t.notificationSettings;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../StatusBarNotificationBell-DQs5g1K6.cjs"),e=require("../mainRealmDom-BYGSE-fo.cjs"),t=require("../useSettingsSubscription-DKjCwmRd.cjs");exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=i.ACCEPT_PRIMARY_ACTION_NOTIFICATION;exports.CLEAR_NOTIFICATION=i.CLEAR_NOTIFICATION;exports.HIDE_NOTIFICATION_TOASTS=i.HIDE_NOTIFICATION_TOASTS;exports.LogFilterBar=i.LogFilterBar;exports.NOTIFICATION_SOURCES=i.NOTIFICATION_SOURCES;exports.NOTIFICATION_SOURCE_IDS=i.NOTIFICATION_SOURCE_IDS;exports.NO_NOTIFICATION_OVERLAY=i.NO_NOTIFICATION_OVERLAY;exports.NotificationHost=i.NotificationHost;exports.NotificationItem=i.NotificationItem;exports.NotificationPanel=i.NotificationPanel;exports.NotificationService=i.NotificationService;exports.NotificationTimeline=i.NotificationTimeline;exports.NotificationsCenter=i.NotificationsCenter;exports.SEVERITY_ORDER=i.SEVERITY_ORDER;exports.SEVERITY_TONES=i.SEVERITY_TONES;exports.StatusBarNotificationBell=i.StatusBarNotificationBell;exports.appWindowNotificationOverlay=i.appWindowNotificationOverlay;exports.applyNotificationRules=i.applyNotificationRules;exports.cardRemindKey=i.cardRemindKey;exports.clearCompiledRuleRegexCache=i.clearCompiledRuleRegexCache;exports.compileNotificationSearchMatcher=i.compileNotificationSearchMatcher;exports.createNativeNotificationEngine=i.createNativeNotificationEngine;exports.createNotificationPreviewRuntime=i.createNotificationPreviewRuntime;exports.decideFilter=i.decideFilter;exports.deleteWebhookUrl=i.deleteWebhookUrl;exports.deriveImplicitRemindKey=i.deriveImplicitRemindKey;exports.dismissKey=i.dismissKey;exports.dismissableToastIds=i.dismissableToastIds;exports.entryVendorMatch=i.entryVendorMatch;exports.exportTimelineAsCsv=i.exportTimelineAsCsv;exports.exportTimelineAsJson=i.exportTimelineAsJson;exports.filterNotificationTimeline=i.filterNotificationTimeline;exports.filteredPriority=i.filteredPriority;exports.focusFirstNotificationEntry=i.focusFirstNotificationEntry;exports.getSmtpPass=i.getSmtpPass;exports.getWebhookUrl=i.getWebhookUrl;exports.groupTimelineEntries=i.groupTimelineEntries;exports.hiddenRunningProgress=i.hiddenRunningProgress;exports.isInQuietHours=i.isInQuietHours;exports.isKeyDismissed=i.isKeyDismissed;exports.isKeyRemindSuppressed=i.isKeyRemindSuppressed;exports.isNotificationSourceId=i.isNotificationSourceId;exports.isNotificationSticky=i.isNotificationSticky;exports.isOnToastStack=i.isOnToastStack;exports.isProgressRunning=i.isProgressRunning;exports.isSourceMuted=i.isSourceMuted;exports.isSpamDropHandle=i.isSpamDropHandle;exports.listNotificationSources=i.listNotificationSources;exports.nextQuietHoursStart=i.nextQuietHoursStart;exports.pruneOrphanWebhookSecrets=i.pruneOrphanWebhookSecrets;exports.registerFenceAliases=i.registerFenceAliases;exports.registerNotificationCommands=i.registerNotificationCommands;exports.remindLater=i.remindLater;exports.resolveCatalogPreviewPriority=i.resolveCatalogPreviewPriority;exports.resolveNotificationDuration=i.resolveNotificationDuration;exports.resolveNotificationSource=i.resolveNotificationSource;exports.resolveSeverityTone=i.resolveSeverityTone;exports.restoreAllKeys=i.restoreAllKeys;exports.restoreKey=i.restoreKey;exports.setSmtpPass=i.setSmtpPass;exports.setSourceMuted=i.setSourceMuted;exports.setWebhookUrl=i.setWebhookUrl;exports.shouldFireOsNative=i.shouldFireOsNative;exports.toTimelineActions=i.toTimelineActions;exports.unmuteAllSources=i.unmuteAllSources;exports.defineNotification=e.defineNotification;exports.defineNotificationScenario=e.defineNotificationScenario;exports.notificationSettings=t.notificationSettings;
@@ -32,4 +32,5 @@ export { NotificationItem, type NotificationItemController, type NotificationIte
32
32
  export type { NotificationItem as NotificationItemModel } from './nativeEngine.cjs';
33
33
  export { NotificationPanel, type NotificationPanelProps } from './NotificationPanel.cjs';
34
34
  export { NotificationsCenter } from './NotificationsCenter.cjs';
35
+ export { focusFirstNotificationEntry } from './notificationEntryList.cjs';
35
36
  export { StatusBarNotificationBell, type StatusBarNotificationBellProps, } from './StatusBarNotificationBell.cjs';
@@ -32,4 +32,5 @@ export { NotificationItem, type NotificationItemController, type NotificationIte
32
32
  export type { NotificationItem as NotificationItemModel } from './nativeEngine.js';
33
33
  export { NotificationPanel, type NotificationPanelProps } from './NotificationPanel.js';
34
34
  export { NotificationsCenter } from './NotificationsCenter.js';
35
+ export { focusFirstNotificationEntry } from './notificationEntryList.js';
35
36
  export { StatusBarNotificationBell, type StatusBarNotificationBellProps, } from './StatusBarNotificationBell.js';
@@ -1,8 +1,8 @@
1
- import { A as a, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as I, f as S, g as f, h as T, S as m, i as d, j as u, k as O, l as p, m as A, n as C, o as R, p as E, q as v, r as _, s as g, t as y, u as h, v as F, w as P, x, y as k, z as D, B as K, D as b, E as H, F as M, G as U, I as W, J as L, K as V, M as Y, O as w, P as B, Q, R as J, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ei, a0 as ai, a1 as si, a2 as ti, a3 as oi, a4 as ri, a5 as ni, a6 as ci } from "../StatusBarNotificationBell-yryWdwyX.js";
2
- import { d as Ni, a as Ii } from "../mainRealmDom-C12lr9lm.js";
3
- import { n as fi } from "../useSettingsSubscription-DLEk4k4j.js";
1
+ import { A as e, C as s, H as t, L as o, N as r, a as n, b as c, c as l, d as N, e as f, f as d, g as I, h as S, S as T, i as m, j as u, k as O, l as p, m as R, n as A, o as C, p as y, q as E, r as g, s as v, t as _, u as h, v as F, w as P, x, y as K, z as k, B as D, D as b, E as H, F as M, G as U, I as W, J as L, K as V, M as Y, O as w, P as B, Q, R as J, T as j, U as q, V as z, W as G, X, Y as Z, Z as $, _ as ii, $ as ai, a0 as ei, a1 as si, a2 as ti, a3 as oi, a4 as ri, a5 as ni, a6 as ci, a7 as li, a8 as Ni, a9 as fi, aa as di } from "../StatusBarNotificationBell-ZTEhZFmJ.js";
2
+ import { d as Si, a as Ti } from "../mainRealmDom-B215swW-.js";
3
+ import { n as ui } from "../useSettingsSubscription-DLEk4k4j.js";
4
4
  export {
5
- a as ACCEPT_PRIMARY_ACTION_NOTIFICATION,
5
+ e as ACCEPT_PRIMARY_ACTION_NOTIFICATION,
6
6
  s as CLEAR_NOTIFICATION,
7
7
  t as HIDE_NOTIFICATION_TOASTS,
8
8
  o as LogFilterBar,
@@ -11,59 +11,63 @@ export {
11
11
  c as NO_NOTIFICATION_OVERLAY,
12
12
  l as NotificationHost,
13
13
  N as NotificationItem,
14
- I as NotificationPanel,
15
- S as NotificationService,
16
- f as NotificationTimeline,
17
- T as NotificationsCenter,
18
- m as SEVERITY_ORDER,
19
- d as SEVERITY_TONES,
14
+ f as NotificationPanel,
15
+ d as NotificationService,
16
+ I as NotificationTimeline,
17
+ S as NotificationsCenter,
18
+ T as SEVERITY_ORDER,
19
+ m as SEVERITY_TONES,
20
20
  u as StatusBarNotificationBell,
21
21
  O as appWindowNotificationOverlay,
22
22
  p as applyNotificationRules,
23
+ R as cardRemindKey,
23
24
  A as clearCompiledRuleRegexCache,
24
25
  C as compileNotificationSearchMatcher,
25
- R as createNativeNotificationEngine,
26
+ y as createNativeNotificationEngine,
26
27
  E as createNotificationPreviewRuntime,
27
- v as decideFilter,
28
- Ni as defineNotification,
29
- Ii as defineNotificationScenario,
30
- _ as deleteWebhookUrl,
31
- g as deriveImplicitRemindKey,
32
- y as dismissKey,
33
- h as dismissableToastIds,
34
- F as entryVendorMatch,
35
- P as exportTimelineAsCsv,
36
- x as exportTimelineAsJson,
28
+ g as decideFilter,
29
+ Si as defineNotification,
30
+ Ti as defineNotificationScenario,
31
+ v as deleteWebhookUrl,
32
+ _ as deriveImplicitRemindKey,
33
+ h as dismissKey,
34
+ F as dismissableToastIds,
35
+ P as entryVendorMatch,
36
+ x as exportTimelineAsCsv,
37
+ K as exportTimelineAsJson,
37
38
  k as filterNotificationTimeline,
38
- D as getSmtpPass,
39
- K as getWebhookUrl,
40
- b as groupTimelineEntries,
41
- H as isInQuietHours,
42
- M as isKeyDismissed,
43
- U as isKeyRemindSuppressed,
44
- W as isNotificationSourceId,
45
- L as isNotificationSticky,
46
- V as isOnToastStack,
47
- Y as isProgressRunning,
48
- w as isSourceMuted,
49
- B as isSpamDropHandle,
50
- Q as listNotificationSources,
51
- J as nextQuietHoursStart,
52
- fi as notificationSettings,
53
- j as pruneOrphanWebhookSecrets,
54
- q as registerFenceAliases,
55
- z as registerNotificationCommands,
56
- G as remindLater,
57
- X as resolveCatalogPreviewPriority,
58
- Z as resolveNotificationDuration,
59
- $ as resolveNotificationSource,
60
- ii as resolveSeverityTone,
61
- ei as restoreAllKeys,
62
- ai as restoreKey,
63
- si as setSmtpPass,
64
- ti as setSourceMuted,
65
- oi as setWebhookUrl,
66
- ri as shouldFireOsNative,
67
- ni as toTimelineActions,
68
- ci as unmuteAllSources
39
+ D as filteredPriority,
40
+ b as focusFirstNotificationEntry,
41
+ H as getSmtpPass,
42
+ M as getWebhookUrl,
43
+ U as groupTimelineEntries,
44
+ W as hiddenRunningProgress,
45
+ L as isInQuietHours,
46
+ V as isKeyDismissed,
47
+ Y as isKeyRemindSuppressed,
48
+ w as isNotificationSourceId,
49
+ B as isNotificationSticky,
50
+ Q as isOnToastStack,
51
+ J as isProgressRunning,
52
+ j as isSourceMuted,
53
+ q as isSpamDropHandle,
54
+ z as listNotificationSources,
55
+ G as nextQuietHoursStart,
56
+ ui as notificationSettings,
57
+ X as pruneOrphanWebhookSecrets,
58
+ Z as registerFenceAliases,
59
+ $ as registerNotificationCommands,
60
+ ii as remindLater,
61
+ ai as resolveCatalogPreviewPriority,
62
+ ei as resolveNotificationDuration,
63
+ si as resolveNotificationSource,
64
+ ti as resolveSeverityTone,
65
+ oi as restoreAllKeys,
66
+ ri as restoreKey,
67
+ ni as setSmtpPass,
68
+ ci as setSourceMuted,
69
+ li as setWebhookUrl,
70
+ Ni as shouldFireOsNative,
71
+ fi as toTimelineActions,
72
+ di as unmuteAllSources
69
73
  };
@@ -46,9 +46,10 @@ export interface NotificationInput extends NotificationInputBase {
46
46
  /** When set, the gear menu offers a "Don't show again" toggle keyed by this id. */
47
47
  neverShowAgainKey?: string;
48
48
  /**
49
- * The key "remind me later" on this card silences. A verb whose card's title moves away from the text it was issued
50
- * with (a progress's `update`) sets it, so the menu silences the next issue of that text — the key the issue's
51
- * decision checks; unset, the card derives it from its title. A `neverShowAgainKey` still wins.
49
+ * The key "remind me later" on this card silences — it wins over `neverShowAgainKey` (`cardRemindKey`). The issuer's
50
+ * key (`ToastCommonOptions.remindKey`) sets it; so does a verb whose card's title moves away from the text it was
51
+ * issued with (a progress's `update`), with its "don't show again" key, else the key of that text, so the menu
52
+ * silences the next issue the decision checks. Unset, the card keys on `neverShowAgainKey`, else on its title.
52
53
  */
53
54
  remindKey?: string;
54
55
  progress?: NotificationProgress;
@@ -71,13 +72,24 @@ export interface NotificationItem extends NotificationInput {
71
72
  focused: boolean;
72
73
  /**
73
74
  * The card is off the toast stack while its progress runs — the user sent it away (Escape, the native overlay's
74
- * close), or a setting that silences it took it back or was on when it was issued. It lives on in
75
- * the notification center, its handles still `open`, until the progress ends (the card is back on the toast stack
76
- * with its outcome, newest, unless a silencing setting ends it then), an issue under its id is shown, or its program
77
- * closes it. Only a running card is ever hidden ({@link isProgressRunning}), and only a mounted center draws it
78
- * (`NotificationsCenter`, `NotificationPanel`): a window that mounts none has no way to the card until then.
75
+ * close) where a notification center is reachable, or a setting that silences it took it back or was on when it was
76
+ * issued. It lives on in the notification center, its handles still `open`, until the progress ends (the card is
77
+ * back on the toast stack with its outcome, newest, unless a silencing setting ends it then), an issue under its id is
78
+ * shown, or its program closes it. Only a running card is ever hidden ({@link isProgressRunning}), and only a mounted
79
+ * center draws it (`NotificationsCenter`, `NotificationPanel`). A realm that reaches none says so
80
+ * ({@link NativeNotificationEngineDependencies.centerReachable}): the user's close then leaves the card on the stack.
81
+ * A setting that silences it hides it all the same — the settings keep it off the screen, center or not —, so there
82
+ * it is out of reach until its progress ends.
79
83
  */
80
84
  hidden?: boolean;
85
+ /**
86
+ * Since when the card has been out of the user's sight on the toast stack, by the engine's clock: sent to the
87
+ * notification center ({@link hidden}), or pushed past the visible cap by newer toasts — the host paints the newest
88
+ * `maxVisibleNotifications` of the cards on the stack ({@link isOnToastStack}). A card keeps the moment it first left
89
+ * sight until the stack shows it again, which clears it. The stack records it — nothing else sets it —, the host
90
+ * paints the cards on the toast stack that have none, and {@link hiddenRunningProgress} orders by it.
91
+ */
92
+ outOfSightSince?: number;
81
93
  }
82
94
  export interface NotificationHandle {
83
95
  id: string;
@@ -116,6 +128,12 @@ export interface NativeNotificationEngineDependencies {
116
128
  * Unset, the user turns no card down.
117
129
  */
118
130
  readonly isTurnedDown?: (item: NotificationItem) => boolean;
131
+ /**
132
+ * Whether the user can reach a notification center in the realm now — where the user's close sends a running
133
+ * progress ({@link NativeNotificationEngine.dismiss}). Read at each such close: where none is reachable, the card
134
+ * stays on the toast stack. Unset, a center is reachable.
135
+ */
136
+ readonly centerReachable?: () => boolean;
119
137
  readonly now?: () => number;
120
138
  readonly setTimeout?: (callback: () => void, timeoutMs: number) => number;
121
139
  readonly clearTimeout?: (handle: number) => void;
@@ -135,11 +153,13 @@ export interface NativeNotificationEngine {
135
153
  * The user sends a card away — its close button, Escape, Delete, a gear-menu choice, the native overlay's close: the
136
154
  * card closes and its handles report `dismissed`. A card whose progress runs is not the user's to end
137
155
  * ({@link isProgressRunning}): it only leaves the toast stack and lives on in the notification center (`hidden`), its
138
- * handles still `open` — unless the user turned its notification down
139
- * ({@link NativeNotificationEngineDependencies.isTurnedDown}): the gear menu's "don't show again" and "remind me
140
- * later", on the stack's card or a center's copy, end it (`dismissed`), as the reference's "Don't Show Again" closes
141
- * its notification (`workbench/services/notification/common/notificationService.ts:207-217`) and a chosen button
142
- * expires a running progress (`notificationsViewer.ts:519-529`).
156
+ * handles still `open` — and where no center is reachable
157
+ * ({@link NativeNotificationEngineDependencies.centerReachable}) it stays where it is, since nothing could draw it
158
+ * there —, unless the user turned its notification down ({@link NativeNotificationEngineDependencies.isTurnedDown}):
159
+ * the gear menu's "don't show again" and "remind me later", on the stack's card or a center's copy, end it
160
+ * (`dismissed`), as the reference's "Don't Show Again" closes its notification
161
+ * (`workbench/services/notification/common/notificationService.ts:207-217`) and a chosen button expires a running
162
+ * progress (`notificationsViewer.ts:519-529`).
143
163
  */
144
164
  readonly dismiss: (id: string) => void;
145
165
  /**
@@ -158,6 +178,12 @@ export interface NativeNotificationEngine {
158
178
  * is answered, never taken away.
159
179
  */
160
180
  readonly reject: (id: string) => void;
181
+ /**
182
+ * The settings the engine reads changed: which cards the visible cap (`maxVisibleNotifications`) leaves out of sight
183
+ * is read again ({@link NotificationItem.outOfSightSince}), and the stack emits when that changed. The realm's
184
+ * notification service calls it on every change of the notification settings.
185
+ */
186
+ readonly refresh: () => void;
161
187
  readonly dispose: () => void;
162
188
  }
163
189
  /**
@@ -193,9 +219,10 @@ export declare function isNotificationSticky(item: Pick<NotificationItem, 'stick
193
219
  * Whether the card's progress runs — the operation behind it ends such a card, not the user and not a setting: it has
194
220
  * no close button, Delete leaves it, and Escape, any other close of the user's or a setting that silences it only
195
221
  * sends it to the notification center (reference `notificationsViewer.ts:492-495`, `notificationsCommands.ts:138-141`,
196
- * `notificationsToasts.ts:481-489` and `:143-153`). Only the user's turning its notification down ends it
197
- * ({@link NativeNotificationEngine.dismiss}). A developer preview's progress (`isolated`: the catalog's preview toast,
198
- * the preview runtime's cards) has no operation behind it and closes like any card.
222
+ * `notificationsToasts.ts:481-489` and `:143-153`) — the user's close leaves it where it is when no center is
223
+ * reachable. Only the user's turning its notification down ends it ({@link NativeNotificationEngine.dismiss}). A
224
+ * developer preview's progress (`isolated`: the catalog's preview toast, the preview runtime's cards) has no operation
225
+ * behind it and closes like any card.
199
226
  */
200
227
  export declare function isProgressRunning(item: Pick<NotificationItem, 'progress' | 'isolated'>): boolean;
201
228
  /**
@@ -203,6 +230,17 @@ export declare function isProgressRunning(item: Pick<NotificationItem, 'progress
203
230
  * the notification center. The host paints these cards, and the engine clips the same ones to the visible cap.
204
231
  */
205
232
  export declare function isOnToastStack(item: Pick<NotificationItem, 'priority' | 'hidden'>): boolean;
233
+ /**
234
+ * The running progress cards out of the user's sight on the toast stack — sent to the notification center
235
+ * ({@link NotificationItem.hidden}) or pushed past the visible cap by newer toasts —, the one that left sight last
236
+ * first ({@link NotificationItem.outOfSightSince}; of those that left at the same moment, the newest first). Pure:
237
+ * `items` is the stack as it emits them. It is the kit's one answer to "which progress runs out of sight": the status
238
+ * bar bell counts these cards, and an application that mirrors such a progress in its status bar shows the first. The
239
+ * reference does the same with a notification progress whose toast is not visible — hidden, or left out by the
240
+ * toasts' cap (`notificationsToasts.ts:675-676`, `:705`) —: it runs on as a window progress, and the window progress
241
+ * entry shows the last one hidden (`workbench/services/progress/browser/progressService.ts:339-357`, `:127`, `:147`).
242
+ */
243
+ export declare function hiddenRunningProgress(items: readonly NotificationItem[]): NotificationItem[];
206
244
  /**
207
245
  * Creates an in-memory engine — the notification service's toast stack, or a preview's isolated one.
208
246
  * There is no module engine: whoever shows toasts owns one.