@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,8 +1,8 @@
|
|
|
1
|
-
import { stateDbStore } from './stateDbStore';
|
|
1
|
+
import { bindSettingsBackend, isSettingsBackendBound, stateDbStore, StoredSettingUnreadableError, } from './stateDbStore';
|
|
2
2
|
import { deriveDefault, deriveNormalize, deriveNormalizePartial, } from './normalizeField';
|
|
3
3
|
import { createLayeredValue } from './layeredValue';
|
|
4
4
|
import { getContributedGroupDefault, subscribePluginConfigDefaults, } from './pluginConfigDefaults';
|
|
5
|
-
import {
|
|
5
|
+
import { onUnexpectedError } from '../../../base/errors/errorHandler';
|
|
6
6
|
import { BugIndicatingError } from '../../../base/errors/bugIndicatingError';
|
|
7
7
|
const SCOPE_DEPTH = {
|
|
8
8
|
application: 0,
|
|
@@ -18,9 +18,8 @@ export function resetSettingsGroupForTest(group) {
|
|
|
18
18
|
}
|
|
19
19
|
const REGISTERED = [];
|
|
20
20
|
const BY_KEY = new Map();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
bootHydrationRan = true;
|
|
21
|
+
export function hydrateRegisteredSettings(backend) {
|
|
22
|
+
bindSettingsBackend(backend);
|
|
24
23
|
for (const group of REGISTERED)
|
|
25
24
|
group.hydrate();
|
|
26
25
|
}
|
|
@@ -44,8 +43,11 @@ function emitAnyChange(key, value) {
|
|
|
44
43
|
function makeGroup(core) {
|
|
45
44
|
const { key, changeEvent, scope, store, applyRuntime, defaultValue, normalize, normalizePartial, fieldKeys, uiSchema, secretKeys, protectedDefaultFields, } = core;
|
|
46
45
|
Object.freeze(defaultValue);
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
let hydrated = false;
|
|
47
|
+
const assertHydrated = () => {
|
|
48
|
+
if (!hydrated)
|
|
49
|
+
throw new BugIndicatingError(`[settings] "${key}" used before it was hydrated — the realm hydrates its settings at ` +
|
|
50
|
+
'startup with hydrateRegisteredSettings(backend); a group with its own store calls hydrate().');
|
|
49
51
|
};
|
|
50
52
|
const effectiveDefault = () => {
|
|
51
53
|
if (protectedDefaultFields === '*')
|
|
@@ -79,6 +81,10 @@ function makeGroup(core) {
|
|
|
79
81
|
subscribePluginConfigDefaults((changedGroups) => {
|
|
80
82
|
if (!changedGroups.has(key))
|
|
81
83
|
return;
|
|
84
|
+
if (!hydrated) {
|
|
85
|
+
lv.invalidate();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
82
88
|
const hadMemo = lv.isResolved();
|
|
83
89
|
const prev = hadMemo ? lv.resolve() : undefined;
|
|
84
90
|
lv.invalidate();
|
|
@@ -89,12 +95,16 @@ function makeGroup(core) {
|
|
|
89
95
|
notify(next);
|
|
90
96
|
});
|
|
91
97
|
const get = () => {
|
|
98
|
+
assertHydrated();
|
|
92
99
|
const value = lv.resolve();
|
|
93
100
|
return value !== null && typeof value === 'object'
|
|
94
101
|
? structuredClone(value)
|
|
95
102
|
: value;
|
|
96
103
|
};
|
|
97
|
-
const peek = () =>
|
|
104
|
+
const peek = () => {
|
|
105
|
+
assertHydrated();
|
|
106
|
+
return lv.resolve();
|
|
107
|
+
};
|
|
98
108
|
const assertScopeAllowed = (target) => {
|
|
99
109
|
if (SCOPE_DEPTH[target] > SCOPE_DEPTH[scope]) {
|
|
100
110
|
throw new BugIndicatingError(`[settings] "${key}" is ${scope}-scoped — cannot target deeper scope "${target}"`);
|
|
@@ -104,13 +114,7 @@ function makeGroup(core) {
|
|
|
104
114
|
}
|
|
105
115
|
};
|
|
106
116
|
const persist = async (value, atScope) => {
|
|
107
|
-
|
|
108
|
-
await store.write(value, atScope);
|
|
109
|
-
}
|
|
110
|
-
catch (err) {
|
|
111
|
-
logError(`${key} persist failed`, err);
|
|
112
|
-
throw err;
|
|
113
|
-
}
|
|
117
|
+
await store.write(value, atScope);
|
|
114
118
|
};
|
|
115
119
|
const commitLayer = async (atScope, layerValue) => {
|
|
116
120
|
const snapshot = lv.snapshot();
|
|
@@ -138,6 +142,7 @@ function makeGroup(core) {
|
|
|
138
142
|
return nextResolved;
|
|
139
143
|
};
|
|
140
144
|
const update = async (patch, opts) => {
|
|
145
|
+
assertHydrated();
|
|
141
146
|
const target = opts?.target ?? 'application';
|
|
142
147
|
assertScopeAllowed(target);
|
|
143
148
|
if (target === 'application') {
|
|
@@ -151,6 +156,7 @@ function makeGroup(core) {
|
|
|
151
156
|
return commitLayer(target, normalizePartial(mergedSparse));
|
|
152
157
|
};
|
|
153
158
|
const clearOverrideField = async (scope, field) => {
|
|
159
|
+
assertHydrated();
|
|
154
160
|
assertScopeAllowed(scope);
|
|
155
161
|
if (scope === 'application') {
|
|
156
162
|
throw new BugIndicatingError(`${key}: "application" is the baseline, not an override layer — nothing to clear`);
|
|
@@ -163,27 +169,45 @@ function makeGroup(core) {
|
|
|
163
169
|
return commitLayer(scope, normalizePartial(next));
|
|
164
170
|
};
|
|
165
171
|
const overrideAt = (scope) => {
|
|
172
|
+
assertHydrated();
|
|
166
173
|
assertScopeAllowed(scope);
|
|
167
174
|
return scope === 'application' ? {} : { ...lv.override(scope) };
|
|
168
175
|
};
|
|
169
|
-
const replace = async (value) =>
|
|
176
|
+
const replace = async (value) => {
|
|
177
|
+
assertHydrated();
|
|
178
|
+
return commitLayer('application', normalize(value));
|
|
179
|
+
};
|
|
180
|
+
const readStored = (atScope) => {
|
|
181
|
+
try {
|
|
182
|
+
return store.read(atScope);
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
if (!(error instanceof StoredSettingUnreadableError))
|
|
186
|
+
throw error;
|
|
187
|
+
onUnexpectedError(error);
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
};
|
|
170
191
|
const hydrate = (atScope = 'application') => {
|
|
171
192
|
assertScopeAllowed(atScope);
|
|
172
193
|
if (atScope === 'application') {
|
|
173
|
-
const raw =
|
|
194
|
+
const raw = readStored('application');
|
|
174
195
|
if (raw !== undefined && raw !== null)
|
|
175
196
|
lv.commit('application', normalize(raw));
|
|
176
197
|
else
|
|
177
198
|
lv.resetApplication();
|
|
199
|
+
hydrated = true;
|
|
178
200
|
}
|
|
179
201
|
else {
|
|
180
|
-
|
|
202
|
+
assertHydrated();
|
|
203
|
+
lv.commit(atScope, normalizePartial(readStored(atScope)));
|
|
181
204
|
}
|
|
182
205
|
const resolved = lv.resolve();
|
|
183
206
|
applyRuntime?.(resolved);
|
|
184
207
|
return resolved;
|
|
185
208
|
};
|
|
186
209
|
const applyFromBroadcast = (value, atScope = 'application') => {
|
|
210
|
+
assertHydrated();
|
|
187
211
|
assertScopeAllowed(atScope);
|
|
188
212
|
const prevResolved = lv.resolve();
|
|
189
213
|
const layerValue = atScope === 'application' ? normalize(value) : normalizePartial(value);
|
|
@@ -195,6 +219,7 @@ function makeGroup(core) {
|
|
|
195
219
|
notify(nextResolved);
|
|
196
220
|
};
|
|
197
221
|
const dropScopeLayer = (atScope) => {
|
|
222
|
+
assertHydrated();
|
|
198
223
|
const prevResolved = lv.resolve();
|
|
199
224
|
if (!lv.deleteOverride(atScope))
|
|
200
225
|
return;
|
|
@@ -204,7 +229,10 @@ function makeGroup(core) {
|
|
|
204
229
|
applyRuntime?.(next);
|
|
205
230
|
notify(next);
|
|
206
231
|
};
|
|
207
|
-
const reset = () =>
|
|
232
|
+
const reset = () => {
|
|
233
|
+
lv.reset();
|
|
234
|
+
hydrated = false;
|
|
235
|
+
};
|
|
208
236
|
const group = {
|
|
209
237
|
key,
|
|
210
238
|
changeEvent,
|
|
@@ -231,7 +259,7 @@ function makeGroup(core) {
|
|
|
231
259
|
const registered = group;
|
|
232
260
|
REGISTERED.push(registered);
|
|
233
261
|
BY_KEY.set(key, registered);
|
|
234
|
-
if (
|
|
262
|
+
if (isSettingsBackendBound())
|
|
235
263
|
registered.hydrate();
|
|
236
264
|
return group;
|
|
237
265
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BugIndicatingError } from '../../../base/errors/bugIndicatingError';
|
|
1
2
|
export var StorageScope;
|
|
2
3
|
(function (StorageScope) {
|
|
3
4
|
StorageScope[StorageScope["APPLICATION"] = -1] = "APPLICATION";
|
|
@@ -16,37 +17,46 @@ export const SCOPE_MAP = {
|
|
|
16
17
|
connection: StorageScope.CONNECTION,
|
|
17
18
|
workspace: StorageScope.WORKSPACE,
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
export class StoredSettingUnreadableError extends Error {
|
|
21
|
+
key;
|
|
22
|
+
scope;
|
|
23
|
+
constructor(key, scope, cause) {
|
|
24
|
+
super(`[settings] the stored value of "${key}" (${scope}) is not JSON`, { cause });
|
|
25
|
+
this.key = key;
|
|
26
|
+
this.scope = scope;
|
|
27
|
+
this.name = 'StoredSettingUnreadableError';
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
|
-
let
|
|
29
|
-
export function
|
|
30
|
-
|
|
30
|
+
let realmBackend = null;
|
|
31
|
+
export function bindSettingsBackend(backend) {
|
|
32
|
+
if (realmBackend !== null)
|
|
33
|
+
throw new BugIndicatingError('[settings] the realm already bound its settings backend — it is bound once, at startup');
|
|
34
|
+
realmBackend = backend;
|
|
31
35
|
}
|
|
32
|
-
export function
|
|
33
|
-
return
|
|
36
|
+
export function isSettingsBackendBound() {
|
|
37
|
+
return realmBackend !== null;
|
|
38
|
+
}
|
|
39
|
+
function boundBackend(key) {
|
|
40
|
+
if (realmBackend === null)
|
|
41
|
+
throw new BugIndicatingError(`[settings] "${key}" used before the realm bound its settings backend — ` +
|
|
42
|
+
'call hydrateRegisteredSettings(backend) at startup.');
|
|
43
|
+
return realmBackend;
|
|
34
44
|
}
|
|
35
45
|
export function stateDbStore(key, target = StorageTarget.USER) {
|
|
36
46
|
return {
|
|
37
47
|
read: (scopeName) => {
|
|
48
|
+
const raw = boundBackend(key).get(key, SCOPE_MAP[scopeName]);
|
|
49
|
+
if (raw === undefined)
|
|
50
|
+
return undefined;
|
|
38
51
|
try {
|
|
39
|
-
const raw = backend.get(key, SCOPE_MAP[scopeName]);
|
|
40
|
-
if (raw === undefined)
|
|
41
|
-
return undefined;
|
|
42
52
|
return JSON.parse(raw);
|
|
43
53
|
}
|
|
44
|
-
catch {
|
|
45
|
-
|
|
54
|
+
catch (cause) {
|
|
55
|
+
throw new StoredSettingUnreadableError(key, scopeName, cause);
|
|
46
56
|
}
|
|
47
57
|
},
|
|
48
58
|
write: async (value, scopeName) => {
|
|
49
|
-
|
|
59
|
+
boundBackend(key).store(key, JSON.stringify(value), SCOPE_MAP[scopeName], target);
|
|
50
60
|
},
|
|
51
61
|
};
|
|
52
62
|
}
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import { BugIndicatingError } from '../../base/errors/bugIndicatingError';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
installedSource = source;
|
|
5
|
-
}
|
|
6
|
-
export function isVendorErrorSourceInstalled() {
|
|
7
|
-
return installedSource !== null;
|
|
8
|
-
}
|
|
9
|
-
export function getVendorErrorSource() {
|
|
10
|
-
if (installedSource === null) {
|
|
11
|
-
throw new BugIndicatingError('[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup.');
|
|
12
|
-
}
|
|
13
|
-
return installedSource;
|
|
14
|
-
}
|
|
15
|
-
export function resolveVendorError(ref) {
|
|
16
|
-
const helpers = getVendorErrorSource().errorHelpersFor(ref.vendorId);
|
|
2
|
+
export function resolveVendorError(source, ref) {
|
|
3
|
+
const helpers = source.errorHelpersFor(ref.vendorId);
|
|
17
4
|
return helpers === null
|
|
18
5
|
? null
|
|
19
6
|
: { vendorId: ref.vendorId, code: ref.code, helpers };
|
|
20
7
|
}
|
|
21
|
-
export function createVendorErrorPreview(vendorId, code, message) {
|
|
22
|
-
const helpers =
|
|
8
|
+
export function createVendorErrorPreview(source, vendorId, code, message) {
|
|
9
|
+
const helpers = source.errorHelpersFor(vendorId);
|
|
23
10
|
if (helpers === null) {
|
|
24
11
|
throw new BugIndicatingError(`[vendorErrors] unknown preview vendor: ${vendorId}`);
|
|
25
12
|
}
|
|
@@ -1,125 +1,116 @@
|
|
|
1
1
|
import { createSignal } from 'solid-js';
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { getMainWindow } from '../../../host/window';
|
|
3
|
+
export const domDisplayFocusSource = {
|
|
4
|
+
onFocusChanged: () => ({ dispose: () => undefined }),
|
|
5
|
+
getFocusState: () => Promise.resolve({ revision: 0, focusedWindowId: null }),
|
|
6
|
+
hostWindowId: () => null,
|
|
7
|
+
};
|
|
8
|
+
export class DisplayOwnerService {
|
|
9
|
+
source;
|
|
10
|
+
log;
|
|
11
|
+
hosts = [];
|
|
12
|
+
ownerWindow;
|
|
13
|
+
setOwnerWindow;
|
|
14
|
+
nativeIds = new WeakMap();
|
|
15
|
+
focusSubscription;
|
|
16
|
+
pendingRefresh;
|
|
17
17
|
focusedNativeWindowId = null;
|
|
18
18
|
mainNativeWindowId = 0;
|
|
19
|
-
focusListenerInstalled = false;
|
|
20
19
|
nativeFocusRevision = 0;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
constructor(source, log) {
|
|
21
|
+
this.source = source;
|
|
22
|
+
this.log = log;
|
|
23
|
+
const [ownerWindow, setOwnerWindow] = createSignal(null);
|
|
24
|
+
this.ownerWindow = ownerWindow;
|
|
25
|
+
this.setOwnerWindow = setOwnerWindow;
|
|
26
|
+
this.focusSubscription = source.onFocusChanged((state) => {
|
|
27
|
+
if (state.revision < this.nativeFocusRevision)
|
|
28
|
+
return;
|
|
29
|
+
this.nativeFocusRevision = state.revision;
|
|
30
|
+
this.focusedNativeWindowId = state.focusedWindowId;
|
|
31
|
+
this.scheduleRefresh();
|
|
32
|
+
});
|
|
33
|
+
void source.getFocusState().then((state) => {
|
|
34
|
+
if (state.windowId)
|
|
35
|
+
this.mainNativeWindowId = state.windowId;
|
|
36
|
+
if (state.revision < this.nativeFocusRevision)
|
|
37
|
+
return;
|
|
38
|
+
this.nativeFocusRevision = state.revision;
|
|
39
|
+
this.focusedNativeWindowId = state.focusedWindowId;
|
|
40
|
+
this.scheduleRefresh();
|
|
41
|
+
}, (error) => log.warn('native focus state could not be read; DOM focus decides the display owner', error));
|
|
24
42
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const source = focusSource;
|
|
30
|
-
if (typeof window === 'undefined' || !source || source.available?.() === false)
|
|
31
|
-
return;
|
|
32
|
-
focusListenerInstalled = true;
|
|
33
|
-
source.onFocusChanged((state) => {
|
|
34
|
-
if (state.revision >= nativeFocusRevision) {
|
|
35
|
-
nativeFocusRevision = state.revision;
|
|
36
|
-
focusedNativeWindowId = state.focusedWindowId;
|
|
37
|
-
scheduleRefresh();
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
void source
|
|
41
|
-
.getFocusState()
|
|
42
|
-
.then((state) => {
|
|
43
|
-
if (state.windowId) {
|
|
44
|
-
mainNativeWindowId = state.windowId;
|
|
43
|
+
register(win) {
|
|
44
|
+
let host = this.hosts.find((entry) => entry.win === win);
|
|
45
|
+
if (host) {
|
|
46
|
+
host.references++;
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
else {
|
|
49
|
+
host = { win, references: 1, onFocusChange: () => this.scheduleRefresh() };
|
|
50
|
+
this.hosts.push(host);
|
|
51
|
+
win.addEventListener('focus', host.onFocusChange);
|
|
52
|
+
win.addEventListener('blur', host.onFocusChange);
|
|
53
|
+
this.resolveNativeId(win);
|
|
50
54
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
function scheduleRefresh() {
|
|
73
|
-
if (pendingRefresh !== undefined)
|
|
74
|
-
return;
|
|
75
|
-
pendingRefresh = setTimeout(() => {
|
|
76
|
-
pendingRefresh = undefined;
|
|
77
|
-
setOwnerWindow(() => resolveOwner());
|
|
78
|
-
}, 0);
|
|
79
|
-
}
|
|
80
|
-
export function registerDisplayHost(win) {
|
|
81
|
-
let host = hostWindows.find((entry) => entry.win === win);
|
|
82
|
-
if (host) {
|
|
83
|
-
host.references++;
|
|
55
|
+
this.setOwnerWindow(() => this.resolveOwner());
|
|
56
|
+
const registered = host;
|
|
57
|
+
let disposed = false;
|
|
58
|
+
return {
|
|
59
|
+
ownsDisplay: () => this.ownerWindow() === win,
|
|
60
|
+
dispose: () => {
|
|
61
|
+
if (disposed)
|
|
62
|
+
return;
|
|
63
|
+
disposed = true;
|
|
64
|
+
registered.references--;
|
|
65
|
+
if (registered.references === 0) {
|
|
66
|
+
win.removeEventListener('focus', registered.onFocusChange);
|
|
67
|
+
win.removeEventListener('blur', registered.onFocusChange);
|
|
68
|
+
this.hosts.splice(this.hosts.indexOf(registered), 1);
|
|
69
|
+
}
|
|
70
|
+
if (this.hosts.length === 0)
|
|
71
|
+
this.cancelRefresh();
|
|
72
|
+
this.setOwnerWindow(() => this.resolveOwner());
|
|
73
|
+
},
|
|
74
|
+
};
|
|
84
75
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
win.addEventListener('focus', host.onFocusChange);
|
|
89
|
-
win.addEventListener('blur', host.onFocusChange);
|
|
90
|
-
if (typeof window !== 'undefined' && win !== window) {
|
|
91
|
-
const aux = win;
|
|
92
|
-
const pending = focusSource?.hostWindowId?.(win) ?? null;
|
|
93
|
-
if (typeof aux.__vokril_window_id !== 'number' && pending) {
|
|
94
|
-
void pending.then((windowId) => {
|
|
95
|
-
if (windowId === null)
|
|
96
|
-
return;
|
|
97
|
-
aux.__vokril_window_id = windowId;
|
|
98
|
-
scheduleRefresh();
|
|
99
|
-
}, (error) => log.warn('aux window id could not be read; display owner stays unresolved', error));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
76
|
+
dispose() {
|
|
77
|
+
this.cancelRefresh();
|
|
78
|
+
this.focusSubscription.dispose();
|
|
102
79
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (disposed)
|
|
80
|
+
resolveNativeId(win) {
|
|
81
|
+
const pending = this.source.hostWindowId(win);
|
|
82
|
+
if (pending === null)
|
|
83
|
+
return;
|
|
84
|
+
void pending.then((windowId) => {
|
|
85
|
+
if (windowId === null)
|
|
110
86
|
return;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
87
|
+
this.nativeIds.set(win, windowId);
|
|
88
|
+
this.scheduleRefresh();
|
|
89
|
+
}, (error) => this.log.warn('window id could not be read; the display owner stays unresolved', error));
|
|
90
|
+
}
|
|
91
|
+
isWindowFocused(win) {
|
|
92
|
+
if (this.focusedNativeWindowId === null)
|
|
93
|
+
return Boolean(win.document?.hasFocus());
|
|
94
|
+
if (win === getMainWindow().window)
|
|
95
|
+
return this.mainNativeWindowId !== 0 && this.focusedNativeWindowId === this.mainNativeWindowId;
|
|
96
|
+
return this.nativeIds.get(win) === this.focusedNativeWindowId;
|
|
97
|
+
}
|
|
98
|
+
resolveOwner() {
|
|
99
|
+
const live = this.hosts.filter(({ win }) => !win.closed);
|
|
100
|
+
return live.find(({ win }) => this.isWindowFocused(win))?.win ?? live[0]?.win ?? null;
|
|
101
|
+
}
|
|
102
|
+
scheduleRefresh() {
|
|
103
|
+
if (this.pendingRefresh !== undefined)
|
|
104
|
+
return;
|
|
105
|
+
this.pendingRefresh = setTimeout(() => {
|
|
106
|
+
this.pendingRefresh = undefined;
|
|
107
|
+
this.setOwnerWindow(() => this.resolveOwner());
|
|
108
|
+
}, 0);
|
|
109
|
+
}
|
|
110
|
+
cancelRefresh() {
|
|
111
|
+
if (this.pendingRefresh === undefined)
|
|
112
|
+
return;
|
|
113
|
+
clearTimeout(this.pendingRefresh);
|
|
114
|
+
this.pendingRefresh = undefined;
|
|
115
|
+
}
|
|
125
116
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { createEffect, createSignal, onMount, onCleanup, } from 'solid-js';
|
|
2
2
|
import { useKitHost } from '../host/kitHost';
|
|
3
|
-
import { registerDisplayHost } from '../_internal/platform/window/displayOwner';
|
|
4
3
|
import { modalBackgroundExemption } from '../overlay/backgroundInert';
|
|
5
4
|
import styles from './AriaAnnouncer.module.css.js';
|
|
6
5
|
export const AriaAnnouncer = (props) => {
|
|
7
6
|
let root;
|
|
8
7
|
const [politeText, setPoliteText] = createSignal('');
|
|
9
8
|
const [assertiveText, setAssertiveText] = createSignal('');
|
|
10
|
-
const { announcer } = useKitHost();
|
|
9
|
+
const { announcer, displayOwner } = useKitHost();
|
|
11
10
|
onMount(() => {
|
|
12
11
|
const win = root.ownerDocument.defaultView;
|
|
13
12
|
if (!win)
|
|
14
13
|
return;
|
|
15
|
-
const registration =
|
|
14
|
+
const registration = displayOwner.register(win);
|
|
16
15
|
let debounceTimer;
|
|
17
16
|
createEffect(() => {
|
|
18
17
|
if (registration.ownsDisplay())
|
|
@@ -22,7 +22,7 @@ export function createGuardedListLoader(options) {
|
|
|
22
22
|
if (requestId !== latestRequestId)
|
|
23
23
|
return;
|
|
24
24
|
setRows([]);
|
|
25
|
-
setError(readFailureText(caught, options.fallbackMessage()));
|
|
25
|
+
setError(readFailureText(options.errorText, caught, options.fallbackMessage()));
|
|
26
26
|
}
|
|
27
27
|
finally {
|
|
28
28
|
if (requestId === latestRequestId)
|
|
@@ -6,7 +6,7 @@ import { VpCheck } from '@vokril/icons';
|
|
|
6
6
|
import { VpChevronRight } from '@vokril/icons';
|
|
7
7
|
import { OverlayScrollArea } from '../../overlay/OverlayScrollArea';
|
|
8
8
|
import { isTypeAheadKey, nextTypeAheadBuffer, findTypeAheadIndex, } from './menuTypeAhead';
|
|
9
|
-
import {
|
|
9
|
+
import { useKitHost } from '../../host/kitHost';
|
|
10
10
|
import { isRegisteredActionId } from '../../_internal/platform/menu/actions';
|
|
11
11
|
import { t } from '../../i18n/i18n';
|
|
12
12
|
import styles from './Menu.module.css.js';
|
|
@@ -15,6 +15,7 @@ const VIEWPORT_PADDING = 8;
|
|
|
15
15
|
const SUBMENU_HOVER_DELAY = 80;
|
|
16
16
|
const SUBMENU_CLOSE_DELAY = 160;
|
|
17
17
|
export function MenuPanel(props) {
|
|
18
|
+
const { menuFavorites } = useKitHost();
|
|
18
19
|
const [submenuId, setSubmenuId] = createSignal(null);
|
|
19
20
|
const [submenuAnchor, setSubmenuAnchor] = createSignal(null);
|
|
20
21
|
const [focusedIndex, setFocusedIndex] = createSignal(-1);
|
|
@@ -116,18 +117,17 @@ export function MenuPanel(props) {
|
|
|
116
117
|
props.onItemActivate?.();
|
|
117
118
|
entry.onSelect();
|
|
118
119
|
};
|
|
119
|
-
const isPinnableActionId = (id) => isRegisteredActionId(id);
|
|
120
120
|
const openFavoriteContext = (event, entry) => {
|
|
121
|
-
|
|
121
|
+
const actionId = entry.id;
|
|
122
|
+
if (!isRegisteredActionId(actionId))
|
|
122
123
|
return;
|
|
123
124
|
event.preventDefault();
|
|
124
125
|
event.stopPropagation();
|
|
125
|
-
const actionId = entry.id;
|
|
126
126
|
setFavoriteCtx({
|
|
127
127
|
left: event.clientX,
|
|
128
128
|
top: event.clientY,
|
|
129
129
|
actionId,
|
|
130
|
-
isPinned:
|
|
130
|
+
isPinned: menuFavorites.has(actionId),
|
|
131
131
|
});
|
|
132
132
|
};
|
|
133
133
|
const togglePinFavorite = () => {
|
|
@@ -135,10 +135,10 @@ export function MenuPanel(props) {
|
|
|
135
135
|
if (!ctx)
|
|
136
136
|
return;
|
|
137
137
|
if (ctx.isPinned) {
|
|
138
|
-
|
|
138
|
+
menuFavorites.remove(ctx.actionId);
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
|
|
141
|
+
menuFavorites.add(ctx.actionId);
|
|
142
142
|
}
|
|
143
143
|
setFavoriteCtx(null);
|
|
144
144
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { createElement } from '../_internal/platform/window/mainRealmDom';
|
|
2
2
|
import { ErrorBoundary, onMount, createSignal } from 'solid-js';
|
|
3
|
-
import { errorText } from '../_internal/contract/hostErrorText';
|
|
4
3
|
import { Button } from '../forms/Button';
|
|
5
4
|
import { t } from '../i18n/i18n';
|
|
6
5
|
import { toErrorMessage } from '../_internal/base/errorMessage';
|
|
7
|
-
import {
|
|
6
|
+
import { useKitHost } from '../host/kitHost';
|
|
8
7
|
import { addBreadcrumb } from '../_internal/base/errors/breadcrumbs';
|
|
9
8
|
import { errorHandler } from '../_internal/base/errors/errorHandler';
|
|
10
9
|
import { generateDiagnosticReport } from '../_internal/platform/errors/diagnosticReport';
|
|
11
10
|
import { getActiveWindow } from '../_internal/app/windows/window/windowRegistry';
|
|
12
11
|
import styles from './ErrorBoundary.module.css.js';
|
|
13
12
|
import { bestEffortFailed } from '../_internal/base/bestEffort';
|
|
14
|
-
const
|
|
13
|
+
const LOG_TAG = 'UI.ErrorBoundary';
|
|
15
14
|
async function copyToClipboard(text) {
|
|
16
15
|
try {
|
|
17
16
|
const activeWin = getActiveWindow();
|
|
@@ -43,6 +42,7 @@ async function copyToClipboard(text) {
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
function FallbackBoundaryHost(props) {
|
|
45
|
+
const log = useKitHost().log.withTag(LOG_TAG);
|
|
46
46
|
onMount(() => {
|
|
47
47
|
addBreadcrumb({
|
|
48
48
|
category: 'ui',
|
|
@@ -59,6 +59,8 @@ function FallbackBoundaryHost(props) {
|
|
|
59
59
|
return props.children;
|
|
60
60
|
}
|
|
61
61
|
function DefaultErrorFallback(props) {
|
|
62
|
+
const host = useKitHost();
|
|
63
|
+
const log = host.log.withTag(LOG_TAG);
|
|
62
64
|
const [copied, setCopied] = createSignal(false);
|
|
63
65
|
onMount(() => {
|
|
64
66
|
addBreadcrumb({
|
|
@@ -93,6 +95,7 @@ function DefaultErrorFallback(props) {
|
|
|
93
95
|
const copyDiagnostic = async () => {
|
|
94
96
|
try {
|
|
95
97
|
const report = generateDiagnosticReport(props.error, {
|
|
98
|
+
appName: host.appName,
|
|
96
99
|
context: { label: props.label, retryCount: props.retryCount },
|
|
97
100
|
});
|
|
98
101
|
const ok = await copyToClipboard(report);
|
|
@@ -120,7 +123,7 @@ function DefaultErrorFallback(props) {
|
|
|
120
123
|
: t('Something went wrong.')}
|
|
121
124
|
</span>
|
|
122
125
|
<span class={styles.detail}>
|
|
123
|
-
{
|
|
126
|
+
{host.errorPresenter.text(props.error, t('Unknown error'))}
|
|
124
127
|
</span>
|
|
125
128
|
<div class={styles.actions}>
|
|
126
129
|
<Button size="sm" variant="secondary" onClick={retry}>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Show, createSignal, onCleanup, onMount, } from 'solid-js';
|
|
2
2
|
import { getActiveLanguageId } from '../_internal/platform/settings/descriptors/language';
|
|
3
3
|
import { SPLASH, pickSplashLang } from '../_internal/platform/splashMessages';
|
|
4
|
-
import { getAppName } from '../_internal/contract/appName';
|
|
5
4
|
import styles from './Loader.module.css.js';
|
|
6
5
|
export const Loader = (props) => {
|
|
7
6
|
const [message, setMessage] = createSignal('');
|
|
@@ -11,7 +10,7 @@ export const Loader = (props) => {
|
|
|
11
10
|
return;
|
|
12
11
|
}
|
|
13
12
|
const lang = pickSplashLang(getActiveLanguageId());
|
|
14
|
-
const app =
|
|
13
|
+
const app = props.appName?.trim() ?? '';
|
|
15
14
|
const boot = (props.bootMessages ?? SPLASH[lang].boot).flatMap((line) => line.includes('{app}') ? (app ? [line.replace('{app}', app)] : []) : [line]);
|
|
16
15
|
const eggs = SPLASH[lang].eggs;
|
|
17
16
|
let idx = 0;
|