@vokril/ui-solid 0.2.0 → 0.3.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 +24 -1
- package/dist/{AttributeGrid-DIXRIlOc.cjs → AttributeGrid-DgORu6BF.cjs} +1 -1
- package/dist/{AttributeGrid-ijp495PQ.js → AttributeGrid-iOgTCpF7.js} +4 -4
- package/dist/{Button-DwrhdGJd.js → Button-CCm03bSE.js} +2 -2
- package/dist/{Button-B9GkMXVu.cjs → Button-DntBQ4fM.cjs} +1 -1
- package/dist/{CommandPalette-DYoGvfhU.cjs → CommandPalette-CF0B1C8k.cjs} +1 -1
- package/dist/{CommandPalette-BUPt-KKd.js → CommandPalette-DiCgZhOV.js} +9 -9
- package/dist/{CopyButton-MwE6Yanp.cjs → CopyButton-BxwyIJxL.cjs} +1 -1
- package/dist/{CopyButton-DNVyxYsa.js → CopyButton-ClqxiGPb.js} +1 -1
- package/dist/{DateRangePicker-Bq7tOjcy.js → DateRangePicker-Qho0OzUE.js} +4 -4
- package/dist/{DateRangePicker-1Z9ik8dX.cjs → DateRangePicker-dLlHJR71.cjs} +1 -1
- package/dist/{GuidedTour-CfdVAiPb.js → GuidedTour-C6Na3wqL.js} +1212 -1246
- package/dist/{GuidedTour-B9f4KNrW.cjs → GuidedTour-DzQoun_d.cjs} +9 -9
- package/dist/IconPicker-BreG8jKY.cjs +1 -0
- package/dist/{IconPicker-D6u_c4aZ.js → IconPicker-CO5TWhFx.js} +17 -17
- package/dist/{Input-BFQPx2vy.js → Input-BqiQPUxA.js} +1 -1
- package/dist/{Input-BGISaDoR.cjs → Input-BrxV_Xcb.cjs} +1 -1
- package/dist/{Modal-BbXTj7pn.cjs → Modal-BqajyLjD.cjs} +1 -1
- package/dist/{Modal-CymMi6pT.js → Modal-DdbgnOMR.js} +98 -98
- package/dist/{PageSkeleton-B1ilf_e0.js → PageSkeleton-DfLEHkrh.js} +9 -9
- package/dist/{PageSkeleton-CbL10kfw.cjs → PageSkeleton-VbWHl878.cjs} +3 -3
- package/dist/{SearchableSelect-DL8gN3uQ.js → SearchableSelect-CBpLrNvW.js} +3 -3
- package/dist/{SearchableSelect-DEVOuNMk.cjs → SearchableSelect-D6yjIQO1.cjs} +1 -1
- package/dist/StatusBarNotificationBell-CGW8eLXe.cjs +4 -0
- package/dist/{StatusBarNotificationBell-BWKZJj4r.js → StatusBarNotificationBell-DUiOZ0m5.js} +14 -14
- package/dist/Stepper-B_nRDFxN.cjs +1 -0
- package/dist/{Stepper-CMj6X0hu.js → Stepper-CrXi8mfh.js} +3 -3
- package/dist/{Textarea-DgVXMcvw.js → Textarea-CXFZz3Oe.js} +1 -1
- package/dist/{Textarea-DHKgbDMq.cjs → Textarea-vl5fZzJa.cjs} +1 -1
- package/dist/{TimeSeriesChart-WQ_5GGxu.cjs → TimeSeriesChart-BzzqarqB.cjs} +1 -1
- package/dist/{TimeSeriesChart-CWElte_X.js → TimeSeriesChart-D18yHUrf.js} +1 -1
- package/dist/{ToggleButton-Bd9nADaB.js → ToggleButton-BiEKoA4q.js} +6 -6
- package/dist/{ToggleButton-BrZHAmBD.cjs → ToggleButton-l1cEdv9w.cjs} +1 -1
- package/dist/_internal/app/icons/iconSetRegistry.d.cts +10 -0
- package/dist/_internal/app/icons/iconSetRegistry.d.ts +10 -0
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +27 -0
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +27 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +15 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +15 -0
- package/dist/_internal/app/keybindings/contextKey/builtins.d.cts +48 -2
- package/dist/_internal/app/keybindings/contextKey/builtins.d.ts +48 -2
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +30 -0
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +30 -0
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/{server/announcerService-Cz271R3_.js → announcerService-B7yicxvU.js} +1 -1
- package/dist/{announcerService-aMJZgWvZ.cjs → announcerService-D_pFE24a.cjs} +1 -1
- package/dist/builtins-DM7FDxEt.cjs +1 -0
- package/dist/builtins-XOM9gfIx.js +74 -0
- package/dist/{catalogNotify-Ct4lFOLm.cjs → catalogNotify-B6x3enJ5.cjs} +3 -3
- package/dist/{catalogNotify-CpYLdvEy.js → catalogNotify-CcaMBipB.js} +52 -52
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createResizableSidebar-_yb33Qli.cjs +1 -0
- package/dist/{createResizableSidebar-B-448Xy-.js → createResizableSidebar-onQNGhy_.js} +75 -75
- package/dist/{server/defineSettings-C1g7a15Z.js → defineSettings-By5ell8e.js} +1 -1
- package/dist/{server/defineSettings-ChU6Fp3a.cjs → defineSettings-DRv1FRbv.cjs} +1 -1
- package/dist/descriptor-7e-M9YCk.cjs +1 -0
- package/dist/descriptor-DxSLz4-c.js +1106 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +5 -5
- package/dist/displayOwner-BNw2Foa_.cjs +1 -0
- package/dist/displayOwner-B_ezJv-O.js +75 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +3 -3
- package/dist/{focusModality-XwqzUScC.js → focusModality-B150daiS.js} +2 -2
- package/dist/{focusModality-DP3Alh3k.cjs → focusModality-PPfeW05D.cjs} +1 -1
- package/dist/{format-CKQJNZwf.js → format-C46MmwwW.js} +3 -3
- package/dist/{format-Cj3xSpw6.cjs → format-Cy7RJpYG.cjs} +1 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/forms/numberInputClamp.d.cts +1 -1
- package/dist/forms/numberInputClamp.d.ts +1 -1
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/{headerIconOverrides-BnJaJqAJ.cjs → headerIconOverrides-64lFnqTt.cjs} +1 -1
- package/dist/{server/headerIconOverrides-BNiSWfFJ.js → headerIconOverrides-BCzeaBA1.js} +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +3 -0
- package/dist/host/index.d.ts +3 -0
- package/dist/host/index.js +68 -62
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/{server/i18n-BN4NEmw6.js → i18n-B_XRSWWN.js} +1 -1
- package/dist/{server/i18n-JhoYAx5N.cjs → i18n-DZZyw7Iu.cjs} +1 -1
- package/dist/iconSetRegistry-CMUqn1IQ.cjs +1 -0
- package/dist/{tablerIconRegistry-Da8Hw_kr.js → iconSetRegistry-r8c82MmK.js} +2 -2
- package/dist/icons/index.cjs +1 -1
- package/dist/icons/index.d.cts +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +419 -412
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/{mainRealmDom-POWe8_Pf.js → mainRealmDom-COGBiX78.js} +1 -1
- package/dist/{mainRealmDom-Ds5Zc1QE.cjs → mainRealmDom-DijAgSXt.cjs} +1 -1
- package/dist/{menuFavorites-D6ILaBPZ.js → menuFavorites-Db1DpHX6.js} +1 -1
- package/dist/{menuFavorites-DAzw7zjN.cjs → menuFavorites-EluLLTfi.cjs} +1 -1
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/navigation/pageHeaderContract.d.cts +1 -1
- package/dist/navigation/pageHeaderContract.d.ts +1 -1
- package/dist/{server/notification-CX0xc5jc.cjs → notification-CrxHMXsk.cjs} +1 -1
- package/dist/{notification-Bepj_MAz.js → notification-DFbp3S_f.js} +1 -1
- package/dist/{notificationSuppressions-aS8dpNnq.js → notificationSuppressions-CBIJ4bC4.js} +53 -53
- package/dist/notificationSuppressions-DFbFpayS.cjs +1 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +7 -7
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +6 -6
- package/dist/{server/preferencesCache-Zqtds5QF.js → preferencesCache-BhUd3K9p.js} +1 -1
- package/dist/{preferencesCache-X6b8L__G.cjs → preferencesCache-DJPCTPYx.cjs} +1 -1
- package/dist/{server/rendererLogging-BFSH5YKd.cjs → rendererLogging-B4XML4_G.cjs} +2 -2
- package/dist/{server/rendererLogging-RDouoz5K.js → rendererLogging-Edo4ALXU.js} +2 -2
- package/dist/server/{AttributeGrid-_7NdS1WK.js → AttributeGrid-Bq6AC927.js} +3 -3
- package/dist/server/{AttributeGrid-piFH6Xyi.cjs → AttributeGrid-Cz49ZLQJ.cjs} +1 -1
- package/dist/server/{Button-CRfjjdJW.cjs → Button-C9c6mzTA.cjs} +1 -1
- package/dist/server/{Button-DyPAaop_.js → Button-CHjpZWyZ.js} +1 -1
- package/dist/server/{CommandPalette-CW1Xw15d.cjs → CommandPalette-CklLeIaO.cjs} +1 -1
- package/dist/server/{CommandPalette-Cr81FRAH.js → CommandPalette-Dq-wVRJf.js} +5 -5
- package/dist/server/{CopyButton-5-c3aEbO.cjs → CopyButton-C3AnCUW9.cjs} +1 -1
- package/dist/server/{CopyButton-aIjxxlvQ.js → CopyButton-DOeXnVFC.js} +1 -1
- package/dist/server/{DateRangePicker-rlcLBpJH.cjs → DateRangePicker-BZIjmD5b.cjs} +1 -1
- package/dist/server/{DateRangePicker-DQ6AkI8q.js → DateRangePicker-tEwswamx.js} +3 -3
- package/dist/server/{GuidedTour-qJV4uaFX.js → GuidedTour-CC3huRhY.js} +1078 -1113
- package/dist/server/{GuidedTour-BVElbQi6.cjs → GuidedTour-Dik03Ffv.cjs} +11 -11
- package/dist/server/IconPicker-DpsgVG2H.cjs +1 -0
- package/dist/server/{IconPicker-DHctBAMA.js → IconPicker-tGQ6T_7R.js} +18 -18
- package/dist/server/{Modal-BgwyBtzV.js → Modal-C4E01jt8.js} +2 -2
- package/dist/server/{Modal-DZlKkUDu.cjs → Modal-w2CtUJ-g.cjs} +1 -1
- package/dist/server/{PageSkeleton-Kk8oxeYs.js → PageSkeleton-BIoewFZz.js} +8 -8
- package/dist/server/{PageSkeleton-Dh_Aj1rd.cjs → PageSkeleton-t1PiXgcp.cjs} +3 -3
- package/dist/server/{SearchableSelect-y9pGwJ-n.js → SearchableSelect-CTDUjMFB.js} +2 -2
- package/dist/server/{SearchableSelect-vuDEubiH.cjs → SearchableSelect-T6iS1AYR.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-CFQiQ4EC.js → StatusBarNotificationBell-Cg9Zomfn.js} +81 -81
- package/dist/server/{StatusBarNotificationBell-CTAMHPer.cjs → StatusBarNotificationBell-DSuT1si2.cjs} +2 -2
- package/dist/server/{Stepper-DJKBsR1i.cjs → Stepper-CZ695tkt.cjs} +1 -1
- package/dist/server/{Stepper-4jnS2eXn.js → Stepper-Il_NS3YQ.js} +1 -1
- package/dist/server/{TimeSeriesChart-CZigVuc_.js → TimeSeriesChart-CWxwWo-G.js} +1 -1
- package/dist/server/{TimeSeriesChart-D2SG8Ss7.cjs → TimeSeriesChart-Cjpjciv2.cjs} +1 -1
- package/dist/server/{ToggleButton-HiS48_5d.cjs → ToggleButton-CXwvg-Hr.cjs} +1 -1
- package/dist/server/{ToggleButton-C501EuVP.js → ToggleButton-D7Qu7T2P.js} +4 -4
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/{announcerService-Cz271R3_.js → server/announcerService-B7yicxvU.js} +1 -1
- package/dist/server/{announcerService-aMJZgWvZ.cjs → announcerService-D_pFE24a.cjs} +1 -1
- package/dist/server/builtins-DM7FDxEt.cjs +1 -0
- package/dist/server/builtins-XOM9gfIx.js +74 -0
- package/dist/server/{catalogNotify-CDW-bK-M.cjs → catalogNotify-CTZ3DSTN.cjs} +4 -4
- package/dist/server/{catalogNotify-_2rg9gGZ.js → catalogNotify-Dnyfrb-0.js} +92 -92
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createResizableSidebar-COZjMAIY.js → createResizableSidebar-CBSfZVJk.js} +20 -20
- package/dist/server/createResizableSidebar-rfcmiXuS.cjs +1 -0
- package/dist/{defineSettings-C1g7a15Z.js → server/defineSettings-By5ell8e.js} +1 -1
- package/dist/{defineSettings-ChU6Fp3a.cjs → server/defineSettings-DRv1FRbv.cjs} +1 -1
- package/dist/server/descriptor-BXVyZiT7.cjs +1 -0
- package/dist/server/descriptor-CqLXoy2i.js +992 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +4 -4
- package/dist/server/displayOwner-BNw2Foa_.cjs +1 -0
- package/dist/server/displayOwner-B_ezJv-O.js +75 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/{focusModality-BnOnbaen.cjs → focusModality-CeTPyRiF.cjs} +1 -1
- package/dist/server/{focusModality-ABJEOL1D.js → focusModality-DmOZptla.js} +2 -2
- package/dist/server/{format-BU_aMpTT.cjs → format-BWHKiXRe.cjs} +1 -1
- package/dist/server/{format-CZuUwpfB.js → format-BubrMUMq.js} +1 -1
- 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-BnJaJqAJ.cjs → headerIconOverrides-64lFnqTt.cjs} +1 -1
- package/dist/{headerIconOverrides-BNiSWfFJ.js → server/headerIconOverrides-BCzeaBA1.js} +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +72 -66
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/{i18n-BN4NEmw6.js → server/i18n-B_XRSWWN.js} +1 -1
- package/dist/{i18n-JhoYAx5N.cjs → server/i18n-DZZyw7Iu.cjs} +1 -1
- package/dist/server/iconSetRegistry-u0H4_7nI.cjs +1 -0
- package/dist/server/icons/index.cjs +1 -1
- package/dist/server/icons/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +722 -715
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/{menuFavorites-D6ILaBPZ.js → menuFavorites-Db1DpHX6.js} +1 -1
- package/dist/server/{menuFavorites-DAzw7zjN.cjs → menuFavorites-EluLLTfi.cjs} +1 -1
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/{notification-CX0xc5jc.cjs → server/notification-CrxHMXsk.cjs} +1 -1
- package/dist/server/{notification-Bepj_MAz.js → notification-DFbp3S_f.js} +1 -1
- package/dist/server/{notificationSuppressions-JKZaCrMN.cjs → notificationSuppressions-D7FZmJy8.cjs} +1 -1
- package/dist/server/{notificationSuppressions-FPh4wkRy.js → notificationSuppressions-DkrUMXHx.js} +2 -2
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +7 -7
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +5 -5
- package/dist/{preferencesCache-Zqtds5QF.js → server/preferencesCache-BhUd3K9p.js} +1 -1
- package/dist/server/{preferencesCache-X6b8L__G.cjs → preferencesCache-DJPCTPYx.cjs} +1 -1
- package/dist/{rendererLogging-BFSH5YKd.cjs → server/rendererLogging-B4XML4_G.cjs} +2 -2
- package/dist/{rendererLogging-RDouoz5K.js → server/rendererLogging-Edo4ALXU.js} +2 -2
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +3 -3
- package/dist/server/{settingsSearchContributor-DqYjIJVw.cjs → settingsSearchContributor-BHsOfue1.cjs} +1 -1
- package/dist/server/{settingsSearchContributor-Sae2-vbZ.js → settingsSearchContributor-xo70xEuW.js} +3 -3
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +9 -8
- package/dist/server/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/server/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/{settingsSearchContributor-DP_HU8Pd.js → settingsSearchContributor-Ba4vBBmO.js} +3 -3
- package/dist/{settingsSearchContributor-DxQyhu1R.cjs → settingsSearchContributor-CYWXZV0b.cjs} +1 -1
- package/dist/solid/_internal/app/icons/{tablerIconRegistry.js → iconSetRegistry.js} +3 -7
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +32 -0
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +22 -0
- package/dist/solid/_internal/app/keybindings/contextKey/builtins.js +10 -0
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +25 -0
- package/dist/solid/_internal/base/bestEffort.js +2 -2
- package/dist/solid/_internal/contract/catalogNotify.js +1 -1
- package/dist/solid/_internal/contract/transfer/textEncoding.js +1 -1
- package/dist/solid/_internal/platform/errors/diagnosticReport.js +1 -1
- package/dist/solid/_internal/platform/vendorErrors/index.js +2 -2
- package/dist/solid/_internal/platform/window/displayOwner.js +4 -4
- package/dist/solid/feedback/ErrorBoundary.jsx +1 -1
- package/dist/solid/forms/IconPicker.jsx +2 -2
- package/dist/solid/host/index.js +3 -0
- package/dist/solid/icons/index.jsx +1 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +5 -5
- package/dist/solid/navigation/Tabs.jsx +2 -2
- package/dist/solid/notifications/NotificationPanel.jsx +2 -2
- package/dist/solid/notifications/notificationAudio.js +4 -4
- package/dist/solid/notifications/webhookDelivery.js +1 -1
- package/dist/solid/overlay/Modal.jsx +1 -1
- package/dist/solid/tree/TreeSurface.jsx +17 -0
- package/dist/solid/tree/createTreeController.js +7 -6
- package/dist/solid/tree/index.js +1 -0
- package/dist/solid/tree/selectAllInScope.js +47 -0
- package/dist/solid/tree/treeKeymap.js +0 -5
- package/dist/style.css +1 -1
- package/dist/{tooltipCoordinator-Dm4qkkL7.js → tooltipCoordinator-GV0L9lXH.js} +1 -1
- package/dist/{tooltipCoordinator-CuReoi-Y.cjs → tooltipCoordinator-y5YP3tsJ.cjs} +1 -1
- package/dist/tree/createTreeController.d.cts +5 -0
- package/dist/tree/createTreeController.d.ts +5 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.d.cts +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +9 -8
- package/dist/tree/selectAllInScope.d.cts +5 -0
- package/dist/tree/selectAllInScope.d.ts +5 -0
- package/dist/tree/treeKeymap.d.cts +2 -4
- package/dist/tree/treeKeymap.d.ts +2 -4
- package/dist/ui.css +1 -1
- package/dist/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/package.json +1 -1
- package/dist/IconPicker-CdWBUDg8.cjs +0 -1
- package/dist/StatusBarNotificationBell-DIxJNADf.cjs +0 -4
- package/dist/Stepper-DvmytRIe.cjs +0 -1
- package/dist/_internal/app/icons/tablerIconRegistry.d.cts +0 -16
- package/dist/_internal/app/icons/tablerIconRegistry.d.ts +0 -16
- package/dist/createResizableSidebar-BunLsdM1.cjs +0 -1
- package/dist/descriptor-BUfj0gQG.js +0 -1059
- package/dist/descriptor-DZKBkm2H.cjs +0 -1
- package/dist/displayOwner-B11aUTFt.cjs +0 -1
- package/dist/displayOwner-B8CAEiHu.js +0 -75
- package/dist/notificationSuppressions-DaqXCX63.cjs +0 -1
- package/dist/server/IconPicker-OkOT7sTz.cjs +0 -1
- package/dist/server/createResizableSidebar-BTjNQOi9.cjs +0 -1
- package/dist/server/descriptor-CRBceC5O.cjs +0 -1
- package/dist/server/descriptor-lk-Bhef_.js +0 -951
- package/dist/server/displayOwner-B11aUTFt.cjs +0 -1
- package/dist/server/displayOwner-B8CAEiHu.js +0 -75
- package/dist/server/tablerIconRegistry-CmYr538-.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-DOZlLrpo.js +0 -113
- package/dist/tablerIconRegistry-C85jD5eX.cjs +0 -1
- package/dist/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/visibleBrowserRegistry-DOZlLrpo.js +0 -113
- /package/dist/server/{tablerIconRegistry-yPeAzzz7.js → iconSetRegistry-yPeAzzz7.js} +0 -0
|
@@ -3,7 +3,9 @@ export declare const PLATFORM_KEY = "platform";
|
|
|
3
3
|
export declare const IS_MAC_KEY = "isMac";
|
|
4
4
|
export declare const IS_WINDOWS_KEY = "isWindows";
|
|
5
5
|
export declare const IS_LINUX_KEY = "isLinux";
|
|
6
|
-
export declare function platformContextValues(
|
|
6
|
+
export declare function platformContextValues(
|
|
7
|
+
/** A `process.platform` value (`'darwin'`, `'win32'`, `'linux'` …); typed as a string so the kit's types need no Node typings. */
|
|
8
|
+
platform: string): Readonly<Record<string, ContextValue>>;
|
|
7
9
|
/**
|
|
8
10
|
* The reference editor's development context key: true in a development build (`app/env.ts:isDevBuild`, the
|
|
9
11
|
* renderer's one build-mode home), published once at the root. Gates the chords the reference binds for
|
|
@@ -56,6 +58,11 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
56
58
|
readonly sqlEditorFocus: "sqlEditorFocus";
|
|
57
59
|
readonly sqlBindPromptFocus: "sqlBindPromptFocus";
|
|
58
60
|
readonly dashboardFocus: "dashboardFocus";
|
|
61
|
+
/**
|
|
62
|
+
* A category of the dashboard's Categories panel has keyboard focus — `Alt+↑/↓` moves it
|
|
63
|
+
* (`surfaces/dashboardCategories.ts`). Not the rename box or the actions button: they own their keys.
|
|
64
|
+
*/
|
|
65
|
+
readonly dashboardCategoryFocus: "dashboardCategoryFocus";
|
|
59
66
|
readonly rssFeederFocus: "rssFeederFocus";
|
|
60
67
|
readonly rssItemSelected: "rssItemSelected";
|
|
61
68
|
readonly explorerFocus: "explorerFocus";
|
|
@@ -81,12 +88,29 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
81
88
|
* surfaces this was measured once and every surface was given its own key; same rule.
|
|
82
89
|
*/
|
|
83
90
|
readonly sshTerminalFocus: "sshTerminalFocus";
|
|
91
|
+
/**
|
|
92
|
+
* Focus is in an SSH terminal WORKSPACE — the SSH page's multi-tab terminal, not a detached SSH terminal: its tab
|
|
93
|
+
* and find verbs (`SshTerminalWorkspaceHandlers`) are scoped by it. Text fields do not count, as for `sshTerminalFocus`.
|
|
94
|
+
*/
|
|
95
|
+
readonly sshTerminalWorkspaceFocus: "sshTerminalWorkspaceFocus";
|
|
96
|
+
/**
|
|
97
|
+
* The reference's key: keyboard focus is in the terminal's find box — `Ctrl/Cmd+F` selects its text there. The
|
|
98
|
+
* terminal's own focus key is false in the box (`terminal/ui/terminalOwnFocus.ts`): the box owns its keys.
|
|
99
|
+
*/
|
|
100
|
+
readonly terminalFindFocused: "terminalFindFocused";
|
|
101
|
+
/** The SSH terminal's find box, its own key for the same reason `sshTerminalFocus` is. */
|
|
102
|
+
readonly sshTerminalFindFocused: "sshTerminalFindFocused";
|
|
84
103
|
/**
|
|
85
104
|
* The active terminal's xterm is in the alternate buffer (vim/less/htop) — the command-mark
|
|
86
105
|
* navigation bindings are guarded by `!terminalAltBufferActive` (reference
|
|
87
106
|
* `altBufferActive.negate()`): the arrow key goes to the full-screen app.
|
|
88
107
|
*/
|
|
89
108
|
readonly terminalAltBufferActive: "terminalAltBufferActive";
|
|
109
|
+
/**
|
|
110
|
+
* The reference's key: keyboard focus is in the terminal's accessible buffer view (`Alt+F2`) — `Alt+↓/↑` go to the
|
|
111
|
+
* next / previous command there (`surfaces/terminal.ts` `TERMINAL_ACCESSIBLE_BUFFER_BINDINGS`).
|
|
112
|
+
*/
|
|
113
|
+
readonly terminalAccessibleBufferFocus: "terminalAccessibleBufferFocus";
|
|
90
114
|
/** The active terminal tab is in a multi-pane group — the gate of the pane focus/size bindings. */
|
|
91
115
|
readonly terminalMultiPane: "terminalMultiPane";
|
|
92
116
|
/**
|
|
@@ -141,8 +165,30 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
141
165
|
readonly sqlSnippetsFocus: "sqlSnippetsFocus";
|
|
142
166
|
/** Focus is in the Set Comment dialog's comment field — `Ctrl/Cmd+Enter` sets the comment. */
|
|
143
167
|
readonly objectCommentFocus: "objectCommentFocus";
|
|
144
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Focus is in a cell value editor — the maximized editor, the grid's inline editor or a record view field —
|
|
170
|
+
* `Ctrl/Cmd+Enter` saves the value.
|
|
171
|
+
*/
|
|
145
172
|
readonly cellEditorFocus: "cellEditorFocus";
|
|
173
|
+
/**
|
|
174
|
+
* Focus is in a cell value text field — the grid's inline cell editor or a record view field — `Ctrl/Cmd+Backspace`
|
|
175
|
+
* sets the value to NULL (`surfaces/cellValueField.ts`). Not the maximized editor: its code editor keeps the chord.
|
|
176
|
+
*/
|
|
177
|
+
readonly cellValueFieldFocus: "cellValueFieldFocus";
|
|
178
|
+
/**
|
|
179
|
+
* Focus is in a JSON tree view — the cell detail, the inspector's Value tab or the result's JSON view —
|
|
180
|
+
* `Ctrl/Cmd+F` focuses its filter (`surfaces/jsonTree.ts`).
|
|
181
|
+
*/
|
|
182
|
+
readonly jsonTreeFocus: "jsonTreeFocus";
|
|
183
|
+
/** Focus is in a JSON tree view's filter — `Shift+Enter` goes to the previous match (plain `Enter` is the filter's own). */
|
|
184
|
+
readonly jsonTreeFilterFocus: "jsonTreeFilterFocus";
|
|
185
|
+
/**
|
|
186
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
187
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
188
|
+
* last entered (`context/useListCommands.ts`).
|
|
189
|
+
*/
|
|
190
|
+
readonly listFocus: "listFocus";
|
|
191
|
+
readonly listSupportsMultiselect: "listSupportsMultiselect";
|
|
146
192
|
/** Focus is in the Source Control commit message box — `Ctrl/Cmd+Enter` commits (the reference's `scm.acceptInput`). */
|
|
147
193
|
readonly scmCommitInputFocus: "scmCommitInputFocus";
|
|
148
194
|
/** Focus is in the terminal command history palette — its row verbs (`Ctrl+Enter`, `Shift+Enter`, `Delete`). */
|
|
@@ -3,7 +3,9 @@ export declare const PLATFORM_KEY = "platform";
|
|
|
3
3
|
export declare const IS_MAC_KEY = "isMac";
|
|
4
4
|
export declare const IS_WINDOWS_KEY = "isWindows";
|
|
5
5
|
export declare const IS_LINUX_KEY = "isLinux";
|
|
6
|
-
export declare function platformContextValues(
|
|
6
|
+
export declare function platformContextValues(
|
|
7
|
+
/** A `process.platform` value (`'darwin'`, `'win32'`, `'linux'` …); typed as a string so the kit's types need no Node typings. */
|
|
8
|
+
platform: string): Readonly<Record<string, ContextValue>>;
|
|
7
9
|
/**
|
|
8
10
|
* The reference editor's development context key: true in a development build (`app/env.ts:isDevBuild`, the
|
|
9
11
|
* renderer's one build-mode home), published once at the root. Gates the chords the reference binds for
|
|
@@ -56,6 +58,11 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
56
58
|
readonly sqlEditorFocus: "sqlEditorFocus";
|
|
57
59
|
readonly sqlBindPromptFocus: "sqlBindPromptFocus";
|
|
58
60
|
readonly dashboardFocus: "dashboardFocus";
|
|
61
|
+
/**
|
|
62
|
+
* A category of the dashboard's Categories panel has keyboard focus — `Alt+↑/↓` moves it
|
|
63
|
+
* (`surfaces/dashboardCategories.ts`). Not the rename box or the actions button: they own their keys.
|
|
64
|
+
*/
|
|
65
|
+
readonly dashboardCategoryFocus: "dashboardCategoryFocus";
|
|
59
66
|
readonly rssFeederFocus: "rssFeederFocus";
|
|
60
67
|
readonly rssItemSelected: "rssItemSelected";
|
|
61
68
|
readonly explorerFocus: "explorerFocus";
|
|
@@ -81,12 +88,29 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
81
88
|
* surfaces this was measured once and every surface was given its own key; same rule.
|
|
82
89
|
*/
|
|
83
90
|
readonly sshTerminalFocus: "sshTerminalFocus";
|
|
91
|
+
/**
|
|
92
|
+
* Focus is in an SSH terminal WORKSPACE — the SSH page's multi-tab terminal, not a detached SSH terminal: its tab
|
|
93
|
+
* and find verbs (`SshTerminalWorkspaceHandlers`) are scoped by it. Text fields do not count, as for `sshTerminalFocus`.
|
|
94
|
+
*/
|
|
95
|
+
readonly sshTerminalWorkspaceFocus: "sshTerminalWorkspaceFocus";
|
|
96
|
+
/**
|
|
97
|
+
* The reference's key: keyboard focus is in the terminal's find box — `Ctrl/Cmd+F` selects its text there. The
|
|
98
|
+
* terminal's own focus key is false in the box (`terminal/ui/terminalOwnFocus.ts`): the box owns its keys.
|
|
99
|
+
*/
|
|
100
|
+
readonly terminalFindFocused: "terminalFindFocused";
|
|
101
|
+
/** The SSH terminal's find box, its own key for the same reason `sshTerminalFocus` is. */
|
|
102
|
+
readonly sshTerminalFindFocused: "sshTerminalFindFocused";
|
|
84
103
|
/**
|
|
85
104
|
* The active terminal's xterm is in the alternate buffer (vim/less/htop) — the command-mark
|
|
86
105
|
* navigation bindings are guarded by `!terminalAltBufferActive` (reference
|
|
87
106
|
* `altBufferActive.negate()`): the arrow key goes to the full-screen app.
|
|
88
107
|
*/
|
|
89
108
|
readonly terminalAltBufferActive: "terminalAltBufferActive";
|
|
109
|
+
/**
|
|
110
|
+
* The reference's key: keyboard focus is in the terminal's accessible buffer view (`Alt+F2`) — `Alt+↓/↑` go to the
|
|
111
|
+
* next / previous command there (`surfaces/terminal.ts` `TERMINAL_ACCESSIBLE_BUFFER_BINDINGS`).
|
|
112
|
+
*/
|
|
113
|
+
readonly terminalAccessibleBufferFocus: "terminalAccessibleBufferFocus";
|
|
90
114
|
/** The active terminal tab is in a multi-pane group — the gate of the pane focus/size bindings. */
|
|
91
115
|
readonly terminalMultiPane: "terminalMultiPane";
|
|
92
116
|
/**
|
|
@@ -141,8 +165,30 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
141
165
|
readonly sqlSnippetsFocus: "sqlSnippetsFocus";
|
|
142
166
|
/** Focus is in the Set Comment dialog's comment field — `Ctrl/Cmd+Enter` sets the comment. */
|
|
143
167
|
readonly objectCommentFocus: "objectCommentFocus";
|
|
144
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Focus is in a cell value editor — the maximized editor, the grid's inline editor or a record view field —
|
|
170
|
+
* `Ctrl/Cmd+Enter` saves the value.
|
|
171
|
+
*/
|
|
145
172
|
readonly cellEditorFocus: "cellEditorFocus";
|
|
173
|
+
/**
|
|
174
|
+
* Focus is in a cell value text field — the grid's inline cell editor or a record view field — `Ctrl/Cmd+Backspace`
|
|
175
|
+
* sets the value to NULL (`surfaces/cellValueField.ts`). Not the maximized editor: its code editor keeps the chord.
|
|
176
|
+
*/
|
|
177
|
+
readonly cellValueFieldFocus: "cellValueFieldFocus";
|
|
178
|
+
/**
|
|
179
|
+
* Focus is in a JSON tree view — the cell detail, the inspector's Value tab or the result's JSON view —
|
|
180
|
+
* `Ctrl/Cmd+F` focuses its filter (`surfaces/jsonTree.ts`).
|
|
181
|
+
*/
|
|
182
|
+
readonly jsonTreeFocus: "jsonTreeFocus";
|
|
183
|
+
/** Focus is in a JSON tree view's filter — `Shift+Enter` goes to the previous match (plain `Enter` is the filter's own). */
|
|
184
|
+
readonly jsonTreeFilterFocus: "jsonTreeFilterFocus";
|
|
185
|
+
/**
|
|
186
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
187
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
188
|
+
* last entered (`context/useListCommands.ts`).
|
|
189
|
+
*/
|
|
190
|
+
readonly listFocus: "listFocus";
|
|
191
|
+
readonly listSupportsMultiselect: "listSupportsMultiselect";
|
|
146
192
|
/** Focus is in the Source Control commit message box — `Ctrl/Cmd+Enter` commits (the reference's `scm.acceptInput`). */
|
|
147
193
|
readonly scmCommitInputFocus: "scmCommitInputFocus";
|
|
148
194
|
/** Focus is in the terminal command history palette — its row verbs (`Ctrl+Enter`, `Shift+Enter`, `Delete`). */
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ui adapter: the panel command registries the kit itself claims.
|
|
3
|
+
*
|
|
4
|
+
* The host app keeps one module of registries, one per keybinding surface (explorer, SQL editor,
|
|
5
|
+
* terminal, list …): a surface claims its verbs while mounted and a command acts on the claim the
|
|
6
|
+
* user is in. ui ships the registry factory and the one registry its own components claim — the
|
|
7
|
+
* shared list verbs (`listHandlers`, `Ctrl/Cmd+A` on a tree). The other surfaces are the host's.
|
|
8
|
+
*
|
|
9
|
+
* `listHandlers` is a single instance: a host that registers the `list.*` commands reads THIS
|
|
10
|
+
* registry (`@vokril/ui-solid/host`), so its own lists and the kit's trees share one claim stack and
|
|
11
|
+
* one "last focused list".
|
|
12
|
+
*/
|
|
13
|
+
export interface PanelCommandRegistry<T extends object> {
|
|
14
|
+
set(handlers: T): () => void;
|
|
15
|
+
current(): T | null;
|
|
16
|
+
/**
|
|
17
|
+
* Top-down search over the stack (last-mounted first). Lets a surface that can be
|
|
18
|
+
* mounted more than once route a verb to the mount that is actually FOCUSED instead
|
|
19
|
+
* of the one that mounted last.
|
|
20
|
+
*/
|
|
21
|
+
find(predicate: (handlers: T) => boolean): T | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function createPanelCommandRegistry<T extends object>(): PanelCommandRegistry<T>;
|
|
24
|
+
/** The verbs every list and tree shares (the host's `list.*` commands act on the last focused list). */
|
|
25
|
+
export interface ListCommandHandlers {
|
|
26
|
+
isActive(): boolean;
|
|
27
|
+
/** `Ctrl/Cmd+A` — select every row the list's rule takes (a tree widens one level per press). */
|
|
28
|
+
selectAll(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare const listHandlers: PanelCommandRegistry<ListCommandHandlers>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ui adapter: the panel command registries the kit itself claims.
|
|
3
|
+
*
|
|
4
|
+
* The host app keeps one module of registries, one per keybinding surface (explorer, SQL editor,
|
|
5
|
+
* terminal, list …): a surface claims its verbs while mounted and a command acts on the claim the
|
|
6
|
+
* user is in. ui ships the registry factory and the one registry its own components claim — the
|
|
7
|
+
* shared list verbs (`listHandlers`, `Ctrl/Cmd+A` on a tree). The other surfaces are the host's.
|
|
8
|
+
*
|
|
9
|
+
* `listHandlers` is a single instance: a host that registers the `list.*` commands reads THIS
|
|
10
|
+
* registry (`@vokril/ui-solid/host`), so its own lists and the kit's trees share one claim stack and
|
|
11
|
+
* one "last focused list".
|
|
12
|
+
*/
|
|
13
|
+
export interface PanelCommandRegistry<T extends object> {
|
|
14
|
+
set(handlers: T): () => void;
|
|
15
|
+
current(): T | null;
|
|
16
|
+
/**
|
|
17
|
+
* Top-down search over the stack (last-mounted first). Lets a surface that can be
|
|
18
|
+
* mounted more than once route a verb to the mount that is actually FOCUSED instead
|
|
19
|
+
* of the one that mounted last.
|
|
20
|
+
*/
|
|
21
|
+
find(predicate: (handlers: T) => boolean): T | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function createPanelCommandRegistry<T extends object>(): PanelCommandRegistry<T>;
|
|
24
|
+
/** The verbs every list and tree shares (the host's `list.*` commands act on the last focused list). */
|
|
25
|
+
export interface ListCommandHandlers {
|
|
26
|
+
isActive(): boolean;
|
|
27
|
+
/** `Ctrl/Cmd+A` — select every row the list's rule takes (a tree widens one level per press). */
|
|
28
|
+
selectAll(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare const listHandlers: PanelCommandRegistry<ListCommandHandlers>;
|
package/dist/a11y/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../focusModality-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../focusModality-PPfeW05D.cjs"),r=require("../prefersReducedMotion-BQp-Q4UR.cjs");exports.AriaAnnouncer=e.AriaAnnouncer;exports._resetFocusModalityForTests=e._resetFocusModalityForTests;exports.buildGridContainerAria=e.buildGridContainerAria;exports.columnAriaSort=e.columnAriaSort;exports.createTypeahead=e.createTypeahead;exports.gridCellDomId=e.gridCellDomId;exports.initFocusModality=e.initFocusModality;exports.prefersReducedMotion=r.prefersReducedMotion;
|
package/dist/a11y/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, _ as o, b as s, c as i, a as t, g as d, i as n } from "../focusModality-
|
|
1
|
+
import { A as e, _ as o, b as s, c as i, a as t, g as d, i as n } from "../focusModality-B150daiS.js";
|
|
2
2
|
import { p as l } from "../prefersReducedMotion-B2mMn01s.js";
|
|
3
3
|
export {
|
|
4
4
|
e as AriaAnnouncer,
|
|
@@ -2,7 +2,7 @@ var d = Object.defineProperty;
|
|
|
2
2
|
var T = (i, e, t) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var n = (i, e, t) => T(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { B as D } from "./bugIndicatingError-h3J5qkL6.js";
|
|
5
|
-
import { E as h } from "./rendererLogging-
|
|
5
|
+
import { E as h } from "./rendererLogging-Edo4ALXU.js";
|
|
6
6
|
var r;
|
|
7
7
|
((i) => {
|
|
8
8
|
i.serviceIds = /* @__PURE__ */ new Map(), i.DI_TARGET = "$di$target", i.DI_DEPENDENCIES = "$di$dependencies";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var D=Object.defineProperty;var A=(i,e,t)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>A(i,typeof e!="symbol"?e+"":e,t);const E=require("./bugIndicatingError-D2X5Hfgg.cjs"),h=require("./rendererLogging-
|
|
1
|
+
"use strict";var D=Object.defineProperty;var A=(i,e,t)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>A(i,typeof e!="symbol"?e+"":e,t);const E=require("./bugIndicatingError-D2X5Hfgg.cjs"),h=require("./rendererLogging-B4XML4_G.cjs");var s;(i=>{i.serviceIds=new Map,i.DI_TARGET="$di$target",i.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[i.DI_DEPENDENCIES]||[]}i.getServiceDependencies=e})(s||(s={}));m("instantiationService");function S(i,e,t){e[s.DI_TARGET]===e?e[s.DI_DEPENDENCIES].push({id:i,index:t}):(e[s.DI_DEPENDENCIES]=[{id:i,index:t}],e[s.DI_TARGET]=e)}function m(i){if(s.serviceIds.has(i))return s.serviceIds.get(i);const e=function(t,u,r){if(arguments.length!==3)throw new E.BugIndicatingError("@IServiceName-decorator can only be used to decorate a parameter");S(e,t,r)};return e.toString=()=>i,s.serviceIds.set(i,e),e}const I=m("announcerService");class d{constructor(){n(this,"_onDidAnnounce",new h.Emitter);n(this,"onDidAnnounce",this._onDidAnnounce.event);n(this,"_onDidClear",new h.Emitter);n(this,"onDidClear",this._onDidClear.event);n(this,"_latestPolite","");n(this,"_latestAssertive","");n(this,"_clearTimers",{})}announce(e,t,u){let r="polite",o=u;typeof t=="string"?r=t:typeof t=="object"&&t!==null&&(o=t,o.politeness&&(r=o.politeness));const a=e.trim();if(!a)return;let l=a;const _=r==="assertive"?this._latestAssertive:this._latestPolite;_===a?l=`${a}`:_===`${a}`&&(l=a),r==="assertive"?this._latestAssertive=l:this._latestPolite=l;const T={id:`ann_${Date.now()}_${Math.random().toString(36).slice(2,7)}`,message:l,politeness:r,timestamp:Date.now()};this._onDidAnnounce.fire(T);const v=(o==null?void 0:o.timeoutMs)??7e3;v>0&&(this._clearTimers[r]&&clearTimeout(this._clearTimers[r]),this._clearTimers[r]=setTimeout(()=>{this.clear(r)},v))}polite(e,t){this.announce(e,"polite",t)}assertive(e,t){this.announce(e,"assertive",t)}clear(e){e?(this._clearTimers[e]&&(clearTimeout(this._clearTimers[e]),this._clearTimers[e]=void 0),e==="polite"&&(this._latestPolite=""),e==="assertive"&&(this._latestAssertive=""),this._onDidClear.fire(e)):(this._clearTimers.polite&&(clearTimeout(this._clearTimers.polite),this._clearTimers.polite=void 0),this._clearTimers.assertive&&(clearTimeout(this._clearTimers.assertive),this._clearTimers.assertive=void 0),this._latestPolite="",this._latestAssertive="",this._onDidClear.fire("all"))}getLatestAnnouncement(e){return e==="assertive"?this._latestAssertive:this._latestPolite}dispose(){this._clearTimers.polite&&(clearTimeout(this._clearTimers.polite),this._clearTimers.polite=void 0),this._clearTimers.assertive&&(clearTimeout(this._clearTimers.assertive),this._clearTimers.assertive=void 0),this._onDidAnnounce.dispose(),this._onDidClear.dispose()}}let c;function f(){return c||(c=new d),c}function g(i){c&&c!==i&&c.dispose(),c=i}function p(){const i=f();return{announce:(e,t,u)=>i.announce(e,t,u),polite:(e,t)=>i.polite(e,t),assertive:(e,t)=>i.assertive(e,t),clear:e=>i.clear(e)}}exports.AnnouncerService=d;exports.IAnnouncerService=I;exports.getAnnouncerService=f;exports.setAnnouncerServiceForTest=g;exports.useAnnounce=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const K=require("solid-js/web"),n=require("solid-js"),y=require("./bugIndicatingError-D2X5Hfgg.cjs"),u=n.createContext(null);function x(t){return K.createComponent(u.Provider,{get value(){return t.value},get children(){return t.children}})}function F(){const t=n.useContext(u);if(!t)throw new y.BugIndicatingError("useKeybindings must be used inside <KeybindingsProvider>");return t}function S(){return n.useContext(u)}function _(t){const{contextKeys:s,key:c,containerRef:a,onFocusIn:r,countsAsFocus:d}=t;let o;const g=e=>d===void 0||e instanceof Element&&d(e),f=e=>{o=e;const l=i=>{s.setContext(c,g(i)),r==null||r()},E=i=>l(i.target),C=i=>{const b=i.relatedTarget;b&&e.contains(b)||s.setContext(c,!1)};e.addEventListener("focusin",E),e.addEventListener("focusout",C);const v=e.ownerDocument.activeElement;e.contains(v)&&l(v),n.onCleanup(()=>{e.removeEventListener("focusin",E),e.removeEventListener("focusout",C),s.setContext(c,!1),o===e&&(o=void 0)})};n.createRenderEffect(()=>{const e=a();e&&f(e)}),n.onMount(()=>{if(o)return;const e=a();e&&f(e)})}const O="accessibilityModeEnabled",T={notificationFocus:"notificationFocus",notificationToastsVisible:"notificationToastsVisible",listFocus:"listFocus",listSupportsMultiselect:"listSupportsMultiselect"};exports.ACCESSIBILITY_MODE_ENABLED_KEY=O;exports.FOCUS_CONTEXT_KEYS=T;exports.KeybindingsProvider=x;exports.createFocusContextKey=_;exports.useKeybindings=F;exports.useKeybindingsOptional=S;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createComponent as g } from "solid-js/web";
|
|
2
|
+
import { useContext as C, createContext as K, createRenderEffect as x, onMount as y, onCleanup as F } from "solid-js";
|
|
3
|
+
import { B as p } from "./bugIndicatingError-h3J5qkL6.js";
|
|
4
|
+
const r = K(null);
|
|
5
|
+
function T(e) {
|
|
6
|
+
return g(r.Provider, {
|
|
7
|
+
get value() {
|
|
8
|
+
return e.value;
|
|
9
|
+
},
|
|
10
|
+
get children() {
|
|
11
|
+
return e.children;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function M() {
|
|
16
|
+
const e = C(r);
|
|
17
|
+
if (!e)
|
|
18
|
+
throw new p("useKeybindings must be used inside <KeybindingsProvider>");
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function O() {
|
|
22
|
+
return C(r);
|
|
23
|
+
}
|
|
24
|
+
function _(e) {
|
|
25
|
+
const { contextKeys: s, key: i, containerRef: u, onFocusIn: c, countsAsFocus: a } = e;
|
|
26
|
+
let o;
|
|
27
|
+
const b = (t) => a === void 0 || t instanceof Element && a(t), f = (t) => {
|
|
28
|
+
o = t;
|
|
29
|
+
const d = (n) => {
|
|
30
|
+
s.setContext(i, b(n)), c == null || c();
|
|
31
|
+
}, l = (n) => d(n.target), E = (n) => {
|
|
32
|
+
const m = n.relatedTarget;
|
|
33
|
+
m && t.contains(m) || s.setContext(i, !1);
|
|
34
|
+
};
|
|
35
|
+
t.addEventListener("focusin", l), t.addEventListener("focusout", E);
|
|
36
|
+
const v = t.ownerDocument.activeElement;
|
|
37
|
+
t.contains(v) && d(v), F(() => {
|
|
38
|
+
t.removeEventListener("focusin", l), t.removeEventListener("focusout", E), s.setContext(i, !1), o === t && (o = void 0);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
x(() => {
|
|
42
|
+
const t = u();
|
|
43
|
+
t && f(t);
|
|
44
|
+
}), y(() => {
|
|
45
|
+
if (o) return;
|
|
46
|
+
const t = u();
|
|
47
|
+
t && f(t);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const w = "accessibilityModeEnabled", A = {
|
|
51
|
+
/**
|
|
52
|
+
* Notification toast stack (the reference's `notificationFocus` / `notificationToastsVisible`
|
|
53
|
+
* keys): keyboard focus is inside the stack · the painted stack is not empty (while the
|
|
54
|
+
* notification centre is visible the stack is hidden and the key is false). The gate of the
|
|
55
|
+
* `Ctrl+Shift+A` primary-action binding — together with accessibility mode.
|
|
56
|
+
*/
|
|
57
|
+
notificationFocus: "notificationFocus",
|
|
58
|
+
notificationToastsVisible: "notificationToastsVisible",
|
|
59
|
+
/**
|
|
60
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
61
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
62
|
+
* last entered (`context/useListCommands.ts`).
|
|
63
|
+
*/
|
|
64
|
+
listFocus: "listFocus",
|
|
65
|
+
listSupportsMultiselect: "listSupportsMultiselect"
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
w as A,
|
|
69
|
+
A as F,
|
|
70
|
+
T as K,
|
|
71
|
+
O as a,
|
|
72
|
+
_ as c,
|
|
73
|
+
M as u
|
|
74
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const se=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-
|
|
1
|
+
"use strict";const se=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-B4XML4_G.cjs"),a=require("./notificationSuppressions-DFbFpayS.cjs"),g=require("./notification-CrxHMXsk.cjs"),y=require("./i18n-DZZyw7Iu.cjs"),ce={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},Ae={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Ne={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function ae(t,e,i){if(!e[Ae[t]]||e.quietHoursMutesSounds&&i)return null;const r=e[Ne[t]].trim();if(r)return{kind:"custom",path:r};const n=ce[t];return{kind:"builtin",freq:n.freq,ms:n.ms}}const K=new Map,F=new Map;async function ue(t){const e=K.get(t);if(e)return e;let i=F.get(t);return i||(i=a.readAudioAsDataUrl(t).then(r=>(F.delete(t),r&&K.set(t,r),r)),F.set(t,i)),await i??void 0}function Re(){K.clear(),F.clear()}const j=w.getLogger("NotificationAudio");let U=null,H=!1;function De(){if(H)return null;if(U)return U;try{const t=window.AudioContext??window.webkitAudioContext;return t?(U=new t,U):(H=!0,null)}catch(t){return H=!0,j.warn("AudioContext could not be created; notification sounds are off:",t),null}}async function $e(t){const e=await ue(t);if(e)try{const i=new Audio(e);i.volume=.6,await i.play()}catch(i){j.warn("Custom notification sound could not be played:",i)}}function le(t=800,e=200){const i=De();if(i)try{const r=i.currentTime,n=i.createOscillator(),o=i.createGain();n.connect(o),o.connect(i.destination),n.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+e/1e3),n.start(r),n.stop(r+e/1e3)}catch(r){j.warn("Notification tone could not be played:",r)}}function de(){le(800,200)}function fe(t,e){const i=ae(t,g.notificationSettings.get(),e);if(i){if(i.kind==="custom"){$e(i.path);return}le(i.freq,i.ms)}}const ge=w.getLogger("NotificationTimeline");function Ie(t){return t.vendorError===void 0?null:a.resolveVendorError(t.vendorError)}const Oe=200;let W=[];const B=new Set;function D(){return[...W]}function $(t){const e=[...t].sort((s,c)=>c.createdAt-s.createdAt),i=e.filter(s=>s.pinned===!0),n=e.filter(s=>s.pinned!==!0).slice(0,Math.max(0,Oe-i.length));W=[...[...i].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt)),...n];for(const s of Array.from(B))try{s(W)}catch(c){ge.warn("Zaman cizelgesi dinleyicisi firlatti:",c)}}let R=0,O=0;const V=new Set;function b(t,e,i="general",r="default",n,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:w.scrubSecrets(t),tone:e,createdAt:Date.now(),source:i,priority:r,...n&&n.length>0?{actions:n}:{},...o?{vendorError:o}:{}};$([s,...D()]),R+=1,me()}function A(t){if(t)return[{label:t.label,onClick:t.onClick,primary:!0}]}function me(){const t=Math.max(0,R-O);for(const e of Array.from(V))try{e(t)}catch(i){ge.warn("Okunmadi sayaci dinleyicisi firlatti:",i)}ye(t)}let L=-1;function ye(t){const e=g.notificationSettings.get(),i=e.badgeCountEnabled?Math.min(t,e.badgeCountMax):0;i!==L&&(L=i,a.setOsBadgeCount(i))}function Ue(){const t=Math.max(0,R-O);L=-1,ye(t)}function Me(t){return V.add(t),t(Math.max(0,R-O)),()=>{V.delete(t)}}function qe(){O!==R&&(O=R,me())}function Fe(t){return B.add(t),t(D()),()=>{B.delete(t)}}function Pe(){$([])}function _e(t){const e=D().filter(i=>i.id!==t);$(e)}function He(t){if(t.length===0)return;const e=new Set(t),i=D().filter(r=>!e.has(r.id));$(i)}function Ke(t){if(!t)return;const e=D().filter(i=>i.source!==t);$(e)}function We(t){const i=D().map(r=>{if(r.id!==t)return r;const n=!r.pinned,{pinnedAt:o,...s}=r;return n?{...s,pinned:!0,pinnedAt:Date.now()}:{...s,pinned:!1}});$(i)}const P=new Map;function Be(){P.clear()}function Ve(t){if(P.has(t))return P.get(t)??null;let e;try{e=new RegExp(t,"i")}catch{e=null}return P.set(t,e),e}function Le(t,e){const i=t.conditions;if(i.source&&i.source!==e.source||i.severities&&i.severities.length>0&&!i.severities.includes(e.severity))return!1;if(i.titleRegex){const r=Ve(i.titleRegex);if(!r||!r.test(e.title))return!1}return!0}function ve(t,e){if(e.length===0)return t;let i={...t};for(const r of e)if(r.enabled&&Le(r,i)){if(r.actions.suppress===!0)return null;if(r.actions.setSeverity&&(i={...i,severity:r.actions.setSeverity}),r.actions.setPriority&&(i={...i,priority:r.actions.setPriority}),r.actions.addPrefix){const n=r.actions.addPrefix.trim();n&&(i={...i,title:`${n} ${i.title}`})}}return i}function te(t){const e=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!e)return null;const i=Number(e[1]),r=Number(e[2]);return i>23||r>59?null:i*60+r}function X(t,e){if(!t.quietHoursEnabled||!t.quietHoursWeekdays.includes(e.getDay()))return!1;const i=te(t.quietHoursStart),r=te(t.quietHoursEnd);if(i===null||r===null||i===r)return!1;const n=e.getHours()*60+e.getMinutes();return i<r?n>=i&&n<r:n>=i||n<r}function Qe(t){return t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Q={info:0,success:1,warning:2,error:3};function pe(t,e){return e.osNativeEnabled?t.priority==="urgent"&&e.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Q[t.severity]<Q[e.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:e.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Ye={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function je(t,e){if(e)return e;if(t!==void 0)return Ye[t]}const Xe="notification.emailDigestSmtpPass",ze="notification.webhook.url.";function he(){const t=new Map;return{get:e=>Promise.resolve(t.get(e)),set:async(e,i)=>{t.set(e,i)},delete:async e=>{t.delete(e)},keys:async e=>[...t.keys()].filter(i=>i.startsWith(e))}}let z=he();function Ge(t){z=t??he()}function Je(t){return`${ze}${t}`}function Ze(){return z.get(Xe)}function et(t){return z.get(Je(t))}let Se="";function tt(t){Se=t.trim()}function G(){return Se}const it=w.getLogger("WebhookDelivery"),rt={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},nt={info:1668818,success:3046706,warning:16088064,error:12986408};function ot(t,e){const{severities:i,priorities:r,sources:n}=t.filters;return!(i.length>0&&!i.includes(e.severity)||r.length>0&&!r.includes(e.priority)||n.length>0&&!n.includes(e.source))}function st(t,e){switch(t.type){case"slack":return{text:e.title,attachments:[{color:rt[e.severity],fields:[{title:"Source",value:e.source,short:!0},{title:"Severity",value:e.severity,short:!0},{title:"Priority",value:e.priority,short:!0}],text:e.body??""}]};case"discord":return{embeds:[{title:e.title,description:e.body??"",color:nt[e.severity],fields:[{name:"Source",value:e.source,inline:!0},{name:"Severity",value:e.severity,inline:!0},{name:"Priority",value:e.priority,inline:!0}]}]};case"generic":default:return{title:e.title,body:e.body??"",severity:e.severity,priority:e.priority,source:e.source,timestamp:Date.now()}}}async function ct(t,e,i){try{const r=JSON.stringify(st(t,i));await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r})}catch(r){it.warn("Webhook delivery failed:",r)}}async function at(t,e){const i=await et(t.id)??"";i&&await ct(t,i,e)}function ut(t){const i=g.notificationSettings.get().webhooks.filter(r=>r.enabled&&ot(r,t));if(i.length!==0)for(const r of i)at(r,t)}let Y=null;function lt(t){Y=t}const dt=w.getLogger("EmailDigest"),T=[],ie=500,re={info:0,success:1,warning:2,error:3};function ft(t){const e=g.notificationSettings.get();e.emailDigestEnabled&&(re[t.severity]<re[e.emailDigestMinSeverity]||(T.push(t),T.length>ie&&T.splice(0,T.length-ie)))}const M=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function gt(t){const e=G(),i=t.map(r=>`<tr>
|
|
2
2
|
<td style="padding:4px 8px">${new Date(r.at).toISOString().slice(11,19)}</td>
|
|
3
3
|
<td style="padding:4px 8px"><strong>${r.severity}</strong></td>
|
|
4
4
|
<td style="padding:4px 8px">${M(r.source)}</td>
|
|
@@ -21,7 +21,7 @@ ${i}
|
|
|
21
21
|
</body></html>`}function mt(t){const e=t.map(i=>`[${new Date(i.at).toISOString()}] ${i.severity.toUpperCase()} (${i.source}): ${i.title}${i.body?` — ${i.body}`:""}`);return`${t.length} notification(s):
|
|
22
22
|
|
|
23
23
|
${e.join(`
|
|
24
|
-
`)}`}function yt(t){switch(t.kind){case"disabled":return y.t("Email digest is turned off.");case"smtp-incomplete":return y.t("SMTP host, sender and recipient are required.");case"send-failed":return a.errorText(t.error,y.t("The digest could not be sent."))}}async function be(){const t=g.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(T.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const e=T.splice(0,T.length),i={sendEmailDigest:s=>Y?Y(s):Promise.reject(new Error("No email digest transport configured"))},r=G(),n=`${r?`[${r}] `:""}${e.length} notification(s)`,o=await Ze()??"";try{return await i.sendEmailDigest({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:o},from:t.emailDigestFrom,to:t.emailDigestTo,subject:n,html:gt(e),text:mt(e)}),{kind:"sent",count:e.length}}catch(s){return T.unshift(...e),{kind:"not-sent",reason:{kind:"send-failed",error:s}}}}let ne=0,oe=null;function vt(t){const e=g.notificationSettings.get();if(!e.emailDigestEnabled)return!1;const i=t.getHours(),r=t.getMinutes(),n=t.getDay();switch(e.emailDigestSchedule){case"hourly":return r===0;case"daily-9am":return i===9&&r===0;case"daily-5pm":return i===17&&r===0;case"weekly-mon-9am":return n===1&&i===9&&r===0}}function pt(){oe===null&&(typeof window>"u"||(oe=window.setInterval(()=>{const t=new Date;if(!vt(t))return;const e=Math.floor(t.getTime()/6e4);e!==ne&&(ne=e,be().then(i=>{i.kind==="not-sent"&&i.reason.kind==="send-failed"&&dt.warn("scheduled email digest failed",i.reason.error)}))},6e4)))}function we(){return
|
|
24
|
+
`)}`}function yt(t){switch(t.kind){case"disabled":return y.t("Email digest is turned off.");case"smtp-incomplete":return y.t("SMTP host, sender and recipient are required.");case"send-failed":return a.errorText(t.error,y.t("The digest could not be sent."))}}async function be(){const t=g.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(T.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const e=T.splice(0,T.length),i={sendEmailDigest:s=>Y?Y(s):Promise.reject(new Error("No email digest transport configured"))},r=G(),n=`${r?`[${r}] `:""}${e.length} notification(s)`,o=await Ze()??"";try{return await i.sendEmailDigest({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:o},from:t.emailDigestFrom,to:t.emailDigestTo,subject:n,html:gt(e),text:mt(e)}),{kind:"sent",count:e.length}}catch(s){return T.unshift(...e),{kind:"not-sent",reason:{kind:"send-failed",error:s}}}}let ne=0,oe=null;function vt(t){const e=g.notificationSettings.get();if(!e.emailDigestEnabled)return!1;const i=t.getHours(),r=t.getMinutes(),n=t.getDay();switch(e.emailDigestSchedule){case"hourly":return r===0;case"daily-9am":return i===9&&r===0;case"daily-5pm":return i===17&&r===0;case"weekly-mon-9am":return n===1&&i===9&&r===0}}function pt(){oe===null&&(typeof window>"u"||(oe=window.setInterval(()=>{const t=new Date;if(!vt(t))return;const e=Math.floor(t.getTime()/6e4);e!==ne&&(ne=e,be().then(i=>{i.kind==="not-sent"&&i.reason.kind==="send-failed"&&dt.warn("scheduled email digest failed",i.reason.error)}))},6e4)))}function we(){return X(g.notificationSettings.get(),new Date)}function k(t,e,i,r,n){const o=g.notificationSettings.get(),s=a.deriveImplicitRemindKey(t,e);return a.decideFilter({priority:i,recordTimeline:n},o,{dismissed:r!==void 0&&a.isKeyDismissed(r),remindSuppressed:r!==void 0&&a.isKeyRemindSuppressed(r)||a.isKeyRemindSuppressed(s),sourceMuted:a.isSourceMuted(t),inQuietHours:we()})}function ht(t,e,i,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{a.recordClick(i);try{t.onClick()}finally{const n=e();t.expireOnAction!==!1&&n&&a.closeNotification(n)}}}}function N(t){var S,m;const e=t.options.source??"general";if(a.recordFire(e,t.decision.showToast,a.isSourceMuted(e)),!t.decision.showToast)return null;fe(t.severity,we());const{options:i}=t,r=((S=i.subtitle)==null?void 0:S.trim())||((m=i.description)==null?void 0:m.trim()),n=i.id!==void 0?String(i.id):void 0,o=g.notificationSettings.get(),s=i.markdown??o.markdownEnabled,c=[...t.primaryAction?[t.primaryAction]:[],...i.actions??[]],l=je(i.source,i.defaultRoute);let d=null;const u=a.notify({severity:t.severity,title:t.title,...r?{body:r}:{},...s?{markdown:!0}:{},source:i.source??"general",priority:i.priority??"default",...i.duration!==void 0?{durationMs:i.duration}:{},...i.dontShowAgainKey?{neverShowAgainKey:i.dontShowAgainKey}:{},...n?{id:n}:{},...i.icon?{icon:i.icon}:{},...l?{defaultRoute:l}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c.map((E,I)=>ht(E,()=>d==null?void 0:d.id,e,I===0))}:{}});if(d=u,a.isSpamDropHandle(u))return u;const h=w.scrubSecrets(t.title),p=r?w.scrubSecrets(r):void 0,f={title:h,...p?{body:p}:{},severity:t.severity,priority:i.priority??"default",source:i.source??"general"};return St(f),ut(f),ft({...f,at:Date.now()}),u}function St(t){const e=pe(t,g.notificationSettings.get());e.fire&&a.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:e.onlyWhenUnfocused})}function x(t){return typeof t=="string"?t:t instanceof Error?t.message:t==null?"":String(t)}function J(t,e,i,r=a.openExternal){var u,h,p;const n=x(t),o=(u=e.title)==null?void 0:u.trim(),s=((h=e.subtitle)==null?void 0:h.trim())||((p=e.description)==null?void 0:p.trim());let c=o??n,l=s;if(i&&!o){const f=i.helpers.formatCode(i.code),S=new RegExp(`^\\s*${Qe(f)}\\s*[:-]\\s*(.+)$`,"i"),m=n.match(S);if(m!=null&&m[1]){c=f;const E=m[1].trim();l=l?`${E}
|
|
25
25
|
|
|
26
26
|
${l}`:E}}let d=e.action;if(!d&&i){const f=i.helpers.docsUrl(i.code);f&&(d={label:`${i.helpers.formatCode(i.code)} ${i.helpers.docsLinkLabel}`,onClick:()=>r(f)})}return{text:n,displayText:c,bodyText:l,primaryAction:d}}function q(t){return ve(t,g.notificationSettings.get().notificationRules)}const C={success(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"general",o=e.priority??"default",s=q({severity:"success",title:i,priority:o,source:n});if(!s)return"";const c=k(s.source,s.title,s.priority,e.dontShowAgainKey,e.recordTimeline);if(c.recordTimeline&&b(s.title,s.severity==="success"?"success":s.severity,s.source,s.priority,A(e.action)),!r.showSuccessToasts&&s.priority!=="urgent")return"";const l=N({severity:s.severity,title:s.title,options:{...e,source:s.source,priority:s.priority},decision:c,...e.action?{primaryAction:e.action}:{}});return(l==null?void 0:l.id)??""},error(t,e=!1){const i=x(t),r=typeof e=="boolean"?{}:e,n=r.vendorError===void 0?null:a.resolveVendorError(r.vendorError),o=J(i,r,n),s=n!==null;let c=o.displayText;const l=o.bodyText,d=l?`${c}
|
|
27
|
-
${l}`:i,u=r.source??(s?"vendor-error":"general"),h=s&&g.notificationSettings.get().vendorCodesAreUrgent,p=r.priority??(h?"urgent":"default"),f=q({severity:"error",title:c,priority:p,source:u});if(!f)return"";c=f.title;const S=f.source,m=f.priority,E=k(S,c,m,r.dontShowAgainKey,r.recordTimeline);E.recordTimeline&&b(d,f.severity,S,m,A(r.action),r.vendorError);const I=N({severity:f.severity,title:c,options:{...r,source:S,priority:m,...l?{description:l}:{}},decision:E,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(I==null?void 0:I.id)??""},info(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"info",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},warning(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"warning",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},queryCompleted(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"sql-execution",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"success",n,o,A(e.action)),r.notificationsEnabled&&r.soundOnQueryCompletion&&!(r.quietHoursMutesSounds&&z(r,new Date))&&de(),!r.showSuccessToasts&&o!=="urgent")return"";const c=N({severity:"success",title:i,options:{...e,source:n,priority:o},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},progress(t,e={}){const i=x(t),r=e.onCancel,n=e.source??"general",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"info",n,o),!s.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const c=e.id!==void 0?String(e.id):`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,l=a.notify({id:c,severity:"info",title:i,source:n,priority:o,sticky:!0,progress:r?{onCancel:r}:{}});return{update:(d,u)=>{l.update({title:d}),u!==void 0&&l.setProgress({value:Math.max(0,Math.min(1,u)),...r?{onCancel:r}:{}})},success:d=>{const u=d??i;s.recordTimeline&&b(u,"success",n,o),l.update({title:u,severity:"success",sticky:!1,progress:{done:!0}})},fail:d=>{const u=d??i;s.recordTimeline&&b(u,"error",n,o),l.update({title:u,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>l.close()}}};function v(t,e){return{...t,category:t.category??t.id.split(".")[0]??"general",build:e}}function bt(t,e,i){return{id:t,notification:e,resolve:()=>e.build(i)}}function _(t,e){return{message:t,...e!=null&&e.title?{title:e.title}:{},...e!=null&&e.subtitle?{subtitle:e.subtitle}:{},...e!=null&&e.description?{description:e.description}:{},...e!=null&&e.action?{action:e.action}:{},...(e==null?void 0:e.duration)!==void 0?{duration:e.duration}:{},...e!=null&&e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e!=null&&e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e!=null&&e.icon?{icon:e.icon}:{},...(e==null?void 0:e.markdown)!==void 0?{markdown:e.markdown}:{},...(e==null?void 0:e.recordTimeline)!==void 0?{recordTimeline:e.recordTimeline}:{},...(e==null?void 0:e.id)!==void 0?{id:e.id}:{},...e!=null&&e.onCancel?{onCancel:e.onCancel}:{}}}v({id:"notifications.copyToClipboard.success.1",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({successNotice:t})=>({message:t??y.t("Copied to clipboard.")}));v({id:"notifications.copyToClipboard.error.2",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},()=>({message:y.t("Could not copy to clipboard.")}));const wt=v({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Tt=v({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Et=v({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),xt=v({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Ct=v({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:t})=>({message:y.t("Exported {count} notifications",{count:t})})),kt=v({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("Export failed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),At=v({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("The action could not be completed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),Nt=v({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:a.errorText(t,y.t("Operation failed.")),cause:t}));function Z(t){if(!("cause"in t))return t;const{cause:e,...i}=t,r=a.errorActions(e).map(Rt);return r.length===0?i:{...i,actions:[...i.actions??[],...r]}}function Rt(t){return{label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e=>{ke(At,{cause:e})})}}}function Te(t,e){return{...t.severity==="error"&&t.source==="general"?{}:{source:t.source},...t.severity==="error"&&t.priority==="default"?{}:{priority:t.priority},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{},...e.actions?{actions:e.actions}:{},...e.duration!==void 0?{duration:e.duration}:{},...e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.icon?{icon:e.icon}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.recordTimeline!==void 0?{recordTimeline:e.recordTimeline}:{},...e.id!==void 0?{id:e.id}:{}}}function Dt(t,e){const i=Z(e);if(t.delivery==="os-only"){const n=i.title??i.message,o=i.description??i.subtitle??(i.title?i.message:void 0);return a.osNotify({title:n,...o?{body:o}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:!1}),""}const r=Te(t,i);if(t.kind==="query-completed")return C.queryCompleted(i.message,r);switch(t.severity){case"success":return C.success(i.message,r);case"error":{const n={...r,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return C.error(i.message,n)}case"warning":return C.warning(i.message,r);case"info":return C.info(i.message,r)}}function $t(t,e){const i=Z(e);if(t.delivery!=="in-app")throw new se.BugIndicatingError("Progress notifications require an in-app catalog definition.");return C.progress(i.message,{...Te(t,i),...i.onCancel?{onCancel:i.onCancel}:{}})}const Ee={notify:Dt,progress:$t,dismiss:t=>a.closeNotification(t)};function xe(t,e,i,r){return t==="error"&&e==="default"&&i&&r?"urgent":e}function It(t,e){var d;const i=e.vendorError===void 0||!a.isVendorErrorSourceInstalled()?null:a.resolveVendorError(e.vendorError),r=t.severity==="error"?J(e.message,{...e.title?{title:e.title}:{},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{}},i,a.openExternal):null,n=(r==null?void 0:r.displayText)??e.title??e.message,o=(r==null?void 0:r.bodyText)??e.subtitle??e.description,s=(r==null?void 0:r.primaryAction)??e.action,c=t.severity==="error"&&t.source==="general"&&i!==null?"vendor-error":t.source,l=xe(t.severity,t.priority,i!==null,g.notificationSettings.get().vendorCodesAreUrgent);return a.notify({severity:t.severity,title:w.scrubSecrets(n),...o?{body:w.scrubSecrets(o)}:{},source:c,priority:l,isolated:!0,...e.duration!==void 0?{durationMs:e.duration}:{},...e.id!==void 0?{id:`dev-preview:${e.id}`}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(d=e.actions)!=null&&d.length?{actions:[s,...e.actions??[]].filter(u=>u!==void 0).map((u,h)=>({id:`dev-preview-action-${h}`,label:u.label,primary:h===0,onClick:()=>{var p;(p=u.onClick)==null||p.call(u)}}))}:{}}).id}let Ce=null;function Ot(t){Ce=t}function ee(){return Ce??Ee}function ke(t,e){return ee().notify(t,t.build(e))}function Ut(t,e){if(t.kind!=="progress")throw new se.BugIndicatingError("catalogNotify: mesaj tanımı progressFromCatalog ile gönderilemez.");return ee().progress(t,t.build(e))}function Mt(t){var e,i;(i=(e=ee()).dismiss)==null||i.call(e,t)}function qt(t){return t.resolve()}exports.SEVERITY_ORDER=Q;exports.SEVERITY_TONES=ce;exports.addTimelineEntry=b;exports.applyNotificationRules=ve;exports.catalogNotificationHost=Ee;exports.clearCompiledRuleRegexCache=Be;exports.clearNotificationTimeline=Pe;exports.defineNotification=v;exports.defineNotificationScenario=bt;exports.digestNotSentText=yt;exports.dismissNotificationFromCatalog=Mt;exports.dismissNotificationTimelineEntries=He;exports.dismissNotificationTimelineEntriesBySource=Ke;exports.dismissNotificationTimelineEntry=_e;exports.enrichErrorToast=J;exports.entryVendorMatch=Ie;exports.fire=N;exports.flushDigest=be;exports.getAppName=G;exports.invalidateCustomSoundCache=Re;exports.isInQuietHours=z;exports.loadCustomSoundDataUrl=ue;exports.markTimelineSeen=qe;exports.notificationReplayError=wt;exports.notificationReplayInfo=xt;exports.notificationReplaySuccess=Et;exports.notificationReplayWarning=Tt;exports.notificationSettingsUpdateFailed=Nt;exports.notificationTimelineExportFailed=kt;exports.notificationTimelineExported=Ct;exports.notifyFromCatalog=ke;exports.playQueryCompletedCue=de;exports.playSeverityToneIfEnabled=fe;exports.progressFromCatalog=Ut;exports.provideCatalogNotificationHost=Ot;exports.provideNotificationSecretStore=Ge;exports.refreshOsBadge=Ue;exports.resolveCatalogPreviewPriority=xe;exports.resolveNotificationScenario=qt;exports.resolveSeverityTone=ae;exports.setAppName=tt;exports.setEmailDigestTransport=lt;exports.shouldFireOsNative=pe;exports.showCatalogPreviewToast=It;exports.startDigestScheduler=pt;exports.subscribeNotificationTimeline=Fe;exports.subscribeUnreadCount=Me;exports.toTimelineActions=A;exports.toast=C;exports.toggleTimelineEntryPin=We;exports.withErrorActionButtons=Z;
|
|
27
|
+
${l}`:i,u=r.source??(s?"vendor-error":"general"),h=s&&g.notificationSettings.get().vendorCodesAreUrgent,p=r.priority??(h?"urgent":"default"),f=q({severity:"error",title:c,priority:p,source:u});if(!f)return"";c=f.title;const S=f.source,m=f.priority,E=k(S,c,m,r.dontShowAgainKey,r.recordTimeline);E.recordTimeline&&b(d,f.severity,S,m,A(r.action),r.vendorError);const I=N({severity:f.severity,title:c,options:{...r,source:S,priority:m,...l?{description:l}:{}},decision:E,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(I==null?void 0:I.id)??""},info(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"info",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},warning(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"warning",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},queryCompleted(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"sql-execution",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"success",n,o,A(e.action)),r.notificationsEnabled&&r.soundOnQueryCompletion&&!(r.quietHoursMutesSounds&&X(r,new Date))&&de(),!r.showSuccessToasts&&o!=="urgent")return"";const c=N({severity:"success",title:i,options:{...e,source:n,priority:o},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},progress(t,e={}){const i=x(t),r=e.onCancel,n=e.source??"general",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"info",n,o),!s.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const c=e.id!==void 0?String(e.id):`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,l=a.notify({id:c,severity:"info",title:i,source:n,priority:o,sticky:!0,progress:r?{onCancel:r}:{}});return{update:(d,u)=>{l.update({title:d}),u!==void 0&&l.setProgress({value:Math.max(0,Math.min(1,u)),...r?{onCancel:r}:{}})},success:d=>{const u=d??i;s.recordTimeline&&b(u,"success",n,o),l.update({title:u,severity:"success",sticky:!1,progress:{done:!0}})},fail:d=>{const u=d??i;s.recordTimeline&&b(u,"error",n,o),l.update({title:u,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>l.close()}}};function v(t,e){return{...t,category:t.category??t.id.split(".")[0]??"general",build:e}}function bt(t,e,i){return{id:t,notification:e,resolve:()=>e.build(i)}}function _(t,e){return{message:t,...e!=null&&e.title?{title:e.title}:{},...e!=null&&e.subtitle?{subtitle:e.subtitle}:{},...e!=null&&e.description?{description:e.description}:{},...e!=null&&e.action?{action:e.action}:{},...(e==null?void 0:e.duration)!==void 0?{duration:e.duration}:{},...e!=null&&e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e!=null&&e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e!=null&&e.icon?{icon:e.icon}:{},...(e==null?void 0:e.markdown)!==void 0?{markdown:e.markdown}:{},...(e==null?void 0:e.recordTimeline)!==void 0?{recordTimeline:e.recordTimeline}:{},...(e==null?void 0:e.id)!==void 0?{id:e.id}:{},...e!=null&&e.onCancel?{onCancel:e.onCancel}:{}}}v({id:"notifications.copyToClipboard.success.1",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({successNotice:t})=>({message:t??y.t("Copied to clipboard.")}));v({id:"notifications.copyToClipboard.error.2",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},()=>({message:y.t("Could not copy to clipboard.")}));const wt=v({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Tt=v({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Et=v({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),xt=v({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Ct=v({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:t})=>({message:y.t("Exported {count} notifications",{count:t})})),kt=v({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("Export failed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),At=v({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("The action could not be completed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),Nt=v({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:a.errorText(t,y.t("Operation failed.")),cause:t}));function Z(t){if(!("cause"in t))return t;const{cause:e,...i}=t,r=a.errorActions(e).map(Rt);return r.length===0?i:{...i,actions:[...i.actions??[],...r]}}function Rt(t){return{label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e=>{ke(At,{cause:e})})}}}function Te(t,e){return{...t.severity==="error"&&t.source==="general"?{}:{source:t.source},...t.severity==="error"&&t.priority==="default"?{}:{priority:t.priority},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{},...e.actions?{actions:e.actions}:{},...e.duration!==void 0?{duration:e.duration}:{},...e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.icon?{icon:e.icon}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.recordTimeline!==void 0?{recordTimeline:e.recordTimeline}:{},...e.id!==void 0?{id:e.id}:{}}}function Dt(t,e){const i=Z(e);if(t.delivery==="os-only"){const n=i.title??i.message,o=i.description??i.subtitle??(i.title?i.message:void 0);return a.osNotify({title:n,...o?{body:o}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:!1}),""}const r=Te(t,i);if(t.kind==="query-completed")return C.queryCompleted(i.message,r);switch(t.severity){case"success":return C.success(i.message,r);case"error":{const n={...r,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return C.error(i.message,n)}case"warning":return C.warning(i.message,r);case"info":return C.info(i.message,r)}}function $t(t,e){const i=Z(e);if(t.delivery!=="in-app")throw new se.BugIndicatingError("Progress notifications require an in-app catalog definition.");return C.progress(i.message,{...Te(t,i),...i.onCancel?{onCancel:i.onCancel}:{}})}const Ee={notify:Dt,progress:$t,dismiss:t=>a.closeNotification(t)};function xe(t,e,i,r){return t==="error"&&e==="default"&&i&&r?"urgent":e}function It(t,e){var d;const i=e.vendorError===void 0||!a.isVendorErrorSourceInstalled()?null:a.resolveVendorError(e.vendorError),r=t.severity==="error"?J(e.message,{...e.title?{title:e.title}:{},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{}},i,a.openExternal):null,n=(r==null?void 0:r.displayText)??e.title??e.message,o=(r==null?void 0:r.bodyText)??e.subtitle??e.description,s=(r==null?void 0:r.primaryAction)??e.action,c=t.severity==="error"&&t.source==="general"&&i!==null?"vendor-error":t.source,l=xe(t.severity,t.priority,i!==null,g.notificationSettings.get().vendorCodesAreUrgent);return a.notify({severity:t.severity,title:w.scrubSecrets(n),...o?{body:w.scrubSecrets(o)}:{},source:c,priority:l,isolated:!0,...e.duration!==void 0?{durationMs:e.duration}:{},...e.id!==void 0?{id:`dev-preview:${e.id}`}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(d=e.actions)!=null&&d.length?{actions:[s,...e.actions??[]].filter(u=>u!==void 0).map((u,h)=>({id:`dev-preview-action-${h}`,label:u.label,primary:h===0,onClick:()=>{var p;(p=u.onClick)==null||p.call(u)}}))}:{}}).id}let Ce=null;function Ot(t){Ce=t}function ee(){return Ce??Ee}function ke(t,e){return ee().notify(t,t.build(e))}function Ut(t,e){if(t.kind!=="progress")throw new se.BugIndicatingError("catalogNotify: a message definition cannot be sent with progressFromCatalog.");return ee().progress(t,t.build(e))}function Mt(t){var e,i;(i=(e=ee()).dismiss)==null||i.call(e,t)}function qt(t){return t.resolve()}exports.SEVERITY_ORDER=Q;exports.SEVERITY_TONES=ce;exports.addTimelineEntry=b;exports.applyNotificationRules=ve;exports.catalogNotificationHost=Ee;exports.clearCompiledRuleRegexCache=Be;exports.clearNotificationTimeline=Pe;exports.defineNotification=v;exports.defineNotificationScenario=bt;exports.digestNotSentText=yt;exports.dismissNotificationFromCatalog=Mt;exports.dismissNotificationTimelineEntries=He;exports.dismissNotificationTimelineEntriesBySource=Ke;exports.dismissNotificationTimelineEntry=_e;exports.enrichErrorToast=J;exports.entryVendorMatch=Ie;exports.fire=N;exports.flushDigest=be;exports.getAppName=G;exports.invalidateCustomSoundCache=Re;exports.isInQuietHours=X;exports.loadCustomSoundDataUrl=ue;exports.markTimelineSeen=qe;exports.notificationReplayError=wt;exports.notificationReplayInfo=xt;exports.notificationReplaySuccess=Et;exports.notificationReplayWarning=Tt;exports.notificationSettingsUpdateFailed=Nt;exports.notificationTimelineExportFailed=kt;exports.notificationTimelineExported=Ct;exports.notifyFromCatalog=ke;exports.playQueryCompletedCue=de;exports.playSeverityToneIfEnabled=fe;exports.progressFromCatalog=Ut;exports.provideCatalogNotificationHost=Ot;exports.provideNotificationSecretStore=Ge;exports.refreshOsBadge=Ue;exports.resolveCatalogPreviewPriority=xe;exports.resolveNotificationScenario=qt;exports.resolveSeverityTone=ae;exports.setAppName=tt;exports.setEmailDigestTransport=lt;exports.shouldFireOsNative=pe;exports.showCatalogPreviewToast=It;exports.startDigestScheduler=pt;exports.subscribeNotificationTimeline=Fe;exports.subscribeUnreadCount=Me;exports.toTimelineActions=A;exports.toast=C;exports.toggleTimelineEntryPin=We;exports.withErrorActionButtons=Z;
|