@vokril/ui-solid 0.9.3 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/README.md +110 -31
- package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
- package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-CVyqzT7-.js} +5 -5
- package/dist/{Button-BZWXPn8y.js → Button-BiKPB3cH.js} +2 -2
- package/dist/{Button-X8QR6llv.cjs → Button-Nx7byQZc.cjs} +1 -1
- package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
- package/dist/CommandPalette-CAH08DGN.js +4013 -0
- package/dist/{CopyButton-D3dIRRnn.js → CopyButton-BF7L1TCO.js} +1 -1
- package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
- package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
- package/dist/{DateRangePicker-BcqoUao4.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-9tjEtmqt.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
- package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-Df6uIUpJ.js} +4 -4
- package/dist/{Input-BEnk4FCF.cjs → Input-CZruORyy.cjs} +1 -1
- package/dist/{Input-PZ5wRvPx.js → Input-DkPhsdfk.js} +2 -2
- package/dist/Modal-CQG8l4x7.cjs +1 -0
- package/dist/{Modal-CsiV55WW.js → Modal-CUPe98-o.js} +5 -5
- package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
- package/dist/{PageSkeleton-CyTXvZYm.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-C6KL7e42.js → SearchableSelect-C01brsF0.js} +5 -5
- package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
- package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
- package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
- package/dist/{Stepper-BxXwbDq4.js → Stepper-38IAEOyT.js} +3 -3
- package/dist/{Stepper-DoJFCfC7.cjs → Stepper-CtaTpnQu.cjs} +1 -1
- package/dist/{Textarea-BUxibzkR.js → Textarea-B5QqqKnI.js} +1 -1
- package/dist/{Textarea-BunKEY68.cjs → Textarea-CeAGf08O.cjs} +1 -1
- package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
- package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
- package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
- package/dist/{ToggleButton-BfjXnp-P.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 +27 -14
- package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +27 -14
- 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/a11y/announcerService.d.cts +9 -13
- package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
- 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 +0 -5
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
- 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-B1MaujhY.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-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +15 -16
- package/dist/host/index.d.ts +15 -16
- package/dist/host/index.js +56 -90
- package/dist/host/kitHost.d.cts +65 -0
- package/dist/host/kitHost.d.ts +65 -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/{i18n-CYq-dVvv.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 +973 -992
- 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/kitHost-BfJExE1G.cjs +1 -0
- package/dist/kitHost-CVAEi9sF.js +23 -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 +7 -12
- package/dist/notifications/index.d.ts +7 -12
- package/dist/notifications/index.js +64 -98
- 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 +20 -10
- package/dist/overlay/ConfirmDialog.d.ts +20 -10
- package/dist/overlay/DangerousActionDialog.d.cts +2 -2
- package/dist/overlay/DangerousActionDialog.d.ts +2 -2
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
- package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -3
- package/dist/overlay/index.d.ts +2 -3
- package/dist/overlay/index.js +114 -119
- package/dist/pageTourState-BcBF8w89.js +516 -0
- package/dist/pageTourState-CrbEU7QW.cjs +5 -0
- package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-B2s_rp00.js} +3 -3
- package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
- package/dist/server/{Button-BhqhjFpY.js → Button-Ck03cbUs.js} +1 -1
- package/dist/server/{Button-CFOM8pOv.cjs → Button-DWFMF5y0.cjs} +1 -1
- package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
- package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
- package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
- package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-UvtFwOtA.js} +1 -1
- package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
- package/dist/server/{DateRangePicker-QV6U1adB.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-BEACrT09.cjs → IconPicker-9DfOxql6.cjs} +1 -1
- package/dist/server/{IconPicker-at_coEi6.js → IconPicker-N0wub1Aj.js} +4 -4
- package/dist/server/Modal-D__GTo-n.cjs +1 -0
- package/dist/server/{Modal-usxkqDtK.js → Modal-DeQjfpkG.js} +3 -3
- package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-C41pXOcr.js} +457 -455
- package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
- package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-CEcuBnge.js} +2 -2
- package/dist/server/{SearchableSelect-nMecJAYS.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-DvoJXLcM.cjs → Stepper--pusyxso.cjs} +1 -1
- package/dist/server/{Stepper-B8hDDujj.js → Stepper-B_eL85hK.js} +1 -1
- package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-aSHquoBv.js} +1 -1
- package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
- package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
- package/dist/server/{ToggleButton--G4HCOTD.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-CW_FVfq2.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-DWkJAggS.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-nWNVX3JG.js +126 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +7 -7
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
- package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +56 -90
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
- package/dist/server/i18n-DZ0JlZal.cjs +4 -0
- package/dist/server/{index-BFT4Uh9D.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 +1022 -1041
- package/dist/server/kitHost-BfJExE1G.cjs +1 -0
- package/dist/server/kitHost-CVAEi9sF.js +23 -0
- 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 -97
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +109 -114
- 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/{notification-DFbp3S_f.js → server/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 +11 -29
- 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/a11y/announcerService.js +0 -24
- 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 +5 -6
- 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 +9 -16
- package/dist/solid/host/kitHost.jsx +15 -0
- 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 -103
- 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 +4 -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 +2 -54
- 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-GV0L9lXH.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/{server/notification-DFbp3S_f.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-DToM9pUp.cjs +0 -2
- package/dist/CommandPalette-ZCFlLqrP.js +0 -3950
- package/dist/DateRangePicker-DHI3SNna.cjs +0 -9
- package/dist/GuidedTour-B-BXe3ul.js +0 -11214
- package/dist/GuidedTour-c7XiyOmE.cjs +0 -21
- package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/Modal-DpDHzCWT.cjs +0 -1
- package/dist/PageSkeleton-DzKYTuNy.cjs +0 -30
- package/dist/Progress-B5YmNeyU.js +0 -56
- package/dist/Progress-BNy0wsJl.cjs +0 -1
- package/dist/StatusBarNotificationBell-CZmym2gV.js +0 -2140
- package/dist/StatusBarNotificationBell-DG8Pe6R-.cjs +0 -4
- package/dist/ToggleButton-Bjxv8KGH.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/instantiation/common/descriptors.d.cts +0 -9
- package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
- package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
- package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
- package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
- 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/announcerService-B7yicxvU.js +0 -97
- package/dist/announcerService-D_pFE24a.cjs +0 -1
- package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
- package/dist/catalogNotify-CIhFuJ1b.js +0 -1210
- package/dist/createResizableSidebar-2TgiFZp1.js +0 -461
- package/dist/createResizableSidebar-pDoO-7q9.cjs +0 -1
- package/dist/defineSettings-By5ell8e.js +0 -391
- package/dist/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/descriptor-lw1fA9mi.cjs +0 -1
- package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/displayOwner-B_ezJv-O.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-B150daiS.js +0 -133
- package/dist/focusModality-PPfeW05D.cjs +0 -1
- package/dist/format-Dih0q9gm.cjs +0 -1
- package/dist/format-UGlMj0HW.js +0 -298
- package/dist/i18n-B9ccWgcR.cjs +0 -4
- package/dist/keys-BeeC5_RZ.cjs +0 -1
- package/dist/mainRealmDom-COGBiX78.js +0 -102
- package/dist/mainRealmDom-DijAgSXt.cjs +0 -1
- package/dist/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/notification-CrxHMXsk.cjs +0 -1
- package/dist/notificationSuppressions-CBIJ4bC4.js +0 -430
- package/dist/notificationSuppressions-DFbFpayS.cjs +0 -1
- 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-BhUd3K9p.js +0 -65
- package/dist/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
- package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
- package/dist/server/DateRangePicker-sX2m4194.cjs +0 -9
- package/dist/server/GuidedTour-BhJGkoPa.js +0 -10981
- package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
- package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
- package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
- package/dist/server/Modal-CAVr4DU6.cjs +0 -1
- package/dist/server/PageSkeleton-KwYRrZua.cjs +0 -30
- package/dist/server/Progress-CRbj6nEy.cjs +0 -1
- package/dist/server/Progress-nsDy6clG.js +0 -41
- package/dist/server/StatusBarNotificationBell-BJyGqDCX.cjs +0 -4
- package/dist/server/StatusBarNotificationBell-C9MCuKT6.js +0 -1974
- package/dist/server/ToggleButton-DTI2HB97.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/announcerService-B7yicxvU.js +0 -97
- package/dist/server/announcerService-D_pFE24a.cjs +0 -1
- package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
- package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
- package/dist/server/catalogNotify-mUcKuUmZ.js +0 -1248
- package/dist/server/createResizableSidebar-CCrAgu_K.js +0 -299
- package/dist/server/createResizableSidebar-DGd-3PrM.cjs +0 -1
- package/dist/server/defineSettings-By5ell8e.js +0 -391
- package/dist/server/defineSettings-DRv1FRbv.cjs +0 -1
- package/dist/server/descriptor-IJq9wdXK.cjs +0 -1
- package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
- package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
- package/dist/server/displayOwner-BNw2Foa_.cjs +0 -1
- package/dist/server/displayOwner-B_ezJv-O.js +0 -75
- package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
- package/dist/server/focusModality-DmOZptla.js +0 -124
- package/dist/server/format-x-8syaS2.cjs +0 -1
- package/dist/server/i18n-B9ccWgcR.cjs +0 -4
- package/dist/server/index-Xlas73iC.cjs +0 -1
- package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
- package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
- package/dist/server/menuFavorites-Db1DpHX6.js +0 -69
- package/dist/server/menuFavorites-EluLLTfi.cjs +0 -1
- package/dist/server/notification-CrxHMXsk.cjs +0 -1
- package/dist/server/notificationSuppressions-D7FZmJy8.cjs +0 -1
- package/dist/server/notificationSuppressions-DkrUMXHx.js +0 -391
- package/dist/server/pageTourState-CIr8ockR.js +0 -92
- package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
- package/dist/server/preferencesCache-BhUd3K9p.js +0 -65
- package/dist/server/preferencesCache-DJPCTPYx.cjs +0 -1
- package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
- package/dist/server/rendererLogging-Edo4ALXU.js +0 -822
- package/dist/server/settingsSearchContributor-DZj7Wc8l.cjs +0 -1
- package/dist/server/settingsSearchContributor-DeMn-njw.js +0 -199
- 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-C-UJc7Xc.js +0 -199
- package/dist/settingsSearchContributor-Du0SDpJt.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/instantiation/common/descriptors.js +0 -10
- package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
- package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
- 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-y5YP3tsJ.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,329 +0,0 @@
|
|
|
1
|
-
import { getLogger } from '../logging/rendererLogging';
|
|
2
|
-
const log = getLogger('PreferencesCache');
|
|
3
|
-
const EMPTY_STATE = () => ({
|
|
4
|
-
workspacePreferences: {},
|
|
5
|
-
sshState: {},
|
|
6
|
-
uiLayoutState: {},
|
|
7
|
-
});
|
|
8
|
-
let _state = EMPTY_STATE();
|
|
9
|
-
let _hydrated = false;
|
|
10
|
-
export function hydratePreferencesCache(settings) {
|
|
11
|
-
_state = {
|
|
12
|
-
workspacePreferences: settings.workspacePreferences
|
|
13
|
-
? { ...settings.workspacePreferences }
|
|
14
|
-
: {},
|
|
15
|
-
sshState: settings.sshState ? { ...settings.sshState } : {},
|
|
16
|
-
uiLayoutState: settings.uiLayoutState ? { ...settings.uiLayoutState } : {},
|
|
17
|
-
};
|
|
18
|
-
_hydrated = true;
|
|
19
|
-
}
|
|
20
|
-
export function getConnectionPreferences(connectionId) {
|
|
21
|
-
if (!connectionId)
|
|
22
|
-
return {};
|
|
23
|
-
return _state.workspacePreferences[connectionId] ?? {};
|
|
24
|
-
}
|
|
25
|
-
const CONNECTION_PREFERENCES_CHANGE_EVENT = 'app-connection-preferences-change';
|
|
26
|
-
export function getConnectionPreferencesChangeEventName() {
|
|
27
|
-
return CONNECTION_PREFERENCES_CHANGE_EVENT;
|
|
28
|
-
}
|
|
29
|
-
function dispatchConnectionPreferencesChange(connectionId) {
|
|
30
|
-
if (typeof window === 'undefined')
|
|
31
|
-
return;
|
|
32
|
-
window.dispatchEvent(new CustomEvent(CONNECTION_PREFERENCES_CHANGE_EVENT, {
|
|
33
|
-
detail: { connectionId },
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
export function patchConnectionPreferences(connectionId, patch) {
|
|
37
|
-
const current = _state.workspacePreferences[connectionId] ?? {};
|
|
38
|
-
_state = {
|
|
39
|
-
..._state,
|
|
40
|
-
workspacePreferences: {
|
|
41
|
-
..._state.workspacePreferences,
|
|
42
|
-
[connectionId]: { ...current, ...patch },
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
schedulePersist();
|
|
46
|
-
dispatchConnectionPreferencesChange(connectionId);
|
|
47
|
-
}
|
|
48
|
-
export function getConnectionsWithExecutionOverrides() {
|
|
49
|
-
return Object.entries(_state.workspacePreferences)
|
|
50
|
-
.filter(([, prefs]) => {
|
|
51
|
-
const ov = prefs.executionOverrides;
|
|
52
|
-
return (!!ov &&
|
|
53
|
-
(ov.safeMode !== undefined ||
|
|
54
|
-
ov.confirmDestructive !== undefined ||
|
|
55
|
-
ov.stopOnError !== undefined));
|
|
56
|
-
})
|
|
57
|
-
.map(([connectionId]) => connectionId);
|
|
58
|
-
}
|
|
59
|
-
export function getSshState() {
|
|
60
|
-
return _state.sshState;
|
|
61
|
-
}
|
|
62
|
-
export function patchSshState(patch) {
|
|
63
|
-
_state = { ..._state, sshState: { ..._state.sshState, ...patch } };
|
|
64
|
-
schedulePersist();
|
|
65
|
-
}
|
|
66
|
-
export function setSshRefreshForInstance(instanceId, unit, setting) {
|
|
67
|
-
const all = { ...(_state.sshState.refreshByInstance ?? {}) };
|
|
68
|
-
all[String(instanceId)] = {
|
|
69
|
-
...(all[String(instanceId)] ?? {}),
|
|
70
|
-
[unit]: setting,
|
|
71
|
-
};
|
|
72
|
-
_state = {
|
|
73
|
-
..._state,
|
|
74
|
-
sshState: { ..._state.sshState, refreshByInstance: all },
|
|
75
|
-
};
|
|
76
|
-
schedulePersist();
|
|
77
|
-
}
|
|
78
|
-
export function setSshProcessColumnsForInstance(instanceId, columns) {
|
|
79
|
-
const all = { ...(_state.sshState.processColumnsByInstance ?? {}) };
|
|
80
|
-
all[String(instanceId)] = [...columns];
|
|
81
|
-
_state = {
|
|
82
|
-
..._state,
|
|
83
|
-
sshState: { ..._state.sshState, processColumnsByInstance: all },
|
|
84
|
-
};
|
|
85
|
-
schedulePersist();
|
|
86
|
-
}
|
|
87
|
-
const SSH_HISTORY_CHANGE_EVENT = 'app-ssh-history-change';
|
|
88
|
-
const MAX_SSH_HISTORY_ENTRIES = 30;
|
|
89
|
-
export function getSshHistoryChangeEventName() {
|
|
90
|
-
return SSH_HISTORY_CHANGE_EVENT;
|
|
91
|
-
}
|
|
92
|
-
function dispatchSshHistoryChange() {
|
|
93
|
-
if (typeof window === 'undefined')
|
|
94
|
-
return;
|
|
95
|
-
window.dispatchEvent(new CustomEvent(SSH_HISTORY_CHANGE_EVENT));
|
|
96
|
-
}
|
|
97
|
-
export function sshHistoryDedupKey(username, host, port, bastionHost) {
|
|
98
|
-
const base = `${username.trim()}@${host.trim()}:${port}`;
|
|
99
|
-
return bastionHost?.trim() ? `${base} via ${bastionHost.trim()}` : base;
|
|
100
|
-
}
|
|
101
|
-
export function getSshHistory() {
|
|
102
|
-
return _state.sshState.history ? [..._state.sshState.history] : [];
|
|
103
|
-
}
|
|
104
|
-
export function recordSshHistory(entry) {
|
|
105
|
-
const targetKey = sshHistoryDedupKey(entry.username, entry.host, entry.port, entry.bastionHost);
|
|
106
|
-
const existingList = _state.sshState.history ?? [];
|
|
107
|
-
const existing = existingList.find((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) ===
|
|
108
|
-
targetKey);
|
|
109
|
-
const resolvedLabel = entry.label ?? existing?.label;
|
|
110
|
-
const newEntry = {
|
|
111
|
-
host: entry.host,
|
|
112
|
-
port: entry.port,
|
|
113
|
-
username: entry.username,
|
|
114
|
-
authMethod: entry.authMethod,
|
|
115
|
-
...(entry.bastionHost ? { bastionHost: entry.bastionHost } : {}),
|
|
116
|
-
...(typeof resolvedLabel === 'string' && resolvedLabel.length > 0
|
|
117
|
-
? { label: resolvedLabel }
|
|
118
|
-
: {}),
|
|
119
|
-
lastConnectedAt: entry.lastConnectedAt ?? Date.now(),
|
|
120
|
-
useCount: existing ? (existing.useCount || 0) + 1 : (entry.useCount ?? 1),
|
|
121
|
-
};
|
|
122
|
-
const filtered = existingList.filter((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) !==
|
|
123
|
-
targetKey);
|
|
124
|
-
const history = [newEntry, ...filtered].slice(0, MAX_SSH_HISTORY_ENTRIES);
|
|
125
|
-
_state = {
|
|
126
|
-
..._state,
|
|
127
|
-
sshState: {
|
|
128
|
-
..._state.sshState,
|
|
129
|
-
history,
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
schedulePersist();
|
|
133
|
-
dispatchSshHistoryChange();
|
|
134
|
-
}
|
|
135
|
-
export function removeSshHistoryEntry(username, host, port, bastionHost) {
|
|
136
|
-
const targetKey = sshHistoryDedupKey(username, host, port, bastionHost);
|
|
137
|
-
const existingList = _state.sshState.history ?? [];
|
|
138
|
-
const history = existingList.filter((e) => sshHistoryDedupKey(e.username, e.host, e.port, e.bastionHost) !==
|
|
139
|
-
targetKey);
|
|
140
|
-
_state = {
|
|
141
|
-
..._state,
|
|
142
|
-
sshState: {
|
|
143
|
-
..._state.sshState,
|
|
144
|
-
history,
|
|
145
|
-
},
|
|
146
|
-
};
|
|
147
|
-
schedulePersist();
|
|
148
|
-
dispatchSshHistoryChange();
|
|
149
|
-
}
|
|
150
|
-
export function clearSshHistory() {
|
|
151
|
-
_state = {
|
|
152
|
-
..._state,
|
|
153
|
-
sshState: {
|
|
154
|
-
..._state.sshState,
|
|
155
|
-
history: [],
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
schedulePersist();
|
|
159
|
-
dispatchSshHistoryChange();
|
|
160
|
-
}
|
|
161
|
-
let layoutHost = null;
|
|
162
|
-
export function provideLayoutPreferences(next) {
|
|
163
|
-
layoutHost = next;
|
|
164
|
-
}
|
|
165
|
-
export function getUiLayout() {
|
|
166
|
-
if (layoutHost)
|
|
167
|
-
return layoutHost.getUiLayout();
|
|
168
|
-
return _state.uiLayoutState;
|
|
169
|
-
}
|
|
170
|
-
const SIDEBAR_LAYOUT_CHANGE_EVENT = 'app-sidebar-layout-change';
|
|
171
|
-
export function getSidebarLayoutChangeEventName() {
|
|
172
|
-
return SIDEBAR_LAYOUT_CHANGE_EVENT;
|
|
173
|
-
}
|
|
174
|
-
function dispatchSidebarLayoutChange(key, kind) {
|
|
175
|
-
if (typeof window === 'undefined')
|
|
176
|
-
return;
|
|
177
|
-
window.dispatchEvent(new CustomEvent(SIDEBAR_LAYOUT_CHANGE_EVENT, { detail: { key, kind } }));
|
|
178
|
-
}
|
|
179
|
-
export function setSidebarWidth(key, width) {
|
|
180
|
-
if (layoutHost) {
|
|
181
|
-
layoutHost.setSidebarWidth(key, width);
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const widths = { ...(_state.uiLayoutState.sidebarWidths ?? {}) };
|
|
185
|
-
widths[key] = width;
|
|
186
|
-
_state = {
|
|
187
|
-
..._state,
|
|
188
|
-
uiLayoutState: { ..._state.uiLayoutState, sidebarWidths: widths },
|
|
189
|
-
};
|
|
190
|
-
schedulePersist();
|
|
191
|
-
dispatchSidebarLayoutChange(key, 'width');
|
|
192
|
-
}
|
|
193
|
-
export function setSidebarCollapsed(key, collapsed) {
|
|
194
|
-
if (layoutHost) {
|
|
195
|
-
layoutHost.setSidebarCollapsed(key, collapsed);
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
const map = { ...(_state.uiLayoutState.sidebarCollapsed ?? {}) };
|
|
199
|
-
map[key] = collapsed;
|
|
200
|
-
_state = {
|
|
201
|
-
..._state,
|
|
202
|
-
uiLayoutState: { ..._state.uiLayoutState, sidebarCollapsed: map },
|
|
203
|
-
};
|
|
204
|
-
schedulePersist();
|
|
205
|
-
dispatchSidebarLayoutChange(key, 'collapsed');
|
|
206
|
-
}
|
|
207
|
-
export function resetSidebarLayout(widthKey, collapsedKey) {
|
|
208
|
-
let next = _state.uiLayoutState;
|
|
209
|
-
let mutated = false;
|
|
210
|
-
if (next.sidebarWidths && widthKey in next.sidebarWidths) {
|
|
211
|
-
const widths = { ...next.sidebarWidths };
|
|
212
|
-
delete widths[widthKey];
|
|
213
|
-
next = { ...next, sidebarWidths: widths };
|
|
214
|
-
mutated = true;
|
|
215
|
-
}
|
|
216
|
-
if (next.sidebarCollapsed && collapsedKey in next.sidebarCollapsed) {
|
|
217
|
-
const map = { ...next.sidebarCollapsed };
|
|
218
|
-
delete map[collapsedKey];
|
|
219
|
-
next = { ...next, sidebarCollapsed: map };
|
|
220
|
-
mutated = true;
|
|
221
|
-
}
|
|
222
|
-
if (!mutated)
|
|
223
|
-
return;
|
|
224
|
-
_state = { ..._state, uiLayoutState: next };
|
|
225
|
-
schedulePersist();
|
|
226
|
-
dispatchSidebarLayoutChange(widthKey, 'reset');
|
|
227
|
-
if (widthKey !== collapsedKey)
|
|
228
|
-
dispatchSidebarLayoutChange(collapsedKey, 'reset');
|
|
229
|
-
}
|
|
230
|
-
const COLUMN_VISIBILITY_CHANGE_EVENT = 'app-column-visibility-change';
|
|
231
|
-
export function getColumnVisibilityChangeEventName() {
|
|
232
|
-
return COLUMN_VISIBILITY_CHANGE_EVENT;
|
|
233
|
-
}
|
|
234
|
-
function dispatchColumnVisibilityChange(key) {
|
|
235
|
-
if (typeof window === 'undefined')
|
|
236
|
-
return;
|
|
237
|
-
window.dispatchEvent(new CustomEvent(COLUMN_VISIBILITY_CHANGE_EVENT, { detail: { key } }));
|
|
238
|
-
}
|
|
239
|
-
export function setColumnVisibility(key, hidden) {
|
|
240
|
-
const map = { ...(_state.uiLayoutState.columnVisibility ?? {}) };
|
|
241
|
-
map[key] = [...hidden];
|
|
242
|
-
_state = {
|
|
243
|
-
..._state,
|
|
244
|
-
uiLayoutState: { ..._state.uiLayoutState, columnVisibility: map },
|
|
245
|
-
};
|
|
246
|
-
schedulePersist();
|
|
247
|
-
dispatchColumnVisibilityChange(key);
|
|
248
|
-
}
|
|
249
|
-
export function getTableColumnWidths(key) {
|
|
250
|
-
const widths = _state.uiLayoutState.tableColumnWidths?.[key];
|
|
251
|
-
return widths && widths.length > 0 ? [...widths] : null;
|
|
252
|
-
}
|
|
253
|
-
export function setTableColumnWidths(key, widths) {
|
|
254
|
-
if (widths.length === 0)
|
|
255
|
-
return;
|
|
256
|
-
const map = { ...(_state.uiLayoutState.tableColumnWidths ?? {}) };
|
|
257
|
-
map[key] = [...widths];
|
|
258
|
-
_state = {
|
|
259
|
-
..._state,
|
|
260
|
-
uiLayoutState: { ..._state.uiLayoutState, tableColumnWidths: map },
|
|
261
|
-
};
|
|
262
|
-
schedulePersist();
|
|
263
|
-
}
|
|
264
|
-
export function resetColumnVisibility(key) {
|
|
265
|
-
const existing = _state.uiLayoutState.columnVisibility;
|
|
266
|
-
if (!existing || !(key in existing))
|
|
267
|
-
return;
|
|
268
|
-
const map = { ...existing };
|
|
269
|
-
delete map[key];
|
|
270
|
-
_state = {
|
|
271
|
-
..._state,
|
|
272
|
-
uiLayoutState: { ..._state.uiLayoutState, columnVisibility: map },
|
|
273
|
-
};
|
|
274
|
-
schedulePersist();
|
|
275
|
-
dispatchColumnVisibilityChange(key);
|
|
276
|
-
}
|
|
277
|
-
let _persistTimer = null;
|
|
278
|
-
const PERSIST_DEBOUNCE_MS = 250;
|
|
279
|
-
function schedulePersist() {
|
|
280
|
-
if (_persistTimer)
|
|
281
|
-
clearTimeout(_persistTimer);
|
|
282
|
-
_persistTimer = setTimeout(() => {
|
|
283
|
-
_persistTimer = null;
|
|
284
|
-
void flushPreferences();
|
|
285
|
-
}, PERSIST_DEBOUNCE_MS);
|
|
286
|
-
}
|
|
287
|
-
export async function flushPreferences() {
|
|
288
|
-
if (_persistTimer) {
|
|
289
|
-
clearTimeout(_persistTimer);
|
|
290
|
-
_persistTimer = null;
|
|
291
|
-
}
|
|
292
|
-
if (!_hydrated)
|
|
293
|
-
return;
|
|
294
|
-
try {
|
|
295
|
-
await _persist?.({
|
|
296
|
-
workspacePreferences: _state.workspacePreferences,
|
|
297
|
-
sshState: _state.sshState,
|
|
298
|
-
uiLayoutState: _state.uiLayoutState,
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
catch (err) {
|
|
302
|
-
log.error('flush failed', err);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
export async function flushPreferencesStrict() {
|
|
306
|
-
if (_persistTimer) {
|
|
307
|
-
clearTimeout(_persistTimer);
|
|
308
|
-
_persistTimer = null;
|
|
309
|
-
}
|
|
310
|
-
if (!_hydrated)
|
|
311
|
-
return;
|
|
312
|
-
await _persist?.({
|
|
313
|
-
workspacePreferences: _state.workspacePreferences,
|
|
314
|
-
sshState: _state.sshState,
|
|
315
|
-
uiLayoutState: _state.uiLayoutState,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
let _persist = null;
|
|
319
|
-
export function configurePreferencesPersistence(persist) {
|
|
320
|
-
_persist = persist;
|
|
321
|
-
}
|
|
322
|
-
export async function flushSshState() {
|
|
323
|
-
return flushPreferences();
|
|
324
|
-
}
|
|
325
|
-
if (typeof window !== 'undefined') {
|
|
326
|
-
window.addEventListener('beforeunload', () => {
|
|
327
|
-
void flushPreferences();
|
|
328
|
-
});
|
|
329
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { defineNotificationScenario } from '../_internal/contract/notificationCatalog';
|
|
2
|
-
import { preferenceNotSaved } from './preference.notifications';
|
|
3
|
-
export const preferenceNotificationSamples = [
|
|
4
|
-
defineNotificationScenario('preferences.write.not-saved', preferenceNotSaved, { cause: new Error('The settings store is read-only.') }),
|
|
5
|
-
];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { notifyFromCatalog } from '../_internal/contract/catalogNotify';
|
|
2
|
-
import { copyToClipboard_success_1, copyToClipboard_error_2, } from './notifications.notifications';
|
|
3
|
-
import { getActiveWindow } from '../_internal/app/windows/window/windowRegistry';
|
|
4
|
-
import { getLogger } from '../_internal/platform/logging/rendererLogging';
|
|
5
|
-
const log = getLogger('copyToClipboard');
|
|
6
|
-
export async function copyTextToClipboard(value, options) {
|
|
7
|
-
try {
|
|
8
|
-
await getActiveWindow().window.navigator.clipboard.writeText(value);
|
|
9
|
-
if (!options?.silentOnSuccess) {
|
|
10
|
-
notifyFromCatalog(copyToClipboard_success_1, options?.successMessage
|
|
11
|
-
? { successNotice: options.successMessage }
|
|
12
|
-
: {});
|
|
13
|
-
}
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
log.warn('clipboard write failed', error);
|
|
18
|
-
notifyFromCatalog(copyToClipboard_error_2, {});
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createSignal, onCleanup } from 'solid-js';
|
|
2
|
-
import { copyTextToClipboard } from './copyToClipboard';
|
|
3
|
-
export const COPY_FLASH_MS = 1500;
|
|
4
|
-
export function createCopyFlash() {
|
|
5
|
-
const [copied, setCopied] = createSignal(false);
|
|
6
|
-
let timer;
|
|
7
|
-
const stopTimer = () => {
|
|
8
|
-
if (timer !== undefined)
|
|
9
|
-
clearTimeout(timer);
|
|
10
|
-
timer = undefined;
|
|
11
|
-
};
|
|
12
|
-
onCleanup(stopTimer);
|
|
13
|
-
const copy = (text) => {
|
|
14
|
-
void copyTextToClipboard(text, { silentOnSuccess: true }).then((ok) => {
|
|
15
|
-
if (!ok)
|
|
16
|
-
return;
|
|
17
|
-
stopTimer();
|
|
18
|
-
setCopied(true);
|
|
19
|
-
timer = setTimeout(() => {
|
|
20
|
-
timer = undefined;
|
|
21
|
-
setCopied(false);
|
|
22
|
-
}, COPY_FLASH_MS);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
return { copied, copy };
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { registerDisplayHost as registerNotificationHost, } from '../_internal/platform/window/displayOwner';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const generateRepeaterEntryId = (prefix) => `${prefix}-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
2
|
-
export function buildNewNotificationRule(generateId = generateRepeaterEntryId) {
|
|
3
|
-
return {
|
|
4
|
-
id: generateId('rule'),
|
|
5
|
-
name: 'New rule',
|
|
6
|
-
enabled: true,
|
|
7
|
-
conditions: {},
|
|
8
|
-
actions: {},
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export function buildNewWebhook(generateId = generateRepeaterEntryId) {
|
|
12
|
-
return {
|
|
13
|
-
id: generateId('wh'),
|
|
14
|
-
name: 'New webhook',
|
|
15
|
-
type: 'generic',
|
|
16
|
-
url: '',
|
|
17
|
-
enabled: true,
|
|
18
|
-
filters: { severities: [], priorities: [], sources: [] },
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { defineNotificationScenario } from '../_internal/contract/notificationCatalog';
|
|
2
|
-
import { copyToClipboard_success_1, copyToClipboard_error_2, notificationReplayError, notificationReplayWarning, notificationReplaySuccess, notificationReplayInfo, notificationTimelineExported, notificationTimelineExportFailed, notificationSettingsUpdateFailed, errorActionFailed, } from './notifications.notifications';
|
|
3
|
-
export const notificationsNotificationSamples = [
|
|
4
|
-
defineNotificationScenario('notifications.copyToClipboard.success.1', copyToClipboard_success_1, { successNotice: 'Copied.' }),
|
|
5
|
-
defineNotificationScenario('notifications.copyToClipboard.error.2', copyToClipboard_error_2, {}),
|
|
6
|
-
defineNotificationScenario('notifications.timeline.replay.error', notificationReplayError, { timelineMessage: 'Unable to connect.', options: {} }),
|
|
7
|
-
defineNotificationScenario('notifications.timeline.replay.warning', notificationReplayWarning, { timelineMessage: 'Attention required.', options: {} }),
|
|
8
|
-
defineNotificationScenario('notifications.timeline.replay.success', notificationReplaySuccess, { timelineMessage: 'Operation completed.', options: {} }),
|
|
9
|
-
defineNotificationScenario('notifications.timeline.replay.info', notificationReplayInfo, { timelineMessage: 'Operation started.', options: {} }),
|
|
10
|
-
defineNotificationScenario('notifications.timeline.exported', notificationTimelineExported, { entryCount: 3 }),
|
|
11
|
-
defineNotificationScenario('notifications.timeline.export.failed', notificationTimelineExportFailed, { cause: new Error('Unknown error.') }),
|
|
12
|
-
defineNotificationScenario('notifications.errorAction.failed', errorActionFailed, { cause: new Error('The logs folder could not be opened.') }),
|
|
13
|
-
defineNotificationScenario('notifications.settings.update.failed', notificationSettingsUpdateFailed, { cause: new Error('Settings update failed.') }),
|
|
14
|
-
];
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
2
|
-
import { clearCompiledRuleRegexCache } from './notificationRules';
|
|
3
|
-
import { invalidateCustomSoundCache } from './customSoundCache';
|
|
4
|
-
import { refreshOsBadge } from './notificationTimeline';
|
|
5
|
-
let disposeActive = null;
|
|
6
|
-
export function startNotificationSettingsReactions() {
|
|
7
|
-
if (disposeActive)
|
|
8
|
-
return disposeActive;
|
|
9
|
-
if (typeof window === 'undefined')
|
|
10
|
-
return () => undefined;
|
|
11
|
-
const onSettingsChanged = () => {
|
|
12
|
-
clearCompiledRuleRegexCache();
|
|
13
|
-
invalidateCustomSoundCache();
|
|
14
|
-
refreshOsBadge();
|
|
15
|
-
};
|
|
16
|
-
window.addEventListener(notificationSettings.changeEvent, onSettingsChanged);
|
|
17
|
-
disposeActive = () => {
|
|
18
|
-
window.removeEventListener(notificationSettings.changeEvent, onSettingsChanged);
|
|
19
|
-
disposeActive = null;
|
|
20
|
-
};
|
|
21
|
-
return disposeActive;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NotificationHost as ToastHost } from '../notifications/NotificationHost';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var c = /* @__PURE__ */ ((n) => (n[n.APPLICATION = -1] = "APPLICATION", n[n.PROFILE = 0] = "PROFILE", n[n.WORKSPACE = 1] = "WORKSPACE", n[n.CONNECTION = 2] = "CONNECTION", n))(c || {}), O = /* @__PURE__ */ ((n) => (n[n.USER = 0] = "USER", n[n.MACHINE = 1] = "MACHINE", n))(O || {});
|
|
2
|
-
const e = {
|
|
3
|
-
application: -1,
|
|
4
|
-
profile: 0,
|
|
5
|
-
connection: 2,
|
|
6
|
-
workspace: 1
|
|
7
|
-
/* WORKSPACE */
|
|
8
|
-
};
|
|
9
|
-
function u() {
|
|
10
|
-
const n = /* @__PURE__ */ new Map();
|
|
11
|
-
return {
|
|
12
|
-
get: (r, t) => n.get(`${t}:${r}`),
|
|
13
|
-
store: (r, t, s) => {
|
|
14
|
-
n.set(`${s}:${r}`, t);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
let i = u();
|
|
19
|
-
function N(n) {
|
|
20
|
-
i = n ?? u();
|
|
21
|
-
}
|
|
22
|
-
function a() {
|
|
23
|
-
return i;
|
|
24
|
-
}
|
|
25
|
-
function C(n, r = 0) {
|
|
26
|
-
return {
|
|
27
|
-
read: (t) => {
|
|
28
|
-
try {
|
|
29
|
-
const s = i.get(n, e[t]);
|
|
30
|
-
return s === void 0 ? void 0 : JSON.parse(s);
|
|
31
|
-
} catch {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
write: async (t, s) => {
|
|
36
|
-
i.store(n, JSON.stringify(t), e[s], r);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
c as S,
|
|
42
|
-
O as a,
|
|
43
|
-
e as b,
|
|
44
|
-
N as c,
|
|
45
|
-
a as g,
|
|
46
|
-
C as s
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var c=(n=>(n[n.APPLICATION=-1]="APPLICATION",n[n.PROFILE=0]="PROFILE",n[n.WORKSPACE=1]="WORKSPACE",n[n.CONNECTION=2]="CONNECTION",n))(c||{}),u=(n=>(n[n.USER=0]="USER",n[n.MACHINE=1]="MACHINE",n))(u||{});const s={application:-1,profile:0,connection:2,workspace:1};function O(){const n=new Map;return{get:(r,t)=>n.get(`${t}:${r}`),store:(r,t,e)=>{n.set(`${e}:${r}`,t)}}}let i=O();function C(n){i=n??O()}function E(){return i}function N(n,r=0){return{read:t=>{try{const e=i.get(n,s[t]);return e===void 0?void 0:JSON.parse(e)}catch{return}},write:async(t,e)=>{i.store(n,JSON.stringify(t),s[e],r)}}}exports.SCOPE_MAP=s;exports.StorageScope=c;exports.StorageTarget=u;exports.configureSettingsBackend=C;exports.getSettingsBackend=E;exports.stateDbStore=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const D=require("solid-js"),y=require("./ownerWindow-BCmJFMbR.cjs"),_=require("./rendererLogging-B4XML4_G.cjs"),S=require("./keys-BeeC5_RZ.cjs"),L=350,x=0,v=300,M=6,E=8;function W(f){const{anchorRect:i,tooltipSize:o,viewport:n}=f,l=f.offset??M,e=f.margin??E,h=f.placement??"bottom",m="bottom"in i&&i.bottom!==void 0?i.bottom:i.top+i.height,c="right"in i&&i.right!==void 0?i.right:i.left+i.width;let a=h,u=0,d=0;if(h==="top"||h==="bottom"){if(h==="top"){const s=i.top-l-o.height;s<e&&m+l+o.height<=n.height-e?(a="bottom",u=m+l):u=Math.max(e,Math.min(s,n.height-o.height-e))}else{const s=m+l;s+o.height>n.height-e&&i.top-l-o.height>=e?(a="top",u=i.top-l-o.height):u=Math.max(e,Math.min(s,n.height-o.height-e))}const g=i.left+(i.width-o.width)/2,w=Math.max(e,n.width-o.width-e);d=Math.max(e,Math.min(g,w))}else{if(h==="left"){const s=i.left-l-o.width;s<e&&c+l+o.width<=n.width-e?(a="right",d=c+l):d=Math.max(e,Math.min(s,n.width-o.width-e))}else{const s=c+l;s+o.width>n.width-e&&i.left-l-o.width>=e?(a="left",d=i.left-l-o.width):d=Math.max(e,Math.min(s,n.width-o.width-e))}const g=i.top+(i.height-o.height)/2,w=Math.max(e,n.height-o.height-e);u=Math.max(e,Math.min(g,w))}return{top:u,left:d,placement:a}}function A(){const[f,i]=D.createSignal(null);let o=!1,n=null,l,e,h=null;const m=()=>{l!==void 0&&(clearTimeout(l),l=void 0)},c=()=>{e!==void 0&&(clearTimeout(e),e=void 0)},a=()=>{if(h){try{h()}catch(t){_.bestEffortFailed("Window context may already be destroyed or unloaded",t)}h=null}},u=t=>{a();const r=()=>{g()},p=T=>{S.isKey(T,"Escape")&&f()!==null&&(T.stopPropagation(),T.stopImmediatePropagation(),g())};t.addEventListener("scroll",r,!0),t.addEventListener("pointerdown",r,!0),t.addEventListener("keydown",p,!0),t.addEventListener("blur",r),h=()=>{t.removeEventListener("scroll",r,!0),t.removeEventListener("pointerdown",r,!0),t.removeEventListener("keydown",p,!0),t.removeEventListener("blur",r)}},d=t=>{m(),c(),n=null,o=!0,i(t);const r=y.ownerWindow(t.target);if(r===null){a();return}u(r)},g=()=>{m(),c(),n=null,o=!1,i(null),a()};return{activeTooltip:f,isWarm:()=>o,showTooltip:t=>{if(!t.content||typeof t.content=="function"&&!t.content())return;c();const r=f();if(!(r&&(r.id===t.id||r.target===t.target)))if(o||r!==null)d(t);else{m(),n=t;const p=t.delayMs??L;p<=0?d(t):l=setTimeout(()=>{n===t&&d(t)},p)}},hideTooltip:t=>{if(t!==void 0){n&&(typeof t=="string"?n.id===t:n.target===t)&&(m(),n=null);const r=f();if(r){if(!(typeof t=="string"?r.id===t:r.target===t))return}else return}m(),n=null,i(null),a(),c(),e=setTimeout(()=>{o=!1,e=void 0},v)},dismissAll:g,recordTooltipShown:()=>{c(),o=!0},recordTooltipHidden:()=>{c(),e=setTimeout(()=>{o=!1,e=void 0},v)}}}const b=A();exports.COLD_DELAY_MS=L;exports.COOLDOWN_MS=v;exports.DEFAULT_MARGIN=E;exports.DEFAULT_OFFSET=M;exports.WARM_DELAY_MS=x;exports.computeAnchoredTooltipPosition=W;exports.createTooltipCoordinator=A;exports.tooltipCoordinator=b;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { a as i, c as l, F as a } from "./builtins-XOM9gfIx.js";
|
|
2
|
-
import { onCleanup as o } from "solid-js";
|
|
3
|
-
const u = /* @__PURE__ */ new WeakMap();
|
|
4
|
-
function f(e) {
|
|
5
|
-
const n = i();
|
|
6
|
-
if (!n) return;
|
|
7
|
-
const { registry: c } = e, t = {
|
|
8
|
-
...e.verbs,
|
|
9
|
-
isActive: () => u.get(c) === t
|
|
10
|
-
}, s = c.set(t);
|
|
11
|
-
return o(() => {
|
|
12
|
-
s(), u.get(c) === t && u.delete(c);
|
|
13
|
-
}), l({
|
|
14
|
-
contextKeys: n.contextKeys,
|
|
15
|
-
key: e.key,
|
|
16
|
-
containerRef: e.container,
|
|
17
|
-
...e.countsAsFocus ? { countsAsFocus: e.countsAsFocus } : {},
|
|
18
|
-
onFocusIn: () => {
|
|
19
|
-
var r;
|
|
20
|
-
u.set(c, t), (r = e.onFocusIn) == null || r.call(e);
|
|
21
|
-
}
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
function y() {
|
|
25
|
-
const e = [];
|
|
26
|
-
return {
|
|
27
|
-
set: (t) => (e.push(t), () => {
|
|
28
|
-
const s = e.lastIndexOf(t);
|
|
29
|
-
s !== -1 && e.splice(s, 1);
|
|
30
|
-
}),
|
|
31
|
-
current: () => e.length > 0 ? e[e.length - 1] ?? null : null,
|
|
32
|
-
find: (t) => {
|
|
33
|
-
for (let s = e.length - 1; s >= 0; s -= 1) {
|
|
34
|
-
const r = e[s];
|
|
35
|
-
if (r !== void 0 && t(r)) return r;
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
const d = y();
|
|
42
|
-
function m(e) {
|
|
43
|
-
const n = i();
|
|
44
|
-
n && (f({
|
|
45
|
-
key: a.listFocus,
|
|
46
|
-
registry: d,
|
|
47
|
-
container: e.container,
|
|
48
|
-
verbs: e.verbs
|
|
49
|
-
}), l({
|
|
50
|
-
contextKeys: n.contextKeys,
|
|
51
|
-
key: a.listSupportsMultiselect,
|
|
52
|
-
containerRef: e.container,
|
|
53
|
-
countsAsFocus: () => e.supportsMultiselect()
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
m as a,
|
|
58
|
-
y as c,
|
|
59
|
-
d as l,
|
|
60
|
-
f as u
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./builtins-DM7FDxEt.cjs"),d=require("solid-js"),i=new WeakMap;function l(e){const n=u.useKeybindingsOptional();if(!n)return;const{registry:c}=e,s={...e.verbs,isActive:()=>i.get(c)===s},t=c.set(s);return d.onCleanup(()=>{t(),i.get(c)===s&&i.delete(c)}),u.createFocusContextKey({contextKeys:n.contextKeys,key:e.key,containerRef:e.container,...e.countsAsFocus?{countsAsFocus:e.countsAsFocus}:{},onFocusIn:()=>{var r;i.set(c,s),(r=e.onFocusIn)==null||r.call(e)}}),s}function o(){const e=[];return{set:s=>(e.push(s),()=>{const t=e.lastIndexOf(s);t!==-1&&e.splice(t,1)}),current:()=>e.length>0?e[e.length-1]??null:null,find:s=>{for(let t=e.length-1;t>=0;t-=1){const r=e[t];if(r!==void 0&&s(r))return r}return null}}}const a=o();function y(e){const n=u.useKeybindingsOptional();n&&(l({key:u.FOCUS_CONTEXT_KEYS.listFocus,registry:a,container:e.container,verbs:e.verbs}),u.createFocusContextKey({contextKeys:n.contextKeys,key:u.FOCUS_CONTEXT_KEYS.listSupportsMultiselect,containerRef:e.container,countsAsFocus:()=>e.supportsMultiselect()}))}exports.createPanelCommandRegistry=o;exports.listHandlers=a;exports.useFocusClaim=l;exports.useListCommands=y;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { onCleanup as r } from "solid-js";
|
|
2
|
-
function d(e, i) {
|
|
3
|
-
const t = (o) => {
|
|
4
|
-
const n = o.detail;
|
|
5
|
-
n != null && i(n);
|
|
6
|
-
};
|
|
7
|
-
window.addEventListener(e.changeEvent, t), r(() => window.removeEventListener(e.changeEvent, t));
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
d as u
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("solid-js");function r(n,i){const t=s=>{const e=s.detail;e!=null&&i(e)};window.addEventListener(n.changeEvent,t),o.onCleanup(()=>window.removeEventListener(n.changeEvent,t))}exports.useSettingsSubscription=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("solid-js"),d=require("./bugIndicatingError-D2X5Hfgg.cjs"),g=c.createContext();function p(){const e=c.useContext(g);if(!e)throw new d.BugIndicatingError("useWorkspaceTabs: missing provider");return e}const[k,x]=c.createSignal(void 0);let a=null;function V(e){a=e}function C(e){x(e),a==null||a(e)}const f=c.createContext();function T(){return c.useContext(f)}const u=new WeakMap;function w(e){let t=u.get(e);if(!t){const[r,s]=c.createSignal([]);t={entries:new Map,activeBrowsers:r,setActiveBrowsers:s},u.set(e,t)}return t}function W(e,t,r,s,i,l=0){if(!e)return;const n=w(e);if(s&&r.width>0&&r.height>0){const o=n.entries.get(t);if(o&&o.generation>l)return;n.entries.set(t,{tabId:t,bounds:{...r},lease:i,generation:l})}else{const o=n.entries.get(t);if(o&&(!i||o.lease===i)){if(o.generation>l)return;n.entries.delete(t)}}n.setActiveBrowsers(Array.from(n.entries.values()))}function b(e,t,r){if(!e)return;const s=u.get(e);if(!s)return;const i=s.entries.get(t);i&&(!r||i.lease===r)&&(s.entries.delete(t),s.setActiveBrowsers(Array.from(s.entries.values())))}function B(e){return e?w(e).activeBrowsers():[]}function v(e){return B(e).length>0}function S(e){if(e){const t=u.get(e);t&&(t.entries.clear(),t.setActiveBrowsers([]))}}exports.ToolWindowContext=f;exports.WorkspaceTabsContext=g;exports.clearVisibleBrowsersForTesting=S;exports.getVisibleBrowsers=B;exports.hasVisibleBrowser=v;exports.openSettingsModal=C;exports.registerVisibleBrowser=W;exports.setOpenSettingsHandler=V;exports.unregisterVisibleBrowser=b;exports.useToolWindowLayout=T;exports.useWorkspaceTabs=p;
|