@vokril/ui-solid 0.13.0 → 0.18.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 +52 -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-BH7c1cbU.js +3968 -0
- package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -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/settings/settingsTypes.d.cts +5 -0
- package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
- 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 +16 -17
- package/dist/overlay/ConfirmDialog.d.ts +16 -17
- 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/dialogShellKeyIntent.d.cts +3 -3
- package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
- 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 +114 -119
- 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-DwlWZI1s.js +3224 -0
- package/dist/server/CommandPalette-VewDIghb.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 +825 -898
- 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 +115 -120
- 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 +14 -58
- 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 +0,0 @@
|
|
|
1
|
-
"use strict";const O=require("./defineSettings-yHQdUwxI.cjs"),b=1e3,k=6e4;function w(t,n){if(t.trim()==="")return n;const o=Number(t);return Number.isFinite(o)?Math.min(k,Math.max(b,o)):n}const T={notificationsEnabled:!0,toastPosition:"bottom-right",showSuccessToasts:!0,soundOnQueryCompletion:!1,longRunningQueryThresholdMs:5e3,showLongRunningNotification:!0,mutedSources:[],dontShowAgainKeys:[],remindersUntil:[],notificationWidth:450,maxVisibleNotifications:3,markdownEnabled:!1,infoDurationMs:1e4,successDurationMs:6e3,warningDurationMs:12e3,errorDurationMs:15e3,errorsAlwaysSticky:!1,warningsAlwaysSticky:!1,doNotDisturb:!1,dndBlocksUrgent:!1,urgentRoutesToCenterOnly:!1,soundOnInfo:!1,soundOnSuccess:!1,soundOnWarning:!1,soundOnError:!1,pauseTimerWhileHidden:!0,vendorCodesAreUrgent:!1,remindLaterEnabled:!0,showAdvancedSettings:!1,osNativeEnabled:!1,osNativeOnlyWhenUnfocused:!0,osNativeMinSeverity:"warning",osNativeUrgentAlways:!0,badgeCountEnabled:!0,badgeCountMax:99,quietHoursEnabled:!1,quietHoursStart:"22:00",quietHoursEnd:"08:00",quietHoursWeekdays:[0,1,2,3,4,5,6],quietHoursBlocksUrgent:!1,quietHoursMutesSounds:!0,customSoundInfo:"",customSoundSuccess:"",customSoundWarning:"",customSoundError:"",webhooks:[],emailDigestEnabled:!1,emailDigestSmtpHost:"",emailDigestSmtpPort:587,emailDigestSmtpSecure:!1,emailDigestSmtpUser:"",emailDigestSmtpPass:"",emailDigestFrom:"",emailDigestTo:"",emailDigestSchedule:"daily-9am",emailDigestMinSeverity:"warning",timelineGroupingEnabled:!1,timelineGroupBy:"source-severity",notificationRules:[],animationDuration:"normal",reduceMotion:!1},H="app-notification-settings-change",I=["bottom-right","bottom-left","top-right","top-left"],g=0,y=12e4,e=T;function v(t,n){return Array.isArray(t)?Array.from(new Set(t.filter(o=>typeof o=="string"&&o.length>0))):[...n]}function R(t,n){var u,d,l,a,s,f,r,p,D,N,A;if(!Array.isArray(t))return[...n];const o=[];for(const S of t){if(typeof S!="object"||S===null)continue;const i=S;typeof i.id=="string"&&o.push({id:i.id,name:typeof i.name=="string"?i.name:"Rule",enabled:typeof i.enabled=="boolean"?i.enabled:!0,conditions:(()=>{var h,E,M;const c={};return typeof((h=i.conditions)==null?void 0:h.source)=="string"&&(c.source=i.conditions.source),Array.isArray((E=i.conditions)==null?void 0:E.severities)&&(c.severities=i.conditions.severities.filter(m=>m==="info"||m==="success"||m==="warning"||m==="error")),typeof((M=i.conditions)==null?void 0:M.titleRegex)=="string"&&(c.titleRegex=i.conditions.titleRegex),c})(),actions:{...((u=i.actions)==null?void 0:u.setSeverity)==="info"||((d=i.actions)==null?void 0:d.setSeverity)==="success"||((l=i.actions)==null?void 0:l.setSeverity)==="warning"||((a=i.actions)==null?void 0:a.setSeverity)==="error"?{setSeverity:i.actions.setSeverity}:{},...((s=i.actions)==null?void 0:s.setPriority)==="urgent"||((f=i.actions)==null?void 0:f.setPriority)==="default"||((r=i.actions)==null?void 0:r.setPriority)==="optional"||((p=i.actions)==null?void 0:p.setPriority)==="silent"||((D=i.actions)==null?void 0:D.setPriority)==="acknowledgment-required"?{setPriority:i.actions.setPriority}:{},...typeof((N=i.actions)==null?void 0:N.addPrefix)=="string"?{addPrefix:i.actions.addPrefix}:{},...typeof((A=i.actions)==null?void 0:A.suppress)=="boolean"?{suppress:i.actions.suppress}:{}}})}return o}function U(t,n){var u,d,l;if(!Array.isArray(t))return[...n];const o=[];for(const a of t){if(typeof a!="object"||a===null)continue;const s=a;if(typeof s.id!="string")continue;const f=s.type==="slack"||s.type==="discord"||s.type==="generic"?s.type:"generic";o.push({id:s.id,name:typeof s.name=="string"?s.name:"Webhook",type:f,url:"",enabled:typeof s.enabled=="boolean"?s.enabled:!0,filters:{severities:Array.isArray((u=s.filters)==null?void 0:u.severities)?s.filters.severities.filter(r=>r==="info"||r==="success"||r==="warning"||r==="error"):[],priorities:Array.isArray((d=s.filters)==null?void 0:d.priorities)?s.filters.priorities.filter(r=>r==="urgent"||r==="default"||r==="optional"||r==="silent"):[],sources:Array.isArray((l=s.filters)==null?void 0:l.sources)?s.filters.sources.filter(r=>typeof r=="string"):[]}})}return o}const _=O.defineSettings({key:"notificationSettings",changeEvent:H,fields:{notificationsEnabled:{kind:"bool",default:e.notificationsEnabled},toastPosition:{kind:"enum",values:I,default:e.toastPosition},showSuccessToasts:{kind:"bool",default:e.showSuccessToasts},soundOnQueryCompletion:{kind:"bool",default:e.soundOnQueryCompletion},longRunningQueryThresholdMs:{kind:"int",min:b,max:k,default:e.longRunningQueryThresholdMs},showLongRunningNotification:{kind:"bool",default:e.showLongRunningNotification},mutedSources:{kind:"custom",default:e.mutedSources,normalize:(t,n)=>v(t,n)},dontShowAgainKeys:{kind:"custom",default:e.dontShowAgainKeys,normalize:(t,n)=>v(t,n)},remindersUntil:{kind:"custom",default:e.remindersUntil,normalize:(t,n)=>Array.isArray(t)?t.filter(o=>typeof o=="object"&&o!==null&&typeof o.key=="string"&&typeof o.remindAt=="number").filter(o=>o.remindAt>Date.now()):[...n]},notificationWidth:{kind:"int",min:320,max:700,default:e.notificationWidth},maxVisibleNotifications:{kind:"int",min:1,max:8,default:e.maxVisibleNotifications},markdownEnabled:{kind:"bool",default:e.markdownEnabled},infoDurationMs:{kind:"int",min:g,max:y,default:e.infoDurationMs},successDurationMs:{kind:"int",min:g,max:y,default:e.successDurationMs},warningDurationMs:{kind:"int",min:g,max:y,default:e.warningDurationMs},errorDurationMs:{kind:"int",min:g,max:y,default:e.errorDurationMs},errorsAlwaysSticky:{kind:"bool",default:e.errorsAlwaysSticky},warningsAlwaysSticky:{kind:"bool",default:e.warningsAlwaysSticky},doNotDisturb:{kind:"bool",default:e.doNotDisturb},dndBlocksUrgent:{kind:"bool",default:e.dndBlocksUrgent},urgentRoutesToCenterOnly:{kind:"bool",default:e.urgentRoutesToCenterOnly},soundOnInfo:{kind:"bool",default:e.soundOnInfo},soundOnSuccess:{kind:"bool",default:e.soundOnSuccess},soundOnWarning:{kind:"bool",default:e.soundOnWarning},soundOnError:{kind:"bool",default:e.soundOnError},pauseTimerWhileHidden:{kind:"bool",default:e.pauseTimerWhileHidden},vendorCodesAreUrgent:{kind:"bool",default:e.vendorCodesAreUrgent},remindLaterEnabled:{kind:"bool",default:e.remindLaterEnabled},showAdvancedSettings:{kind:"bool",default:e.showAdvancedSettings},osNativeEnabled:{kind:"bool",default:e.osNativeEnabled},osNativeOnlyWhenUnfocused:{kind:"bool",default:e.osNativeOnlyWhenUnfocused},osNativeMinSeverity:{kind:"enum",values:["info","success","warning","error"],default:e.osNativeMinSeverity},osNativeUrgentAlways:{kind:"bool",default:e.osNativeUrgentAlways},badgeCountEnabled:{kind:"bool",default:e.badgeCountEnabled},badgeCountMax:{kind:"int",min:1,max:9999,default:e.badgeCountMax},quietHoursEnabled:{kind:"bool",default:e.quietHoursEnabled},quietHoursStart:{kind:"custom",default:e.quietHoursStart,normalize:(t,n)=>typeof t=="string"&&/^\d{2}:\d{2}$/.test(t)?t:n},quietHoursEnd:{kind:"custom",default:e.quietHoursEnd,normalize:(t,n)=>typeof t=="string"&&/^\d{2}:\d{2}$/.test(t)?t:n},quietHoursWeekdays:{kind:"custom",default:e.quietHoursWeekdays,normalize:(t,n)=>Array.isArray(t)?Array.from(new Set(t.filter(o=>typeof o=="number"&&Number.isInteger(o)&&o>=0&&o<=6))).sort():[...n]},quietHoursBlocksUrgent:{kind:"bool",default:e.quietHoursBlocksUrgent},quietHoursMutesSounds:{kind:"bool",default:e.quietHoursMutesSounds},customSoundInfo:{kind:"string",default:e.customSoundInfo},customSoundSuccess:{kind:"string",default:e.customSoundSuccess},customSoundWarning:{kind:"string",default:e.customSoundWarning},customSoundError:{kind:"string",default:e.customSoundError},webhooks:{kind:"custom",default:e.webhooks,normalize:(t,n)=>U(t,n)},emailDigestEnabled:{kind:"bool",default:e.emailDigestEnabled},emailDigestSmtpHost:{kind:"string",default:e.emailDigestSmtpHost},emailDigestSmtpPort:{kind:"int",min:1,max:65535,default:e.emailDigestSmtpPort},emailDigestSmtpSecure:{kind:"bool",default:e.emailDigestSmtpSecure},emailDigestSmtpUser:{kind:"string",default:e.emailDigestSmtpUser},emailDigestSmtpPass:{kind:"string",default:"",secret:!0},emailDigestFrom:{kind:"string",default:e.emailDigestFrom},emailDigestTo:{kind:"string",default:e.emailDigestTo},emailDigestSchedule:{kind:"enum",values:["hourly","daily-9am","daily-5pm","weekly-mon-9am"],default:e.emailDigestSchedule},emailDigestMinSeverity:{kind:"enum",values:["info","success","warning","error"],default:e.emailDigestMinSeverity},timelineGroupingEnabled:{kind:"bool",default:e.timelineGroupingEnabled},timelineGroupBy:{kind:"enum",values:["source","source-severity"],default:e.timelineGroupBy},notificationRules:{kind:"custom",default:e.notificationRules,normalize:(t,n)=>R(t,n)},animationDuration:{kind:"enum",values:["fast","normal","slow"],default:e.animationDuration},reduceMotion:{kind:"bool",default:e.reduceMotion}}});exports.DEFAULT_NOTIFICATION_SETTINGS=T;exports.MAX_LONG_RUNNING_THRESHOLD_MS=k;exports.MIN_LONG_RUNNING_THRESHOLD_MS=b;exports.notificationSettings=_;exports.parseLongRunningThresholdMs=w;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const B=require("./rendererLogging-Dt5FZ8mq.cjs"),s=require("./notification-DygvQB_o.cjs"),P=require("./bugIndicatingError-D2X5Hfgg.cjs"),k=new WeakMap;function ce(e,n){return k.set(e,[...k.get(e)??[],...n]),e}function O(e){return typeof e=="object"&&e!==null?k.get(e)??[]:[]}const V={text:(e,n)=>B.toErrorMessage(e,n),actions:e=>O(e)};let $=V;function ae(e){$=e??V}function C(){return $}function ue(e,n){return C().text(e,n)}function de(e){return C().actions(e)}const x=B.getLogger("ElectronBridge");let l={};function fe(e){l=e??{}}const le=new Set(["http:","https:","mailto:"]);function ge(e){let n;try{n=new URL(e).protocol}catch{x.warn("openExternal: unparseable URL refused",{url:e});return}if(!le.has(n)){x.warn("openExternal: protocol refused",{url:e,protocol:n});return}if(l.openExternal){Promise.resolve(l.openExternal(e)).catch(o=>{x.warn("openExternal: host refused",{url:e,error:o})});return}typeof window<"u"&&window.open(e,"_blank","noopener,noreferrer")}function me(e){l.osNotify&&Promise.resolve(l.osNotify(e)).catch(()=>{})}function we(e){l.setBadgeCount&&Promise.resolve(l.setBadgeCount(e)).catch(()=>{})}async function Se(e){if(!l.readAudioAsDataUrl)return null;try{return await l.readAudioAsDataUrl(e)}catch(n){return x.warn("custom sound could not be read",{filePath:e,error:n}),null}}const pe={showSaveDialog:async e=>({filePath:(e==null?void 0:e.defaultPath)??"export.txt"}),writeFile:async(e,n)=>{if(typeof document>"u")return;const o=e.split(/[\\/]/).pop()||"export.txt",i=URL.createObjectURL(new Blob([n],{type:"text/plain;charset=utf-8"})),d=document.createElement("a");d.href=i,d.download=o,d.rel="noopener",d.click(),setTimeout(()=>URL.revokeObjectURL(i),0)}};function ye(){return l.fs??pe}function he(e){var n;if(e)return(n=l.notificationOverlay)==null?void 0:n.call(l,e)}const L=new Map;function T(e){let n=L.get(e);return n||(n={source:e,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},L.set(e,n)),n}function Ee(e,n,o){const i=T(e);i.total+=1,n&&(i.shown+=1),o&&(i.muted+=1)}function Ae(e){T(e).clicked+=1}function ve(e){T(e).dismissed+=1}function xe(e){T(e).autoFaded+=1}const Ne=B.getLogger("NativeNotificationEngine");function Te(e){return e.id===""}function _(e,n=s.notificationSettings.get()){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return n.infoDurationMs;case"success":return n.successDurationMs;case"warning":return n.warningDurationMs;case"error":return n.errorDurationMs}}function q(e,n=s.notificationSettings.get()){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&n.errorsAlwaysSticky||e.severity==="warning"&&n.warningsAlwaysSticky)return!0;const o=e.durationMs;return o!==void 0&&(!Number.isFinite(o)||o<=0)}function j(e={}){const n=e.getSettings??(()=>s.notificationSettings.get()),o=e.now??(()=>Date.now()),i=e.setTimeout??((t,r)=>window.setTimeout(t,r)),d=e.clearTimeout??(t=>window.clearTimeout(t)),w=e.recordAutoFade??xe,F=e.warn??((t,r)=>Ne.warn(t,r)),u=new Map,v=new Set,y=new Map;function b(){return[...u.values()].sort((t,r)=>t.createdAt-r.createdAt)}function U(t){const r=n();if(!r.pauseTimerWhileHidden)return!1;const a=b(),m=Math.max(1,r.maxVisibleNotifications);if(a.length<=m)return!1;const c=a.length-m,f=a.findIndex(D=>D.id===t);return f>=0&&f<c}function W(){for(const t of u.keys()){if(y.has(t)){U(t)&&S(t);continue}p(t)}}function g(){const t=b();for(const r of Array.from(v))try{r(t)}catch(a){F("Bildirim motoru dinleyicisi firlatti:",a)}W()}function R(t){return!!(q(t,n())||t.hovered||t.focused)}function G(t){return _(t,n())}function S(t){const r=y.get(t);r!==void 0&&(d(r),y.delete(t))}function p(t){S(t);const r=u.get(t);if(!r||R(r)||U(t))return;const a=G(r);if(!Number.isFinite(a)||a<=0)return;const m=i(()=>{y.delete(t);const c=u.get(t);c&&(R(c)||(w(c.source??"general"),u.delete(t),g()))},a);y.set(t,m)}let H=0;function Q(){return H+=1,`n-${o().toString(36)}-${H.toString(36)}`}const X=800,z=3,E=[];function J(){const t=o();for(;E.length>0&&(E[0]??0)<t-X;)E.shift();return E.length>=z}function Y(){E.push(o())}function I(t){return!t||t.length===0?"":t.filter(r=>r.primary).map(r=>`${r.id??""}::${r.label}`).sort().join("|")}function Z(t){const r=t.source??"",a=I(t.actions);for(const[m,c]of u)if((c.source??"")===r&&c.title===t.title&&I(c.actions)===a)return m;return null}function ee(t){const r=t.id,a=r??Z(t),m=a===null;if(m&&!r&&J())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{}};const c=a??Q(),f=u.get(c),D={...t,id:c,createdAt:(f==null?void 0:f.createdAt)??o(),expanded:(f==null?void 0:f.expanded)??!1,hovered:(f==null?void 0:f.hovered)??!1,focused:(f==null?void 0:f.focused)??!1};return u.set(c,D),m&&Y(),g(),p(c),{id:c,update(K){const A=u.get(c);A&&(u.set(c,{...A,...K}),g(),p(c))},setProgress(K){const A=u.get(c);A&&(u.set(c,{...A,progress:K}),g(),p(c))},close(){S(c),u.delete(c)&&g()}}}function te(t){return v.add(t),t(b()),()=>{v.delete(t)}}function ne(t,r){const a=u.get(t);!a||a.hovered===r||(u.set(t,{...a,hovered:r}),g(),r?S(t):p(t))}function re(t,r){const a=u.get(t);!a||a.focused===r||(u.set(t,{...a,focused:r}),g(),r?S(t):p(t))}function oe(t){const r=u.get(t);r&&(u.set(t,{...r,expanded:!r.expanded}),g(),p(t))}function ie(t){S(t),u.delete(t)&&g()}function se(){for(const t of y.keys())S(t);u.clear(),v.clear()}return{notify:ee,subscribe:te,setHover:ne,setFocus:re,toggleExpanded:oe,close:ie,dispose:se}}const h=j(),Fe=h.notify,be=h.subscribe,De=h.setHover,Ke=h.setFocus,ke=h.toggleExpanded,Be=h.close;let N=null;function Me(e){N=e}function Ue(){return N!==null}function M(){if(N===null)throw new P.BugIndicatingError("[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup.");return N}function Re(e){const n=M().errorHelpersFor(e.vendorId);return n===null?null:{vendorId:e.vendorId,code:e.code,helpers:n}}function He(e,n,o){const i=M().errorHelpersFor(e);if(i===null)throw new P.BugIndicatingError(`[vendorErrors] unknown preview vendor: ${e}`);return{message:`${i.formatCode(n)}: ${o}`,vendorError:{vendorId:e,code:n}}}function Ie(e){return`https://www.google.com/search?q=${encodeURIComponent(e)}`}function Le(e,n){return`__remind:${e}:${n}`}function Pe(e,n,o){const{priority:i}=e,d=e.recordTimeline!==!1;if(!n.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(o.dismissed)return{showToast:!1,recordTimeline:!1};if(o.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(i==="silent")return{showToast:!1,recordTimeline:d};const w=i==="urgent"||i==="acknowledgment-required";return n.doNotDisturb&&(!w||i==="urgent"&&n.dndBlocksUrgent)?{showToast:!1,recordTimeline:d}:o.inQuietHours&&(!w||i==="urgent"&&n.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:d}:w?n.urgentRoutesToCenterOnly&&i==="urgent"?{showToast:!1,recordTimeline:d}:{showToast:!0,recordTimeline:d}:o.sourceMuted?{showToast:!1,recordTimeline:d}:{showToast:!0,recordTimeline:d}}function Oe(e){return s.notificationSettings.get().mutedSources.includes(e)}function Ve(e){return s.notificationSettings.get().dontShowAgainKeys.includes(e)}function $e(e){const n=Date.now();return s.notificationSettings.get().remindersUntil.some(i=>i.key===e&&i.remindAt>n)}async function Ce(e,n){if(!e||n<=0)return;const o=s.notificationSettings.get(),i=Date.now()+n,w=[...o.remindersUntil.filter(F=>F.key!==e),{key:e,remindAt:i}];s.notificationSettings.applyFromBroadcast({...o,remindersUntil:w}),await s.notificationSettings.update({...o,remindersUntil:w})}async function _e(e,n){const o=s.notificationSettings.get(),i=n?Array.from(new Set([...o.mutedSources,e])):o.mutedSources.filter(d=>d!==e);s.notificationSettings.applyFromBroadcast({...o,mutedSources:i}),await s.notificationSettings.update({...o,mutedSources:i})}async function qe(e){const n=s.notificationSettings.get();if(n.dontShowAgainKeys.includes(e))return;const o=[...n.dontShowAgainKeys,e];s.notificationSettings.applyFromBroadcast({...n,dontShowAgainKeys:o}),await s.notificationSettings.update({...n,dontShowAgainKeys:o})}async function je(e){const n=s.notificationSettings.get();if(!n.dontShowAgainKeys.includes(e))return;const o=n.dontShowAgainKeys.filter(i=>i!==e);s.notificationSettings.applyFromBroadcast({...n,dontShowAgainKeys:o}),await s.notificationSettings.update({...n,dontShowAgainKeys:o})}async function We(){const e=s.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(s.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await s.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Ge(){const e=s.notificationSettings.get();e.mutedSources.length!==0&&(s.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await s.notificationSettings.update({...e,mutedSources:[]}))}exports.attachedErrorActions=O;exports.closeNotification=Be;exports.configureDesktopBridge=fe;exports.createNativeNotificationEngine=j;exports.createVendorErrorPreview=He;exports.decideFilter=Pe;exports.deriveImplicitRemindKey=Le;exports.dismissKey=qe;exports.errorActions=de;exports.errorText=ue;exports.getFsService=ye;exports.getGoogleSearchUrl=Ie;exports.getVendorErrorSource=M;exports.installVendorErrorSource=Me;exports.isKeyDismissed=Ve;exports.isKeyRemindSuppressed=$e;exports.isNotificationSticky=q;exports.isSourceMuted=Oe;exports.isSpamDropHandle=Te;exports.isVendorErrorSourceInstalled=Ue;exports.notificationOverlayBridge=he;exports.notify=Fe;exports.openExternal=ge;exports.osNotify=me;exports.provideHostErrorPresenter=ae;exports.readAudioAsDataUrl=Se;exports.recordClick=Ae;exports.recordDismiss=ve;exports.recordFire=Ee;exports.remindLater=Ce;exports.resolveNotificationDuration=_;exports.resolveVendorError=Re;exports.restoreAllKeys=We;exports.restoreKey=je;exports.setNotificationFocus=Ke;exports.setNotificationHover=De;exports.setOsBadgeCount=we;exports.setSourceMuted=_e;exports.subscribeNotifications=be;exports.toggleNotificationExpanded=ke;exports.unmuteAllSources=Ge;exports.withErrorActions=ce;
|
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import { t as re, g as L } from "./rendererLogging-gAhiHWkA.js";
|
|
2
|
-
import { n as s } from "./notification-CpDYN_iu.js";
|
|
3
|
-
import { B as I } from "./bugIndicatingError-h3J5qkL6.js";
|
|
4
|
-
const M = /* @__PURE__ */ new WeakMap();
|
|
5
|
-
function we(e, n) {
|
|
6
|
-
return M.set(e, [...M.get(e) ?? [], ...n]), e;
|
|
7
|
-
}
|
|
8
|
-
function oe(e) {
|
|
9
|
-
return typeof e == "object" && e !== null ? M.get(e) ?? [] : [];
|
|
10
|
-
}
|
|
11
|
-
const P = {
|
|
12
|
-
text: (e, n) => re(e, n),
|
|
13
|
-
actions: (e) => oe(e)
|
|
14
|
-
};
|
|
15
|
-
let O = P;
|
|
16
|
-
function pe(e) {
|
|
17
|
-
O = e ?? P;
|
|
18
|
-
}
|
|
19
|
-
function $() {
|
|
20
|
-
return O;
|
|
21
|
-
}
|
|
22
|
-
function he(e, n) {
|
|
23
|
-
return $().text(e, n);
|
|
24
|
-
}
|
|
25
|
-
function ye(e) {
|
|
26
|
-
return $().actions(e);
|
|
27
|
-
}
|
|
28
|
-
const x = L("ElectronBridge");
|
|
29
|
-
let l = {};
|
|
30
|
-
function Se(e) {
|
|
31
|
-
l = e ?? {};
|
|
32
|
-
}
|
|
33
|
-
const ie = /* @__PURE__ */ new Set([
|
|
34
|
-
"http:",
|
|
35
|
-
"https:",
|
|
36
|
-
"mailto:"
|
|
37
|
-
]);
|
|
38
|
-
function Ae(e) {
|
|
39
|
-
let n;
|
|
40
|
-
try {
|
|
41
|
-
n = new URL(e).protocol;
|
|
42
|
-
} catch {
|
|
43
|
-
x.warn("openExternal: unparseable URL refused", { url: e });
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (!ie.has(n)) {
|
|
47
|
-
x.warn("openExternal: protocol refused", { url: e, protocol: n });
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (l.openExternal) {
|
|
51
|
-
Promise.resolve(l.openExternal(e)).catch((o) => {
|
|
52
|
-
x.warn("openExternal: host refused", { url: e, error: o });
|
|
53
|
-
});
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
typeof window < "u" && window.open(e, "_blank", "noopener,noreferrer");
|
|
57
|
-
}
|
|
58
|
-
function ve(e) {
|
|
59
|
-
l.osNotify && Promise.resolve(l.osNotify(e)).catch(() => {
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function Ee(e) {
|
|
63
|
-
l.setBadgeCount && Promise.resolve(l.setBadgeCount(e)).catch(() => {
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
async function xe(e) {
|
|
67
|
-
if (!l.readAudioAsDataUrl) return null;
|
|
68
|
-
try {
|
|
69
|
-
return await l.readAudioAsDataUrl(e);
|
|
70
|
-
} catch (n) {
|
|
71
|
-
return x.warn("custom sound could not be read", { filePath: e, error: n }), null;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const se = {
|
|
75
|
-
// The browser cannot show a native save dialog; the chosen name is the default one and
|
|
76
|
-
// the file is offered as a download.
|
|
77
|
-
showSaveDialog: async (e) => ({ filePath: (e == null ? void 0 : e.defaultPath) ?? "export.txt" }),
|
|
78
|
-
writeFile: async (e, n) => {
|
|
79
|
-
if (typeof document > "u") return;
|
|
80
|
-
const o = e.split(/[\\/]/).pop() || "export.txt", i = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), d = document.createElement("a");
|
|
81
|
-
d.href = i, d.download = o, d.rel = "noopener", d.click(), setTimeout(() => URL.revokeObjectURL(i), 0);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
function Te() {
|
|
85
|
-
return l.fs ?? se;
|
|
86
|
-
}
|
|
87
|
-
function Ne(e) {
|
|
88
|
-
var n;
|
|
89
|
-
if (e)
|
|
90
|
-
return (n = l.notificationOverlay) == null ? void 0 : n.call(l, e);
|
|
91
|
-
}
|
|
92
|
-
const H = /* @__PURE__ */ new Map();
|
|
93
|
-
function N(e) {
|
|
94
|
-
let n = H.get(e);
|
|
95
|
-
return n || (n = {
|
|
96
|
-
source: e,
|
|
97
|
-
total: 0,
|
|
98
|
-
shown: 0,
|
|
99
|
-
clicked: 0,
|
|
100
|
-
dismissed: 0,
|
|
101
|
-
autoFaded: 0,
|
|
102
|
-
muted: 0
|
|
103
|
-
}, H.set(e, n)), n;
|
|
104
|
-
}
|
|
105
|
-
function Fe(e, n, o) {
|
|
106
|
-
const i = N(e);
|
|
107
|
-
i.total += 1, n && (i.shown += 1), o && (i.muted += 1);
|
|
108
|
-
}
|
|
109
|
-
function be(e) {
|
|
110
|
-
N(e).clicked += 1;
|
|
111
|
-
}
|
|
112
|
-
function De(e) {
|
|
113
|
-
N(e).dismissed += 1;
|
|
114
|
-
}
|
|
115
|
-
function ce(e) {
|
|
116
|
-
N(e).autoFaded += 1;
|
|
117
|
-
}
|
|
118
|
-
const ae = L("NativeNotificationEngine");
|
|
119
|
-
function ke(e) {
|
|
120
|
-
return e.id === "";
|
|
121
|
-
}
|
|
122
|
-
function ue(e, n = s.get()) {
|
|
123
|
-
if (e.durationMs !== void 0) return e.durationMs;
|
|
124
|
-
switch (e.severity) {
|
|
125
|
-
case "info":
|
|
126
|
-
return n.infoDurationMs;
|
|
127
|
-
case "success":
|
|
128
|
-
return n.successDurationMs;
|
|
129
|
-
case "warning":
|
|
130
|
-
return n.warningDurationMs;
|
|
131
|
-
case "error":
|
|
132
|
-
return n.errorDurationMs;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function de(e, n = s.get()) {
|
|
136
|
-
if (e.sticky || e.priority === "urgent" || e.priority === "acknowledgment-required" || e.progress && !e.progress.done || e.severity === "error" && n.errorsAlwaysSticky || e.severity === "warning" && n.warningsAlwaysSticky) return !0;
|
|
137
|
-
const o = e.durationMs;
|
|
138
|
-
return o !== void 0 && (!Number.isFinite(o) || o <= 0);
|
|
139
|
-
}
|
|
140
|
-
function fe(e = {}) {
|
|
141
|
-
const n = e.getSettings ?? (() => s.get()), o = e.now ?? (() => Date.now()), i = e.setTimeout ?? ((t, r) => window.setTimeout(t, r)), d = e.clearTimeout ?? ((t) => window.clearTimeout(t)), w = e.recordAutoFade ?? ce, F = e.warn ?? ((t, r) => ae.warn(t, r)), u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
|
|
142
|
-
function b() {
|
|
143
|
-
return [...u.values()].sort((t, r) => t.createdAt - r.createdAt);
|
|
144
|
-
}
|
|
145
|
-
function B(t) {
|
|
146
|
-
const r = n();
|
|
147
|
-
if (!r.pauseTimerWhileHidden) return !1;
|
|
148
|
-
const a = b(), m = Math.max(1, r.maxVisibleNotifications);
|
|
149
|
-
if (a.length <= m) return !1;
|
|
150
|
-
const c = a.length - m, f = a.findIndex((D) => D.id === t);
|
|
151
|
-
return f >= 0 && f < c;
|
|
152
|
-
}
|
|
153
|
-
function _() {
|
|
154
|
-
for (const t of u.keys()) {
|
|
155
|
-
if (y.has(t)) {
|
|
156
|
-
B(t) && p(t);
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
h(t);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function g() {
|
|
163
|
-
const t = b();
|
|
164
|
-
for (const r of Array.from(E))
|
|
165
|
-
try {
|
|
166
|
-
r(t);
|
|
167
|
-
} catch (a) {
|
|
168
|
-
F("Bildirim motoru dinleyicisi firlatti:", a);
|
|
169
|
-
}
|
|
170
|
-
_();
|
|
171
|
-
}
|
|
172
|
-
function K(t) {
|
|
173
|
-
return !!(de(t, n()) || t.hovered || t.focused);
|
|
174
|
-
}
|
|
175
|
-
function V(t) {
|
|
176
|
-
return ue(t, n());
|
|
177
|
-
}
|
|
178
|
-
function p(t) {
|
|
179
|
-
const r = y.get(t);
|
|
180
|
-
r !== void 0 && (d(r), y.delete(t));
|
|
181
|
-
}
|
|
182
|
-
function h(t) {
|
|
183
|
-
p(t);
|
|
184
|
-
const r = u.get(t);
|
|
185
|
-
if (!r || K(r) || B(t)) return;
|
|
186
|
-
const a = V(r);
|
|
187
|
-
if (!Number.isFinite(a) || a <= 0) return;
|
|
188
|
-
const m = i(() => {
|
|
189
|
-
y.delete(t);
|
|
190
|
-
const c = u.get(t);
|
|
191
|
-
c && (K(c) || (w(c.source ?? "general"), u.delete(t), g()));
|
|
192
|
-
}, a);
|
|
193
|
-
y.set(t, m);
|
|
194
|
-
}
|
|
195
|
-
let U = 0;
|
|
196
|
-
function j() {
|
|
197
|
-
return U += 1, `n-${o().toString(36)}-${U.toString(36)}`;
|
|
198
|
-
}
|
|
199
|
-
const q = 800, W = 3, A = [];
|
|
200
|
-
function G() {
|
|
201
|
-
const t = o();
|
|
202
|
-
for (; A.length > 0 && (A[0] ?? 0) < t - q; )
|
|
203
|
-
A.shift();
|
|
204
|
-
return A.length >= W;
|
|
205
|
-
}
|
|
206
|
-
function z() {
|
|
207
|
-
A.push(o());
|
|
208
|
-
}
|
|
209
|
-
function R(t) {
|
|
210
|
-
return !t || t.length === 0 ? "" : t.filter((r) => r.primary).map((r) => `${r.id ?? ""}::${r.label}`).sort().join("|");
|
|
211
|
-
}
|
|
212
|
-
function J(t) {
|
|
213
|
-
const r = t.source ?? "", a = R(t.actions);
|
|
214
|
-
for (const [m, c] of u)
|
|
215
|
-
if ((c.source ?? "") === r && c.title === t.title && R(c.actions) === a)
|
|
216
|
-
return m;
|
|
217
|
-
return null;
|
|
218
|
-
}
|
|
219
|
-
function Q(t) {
|
|
220
|
-
const r = t.id, a = r ?? J(t), m = a === null;
|
|
221
|
-
if (m && !r && G())
|
|
222
|
-
return {
|
|
223
|
-
id: "",
|
|
224
|
-
update: () => {
|
|
225
|
-
},
|
|
226
|
-
setProgress: () => {
|
|
227
|
-
},
|
|
228
|
-
close: () => {
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
const c = a ?? j(), f = u.get(c), D = {
|
|
232
|
-
...t,
|
|
233
|
-
id: c,
|
|
234
|
-
createdAt: (f == null ? void 0 : f.createdAt) ?? o(),
|
|
235
|
-
// Default to collapsed so long error traces do not cover the screen;
|
|
236
|
-
// the user can expand via the chevron button.
|
|
237
|
-
expanded: (f == null ? void 0 : f.expanded) ?? !1,
|
|
238
|
-
hovered: (f == null ? void 0 : f.hovered) ?? !1,
|
|
239
|
-
focused: (f == null ? void 0 : f.focused) ?? !1
|
|
240
|
-
};
|
|
241
|
-
return u.set(c, D), m && z(), g(), h(c), {
|
|
242
|
-
id: c,
|
|
243
|
-
update(k) {
|
|
244
|
-
const v = u.get(c);
|
|
245
|
-
v && (u.set(c, { ...v, ...k }), g(), h(c));
|
|
246
|
-
},
|
|
247
|
-
setProgress(k) {
|
|
248
|
-
const v = u.get(c);
|
|
249
|
-
v && (u.set(c, { ...v, progress: k }), g(), h(c));
|
|
250
|
-
},
|
|
251
|
-
close() {
|
|
252
|
-
p(c), u.delete(c) && g();
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
function X(t) {
|
|
257
|
-
return E.add(t), t(b()), () => {
|
|
258
|
-
E.delete(t);
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
function Y(t, r) {
|
|
262
|
-
const a = u.get(t);
|
|
263
|
-
!a || a.hovered === r || (u.set(t, { ...a, hovered: r }), g(), r ? p(t) : h(t));
|
|
264
|
-
}
|
|
265
|
-
function Z(t, r) {
|
|
266
|
-
const a = u.get(t);
|
|
267
|
-
!a || a.focused === r || (u.set(t, { ...a, focused: r }), g(), r ? p(t) : h(t));
|
|
268
|
-
}
|
|
269
|
-
function ee(t) {
|
|
270
|
-
const r = u.get(t);
|
|
271
|
-
r && (u.set(t, { ...r, expanded: !r.expanded }), g(), h(t));
|
|
272
|
-
}
|
|
273
|
-
function te(t) {
|
|
274
|
-
p(t), u.delete(t) && g();
|
|
275
|
-
}
|
|
276
|
-
function ne() {
|
|
277
|
-
for (const t of y.keys()) p(t);
|
|
278
|
-
u.clear(), E.clear();
|
|
279
|
-
}
|
|
280
|
-
return {
|
|
281
|
-
notify: Q,
|
|
282
|
-
subscribe: X,
|
|
283
|
-
setHover: Y,
|
|
284
|
-
setFocus: Z,
|
|
285
|
-
toggleExpanded: ee,
|
|
286
|
-
close: te,
|
|
287
|
-
dispose: ne
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
const S = fe(), Me = S.notify, Be = S.subscribe, Ke = S.setHover, Ue = S.setFocus, Re = S.toggleExpanded, He = S.close;
|
|
291
|
-
let T = null;
|
|
292
|
-
function Le(e) {
|
|
293
|
-
T = e;
|
|
294
|
-
}
|
|
295
|
-
function Ie() {
|
|
296
|
-
return T !== null;
|
|
297
|
-
}
|
|
298
|
-
function C() {
|
|
299
|
-
if (T === null)
|
|
300
|
-
throw new I(
|
|
301
|
-
"[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup."
|
|
302
|
-
);
|
|
303
|
-
return T;
|
|
304
|
-
}
|
|
305
|
-
function Pe(e) {
|
|
306
|
-
const n = C().errorHelpersFor(e.vendorId);
|
|
307
|
-
return n === null ? null : { vendorId: e.vendorId, code: e.code, helpers: n };
|
|
308
|
-
}
|
|
309
|
-
function Oe(e, n, o) {
|
|
310
|
-
const i = C().errorHelpersFor(e);
|
|
311
|
-
if (i === null)
|
|
312
|
-
throw new I(
|
|
313
|
-
`[vendorErrors] unknown preview vendor: ${e}`
|
|
314
|
-
);
|
|
315
|
-
return {
|
|
316
|
-
message: `${i.formatCode(n)}: ${o}`,
|
|
317
|
-
vendorError: { vendorId: e, code: n }
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
function $e(e) {
|
|
321
|
-
return `https://www.google.com/search?q=${encodeURIComponent(e)}`;
|
|
322
|
-
}
|
|
323
|
-
function Ce(e, n) {
|
|
324
|
-
return `__remind:${e}:${n}`;
|
|
325
|
-
}
|
|
326
|
-
function _e(e, n, o) {
|
|
327
|
-
const { priority: i } = e, d = e.recordTimeline !== !1;
|
|
328
|
-
if (!n.notificationsEnabled)
|
|
329
|
-
return { showToast: !1, recordTimeline: !1 };
|
|
330
|
-
if (o.dismissed)
|
|
331
|
-
return { showToast: !1, recordTimeline: !1 };
|
|
332
|
-
if (o.remindSuppressed)
|
|
333
|
-
return { showToast: !1, recordTimeline: !1 };
|
|
334
|
-
if (i === "silent")
|
|
335
|
-
return { showToast: !1, recordTimeline: d };
|
|
336
|
-
const w = i === "urgent" || i === "acknowledgment-required";
|
|
337
|
-
return n.doNotDisturb && (!w || i === "urgent" && n.dndBlocksUrgent) ? { showToast: !1, recordTimeline: d } : o.inQuietHours && (!w || i === "urgent" && n.quietHoursBlocksUrgent) ? { showToast: !1, recordTimeline: d } : w ? n.urgentRoutesToCenterOnly && i === "urgent" ? { showToast: !1, recordTimeline: d } : { showToast: !0, recordTimeline: d } : o.sourceMuted ? { showToast: !1, recordTimeline: d } : { showToast: !0, recordTimeline: d };
|
|
338
|
-
}
|
|
339
|
-
function Ve(e) {
|
|
340
|
-
return s.get().mutedSources.includes(e);
|
|
341
|
-
}
|
|
342
|
-
function je(e) {
|
|
343
|
-
return s.get().dontShowAgainKeys.includes(e);
|
|
344
|
-
}
|
|
345
|
-
function qe(e) {
|
|
346
|
-
const n = Date.now();
|
|
347
|
-
return s.get().remindersUntil.some((i) => i.key === e && i.remindAt > n);
|
|
348
|
-
}
|
|
349
|
-
async function We(e, n) {
|
|
350
|
-
if (!e || n <= 0) return;
|
|
351
|
-
const o = s.get(), i = Date.now() + n, w = [...o.remindersUntil.filter((F) => F.key !== e), { key: e, remindAt: i }];
|
|
352
|
-
s.applyFromBroadcast({ ...o, remindersUntil: w }), await s.update({ ...o, remindersUntil: w });
|
|
353
|
-
}
|
|
354
|
-
async function Ge(e, n) {
|
|
355
|
-
const o = s.get(), i = n ? Array.from(/* @__PURE__ */ new Set([...o.mutedSources, e])) : o.mutedSources.filter((d) => d !== e);
|
|
356
|
-
s.applyFromBroadcast({ ...o, mutedSources: i }), await s.update({ ...o, mutedSources: i });
|
|
357
|
-
}
|
|
358
|
-
async function ze(e) {
|
|
359
|
-
const n = s.get();
|
|
360
|
-
if (n.dontShowAgainKeys.includes(e)) return;
|
|
361
|
-
const o = [...n.dontShowAgainKeys, e];
|
|
362
|
-
s.applyFromBroadcast({
|
|
363
|
-
...n,
|
|
364
|
-
dontShowAgainKeys: o
|
|
365
|
-
}), await s.update({ ...n, dontShowAgainKeys: o });
|
|
366
|
-
}
|
|
367
|
-
async function Je(e) {
|
|
368
|
-
const n = s.get();
|
|
369
|
-
if (!n.dontShowAgainKeys.includes(e)) return;
|
|
370
|
-
const o = n.dontShowAgainKeys.filter((i) => i !== e);
|
|
371
|
-
s.applyFromBroadcast({
|
|
372
|
-
...n,
|
|
373
|
-
dontShowAgainKeys: o
|
|
374
|
-
}), await s.update({ ...n, dontShowAgainKeys: o });
|
|
375
|
-
}
|
|
376
|
-
async function Qe() {
|
|
377
|
-
const e = s.get();
|
|
378
|
-
e.dontShowAgainKeys.length !== 0 && (s.applyFromBroadcast({
|
|
379
|
-
...e,
|
|
380
|
-
dontShowAgainKeys: []
|
|
381
|
-
}), await s.update({ ...e, dontShowAgainKeys: [] }));
|
|
382
|
-
}
|
|
383
|
-
async function Xe() {
|
|
384
|
-
const e = s.get();
|
|
385
|
-
e.mutedSources.length !== 0 && (s.applyFromBroadcast({ ...e, mutedSources: [] }), await s.update({ ...e, mutedSources: [] }));
|
|
386
|
-
}
|
|
387
|
-
export {
|
|
388
|
-
Ke as A,
|
|
389
|
-
Ge as B,
|
|
390
|
-
Be as C,
|
|
391
|
-
Re as D,
|
|
392
|
-
Xe as E,
|
|
393
|
-
he as F,
|
|
394
|
-
xe as G,
|
|
395
|
-
Ee as H,
|
|
396
|
-
Fe as I,
|
|
397
|
-
be as J,
|
|
398
|
-
ve as K,
|
|
399
|
-
Ae as L,
|
|
400
|
-
ye as M,
|
|
401
|
-
De as N,
|
|
402
|
-
Te as O,
|
|
403
|
-
Ne as P,
|
|
404
|
-
oe as a,
|
|
405
|
-
Oe as b,
|
|
406
|
-
Se as c,
|
|
407
|
-
C as d,
|
|
408
|
-
Ie as e,
|
|
409
|
-
He as f,
|
|
410
|
-
$e as g,
|
|
411
|
-
fe as h,
|
|
412
|
-
Le as i,
|
|
413
|
-
_e as j,
|
|
414
|
-
Ce as k,
|
|
415
|
-
ze as l,
|
|
416
|
-
je as m,
|
|
417
|
-
qe as n,
|
|
418
|
-
de as o,
|
|
419
|
-
pe as p,
|
|
420
|
-
Ve as q,
|
|
421
|
-
Pe as r,
|
|
422
|
-
ke as s,
|
|
423
|
-
Me as t,
|
|
424
|
-
We as u,
|
|
425
|
-
ue as v,
|
|
426
|
-
we as w,
|
|
427
|
-
Qe as x,
|
|
428
|
-
Je as y,
|
|
429
|
-
Ue as z
|
|
430
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function copyTextToClipboard(value: string, options?: {
|
|
2
|
-
/** Text of the success toast (default: 'Copied to clipboard.'). */
|
|
3
|
-
successMessage?: string;
|
|
4
|
-
/** Silence the success toast entirely (when the caller gives its own feedback). */
|
|
5
|
-
silentOnSuccess?: boolean;
|
|
6
|
-
}): Promise<boolean>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function copyTextToClipboard(value: string, options?: {
|
|
2
|
-
/** Text of the success toast (default: 'Copied to clipboard.'). */
|
|
3
|
-
successMessage?: string;
|
|
4
|
-
/** Silence the success toast entirely (when the caller gives its own feedback). */
|
|
5
|
-
silentOnSuccess?: boolean;
|
|
6
|
-
}): Promise<boolean>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Accessor } from 'solid-js';
|
|
2
|
-
/** How long the "Copied" badge stays lit. */
|
|
3
|
-
export declare const COPY_FLASH_MS = 1500;
|
|
4
|
-
export interface CopyFlash {
|
|
5
|
-
/** `true` for a short time if the last copy was ACTUALLY written to the clipboard. */
|
|
6
|
-
readonly copied: Accessor<boolean>;
|
|
7
|
-
/** Copies through the clipboard canon; the canon reports failure, the badge lights only on success. */
|
|
8
|
-
readonly copy: (text: string) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The behaviour of a copy button that has its own "Copied" badge. Writing goes through the
|
|
12
|
-
* clipboard canon: a rejection is not swallowed, the user is told; the badge lights only when
|
|
13
|
-
* the copy really happened. (A bare `navigator.clipboard.writeText(...).then(...)` has no
|
|
14
|
-
* rejection handler, so a failure would stay silent.) The badge timer is cleaned up with the
|
|
15
|
-
* owner's lifetime.
|
|
16
|
-
*/
|
|
17
|
-
export declare function createCopyFlash(): CopyFlash;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Accessor } from 'solid-js';
|
|
2
|
-
/** How long the "Copied" badge stays lit. */
|
|
3
|
-
export declare const COPY_FLASH_MS = 1500;
|
|
4
|
-
export interface CopyFlash {
|
|
5
|
-
/** `true` for a short time if the last copy was ACTUALLY written to the clipboard. */
|
|
6
|
-
readonly copied: Accessor<boolean>;
|
|
7
|
-
/** Copies through the clipboard canon; the canon reports failure, the badge lights only on success. */
|
|
8
|
-
readonly copy: (text: string) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The behaviour of a copy button that has its own "Copied" badge. Writing goes through the
|
|
12
|
-
* clipboard canon: a rejection is not swallowed, the user is told; the badge lights only when
|
|
13
|
-
* the copy really happened. (A bare `navigator.clipboard.writeText(...).then(...)` has no
|
|
14
|
-
* rejection handler, so a failure would stay silent.) The badge timer is cleaned up with the
|
|
15
|
-
* owner's lifetime.
|
|
16
|
-
*/
|
|
17
|
-
export declare function createCopyFlash(): CopyFlash;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The single decision point that selects WHICH window paints the toast stack.
|
|
3
|
-
*
|
|
4
|
-
* ## Why it is needed
|
|
5
|
-
*
|
|
6
|
-
* `nativeEngine` keeps a single GLOBAL store: `subscribeNotifications` hands every listener
|
|
7
|
-
* the same list. If a `NotificationHost` is mounted in an auxiliary window next to the main
|
|
8
|
-
* window, every toast would be painted in **both windows at once** — two copies of the same
|
|
9
|
-
* notification, in two separate stacks.
|
|
10
|
-
*
|
|
11
|
-
* Splitting the store per window would be wrong too: a notification belongs to the app, not to
|
|
12
|
-
* a window (the timeline, the unread badge and the DND rules are all app-wide). What is split
|
|
13
|
-
* is not the store but the **right to paint**.
|
|
14
|
-
*
|
|
15
|
-
* ## Rule
|
|
16
|
-
*
|
|
17
|
-
* Owner = the registered window that has focus. If none has focus (the app is in the
|
|
18
|
-
* background, or focus is outside the app), the owner is the **first registered** window —
|
|
19
|
-
* i.e. the main window, because the app shell mounts before the auxiliary windows. That makes
|
|
20
|
-
* the "nobody paints" state structurally impossible.
|
|
21
|
-
*
|
|
22
|
-
* ⚠ Recomputation is DEFERRED to the next macrotask. `blur` always arrives BEFORE the
|
|
23
|
-
* `focus` of the other window; if we recomputed immediately, the window in between would look
|
|
24
|
-
* "nobody has focus", ownership would drop to the main window for a moment, and the toast
|
|
25
|
-
* would visibly jump between windows.
|
|
26
|
-
*/
|
|
27
|
-
export { registerDisplayHost as registerNotificationHost, type DisplayHostRegistration as NotificationHostRegistration, } from '../_internal/platform/window/displayOwner.cjs';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The single decision point that selects WHICH window paints the toast stack.
|
|
3
|
-
*
|
|
4
|
-
* ## Why it is needed
|
|
5
|
-
*
|
|
6
|
-
* `nativeEngine` keeps a single GLOBAL store: `subscribeNotifications` hands every listener
|
|
7
|
-
* the same list. If a `NotificationHost` is mounted in an auxiliary window next to the main
|
|
8
|
-
* window, every toast would be painted in **both windows at once** — two copies of the same
|
|
9
|
-
* notification, in two separate stacks.
|
|
10
|
-
*
|
|
11
|
-
* Splitting the store per window would be wrong too: a notification belongs to the app, not to
|
|
12
|
-
* a window (the timeline, the unread badge and the DND rules are all app-wide). What is split
|
|
13
|
-
* is not the store but the **right to paint**.
|
|
14
|
-
*
|
|
15
|
-
* ## Rule
|
|
16
|
-
*
|
|
17
|
-
* Owner = the registered window that has focus. If none has focus (the app is in the
|
|
18
|
-
* background, or focus is outside the app), the owner is the **first registered** window —
|
|
19
|
-
* i.e. the main window, because the app shell mounts before the auxiliary windows. That makes
|
|
20
|
-
* the "nobody paints" state structurally impossible.
|
|
21
|
-
*
|
|
22
|
-
* ⚠ Recomputation is DEFERRED to the next macrotask. `blur` always arrives BEFORE the
|
|
23
|
-
* `focus` of the other window; if we recomputed immediately, the window in between would look
|
|
24
|
-
* "nobody has focus", ownership would drop to the main window for a moment, and the toast
|
|
25
|
-
* would visibly jump between windows.
|
|
26
|
-
*/
|
|
27
|
-
export { registerDisplayHost as registerNotificationHost, type DisplayHostRegistration as NotificationHostRegistration, } from '../_internal/platform/window/displayOwner.js';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Factory builders for the two "repeater" entry types in the Notification
|
|
3
|
-
* settings UI: a new {@link NotificationRule} and a new {@link WebhookConfig}.
|
|
4
|
-
*
|
|
5
|
-
* #1345: the `NotificationSettingsSection` component (1500+ lines) inlined the
|
|
6
|
-
* default shape + id of a new rule/webhook directly inside the "+ Add" button
|
|
7
|
-
* `onClick` handlers. Constructing the canonical default entry is a single
|
|
8
|
-
* cohesive responsibility (one reason to change: the default rule/webhook
|
|
9
|
-
* shape) that is wholly independent of JSX, so it lives here as pure logic the
|
|
10
|
-
* component delegates to — the first concern peeled off the god-component
|
|
11
|
-
* (the `#1346` `parseLongRunningThresholdMs` extraction set this precedent).
|
|
12
|
-
*
|
|
13
|
-
* Pure: builders never mutate inputs and return a fresh object each call. The
|
|
14
|
-
* id generator is injected (defaulting to the codebase's canonical
|
|
15
|
-
* `${prefix}-${Date.now()}-${Math.random()...}` idiom) so callers can supply a
|
|
16
|
-
* deterministic generator under test without stubbing globals.
|
|
17
|
-
*/
|
|
18
|
-
import type { NotificationRule, WebhookConfig } from '../_internal/platform/settings/settingsTypes.cjs';
|
|
19
|
-
/** Produces a collision-resistant entry id for the given prefix. */
|
|
20
|
-
export type RepeaterEntryIdGenerator = (prefix: string) => string;
|
|
21
|
-
/**
|
|
22
|
-
* Canonical id idiom for notification entries (`notificationCenter.ts`): a (today `toast.ts`)
|
|
23
|
-
* short, sortable, collision-resistant token. Kept here so the builders match
|
|
24
|
-
* the rest of the notification domain exactly instead of re-deriving the format.
|
|
25
|
-
*/
|
|
26
|
-
export declare const generateRepeaterEntryId: RepeaterEntryIdGenerator;
|
|
27
|
-
/**
|
|
28
|
-
* Build a new, disabled-condition notification rule with empty match
|
|
29
|
-
* conditions and no actions — the neutral starting point a user then edits.
|
|
30
|
-
*/
|
|
31
|
-
export declare function buildNewNotificationRule(generateId?: RepeaterEntryIdGenerator): NotificationRule;
|
|
32
|
-
/**
|
|
33
|
-
* Build a new generic webhook with an empty URL and match-any filters — the
|
|
34
|
-
* neutral starting point a user then points at Slack / Discord / a custom URL.
|
|
35
|
-
*/
|
|
36
|
-
export declare function buildNewWebhook(generateId?: RepeaterEntryIdGenerator): WebhookConfig;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Factory builders for the two "repeater" entry types in the Notification
|
|
3
|
-
* settings UI: a new {@link NotificationRule} and a new {@link WebhookConfig}.
|
|
4
|
-
*
|
|
5
|
-
* #1345: the `NotificationSettingsSection` component (1500+ lines) inlined the
|
|
6
|
-
* default shape + id of a new rule/webhook directly inside the "+ Add" button
|
|
7
|
-
* `onClick` handlers. Constructing the canonical default entry is a single
|
|
8
|
-
* cohesive responsibility (one reason to change: the default rule/webhook
|
|
9
|
-
* shape) that is wholly independent of JSX, so it lives here as pure logic the
|
|
10
|
-
* component delegates to — the first concern peeled off the god-component
|
|
11
|
-
* (the `#1346` `parseLongRunningThresholdMs` extraction set this precedent).
|
|
12
|
-
*
|
|
13
|
-
* Pure: builders never mutate inputs and return a fresh object each call. The
|
|
14
|
-
* id generator is injected (defaulting to the codebase's canonical
|
|
15
|
-
* `${prefix}-${Date.now()}-${Math.random()...}` idiom) so callers can supply a
|
|
16
|
-
* deterministic generator under test without stubbing globals.
|
|
17
|
-
*/
|
|
18
|
-
import type { NotificationRule, WebhookConfig } from '../_internal/platform/settings/settingsTypes.js';
|
|
19
|
-
/** Produces a collision-resistant entry id for the given prefix. */
|
|
20
|
-
export type RepeaterEntryIdGenerator = (prefix: string) => string;
|
|
21
|
-
/**
|
|
22
|
-
* Canonical id idiom for notification entries (`notificationCenter.ts`): a (today `toast.ts`)
|
|
23
|
-
* short, sortable, collision-resistant token. Kept here so the builders match
|
|
24
|
-
* the rest of the notification domain exactly instead of re-deriving the format.
|
|
25
|
-
*/
|
|
26
|
-
export declare const generateRepeaterEntryId: RepeaterEntryIdGenerator;
|
|
27
|
-
/**
|
|
28
|
-
* Build a new, disabled-condition notification rule with empty match
|
|
29
|
-
* conditions and no actions — the neutral starting point a user then edits.
|
|
30
|
-
*/
|
|
31
|
-
export declare function buildNewNotificationRule(generateId?: RepeaterEntryIdGenerator): NotificationRule;
|
|
32
|
-
/**
|
|
33
|
-
* Build a new generic webhook with an empty URL and match-any filters — the
|
|
34
|
-
* neutral starting point a user then points at Slack / Discord / a custom URL.
|
|
35
|
-
*/
|
|
36
|
-
export declare function buildNewWebhook(generateId?: RepeaterEntryIdGenerator): WebhookConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const notificationsNotificationSamples: readonly [import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const notificationsNotificationSamples: readonly [import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor];
|