@vokril/ui-solid 0.33.5 → 0.35.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 +39 -0
- package/README.md +40 -0
- package/dist/Alert-DCIet3Ol.cjs +1 -0
- package/dist/Alert-DyBaU25r.js +59 -0
- package/dist/Badge-BXLrs2z-.cjs +1 -0
- package/dist/Badge-BguTObKo.js +99 -0
- package/dist/CommandPalette-3wKYPO9u.cjs +2 -0
- package/dist/CommandPalette-BnZwM7DE.js +4130 -0
- package/dist/PageSkeleton-3f-2SBNK.cjs +30 -0
- package/dist/{PageSkeleton-BRuqaDzr.js → PageSkeleton-lfENszyc.js} +516 -569
- package/dist/{StatusBarNotificationBell-DE1jIaBt.js → StatusBarNotificationBell-GbkAwC4w.js} +4242 -4154
- package/dist/StatusBarNotificationBell-fegn26_s.cjs +53 -0
- package/dist/_internal/contract/browser/workspace.d.cts +5 -0
- package/dist/_internal/contract/browser/workspace.d.ts +5 -0
- package/dist/_internal/contract/notification.d.cts +30 -4
- package/dist/_internal/contract/notification.d.ts +30 -4
- package/dist/_internal/contract/notificationCatalog.d.cts +15 -1
- package/dist/_internal/contract/notificationCatalog.d.ts +15 -1
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +38 -36
- package/dist/index.cjs +1 -1
- package/dist/index.js +430 -428
- package/dist/notificationCatalog-DmwTAO09.cjs +1 -0
- package/dist/notificationCatalog-otJ1LHFH.js +72 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +1 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +1 -0
- package/dist/notifications/fireNotification.d.cts +14 -7
- package/dist/notifications/fireNotification.d.ts +14 -7
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/notifications/nativeEngine.d.cts +8 -1
- package/dist/notifications/nativeEngine.d.ts +8 -1
- package/dist/notifications/notificationService.d.cts +2 -1
- package/dist/notifications/notificationService.d.ts +2 -1
- package/dist/notifications/notifications.notifications.d.cts +0 -1
- package/dist/notifications/notifications.notifications.d.ts +0 -1
- package/dist/notifications/toast.d.cts +19 -3
- package/dist/notifications/toast.d.ts +19 -3
- package/dist/notifications/toastFilterPolicy.d.cts +15 -1
- package/dist/notifications/toastFilterPolicy.d.ts +15 -1
- package/dist/overlay/ConfirmDialog.d.cts +36 -0
- package/dist/overlay/ConfirmDialog.d.ts +36 -0
- package/dist/overlay/dialogNudge.d.cts +16 -0
- package/dist/overlay/dialogNudge.d.ts +16 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +1 -1
- package/dist/server/Alert-DWGobTUk.js +45 -0
- package/dist/server/Alert-DulmzLv9.cjs +1 -0
- package/dist/server/Badge-C1Jn--DR.js +68 -0
- package/dist/server/Badge-wsDCVlA8.cjs +1 -0
- package/dist/server/CommandPalette-B3EE1iMo.js +3376 -0
- package/dist/server/CommandPalette-DKURJBBZ.cjs +1 -0
- package/dist/server/PageSkeleton-CP8EmxyS.cjs +30 -0
- package/dist/server/{PageSkeleton-CFs7AdTA.js → PageSkeleton-HhO6CRZ8.js} +392 -431
- package/dist/server/{StatusBarNotificationBell-y5cPAlMY.js → StatusBarNotificationBell-BfBGKXDG.js} +4256 -4168
- package/dist/server/StatusBarNotificationBell-CB919YAX.cjs +52 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +38 -36
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +294 -292
- package/dist/server/notificationCatalog-BKcY-o-R.js +57 -0
- package/dist/server/notificationCatalog-DR3ZggWn.cjs +1 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +8 -9
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +34 -18
- package/dist/solid/notifications/fireNotification.js +9 -5
- package/dist/solid/notifications/notificationOverlaySnapshot.js +1 -0
- package/dist/solid/notifications/notificationService.js +1 -0
- package/dist/solid/notifications/notifications.notifications.js +8 -0
- package/dist/solid/notifications/toast.js +70 -31
- package/dist/solid/notifications/toastFilterPolicy.js +8 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +54 -10
- package/dist/solid/overlay/ConfirmDialog.module.css.js +6 -0
- package/dist/solid/overlay/DangerousActionDialog.jsx +8 -3
- package/dist/solid/overlay/DangerousActionDialog.module.css.js +1 -0
- package/dist/solid/overlay/dialogNudge.js +18 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/CommandPalette-BKa5pT_B.js +0 -4029
- package/dist/CommandPalette-Bq5ydWBA.cjs +0 -2
- package/dist/PageSkeleton-Cz2bckO4.cjs +0 -30
- package/dist/StatusBarNotificationBell-CLrNtOO9.cjs +0 -50
- package/dist/notificationCatalog-CRERhjp6.js +0 -168
- package/dist/notificationCatalog-DqTkd7M6.cjs +0 -1
- package/dist/server/CommandPalette-BU9QCOyy.cjs +0 -1
- package/dist/server/CommandPalette-Dj08M64T.js +0 -3305
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +0 -30
- package/dist/server/StatusBarNotificationBell-fLacxZ0X.cjs +0 -49
- package/dist/server/notificationCatalog-CEDltsJS.cjs +0 -1
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +0 -122
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ssr as o, escape as t, ssrAttribute as a, ssrStyle as c } from "solid-js/web";
|
|
2
|
+
const u = "vk_track_8sxq6", l = "vk_size2xs_PFVQU", d = "vk_sizeXs_uv795", v = "vk_sizeSm_PXflS", _ = "vk_sizeMd_D7fn9", f = "vk_fill_WzdHy", m = "vk_toneBrand_Tv6r-", z = "vk_toneSuccess_zqjLa", k = "vk_toneWarning_xuA11", g = "vk_toneDanger_eWHhk", S = "vk_toneNeutral_-Ko2R", x = "vk_indeterminate_94QkD", n = {
|
|
3
|
+
track: u,
|
|
4
|
+
size2xs: l,
|
|
5
|
+
sizeXs: d,
|
|
6
|
+
sizeSm: v,
|
|
7
|
+
sizeMd: _,
|
|
8
|
+
fill: f,
|
|
9
|
+
toneBrand: m,
|
|
10
|
+
toneSuccess: z,
|
|
11
|
+
toneWarning: k,
|
|
12
|
+
toneDanger: g,
|
|
13
|
+
toneNeutral: S,
|
|
14
|
+
indeterminate: x
|
|
15
|
+
};
|
|
16
|
+
var b = ['<div class="', '" role="progressbar"', "><span", ' style="', '"></span></div>'];
|
|
17
|
+
const y = {
|
|
18
|
+
brand: n.toneBrand,
|
|
19
|
+
success: n.toneSuccess,
|
|
20
|
+
warning: n.toneWarning,
|
|
21
|
+
danger: n.toneDanger,
|
|
22
|
+
neutral: n.toneNeutral
|
|
23
|
+
}, M = {
|
|
24
|
+
"2xs": n.size2xs,
|
|
25
|
+
xs: n.sizeXs,
|
|
26
|
+
sm: n.sizeSm,
|
|
27
|
+
md: n.sizeMd
|
|
28
|
+
};
|
|
29
|
+
function $(e) {
|
|
30
|
+
const r = () => {
|
|
31
|
+
if (e.indeterminate) return 0;
|
|
32
|
+
const i = e.max ?? 100;
|
|
33
|
+
return i <= 0 ? 0 : Math.max(0, Math.min(100, e.value / i * 100));
|
|
34
|
+
}, s = () => e.indeterminate === !0;
|
|
35
|
+
return o(b, `${t(n.track, !0)} ${t(M[e.size ?? "md"], !0)} ${t(y[e.tone ?? "brand"], !0)} ${s() ? t(n.indeterminate, !0) : ""} ${t(e.class ?? "", !0)}`, a("aria-valuenow", s() ? t(void 0, !0) : t(Math.round(r()), !0), !1) + a("aria-valuemin", s() ? t(void 0, !0) : 0, !1) + a("aria-valuemax", s() ? t(void 0, !0) : 100, !1) + a("aria-busy", s() ? "true" : t(void 0, !0), !1) + a("aria-label", t(e.ariaLabel, !0), !1), a("class", t(n.fill, !0), !1), c(s() ? void 0 : {
|
|
36
|
+
"--progress-pct": `${r()}%`
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
function D(e, r) {
|
|
40
|
+
return {
|
|
41
|
+
...e,
|
|
42
|
+
category: e.category ?? e.id.split(".")[0] ?? "general",
|
|
43
|
+
build: r
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function W(e, r, s) {
|
|
47
|
+
return {
|
|
48
|
+
id: e,
|
|
49
|
+
notification: r,
|
|
50
|
+
resolve: (i) => r.build(s, i)
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
$ as P,
|
|
55
|
+
W as a,
|
|
56
|
+
D as d
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),a="vk_track_8sxq6",c="vk_size2xs_PFVQU",o="vk_sizeXs_uv795",u="vk_sizeSm_PXflS",l="vk_sizeMd_D7fn9",d="vk_fill_WzdHy",v="vk_toneBrand_Tv6r-",_="vk_toneSuccess_zqjLa",f="vk_toneWarning_xuA11",m="vk_toneDanger_eWHhk",z="vk_toneNeutral_-Ko2R",k="vk_indeterminate_94QkD",s={track:a,size2xs:c,sizeXs:o,sizeSm:u,sizeMd:l,fill:d,toneBrand:v,toneSuccess:_,toneWarning:f,toneDanger:m,toneNeutral:z,indeterminate:k};var g=['<div class="','" role="progressbar"',"><span",' style="','"></span></div>'];const S={brand:s.toneBrand,success:s.toneSuccess,warning:s.toneWarning,danger:s.toneDanger,neutral:s.toneNeutral},b={"2xs":s.size2xs,xs:s.sizeXs,sm:s.sizeSm,md:s.sizeMd};function x(t){const r=()=>{if(t.indeterminate)return 0;const i=t.max??100;return i<=0?0:Math.max(0,Math.min(100,t.value/i*100))},n=()=>t.indeterminate===!0;return e.ssr(g,`${e.escape(s.track,!0)} ${e.escape(b[t.size??"md"],!0)} ${e.escape(S[t.tone??"brand"],!0)} ${n()?e.escape(s.indeterminate,!0):""} ${e.escape(t.class??"",!0)}`,e.ssrAttribute("aria-valuenow",n()?e.escape(void 0,!0):e.escape(Math.round(r()),!0),!1)+e.ssrAttribute("aria-valuemin",n()?e.escape(void 0,!0):0,!1)+e.ssrAttribute("aria-valuemax",n()?e.escape(void 0,!0):100,!1)+e.ssrAttribute("aria-busy",n()?"true":e.escape(void 0,!0),!1)+e.ssrAttribute("aria-label",e.escape(t.ariaLabel,!0),!1),e.ssrAttribute("class",e.escape(s.fill,!0),!1),e.ssrStyle(n()?void 0:{"--progress-pct":`${r()}%`}))}function A(t,r){return{...t,category:t.category??t.id.split(".")[0]??"general",build:r}}function N(t,r,n){return{id:t,notification:r,resolve:i=>r.build(n,i)}}exports.Progress=x;exports.defineNotification=A;exports.defineNotificationScenario=N;
|
|
@@ -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-CB919YAX.cjs"),e=require("../notificationCatalog-DR3ZggWn.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { d as Si, a as Ti } from "../notificationCatalog-
|
|
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-BfBGKXDG.js";
|
|
2
|
+
import { d as Si, a as Ti } from "../notificationCatalog-BKcY-o-R.js";
|
|
3
3
|
import { n as ui } from "../useSettingsSubscription-DLEk4k4j.js";
|
|
4
4
|
export {
|
|
5
5
|
e as ACCEPT_PRIMARY_ACTION_NOTIFICATION,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-DKURJBBZ.cjs"),i=require("../Modal-DNYwnQ0V.cjs"),c=require("../OverlayScrollArea-DuwGRSMm.cjs"),r=require("../GuidedTour-DCoB90h1.cjs"),o=require("../createDialogShellFocus-usbhq9Av.cjs"),O=require("../Input-UX0Hk53M.cjs"),t=require("../Popover-BBDBIpT6.cjs"),n=require("../overlayStack-eD8AmuwY.cjs"),p=require("../useFloatingDropdown-D5UayoN6.cjs"),M=require("../ownerWindow-BCmJFMbR.cjs"),a=require("../prefersReducedMotion-DYR56SKZ.cjs"),l=require("../kitHost-u0-mKvEK.cjs"),s=require("../dialogFocusRestore-DP5b1bDo.cjs"),u=require("../DesktopContextMenuContext-DMGNVjaR.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=i.ActionPlaceRow;exports.Modal=i.Modal;exports.modalTitlebarHeight=i.modalTitlebarHeight;exports.OverlayScrollArea=c.OverlayScrollArea;exports.Disclosure=r.Disclosure;exports.GuidedTour=r.GuidedTour;exports.Panel=r.Panel;exports.PanelSeparator=r.PanelSeparator;exports.positionTourCard=r.positionTourCard;exports.COLD_DELAY_MS=o.COLD_DELAY_MS;exports.COOLDOWN_MS=o.COOLDOWN_MS;exports.DEFAULT_MARGIN=o.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=o.DEFAULT_OFFSET;exports.HoverTooltip=o.HoverTooltip;exports.TOOLTIP_CURSOR_OFFSET_X=o.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=o.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=o.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=o.TOOLTIP_VIEWPORT_MARGIN;exports.WARM_DELAY_MS=o.WARM_DELAY_MS;exports.collectFocusableElements=o.collectFocusableElements;exports.computeAnchoredTooltipPosition=o.computeAnchoredTooltipPosition;exports.computeTooltipPointerPosition=o.computeTooltipPointerPosition;exports.createDialogShellFocus=o.createDialogShellFocus;exports.createTooltipCoordinator=o.createTooltipCoordinator;exports.resolveDialogShellKeyIntent=o.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=o.resolveModalFocusTrapTarget;exports.tooltipCoordinator=o.tooltipCoordinator;exports.trapTabFocusWithin=o.trapTabFocusWithin;exports.OverlayPortal=O.OverlayPortal;exports.AnchorAlignment=t.AnchorAlignment;exports.AnchorAxisAlignment=t.AnchorAxisAlignment;exports.AnchorPosition=t.AnchorPosition;exports.LISTBOX_OPTION_SELECTOR=t.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=t.MENU_ITEM_SELECTOR;exports.OVERLAY_DEFAULT_GAP=t.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=t.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=t.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=t.POPOVER_VIEWPORT_MARGIN;exports.Popover=t.Popover;exports.calcFixedWidthDropdownLeft=t.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=t.computeAnchoredPosition;exports.computeDropdownPosition=t.computeDropdownPosition;exports.computePopoverPosition=t.computePopoverPosition;exports.isPopoverNavigationKey=t.isPopoverNavigationKey;exports.layout2d=t.layout2d;exports.requestOwnerAnimationFrame=t.requestOwnerAnimationFrame;exports.resolvePopoverFocusForKey=t.resolvePopoverFocusForKey;exports.resolvePopoverSide=t.resolvePopoverSide;exports.getOverlayDiagnostics=n.getOverlayDiagnostics;exports.hasOpenLayerIn=n.hasOpenLayerIn;exports.isAnyOverlayOpen=n.isAnyOverlayOpen;exports.isModalOccluded=n.isModalOccluded;exports.isOverlayOverlapping=n.isOverlayOverlapping;exports.notifyOverlayChanged=n.notifyOverlayChanged;exports.notifyOverlayMotionEnd=n.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=n.notifyOverlayMotionStart;exports.onOverlayMotion=n.onOverlayMotion;exports.overlayDepth=n.overlayDepth;exports.readOverlayMutationRevision=n.readOverlayMutationRevision;exports.registerOverlayClose=n.registerOverlayClose;exports.registerOverlayCondition=n.registerOverlayCondition;exports.registerOverlayOpen=n.registerOverlayOpen;exports.useOverlayRegistration=n.useOverlayRegistration;exports.useFloatingDropdown=p.useFloatingDropdown;exports.ownerWindow=M.ownerWindow;exports.modalBackgroundExemption=a.modalBackgroundExemption;exports.neutralizeBackground=a.neutralizeBackground;exports.ModalDefaultsProvider=l.ModalDefaultsProvider;exports.useModalDefaults=l.useModalDefaults;exports.restoreFocusTo=s.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=s.shouldRestoreFocusOnDialogClose;exports.DesktopContextMenuContext=u.DesktopContextMenuContext;exports.useDesktopContextMenu=u.useDesktopContextMenu;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as d, j as m, k as D, N as E, O as _, P as A, S as P, l as v, m as S, n as g, o as I, p as F, q as x, r as y, s as C, T as f, t as R, u as L, v as h, w as N, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as j, U as q, V as z, W as J, X as Q } from "../CommandPalette-
|
|
1
|
+
import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as d, j as m, k as D, N as E, O as _, P as A, S as P, l as v, m as S, n as g, o as I, p as F, q as x, r as y, s as C, T as f, t as R, u as L, v as h, w as N, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as j, U as q, V as z, W as J, X as Q } from "../CommandPalette-B3EE1iMo.js";
|
|
2
2
|
import { A as $, M as ee, m as ae } from "../Modal-Cl_asviX.js";
|
|
3
3
|
import { O as se } from "../OverlayScrollArea-h6G3yk6U.js";
|
|
4
4
|
import { D as re, G as ne, P as ie, a as le, p as ue } from "../GuidedTour-pdx_4IrZ.js";
|
|
@@ -247,8 +247,9 @@ export const NotificationItem = (props) => {
|
|
|
247
247
|
const source = itemProp().source;
|
|
248
248
|
const dontShowKey = itemProp().neverShowAgainKey;
|
|
249
249
|
const remindKey = cardRemindKey(itemProp());
|
|
250
|
+
const choices = itemProp().origin !== 'user-action';
|
|
250
251
|
const items = [];
|
|
251
|
-
if (dontShowKey) {
|
|
252
|
+
if (choices && dontShowKey) {
|
|
252
253
|
items.push({
|
|
253
254
|
label: t("Don't show again"),
|
|
254
255
|
onSelect: () => {
|
|
@@ -257,7 +258,7 @@ export const NotificationItem = (props) => {
|
|
|
257
258
|
},
|
|
258
259
|
});
|
|
259
260
|
}
|
|
260
|
-
if (shell.remindLaterEnabled()) {
|
|
261
|
+
if (choices && shell.remindLaterEnabled()) {
|
|
261
262
|
const minute = 60_000;
|
|
262
263
|
const hour = 60 * minute;
|
|
263
264
|
const tomorrow9amMs = () => {
|
|
@@ -288,7 +289,7 @@ export const NotificationItem = (props) => {
|
|
|
288
289
|
},
|
|
289
290
|
});
|
|
290
291
|
}
|
|
291
|
-
if (source && source !== 'general') {
|
|
292
|
+
if (choices && source && source !== 'general') {
|
|
292
293
|
const muted = shell.isSourceMuted(source);
|
|
293
294
|
items.push({
|
|
294
295
|
label: muted
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { scrubSecrets } from '../_internal/base/scrubSecrets';
|
|
2
2
|
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
3
|
-
import { enrichErrorToast } from './toast';
|
|
3
|
+
import { cardLines, enrichErrorToast } from './toast';
|
|
4
4
|
import { resolveVendorError, } from '../_internal/platform/vendorErrors';
|
|
5
5
|
import { BugIndicatingError } from '../_internal/base/errors/bugIndicatingError';
|
|
6
6
|
import { errorActionButton, withErrorActionButtons } from './errorActionButtons';
|
|
@@ -12,6 +12,7 @@ function toToastOptions(definition, payload) {
|
|
|
12
12
|
...(definition.severity === 'error' && definition.priority === 'default'
|
|
13
13
|
? {}
|
|
14
14
|
: { priority: definition.priority }),
|
|
15
|
+
...(payload.title ? { title: payload.title } : {}),
|
|
15
16
|
...(payload.subtitle ? { subtitle: payload.subtitle } : {}),
|
|
16
17
|
...(payload.description ? { description: payload.description } : {}),
|
|
17
18
|
...(payload.action ? { action: payload.action } : {}),
|
|
@@ -30,6 +31,7 @@ function toToastOptions(definition, payload) {
|
|
|
30
31
|
...(payload.id !== undefined ? { id: payload.id } : {}),
|
|
31
32
|
...(payload.announce !== undefined ? { announce: payload.announce } : {}),
|
|
32
33
|
...(definition.delivery === 'in-app-only' ? { inAppOnly: true } : {}),
|
|
34
|
+
...(definition.origin === 'user-action' ? { origin: 'user-action' } : {}),
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
export function createCatalogDelivery(deps) {
|
|
@@ -38,11 +40,8 @@ export function createCatalogDelivery(deps) {
|
|
|
38
40
|
return {
|
|
39
41
|
notify(definition, built) {
|
|
40
42
|
const payload = withButtons(built);
|
|
41
|
-
if (definition.delivery === 'os-only') {
|
|
42
|
-
const title = payload.
|
|
43
|
-
const body = payload.description ??
|
|
44
|
-
payload.subtitle ??
|
|
45
|
-
(payload.title ? payload.message : undefined);
|
|
43
|
+
if (definition.delivery === 'os-only' && definition.origin !== 'user-action') {
|
|
44
|
+
const { title, body } = cardLines(payload.message, payload);
|
|
46
45
|
deps.osNotify({
|
|
47
46
|
title,
|
|
48
47
|
...(body ? { body } : {}),
|
|
@@ -62,7 +61,6 @@ export function createCatalogDelivery(deps) {
|
|
|
62
61
|
case 'error': {
|
|
63
62
|
const errorOptions = {
|
|
64
63
|
...toastOptions,
|
|
65
|
-
...(payload.title ? { title: payload.title } : {}),
|
|
66
64
|
...(payload.vendorError ? { vendorError: payload.vendorError } : {}),
|
|
67
65
|
};
|
|
68
66
|
return deps.toast.error(payload.message, errorOptions);
|
|
@@ -107,8 +105,9 @@ export function showCatalogPreviewToast(deps, definition, payload) {
|
|
|
107
105
|
...(payload.action ? { action: payload.action } : {}),
|
|
108
106
|
}, vendorMatch, deps.openExternal)
|
|
109
107
|
: null;
|
|
110
|
-
const
|
|
111
|
-
const
|
|
108
|
+
const lines = cardLines(payload.message, payload);
|
|
109
|
+
const title = errorEnrichment?.displayText ?? lines.title;
|
|
110
|
+
const body = errorEnrichment ? errorEnrichment.bodyText : lines.body;
|
|
112
111
|
const primaryAction = errorEnrichment?.primaryAction ?? payload.action;
|
|
113
112
|
const source = definition.severity === 'error' &&
|
|
114
113
|
definition.source === 'general' &&
|
|
@@ -4,13 +4,19 @@ import { applyNotificationRules } from './notificationRules';
|
|
|
4
4
|
import { decideFilter, } from './toastFilterPolicy';
|
|
5
5
|
import { DEFAULT_NOTIFICATION_SETTINGS } from '../_internal/app/settings/descriptors/notification';
|
|
6
6
|
import { createNativeNotificationEngine, isNotificationSticky, resolveNotificationDuration, } from './nativeEngine';
|
|
7
|
-
import { enrichErrorToast, suppressedProgressHandle } from './toast';
|
|
7
|
+
import { cardLines, enrichErrorToast, suppressedProgressHandle } from './toast';
|
|
8
8
|
import { resolveCatalogPreviewPriority } from './catalogAdapter';
|
|
9
9
|
import { withErrorActionButtons } from './errorActionButtons';
|
|
10
10
|
function progressHandle(handle, payload) {
|
|
11
|
+
const linesOf = (message) => {
|
|
12
|
+
if (!payload.title?.trim())
|
|
13
|
+
return { title: message };
|
|
14
|
+
const body = cardLines(message, payload).body;
|
|
15
|
+
return { body: body ? scrubSecrets(body) : undefined };
|
|
16
|
+
};
|
|
11
17
|
return {
|
|
12
18
|
update: (message, value) => {
|
|
13
|
-
handle.update(
|
|
19
|
+
handle.update(linesOf(message));
|
|
14
20
|
if (value !== undefined) {
|
|
15
21
|
handle.setProgress({
|
|
16
22
|
value: Math.max(0, Math.min(1, value)),
|
|
@@ -19,13 +25,13 @@ function progressHandle(handle, payload) {
|
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
27
|
success: (message) => handle.update({
|
|
22
|
-
|
|
28
|
+
...linesOf(message ?? payload.message),
|
|
23
29
|
severity: 'success',
|
|
24
30
|
sticky: false,
|
|
25
31
|
progress: { done: true },
|
|
26
32
|
}),
|
|
27
33
|
fail: (message) => handle.update({
|
|
28
|
-
|
|
34
|
+
...linesOf(message ?? payload.message),
|
|
29
35
|
severity: 'error',
|
|
30
36
|
sticky: true,
|
|
31
37
|
progress: { done: true },
|
|
@@ -84,6 +90,9 @@ function toPreviewPayload(built, errorActions) {
|
|
|
84
90
|
...(payload.onCancel ? { onCancel: inert } : {}),
|
|
85
91
|
};
|
|
86
92
|
}
|
|
93
|
+
function previewChannel(definition) {
|
|
94
|
+
return definition.origin === 'user-action' ? 'in-app-only' : definition.delivery;
|
|
95
|
+
}
|
|
87
96
|
function previewVendorMatch(vendorErrors, payload) {
|
|
88
97
|
return payload.vendorError === undefined
|
|
89
98
|
? null
|
|
@@ -144,21 +153,26 @@ export function createNotificationPreviewRuntime(deps) {
|
|
|
144
153
|
? 'vendor-error'
|
|
145
154
|
: definition.source;
|
|
146
155
|
const priority = resolveCatalogPreviewPriority(definition.severity, definition.priority, vendorMatch !== null, settings.vendorCodesAreUrgent);
|
|
147
|
-
const
|
|
156
|
+
const lines = cardLines(previewPayload.message, previewPayload);
|
|
157
|
+
const ruleInput = {
|
|
148
158
|
severity: definition.severity,
|
|
149
|
-
title: errorEnrichment?.displayText ??
|
|
150
|
-
previewPayload.title ??
|
|
151
|
-
previewPayload.message,
|
|
159
|
+
title: errorEnrichment?.displayText ?? lines.title,
|
|
152
160
|
priority,
|
|
153
161
|
source,
|
|
154
|
-
}
|
|
162
|
+
};
|
|
163
|
+
const userAction = definition.origin === 'user-action';
|
|
164
|
+
const ruled = userAction
|
|
165
|
+
? ruleInput
|
|
166
|
+
: applyNotificationRules(ruleInput, settings.notificationRules);
|
|
167
|
+
const toOs = definition.delivery === 'os-only' && !userAction;
|
|
155
168
|
const decision = ruled === null
|
|
156
169
|
? { showToast: false, recordTimeline: false }
|
|
157
170
|
: decideFilter({
|
|
158
171
|
priority: ruled.priority,
|
|
159
172
|
recordTimeline: previewPayload.recordTimeline,
|
|
173
|
+
origin: definition.origin,
|
|
160
174
|
}, settings, gates);
|
|
161
|
-
const outcome =
|
|
175
|
+
const outcome = toOs
|
|
162
176
|
? 'mock-os'
|
|
163
177
|
: decision.showToast
|
|
164
178
|
? 'shown'
|
|
@@ -177,11 +191,11 @@ export function createNotificationPreviewRuntime(deps) {
|
|
|
177
191
|
? { description: scrubSecrets(previewPayload.description) }
|
|
178
192
|
: {}),
|
|
179
193
|
},
|
|
180
|
-
channel: definition
|
|
194
|
+
channel: previewChannel(definition),
|
|
181
195
|
decision,
|
|
182
196
|
outcome,
|
|
183
197
|
};
|
|
184
|
-
if (
|
|
198
|
+
if (toOs) {
|
|
185
199
|
deliveries.push(delivery);
|
|
186
200
|
return '';
|
|
187
201
|
}
|
|
@@ -189,15 +203,14 @@ export function createNotificationPreviewRuntime(deps) {
|
|
|
189
203
|
deliveries.push(delivery);
|
|
190
204
|
return '';
|
|
191
205
|
}
|
|
192
|
-
const body = errorEnrichment
|
|
193
|
-
previewPayload.subtitle ??
|
|
194
|
-
previewPayload.description;
|
|
206
|
+
const body = errorEnrichment ? errorEnrichment.bodyText : lines.body;
|
|
195
207
|
let shown;
|
|
196
208
|
const actions = previewActions(errorEnrichment?.primaryAction ?? previewPayload.action, previewPayload.actions, () => shown?.close());
|
|
197
209
|
const handle = engine.notify({
|
|
198
210
|
severity: ruled.severity,
|
|
199
211
|
title: scrubSecrets(ruled.title),
|
|
200
212
|
...previewPresentation(previewPayload, body),
|
|
213
|
+
...(userAction ? { origin: 'user-action' } : {}),
|
|
201
214
|
source: ruled.source,
|
|
202
215
|
priority: ruled.priority,
|
|
203
216
|
isolated: true,
|
|
@@ -215,11 +228,12 @@ export function createNotificationPreviewRuntime(deps) {
|
|
|
215
228
|
const decision = decideFilter({
|
|
216
229
|
priority: definition.priority,
|
|
217
230
|
recordTimeline: previewPayload.recordTimeline,
|
|
231
|
+
origin: definition.origin,
|
|
218
232
|
}, settings, gates);
|
|
219
233
|
deliveries.push({
|
|
220
234
|
definition,
|
|
221
235
|
payload: previewPayload,
|
|
222
|
-
channel: definition
|
|
236
|
+
channel: previewChannel(definition),
|
|
223
237
|
decision,
|
|
224
238
|
outcome: decision.showToast
|
|
225
239
|
? 'shown'
|
|
@@ -235,10 +249,12 @@ export function createNotificationPreviewRuntime(deps) {
|
|
|
235
249
|
}
|
|
236
250
|
let shown;
|
|
237
251
|
const actions = previewActions(previewPayload.action, previewPayload.actions, () => shown?.close());
|
|
252
|
+
const lines = cardLines(previewPayload.message, previewPayload);
|
|
238
253
|
const handle = engine.notify({
|
|
239
254
|
severity: definition.severity,
|
|
240
|
-
title: scrubSecrets(
|
|
241
|
-
...previewPresentation(previewPayload,
|
|
255
|
+
title: scrubSecrets(lines.title),
|
|
256
|
+
...previewPresentation(previewPayload, lines.body),
|
|
257
|
+
...(definition.origin === 'user-action' ? { origin: 'user-action' } : {}),
|
|
242
258
|
source: definition.source,
|
|
243
259
|
priority: definition.priority,
|
|
244
260
|
isolated: true,
|
|
@@ -24,6 +24,7 @@ export function decideFilter(issue) {
|
|
|
24
24
|
return decideToastFilter({
|
|
25
25
|
priority: filteredPriority(issue.priority, issue.severity, issue.filter),
|
|
26
26
|
recordTimeline: issue.recordTimeline,
|
|
27
|
+
origin: issue.origin,
|
|
27
28
|
}, notificationSettings.get(), {
|
|
28
29
|
...choiceGates(issue.source, issue.title, issue),
|
|
29
30
|
sourceMuted: isSourceMuted(issue.source),
|
|
@@ -35,6 +36,8 @@ export function turnedDownOnCard(source, title, keys) {
|
|
|
35
36
|
return gates.dismissed || gates.remindSuppressed;
|
|
36
37
|
}
|
|
37
38
|
export function turnedDownCard(item) {
|
|
39
|
+
if (item.origin === 'user-action')
|
|
40
|
+
return false;
|
|
38
41
|
const dontShowAgainKey = item.neverShowAgainKey;
|
|
39
42
|
return ((dontShowAgainKey !== undefined && isKeyDismissed(dontShowAgainKey)) ||
|
|
40
43
|
isKeyRemindSuppressed(cardRemindKey(item)));
|
|
@@ -69,11 +72,10 @@ export function nativeActionsOf(sinks, primary, others, cardId, source) {
|
|
|
69
72
|
return [...(primary ? [primary] : []), ...(others ?? [])].map((action, index) => mapAction(sinks, action, cardId, source, index === 0));
|
|
70
73
|
}
|
|
71
74
|
export function cardPresentation(options) {
|
|
72
|
-
const description = options.subtitle?.trim() || options.description?.trim();
|
|
73
75
|
const useMarkdown = options.markdown ?? notificationSettings.get().markdownEnabled;
|
|
74
76
|
const resolvedRoute = resolveDefaultRoute(options.source, options.defaultRoute);
|
|
75
77
|
return {
|
|
76
|
-
...(
|
|
78
|
+
...(options.origin === 'user-action' ? { origin: 'user-action' } : {}),
|
|
77
79
|
...(useMarkdown ? { markdown: true } : {}),
|
|
78
80
|
...(options.duration !== undefined ? { durationMs: options.duration } : {}),
|
|
79
81
|
...(options.dontShowAgainKey
|
|
@@ -90,16 +92,18 @@ export function fire(sinks, opts) {
|
|
|
90
92
|
sinks.analytics.recordFire(fireSource, opts.decision.showToast, isSourceMuted(fireSource));
|
|
91
93
|
if (!opts.decision.showToast)
|
|
92
94
|
return null;
|
|
93
|
-
|
|
95
|
+
if (!opts.decision.withoutSound)
|
|
96
|
+
sinks.audio.playSeverityToneIfEnabled(opts.severity, inQuietHoursNow());
|
|
94
97
|
const { options } = opts;
|
|
95
98
|
const presentation = cardPresentation(options);
|
|
96
|
-
const description =
|
|
99
|
+
const description = opts.body;
|
|
97
100
|
const id = options.id !== undefined ? String(options.id) : undefined;
|
|
98
101
|
let resolved = null;
|
|
99
102
|
const actions = nativeActionsOf(sinks, opts.primaryAction, options.actions, () => resolved?.id, fireSource);
|
|
100
103
|
const handle = sinks.engine.notify({
|
|
101
104
|
severity: opts.severity,
|
|
102
105
|
title: opts.title,
|
|
106
|
+
...(description ? { body: description } : {}),
|
|
103
107
|
...presentation,
|
|
104
108
|
source: options.source ?? 'general',
|
|
105
109
|
priority: options.priority ?? 'default',
|
|
@@ -110,7 +114,7 @@ export function fire(sinks, opts) {
|
|
|
110
114
|
resolved = handle;
|
|
111
115
|
if (isSpamDropHandle(handle))
|
|
112
116
|
return handle;
|
|
113
|
-
if (options.inAppOnly)
|
|
117
|
+
if (options.inAppOnly || options.origin === 'user-action')
|
|
114
118
|
return handle;
|
|
115
119
|
const scrubbedTitle = scrubSecrets(opts.title);
|
|
116
120
|
const scrubbedBody = description ? scrubSecrets(description) : undefined;
|
|
@@ -66,6 +66,7 @@ export function overlayItemOf(item, context) {
|
|
|
66
66
|
: {}),
|
|
67
67
|
...(item.remindKey ? { remindKey: item.remindKey } : {}),
|
|
68
68
|
...(item.defaultRoute ? { defaultRoute: item.defaultRoute } : {}),
|
|
69
|
+
...(item.origin ? { origin: item.origin } : {}),
|
|
69
70
|
...(item.actions ? { actions: overlayActionsOf(item.actions) } : {}),
|
|
70
71
|
...(item.secondaryActions
|
|
71
72
|
? {
|
|
@@ -19,6 +19,7 @@ const QUIET_HOURS_RECHECK_MS = 60 * 60_000;
|
|
|
19
19
|
function silencedCard(item, filter) {
|
|
20
20
|
return (!item.isolated &&
|
|
21
21
|
item.priority !== 'acknowledgment-required' &&
|
|
22
|
+
item.origin !== 'user-action' &&
|
|
22
23
|
silencedBySettings(item.source ?? 'general', item.severity, item.priority ?? 'default', filter));
|
|
23
24
|
}
|
|
24
25
|
export class NotificationService {
|
|
@@ -27,6 +27,7 @@ export const notificationReplayError = defineNotification({
|
|
|
27
27
|
severity: 'error',
|
|
28
28
|
priority: 'urgent',
|
|
29
29
|
delivery: 'in-app',
|
|
30
|
+
origin: 'user-action',
|
|
30
31
|
kind: 'message',
|
|
31
32
|
}, ({ timelineMessage, options, }) => withOptions(timelineMessage, options));
|
|
32
33
|
export const notificationReplayWarning = defineNotification({
|
|
@@ -35,6 +36,7 @@ export const notificationReplayWarning = defineNotification({
|
|
|
35
36
|
severity: 'warning',
|
|
36
37
|
priority: 'urgent',
|
|
37
38
|
delivery: 'in-app',
|
|
39
|
+
origin: 'user-action',
|
|
38
40
|
kind: 'message',
|
|
39
41
|
}, ({ timelineMessage, options, }) => withOptions(timelineMessage, options));
|
|
40
42
|
export const notificationReplaySuccess = defineNotification({
|
|
@@ -43,6 +45,7 @@ export const notificationReplaySuccess = defineNotification({
|
|
|
43
45
|
severity: 'success',
|
|
44
46
|
priority: 'urgent',
|
|
45
47
|
delivery: 'in-app',
|
|
48
|
+
origin: 'user-action',
|
|
46
49
|
kind: 'message',
|
|
47
50
|
}, ({ timelineMessage, options, }) => withOptions(timelineMessage, options));
|
|
48
51
|
export const notificationReplayInfo = defineNotification({
|
|
@@ -51,6 +54,7 @@ export const notificationReplayInfo = defineNotification({
|
|
|
51
54
|
severity: 'info',
|
|
52
55
|
priority: 'urgent',
|
|
53
56
|
delivery: 'in-app',
|
|
57
|
+
origin: 'user-action',
|
|
54
58
|
kind: 'message',
|
|
55
59
|
}, ({ timelineMessage, options, }) => withOptions(timelineMessage, options));
|
|
56
60
|
export const notificationTimelineExported = defineNotification({
|
|
@@ -59,6 +63,7 @@ export const notificationTimelineExported = defineNotification({
|
|
|
59
63
|
severity: 'success',
|
|
60
64
|
priority: 'default',
|
|
61
65
|
delivery: 'in-app',
|
|
66
|
+
origin: 'user-action',
|
|
62
67
|
kind: 'message',
|
|
63
68
|
}, ({ entryCount }) => ({
|
|
64
69
|
message: t('Exported {count} notifications', { count: entryCount }),
|
|
@@ -69,6 +74,7 @@ export const notificationTimelineExportFailed = defineNotification({
|
|
|
69
74
|
severity: 'error',
|
|
70
75
|
priority: 'default',
|
|
71
76
|
delivery: 'in-app',
|
|
77
|
+
origin: 'user-action',
|
|
72
78
|
kind: 'message',
|
|
73
79
|
}, ({ cause }, { errorText }) => ({
|
|
74
80
|
message: t('Export failed: {message}', {
|
|
@@ -82,6 +88,7 @@ export const errorActionFailed = defineNotification({
|
|
|
82
88
|
severity: 'error',
|
|
83
89
|
priority: 'default',
|
|
84
90
|
delivery: 'in-app',
|
|
91
|
+
origin: 'user-action',
|
|
85
92
|
kind: 'message',
|
|
86
93
|
}, ({ cause }, { errorText }) => ({
|
|
87
94
|
message: t('The action could not be completed: {message}', {
|
|
@@ -95,6 +102,7 @@ export const notificationSettingsUpdateFailed = defineNotification({
|
|
|
95
102
|
severity: 'error',
|
|
96
103
|
priority: 'default',
|
|
97
104
|
delivery: 'in-app',
|
|
105
|
+
origin: 'user-action',
|
|
98
106
|
kind: 'message',
|
|
99
107
|
}, ({ cause }, { errorText }) => ({
|
|
100
108
|
message: errorText(cause, t('Operation failed.')),
|