@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.
- package/CHANGELOG.md +81 -0
- package/README.md +48 -4
- package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
- package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
- package/dist/Button-4meERfnv.js +300 -0
- package/dist/Button-OyZHrl-t.cjs +1 -0
- package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
- package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
- package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
- package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
- package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
- package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
- package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
- package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
- package/dist/HostPortal-CpWsArs6.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
- package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
- package/dist/Input-Brp5EDhg.cjs +1 -0
- package/dist/Input-CZi8KEfm.js +374 -0
- package/dist/Modal-CBi7Wd2V.cjs +1 -0
- package/dist/Modal-iyY1HUtr.js +588 -0
- package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
- package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
- package/dist/Popover-DXrczbt9.cjs +1 -0
- package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
- package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
- package/dist/{StatusBarNotificationBell-yryWdwyX.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4980 -4678
- package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
- package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
- package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
- package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
- package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
- package/dist/ToggleButton-DWslrIBN.cjs +1 -0
- package/dist/_internal/contract/notification.d.cts +13 -3
- package/dist/_internal/contract/notification.d.ts +13 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/base.css +2 -2
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
- package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
- package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
- package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +3 -3
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +3 -3
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +516 -509
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-B215swW-.js +166 -0
- package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationItem.d.cts +12 -3
- package/dist/notifications/NotificationItem.d.ts +12 -3
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/StatusBarNotificationBell.d.cts +18 -6
- package/dist/notifications/StatusBarNotificationBell.d.ts +18 -6
- package/dist/notifications/dismissableToastIds.d.cts +2 -1
- package/dist/notifications/dismissableToastIds.d.ts +2 -1
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +56 -52
- package/dist/notifications/nativeEngine.d.cts +54 -16
- package/dist/notifications/nativeEngine.d.ts +54 -16
- package/dist/notifications/notificationCardServices.d.cts +2 -1
- package/dist/notifications/notificationCardServices.d.ts +2 -1
- package/dist/notifications/notificationCommands.d.cts +3 -3
- package/dist/notifications/notificationCommands.d.ts +3 -3
- package/dist/notifications/notificationEntryList.d.cts +91 -0
- package/dist/notifications/notificationEntryList.d.ts +91 -0
- package/dist/notifications/notificationService.d.cts +33 -3
- package/dist/notifications/notificationService.d.ts +33 -3
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +6 -0
- package/dist/overlay/Modal.d.ts +6 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +70 -68
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
- package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
- package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
- package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
- package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
- package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
- package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
- package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
- package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
- package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
- package/dist/server/Input-AdF-i0O8.js +245 -0
- package/dist/server/Input-XF9Jr0G9.cjs +1 -0
- package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
- package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
- package/dist/server/Popover-C5avmGWz.cjs +1 -0
- package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
- package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
- package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
- package/dist/server/{StatusBarNotificationBell-DdAdsduo.js → StatusBarNotificationBell-DW2l5O9B.js} +4812 -4520
- package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
- package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
- package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
- package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
- package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
- package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
- package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
- package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +3 -3
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
- package/dist/server/index-C6rYfWCJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +478 -472
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +56 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +54 -53
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +30 -28
- package/dist/solid/feedback/Badge.jsx +3 -14
- package/dist/solid/forms/Button.jsx +3 -14
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +86 -0
- package/dist/solid/forms/PressableSurface.jsx +3 -14
- package/dist/solid/layout/ResizeHandle.jsx +11 -1
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/notifications/NotificationHost.jsx +6 -29
- package/dist/solid/notifications/NotificationItem.jsx +5 -5
- package/dist/solid/notifications/NotificationPanel.jsx +14 -4
- package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +21 -19
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +51 -11
- package/dist/solid/notifications/notificationEntryList.js +168 -0
- package/dist/solid/notifications/notificationService.js +22 -4
- package/dist/solid/notifications/toast.js +54 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/Modal.jsx +42 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/style.css +2 -2
- package/dist/theme.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +30 -28
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-CJ3HuhRu.cjs +0 -50
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/StatusBarNotificationBell-Z2LmIkM1.cjs +0 -49
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- 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
|
|
5
|
-
*
|
|
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
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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(
|
|
60
|
+
export declare function decideFilter(issue: IssueDecisionInput): FilterDecision;
|
|
42
61
|
/**
|
|
43
|
-
* Whether the user turned a notification of
|
|
44
|
-
* Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
|
|
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,
|
|
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
|
|
51
|
-
*
|
|
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
|
|
58
|
-
* without the per-key choices
|
|
59
|
-
* running progress too ({@link turnedDownCard}) —, and an issue they turn
|
|
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
|
|
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(
|
|
60
|
+
export declare function decideFilter(issue: IssueDecisionInput): FilterDecision;
|
|
42
61
|
/**
|
|
43
|
-
* Whether the user turned a notification of
|
|
44
|
-
* Unlike a setting that silences, the choice rejects the notification itself, its record too (the decision's
|
|
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,
|
|
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
|
|
51
|
-
*
|
|
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
|
|
58
|
-
* without the per-key choices
|
|
59
|
-
* running progress too ({@link turnedDownCard}) —, and an issue they turn
|
|
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
|
|
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-
|
|
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
|
|
2
|
-
import { d as
|
|
3
|
-
import { n as
|
|
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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
26
|
+
y as createNativeNotificationEngine,
|
|
26
27
|
E as createNotificationPreviewRuntime,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ei as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
50
|
-
*
|
|
51
|
-
*
|
|
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
|
|
75
|
-
* the notification center, its handles still `open`, until the progress ends (the card is
|
|
76
|
-
* with its outcome, newest, unless a silencing setting ends it then), an issue under its id is
|
|
77
|
-
* closes it. Only a running card is ever hidden ({@link isProgressRunning}), and only a mounted
|
|
78
|
-
* (`NotificationsCenter`, `NotificationPanel`)
|
|
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` —
|
|
139
|
-
* ({@link NativeNotificationEngineDependencies.
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
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`)
|
|
197
|
-
* ({@link NativeNotificationEngine.dismiss}). A
|
|
198
|
-
* the preview runtime's cards) has no operation
|
|
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.
|