@vokril/ui-solid 0.13.0 → 0.17.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 +45 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
- package/dist/CommandPalette-CAH08DGN.js +4013 -0
- package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
- package/dist/GuidedTour-CWDtBRHv.js +483 -0
- package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
- package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/HostPortal-X1iw719T.js +33 -0
- package/dist/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
- package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
- package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
- package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
- package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
- package/dist/_internal/app/keybindings/index.d.cts +0 -10
- package/dist/_internal/app/keybindings/index.d.ts +0 -10
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
- package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
- package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
- package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
- package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
- package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
- package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
- package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
- package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
- package/dist/_internal/contract/catalogNotify.d.cts +6 -19
- package/dist/_internal/contract/catalogNotify.d.ts +6 -19
- package/dist/_internal/contract/hostErrorText.d.cts +13 -23
- package/dist/_internal/contract/hostErrorText.d.ts +13 -23
- package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
- package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
- package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
- package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
- package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
- package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
- package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
- package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
- package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
- package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
- package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
- package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
- package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
- package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/actions-DtaFGwh2.cjs +1 -0
- package/dist/actions-wwAHs3ZU.js +16 -0
- package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/async/createGuardedListLoader.d.cts +3 -0
- package/dist/async/createGuardedListLoader.d.ts +3 -0
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
- package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
- package/dist/createResizableSidebar-CfFxQUny.js +449 -0
- package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
- package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/defineSettings-Di1sG81q.js +407 -0
- package/dist/descriptor-CaHgh9N_.cjs +1 -0
- package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +500 -426
- package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/electronBridge-BK92fycw.js +235 -0
- package/dist/electronBridge-cT0xww92.cjs +1 -0
- package/dist/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/feedback/Loader.d.cts +6 -1
- package/dist/feedback/Loader.d.ts +6 -1
- package/dist/feedback/createPreference.d.cts +4 -1
- package/dist/feedback/createPreference.d.ts +4 -1
- package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
- package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +37 -38
- package/dist/feedback/readFailureText.d.cts +20 -1
- package/dist/feedback/readFailureText.d.ts +20 -1
- package/dist/focusModality-BISb6-yg.cjs +1 -0
- package/dist/focusModality-FoLPWF-_.js +135 -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/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +14 -16
- package/dist/host/index.d.ts +14 -16
- package/dist/host/index.js +53 -90
- package/dist/host/kitHost.d.cts +42 -0
- package/dist/host/kitHost.d.ts +42 -0
- package/dist/host/window.d.cts +3 -11
- package/dist/host/window.d.ts +3 -11
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/i18n-DZ0JlZal.cjs +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +665 -738
- package/dist/isOneOf-9EXOSYJu.cjs +1 -0
- package/dist/isOneOf-Dtomuazg.js +6 -0
- package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
- package/dist/keys-GMxY2wcl.cjs +1 -0
- package/dist/layout/createResizableSidebar.d.cts +14 -0
- package/dist/layout/createResizableSidebar.d.ts +14 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +3 -3
- package/dist/layout/sidebarWidthClamp.d.cts +1 -1
- package/dist/layout/sidebarWidthClamp.d.ts +1 -1
- package/dist/mainRealmDom-C12lr9lm.js +171 -0
- package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notifications/NotificationHost.d.cts +7 -1
- package/dist/notifications/NotificationHost.d.ts +7 -1
- package/dist/notifications/NotificationItem.d.cts +48 -15
- package/dist/notifications/NotificationItem.d.ts +48 -15
- package/dist/notifications/catalogAdapter.d.cts +28 -6
- package/dist/notifications/catalogAdapter.d.ts +28 -6
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
- package/dist/notifications/customSoundCache.d.cts +24 -24
- package/dist/notifications/customSoundCache.d.ts +24 -24
- package/dist/notifications/emailDigest.d.cts +34 -16
- package/dist/notifications/emailDigest.d.ts +34 -16
- package/dist/notifications/errorActionButtons.d.cts +18 -1
- package/dist/notifications/errorActionButtons.d.ts +18 -1
- package/dist/notifications/fireNotification.d.cts +27 -17
- package/dist/notifications/fireNotification.d.ts +27 -17
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +6 -12
- package/dist/notifications/index.d.ts +6 -12
- package/dist/notifications/index.js +64 -104
- package/dist/notifications/nativeEngine.d.cts +18 -15
- package/dist/notifications/nativeEngine.d.ts +18 -15
- package/dist/notifications/notificationAnalytics.d.cts +11 -6
- package/dist/notifications/notificationAnalytics.d.ts +11 -6
- package/dist/notifications/notificationAudio.d.cts +30 -23
- package/dist/notifications/notificationAudio.d.ts +30 -23
- package/dist/notifications/notificationCardServices.d.cts +23 -0
- package/dist/notifications/notificationCardServices.d.ts +23 -0
- package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
- package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
- package/dist/notifications/notificationOverlaySync.d.cts +7 -2
- package/dist/notifications/notificationOverlaySync.d.ts +7 -2
- package/dist/notifications/notificationService.d.cts +101 -0
- package/dist/notifications/notificationService.d.ts +101 -0
- package/dist/notifications/notificationTimeline.d.cts +47 -49
- package/dist/notifications/notificationTimeline.d.ts +47 -49
- package/dist/notifications/notifications.notifications.d.cts +0 -4
- package/dist/notifications/notifications.notifications.d.ts +0 -4
- package/dist/notifications/toast.d.cts +24 -28
- package/dist/notifications/toast.d.ts +24 -28
- package/dist/notifications/webhookDelivery.d.cts +12 -17
- package/dist/notifications/webhookDelivery.d.ts +12 -17
- package/dist/overlay/ConfirmDialog.d.cts +0 -8
- package/dist/overlay/ConfirmDialog.d.ts +0 -8
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +110 -115
- package/dist/pageTourState-BcBF8w89.js +516 -0
- package/dist/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
- package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
- package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
- package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
- package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
- package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
- package/dist/server/HostPortal-X1iw719T.js +33 -0
- package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
- package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
- package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
- package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
- package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
- package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
- package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
- package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/actions-DtaFGwh2.cjs +1 -0
- package/dist/server/actions-wwAHs3ZU.js +16 -0
- package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
- package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
- package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
- package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
- package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
- package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
- package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
- package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
- package/dist/server/defineSettings-Di1sG81q.js +407 -0
- package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
- package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +389 -315
- package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
- package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
- package/dist/server/electronBridge-BK92fycw.js +235 -0
- package/dist/server/electronBridge-cT0xww92.cjs +1 -0
- package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
- package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +37 -38
- package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
- package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
- 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/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +53 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
- package/dist/server/index-Cqod09d_.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +810 -883
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +3 -3
- package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
- 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 +63 -103
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +104 -109
- package/dist/server/pageTourState-BcBF8w89.js +516 -0
- package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +23 -24
- package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +19 -20
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/server/useListCommands-BO_XrRHj.js +38 -0
- package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/server/window-CUK6x8Pj.js +36 -0
- package/dist/server/window-_BfSgFGO.cjs +1 -0
- package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.d.cts +1 -1
- package/dist/settings/index.d.ts +1 -1
- package/dist/settings/index.js +23 -24
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
- package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
- package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
- package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
- package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
- package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
- package/dist/solid/_internal/contract/catalogNotify.js +1 -24
- package/dist/solid/_internal/contract/hostErrorText.js +1 -14
- package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
- package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
- package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
- package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
- package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
- package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
- package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
- package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
- package/dist/solid/async/createGuardedListLoader.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
- package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
- package/dist/solid/feedback/Loader.jsx +1 -2
- package/dist/solid/feedback/createPreference.js +3 -2
- package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
- package/dist/solid/feedback/preference.notifications.js +1 -2
- package/dist/solid/feedback/readFailureText.js +1 -2
- package/dist/solid/host/index.js +8 -16
- package/dist/solid/host/window.js +15 -22
- package/dist/solid/i18n/i18n.js +5 -6
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/createResizableSidebar.js +15 -23
- package/dist/solid/notifications/NotificationHost.jsx +21 -29
- package/dist/solid/notifications/NotificationItem.jsx +28 -104
- package/dist/solid/notifications/NotificationPanel.jsx +33 -44
- package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +61 -62
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
- package/dist/solid/notifications/customSoundCache.js +26 -21
- package/dist/solid/notifications/emailDigest.js +74 -86
- package/dist/solid/notifications/errorActionButtons.js +6 -11
- package/dist/solid/notifications/fireNotification.js +14 -19
- package/dist/solid/notifications/index.js +3 -12
- package/dist/solid/notifications/nativeEngine.js +6 -19
- package/dist/solid/notifications/notificationAnalytics.js +32 -38
- package/dist/solid/notifications/notificationAudio.js +77 -74
- package/dist/solid/notifications/notificationCardServices.js +34 -0
- package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
- package/dist/solid/notifications/notificationOverlaySync.js +18 -23
- package/dist/solid/notifications/notificationService.js +135 -0
- package/dist/solid/notifications/notificationTimeline.js +117 -124
- package/dist/solid/notifications/notifications.notifications.js +3 -22
- package/dist/solid/notifications/toast.js +168 -213
- package/dist/solid/notifications/webhookDelivery.js +27 -53
- package/dist/solid/overlay/ConfirmDialog.jsx +1 -33
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
- package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
- package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
- package/dist/solid/overlay/index.js +0 -3
- package/dist/solid/settings/index.js +1 -1
- package/dist/solid/tokens/index.js +1 -1
- package/dist/solid/tokens/palette/themeRegistry.js +20 -22
- package/dist/stateDbStore-CThsVch-.cjs +1 -0
- package/dist/stateDbStore-DHZFUIEt.js +57 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +19 -20
- package/dist/tokens/palette/themeRegistry.d.cts +17 -22
- package/dist/tokens/palette/themeRegistry.d.ts +17 -22
- package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
- package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
- package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
- package/dist/useListCommands-BO_XrRHj.js +38 -0
- package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
- package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
- package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
- package/dist/window-CUK6x8Pj.js +36 -0
- package/dist/window-_BfSgFGO.cjs +1 -0
- package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
- package/dist/windowRegistry-DeGmXt6W.js +20 -0
- package/package.json +1 -1
- package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
- package/dist/CommandPalette-yqvM9AuU.js +0 -3897
- package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
- package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
- package/dist/GuidedTour-lsljVkPL.js +0 -11216
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-CJhd27dM.cjs +0 -1
- package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
- package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
- package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
- package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
- package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
- package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
- package/dist/_internal/base/listenerDispatch.d.cts +0 -14
- package/dist/_internal/base/listenerDispatch.d.ts +0 -14
- package/dist/_internal/contract/appName.d.cts +0 -10
- package/dist/_internal/contract/appName.d.ts +0 -10
- package/dist/_internal/contract/hostText.d.cts +0 -25
- package/dist/_internal/contract/hostText.d.ts +0 -25
- package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
- package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
- package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
- package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-BcY9oqVy.js +0 -1223
- package/dist/catalogNotify-DacJjC-p.cjs +0 -27
- package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
- package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
- package/dist/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/descriptor-Dmch-3AF.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/displayOwner-mT80Oyi-.js +0 -75
- package/dist/feedback/preference.notifications.samples.d.cts +0 -1
- package/dist/feedback/preference.notifications.samples.d.ts +0 -1
- package/dist/focusModality-BNjYldd9.cjs +0 -1
- package/dist/focusModality-DxudpWPs.js +0 -135
- package/dist/format-BS7oDguE.js +0 -298
- package/dist/format-CuANkXXB.cjs +0 -1
- package/dist/i18n-DXXArz-m.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
- package/dist/mainRealmDom-kEStLHIY.js +0 -102
- package/dist/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/notification-DygvQB_o.cjs +0 -1
- package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
- package/dist/notificationSuppressions-ddyK85cB.js +0 -430
- package/dist/notifications/copyToClipboard.d.cts +0 -6
- package/dist/notifications/copyToClipboard.d.ts +0 -6
- package/dist/notifications/createCopyFlash.d.cts +0 -17
- package/dist/notifications/createCopyFlash.d.ts +0 -17
- package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
- package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
- package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
- package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
- package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
- package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
- package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
- package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
- package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
- package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
- package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
- package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
- package/dist/overlay/ToastHost.d.cts +0 -7
- package/dist/overlay/ToastHost.d.ts +0 -7
- package/dist/pageTourState-CIr8ockR.js +0 -92
- package/dist/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
- package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
- package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
- package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
- package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CCUwQYso.cjs +0 -1
- package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
- package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
- package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
- package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
- package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
- package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
- package/dist/server/VpTrash-DVBfts9_.js +0 -116
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
- package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
- package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
- package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
- package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
- package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
- package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
- package/dist/server/displayOwner-mT80Oyi-.js +0 -75
- package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
- package/dist/server/format-WfZycMBL.cjs +0 -1
- package/dist/server/i18n-DXXArz-m.cjs +0 -4
- package/dist/server/index-DlQYWckZ.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
- package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
- package/dist/server/notification-DygvQB_o.cjs +0 -1
- package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
- package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
- package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
- package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
- package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
- package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
- package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
- package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
- package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
- package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
- package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
- package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
- package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
- package/dist/solid/_internal/base/listenerDispatch.js +0 -12
- package/dist/solid/_internal/contract/appName.js +0 -7
- package/dist/solid/_internal/contract/hostText.js +0 -15
- package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
- package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
- package/dist/solid/feedback/preference.notifications.samples.js +0 -5
- package/dist/solid/notifications/copyToClipboard.js +0 -21
- package/dist/solid/notifications/createCopyFlash.js +0 -26
- package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
- package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
- package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
- package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
- package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
- package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
- package/dist/solid/overlay/ToastHost.jsx +0 -1
- package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
- package/dist/stateDbStore-THFfFGa0.cjs +0 -1
- package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
- package/dist/useListCommands-Bf7aOTXZ.js +0 -61
- package/dist/useListCommands-ucngC3t4.cjs +0 -1
- package/dist/useSettingsSubscription-cu943hND.js +0 -11
- package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
- package/dist/windowRegistry-Bk5lXIVd.js +0 -62
- package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
|
@@ -1,1261 +0,0 @@
|
|
|
1
|
-
import { B as O } from "./bugIndicatingError-h3J5qkL6.js";
|
|
2
|
-
import { g as H, e as N } from "./rendererLogging-gAhiHWkA.js";
|
|
3
|
-
import { A as De, B as Re, z as K, C as Ne, k as de, n as ee, l as Ie, D as Ue, b as fe, E as ge, e as Oe, h as ne, i as Me, f as qe, F as me, G as Fe } from "./notificationSuppressions-B-LKq9ZU.js";
|
|
4
|
-
import { n as f } from "./notification-CpDYN_iu.js";
|
|
5
|
-
import { t as m } from "./i18n-D9k9xwuD.js";
|
|
6
|
-
const Pe = {
|
|
7
|
-
info: { freq: 660, ms: 140 },
|
|
8
|
-
success: { freq: 880, ms: 180 },
|
|
9
|
-
warning: { freq: 520, ms: 220 },
|
|
10
|
-
error: { freq: 320, ms: 260 }
|
|
11
|
-
}, We = {
|
|
12
|
-
info: "soundOnInfo",
|
|
13
|
-
success: "soundOnSuccess",
|
|
14
|
-
warning: "soundOnWarning",
|
|
15
|
-
error: "soundOnError"
|
|
16
|
-
}, _e = {
|
|
17
|
-
info: "customSoundInfo",
|
|
18
|
-
success: "customSoundSuccess",
|
|
19
|
-
warning: "customSoundWarning",
|
|
20
|
-
error: "customSoundError"
|
|
21
|
-
};
|
|
22
|
-
function He(t, e, r) {
|
|
23
|
-
if (!e[We[t]] || e.quietHoursMutesSounds && r) return null;
|
|
24
|
-
const i = e[_e[t]].trim();
|
|
25
|
-
if (i) return { kind: "custom", path: i };
|
|
26
|
-
const n = Pe[t];
|
|
27
|
-
return { kind: "builtin", freq: n.freq, ms: n.ms };
|
|
28
|
-
}
|
|
29
|
-
const L = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map();
|
|
30
|
-
async function Ke(t) {
|
|
31
|
-
const e = L.get(t);
|
|
32
|
-
if (e) return e;
|
|
33
|
-
let r = P.get(t);
|
|
34
|
-
return r || (r = De(t).then((i) => (P.delete(t), i && L.set(t, i), i)), P.set(t, r)), await r ?? void 0;
|
|
35
|
-
}
|
|
36
|
-
function It() {
|
|
37
|
-
L.clear(), P.clear();
|
|
38
|
-
}
|
|
39
|
-
const te = H("NotificationAudio");
|
|
40
|
-
let M = null, V = !1;
|
|
41
|
-
function Be() {
|
|
42
|
-
if (V) return null;
|
|
43
|
-
if (M) return M;
|
|
44
|
-
try {
|
|
45
|
-
const t = window.AudioContext ?? window.webkitAudioContext;
|
|
46
|
-
return t ? (M = new t(), M) : (V = !0, null);
|
|
47
|
-
} catch (t) {
|
|
48
|
-
return V = !0, te.warn("AudioContext could not be created; notification sounds are off:", t), null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async function Ve(t) {
|
|
52
|
-
const e = await Ke(t);
|
|
53
|
-
if (e)
|
|
54
|
-
try {
|
|
55
|
-
const r = new Audio(e);
|
|
56
|
-
r.volume = 0.6, await r.play();
|
|
57
|
-
} catch (r) {
|
|
58
|
-
te.warn("Custom notification sound could not be played:", r);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function ye(t = 800, e = 200) {
|
|
62
|
-
const r = Be();
|
|
63
|
-
if (r)
|
|
64
|
-
try {
|
|
65
|
-
const i = r.currentTime, n = r.createOscillator(), s = r.createGain();
|
|
66
|
-
n.connect(s), s.connect(r.destination), n.frequency.value = t, s.gain.setValueAtTime(0.3, i), s.gain.exponentialRampToValueAtTime(0.01, i + e / 1e3), n.start(i), n.stop(i + e / 1e3);
|
|
67
|
-
} catch (i) {
|
|
68
|
-
te.warn("Notification tone could not be played:", i);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function Le() {
|
|
72
|
-
ye(800, 200);
|
|
73
|
-
}
|
|
74
|
-
function Qe(t, e) {
|
|
75
|
-
const r = He(
|
|
76
|
-
t,
|
|
77
|
-
f.get(),
|
|
78
|
-
e
|
|
79
|
-
);
|
|
80
|
-
if (r) {
|
|
81
|
-
if (r.kind === "custom") {
|
|
82
|
-
Ve(r.path);
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
ye(r.freq, r.ms);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
let _ = null;
|
|
89
|
-
function Ut(t) {
|
|
90
|
-
_ = t;
|
|
91
|
-
}
|
|
92
|
-
function Ye() {
|
|
93
|
-
return _ !== null;
|
|
94
|
-
}
|
|
95
|
-
function ve() {
|
|
96
|
-
if (_ === null)
|
|
97
|
-
throw new O(
|
|
98
|
-
"[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup."
|
|
99
|
-
);
|
|
100
|
-
return _;
|
|
101
|
-
}
|
|
102
|
-
function re(t) {
|
|
103
|
-
const e = ve().errorHelpersFor(t.vendorId);
|
|
104
|
-
return e === null ? null : { vendorId: t.vendorId, code: t.code, helpers: e };
|
|
105
|
-
}
|
|
106
|
-
function Ot(t, e, r) {
|
|
107
|
-
const i = ve().errorHelpersFor(t);
|
|
108
|
-
if (i === null)
|
|
109
|
-
throw new O(
|
|
110
|
-
`[vendorErrors] unknown preview vendor: ${t}`
|
|
111
|
-
);
|
|
112
|
-
return {
|
|
113
|
-
message: `${i.formatCode(e)}: ${r}`,
|
|
114
|
-
vendorError: { vendorId: t, code: e }
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function Mt(t) {
|
|
118
|
-
return `https://www.google.com/search?q=${encodeURIComponent(t)}`;
|
|
119
|
-
}
|
|
120
|
-
const pe = H("NotificationTimeline");
|
|
121
|
-
function qt(t) {
|
|
122
|
-
return t.vendorError === void 0 ? null : re(t.vendorError);
|
|
123
|
-
}
|
|
124
|
-
const je = 200;
|
|
125
|
-
let Q = [];
|
|
126
|
-
const Y = /* @__PURE__ */ new Set();
|
|
127
|
-
function C() {
|
|
128
|
-
return [...Q];
|
|
129
|
-
}
|
|
130
|
-
function A(t) {
|
|
131
|
-
const e = [...t].sort(
|
|
132
|
-
(o, c) => c.createdAt - o.createdAt
|
|
133
|
-
), r = e.filter((o) => o.pinned === !0), n = e.filter((o) => o.pinned !== !0).slice(
|
|
134
|
-
0,
|
|
135
|
-
Math.max(0, je - r.length)
|
|
136
|
-
);
|
|
137
|
-
Q = [...[...r].sort(
|
|
138
|
-
(o, c) => (c.pinnedAt ?? c.createdAt) - (o.pinnedAt ?? o.createdAt)
|
|
139
|
-
), ...n];
|
|
140
|
-
for (const o of Array.from(Y))
|
|
141
|
-
try {
|
|
142
|
-
o(Q);
|
|
143
|
-
} catch (c) {
|
|
144
|
-
pe.warn("Zaman cizelgesi dinleyicisi firlatti:", c);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
let k = 0, I = 0;
|
|
148
|
-
const j = /* @__PURE__ */ new Set();
|
|
149
|
-
function w(t, e, r = "general", i = "default", n, s) {
|
|
150
|
-
if (!t.trim()) return;
|
|
151
|
-
const o = {
|
|
152
|
-
id: `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`,
|
|
153
|
-
message: N(t),
|
|
154
|
-
tone: e,
|
|
155
|
-
createdAt: Date.now(),
|
|
156
|
-
source: r,
|
|
157
|
-
priority: i,
|
|
158
|
-
...n && n.length > 0 ? { actions: n } : {},
|
|
159
|
-
...s ? { vendorError: s } : {}
|
|
160
|
-
};
|
|
161
|
-
A([o, ...C()]), k += 1, he();
|
|
162
|
-
}
|
|
163
|
-
function D(t) {
|
|
164
|
-
if (t)
|
|
165
|
-
return [{ label: t.label, onClick: t.onClick, primary: !0 }];
|
|
166
|
-
}
|
|
167
|
-
function he() {
|
|
168
|
-
const t = Math.max(0, k - I);
|
|
169
|
-
for (const e of Array.from(j))
|
|
170
|
-
try {
|
|
171
|
-
e(t);
|
|
172
|
-
} catch (r) {
|
|
173
|
-
pe.warn("Okunmadi sayaci dinleyicisi firlatti:", r);
|
|
174
|
-
}
|
|
175
|
-
we(t);
|
|
176
|
-
}
|
|
177
|
-
let X = -1;
|
|
178
|
-
function we(t) {
|
|
179
|
-
const e = f.get(), r = e.badgeCountEnabled ? Math.min(t, e.badgeCountMax) : 0;
|
|
180
|
-
r !== X && (X = r, Re(r));
|
|
181
|
-
}
|
|
182
|
-
function Ft() {
|
|
183
|
-
const t = Math.max(0, k - I);
|
|
184
|
-
X = -1, we(t);
|
|
185
|
-
}
|
|
186
|
-
function Pt(t) {
|
|
187
|
-
return j.add(t), t(Math.max(0, k - I)), () => {
|
|
188
|
-
j.delete(t);
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function Wt() {
|
|
192
|
-
I !== k && (I = k, he());
|
|
193
|
-
}
|
|
194
|
-
function _t(t) {
|
|
195
|
-
return Y.add(t), t(C()), () => {
|
|
196
|
-
Y.delete(t);
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function Ht() {
|
|
200
|
-
A([]);
|
|
201
|
-
}
|
|
202
|
-
function Kt(t) {
|
|
203
|
-
const e = C().filter((r) => r.id !== t);
|
|
204
|
-
A(e);
|
|
205
|
-
}
|
|
206
|
-
function Bt(t) {
|
|
207
|
-
if (t.length === 0) return;
|
|
208
|
-
const e = new Set(t), r = C().filter((i) => !e.has(i.id));
|
|
209
|
-
A(r);
|
|
210
|
-
}
|
|
211
|
-
function Vt(t) {
|
|
212
|
-
if (!t) return;
|
|
213
|
-
const e = C().filter((r) => r.source !== t);
|
|
214
|
-
A(e);
|
|
215
|
-
}
|
|
216
|
-
function Lt(t) {
|
|
217
|
-
const r = C().map((i) => {
|
|
218
|
-
if (i.id !== t) return i;
|
|
219
|
-
const n = !i.pinned, { pinnedAt: s, ...o } = i;
|
|
220
|
-
return n ? { ...o, pinned: !0, pinnedAt: Date.now() } : { ...o, pinned: !1 };
|
|
221
|
-
});
|
|
222
|
-
A(r);
|
|
223
|
-
}
|
|
224
|
-
const W = /* @__PURE__ */ new Map();
|
|
225
|
-
function Qt() {
|
|
226
|
-
W.clear();
|
|
227
|
-
}
|
|
228
|
-
function Xe(t) {
|
|
229
|
-
if (W.has(t))
|
|
230
|
-
return W.get(t) ?? null;
|
|
231
|
-
let e;
|
|
232
|
-
try {
|
|
233
|
-
e = new RegExp(t, "i");
|
|
234
|
-
} catch {
|
|
235
|
-
e = null;
|
|
236
|
-
}
|
|
237
|
-
return W.set(t, e), e;
|
|
238
|
-
}
|
|
239
|
-
function ze(t, e) {
|
|
240
|
-
const r = t.conditions;
|
|
241
|
-
if (r.source && r.source !== e.source || r.severities && r.severities.length > 0 && !r.severities.includes(e.severity))
|
|
242
|
-
return !1;
|
|
243
|
-
if (r.titleRegex) {
|
|
244
|
-
const i = Xe(r.titleRegex);
|
|
245
|
-
if (!i || !i.test(e.title)) return !1;
|
|
246
|
-
}
|
|
247
|
-
return !0;
|
|
248
|
-
}
|
|
249
|
-
function Ge(t, e) {
|
|
250
|
-
if (e.length === 0) return t;
|
|
251
|
-
let r = { ...t };
|
|
252
|
-
for (const i of e)
|
|
253
|
-
if (i.enabled && ze(i, r)) {
|
|
254
|
-
if (i.actions.suppress === !0) return null;
|
|
255
|
-
if (i.actions.setSeverity && (r = { ...r, severity: i.actions.setSeverity }), i.actions.setPriority && (r = { ...r, priority: i.actions.setPriority }), i.actions.addPrefix) {
|
|
256
|
-
const n = i.actions.addPrefix.trim();
|
|
257
|
-
n && (r = { ...r, title: `${n} ${r.title}` });
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return r;
|
|
261
|
-
}
|
|
262
|
-
function se(t) {
|
|
263
|
-
const e = /^(\d{1,2}):(\d{2})$/.exec(t.trim());
|
|
264
|
-
if (!e) return null;
|
|
265
|
-
const r = Number(e[1]), i = Number(e[2]);
|
|
266
|
-
return r > 23 || i > 59 ? null : r * 60 + i;
|
|
267
|
-
}
|
|
268
|
-
function Se(t, e) {
|
|
269
|
-
if (!t.quietHoursEnabled || !t.quietHoursWeekdays.includes(e.getDay())) return !1;
|
|
270
|
-
const r = se(t.quietHoursStart), i = se(t.quietHoursEnd);
|
|
271
|
-
if (r === null || i === null || r === i) return !1;
|
|
272
|
-
const n = e.getHours() * 60 + e.getMinutes();
|
|
273
|
-
return r < i ? n >= r && n < i : n >= r || n < i;
|
|
274
|
-
}
|
|
275
|
-
function Je(t) {
|
|
276
|
-
return t.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
|
|
277
|
-
}
|
|
278
|
-
const oe = {
|
|
279
|
-
info: 0,
|
|
280
|
-
success: 1,
|
|
281
|
-
warning: 2,
|
|
282
|
-
error: 3
|
|
283
|
-
};
|
|
284
|
-
function Ze(t, e) {
|
|
285
|
-
return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } : oe[t.severity] < oe[e.osNativeMinSeverity] ? { fire: !1, onlyWhenUnfocused: !1 } : {
|
|
286
|
-
fire: !0,
|
|
287
|
-
onlyWhenUnfocused: e.osNativeOnlyWhenUnfocused
|
|
288
|
-
} : { fire: !1, onlyWhenUnfocused: !1 };
|
|
289
|
-
}
|
|
290
|
-
const et = {
|
|
291
|
-
"sql-execution": "sql",
|
|
292
|
-
users: "users",
|
|
293
|
-
tablespaces: "tablespaces",
|
|
294
|
-
rss: "rss-feeds",
|
|
295
|
-
locking: "locking",
|
|
296
|
-
monitoring: "monitoring"
|
|
297
|
-
};
|
|
298
|
-
function tt(t, e) {
|
|
299
|
-
if (e) return e;
|
|
300
|
-
if (t !== void 0)
|
|
301
|
-
return et[t];
|
|
302
|
-
}
|
|
303
|
-
const z = "notification.emailDigestSmtpPass", G = "notification.webhook.url.";
|
|
304
|
-
let J = null;
|
|
305
|
-
function Yt(t) {
|
|
306
|
-
J = t;
|
|
307
|
-
}
|
|
308
|
-
function be() {
|
|
309
|
-
if (J === null)
|
|
310
|
-
throw new O(
|
|
311
|
-
"notificationSecretStore: no secret store was bound — call provideNotificationSecretStore() at startup."
|
|
312
|
-
);
|
|
313
|
-
return J;
|
|
314
|
-
}
|
|
315
|
-
function U(t) {
|
|
316
|
-
return `${G}${t}`;
|
|
317
|
-
}
|
|
318
|
-
function rt(t) {
|
|
319
|
-
return t.get(z);
|
|
320
|
-
}
|
|
321
|
-
async function jt(t, e) {
|
|
322
|
-
e ? await t.set(z, e) : await t.delete(z);
|
|
323
|
-
}
|
|
324
|
-
function it(t, e) {
|
|
325
|
-
return t.get(U(e));
|
|
326
|
-
}
|
|
327
|
-
async function Xt(t, e, r) {
|
|
328
|
-
r ? await t.set(U(e), r) : await t.delete(U(e));
|
|
329
|
-
}
|
|
330
|
-
function zt(t, e) {
|
|
331
|
-
return t.delete(U(e));
|
|
332
|
-
}
|
|
333
|
-
async function Gt(t, e) {
|
|
334
|
-
const r = new Set(e), i = (await t.keys()).filter((n) => n.startsWith(G)).map((n) => n.slice(G.length)).filter((n) => !r.has(n));
|
|
335
|
-
await Promise.all(i.map((n) => t.delete(U(n))));
|
|
336
|
-
}
|
|
337
|
-
let Te = "";
|
|
338
|
-
function Jt(t) {
|
|
339
|
-
Te = t.trim();
|
|
340
|
-
}
|
|
341
|
-
function Ee() {
|
|
342
|
-
return Te;
|
|
343
|
-
}
|
|
344
|
-
const nt = H("WebhookDelivery"), st = {
|
|
345
|
-
info: "#007AB0",
|
|
346
|
-
success: "#108846",
|
|
347
|
-
warning: "#D27908",
|
|
348
|
-
error: "#BE2E34"
|
|
349
|
-
}, ot = {
|
|
350
|
-
info: 1668818,
|
|
351
|
-
success: 3046706,
|
|
352
|
-
warning: 16088064,
|
|
353
|
-
error: 12986408
|
|
354
|
-
};
|
|
355
|
-
function ct(t, e) {
|
|
356
|
-
const { severities: r, priorities: i, sources: n } = t.filters;
|
|
357
|
-
return !(r.length > 0 && !r.includes(e.severity) || i.length > 0 && !i.includes(e.priority) || n.length > 0 && !n.includes(e.source));
|
|
358
|
-
}
|
|
359
|
-
function at(t, e) {
|
|
360
|
-
switch (t.type) {
|
|
361
|
-
case "slack":
|
|
362
|
-
return {
|
|
363
|
-
text: e.title,
|
|
364
|
-
attachments: [
|
|
365
|
-
{
|
|
366
|
-
color: st[e.severity],
|
|
367
|
-
fields: [
|
|
368
|
-
{ title: "Source", value: e.source, short: !0 },
|
|
369
|
-
{ title: "Severity", value: e.severity, short: !0 },
|
|
370
|
-
{ title: "Priority", value: e.priority, short: !0 }
|
|
371
|
-
],
|
|
372
|
-
text: e.body ?? ""
|
|
373
|
-
}
|
|
374
|
-
]
|
|
375
|
-
};
|
|
376
|
-
case "discord":
|
|
377
|
-
return {
|
|
378
|
-
embeds: [
|
|
379
|
-
{
|
|
380
|
-
title: e.title,
|
|
381
|
-
description: e.body ?? "",
|
|
382
|
-
color: ot[e.severity],
|
|
383
|
-
fields: [
|
|
384
|
-
{ name: "Source", value: e.source, inline: !0 },
|
|
385
|
-
{ name: "Severity", value: e.severity, inline: !0 },
|
|
386
|
-
{ name: "Priority", value: e.priority, inline: !0 }
|
|
387
|
-
]
|
|
388
|
-
}
|
|
389
|
-
]
|
|
390
|
-
};
|
|
391
|
-
case "generic":
|
|
392
|
-
default:
|
|
393
|
-
return {
|
|
394
|
-
title: e.title,
|
|
395
|
-
body: e.body ?? "",
|
|
396
|
-
severity: e.severity,
|
|
397
|
-
priority: e.priority,
|
|
398
|
-
source: e.source,
|
|
399
|
-
timestamp: Date.now()
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
async function ut(t, e, r) {
|
|
404
|
-
try {
|
|
405
|
-
const i = JSON.stringify(at(t, r));
|
|
406
|
-
await fetch(e, {
|
|
407
|
-
method: "POST",
|
|
408
|
-
headers: { "Content-Type": "application/json" },
|
|
409
|
-
body: i
|
|
410
|
-
});
|
|
411
|
-
} catch (i) {
|
|
412
|
-
nt.warn("Webhook delivery failed:", i);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
async function lt(t, e) {
|
|
416
|
-
const r = await it(be(), t.id) ?? "";
|
|
417
|
-
r && await ut(t, r, e);
|
|
418
|
-
}
|
|
419
|
-
function dt(t) {
|
|
420
|
-
const r = f.get().webhooks.filter(
|
|
421
|
-
(i) => i.enabled && ct(i, t)
|
|
422
|
-
);
|
|
423
|
-
if (r.length !== 0)
|
|
424
|
-
for (const i of r)
|
|
425
|
-
lt(i, t);
|
|
426
|
-
}
|
|
427
|
-
let Z = null;
|
|
428
|
-
function Zt(t) {
|
|
429
|
-
Z = t;
|
|
430
|
-
}
|
|
431
|
-
const ft = H("EmailDigest"), S = [], ce = 500, ae = {
|
|
432
|
-
info: 0,
|
|
433
|
-
success: 1,
|
|
434
|
-
warning: 2,
|
|
435
|
-
error: 3
|
|
436
|
-
};
|
|
437
|
-
function gt(t) {
|
|
438
|
-
const e = f.get();
|
|
439
|
-
e.emailDigestEnabled && (ae[t.severity] < ae[e.emailDigestMinSeverity] || (S.push(t), S.length > ce && S.splice(0, S.length - ce)));
|
|
440
|
-
}
|
|
441
|
-
const q = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
442
|
-
function mt(t) {
|
|
443
|
-
const e = Ee(), r = t.map((i) => `<tr>
|
|
444
|
-
<td style="padding:4px 8px">${new Date(i.at).toISOString().slice(11, 19)}</td>
|
|
445
|
-
<td style="padding:4px 8px"><strong>${i.severity}</strong></td>
|
|
446
|
-
<td style="padding:4px 8px">${q(i.source)}</td>
|
|
447
|
-
<td style="padding:4px 8px">${q(i.title)}${i.body ? `<br><small>${q(i.body)}</small>` : ""}</td>
|
|
448
|
-
</tr>`).join(`
|
|
449
|
-
`);
|
|
450
|
-
return `<!doctype html>
|
|
451
|
-
<html><body>
|
|
452
|
-
<h2>${e ? `${q(e)} notification digest` : "Notification digest"}</h2>
|
|
453
|
-
<p>${t.length} notification(s) since the last digest.</p>
|
|
454
|
-
<table style="border-collapse:collapse">
|
|
455
|
-
<thead><tr style="background:#eee">
|
|
456
|
-
<th style="padding:4px 8px;text-align:left">Time (UTC)</th>
|
|
457
|
-
<th style="padding:4px 8px;text-align:left">Severity</th>
|
|
458
|
-
<th style="padding:4px 8px;text-align:left">Source</th>
|
|
459
|
-
<th style="padding:4px 8px;text-align:left">Message</th>
|
|
460
|
-
</tr></thead>
|
|
461
|
-
<tbody>
|
|
462
|
-
${r}
|
|
463
|
-
</tbody></table>
|
|
464
|
-
</body></html>`;
|
|
465
|
-
}
|
|
466
|
-
function yt(t) {
|
|
467
|
-
const e = t.map((r) => `[${new Date(r.at).toISOString()}] ${r.severity.toUpperCase()} (${r.source}): ${r.title}${r.body ? ` — ${r.body}` : ""}`);
|
|
468
|
-
return `${t.length} notification(s):
|
|
469
|
-
|
|
470
|
-
${e.join(`
|
|
471
|
-
`)}`;
|
|
472
|
-
}
|
|
473
|
-
function er(t) {
|
|
474
|
-
switch (t.kind) {
|
|
475
|
-
case "disabled":
|
|
476
|
-
return m("Email digest is turned off.");
|
|
477
|
-
case "smtp-incomplete":
|
|
478
|
-
return m("SMTP host, sender and recipient are required.");
|
|
479
|
-
case "send-failed":
|
|
480
|
-
return K(t.error, m("The digest could not be sent."));
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
async function vt() {
|
|
484
|
-
const t = f.get();
|
|
485
|
-
if (!t.emailDigestEnabled)
|
|
486
|
-
return { kind: "not-sent", reason: { kind: "disabled" } };
|
|
487
|
-
if (S.length === 0) return { kind: "sent", count: 0 };
|
|
488
|
-
if (!t.emailDigestSmtpHost || !t.emailDigestFrom || !t.emailDigestTo)
|
|
489
|
-
return { kind: "not-sent", reason: { kind: "smtp-incomplete" } };
|
|
490
|
-
const e = S.splice(0, S.length), r = {
|
|
491
|
-
sendEmailDigest: (o) => Z ? Z(o) : Promise.reject(new Error("No email digest transport configured"))
|
|
492
|
-
}, i = Ee(), n = `${i ? `[${i}] ` : ""}${e.length} notification(s)`, s = await rt(be()) ?? "";
|
|
493
|
-
try {
|
|
494
|
-
return await r.sendEmailDigest({
|
|
495
|
-
smtp: {
|
|
496
|
-
host: t.emailDigestSmtpHost,
|
|
497
|
-
port: t.emailDigestSmtpPort,
|
|
498
|
-
secure: t.emailDigestSmtpSecure,
|
|
499
|
-
user: t.emailDigestSmtpUser,
|
|
500
|
-
pass: s
|
|
501
|
-
},
|
|
502
|
-
from: t.emailDigestFrom,
|
|
503
|
-
to: t.emailDigestTo,
|
|
504
|
-
subject: n,
|
|
505
|
-
html: mt(e),
|
|
506
|
-
text: yt(e)
|
|
507
|
-
}), { kind: "sent", count: e.length };
|
|
508
|
-
} catch (o) {
|
|
509
|
-
return S.unshift(...e), { kind: "not-sent", reason: { kind: "send-failed", error: o } };
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
let ue = 0, le = null;
|
|
513
|
-
function pt(t) {
|
|
514
|
-
const e = f.get();
|
|
515
|
-
if (!e.emailDigestEnabled) return !1;
|
|
516
|
-
const r = t.getHours(), i = t.getMinutes(), n = t.getDay();
|
|
517
|
-
switch (e.emailDigestSchedule) {
|
|
518
|
-
case "hourly":
|
|
519
|
-
return i === 0;
|
|
520
|
-
case "daily-9am":
|
|
521
|
-
return r === 9 && i === 0;
|
|
522
|
-
case "daily-5pm":
|
|
523
|
-
return r === 17 && i === 0;
|
|
524
|
-
case "weekly-mon-9am":
|
|
525
|
-
return n === 1 && r === 9 && i === 0;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
function tr() {
|
|
529
|
-
le === null && (typeof window > "u" || (le = window.setInterval(() => {
|
|
530
|
-
const t = /* @__PURE__ */ new Date();
|
|
531
|
-
if (!pt(t)) return;
|
|
532
|
-
const e = Math.floor(t.getTime() / 6e4);
|
|
533
|
-
e !== ue && (ue = e, vt().then((r) => {
|
|
534
|
-
r.kind === "not-sent" && r.reason.kind === "send-failed" && ft.warn("scheduled email digest failed", r.reason.error);
|
|
535
|
-
}));
|
|
536
|
-
}, 6e4)));
|
|
537
|
-
}
|
|
538
|
-
function xe() {
|
|
539
|
-
return Se(f.get(), /* @__PURE__ */ new Date());
|
|
540
|
-
}
|
|
541
|
-
function E(t, e, r, i, n) {
|
|
542
|
-
const s = f.get(), o = qe(t, e);
|
|
543
|
-
return Oe({ priority: r, recordTimeline: n }, s, {
|
|
544
|
-
dismissed: i !== void 0 && Me(i),
|
|
545
|
-
remindSuppressed: i !== void 0 && ne(i) || ne(o),
|
|
546
|
-
sourceMuted: de(t),
|
|
547
|
-
inQuietHours: xe()
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
function ht(t, e, r, i) {
|
|
551
|
-
return {
|
|
552
|
-
label: t.label,
|
|
553
|
-
primary: i,
|
|
554
|
-
keepOpen: t.expireOnAction === !1,
|
|
555
|
-
onClick: () => {
|
|
556
|
-
Ue(r);
|
|
557
|
-
try {
|
|
558
|
-
t.onClick();
|
|
559
|
-
} finally {
|
|
560
|
-
const n = e();
|
|
561
|
-
t.expireOnAction !== !1 && n && fe(n);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
function R(t) {
|
|
567
|
-
var h, g;
|
|
568
|
-
const e = t.options.source ?? "general";
|
|
569
|
-
if (Ne(e, t.decision.showToast, de(e)), !t.decision.showToast) return null;
|
|
570
|
-
Qe(t.severity, xe());
|
|
571
|
-
const { options: r } = t, i = ((h = r.subtitle) == null ? void 0 : h.trim()) || ((g = r.description) == null ? void 0 : g.trim()), n = r.id !== void 0 ? String(r.id) : void 0, s = f.get(), o = r.markdown ?? s.markdownEnabled, c = [
|
|
572
|
-
...t.primaryAction ? [t.primaryAction] : [],
|
|
573
|
-
...r.actions ?? []
|
|
574
|
-
], u = tt(
|
|
575
|
-
r.source,
|
|
576
|
-
r.defaultRoute
|
|
577
|
-
);
|
|
578
|
-
let l = null;
|
|
579
|
-
const a = ee({
|
|
580
|
-
severity: t.severity,
|
|
581
|
-
title: t.title,
|
|
582
|
-
...i ? { body: i } : {},
|
|
583
|
-
...o ? { markdown: !0 } : {},
|
|
584
|
-
source: r.source ?? "general",
|
|
585
|
-
priority: r.priority ?? "default",
|
|
586
|
-
...r.duration !== void 0 ? { durationMs: r.duration } : {},
|
|
587
|
-
...r.dontShowAgainKey ? { neverShowAgainKey: r.dontShowAgainKey } : {},
|
|
588
|
-
...n ? { id: n } : {},
|
|
589
|
-
...r.icon ? { icon: r.icon } : {},
|
|
590
|
-
...u ? { defaultRoute: u } : {},
|
|
591
|
-
...t.vendorError ? { vendorError: t.vendorError } : {},
|
|
592
|
-
...c.length > 0 ? {
|
|
593
|
-
actions: c.map(
|
|
594
|
-
(b, $) => ht(b, () => l == null ? void 0 : l.id, e, $ === 0)
|
|
595
|
-
)
|
|
596
|
-
} : {}
|
|
597
|
-
});
|
|
598
|
-
if (l = a, Ie(a)) return a;
|
|
599
|
-
const p = N(t.title), y = i ? N(i) : void 0, d = {
|
|
600
|
-
title: p,
|
|
601
|
-
...y ? { body: y } : {},
|
|
602
|
-
severity: t.severity,
|
|
603
|
-
priority: r.priority ?? "default",
|
|
604
|
-
source: r.source ?? "general"
|
|
605
|
-
};
|
|
606
|
-
return wt(d), dt(d), gt({ ...d, at: Date.now() }), a;
|
|
607
|
-
}
|
|
608
|
-
function wt(t) {
|
|
609
|
-
const e = Ze(t, f.get());
|
|
610
|
-
e.fire && ge({
|
|
611
|
-
title: t.title,
|
|
612
|
-
...t.body ? { body: t.body } : {},
|
|
613
|
-
severity: t.severity,
|
|
614
|
-
urgent: t.priority === "urgent",
|
|
615
|
-
onlyWhenUnfocused: e.onlyWhenUnfocused
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
function T(t) {
|
|
619
|
-
return typeof t == "string" ? t : t instanceof Error ? t.message : t == null ? "" : String(t);
|
|
620
|
-
}
|
|
621
|
-
function ke(t, e, r, i = me) {
|
|
622
|
-
var a, p, y;
|
|
623
|
-
const n = T(t), s = (a = e.title) == null ? void 0 : a.trim(), o = ((p = e.subtitle) == null ? void 0 : p.trim()) || ((y = e.description) == null ? void 0 : y.trim());
|
|
624
|
-
let c = s ?? n, u = o;
|
|
625
|
-
if (r && !s) {
|
|
626
|
-
const d = r.helpers.formatCode(r.code), h = new RegExp(
|
|
627
|
-
`^\\s*${Je(d)}\\s*[:-]\\s*(.+)$`,
|
|
628
|
-
"i"
|
|
629
|
-
), g = n.match(h);
|
|
630
|
-
if (g != null && g[1]) {
|
|
631
|
-
c = d;
|
|
632
|
-
const b = g[1].trim();
|
|
633
|
-
u = u ? `${b}
|
|
634
|
-
|
|
635
|
-
${u}` : b;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
let l = e.action;
|
|
639
|
-
if (!l && r) {
|
|
640
|
-
const d = r.helpers.docsUrl(r.code);
|
|
641
|
-
d && (l = {
|
|
642
|
-
label: `${r.helpers.formatCode(r.code)} ${r.helpers.docsLinkLabel}`,
|
|
643
|
-
onClick: () => i(d)
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
return { text: n, displayText: c, bodyText: u, primaryAction: l };
|
|
647
|
-
}
|
|
648
|
-
function F(t) {
|
|
649
|
-
return Ge(
|
|
650
|
-
t,
|
|
651
|
-
f.get().notificationRules
|
|
652
|
-
);
|
|
653
|
-
}
|
|
654
|
-
const x = {
|
|
655
|
-
success(t, e = {}) {
|
|
656
|
-
const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o = F({
|
|
657
|
-
severity: "success",
|
|
658
|
-
title: r,
|
|
659
|
-
priority: s,
|
|
660
|
-
source: n
|
|
661
|
-
});
|
|
662
|
-
if (!o) return "";
|
|
663
|
-
const c = E(
|
|
664
|
-
o.source,
|
|
665
|
-
o.title,
|
|
666
|
-
o.priority,
|
|
667
|
-
e.dontShowAgainKey,
|
|
668
|
-
e.recordTimeline
|
|
669
|
-
);
|
|
670
|
-
if (c.recordTimeline && w(
|
|
671
|
-
o.title,
|
|
672
|
-
o.severity === "success" ? "success" : o.severity,
|
|
673
|
-
o.source,
|
|
674
|
-
o.priority,
|
|
675
|
-
D(e.action)
|
|
676
|
-
), !i.showSuccessToasts && o.priority !== "urgent") return "";
|
|
677
|
-
const u = R({
|
|
678
|
-
severity: o.severity,
|
|
679
|
-
title: o.title,
|
|
680
|
-
options: { ...e, source: o.source, priority: o.priority },
|
|
681
|
-
decision: c,
|
|
682
|
-
...e.action ? { primaryAction: e.action } : {}
|
|
683
|
-
});
|
|
684
|
-
return (u == null ? void 0 : u.id) ?? "";
|
|
685
|
-
},
|
|
686
|
-
error(t, e = !1) {
|
|
687
|
-
const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null : re(i.vendorError), s = ke(r, i, n), o = n !== null;
|
|
688
|
-
let c = s.displayText;
|
|
689
|
-
const u = s.bodyText, l = u ? `${c}
|
|
690
|
-
${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d = F({
|
|
691
|
-
severity: "error",
|
|
692
|
-
title: c,
|
|
693
|
-
priority: y,
|
|
694
|
-
source: a
|
|
695
|
-
});
|
|
696
|
-
if (!d) return "";
|
|
697
|
-
c = d.title;
|
|
698
|
-
const h = d.source, g = d.priority, b = E(
|
|
699
|
-
h,
|
|
700
|
-
c,
|
|
701
|
-
g,
|
|
702
|
-
i.dontShowAgainKey,
|
|
703
|
-
i.recordTimeline
|
|
704
|
-
);
|
|
705
|
-
b.recordTimeline && w(
|
|
706
|
-
l,
|
|
707
|
-
d.severity,
|
|
708
|
-
h,
|
|
709
|
-
g,
|
|
710
|
-
D(i.action),
|
|
711
|
-
i.vendorError
|
|
712
|
-
);
|
|
713
|
-
const $ = R({
|
|
714
|
-
severity: d.severity,
|
|
715
|
-
title: c,
|
|
716
|
-
// bodyText overrides any caller-provided description when the ORA
|
|
717
|
-
// splitter promoted the message into the body. Conditional spread
|
|
718
|
-
// satisfies exactOptionalPropertyTypes when bodyText is undefined.
|
|
719
|
-
options: {
|
|
720
|
-
...i,
|
|
721
|
-
source: h,
|
|
722
|
-
priority: g,
|
|
723
|
-
...u ? { description: u } : {}
|
|
724
|
-
},
|
|
725
|
-
decision: b,
|
|
726
|
-
...s.primaryAction ? { primaryAction: s.primaryAction } : {},
|
|
727
|
-
...i.vendorError ? { vendorError: i.vendorError } : {}
|
|
728
|
-
});
|
|
729
|
-
return ($ == null ? void 0 : $.id) ?? "";
|
|
730
|
-
},
|
|
731
|
-
info(t, e = {}) {
|
|
732
|
-
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = F({
|
|
733
|
-
severity: "info",
|
|
734
|
-
title: r,
|
|
735
|
-
priority: n,
|
|
736
|
-
source: i
|
|
737
|
-
});
|
|
738
|
-
if (!s) return "";
|
|
739
|
-
const o = E(
|
|
740
|
-
s.source,
|
|
741
|
-
s.title,
|
|
742
|
-
s.priority,
|
|
743
|
-
e.dontShowAgainKey,
|
|
744
|
-
e.recordTimeline
|
|
745
|
-
);
|
|
746
|
-
o.recordTimeline && w(
|
|
747
|
-
s.title,
|
|
748
|
-
s.severity,
|
|
749
|
-
s.source,
|
|
750
|
-
s.priority,
|
|
751
|
-
D(e.action)
|
|
752
|
-
);
|
|
753
|
-
const c = R({
|
|
754
|
-
severity: s.severity,
|
|
755
|
-
title: s.title,
|
|
756
|
-
options: { ...e, source: s.source, priority: s.priority },
|
|
757
|
-
decision: o,
|
|
758
|
-
...e.action ? { primaryAction: e.action } : {}
|
|
759
|
-
});
|
|
760
|
-
return (c == null ? void 0 : c.id) ?? "";
|
|
761
|
-
},
|
|
762
|
-
warning(t, e = {}) {
|
|
763
|
-
const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = F({
|
|
764
|
-
severity: "warning",
|
|
765
|
-
title: r,
|
|
766
|
-
priority: n,
|
|
767
|
-
source: i
|
|
768
|
-
});
|
|
769
|
-
if (!s) return "";
|
|
770
|
-
const o = E(
|
|
771
|
-
s.source,
|
|
772
|
-
s.title,
|
|
773
|
-
s.priority,
|
|
774
|
-
e.dontShowAgainKey,
|
|
775
|
-
e.recordTimeline
|
|
776
|
-
);
|
|
777
|
-
o.recordTimeline && w(
|
|
778
|
-
s.title,
|
|
779
|
-
s.severity,
|
|
780
|
-
s.source,
|
|
781
|
-
s.priority,
|
|
782
|
-
D(e.action)
|
|
783
|
-
);
|
|
784
|
-
const c = R({
|
|
785
|
-
severity: s.severity,
|
|
786
|
-
title: s.title,
|
|
787
|
-
options: { ...e, source: s.source, priority: s.priority },
|
|
788
|
-
decision: o,
|
|
789
|
-
...e.action ? { primaryAction: e.action } : {}
|
|
790
|
-
});
|
|
791
|
-
return (c == null ? void 0 : c.id) ?? "";
|
|
792
|
-
},
|
|
793
|
-
queryCompleted(t, e = {}) {
|
|
794
|
-
const r = T(t), i = f.get(), n = e.source ?? "sql-execution", s = e.priority ?? "default", o = E(
|
|
795
|
-
n,
|
|
796
|
-
r,
|
|
797
|
-
s,
|
|
798
|
-
e.dontShowAgainKey,
|
|
799
|
-
e.recordTimeline
|
|
800
|
-
);
|
|
801
|
-
if (o.recordTimeline && w(
|
|
802
|
-
r,
|
|
803
|
-
"success",
|
|
804
|
-
n,
|
|
805
|
-
s,
|
|
806
|
-
D(e.action)
|
|
807
|
-
), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds && Se(i, /* @__PURE__ */ new Date())) && Le(), !i.showSuccessToasts && s !== "urgent") return "";
|
|
808
|
-
const c = R({
|
|
809
|
-
severity: "success",
|
|
810
|
-
title: r,
|
|
811
|
-
options: { ...e, source: n, priority: s },
|
|
812
|
-
decision: o,
|
|
813
|
-
...e.action ? { primaryAction: e.action } : {}
|
|
814
|
-
});
|
|
815
|
-
return (c == null ? void 0 : c.id) ?? "";
|
|
816
|
-
},
|
|
817
|
-
/**
|
|
818
|
-
* Long-running progress toast. Returns a handle that can `update` the
|
|
819
|
-
* message in place and then resolve as `success`/`fail`/`dismiss`. Source
|
|
820
|
-
* mutes still apply unless `priority` is set to `urgent`.
|
|
821
|
-
*/
|
|
822
|
-
progress(t, e = {}) {
|
|
823
|
-
const r = T(t), i = e.onCancel, n = e.source ?? "general", s = e.priority ?? "default", o = E(
|
|
824
|
-
n,
|
|
825
|
-
r,
|
|
826
|
-
s,
|
|
827
|
-
e.dontShowAgainKey,
|
|
828
|
-
e.recordTimeline
|
|
829
|
-
);
|
|
830
|
-
if (o.recordTimeline && w(r, "info", n, s), !o.showToast)
|
|
831
|
-
return {
|
|
832
|
-
update: () => {
|
|
833
|
-
},
|
|
834
|
-
success: () => {
|
|
835
|
-
},
|
|
836
|
-
fail: () => {
|
|
837
|
-
},
|
|
838
|
-
dismiss: () => {
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = ee({
|
|
842
|
-
id: c,
|
|
843
|
-
severity: "info",
|
|
844
|
-
title: r,
|
|
845
|
-
source: n,
|
|
846
|
-
priority: s,
|
|
847
|
-
sticky: !0,
|
|
848
|
-
progress: i ? { onCancel: i } : {}
|
|
849
|
-
});
|
|
850
|
-
return {
|
|
851
|
-
update: (l, a) => {
|
|
852
|
-
u.update({ title: l }), a !== void 0 && u.setProgress({
|
|
853
|
-
value: Math.max(0, Math.min(1, a)),
|
|
854
|
-
...i ? { onCancel: i } : {}
|
|
855
|
-
});
|
|
856
|
-
},
|
|
857
|
-
success: (l) => {
|
|
858
|
-
const a = l ?? r;
|
|
859
|
-
o.recordTimeline && w(a, "success", n, s), u.update({
|
|
860
|
-
title: a,
|
|
861
|
-
severity: "success",
|
|
862
|
-
sticky: !1,
|
|
863
|
-
progress: { done: !0 }
|
|
864
|
-
});
|
|
865
|
-
},
|
|
866
|
-
fail: (l) => {
|
|
867
|
-
const a = l ?? r;
|
|
868
|
-
o.recordTimeline && w(a, "error", n, s), u.update({
|
|
869
|
-
title: a,
|
|
870
|
-
severity: "error",
|
|
871
|
-
sticky: !0,
|
|
872
|
-
progress: { done: !0 },
|
|
873
|
-
durationMs: 1 / 0
|
|
874
|
-
});
|
|
875
|
-
},
|
|
876
|
-
dismiss: () => u.close()
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
};
|
|
880
|
-
function v(t, e) {
|
|
881
|
-
return {
|
|
882
|
-
...t,
|
|
883
|
-
category: t.category ?? t.id.split(".")[0] ?? "general",
|
|
884
|
-
build: e
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
function rr(t, e, r) {
|
|
888
|
-
return {
|
|
889
|
-
id: t,
|
|
890
|
-
notification: e,
|
|
891
|
-
resolve: () => e.build(r)
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
function B(t, e) {
|
|
895
|
-
return {
|
|
896
|
-
message: t,
|
|
897
|
-
...e != null && e.title ? { title: e.title } : {},
|
|
898
|
-
...e != null && e.subtitle ? { subtitle: e.subtitle } : {},
|
|
899
|
-
...e != null && e.description ? { description: e.description } : {},
|
|
900
|
-
...e != null && e.action ? { action: e.action } : {},
|
|
901
|
-
...(e == null ? void 0 : e.duration) !== void 0 ? { duration: e.duration } : {},
|
|
902
|
-
...e != null && e.dontShowAgainKey ? { dontShowAgainKey: e.dontShowAgainKey } : {},
|
|
903
|
-
...e != null && e.defaultRoute ? { defaultRoute: e.defaultRoute } : {},
|
|
904
|
-
...e != null && e.icon ? { icon: e.icon } : {},
|
|
905
|
-
...(e == null ? void 0 : e.markdown) !== void 0 ? { markdown: e.markdown } : {},
|
|
906
|
-
...(e == null ? void 0 : e.recordTimeline) !== void 0 ? { recordTimeline: e.recordTimeline } : {},
|
|
907
|
-
...(e == null ? void 0 : e.id) !== void 0 ? { id: e.id } : {},
|
|
908
|
-
...e != null && e.onCancel ? { onCancel: e.onCancel } : {}
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
v(
|
|
912
|
-
{
|
|
913
|
-
id: "notifications.copyToClipboard.success.1",
|
|
914
|
-
source: "general",
|
|
915
|
-
severity: "success",
|
|
916
|
-
priority: "default",
|
|
917
|
-
delivery: "in-app",
|
|
918
|
-
kind: "message"
|
|
919
|
-
},
|
|
920
|
-
({ successNotice: t }) => ({
|
|
921
|
-
message: t ?? m("Copied to clipboard.")
|
|
922
|
-
})
|
|
923
|
-
);
|
|
924
|
-
v(
|
|
925
|
-
{
|
|
926
|
-
id: "notifications.copyToClipboard.error.2",
|
|
927
|
-
source: "general",
|
|
928
|
-
severity: "error",
|
|
929
|
-
priority: "default",
|
|
930
|
-
delivery: "in-app",
|
|
931
|
-
kind: "message"
|
|
932
|
-
},
|
|
933
|
-
() => ({ message: m("Could not copy to clipboard.") })
|
|
934
|
-
);
|
|
935
|
-
const ir = v(
|
|
936
|
-
{
|
|
937
|
-
id: "notifications.timeline.replay.error",
|
|
938
|
-
source: "general",
|
|
939
|
-
severity: "error",
|
|
940
|
-
priority: "urgent",
|
|
941
|
-
delivery: "in-app",
|
|
942
|
-
kind: "message"
|
|
943
|
-
},
|
|
944
|
-
({
|
|
945
|
-
timelineMessage: t,
|
|
946
|
-
options: e
|
|
947
|
-
}) => B(t, e)
|
|
948
|
-
), nr = v(
|
|
949
|
-
{
|
|
950
|
-
id: "notifications.timeline.replay.warning",
|
|
951
|
-
source: "general",
|
|
952
|
-
severity: "warning",
|
|
953
|
-
priority: "urgent",
|
|
954
|
-
delivery: "in-app",
|
|
955
|
-
kind: "message"
|
|
956
|
-
},
|
|
957
|
-
({
|
|
958
|
-
timelineMessage: t,
|
|
959
|
-
options: e
|
|
960
|
-
}) => B(t, e)
|
|
961
|
-
), sr = v(
|
|
962
|
-
{
|
|
963
|
-
id: "notifications.timeline.replay.success",
|
|
964
|
-
source: "general",
|
|
965
|
-
severity: "success",
|
|
966
|
-
priority: "urgent",
|
|
967
|
-
delivery: "in-app",
|
|
968
|
-
kind: "message"
|
|
969
|
-
},
|
|
970
|
-
({
|
|
971
|
-
timelineMessage: t,
|
|
972
|
-
options: e
|
|
973
|
-
}) => B(t, e)
|
|
974
|
-
), or = v(
|
|
975
|
-
{
|
|
976
|
-
id: "notifications.timeline.replay.info",
|
|
977
|
-
source: "general",
|
|
978
|
-
severity: "info",
|
|
979
|
-
priority: "urgent",
|
|
980
|
-
delivery: "in-app",
|
|
981
|
-
kind: "message"
|
|
982
|
-
},
|
|
983
|
-
({
|
|
984
|
-
timelineMessage: t,
|
|
985
|
-
options: e
|
|
986
|
-
}) => B(t, e)
|
|
987
|
-
), cr = v(
|
|
988
|
-
{
|
|
989
|
-
id: "notifications.timeline.exported",
|
|
990
|
-
source: "general",
|
|
991
|
-
severity: "success",
|
|
992
|
-
priority: "default",
|
|
993
|
-
delivery: "in-app",
|
|
994
|
-
kind: "message"
|
|
995
|
-
},
|
|
996
|
-
({ entryCount: t }) => ({
|
|
997
|
-
message: m("Exported {count} notifications", { count: t })
|
|
998
|
-
})
|
|
999
|
-
), ar = v(
|
|
1000
|
-
{
|
|
1001
|
-
id: "notifications.timeline.export.failed",
|
|
1002
|
-
source: "general",
|
|
1003
|
-
severity: "error",
|
|
1004
|
-
priority: "default",
|
|
1005
|
-
delivery: "in-app",
|
|
1006
|
-
kind: "message"
|
|
1007
|
-
},
|
|
1008
|
-
({ cause: t }) => ({
|
|
1009
|
-
message: m("Export failed: {message}", {
|
|
1010
|
-
message: K(t, m("Operation failed."))
|
|
1011
|
-
}),
|
|
1012
|
-
cause: t
|
|
1013
|
-
})
|
|
1014
|
-
), St = v(
|
|
1015
|
-
{
|
|
1016
|
-
id: "notifications.errorAction.failed",
|
|
1017
|
-
source: "general",
|
|
1018
|
-
severity: "error",
|
|
1019
|
-
priority: "default",
|
|
1020
|
-
delivery: "in-app",
|
|
1021
|
-
kind: "message"
|
|
1022
|
-
},
|
|
1023
|
-
({ cause: t }) => ({
|
|
1024
|
-
message: m("The action could not be completed: {message}", {
|
|
1025
|
-
message: K(t, m("Operation failed."))
|
|
1026
|
-
}),
|
|
1027
|
-
cause: t
|
|
1028
|
-
})
|
|
1029
|
-
), ur = v(
|
|
1030
|
-
{
|
|
1031
|
-
id: "notifications.settings.update.failed",
|
|
1032
|
-
source: "settings",
|
|
1033
|
-
severity: "error",
|
|
1034
|
-
priority: "default",
|
|
1035
|
-
delivery: "in-app",
|
|
1036
|
-
kind: "message"
|
|
1037
|
-
},
|
|
1038
|
-
({ cause: t }) => ({
|
|
1039
|
-
message: K(t, m("Operation failed.")),
|
|
1040
|
-
cause: t
|
|
1041
|
-
})
|
|
1042
|
-
);
|
|
1043
|
-
function Ce(t) {
|
|
1044
|
-
if (!("cause" in t)) return t;
|
|
1045
|
-
const { cause: e, ...r } = t, i = Fe(e).map(bt);
|
|
1046
|
-
return i.length === 0 ? r : { ...r, actions: [...r.actions ?? [], ...i] };
|
|
1047
|
-
}
|
|
1048
|
-
function bt(t) {
|
|
1049
|
-
return {
|
|
1050
|
-
label: t.label,
|
|
1051
|
-
onClick: () => {
|
|
1052
|
-
Promise.resolve().then(() => t.run()).catch((e) => {
|
|
1053
|
-
Ct(St, { cause: e });
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1057
|
-
}
|
|
1058
|
-
function Ae(t, e) {
|
|
1059
|
-
return {
|
|
1060
|
-
...t.severity === "error" && t.source === "general" ? {} : { source: t.source },
|
|
1061
|
-
...t.severity === "error" && t.priority === "default" ? {} : { priority: t.priority },
|
|
1062
|
-
...e.subtitle ? { subtitle: e.subtitle } : {},
|
|
1063
|
-
...e.description ? { description: e.description } : {},
|
|
1064
|
-
...e.action ? { action: e.action } : {},
|
|
1065
|
-
...e.actions ? { actions: e.actions } : {},
|
|
1066
|
-
...e.duration !== void 0 ? { duration: e.duration } : {},
|
|
1067
|
-
...e.dontShowAgainKey ? { dontShowAgainKey: e.dontShowAgainKey } : {},
|
|
1068
|
-
...e.defaultRoute ? { defaultRoute: e.defaultRoute } : {},
|
|
1069
|
-
...e.icon ? { icon: e.icon } : {},
|
|
1070
|
-
...e.markdown !== void 0 ? { markdown: e.markdown } : {},
|
|
1071
|
-
...e.recordTimeline !== void 0 ? { recordTimeline: e.recordTimeline } : {},
|
|
1072
|
-
...e.id !== void 0 ? { id: e.id } : {}
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
function Tt(t, e) {
|
|
1076
|
-
const r = Ce(e);
|
|
1077
|
-
if (t.delivery === "os-only") {
|
|
1078
|
-
const n = r.title ?? r.message, s = r.description ?? r.subtitle ?? (r.title ? r.message : void 0);
|
|
1079
|
-
return ge({
|
|
1080
|
-
title: n,
|
|
1081
|
-
...s ? { body: s } : {},
|
|
1082
|
-
severity: t.severity,
|
|
1083
|
-
urgent: t.priority === "urgent",
|
|
1084
|
-
onlyWhenUnfocused: !1
|
|
1085
|
-
}), "";
|
|
1086
|
-
}
|
|
1087
|
-
const i = Ae(t, r);
|
|
1088
|
-
if (t.kind === "query-completed")
|
|
1089
|
-
return x.queryCompleted(r.message, i);
|
|
1090
|
-
switch (t.severity) {
|
|
1091
|
-
case "success":
|
|
1092
|
-
return x.success(r.message, i);
|
|
1093
|
-
case "error": {
|
|
1094
|
-
const n = {
|
|
1095
|
-
...i,
|
|
1096
|
-
...r.title ? { title: r.title } : {},
|
|
1097
|
-
...r.vendorError ? { vendorError: r.vendorError } : {}
|
|
1098
|
-
};
|
|
1099
|
-
return x.error(r.message, n);
|
|
1100
|
-
}
|
|
1101
|
-
case "warning":
|
|
1102
|
-
return x.warning(r.message, i);
|
|
1103
|
-
case "info":
|
|
1104
|
-
return x.info(r.message, i);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
function Et(t, e) {
|
|
1108
|
-
const r = Ce(e);
|
|
1109
|
-
if (t.delivery !== "in-app")
|
|
1110
|
-
throw new O(
|
|
1111
|
-
"Progress notifications require an in-app catalog definition."
|
|
1112
|
-
);
|
|
1113
|
-
return x.progress(r.message, {
|
|
1114
|
-
...Ae(t, r),
|
|
1115
|
-
...r.onCancel ? { onCancel: r.onCancel } : {}
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
const xt = {
|
|
1119
|
-
notify: Tt,
|
|
1120
|
-
progress: Et,
|
|
1121
|
-
dismiss: (t) => fe(t)
|
|
1122
|
-
};
|
|
1123
|
-
function kt(t, e, r, i) {
|
|
1124
|
-
return t === "error" && e === "default" && r && i ? "urgent" : e;
|
|
1125
|
-
}
|
|
1126
|
-
function lr(t, e) {
|
|
1127
|
-
var l;
|
|
1128
|
-
const r = e.vendorError === void 0 || !Ye() ? null : re(e.vendorError), i = t.severity === "error" ? ke(
|
|
1129
|
-
e.message,
|
|
1130
|
-
{
|
|
1131
|
-
...e.title ? { title: e.title } : {},
|
|
1132
|
-
...e.subtitle ? { subtitle: e.subtitle } : {},
|
|
1133
|
-
...e.description ? { description: e.description } : {},
|
|
1134
|
-
...e.action ? { action: e.action } : {}
|
|
1135
|
-
},
|
|
1136
|
-
r,
|
|
1137
|
-
me
|
|
1138
|
-
) : null, n = (i == null ? void 0 : i.displayText) ?? e.title ?? e.message, s = (i == null ? void 0 : i.bodyText) ?? e.subtitle ?? e.description, o = (i == null ? void 0 : i.primaryAction) ?? e.action, c = t.severity === "error" && t.source === "general" && r !== null ? "vendor-error" : t.source, u = kt(
|
|
1139
|
-
t.severity,
|
|
1140
|
-
t.priority,
|
|
1141
|
-
r !== null,
|
|
1142
|
-
f.get().vendorCodesAreUrgent
|
|
1143
|
-
);
|
|
1144
|
-
return ee({
|
|
1145
|
-
severity: t.severity,
|
|
1146
|
-
title: N(n),
|
|
1147
|
-
...s ? { body: N(s) } : {},
|
|
1148
|
-
source: c,
|
|
1149
|
-
priority: u,
|
|
1150
|
-
isolated: !0,
|
|
1151
|
-
...e.duration !== void 0 ? { durationMs: e.duration } : {},
|
|
1152
|
-
...e.id !== void 0 ? { id: `dev-preview:${e.id}` } : {},
|
|
1153
|
-
...e.icon ? { icon: e.icon } : {},
|
|
1154
|
-
// Isolated NotificationItem rendering keeps markdown links inert and
|
|
1155
|
-
// disables images, so previewing preserves formatting without a fetch.
|
|
1156
|
-
...e.markdown ? { markdown: !0 } : {},
|
|
1157
|
-
...t.kind === "progress" ? { sticky: !0, progress: { done: !1 } } : {},
|
|
1158
|
-
...o || (l = e.actions) != null && l.length ? {
|
|
1159
|
-
actions: [o, ...e.actions ?? []].filter(
|
|
1160
|
-
(a) => a !== void 0
|
|
1161
|
-
).map((a, p) => ({
|
|
1162
|
-
id: `dev-preview-action-${p}`,
|
|
1163
|
-
label: a.label,
|
|
1164
|
-
primary: p === 0,
|
|
1165
|
-
onClick: () => {
|
|
1166
|
-
var y;
|
|
1167
|
-
(y = a.onClick) == null || y.call(a);
|
|
1168
|
-
}
|
|
1169
|
-
}))
|
|
1170
|
-
} : {}
|
|
1171
|
-
}).id;
|
|
1172
|
-
}
|
|
1173
|
-
let $e = null;
|
|
1174
|
-
function dr(t) {
|
|
1175
|
-
$e = t;
|
|
1176
|
-
}
|
|
1177
|
-
function ie() {
|
|
1178
|
-
return $e ?? xt;
|
|
1179
|
-
}
|
|
1180
|
-
function Ct(t, e) {
|
|
1181
|
-
return ie().notify(t, t.build(e));
|
|
1182
|
-
}
|
|
1183
|
-
function fr(t, e) {
|
|
1184
|
-
if (t.kind !== "progress")
|
|
1185
|
-
throw new O(
|
|
1186
|
-
"catalogNotify: a message definition cannot be sent with progressFromCatalog."
|
|
1187
|
-
);
|
|
1188
|
-
return ie().progress(t, t.build(e));
|
|
1189
|
-
}
|
|
1190
|
-
function gr(t) {
|
|
1191
|
-
var e, r;
|
|
1192
|
-
(r = (e = ie()).dismiss) == null || r.call(e, t);
|
|
1193
|
-
}
|
|
1194
|
-
function mr(t) {
|
|
1195
|
-
return t.resolve();
|
|
1196
|
-
}
|
|
1197
|
-
export {
|
|
1198
|
-
Lt as $,
|
|
1199
|
-
qt as A,
|
|
1200
|
-
R as B,
|
|
1201
|
-
vt as C,
|
|
1202
|
-
rt as D,
|
|
1203
|
-
it as E,
|
|
1204
|
-
It as F,
|
|
1205
|
-
Se as G,
|
|
1206
|
-
Ke as H,
|
|
1207
|
-
Wt as I,
|
|
1208
|
-
Ct as J,
|
|
1209
|
-
Le as K,
|
|
1210
|
-
Qe as L,
|
|
1211
|
-
fr as M,
|
|
1212
|
-
Gt as N,
|
|
1213
|
-
Ft as O,
|
|
1214
|
-
kt as P,
|
|
1215
|
-
mr as Q,
|
|
1216
|
-
He as R,
|
|
1217
|
-
oe as S,
|
|
1218
|
-
jt as T,
|
|
1219
|
-
Xt as U,
|
|
1220
|
-
Ze as V,
|
|
1221
|
-
lr as W,
|
|
1222
|
-
_t as X,
|
|
1223
|
-
Pt as Y,
|
|
1224
|
-
D as Z,
|
|
1225
|
-
x as _,
|
|
1226
|
-
Mt as a,
|
|
1227
|
-
tr as a0,
|
|
1228
|
-
Ce as a1,
|
|
1229
|
-
ir as a2,
|
|
1230
|
-
nr as a3,
|
|
1231
|
-
sr as a4,
|
|
1232
|
-
or as a5,
|
|
1233
|
-
cr as a6,
|
|
1234
|
-
ar as a7,
|
|
1235
|
-
ur as a8,
|
|
1236
|
-
ve as b,
|
|
1237
|
-
Ot as c,
|
|
1238
|
-
Ye as d,
|
|
1239
|
-
Yt as e,
|
|
1240
|
-
Zt as f,
|
|
1241
|
-
Ee as g,
|
|
1242
|
-
Pe as h,
|
|
1243
|
-
Ut as i,
|
|
1244
|
-
w as j,
|
|
1245
|
-
Ge as k,
|
|
1246
|
-
xt as l,
|
|
1247
|
-
Qt as m,
|
|
1248
|
-
Ht as n,
|
|
1249
|
-
v as o,
|
|
1250
|
-
dr as p,
|
|
1251
|
-
rr as q,
|
|
1252
|
-
re as r,
|
|
1253
|
-
Jt as s,
|
|
1254
|
-
zt as t,
|
|
1255
|
-
er as u,
|
|
1256
|
-
gr as v,
|
|
1257
|
-
Bt as w,
|
|
1258
|
-
Vt as x,
|
|
1259
|
-
Kt as y,
|
|
1260
|
-
ke as z
|
|
1261
|
-
};
|