@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
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var I = (s, t, e) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var a = (s, t, e) => I(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { o as b, s as C, t as O } from "./errorHandler-BvPGW-Nm.js";
|
|
5
|
+
import { E as k } from "./electronBridge-BK92fycw.js";
|
|
6
|
+
import { i as P } from "./actions-wwAHs3ZU.js";
|
|
7
|
+
import { S as l, a as A } from "./stateDbStore-DHZFUIEt.js";
|
|
8
|
+
import { createSignal as R } from "solid-js";
|
|
9
|
+
import { a as L } from "./windowRegistry-DeGmXt6W.js";
|
|
10
|
+
import { i as $ } from "./isOneOf-Dtomuazg.js";
|
|
11
|
+
var o = /* @__PURE__ */ ((s) => (s[s.Off = 0] = "Off", s[s.Trace = 1] = "Trace", s[s.Debug = 2] = "Debug", s[s.Info = 3] = "Info", s[s.Warn = 4] = "Warn", s[s.Error = 5] = "Error", s[s.Audit = 6] = "Audit", s))(o || {});
|
|
12
|
+
const N = 3;
|
|
13
|
+
function W(s, t) {
|
|
14
|
+
return t === 6 ? !0 : s === 0 ? !1 : s <= t;
|
|
15
|
+
}
|
|
16
|
+
class x {
|
|
17
|
+
constructor() {
|
|
18
|
+
a(this, "_store", /* @__PURE__ */ new Set());
|
|
19
|
+
a(this, "_isDisposed", !1);
|
|
20
|
+
}
|
|
21
|
+
_register(t) {
|
|
22
|
+
return this._isDisposed ? (console.warn("Registering disposable on already disposed object"), t.dispose()) : this._store.add(t), t;
|
|
23
|
+
}
|
|
24
|
+
get isDisposed() {
|
|
25
|
+
return this._isDisposed;
|
|
26
|
+
}
|
|
27
|
+
dispose() {
|
|
28
|
+
if (!this._isDisposed) {
|
|
29
|
+
this._isDisposed = !0;
|
|
30
|
+
for (const t of this._store)
|
|
31
|
+
try {
|
|
32
|
+
t.dispose();
|
|
33
|
+
} catch (e) {
|
|
34
|
+
b(e, { source: "dispose" });
|
|
35
|
+
}
|
|
36
|
+
this._store.clear();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
class M extends x {
|
|
41
|
+
constructor(e = N) {
|
|
42
|
+
super();
|
|
43
|
+
a(this, "_level");
|
|
44
|
+
a(this, "_onDidChangeLogLevel", this._register(
|
|
45
|
+
new k()
|
|
46
|
+
));
|
|
47
|
+
a(this, "onDidChangeLogLevel", this._onDidChangeLogLevel.event);
|
|
48
|
+
this._level = e;
|
|
49
|
+
}
|
|
50
|
+
getLevel() {
|
|
51
|
+
return this._level;
|
|
52
|
+
}
|
|
53
|
+
setLevel(e) {
|
|
54
|
+
this._level !== e && (this._level = e, this._onDidChangeLogLevel.fire(e));
|
|
55
|
+
}
|
|
56
|
+
canLog(e) {
|
|
57
|
+
return W(this._level, e);
|
|
58
|
+
}
|
|
59
|
+
withTag(e) {
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const m = "[REDACTED]";
|
|
64
|
+
function U(s) {
|
|
65
|
+
return s ? m : "";
|
|
66
|
+
}
|
|
67
|
+
const j = [
|
|
68
|
+
"password",
|
|
69
|
+
"pass",
|
|
70
|
+
"pwd",
|
|
71
|
+
"token",
|
|
72
|
+
"accesstoken",
|
|
73
|
+
"refreshtoken",
|
|
74
|
+
"apikey",
|
|
75
|
+
"api_key",
|
|
76
|
+
"authtoken",
|
|
77
|
+
"secret",
|
|
78
|
+
"privatekey",
|
|
79
|
+
"private_key",
|
|
80
|
+
"masterkey",
|
|
81
|
+
"master_key",
|
|
82
|
+
"masterpassword",
|
|
83
|
+
"username",
|
|
84
|
+
"user_name",
|
|
85
|
+
"email",
|
|
86
|
+
"userid",
|
|
87
|
+
"user_id",
|
|
88
|
+
"vaultname",
|
|
89
|
+
"vault_name",
|
|
90
|
+
"vaultpath",
|
|
91
|
+
"vault_path",
|
|
92
|
+
"recoverycode",
|
|
93
|
+
"recovery_code",
|
|
94
|
+
"mnemonic",
|
|
95
|
+
"connectionstring",
|
|
96
|
+
"conn_string",
|
|
97
|
+
"dsn",
|
|
98
|
+
"sessionid",
|
|
99
|
+
"session_id",
|
|
100
|
+
"cookie",
|
|
101
|
+
"authorization"
|
|
102
|
+
], F = new Set(
|
|
103
|
+
j.map((s) => s.toLowerCase().replace(/[-_]/g, ""))
|
|
104
|
+
), z = [
|
|
105
|
+
/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/,
|
|
106
|
+
/sk-[A-Za-z0-9]{20,}/,
|
|
107
|
+
/AKIA[0-9A-Z]{16}/,
|
|
108
|
+
/ghp_[A-Za-z0-9]{36}/,
|
|
109
|
+
/gho_[A-Za-z0-9]{36}/,
|
|
110
|
+
/xoxb-[0-9]+-[0-9]+-[A-Za-z0-9]+/
|
|
111
|
+
];
|
|
112
|
+
function V(s) {
|
|
113
|
+
return F.has(s.toLowerCase().replace(/[-_]/g, ""));
|
|
114
|
+
}
|
|
115
|
+
function g(s) {
|
|
116
|
+
for (const t of z)
|
|
117
|
+
if (t.test(s))
|
|
118
|
+
return m;
|
|
119
|
+
return s;
|
|
120
|
+
}
|
|
121
|
+
function d(s) {
|
|
122
|
+
const t = {};
|
|
123
|
+
for (const [e, r] of Object.entries(s))
|
|
124
|
+
V(e) ? t[e] = typeof r == "string" ? U(r) : m : typeof r == "string" ? t[e] = g(r) : Array.isArray(r) ? t[e] = r.map((n) => typeof n == "string" ? g(n) : n && typeof n == "object" && !(n instanceof Error) && !(n instanceof Date) ? d(n) : n) : r && typeof r == "object" && !(r instanceof Error) && !(r instanceof Date) ? t[e] = d(r) : t[e] = r;
|
|
125
|
+
return t;
|
|
126
|
+
}
|
|
127
|
+
function Z(s) {
|
|
128
|
+
return C(g(s));
|
|
129
|
+
}
|
|
130
|
+
function E(s) {
|
|
131
|
+
return typeof s == "string" ? g(s) : Array.isArray(s) ? s.map((t) => typeof t == "string" ? g(t) : t && typeof t == "object" && !(t instanceof Error) && !(t instanceof Date) ? d(t) : t) : s && typeof s == "object" && !(s instanceof Error) && !(s instanceof Date) ? d(s) : s;
|
|
132
|
+
}
|
|
133
|
+
class K extends M {
|
|
134
|
+
constructor(t) {
|
|
135
|
+
super(t);
|
|
136
|
+
}
|
|
137
|
+
trace(t, ...e) {
|
|
138
|
+
this.canLog(o.Trace) && this.log(o.Trace, h(t, e), e);
|
|
139
|
+
}
|
|
140
|
+
debug(t, ...e) {
|
|
141
|
+
this.canLog(o.Debug) && this.log(o.Debug, h(t, e), e);
|
|
142
|
+
}
|
|
143
|
+
info(t, ...e) {
|
|
144
|
+
this.canLog(o.Info) && this.log(o.Info, h(t, e), e);
|
|
145
|
+
}
|
|
146
|
+
warn(t, ...e) {
|
|
147
|
+
this.canLog(o.Warn) && this.log(o.Warn, h(t, e), e);
|
|
148
|
+
}
|
|
149
|
+
error(t, ...e) {
|
|
150
|
+
if (!this.canLog(o.Error)) return;
|
|
151
|
+
if (t instanceof Error) {
|
|
152
|
+
const n = t;
|
|
153
|
+
this.log(
|
|
154
|
+
o.Error,
|
|
155
|
+
h(`${n.message}
|
|
156
|
+
${S(n)}`, e),
|
|
157
|
+
[n, ...e]
|
|
158
|
+
);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const r = e[0];
|
|
162
|
+
if (r instanceof Error) {
|
|
163
|
+
this.log(
|
|
164
|
+
o.Error,
|
|
165
|
+
h(
|
|
166
|
+
`${t}: ${r.message}
|
|
167
|
+
${S(r)}`,
|
|
168
|
+
e.slice(1)
|
|
169
|
+
),
|
|
170
|
+
e
|
|
171
|
+
);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this.log(o.Error, h(t, e), e);
|
|
175
|
+
}
|
|
176
|
+
audit(t, e, r, ...n) {
|
|
177
|
+
if (!this.canLog(o.Audit)) return;
|
|
178
|
+
const i = { action: t, userId: e, resource: r, args: n }, f = h(
|
|
179
|
+
`AUDIT: User ${e} performed ${t} on ${r}`,
|
|
180
|
+
n
|
|
181
|
+
);
|
|
182
|
+
this.log(o.Audit, f, n, i);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function S(s) {
|
|
186
|
+
if (!s.stack) return s.message;
|
|
187
|
+
const t = s.stack.indexOf(`
|
|
188
|
+
`);
|
|
189
|
+
return t >= 0 ? s.stack.slice(t + 1) : s.message;
|
|
190
|
+
}
|
|
191
|
+
function h(s, t = []) {
|
|
192
|
+
if (t.length === 0) return s;
|
|
193
|
+
const e = [s];
|
|
194
|
+
for (const r of t)
|
|
195
|
+
if (r != null)
|
|
196
|
+
if (r instanceof Error)
|
|
197
|
+
e.push(`${r.message}
|
|
198
|
+
${r.stack ?? ""}`);
|
|
199
|
+
else if (typeof r == "object")
|
|
200
|
+
try {
|
|
201
|
+
e.push(JSON.stringify(E(r)));
|
|
202
|
+
} catch {
|
|
203
|
+
e.push(String(r));
|
|
204
|
+
}
|
|
205
|
+
else
|
|
206
|
+
e.push(String(E(r)));
|
|
207
|
+
return e.length === 1 ? e[0] : e.join(" ");
|
|
208
|
+
}
|
|
209
|
+
class H extends K {
|
|
210
|
+
constructor(e = [], r, n) {
|
|
211
|
+
super(r);
|
|
212
|
+
a(this, "_transports");
|
|
213
|
+
a(this, "_tag");
|
|
214
|
+
this._transports = e, this._tag = n ?? "";
|
|
215
|
+
}
|
|
216
|
+
log(e, r, n = [], i) {
|
|
217
|
+
const f = {
|
|
218
|
+
level: e,
|
|
219
|
+
tag: this._tag,
|
|
220
|
+
message: Z(r),
|
|
221
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
222
|
+
args: n.map(E),
|
|
223
|
+
...i ? { audit: i } : {}
|
|
224
|
+
};
|
|
225
|
+
for (const c of this._transports)
|
|
226
|
+
c.log(f);
|
|
227
|
+
}
|
|
228
|
+
flush() {
|
|
229
|
+
var e;
|
|
230
|
+
for (const r of this._transports)
|
|
231
|
+
(e = r.flush) == null || e.call(r);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Append a transport after construction. Lets the renderer entry inject the
|
|
235
|
+
* prod-only IPC/file-forwarding transport at boot WITHOUT the logger module
|
|
236
|
+
* importing it at load (which would drag a renderer-only module — and its
|
|
237
|
+
* Vite `import.meta` — into every consumer's module graph). Root-only.
|
|
238
|
+
*/
|
|
239
|
+
addTransport(e) {
|
|
240
|
+
this._transports.push(e);
|
|
241
|
+
}
|
|
242
|
+
withTag(e) {
|
|
243
|
+
return new p(this, e);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
class p {
|
|
247
|
+
constructor(t, e) {
|
|
248
|
+
a(this, "_fullTag");
|
|
249
|
+
this._parent = t;
|
|
250
|
+
const r = this._parent._fullTag ?? this._parent._tag ?? "";
|
|
251
|
+
this._fullTag = r ? `${r}:${e}` : e;
|
|
252
|
+
}
|
|
253
|
+
get onDidChangeLogLevel() {
|
|
254
|
+
return this._getRoot().onDidChangeLogLevel;
|
|
255
|
+
}
|
|
256
|
+
getLevel() {
|
|
257
|
+
return this._getRoot().getLevel();
|
|
258
|
+
}
|
|
259
|
+
setLevel(t) {
|
|
260
|
+
this._getRoot().debug(
|
|
261
|
+
`TaggedLogger.setLevel(${o[t]}) ignored on tagged child '[${this._fullTag}]' — call setLevel on the root logger instead.`
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
trace(t, ...e) {
|
|
265
|
+
this._emit(o.Trace, t, e);
|
|
266
|
+
}
|
|
267
|
+
debug(t, ...e) {
|
|
268
|
+
this._emit(o.Debug, t, e);
|
|
269
|
+
}
|
|
270
|
+
info(t, ...e) {
|
|
271
|
+
this._emit(o.Info, t, e);
|
|
272
|
+
}
|
|
273
|
+
warn(t, ...e) {
|
|
274
|
+
this._emit(o.Warn, t, e);
|
|
275
|
+
}
|
|
276
|
+
error(t, ...e) {
|
|
277
|
+
if (t instanceof Error) {
|
|
278
|
+
const r = new Error(`[${this._fullTag}] ${t.message}`);
|
|
279
|
+
t.stack && (r.stack = t.stack), this._getRoot().error(r, ...e);
|
|
280
|
+
} else
|
|
281
|
+
this._emit(o.Error, t, e);
|
|
282
|
+
}
|
|
283
|
+
audit(t, e, r, ...n) {
|
|
284
|
+
this._getRoot().audit(t, e, r, ...n);
|
|
285
|
+
}
|
|
286
|
+
flush() {
|
|
287
|
+
this._getRoot().flush();
|
|
288
|
+
}
|
|
289
|
+
withTag(t) {
|
|
290
|
+
return new p(this, t);
|
|
291
|
+
}
|
|
292
|
+
_emit(t, e, r) {
|
|
293
|
+
const n = this._getRoot(), i = `[${this._fullTag}] ${e}`;
|
|
294
|
+
switch (t) {
|
|
295
|
+
case o.Trace:
|
|
296
|
+
n.trace(i, ...r);
|
|
297
|
+
break;
|
|
298
|
+
case o.Debug:
|
|
299
|
+
n.debug(i, ...r);
|
|
300
|
+
break;
|
|
301
|
+
case o.Info:
|
|
302
|
+
n.info(i, ...r);
|
|
303
|
+
break;
|
|
304
|
+
case o.Warn:
|
|
305
|
+
n.warn(i, ...r);
|
|
306
|
+
break;
|
|
307
|
+
case o.Error:
|
|
308
|
+
n.error(i, ...r);
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
_getRoot() {
|
|
313
|
+
let t = this._parent;
|
|
314
|
+
for (; t instanceof p; )
|
|
315
|
+
t = t._parent;
|
|
316
|
+
return t;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
const J = {
|
|
320
|
+
[o.Off]: "",
|
|
321
|
+
[o.Trace]: "TRACE",
|
|
322
|
+
[o.Debug]: "DEBUG",
|
|
323
|
+
[o.Info]: "INFO",
|
|
324
|
+
[o.Warn]: "WARN",
|
|
325
|
+
[o.Error]: "ERROR",
|
|
326
|
+
[o.Audit]: "AUDIT"
|
|
327
|
+
}, G = {
|
|
328
|
+
[o.Off]: "debug",
|
|
329
|
+
[o.Trace]: "debug",
|
|
330
|
+
[o.Debug]: "debug",
|
|
331
|
+
[o.Info]: "info",
|
|
332
|
+
[o.Warn]: "warn",
|
|
333
|
+
[o.Error]: "error",
|
|
334
|
+
[o.Audit]: "info"
|
|
335
|
+
};
|
|
336
|
+
class Y {
|
|
337
|
+
log(t) {
|
|
338
|
+
const e = J[t.level], r = t.tag ? ` ${t.tag}` : "", n = t.timestamp.toISOString(), i = G[t.level];
|
|
339
|
+
console[i](`[${e}]${r} ${n} - ${t.message}`);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function at(s = o.Info) {
|
|
343
|
+
return new H([new Y()], s);
|
|
344
|
+
}
|
|
345
|
+
const w = /* @__PURE__ */ new WeakMap();
|
|
346
|
+
function ct(s, t) {
|
|
347
|
+
return w.set(s, [...w.get(s) ?? [], ...t]), s;
|
|
348
|
+
}
|
|
349
|
+
function q(s) {
|
|
350
|
+
return typeof s == "object" && s !== null ? w.get(s) ?? [] : [];
|
|
351
|
+
}
|
|
352
|
+
const ut = {
|
|
353
|
+
text: (s, t) => O(s, t),
|
|
354
|
+
actions: (s) => q(s)
|
|
355
|
+
};
|
|
356
|
+
function ft() {
|
|
357
|
+
const s = [];
|
|
358
|
+
let t = null;
|
|
359
|
+
return {
|
|
360
|
+
set: (n) => (s.push(n), () => {
|
|
361
|
+
const i = s.lastIndexOf(n);
|
|
362
|
+
i !== -1 && s.splice(i, 1), t === n && !s.includes(n) && (t = null);
|
|
363
|
+
}),
|
|
364
|
+
current: () => s.length > 0 ? s[s.length - 1] ?? null : null,
|
|
365
|
+
find: (n) => {
|
|
366
|
+
for (let i = s.length - 1; i >= 0; i -= 1) {
|
|
367
|
+
const f = s[i];
|
|
368
|
+
if (f !== void 0 && n(f)) return f;
|
|
369
|
+
}
|
|
370
|
+
return null;
|
|
371
|
+
},
|
|
372
|
+
markFocused: (n) => {
|
|
373
|
+
s.includes(n) && (t = n);
|
|
374
|
+
},
|
|
375
|
+
lastFocused: () => t
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
const _ = 20, v = "menu.favorites";
|
|
379
|
+
class ht {
|
|
380
|
+
constructor(t) {
|
|
381
|
+
a(this, "_onDidChange", new k());
|
|
382
|
+
a(this, "onDidChange", this._onDidChange.event);
|
|
383
|
+
this.storage = t;
|
|
384
|
+
}
|
|
385
|
+
list() {
|
|
386
|
+
return this.stored().filter((t) => typeof t == "string" && P(t)).slice(0, _);
|
|
387
|
+
}
|
|
388
|
+
has(t) {
|
|
389
|
+
return this.list().includes(t);
|
|
390
|
+
}
|
|
391
|
+
add(t) {
|
|
392
|
+
const e = this.list();
|
|
393
|
+
e.includes(t) || e.length >= _ || this.write([...e, t]);
|
|
394
|
+
}
|
|
395
|
+
remove(t) {
|
|
396
|
+
this.write(this.list().filter((e) => e !== t));
|
|
397
|
+
}
|
|
398
|
+
dispose() {
|
|
399
|
+
this._onDidChange.dispose();
|
|
400
|
+
}
|
|
401
|
+
stored() {
|
|
402
|
+
const t = this.storage.get(v, l.APPLICATION);
|
|
403
|
+
if (t === void 0) return [];
|
|
404
|
+
let e;
|
|
405
|
+
try {
|
|
406
|
+
e = JSON.parse(t);
|
|
407
|
+
} catch (r) {
|
|
408
|
+
return b(new Error("[menu favourites] the stored list is not JSON", { cause: r })), [];
|
|
409
|
+
}
|
|
410
|
+
return Array.isArray(e) ? e : [];
|
|
411
|
+
}
|
|
412
|
+
write(t) {
|
|
413
|
+
this.storage.store(
|
|
414
|
+
v,
|
|
415
|
+
JSON.stringify(t.slice(0, _)),
|
|
416
|
+
l.APPLICATION,
|
|
417
|
+
A.USER
|
|
418
|
+
), this._onDidChange.fire();
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
const B = ["shown", "skipped", "completed"];
|
|
422
|
+
function u(s) {
|
|
423
|
+
return s === "filesystem" ? "file-system" : s === "explorer" ? "database-explorer" : s;
|
|
424
|
+
}
|
|
425
|
+
const T = (s) => `onboarding:page:${u(s)}`, D = "onboarding:neverShowAgain", Q = 15e3;
|
|
426
|
+
class lt {
|
|
427
|
+
constructor(t) {
|
|
428
|
+
a(this, "activePage");
|
|
429
|
+
a(this, "setActivePage");
|
|
430
|
+
a(this, "seen", /* @__PURE__ */ new Map());
|
|
431
|
+
a(this, "neverShowAgainCache", null);
|
|
432
|
+
a(this, "skipWelcomeFlag", !1);
|
|
433
|
+
a(this, "hosts", /* @__PURE__ */ new Set());
|
|
434
|
+
a(this, "owner", null);
|
|
435
|
+
a(this, "pending", null);
|
|
436
|
+
this.storage = t;
|
|
437
|
+
const [e, r] = R(null);
|
|
438
|
+
this.activePage = e, this.setActivePage = r;
|
|
439
|
+
}
|
|
440
|
+
isActive(t) {
|
|
441
|
+
const e = this.activePage();
|
|
442
|
+
return e !== null && u(e) === u(t);
|
|
443
|
+
}
|
|
444
|
+
setActive(t) {
|
|
445
|
+
this.setActivePage(t ? u(t) : null);
|
|
446
|
+
}
|
|
447
|
+
readStatus(t) {
|
|
448
|
+
if (this.isNeverShowAgain()) return "skipped";
|
|
449
|
+
const e = u(t), r = this.seen.get(e);
|
|
450
|
+
if (r !== void 0) return r;
|
|
451
|
+
const n = this.storage.get(T(e), l.APPLICATION);
|
|
452
|
+
return $(B, n) ? n : void 0;
|
|
453
|
+
}
|
|
454
|
+
writeStatus(t, e) {
|
|
455
|
+
const r = u(t);
|
|
456
|
+
this.seen.set(r, e), this.storage.store(T(r), e, l.APPLICATION, A.MACHINE);
|
|
457
|
+
}
|
|
458
|
+
isNeverShowAgain() {
|
|
459
|
+
return this.neverShowAgainCache === null && (this.neverShowAgainCache = this.storage.get(D, l.APPLICATION) === "true"), this.neverShowAgainCache;
|
|
460
|
+
}
|
|
461
|
+
setNeverShowAgain(t) {
|
|
462
|
+
this.neverShowAgainCache = t, this.storage.store(
|
|
463
|
+
D,
|
|
464
|
+
t ? "true" : "false",
|
|
465
|
+
l.APPLICATION,
|
|
466
|
+
A.MACHINE
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
skipWelcome() {
|
|
470
|
+
return this.skipWelcomeFlag;
|
|
471
|
+
}
|
|
472
|
+
setSkipWelcome(t) {
|
|
473
|
+
this.skipWelcomeFlag = t;
|
|
474
|
+
}
|
|
475
|
+
claim(t) {
|
|
476
|
+
return this.owner && this.owner !== t ? !1 : (this.owner = t, !0);
|
|
477
|
+
}
|
|
478
|
+
release(t) {
|
|
479
|
+
this.owner === t && (this.owner = null);
|
|
480
|
+
}
|
|
481
|
+
registerHost(t) {
|
|
482
|
+
return this.hosts.add(t), () => this.hosts.delete(t);
|
|
483
|
+
}
|
|
484
|
+
request(t) {
|
|
485
|
+
var f;
|
|
486
|
+
this.pending = null;
|
|
487
|
+
const e = t ? u(t) : void 0;
|
|
488
|
+
this.owner = null;
|
|
489
|
+
for (const c of this.hosts)
|
|
490
|
+
(!e || u(c.page) !== e) && ((f = c.dismiss) == null || f.call(c));
|
|
491
|
+
const r = Array.from(this.hosts).filter(
|
|
492
|
+
(c) => c.visible() && (!e || u(c.page) === e)
|
|
493
|
+
), n = L().document, i = r.find((c) => c.document() === n) ?? r[0];
|
|
494
|
+
return i ? (i.start(), !0) : (e && (this.pending = { page: e, expires: Date.now() + Q }), !1);
|
|
495
|
+
}
|
|
496
|
+
consumeRequest(t) {
|
|
497
|
+
if (!this.pending || u(this.pending.page) !== u(t))
|
|
498
|
+
return !1;
|
|
499
|
+
const e = this.pending.expires > Date.now();
|
|
500
|
+
return this.pending = null, e;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
export {
|
|
504
|
+
N as D,
|
|
505
|
+
o as L,
|
|
506
|
+
ht as M,
|
|
507
|
+
lt as P,
|
|
508
|
+
B as T,
|
|
509
|
+
q as a,
|
|
510
|
+
u as b,
|
|
511
|
+
W as c,
|
|
512
|
+
at as d,
|
|
513
|
+
ft as e,
|
|
514
|
+
ut as m,
|
|
515
|
+
ct as w
|
|
516
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";var O=Object.defineProperty;var L=(r,e,t)=>e in r?O(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>L(r,typeof e!="symbol"?e+"":e,t);const _=require("./errorHandler-DoDAPpv2.cjs"),b=require("./electronBridge-cT0xww92.cjs"),P=require("./actions-DtaFGwh2.cjs"),h=require("./stateDbStore-CThsVch-.cjs"),R=require("solid-js"),$=require("./windowRegistry-CxXtP-iY.cjs"),N=require("./isOneOf-9EXOSYJu.cjs");var o=(r=>(r[r.Off=0]="Off",r[r.Trace=1]="Trace",r[r.Debug=2]="Debug",r[r.Info=3]="Info",r[r.Warn=4]="Warn",r[r.Error=5]="Error",r[r.Audit=6]="Audit",r))(o||{});const y=3;function k(r,e){return e===6?!0:r===0?!1:r<=e}class W{constructor(){a(this,"_store",new Set);a(this,"_isDisposed",!1)}_register(e){return this._isDisposed?(console.warn("Registering disposable on already disposed object"),e.dispose()):this._store.add(e),e}get isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const e of this._store)try{e.dispose()}catch(t){_.onUnexpectedError(t,{source:"dispose"})}this._store.clear()}}}class x extends W{constructor(t=y){super();a(this,"_level");a(this,"_onDidChangeLogLevel",this._register(new b.Emitter));a(this,"onDidChangeLogLevel",this._onDidChangeLogLevel.event);this._level=t}getLevel(){return this._level}setLevel(t){this._level!==t&&(this._level=t,this._onDidChangeLogLevel.fire(t))}canLog(t){return k(this._level,t)}withTag(t){return this}}const w="[REDACTED]";function U(r){return r?w:""}const M=["password","pass","pwd","token","accesstoken","refreshtoken","apikey","api_key","authtoken","secret","privatekey","private_key","masterkey","master_key","masterpassword","username","user_name","email","userid","user_id","vaultname","vault_name","vaultpath","vault_path","recoverycode","recovery_code","mnemonic","connectionstring","conn_string","dsn","sessionid","session_id","cookie","authorization"],F=new Set(M.map(r=>r.toLowerCase().replace(/[-_]/g,""))),j=[/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/,/sk-[A-Za-z0-9]{20,}/,/AKIA[0-9A-Z]{16}/,/ghp_[A-Za-z0-9]{36}/,/gho_[A-Za-z0-9]{36}/,/xoxb-[0-9]+-[0-9]+-[A-Za-z0-9]+/];function q(r){return F.has(r.toLowerCase().replace(/[-_]/g,""))}function f(r){for(const e of j)if(e.test(r))return w;return r}function d(r){const e={};for(const[t,s]of Object.entries(r))q(t)?e[t]=typeof s=="string"?U(s):w:typeof s=="string"?e[t]=f(s):Array.isArray(s)?e[t]=s.map(n=>typeof n=="string"?f(n):n&&typeof n=="object"&&!(n instanceof Error)&&!(n instanceof Date)?d(n):n):s&&typeof s=="object"&&!(s instanceof Error)&&!(s instanceof Date)?e[t]=d(s):e[t]=s;return e}function V(r){return _.scrubSecrets(f(r))}function E(r){return typeof r=="string"?f(r):Array.isArray(r)?r.map(e=>typeof e=="string"?f(e):e&&typeof e=="object"&&!(e instanceof Error)&&!(e instanceof Date)?d(e):e):r&&typeof r=="object"&&!(r instanceof Error)&&!(r instanceof Date)?d(r):r}class z extends x{constructor(e){super(e)}trace(e,...t){this.canLog(o.Trace)&&this.log(o.Trace,g(e,t),t)}debug(e,...t){this.canLog(o.Debug)&&this.log(o.Debug,g(e,t),t)}info(e,...t){this.canLog(o.Info)&&this.log(o.Info,g(e,t),t)}warn(e,...t){this.canLog(o.Warn)&&this.log(o.Warn,g(e,t),t)}error(e,...t){if(!this.canLog(o.Error))return;if(e instanceof Error){const n=e;this.log(o.Error,g(`${n.message}
|
|
2
|
+
${T(n)}`,t),[n,...t]);return}const s=t[0];if(s instanceof Error){this.log(o.Error,g(`${e}: ${s.message}
|
|
3
|
+
${T(s)}`,t.slice(1)),t);return}this.log(o.Error,g(e,t),t)}audit(e,t,s,...n){if(!this.canLog(o.Audit))return;const i={action:e,userId:t,resource:s,args:n},l=g(`AUDIT: User ${t} performed ${e} on ${s}`,n);this.log(o.Audit,l,n,i)}}function T(r){if(!r.stack)return r.message;const e=r.stack.indexOf(`
|
|
4
|
+
`);return e>=0?r.stack.slice(e+1):r.message}function g(r,e=[]){if(e.length===0)return r;const t=[r];for(const s of e)if(s!=null)if(s instanceof Error)t.push(`${s.message}
|
|
5
|
+
${s.stack??""}`);else if(typeof s=="object")try{t.push(JSON.stringify(E(s)))}catch{t.push(String(s))}else t.push(String(E(s)));return t.length===1?t[0]:t.join(" ")}class Z extends z{constructor(t=[],s,n){super(s);a(this,"_transports");a(this,"_tag");this._transports=t,this._tag=n??""}log(t,s,n=[],i){const l={level:t,tag:this._tag,message:V(s),timestamp:new Date,args:n.map(E),...i?{audit:i}:{}};for(const u of this._transports)u.log(l)}flush(){var t;for(const s of this._transports)(t=s.flush)==null||t.call(s)}addTransport(t){this._transports.push(t)}withTag(t){return new p(this,t)}}class p{constructor(e,t){a(this,"_fullTag");this._parent=e;const s=this._parent._fullTag??this._parent._tag??"";this._fullTag=s?`${s}:${t}`:t}get onDidChangeLogLevel(){return this._getRoot().onDidChangeLogLevel}getLevel(){return this._getRoot().getLevel()}setLevel(e){this._getRoot().debug(`TaggedLogger.setLevel(${o[e]}) ignored on tagged child '[${this._fullTag}]' — call setLevel on the root logger instead.`)}trace(e,...t){this._emit(o.Trace,e,t)}debug(e,...t){this._emit(o.Debug,e,t)}info(e,...t){this._emit(o.Info,e,t)}warn(e,...t){this._emit(o.Warn,e,t)}error(e,...t){if(e instanceof Error){const s=new Error(`[${this._fullTag}] ${e.message}`);e.stack&&(s.stack=e.stack),this._getRoot().error(s,...t)}else this._emit(o.Error,e,t)}audit(e,t,s,...n){this._getRoot().audit(e,t,s,...n)}flush(){this._getRoot().flush()}withTag(e){return new p(this,e)}_emit(e,t,s){const n=this._getRoot(),i=`[${this._fullTag}] ${t}`;switch(e){case o.Trace:n.trace(i,...s);break;case o.Debug:n.debug(i,...s);break;case o.Info:n.info(i,...s);break;case o.Warn:n.warn(i,...s);break;case o.Error:n.error(i,...s);break}}_getRoot(){let e=this._parent;for(;e instanceof p;)e=e._parent;return e}}const K={[o.Off]:"",[o.Trace]:"TRACE",[o.Debug]:"DEBUG",[o.Info]:"INFO",[o.Warn]:"WARN",[o.Error]:"ERROR",[o.Audit]:"AUDIT"},H={[o.Off]:"debug",[o.Trace]:"debug",[o.Debug]:"debug",[o.Info]:"info",[o.Warn]:"warn",[o.Error]:"error",[o.Audit]:"info"};class J{log(e){const t=K[e.level],s=e.tag?` ${e.tag}`:"",n=e.timestamp.toISOString(),i=H[e.level];console[i](`[${t}]${s} ${n} - ${e.message}`)}}function G(r=o.Info){return new Z([new J],r)}const S=new WeakMap;function Y(r,e){return S.set(r,[...S.get(r)??[],...e]),r}function I(r){return typeof r=="object"&&r!==null?S.get(r)??[]:[]}const B={text:(r,e)=>_.toErrorMessage(r,e),actions:r=>I(r)};function Q(){const r=[];let e=null;return{set:n=>(r.push(n),()=>{const i=r.lastIndexOf(n);i!==-1&&r.splice(i,1),e===n&&!r.includes(n)&&(e=null)}),current:()=>r.length>0?r[r.length-1]??null:null,find:n=>{for(let i=r.length-1;i>=0;i-=1){const l=r[i];if(l!==void 0&&n(l))return l}return null},markFocused:n=>{r.includes(n)&&(e=n)},lastFocused:()=>e}}const A=20,v="menu.favorites";class X{constructor(e){a(this,"_onDidChange",new b.Emitter);a(this,"onDidChange",this._onDidChange.event);this.storage=e}list(){return this.stored().filter(e=>typeof e=="string"&&P.isRegisteredActionId(e)).slice(0,A)}has(e){return this.list().includes(e)}add(e){const t=this.list();t.includes(e)||t.length>=A||this.write([...t,e])}remove(e){this.write(this.list().filter(t=>t!==e))}dispose(){this._onDidChange.dispose()}stored(){const e=this.storage.get(v,h.StorageScope.APPLICATION);if(e===void 0)return[];let t;try{t=JSON.parse(e)}catch(s){return _.onUnexpectedError(new Error("[menu favourites] the stored list is not JSON",{cause:s})),[]}return Array.isArray(t)?t:[]}write(e){this.storage.store(v,JSON.stringify(e.slice(0,A)),h.StorageScope.APPLICATION,h.StorageTarget.USER),this._onDidChange.fire()}}const C=["shown","skipped","completed"];function c(r){return r==="filesystem"?"file-system":r==="explorer"?"database-explorer":r}const D=r=>`onboarding:page:${c(r)}`,m="onboarding:neverShowAgain",ee=15e3;class te{constructor(e){a(this,"activePage");a(this,"setActivePage");a(this,"seen",new Map);a(this,"neverShowAgainCache",null);a(this,"skipWelcomeFlag",!1);a(this,"hosts",new Set);a(this,"owner",null);a(this,"pending",null);this.storage=e;const[t,s]=R.createSignal(null);this.activePage=t,this.setActivePage=s}isActive(e){const t=this.activePage();return t!==null&&c(t)===c(e)}setActive(e){this.setActivePage(e?c(e):null)}readStatus(e){if(this.isNeverShowAgain())return"skipped";const t=c(e),s=this.seen.get(t);if(s!==void 0)return s;const n=this.storage.get(D(t),h.StorageScope.APPLICATION);return N.isOneOf(C,n)?n:void 0}writeStatus(e,t){const s=c(e);this.seen.set(s,t),this.storage.store(D(s),t,h.StorageScope.APPLICATION,h.StorageTarget.MACHINE)}isNeverShowAgain(){return this.neverShowAgainCache===null&&(this.neverShowAgainCache=this.storage.get(m,h.StorageScope.APPLICATION)==="true"),this.neverShowAgainCache}setNeverShowAgain(e){this.neverShowAgainCache=e,this.storage.store(m,e?"true":"false",h.StorageScope.APPLICATION,h.StorageTarget.MACHINE)}skipWelcome(){return this.skipWelcomeFlag}setSkipWelcome(e){this.skipWelcomeFlag=e}claim(e){return this.owner&&this.owner!==e?!1:(this.owner=e,!0)}release(e){this.owner===e&&(this.owner=null)}registerHost(e){return this.hosts.add(e),()=>this.hosts.delete(e)}request(e){var l;this.pending=null;const t=e?c(e):void 0;this.owner=null;for(const u of this.hosts)(!t||c(u.page)!==t)&&((l=u.dismiss)==null||l.call(u));const s=Array.from(this.hosts).filter(u=>u.visible()&&(!t||c(u.page)===t)),n=$.getActiveWindow().document,i=s.find(u=>u.document()===n)??s[0];return i?(i.start(),!0):(t&&(this.pending={page:t,expires:Date.now()+ee}),!1)}consumeRequest(e){if(!this.pending||c(this.pending.page)!==c(e))return!1;const t=this.pending.expires>Date.now();return this.pending=null,t}}exports.DEFAULT_LOG_LEVEL=y;exports.LogLevel=o;exports.MenuFavoritesService=X;exports.PageTourService=te;exports.TOUR_STATUSES=C;exports.attachedErrorActions=I;exports.canLog=k;exports.canonicalTourPageId=c;exports.createConsoleLogger=G;exports.createPanelCommandRegistry=Q;exports.messageErrorPresenter=B;exports.withErrorActions=Y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../defineSettings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../defineSettings-D0CSMcyy.cjs"),r=require("../stateDbStore-CThsVch-.cjs"),t=require("../useSettingsSubscription-DKjCwmRd.cjs"),i=require("../headerIconOverrides-Bn1QuODq.cjs"),n=["auto","antialiased","none"],o=["on","off"],s="autodetect",S=["sshx","sql"],a=["colorful","monochrome"],_=["colorful","normal"],g=!0,O=!0;exports.clearPluginConfigDefaults=e.clearPluginConfigDefaults;exports.defineSettings=e.defineSettings;exports.defineSettingsValue=e.defineSettingsValue;exports.deriveDefault=e.deriveDefault;exports.deriveNormalize=e.deriveNormalize;exports.deriveNormalizePartial=e.deriveNormalizePartial;exports.getContributedGroupDefault=e.getContributedGroupDefault;exports.getGroupByKey=e.getGroupByKey;exports.getRegisteredSettingsGroups=e.getRegisteredSettingsGroups;exports.hydrateRegisteredSettings=e.hydrateRegisteredSettings;exports.normalizeField=e.normalizeField;exports.onAnySettingsChange=e.onAnySettingsChange;exports.resetPluginConfigDefaultsForTest=e.resetPluginConfigDefaultsForTest;exports.resetSettingsGroupForTest=e.resetSettingsGroupForTest;exports.resolveLayers=e.resolveLayers;exports.scopeAllowsLayer=e.scopeAllowsLayer;exports.setPluginConfigDefaults=e.setPluginConfigDefaults;exports.subscribePluginConfigDefaults=e.subscribePluginConfigDefaults;exports.SCOPE_MAP=r.SCOPE_MAP;exports.StorageScope=r.StorageScope;exports.StorageTarget=r.StorageTarget;exports.StoredSettingUnreadableError=r.StoredSettingUnreadableError;exports.stateDbStore=r.stateDbStore;exports.DEFAULT_NOTIFICATION_SETTINGS=t.DEFAULT_NOTIFICATION_SETTINGS;exports.MAX_LONG_RUNNING_THRESHOLD_MS=t.MAX_LONG_RUNNING_THRESHOLD_MS;exports.MIN_LONG_RUNNING_THRESHOLD_MS=t.MIN_LONG_RUNNING_THRESHOLD_MS;exports.notificationSettings=t.notificationSettings;exports.parseLongRunningThresholdMs=t.parseLongRunningThresholdMs;exports.useSettingsSubscription=t.useSettingsSubscription;exports.clearHeaderIconOverride=i.clearHeaderIconOverride;exports.getHeaderIconOverride=i.getHeaderIconOverride;exports.getHeaderIconOverrides=i.getHeaderIconOverrides;exports.headerIconOverridesSettings=i.headerIconOverridesSettings;exports.setHeaderIconOverride=i.setHeaderIconOverride;exports.DATABASE_EXPLORER_SHOW_ADMIN_BADGES_DEFAULT=O;exports.DATABASE_EXPLORER_SHOW_ALL_DATABASES_DEFAULT=g;exports.DETACHED_EDITOR_TOOLBAR_SCOPES=S;exports.EDITOR_FONT_SMOOTHINGS=n;exports.ICON_COLOR_VARIANTS=a;exports.KEYBOARD_LAYOUT_AUTODETECT=s;exports.QUICK_SUGGESTION_MODES=o;exports.STATUS_RAIL_STYLES=_;
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { b as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const e = ["auto", "antialiased", "none"], s = ["on", "off"], a = "autodetect", t = ["sshx", "sql"], o = ["colorful", "monochrome"], r = ["colorful", "normal"], n = !0, i = !0;
|
|
1
|
+
import { c as g, d as O, a as l, b as T, e as A, f as c, g as u, h as E, i as d, j as D, n as f, o as I, r as N, k as L, l as R, s as p, m as C, p as G } from "../defineSettings-Di1sG81q.js";
|
|
2
|
+
import { b as m, S as U, a as M, c as P, s as h } from "../stateDbStore-DHZFUIEt.js";
|
|
3
|
+
import { D as b, M as F, a as B, n as x, p as y, u as z } from "../useSettingsSubscription-DLEk4k4j.js";
|
|
4
|
+
import { c as X, g as Y, a as V, h as W, s as j } from "../headerIconOverrides-Dh2PaOcO.js";
|
|
5
|
+
const e = ["auto", "antialiased", "none"], s = ["on", "off"], a = "autodetect", t = ["sshx", "sql"], r = ["colorful", "monochrome"], o = ["colorful", "normal"], n = !0, i = !0;
|
|
7
6
|
export {
|
|
8
7
|
i as DATABASE_EXPLORER_SHOW_ADMIN_BADGES_DEFAULT,
|
|
9
8
|
n as DATABASE_EXPLORER_SHOW_ALL_DATABASES_DEFAULT,
|
|
10
9
|
b as DEFAULT_NOTIFICATION_SETTINGS,
|
|
11
10
|
t as DETACHED_EDITOR_TOOLBAR_SCOPES,
|
|
12
11
|
e as EDITOR_FONT_SMOOTHINGS,
|
|
13
|
-
|
|
12
|
+
r as ICON_COLOR_VARIANTS,
|
|
14
13
|
a as KEYBOARD_LAYOUT_AUTODETECT,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
F as MAX_LONG_RUNNING_THRESHOLD_MS,
|
|
15
|
+
B as MIN_LONG_RUNNING_THRESHOLD_MS,
|
|
17
16
|
s as QUICK_SUGGESTION_MODES,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
m as SCOPE_MAP,
|
|
18
|
+
o as STATUS_RAIL_STYLES,
|
|
19
|
+
U as StorageScope,
|
|
20
|
+
M as StorageTarget,
|
|
21
|
+
P as StoredSettingUnreadableError,
|
|
22
|
+
X as clearHeaderIconOverride,
|
|
23
|
+
g as clearPluginConfigDefaults,
|
|
25
24
|
O as defineSettings,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
l as defineSettingsValue,
|
|
26
|
+
T as deriveDefault,
|
|
27
|
+
A as deriveNormalize,
|
|
28
|
+
c as deriveNormalizePartial,
|
|
30
29
|
u as getContributedGroupDefault,
|
|
31
30
|
E as getGroupByKey,
|
|
32
|
-
|
|
31
|
+
Y as getHeaderIconOverride,
|
|
33
32
|
V as getHeaderIconOverrides,
|
|
34
33
|
d as getRegisteredSettingsGroups,
|
|
35
34
|
W as headerIconOverridesSettings,
|
|
36
35
|
D as hydrateRegisteredSettings,
|
|
37
36
|
f as normalizeField,
|
|
38
|
-
|
|
37
|
+
x as notificationSettings,
|
|
39
38
|
I as onAnySettingsChange,
|
|
40
|
-
|
|
39
|
+
y as parseLongRunningThresholdMs,
|
|
41
40
|
N as resetPluginConfigDefaultsForTest,
|
|
42
41
|
L as resetSettingsGroupForTest,
|
|
43
42
|
R as resolveLayers,
|
|
@@ -46,5 +45,5 @@ export {
|
|
|
46
45
|
C as setPluginConfigDefaults,
|
|
47
46
|
h as stateDbStore,
|
|
48
47
|
G as subscribePluginConfigDefaults,
|
|
49
|
-
|
|
48
|
+
z as useSettingsSubscription
|
|
50
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./bugIndicatingError-D2X5Hfgg.cjs");var u=(t=>(t[t.APPLICATION=-1]="APPLICATION",t[t.PROFILE=0]="PROFILE",t[t.WORKSPACE=1]="WORKSPACE",t[t.CONNECTION=2]="CONNECTION",t))(u||{}),o=(t=>(t[t.USER=0]="USER",t[t.MACHINE=1]="MACHINE",t))(o||{});const s={application:-1,profile:0,connection:2,workspace:1};class c extends Error{constructor(i,n,r){super(`[settings] the stored value of "${i}" (${n}) is not JSON`,{cause:r}),this.key=i,this.scope=n,this.name="StoredSettingUnreadableError"}}let e=null;function E(t){if(e!==null)throw new a.BugIndicatingError("[settings] the realm already bound its settings backend — it is bound once, at startup");e=t}function b(){return e!==null}function d(t){if(e===null)throw new a.BugIndicatingError(`[settings] "${t}" used before the realm bound its settings backend — call hydrateRegisteredSettings(backend) at startup.`);return e}function O(t,i=0){return{read:n=>{const r=d(t).get(t,s[n]);if(r!==void 0)try{return JSON.parse(r)}catch(l){throw new c(t,n,l)}},write:async(n,r)=>{d(t).store(t,JSON.stringify(n),s[r],i)}}}exports.SCOPE_MAP=s;exports.StorageScope=u;exports.StorageTarget=o;exports.StoredSettingUnreadableError=c;exports.bindSettingsBackend=E;exports.isSettingsBackendBound=b;exports.stateDbStore=O;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { B as d } from "./bugIndicatingError-h3J5qkL6.js";
|
|
2
|
+
var l = /* @__PURE__ */ ((n) => (n[n.APPLICATION = -1] = "APPLICATION", n[n.PROFILE = 0] = "PROFILE", n[n.WORKSPACE = 1] = "WORKSPACE", n[n.CONNECTION = 2] = "CONNECTION", n))(l || {}), o = /* @__PURE__ */ ((n) => (n[n.USER = 0] = "USER", n[n.MACHINE = 1] = "MACHINE", n))(o || {});
|
|
3
|
+
const i = {
|
|
4
|
+
application: -1,
|
|
5
|
+
profile: 0,
|
|
6
|
+
connection: 2,
|
|
7
|
+
workspace: 1
|
|
8
|
+
/* WORKSPACE */
|
|
9
|
+
};
|
|
10
|
+
class c extends Error {
|
|
11
|
+
constructor(e, t, r) {
|
|
12
|
+
super(`[settings] the stored value of "${e}" (${t}) is not JSON`, { cause: r }), this.key = e, this.scope = t, this.name = "StoredSettingUnreadableError";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
let s = null;
|
|
16
|
+
function O(n) {
|
|
17
|
+
if (s !== null)
|
|
18
|
+
throw new d(
|
|
19
|
+
"[settings] the realm already bound its settings backend — it is bound once, at startup"
|
|
20
|
+
);
|
|
21
|
+
s = n;
|
|
22
|
+
}
|
|
23
|
+
function b() {
|
|
24
|
+
return s !== null;
|
|
25
|
+
}
|
|
26
|
+
function a(n) {
|
|
27
|
+
if (s === null)
|
|
28
|
+
throw new d(
|
|
29
|
+
`[settings] "${n}" used before the realm bound its settings backend — call hydrateRegisteredSettings(backend) at startup.`
|
|
30
|
+
);
|
|
31
|
+
return s;
|
|
32
|
+
}
|
|
33
|
+
function f(n, e = 0) {
|
|
34
|
+
return {
|
|
35
|
+
read: (t) => {
|
|
36
|
+
const r = a(n).get(n, i[t]);
|
|
37
|
+
if (r !== void 0)
|
|
38
|
+
try {
|
|
39
|
+
return JSON.parse(r);
|
|
40
|
+
} catch (u) {
|
|
41
|
+
throw new c(n, t, u);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
write: async (t, r) => {
|
|
45
|
+
a(n).store(n, JSON.stringify(t), i[r], e);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
l as S,
|
|
51
|
+
o as a,
|
|
52
|
+
i as b,
|
|
53
|
+
c,
|
|
54
|
+
O as d,
|
|
55
|
+
b as i,
|
|
56
|
+
f as s
|
|
57
|
+
};
|