@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.
Files changed (607) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bnn1w5XX.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-DJdW32LQ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-BZWXPn8y.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-X8QR6llv.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BFi0_e3t.cjs +2 -0
  8. package/dist/CommandPalette-CAH08DGN.js +4013 -0
  9. package/dist/{CopyButton-D3dIRRnn.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-3cX5MHAf.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-BcqoUao4.js → DateRangePicker-jSQBwB78.js} +181 -166
  13. package/dist/GuidedTour-CWDtBRHv.js +483 -0
  14. package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
  15. package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
  16. package/dist/HostPortal-X1iw719T.js +33 -0
  17. package/dist/HostWindowContext-B2m0bVra.js +32 -0
  18. package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
  19. package/dist/{IconPicker-9tjEtmqt.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-CXbFmJ3y.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-BEnk4FCF.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-PZ5wRvPx.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-CsiV55WW.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-CyTXvZYm.js → PageSkeleton-CUTLh9Ip.js} +630 -628
  27. package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
  28. package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
  29. package/dist/{SearchableSelect-C6KL7e42.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-zT8XNpmt.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
  31. package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
  32. package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
  33. package/dist/{Stepper-BxXwbDq4.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-DoJFCfC7.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BUxibzkR.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BunKEY68.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-DBrDzBGE.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-CS4jQflv.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-BfjXnp-P.js → ToggleButton-D-N0C2Fu.js} +54 -53
  41. package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
  42. package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
  43. package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
  44. package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
  45. package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
  46. package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
  47. package/dist/_internal/app/keybindings/index.d.cts +0 -10
  48. package/dist/_internal/app/keybindings/index.d.ts +0 -10
  49. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
  50. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
  51. package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
  52. package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
  53. package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
  54. package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
  55. package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
  56. package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
  57. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +27 -14
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +27 -14
  59. package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
  60. package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
  61. package/dist/_internal/contract/catalogNotify.d.cts +6 -19
  62. package/dist/_internal/contract/catalogNotify.d.ts +6 -19
  63. package/dist/_internal/contract/hostErrorText.d.cts +13 -23
  64. package/dist/_internal/contract/hostErrorText.d.ts +13 -23
  65. package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
  66. package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
  67. package/dist/_internal/platform/a11y/announcerService.d.cts +9 -13
  68. package/dist/_internal/platform/a11y/announcerService.d.ts +9 -13
  69. package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
  70. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  71. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  72. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  73. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  74. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  75. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  76. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  77. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -5
  78. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -5
  79. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  80. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  81. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  82. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  83. package/dist/a11y/index.cjs +1 -1
  84. package/dist/a11y/index.js +1 -1
  85. package/dist/actions-DtaFGwh2.cjs +1 -0
  86. package/dist/actions-wwAHs3ZU.js +16 -0
  87. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  88. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  89. package/dist/async/createGuardedListLoader.d.cts +3 -0
  90. package/dist/async/createGuardedListLoader.d.ts +3 -0
  91. package/dist/charts/index.cjs +1 -1
  92. package/dist/charts/index.js +1 -1
  93. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  94. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  95. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  96. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  97. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  98. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  99. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  100. package/dist/defineSettings-Di1sG81q.js +407 -0
  101. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  102. package/dist/{descriptor-B1MaujhY.js → descriptor-eGtcBtpI.js} +5 -5
  103. package/dist/desktop/index.cjs +1 -1
  104. package/dist/desktop/index.js +500 -426
  105. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  106. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  107. package/dist/electronBridge-BK92fycw.js +235 -0
  108. package/dist/electronBridge-cT0xww92.cjs +1 -0
  109. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  110. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  111. package/dist/feedback/Loader.d.cts +6 -1
  112. package/dist/feedback/Loader.d.ts +6 -1
  113. package/dist/feedback/createPreference.d.cts +4 -1
  114. package/dist/feedback/createPreference.d.ts +4 -1
  115. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  116. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  117. package/dist/feedback/index.cjs +1 -1
  118. package/dist/feedback/index.js +37 -38
  119. package/dist/feedback/readFailureText.d.cts +20 -1
  120. package/dist/feedback/readFailureText.d.ts +20 -1
  121. package/dist/focusModality-BISb6-yg.cjs +1 -0
  122. package/dist/focusModality-FoLPWF-_.js +135 -0
  123. package/dist/forms/index.cjs +1 -1
  124. package/dist/forms/index.js +9 -9
  125. package/dist/grid/index.cjs +1 -1
  126. package/dist/grid/index.js +1 -1
  127. package/dist/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  128. package/dist/{server/headerIconOverrides-BCzeaBA1.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  129. package/dist/host/index.cjs +1 -1
  130. package/dist/host/index.d.cts +15 -16
  131. package/dist/host/index.d.ts +15 -16
  132. package/dist/host/index.js +56 -90
  133. package/dist/host/kitHost.d.cts +65 -0
  134. package/dist/host/kitHost.d.ts +65 -0
  135. package/dist/host/window.d.cts +3 -11
  136. package/dist/host/window.d.ts +3 -11
  137. package/dist/i18n/index.cjs +1 -1
  138. package/dist/i18n/index.js +1 -1
  139. package/dist/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
  140. package/dist/i18n-DZ0JlZal.cjs +4 -0
  141. package/dist/index.cjs +1 -1
  142. package/dist/index.d.cts +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.js +973 -992
  145. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  146. package/dist/isOneOf-Dtomuazg.js +6 -0
  147. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  148. package/dist/keys-GMxY2wcl.cjs +1 -0
  149. package/dist/kitHost-BfJExE1G.cjs +1 -0
  150. package/dist/kitHost-CVAEi9sF.js +23 -0
  151. package/dist/layout/createResizableSidebar.d.cts +14 -0
  152. package/dist/layout/createResizableSidebar.d.ts +14 -0
  153. package/dist/layout/index.cjs +1 -1
  154. package/dist/layout/index.js +3 -3
  155. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  156. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  157. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  158. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  159. package/dist/navigation/index.cjs +1 -1
  160. package/dist/navigation/index.js +1 -1
  161. package/dist/notifications/NotificationHost.d.cts +7 -1
  162. package/dist/notifications/NotificationHost.d.ts +7 -1
  163. package/dist/notifications/NotificationItem.d.cts +48 -15
  164. package/dist/notifications/NotificationItem.d.ts +48 -15
  165. package/dist/notifications/catalogAdapter.d.cts +28 -6
  166. package/dist/notifications/catalogAdapter.d.ts +28 -6
  167. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  168. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  169. package/dist/notifications/customSoundCache.d.cts +24 -24
  170. package/dist/notifications/customSoundCache.d.ts +24 -24
  171. package/dist/notifications/emailDigest.d.cts +34 -16
  172. package/dist/notifications/emailDigest.d.ts +34 -16
  173. package/dist/notifications/errorActionButtons.d.cts +18 -1
  174. package/dist/notifications/errorActionButtons.d.ts +18 -1
  175. package/dist/notifications/fireNotification.d.cts +27 -17
  176. package/dist/notifications/fireNotification.d.ts +27 -17
  177. package/dist/notifications/index.cjs +1 -1
  178. package/dist/notifications/index.d.cts +7 -12
  179. package/dist/notifications/index.d.ts +7 -12
  180. package/dist/notifications/index.js +64 -98
  181. package/dist/notifications/nativeEngine.d.cts +18 -15
  182. package/dist/notifications/nativeEngine.d.ts +18 -15
  183. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  184. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  185. package/dist/notifications/notificationAudio.d.cts +30 -23
  186. package/dist/notifications/notificationAudio.d.ts +30 -23
  187. package/dist/notifications/notificationCardServices.d.cts +23 -0
  188. package/dist/notifications/notificationCardServices.d.ts +23 -0
  189. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  190. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  191. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  192. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  193. package/dist/notifications/notificationService.d.cts +101 -0
  194. package/dist/notifications/notificationService.d.ts +101 -0
  195. package/dist/notifications/notificationTimeline.d.cts +47 -49
  196. package/dist/notifications/notificationTimeline.d.ts +47 -49
  197. package/dist/notifications/notifications.notifications.d.cts +0 -4
  198. package/dist/notifications/notifications.notifications.d.ts +0 -4
  199. package/dist/notifications/toast.d.cts +24 -28
  200. package/dist/notifications/toast.d.ts +24 -28
  201. package/dist/notifications/webhookDelivery.d.cts +12 -17
  202. package/dist/notifications/webhookDelivery.d.ts +12 -17
  203. package/dist/overlay/ConfirmDialog.d.cts +20 -10
  204. package/dist/overlay/ConfirmDialog.d.ts +20 -10
  205. package/dist/overlay/DangerousActionDialog.d.cts +2 -2
  206. package/dist/overlay/DangerousActionDialog.d.ts +2 -2
  207. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  208. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  209. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  210. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  211. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  212. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  213. package/dist/overlay/index.cjs +1 -1
  214. package/dist/overlay/index.d.cts +2 -3
  215. package/dist/overlay/index.d.ts +2 -3
  216. package/dist/overlay/index.js +114 -119
  217. package/dist/pageTourState-BcBF8w89.js +516 -0
  218. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  219. package/dist/server/{AttributeGrid-BCYNwNjw.js → AttributeGrid-B2s_rp00.js} +3 -3
  220. package/dist/server/{AttributeGrid-BVAQshm3.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  221. package/dist/server/{Button-BhqhjFpY.js → Button-Ck03cbUs.js} +1 -1
  222. package/dist/server/{Button-CFOM8pOv.cjs → Button-DWFMF5y0.cjs} +1 -1
  223. package/dist/server/CommandPalette-2UppyMxU.js +3271 -0
  224. package/dist/server/CommandPalette-DwpZyhO6.cjs +1 -0
  225. package/dist/server/{CopyButton-C2jzn9tR.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  226. package/dist/server/{CopyButton-CChDa2p3.js → CopyButton-UvtFwOtA.js} +1 -1
  227. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  228. package/dist/server/{DateRangePicker-QV6U1adB.js → DateRangePicker-Cr58DczM.js} +158 -143
  229. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  230. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  231. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  232. package/dist/server/HostPortal-X1iw719T.js +33 -0
  233. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  234. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  235. package/dist/server/{IconPicker-BEACrT09.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  236. package/dist/server/{IconPicker-at_coEi6.js → IconPicker-N0wub1Aj.js} +4 -4
  237. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  238. package/dist/server/{Modal-usxkqDtK.js → Modal-DeQjfpkG.js} +3 -3
  239. package/dist/server/{PageSkeleton-Bpgep9QW.js → PageSkeleton-C41pXOcr.js} +457 -455
  240. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  241. package/dist/server/{SearchableSelect-0dP7bp0a.js → SearchableSelect-CEcuBnge.js} +2 -2
  242. package/dist/server/{SearchableSelect-nMecJAYS.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  243. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  244. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  245. package/dist/server/{Stepper-DvoJXLcM.cjs → Stepper--pusyxso.cjs} +1 -1
  246. package/dist/server/{Stepper-B8hDDujj.js → Stepper-B_eL85hK.js} +1 -1
  247. package/dist/server/{TimeSeriesChart-C1LbL_xp.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  248. package/dist/server/{TimeSeriesChart-DtldQrxS.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  249. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  250. package/dist/server/{ToggleButton--G4HCOTD.js → ToggleButton-DjlWwgLJ.js} +4 -4
  251. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  252. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  253. package/dist/server/a11y/index.cjs +1 -1
  254. package/dist/server/a11y/index.js +1 -1
  255. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  256. package/dist/server/actions-wwAHs3ZU.js +16 -0
  257. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  258. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  259. package/dist/server/charts/index.cjs +1 -1
  260. package/dist/server/charts/index.js +1 -1
  261. package/dist/server/{format-CW_FVfq2.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  262. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  263. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  264. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  265. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  266. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  267. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  268. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  269. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  270. package/dist/server/{descriptor-DWkJAggS.js → descriptor-GLoKPx6x.js} +4 -4
  271. package/dist/server/desktop/index.cjs +1 -1
  272. package/dist/server/desktop/index.js +389 -315
  273. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  274. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  275. package/dist/server/electronBridge-BK92fycw.js +235 -0
  276. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  277. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  278. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  279. package/dist/server/feedback/index.cjs +1 -1
  280. package/dist/server/feedback/index.js +37 -38
  281. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  282. package/dist/server/focusModality-nWNVX3JG.js +126 -0
  283. package/dist/server/forms/index.cjs +1 -1
  284. package/dist/server/forms/index.js +7 -7
  285. package/dist/server/grid/index.cjs +1 -1
  286. package/dist/server/grid/index.js +1 -1
  287. package/dist/server/{headerIconOverrides-64lFnqTt.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  288. package/dist/{headerIconOverrides-BCzeaBA1.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  289. package/dist/server/host/index.cjs +1 -1
  290. package/dist/server/host/index.js +56 -90
  291. package/dist/server/i18n/index.cjs +1 -1
  292. package/dist/server/i18n/index.js +1 -1
  293. package/dist/server/{i18n-CYq-dVvv.js → i18n-DW9kcu0G.js} +180 -178
  294. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  295. package/dist/server/{index-BFT4Uh9D.js → index-BNYr6EIW.js} +89 -90
  296. package/dist/server/index-Cqod09d_.cjs +1 -0
  297. package/dist/server/index.cjs +1 -1
  298. package/dist/server/index.js +1022 -1041
  299. package/dist/server/kitHost-BfJExE1G.cjs +1 -0
  300. package/dist/server/kitHost-CVAEi9sF.js +23 -0
  301. package/dist/server/layout/index.cjs +1 -1
  302. package/dist/server/layout/index.js +3 -3
  303. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  304. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  305. package/dist/server/navigation/index.cjs +1 -1
  306. package/dist/server/navigation/index.js +1 -1
  307. package/dist/server/notifications/index.cjs +1 -1
  308. package/dist/server/notifications/index.js +63 -97
  309. package/dist/server/overlay/index.cjs +1 -1
  310. package/dist/server/overlay/index.js +109 -114
  311. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  312. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  313. package/dist/server/settings/index.cjs +1 -1
  314. package/dist/server/settings/index.js +23 -24
  315. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  316. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  317. package/dist/server/tokens/index.cjs +1 -1
  318. package/dist/server/tokens/index.js +19 -20
  319. package/dist/server/tree/index.cjs +1 -1
  320. package/dist/server/tree/index.js +1 -1
  321. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  322. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  323. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  324. package/dist/{notification-DFbp3S_f.js → server/useSettingsSubscription-DLEk4k4j.js} +41 -32
  325. package/dist/server/window-CUK6x8Pj.js +36 -0
  326. package/dist/server/window-_BfSgFGO.cjs +1 -0
  327. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  328. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  329. package/dist/settings/index.cjs +1 -1
  330. package/dist/settings/index.d.cts +1 -1
  331. package/dist/settings/index.d.ts +1 -1
  332. package/dist/settings/index.js +23 -24
  333. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  334. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  335. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  336. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  337. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  338. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  339. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  340. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +11 -29
  341. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  342. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  343. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  344. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  345. package/dist/solid/_internal/platform/a11y/announcerService.js +0 -24
  346. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  347. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  348. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  349. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  350. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  351. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  352. package/dist/solid/a11y/AriaAnnouncer.jsx +5 -6
  353. package/dist/solid/async/createGuardedListLoader.js +1 -1
  354. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  355. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  356. package/dist/solid/feedback/Loader.jsx +1 -2
  357. package/dist/solid/feedback/createPreference.js +3 -2
  358. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  359. package/dist/solid/feedback/preference.notifications.js +1 -2
  360. package/dist/solid/feedback/readFailureText.js +1 -2
  361. package/dist/solid/host/index.js +9 -16
  362. package/dist/solid/host/kitHost.jsx +15 -0
  363. package/dist/solid/host/window.js +15 -22
  364. package/dist/solid/i18n/i18n.js +5 -6
  365. package/dist/solid/index.js +0 -1
  366. package/dist/solid/layout/createResizableSidebar.js +15 -23
  367. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  368. package/dist/solid/notifications/NotificationItem.jsx +28 -103
  369. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  370. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  371. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  372. package/dist/solid/notifications/catalogAdapter.js +61 -62
  373. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  374. package/dist/solid/notifications/customSoundCache.js +26 -21
  375. package/dist/solid/notifications/emailDigest.js +74 -86
  376. package/dist/solid/notifications/errorActionButtons.js +6 -11
  377. package/dist/solid/notifications/fireNotification.js +14 -19
  378. package/dist/solid/notifications/index.js +4 -12
  379. package/dist/solid/notifications/nativeEngine.js +6 -19
  380. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  381. package/dist/solid/notifications/notificationAudio.js +77 -74
  382. package/dist/solid/notifications/notificationCardServices.js +34 -0
  383. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  384. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  385. package/dist/solid/notifications/notificationService.js +135 -0
  386. package/dist/solid/notifications/notificationTimeline.js +117 -124
  387. package/dist/solid/notifications/notifications.notifications.js +3 -22
  388. package/dist/solid/notifications/toast.js +168 -213
  389. package/dist/solid/notifications/webhookDelivery.js +27 -53
  390. package/dist/solid/overlay/ConfirmDialog.jsx +2 -54
  391. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  392. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  393. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  394. package/dist/solid/overlay/index.js +0 -3
  395. package/dist/solid/settings/index.js +1 -1
  396. package/dist/solid/tokens/index.js +1 -1
  397. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  398. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  399. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  400. package/dist/style.css +1 -1
  401. package/dist/tokens/index.cjs +1 -1
  402. package/dist/tokens/index.d.cts +1 -1
  403. package/dist/tokens/index.d.ts +1 -1
  404. package/dist/tokens/index.js +19 -20
  405. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  406. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  407. package/dist/{tooltipCoordinator-GV0L9lXH.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  408. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  409. package/dist/tree/index.cjs +1 -1
  410. package/dist/tree/index.js +1 -1
  411. package/dist/ui.css +1 -1
  412. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  413. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  414. package/dist/useListCommands-BO_XrRHj.js +38 -0
  415. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  416. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  417. package/dist/{server/notification-DFbp3S_f.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  418. package/dist/window-CUK6x8Pj.js +36 -0
  419. package/dist/window-_BfSgFGO.cjs +1 -0
  420. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  421. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  422. package/package.json +1 -1
  423. package/dist/CommandPalette-DToM9pUp.cjs +0 -2
  424. package/dist/CommandPalette-ZCFlLqrP.js +0 -3950
  425. package/dist/DateRangePicker-DHI3SNna.cjs +0 -9
  426. package/dist/GuidedTour-B-BXe3ul.js +0 -11214
  427. package/dist/GuidedTour-c7XiyOmE.cjs +0 -21
  428. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  429. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  430. package/dist/Modal-DpDHzCWT.cjs +0 -1
  431. package/dist/PageSkeleton-DzKYTuNy.cjs +0 -30
  432. package/dist/Progress-B5YmNeyU.js +0 -56
  433. package/dist/Progress-BNy0wsJl.cjs +0 -1
  434. package/dist/StatusBarNotificationBell-CZmym2gV.js +0 -2140
  435. package/dist/StatusBarNotificationBell-DG8Pe6R-.cjs +0 -4
  436. package/dist/ToggleButton-Bjxv8KGH.cjs +0 -1
  437. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  438. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  439. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  440. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  441. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  442. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  443. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  444. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  445. package/dist/_internal/contract/appName.d.cts +0 -10
  446. package/dist/_internal/contract/appName.d.ts +0 -10
  447. package/dist/_internal/contract/hostText.d.cts +0 -25
  448. package/dist/_internal/contract/hostText.d.ts +0 -25
  449. package/dist/_internal/platform/instantiation/common/descriptors.d.cts +0 -9
  450. package/dist/_internal/platform/instantiation/common/descriptors.d.ts +0 -9
  451. package/dist/_internal/platform/instantiation/common/instantiation.d.cts +0 -99
  452. package/dist/_internal/platform/instantiation/common/instantiation.d.ts +0 -99
  453. package/dist/_internal/platform/instantiation/common/serviceCollection.d.cts +0 -8
  454. package/dist/_internal/platform/instantiation/common/serviceCollection.d.ts +0 -8
  455. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  456. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  457. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  458. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  459. package/dist/announcerService-B7yicxvU.js +0 -97
  460. package/dist/announcerService-D_pFE24a.cjs +0 -1
  461. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  462. package/dist/catalogNotify-C9RzbC6x.cjs +0 -27
  463. package/dist/catalogNotify-CIhFuJ1b.js +0 -1210
  464. package/dist/createResizableSidebar-2TgiFZp1.js +0 -461
  465. package/dist/createResizableSidebar-pDoO-7q9.cjs +0 -1
  466. package/dist/defineSettings-By5ell8e.js +0 -391
  467. package/dist/defineSettings-DRv1FRbv.cjs +0 -1
  468. package/dist/descriptor-lw1fA9mi.cjs +0 -1
  469. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  470. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  471. package/dist/displayOwner-BNw2Foa_.cjs +0 -1
  472. package/dist/displayOwner-B_ezJv-O.js +0 -75
  473. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  474. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  475. package/dist/focusModality-B150daiS.js +0 -133
  476. package/dist/focusModality-PPfeW05D.cjs +0 -1
  477. package/dist/format-Dih0q9gm.cjs +0 -1
  478. package/dist/format-UGlMj0HW.js +0 -298
  479. package/dist/i18n-B9ccWgcR.cjs +0 -4
  480. package/dist/keys-BeeC5_RZ.cjs +0 -1
  481. package/dist/mainRealmDom-COGBiX78.js +0 -102
  482. package/dist/mainRealmDom-DijAgSXt.cjs +0 -1
  483. package/dist/menuFavorites-Db1DpHX6.js +0 -69
  484. package/dist/menuFavorites-EluLLTfi.cjs +0 -1
  485. package/dist/notification-CrxHMXsk.cjs +0 -1
  486. package/dist/notificationSuppressions-CBIJ4bC4.js +0 -430
  487. package/dist/notificationSuppressions-DFbFpayS.cjs +0 -1
  488. package/dist/notifications/copyToClipboard.d.cts +0 -6
  489. package/dist/notifications/copyToClipboard.d.ts +0 -6
  490. package/dist/notifications/createCopyFlash.d.cts +0 -17
  491. package/dist/notifications/createCopyFlash.d.ts +0 -17
  492. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  493. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  494. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  495. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  496. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  497. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  498. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  499. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  500. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  501. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  502. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  503. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  504. package/dist/overlay/ToastHost.d.cts +0 -7
  505. package/dist/overlay/ToastHost.d.ts +0 -7
  506. package/dist/pageTourState-CIr8ockR.js +0 -92
  507. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  508. package/dist/preferencesCache-BhUd3K9p.js +0 -65
  509. package/dist/preferencesCache-DJPCTPYx.cjs +0 -1
  510. package/dist/rendererLogging-B4XML4_G.cjs +0 -7
  511. package/dist/rendererLogging-Edo4ALXU.js +0 -822
  512. package/dist/server/CommandPalette-C3Bw1teR.cjs +0 -1
  513. package/dist/server/CommandPalette-S7tfmFMb.js +0 -3208
  514. package/dist/server/DateRangePicker-sX2m4194.cjs +0 -9
  515. package/dist/server/GuidedTour-BhJGkoPa.js +0 -10981
  516. package/dist/server/GuidedTour-Dx0endYh.cjs +0 -20
  517. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  518. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  519. package/dist/server/Modal-CAVr4DU6.cjs +0 -1
  520. package/dist/server/PageSkeleton-KwYRrZua.cjs +0 -30
  521. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  522. package/dist/server/Progress-nsDy6clG.js +0 -41
  523. package/dist/server/StatusBarNotificationBell-BJyGqDCX.cjs +0 -4
  524. package/dist/server/StatusBarNotificationBell-C9MCuKT6.js +0 -1974
  525. package/dist/server/ToggleButton-DTI2HB97.cjs +0 -1
  526. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  527. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  528. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  529. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  530. package/dist/server/announcerService-B7yicxvU.js +0 -97
  531. package/dist/server/announcerService-D_pFE24a.cjs +0 -1
  532. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  533. package/dist/server/catalogNotify-BPPTINme.cjs +0 -27
  534. package/dist/server/catalogNotify-mUcKuUmZ.js +0 -1248
  535. package/dist/server/createResizableSidebar-CCrAgu_K.js +0 -299
  536. package/dist/server/createResizableSidebar-DGd-3PrM.cjs +0 -1
  537. package/dist/server/defineSettings-By5ell8e.js +0 -391
  538. package/dist/server/defineSettings-DRv1FRbv.cjs +0 -1
  539. package/dist/server/descriptor-IJq9wdXK.cjs +0 -1
  540. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  541. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  542. package/dist/server/displayOwner-BNw2Foa_.cjs +0 -1
  543. package/dist/server/displayOwner-B_ezJv-O.js +0 -75
  544. package/dist/server/focusModality-CeTPyRiF.cjs +0 -1
  545. package/dist/server/focusModality-DmOZptla.js +0 -124
  546. package/dist/server/format-x-8syaS2.cjs +0 -1
  547. package/dist/server/i18n-B9ccWgcR.cjs +0 -4
  548. package/dist/server/index-Xlas73iC.cjs +0 -1
  549. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  550. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  551. package/dist/server/menuFavorites-Db1DpHX6.js +0 -69
  552. package/dist/server/menuFavorites-EluLLTfi.cjs +0 -1
  553. package/dist/server/notification-CrxHMXsk.cjs +0 -1
  554. package/dist/server/notificationSuppressions-D7FZmJy8.cjs +0 -1
  555. package/dist/server/notificationSuppressions-DkrUMXHx.js +0 -391
  556. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  557. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  558. package/dist/server/preferencesCache-BhUd3K9p.js +0 -65
  559. package/dist/server/preferencesCache-DJPCTPYx.cjs +0 -1
  560. package/dist/server/rendererLogging-B4XML4_G.cjs +0 -7
  561. package/dist/server/rendererLogging-Edo4ALXU.js +0 -822
  562. package/dist/server/settingsSearchContributor-DZj7Wc8l.cjs +0 -1
  563. package/dist/server/settingsSearchContributor-DeMn-njw.js +0 -199
  564. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  565. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  566. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  567. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  568. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  569. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  570. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  571. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  572. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  573. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  574. package/dist/settingsSearchContributor-C-UJc7Xc.js +0 -199
  575. package/dist/settingsSearchContributor-Du0SDpJt.cjs +0 -1
  576. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  577. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  578. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  579. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  580. package/dist/solid/_internal/contract/appName.js +0 -7
  581. package/dist/solid/_internal/contract/hostText.js +0 -15
  582. package/dist/solid/_internal/platform/instantiation/common/descriptors.js +0 -10
  583. package/dist/solid/_internal/platform/instantiation/common/instantiation.js +0 -35
  584. package/dist/solid/_internal/platform/instantiation/common/serviceCollection.js +0 -14
  585. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  586. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  587. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  588. package/dist/solid/notifications/copyToClipboard.js +0 -21
  589. package/dist/solid/notifications/createCopyFlash.js +0 -26
  590. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  591. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  592. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  593. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  594. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  595. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  596. package/dist/solid/overlay/ToastHost.jsx +0 -1
  597. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  598. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  599. package/dist/tooltipCoordinator-y5YP3tsJ.cjs +0 -1
  600. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  601. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  602. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  603. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  604. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  605. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  606. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  607. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1,1210 +0,0 @@
1
- import { B as oe } from "./bugIndicatingError-h3J5qkL6.js";
2
- import { g as K, e as N } from "./rendererLogging-Edo4ALXU.js";
3
- import { G as Ee, r as Y, H as ke, F as P, I as Ae, q as ce, t as X, s as Ce, J as De, f as ae, K as ue, j as Re, n as Z, m as $e, k as Ne, L as le, M as Ie, e as Oe } from "./notificationSuppressions-CBIJ4bC4.js";
4
- import { n as f } from "./notification-DFbp3S_f.js";
5
- import { t as m } from "./i18n-CYq-dVvv.js";
6
- const Ue = {
7
- info: { freq: 660, ms: 140 },
8
- success: { freq: 880, ms: 180 },
9
- warning: { freq: 520, ms: 220 },
10
- error: { freq: 320, ms: 260 }
11
- }, Me = {
12
- info: "soundOnInfo",
13
- success: "soundOnSuccess",
14
- warning: "soundOnWarning",
15
- error: "soundOnError"
16
- }, qe = {
17
- info: "customSoundInfo",
18
- success: "customSoundSuccess",
19
- warning: "customSoundWarning",
20
- error: "customSoundError"
21
- };
22
- function Fe(t, e, r) {
23
- if (!e[Me[t]] || e.quietHoursMutesSounds && r) return null;
24
- const i = e[qe[t]].trim();
25
- if (i) return { kind: "custom", path: i };
26
- const n = Ue[t];
27
- return { kind: "builtin", freq: n.freq, ms: n.ms };
28
- }
29
- const W = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
30
- async function Ke(t) {
31
- const e = W.get(t);
32
- if (e) return e;
33
- let r = q.get(t);
34
- return r || (r = Ee(t).then((i) => (q.delete(t), i && W.set(t, i), i)), q.set(t, r)), await r ?? void 0;
35
- }
36
- function $t() {
37
- W.clear(), q.clear();
38
- }
39
- const z = K("NotificationAudio");
40
- let O = null, H = !1;
41
- function Pe() {
42
- if (H) return null;
43
- if (O) return O;
44
- try {
45
- const t = window.AudioContext ?? window.webkitAudioContext;
46
- return t ? (O = new t(), O) : (H = !0, null);
47
- } catch (t) {
48
- return H = !0, z.warn("AudioContext could not be created; notification sounds are off:", t), null;
49
- }
50
- }
51
- async function _e(t) {
52
- const e = await Ke(t);
53
- if (e)
54
- try {
55
- const r = new Audio(e);
56
- r.volume = 0.6, await r.play();
57
- } catch (r) {
58
- z.warn("Custom notification sound could not be played:", r);
59
- }
60
- }
61
- function de(t = 800, e = 200) {
62
- const r = Pe();
63
- if (r)
64
- try {
65
- const i = r.currentTime, n = r.createOscillator(), s = r.createGain();
66
- n.connect(s), s.connect(r.destination), n.frequency.value = t, s.gain.setValueAtTime(0.3, i), s.gain.exponentialRampToValueAtTime(0.01, i + e / 1e3), n.start(i), n.stop(i + e / 1e3);
67
- } catch (i) {
68
- z.warn("Notification tone could not be played:", i);
69
- }
70
- }
71
- function He() {
72
- de(800, 200);
73
- }
74
- function We(t, e) {
75
- const r = Fe(
76
- t,
77
- f.get(),
78
- e
79
- );
80
- if (r) {
81
- if (r.kind === "custom") {
82
- _e(r.path);
83
- return;
84
- }
85
- de(r.freq, r.ms);
86
- }
87
- }
88
- const fe = K("NotificationTimeline");
89
- function Nt(t) {
90
- return t.vendorError === void 0 ? null : Y(t.vendorError);
91
- }
92
- const Be = 200;
93
- let B = [];
94
- const L = /* @__PURE__ */ new Set();
95
- function A() {
96
- return [...B];
97
- }
98
- function C(t) {
99
- const e = [...t].sort(
100
- (o, c) => c.createdAt - o.createdAt
101
- ), r = e.filter((o) => o.pinned === !0), n = e.filter((o) => o.pinned !== !0).slice(
102
- 0,
103
- Math.max(0, Be - r.length)
104
- );
105
- B = [...[...r].sort(
106
- (o, c) => (c.pinnedAt ?? c.createdAt) - (o.pinnedAt ?? o.createdAt)
107
- ), ...n];
108
- for (const o of Array.from(L))
109
- try {
110
- o(B);
111
- } catch (c) {
112
- fe.warn("Zaman cizelgesi dinleyicisi firlatti:", c);
113
- }
114
- }
115
- let k = 0, I = 0;
116
- const V = /* @__PURE__ */ new Set();
117
- function b(t, e, r = "general", i = "default", n, s) {
118
- if (!t.trim()) return;
119
- const o = {
120
- id: `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`,
121
- message: N(t),
122
- tone: e,
123
- createdAt: Date.now(),
124
- source: r,
125
- priority: i,
126
- ...n && n.length > 0 ? { actions: n } : {},
127
- ...s ? { vendorError: s } : {}
128
- };
129
- C([o, ...A()]), k += 1, ge();
130
- }
131
- function R(t) {
132
- if (t)
133
- return [{ label: t.label, onClick: t.onClick, primary: !0 }];
134
- }
135
- function ge() {
136
- const t = Math.max(0, k - I);
137
- for (const e of Array.from(V))
138
- try {
139
- e(t);
140
- } catch (r) {
141
- fe.warn("Okunmadi sayaci dinleyicisi firlatti:", r);
142
- }
143
- me(t);
144
- }
145
- let j = -1;
146
- function me(t) {
147
- const e = f.get(), r = e.badgeCountEnabled ? Math.min(t, e.badgeCountMax) : 0;
148
- r !== j && (j = r, ke(r));
149
- }
150
- function It() {
151
- const t = Math.max(0, k - I);
152
- j = -1, me(t);
153
- }
154
- function Ot(t) {
155
- return V.add(t), t(Math.max(0, k - I)), () => {
156
- V.delete(t);
157
- };
158
- }
159
- function Ut() {
160
- I !== k && (I = k, ge());
161
- }
162
- function Mt(t) {
163
- return L.add(t), t(A()), () => {
164
- L.delete(t);
165
- };
166
- }
167
- function qt() {
168
- C([]);
169
- }
170
- function Ft(t) {
171
- const e = A().filter((r) => r.id !== t);
172
- C(e);
173
- }
174
- function Kt(t) {
175
- if (t.length === 0) return;
176
- const e = new Set(t), r = A().filter((i) => !e.has(i.id));
177
- C(r);
178
- }
179
- function Pt(t) {
180
- if (!t) return;
181
- const e = A().filter((r) => r.source !== t);
182
- C(e);
183
- }
184
- function _t(t) {
185
- const r = A().map((i) => {
186
- if (i.id !== t) return i;
187
- const n = !i.pinned, { pinnedAt: s, ...o } = i;
188
- return n ? { ...o, pinned: !0, pinnedAt: Date.now() } : { ...o, pinned: !1 };
189
- });
190
- C(r);
191
- }
192
- const F = /* @__PURE__ */ new Map();
193
- function Ht() {
194
- F.clear();
195
- }
196
- function Le(t) {
197
- if (F.has(t))
198
- return F.get(t) ?? null;
199
- let e;
200
- try {
201
- e = new RegExp(t, "i");
202
- } catch {
203
- e = null;
204
- }
205
- return F.set(t, e), e;
206
- }
207
- function Ve(t, e) {
208
- const r = t.conditions;
209
- if (r.source && r.source !== e.source || r.severities && r.severities.length > 0 && !r.severities.includes(e.severity))
210
- return !1;
211
- if (r.titleRegex) {
212
- const i = Le(r.titleRegex);
213
- if (!i || !i.test(e.title)) return !1;
214
- }
215
- return !0;
216
- }
217
- function je(t, e) {
218
- if (e.length === 0) return t;
219
- let r = { ...t };
220
- for (const i of e)
221
- if (i.enabled && Ve(i, r)) {
222
- if (i.actions.suppress === !0) return null;
223
- if (i.actions.setSeverity && (r = { ...r, severity: i.actions.setSeverity }), i.actions.setPriority && (r = { ...r, priority: i.actions.setPriority }), i.actions.addPrefix) {
224
- const n = i.actions.addPrefix.trim();
225
- n && (r = { ...r, title: `${n} ${r.title}` });
226
- }
227
- }
228
- return r;
229
- }
230
- function ee(t) {
231
- const e = /^(\d{1,2}):(\d{2})$/.exec(t.trim());
232
- if (!e) return null;
233
- const r = Number(e[1]), i = Number(e[2]);
234
- return r > 23 || i > 59 ? null : r * 60 + i;
235
- }
236
- function ye(t, e) {
237
- if (!t.quietHoursEnabled || !t.quietHoursWeekdays.includes(e.getDay())) return !1;
238
- const r = ee(t.quietHoursStart), i = ee(t.quietHoursEnd);
239
- if (r === null || i === null || r === i) return !1;
240
- const n = e.getHours() * 60 + e.getMinutes();
241
- return r < i ? n >= r && n < i : n >= r || n < i;
242
- }
243
- function Qe(t) {
244
- return t.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
245
- }
246
- const te = {
247
- info: 0,
248
- success: 1,
249
- warning: 2,
250
- error: 3
251
- };
252
- function Ye(t, e) {
253
- return e.osNativeEnabled ? t.priority === "urgent" && e.osNativeUrgentAlways ? { fire: !0, onlyWhenUnfocused: !1 } : te[t.severity] < te[e.osNativeMinSeverity] ? { fire: !1, onlyWhenUnfocused: !1 } : {
254
- fire: !0,
255
- onlyWhenUnfocused: e.osNativeOnlyWhenUnfocused
256
- } : { fire: !1, onlyWhenUnfocused: !1 };
257
- }
258
- const Xe = {
259
- "sql-execution": "sql",
260
- users: "users",
261
- tablespaces: "tablespaces",
262
- rss: "rss-feeds",
263
- locking: "locking",
264
- monitoring: "monitoring"
265
- };
266
- function ze(t, e) {
267
- if (e) return e;
268
- if (t !== void 0)
269
- return Xe[t];
270
- }
271
- const Ge = "notification.emailDigestSmtpPass", Je = "notification.webhook.url.";
272
- function ve() {
273
- const t = /* @__PURE__ */ new Map();
274
- return {
275
- get: (e) => Promise.resolve(t.get(e)),
276
- set: async (e, r) => {
277
- t.set(e, r);
278
- },
279
- delete: async (e) => {
280
- t.delete(e);
281
- },
282
- keys: async (e) => [...t.keys()].filter((r) => r.startsWith(e))
283
- };
284
- }
285
- let G = ve();
286
- function Wt(t) {
287
- G = t ?? ve();
288
- }
289
- function Ze(t) {
290
- return `${Je}${t}`;
291
- }
292
- function et() {
293
- return G.get(Ge);
294
- }
295
- function tt(t) {
296
- return G.get(Ze(t));
297
- }
298
- let pe = "";
299
- function Bt(t) {
300
- pe = t.trim();
301
- }
302
- function he() {
303
- return pe;
304
- }
305
- const rt = K("WebhookDelivery"), it = {
306
- info: "#007AB0",
307
- success: "#108846",
308
- warning: "#D27908",
309
- error: "#BE2E34"
310
- }, nt = {
311
- info: 1668818,
312
- success: 3046706,
313
- warning: 16088064,
314
- error: 12986408
315
- };
316
- function st(t, e) {
317
- const { severities: r, priorities: i, sources: n } = t.filters;
318
- return !(r.length > 0 && !r.includes(e.severity) || i.length > 0 && !i.includes(e.priority) || n.length > 0 && !n.includes(e.source));
319
- }
320
- function ot(t, e) {
321
- switch (t.type) {
322
- case "slack":
323
- return {
324
- text: e.title,
325
- attachments: [
326
- {
327
- color: it[e.severity],
328
- fields: [
329
- { title: "Source", value: e.source, short: !0 },
330
- { title: "Severity", value: e.severity, short: !0 },
331
- { title: "Priority", value: e.priority, short: !0 }
332
- ],
333
- text: e.body ?? ""
334
- }
335
- ]
336
- };
337
- case "discord":
338
- return {
339
- embeds: [
340
- {
341
- title: e.title,
342
- description: e.body ?? "",
343
- color: nt[e.severity],
344
- fields: [
345
- { name: "Source", value: e.source, inline: !0 },
346
- { name: "Severity", value: e.severity, inline: !0 },
347
- { name: "Priority", value: e.priority, inline: !0 }
348
- ]
349
- }
350
- ]
351
- };
352
- case "generic":
353
- default:
354
- return {
355
- title: e.title,
356
- body: e.body ?? "",
357
- severity: e.severity,
358
- priority: e.priority,
359
- source: e.source,
360
- timestamp: Date.now()
361
- };
362
- }
363
- }
364
- async function ct(t, e, r) {
365
- try {
366
- const i = JSON.stringify(ot(t, r));
367
- await fetch(e, {
368
- method: "POST",
369
- headers: { "Content-Type": "application/json" },
370
- body: i
371
- });
372
- } catch (i) {
373
- rt.warn("Webhook delivery failed:", i);
374
- }
375
- }
376
- async function at(t, e) {
377
- const r = await tt(t.id) ?? "";
378
- r && await ct(t, r, e);
379
- }
380
- function ut(t) {
381
- const r = f.get().webhooks.filter(
382
- (i) => i.enabled && st(i, t)
383
- );
384
- if (r.length !== 0)
385
- for (const i of r)
386
- at(i, t);
387
- }
388
- let Q = null;
389
- function Lt(t) {
390
- Q = t;
391
- }
392
- const lt = K("EmailDigest"), w = [], re = 500, ie = {
393
- info: 0,
394
- success: 1,
395
- warning: 2,
396
- error: 3
397
- };
398
- function dt(t) {
399
- const e = f.get();
400
- e.emailDigestEnabled && (ie[t.severity] < ie[e.emailDigestMinSeverity] || (w.push(t), w.length > re && w.splice(0, w.length - re)));
401
- }
402
- const U = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
403
- function ft(t) {
404
- const e = he(), r = t.map((i) => `<tr>
405
- <td style="padding:4px 8px">${new Date(i.at).toISOString().slice(11, 19)}</td>
406
- <td style="padding:4px 8px"><strong>${i.severity}</strong></td>
407
- <td style="padding:4px 8px">${U(i.source)}</td>
408
- <td style="padding:4px 8px">${U(i.title)}${i.body ? `<br><small>${U(i.body)}</small>` : ""}</td>
409
- </tr>`).join(`
410
- `);
411
- return `<!doctype html>
412
- <html><body>
413
- <h2>${e ? `${U(e)} notification digest` : "Notification digest"}</h2>
414
- <p>${t.length} notification(s) since the last digest.</p>
415
- <table style="border-collapse:collapse">
416
- <thead><tr style="background:#eee">
417
- <th style="padding:4px 8px;text-align:left">Time (UTC)</th>
418
- <th style="padding:4px 8px;text-align:left">Severity</th>
419
- <th style="padding:4px 8px;text-align:left">Source</th>
420
- <th style="padding:4px 8px;text-align:left">Message</th>
421
- </tr></thead>
422
- <tbody>
423
- ${r}
424
- </tbody></table>
425
- </body></html>`;
426
- }
427
- function gt(t) {
428
- const e = t.map((r) => `[${new Date(r.at).toISOString()}] ${r.severity.toUpperCase()} (${r.source}): ${r.title}${r.body ? ` — ${r.body}` : ""}`);
429
- return `${t.length} notification(s):
430
-
431
- ${e.join(`
432
- `)}`;
433
- }
434
- function Vt(t) {
435
- switch (t.kind) {
436
- case "disabled":
437
- return m("Email digest is turned off.");
438
- case "smtp-incomplete":
439
- return m("SMTP host, sender and recipient are required.");
440
- case "send-failed":
441
- return P(t.error, m("The digest could not be sent."));
442
- }
443
- }
444
- async function mt() {
445
- const t = f.get();
446
- if (!t.emailDigestEnabled)
447
- return { kind: "not-sent", reason: { kind: "disabled" } };
448
- if (w.length === 0) return { kind: "sent", count: 0 };
449
- if (!t.emailDigestSmtpHost || !t.emailDigestFrom || !t.emailDigestTo)
450
- return { kind: "not-sent", reason: { kind: "smtp-incomplete" } };
451
- const e = w.splice(0, w.length), r = {
452
- sendEmailDigest: (o) => Q ? Q(o) : Promise.reject(new Error("No email digest transport configured"))
453
- }, i = he(), n = `${i ? `[${i}] ` : ""}${e.length} notification(s)`, s = await et() ?? "";
454
- try {
455
- return await r.sendEmailDigest({
456
- smtp: {
457
- host: t.emailDigestSmtpHost,
458
- port: t.emailDigestSmtpPort,
459
- secure: t.emailDigestSmtpSecure,
460
- user: t.emailDigestSmtpUser,
461
- pass: s
462
- },
463
- from: t.emailDigestFrom,
464
- to: t.emailDigestTo,
465
- subject: n,
466
- html: ft(e),
467
- text: gt(e)
468
- }), { kind: "sent", count: e.length };
469
- } catch (o) {
470
- return w.unshift(...e), { kind: "not-sent", reason: { kind: "send-failed", error: o } };
471
- }
472
- }
473
- let ne = 0, se = null;
474
- function yt(t) {
475
- const e = f.get();
476
- if (!e.emailDigestEnabled) return !1;
477
- const r = t.getHours(), i = t.getMinutes(), n = t.getDay();
478
- switch (e.emailDigestSchedule) {
479
- case "hourly":
480
- return i === 0;
481
- case "daily-9am":
482
- return r === 9 && i === 0;
483
- case "daily-5pm":
484
- return r === 17 && i === 0;
485
- case "weekly-mon-9am":
486
- return n === 1 && r === 9 && i === 0;
487
- }
488
- }
489
- function jt() {
490
- se === null && (typeof window > "u" || (se = window.setInterval(() => {
491
- const t = /* @__PURE__ */ new Date();
492
- if (!yt(t)) return;
493
- const e = Math.floor(t.getTime() / 6e4);
494
- e !== ne && (ne = e, mt().then((r) => {
495
- r.kind === "not-sent" && r.reason.kind === "send-failed" && lt.warn("scheduled email digest failed", r.reason.error);
496
- }));
497
- }, 6e4)));
498
- }
499
- function be() {
500
- return ye(f.get(), /* @__PURE__ */ new Date());
501
- }
502
- function x(t, e, r, i, n) {
503
- const s = f.get(), o = Ne(t, e);
504
- return Re({ priority: r, recordTimeline: n }, s, {
505
- dismissed: i !== void 0 && $e(i),
506
- remindSuppressed: i !== void 0 && Z(i) || Z(o),
507
- sourceMuted: ce(t),
508
- inQuietHours: be()
509
- });
510
- }
511
- function vt(t, e, r, i) {
512
- return {
513
- label: t.label,
514
- primary: i,
515
- keepOpen: t.expireOnAction === !1,
516
- onClick: () => {
517
- De(r);
518
- try {
519
- t.onClick();
520
- } finally {
521
- const n = e();
522
- t.expireOnAction !== !1 && n && ae(n);
523
- }
524
- }
525
- };
526
- }
527
- function $(t) {
528
- var h, g;
529
- const e = t.options.source ?? "general";
530
- if (Ae(e, t.decision.showToast, ce(e)), !t.decision.showToast) return null;
531
- We(t.severity, be());
532
- const { options: r } = t, i = ((h = r.subtitle) == null ? void 0 : h.trim()) || ((g = r.description) == null ? void 0 : g.trim()), n = r.id !== void 0 ? String(r.id) : void 0, s = f.get(), o = r.markdown ?? s.markdownEnabled, c = [
533
- ...t.primaryAction ? [t.primaryAction] : [],
534
- ...r.actions ?? []
535
- ], u = ze(
536
- r.source,
537
- r.defaultRoute
538
- );
539
- let l = null;
540
- const a = X({
541
- severity: t.severity,
542
- title: t.title,
543
- ...i ? { body: i } : {},
544
- ...o ? { markdown: !0 } : {},
545
- source: r.source ?? "general",
546
- priority: r.priority ?? "default",
547
- ...r.duration !== void 0 ? { durationMs: r.duration } : {},
548
- ...r.dontShowAgainKey ? { neverShowAgainKey: r.dontShowAgainKey } : {},
549
- ...n ? { id: n } : {},
550
- ...r.icon ? { icon: r.icon } : {},
551
- ...u ? { defaultRoute: u } : {},
552
- ...t.vendorError ? { vendorError: t.vendorError } : {},
553
- ...c.length > 0 ? {
554
- actions: c.map(
555
- (S, D) => vt(S, () => l == null ? void 0 : l.id, e, D === 0)
556
- )
557
- } : {}
558
- });
559
- if (l = a, Ce(a)) return a;
560
- const p = N(t.title), y = i ? N(i) : void 0, d = {
561
- title: p,
562
- ...y ? { body: y } : {},
563
- severity: t.severity,
564
- priority: r.priority ?? "default",
565
- source: r.source ?? "general"
566
- };
567
- return pt(d), ut(d), dt({ ...d, at: Date.now() }), a;
568
- }
569
- function pt(t) {
570
- const e = Ye(t, f.get());
571
- e.fire && ue({
572
- title: t.title,
573
- ...t.body ? { body: t.body } : {},
574
- severity: t.severity,
575
- urgent: t.priority === "urgent",
576
- onlyWhenUnfocused: e.onlyWhenUnfocused
577
- });
578
- }
579
- function T(t) {
580
- return typeof t == "string" ? t : t instanceof Error ? t.message : t == null ? "" : String(t);
581
- }
582
- function we(t, e, r, i = le) {
583
- var a, p, y;
584
- const n = T(t), s = (a = e.title) == null ? void 0 : a.trim(), o = ((p = e.subtitle) == null ? void 0 : p.trim()) || ((y = e.description) == null ? void 0 : y.trim());
585
- let c = s ?? n, u = o;
586
- if (r && !s) {
587
- const d = r.helpers.formatCode(r.code), h = new RegExp(
588
- `^\\s*${Qe(d)}\\s*[:-]\\s*(.+)$`,
589
- "i"
590
- ), g = n.match(h);
591
- if (g != null && g[1]) {
592
- c = d;
593
- const S = g[1].trim();
594
- u = u ? `${S}
595
-
596
- ${u}` : S;
597
- }
598
- }
599
- let l = e.action;
600
- if (!l && r) {
601
- const d = r.helpers.docsUrl(r.code);
602
- d && (l = {
603
- label: `${r.helpers.formatCode(r.code)} ${r.helpers.docsLinkLabel}`,
604
- onClick: () => i(d)
605
- });
606
- }
607
- return { text: n, displayText: c, bodyText: u, primaryAction: l };
608
- }
609
- function M(t) {
610
- return je(
611
- t,
612
- f.get().notificationRules
613
- );
614
- }
615
- const E = {
616
- success(t, e = {}) {
617
- const r = T(t), i = f.get(), n = e.source ?? "general", s = e.priority ?? "default", o = M({
618
- severity: "success",
619
- title: r,
620
- priority: s,
621
- source: n
622
- });
623
- if (!o) return "";
624
- const c = x(
625
- o.source,
626
- o.title,
627
- o.priority,
628
- e.dontShowAgainKey,
629
- e.recordTimeline
630
- );
631
- if (c.recordTimeline && b(
632
- o.title,
633
- o.severity === "success" ? "success" : o.severity,
634
- o.source,
635
- o.priority,
636
- R(e.action)
637
- ), !i.showSuccessToasts && o.priority !== "urgent") return "";
638
- const u = $({
639
- severity: o.severity,
640
- title: o.title,
641
- options: { ...e, source: o.source, priority: o.priority },
642
- decision: c,
643
- ...e.action ? { primaryAction: e.action } : {}
644
- });
645
- return (u == null ? void 0 : u.id) ?? "";
646
- },
647
- error(t, e = !1) {
648
- const r = T(t), i = typeof e == "boolean" ? {} : e, n = i.vendorError === void 0 ? null : Y(i.vendorError), s = we(r, i, n), o = n !== null;
649
- let c = s.displayText;
650
- const u = s.bodyText, l = u ? `${c}
651
- ${u}` : r, a = i.source ?? (o ? "vendor-error" : "general"), p = o && f.get().vendorCodesAreUrgent, y = i.priority ?? (p ? "urgent" : "default"), d = M({
652
- severity: "error",
653
- title: c,
654
- priority: y,
655
- source: a
656
- });
657
- if (!d) return "";
658
- c = d.title;
659
- const h = d.source, g = d.priority, S = x(
660
- h,
661
- c,
662
- g,
663
- i.dontShowAgainKey,
664
- i.recordTimeline
665
- );
666
- S.recordTimeline && b(
667
- l,
668
- d.severity,
669
- h,
670
- g,
671
- R(i.action),
672
- i.vendorError
673
- );
674
- const D = $({
675
- severity: d.severity,
676
- title: c,
677
- // bodyText overrides any caller-provided description when the ORA
678
- // splitter promoted the message into the body. Conditional spread
679
- // satisfies exactOptionalPropertyTypes when bodyText is undefined.
680
- options: {
681
- ...i,
682
- source: h,
683
- priority: g,
684
- ...u ? { description: u } : {}
685
- },
686
- decision: S,
687
- ...s.primaryAction ? { primaryAction: s.primaryAction } : {},
688
- ...i.vendorError ? { vendorError: i.vendorError } : {}
689
- });
690
- return (D == null ? void 0 : D.id) ?? "";
691
- },
692
- info(t, e = {}) {
693
- const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = M({
694
- severity: "info",
695
- title: r,
696
- priority: n,
697
- source: i
698
- });
699
- if (!s) return "";
700
- const o = x(
701
- s.source,
702
- s.title,
703
- s.priority,
704
- e.dontShowAgainKey,
705
- e.recordTimeline
706
- );
707
- o.recordTimeline && b(
708
- s.title,
709
- s.severity,
710
- s.source,
711
- s.priority,
712
- R(e.action)
713
- );
714
- const c = $({
715
- severity: s.severity,
716
- title: s.title,
717
- options: { ...e, source: s.source, priority: s.priority },
718
- decision: o,
719
- ...e.action ? { primaryAction: e.action } : {}
720
- });
721
- return (c == null ? void 0 : c.id) ?? "";
722
- },
723
- warning(t, e = {}) {
724
- const r = T(t), i = e.source ?? "general", n = e.priority ?? "default", s = M({
725
- severity: "warning",
726
- title: r,
727
- priority: n,
728
- source: i
729
- });
730
- if (!s) return "";
731
- const o = x(
732
- s.source,
733
- s.title,
734
- s.priority,
735
- e.dontShowAgainKey,
736
- e.recordTimeline
737
- );
738
- o.recordTimeline && b(
739
- s.title,
740
- s.severity,
741
- s.source,
742
- s.priority,
743
- R(e.action)
744
- );
745
- const c = $({
746
- severity: s.severity,
747
- title: s.title,
748
- options: { ...e, source: s.source, priority: s.priority },
749
- decision: o,
750
- ...e.action ? { primaryAction: e.action } : {}
751
- });
752
- return (c == null ? void 0 : c.id) ?? "";
753
- },
754
- queryCompleted(t, e = {}) {
755
- const r = T(t), i = f.get(), n = e.source ?? "sql-execution", s = e.priority ?? "default", o = x(
756
- n,
757
- r,
758
- s,
759
- e.dontShowAgainKey,
760
- e.recordTimeline
761
- );
762
- if (o.recordTimeline && b(
763
- r,
764
- "success",
765
- n,
766
- s,
767
- R(e.action)
768
- ), i.notificationsEnabled && i.soundOnQueryCompletion && !(i.quietHoursMutesSounds && ye(i, /* @__PURE__ */ new Date())) && He(), !i.showSuccessToasts && s !== "urgent") return "";
769
- const c = $({
770
- severity: "success",
771
- title: r,
772
- options: { ...e, source: n, priority: s },
773
- decision: o,
774
- ...e.action ? { primaryAction: e.action } : {}
775
- });
776
- return (c == null ? void 0 : c.id) ?? "";
777
- },
778
- /**
779
- * Long-running progress toast. Returns a handle that can `update` the
780
- * message in place and then resolve as `success`/`fail`/`dismiss`. Source
781
- * mutes still apply unless `priority` is set to `urgent`.
782
- */
783
- progress(t, e = {}) {
784
- const r = T(t), i = e.onCancel, n = e.source ?? "general", s = e.priority ?? "default", o = x(
785
- n,
786
- r,
787
- s,
788
- e.dontShowAgainKey,
789
- e.recordTimeline
790
- );
791
- if (o.recordTimeline && b(r, "info", n, s), !o.showToast)
792
- return {
793
- update: () => {
794
- },
795
- success: () => {
796
- },
797
- fail: () => {
798
- },
799
- dismiss: () => {
800
- }
801
- };
802
- const c = e.id !== void 0 ? String(e.id) : `progress-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`, u = X({
803
- id: c,
804
- severity: "info",
805
- title: r,
806
- source: n,
807
- priority: s,
808
- sticky: !0,
809
- progress: i ? { onCancel: i } : {}
810
- });
811
- return {
812
- update: (l, a) => {
813
- u.update({ title: l }), a !== void 0 && u.setProgress({
814
- value: Math.max(0, Math.min(1, a)),
815
- ...i ? { onCancel: i } : {}
816
- });
817
- },
818
- success: (l) => {
819
- const a = l ?? r;
820
- o.recordTimeline && b(a, "success", n, s), u.update({
821
- title: a,
822
- severity: "success",
823
- sticky: !1,
824
- progress: { done: !0 }
825
- });
826
- },
827
- fail: (l) => {
828
- const a = l ?? r;
829
- o.recordTimeline && b(a, "error", n, s), u.update({
830
- title: a,
831
- severity: "error",
832
- sticky: !0,
833
- progress: { done: !0 },
834
- durationMs: 1 / 0
835
- });
836
- },
837
- dismiss: () => u.close()
838
- };
839
- }
840
- };
841
- function v(t, e) {
842
- return {
843
- ...t,
844
- category: t.category ?? t.id.split(".")[0] ?? "general",
845
- build: e
846
- };
847
- }
848
- function Qt(t, e, r) {
849
- return {
850
- id: t,
851
- notification: e,
852
- resolve: () => e.build(r)
853
- };
854
- }
855
- function _(t, e) {
856
- return {
857
- message: t,
858
- ...e != null && e.title ? { title: e.title } : {},
859
- ...e != null && e.subtitle ? { subtitle: e.subtitle } : {},
860
- ...e != null && e.description ? { description: e.description } : {},
861
- ...e != null && e.action ? { action: e.action } : {},
862
- ...(e == null ? void 0 : e.duration) !== void 0 ? { duration: e.duration } : {},
863
- ...e != null && e.dontShowAgainKey ? { dontShowAgainKey: e.dontShowAgainKey } : {},
864
- ...e != null && e.defaultRoute ? { defaultRoute: e.defaultRoute } : {},
865
- ...e != null && e.icon ? { icon: e.icon } : {},
866
- ...(e == null ? void 0 : e.markdown) !== void 0 ? { markdown: e.markdown } : {},
867
- ...(e == null ? void 0 : e.recordTimeline) !== void 0 ? { recordTimeline: e.recordTimeline } : {},
868
- ...(e == null ? void 0 : e.id) !== void 0 ? { id: e.id } : {},
869
- ...e != null && e.onCancel ? { onCancel: e.onCancel } : {}
870
- };
871
- }
872
- v(
873
- {
874
- id: "notifications.copyToClipboard.success.1",
875
- source: "general",
876
- severity: "success",
877
- priority: "default",
878
- delivery: "in-app",
879
- kind: "message"
880
- },
881
- ({ successNotice: t }) => ({
882
- message: t ?? m("Copied to clipboard.")
883
- })
884
- );
885
- v(
886
- {
887
- id: "notifications.copyToClipboard.error.2",
888
- source: "general",
889
- severity: "error",
890
- priority: "default",
891
- delivery: "in-app",
892
- kind: "message"
893
- },
894
- () => ({ message: m("Could not copy to clipboard.") })
895
- );
896
- const Yt = v(
897
- {
898
- id: "notifications.timeline.replay.error",
899
- source: "general",
900
- severity: "error",
901
- priority: "urgent",
902
- delivery: "in-app",
903
- kind: "message"
904
- },
905
- ({
906
- timelineMessage: t,
907
- options: e
908
- }) => _(t, e)
909
- ), Xt = v(
910
- {
911
- id: "notifications.timeline.replay.warning",
912
- source: "general",
913
- severity: "warning",
914
- priority: "urgent",
915
- delivery: "in-app",
916
- kind: "message"
917
- },
918
- ({
919
- timelineMessage: t,
920
- options: e
921
- }) => _(t, e)
922
- ), zt = v(
923
- {
924
- id: "notifications.timeline.replay.success",
925
- source: "general",
926
- severity: "success",
927
- priority: "urgent",
928
- delivery: "in-app",
929
- kind: "message"
930
- },
931
- ({
932
- timelineMessage: t,
933
- options: e
934
- }) => _(t, e)
935
- ), Gt = v(
936
- {
937
- id: "notifications.timeline.replay.info",
938
- source: "general",
939
- severity: "info",
940
- priority: "urgent",
941
- delivery: "in-app",
942
- kind: "message"
943
- },
944
- ({
945
- timelineMessage: t,
946
- options: e
947
- }) => _(t, e)
948
- ), Jt = v(
949
- {
950
- id: "notifications.timeline.exported",
951
- source: "general",
952
- severity: "success",
953
- priority: "default",
954
- delivery: "in-app",
955
- kind: "message"
956
- },
957
- ({ entryCount: t }) => ({
958
- message: m("Exported {count} notifications", { count: t })
959
- })
960
- ), Zt = v(
961
- {
962
- id: "notifications.timeline.export.failed",
963
- source: "general",
964
- severity: "error",
965
- priority: "default",
966
- delivery: "in-app",
967
- kind: "message"
968
- },
969
- ({ cause: t }) => ({
970
- message: m("Export failed: {message}", {
971
- message: P(t, m("Operation failed."))
972
- }),
973
- cause: t
974
- })
975
- ), ht = v(
976
- {
977
- id: "notifications.errorAction.failed",
978
- source: "general",
979
- severity: "error",
980
- priority: "default",
981
- delivery: "in-app",
982
- kind: "message"
983
- },
984
- ({ cause: t }) => ({
985
- message: m("The action could not be completed: {message}", {
986
- message: P(t, m("Operation failed."))
987
- }),
988
- cause: t
989
- })
990
- ), er = v(
991
- {
992
- id: "notifications.settings.update.failed",
993
- source: "settings",
994
- severity: "error",
995
- priority: "default",
996
- delivery: "in-app",
997
- kind: "message"
998
- },
999
- ({ cause: t }) => ({
1000
- message: P(t, m("Operation failed.")),
1001
- cause: t
1002
- })
1003
- );
1004
- function Se(t) {
1005
- if (!("cause" in t)) return t;
1006
- const { cause: e, ...r } = t, i = Ie(e).map(bt);
1007
- return i.length === 0 ? r : { ...r, actions: [...r.actions ?? [], ...i] };
1008
- }
1009
- function bt(t) {
1010
- return {
1011
- label: t.label,
1012
- onClick: () => {
1013
- Promise.resolve().then(() => t.run()).catch((e) => {
1014
- Et(ht, { cause: e });
1015
- });
1016
- }
1017
- };
1018
- }
1019
- function Te(t, e) {
1020
- return {
1021
- ...t.severity === "error" && t.source === "general" ? {} : { source: t.source },
1022
- ...t.severity === "error" && t.priority === "default" ? {} : { priority: t.priority },
1023
- ...e.subtitle ? { subtitle: e.subtitle } : {},
1024
- ...e.description ? { description: e.description } : {},
1025
- ...e.action ? { action: e.action } : {},
1026
- ...e.actions ? { actions: e.actions } : {},
1027
- ...e.duration !== void 0 ? { duration: e.duration } : {},
1028
- ...e.dontShowAgainKey ? { dontShowAgainKey: e.dontShowAgainKey } : {},
1029
- ...e.defaultRoute ? { defaultRoute: e.defaultRoute } : {},
1030
- ...e.icon ? { icon: e.icon } : {},
1031
- ...e.markdown !== void 0 ? { markdown: e.markdown } : {},
1032
- ...e.recordTimeline !== void 0 ? { recordTimeline: e.recordTimeline } : {},
1033
- ...e.id !== void 0 ? { id: e.id } : {}
1034
- };
1035
- }
1036
- function wt(t, e) {
1037
- const r = Se(e);
1038
- if (t.delivery === "os-only") {
1039
- const n = r.title ?? r.message, s = r.description ?? r.subtitle ?? (r.title ? r.message : void 0);
1040
- return ue({
1041
- title: n,
1042
- ...s ? { body: s } : {},
1043
- severity: t.severity,
1044
- urgent: t.priority === "urgent",
1045
- onlyWhenUnfocused: !1
1046
- }), "";
1047
- }
1048
- const i = Te(t, r);
1049
- if (t.kind === "query-completed")
1050
- return E.queryCompleted(r.message, i);
1051
- switch (t.severity) {
1052
- case "success":
1053
- return E.success(r.message, i);
1054
- case "error": {
1055
- const n = {
1056
- ...i,
1057
- ...r.title ? { title: r.title } : {},
1058
- ...r.vendorError ? { vendorError: r.vendorError } : {}
1059
- };
1060
- return E.error(r.message, n);
1061
- }
1062
- case "warning":
1063
- return E.warning(r.message, i);
1064
- case "info":
1065
- return E.info(r.message, i);
1066
- }
1067
- }
1068
- function St(t, e) {
1069
- const r = Se(e);
1070
- if (t.delivery !== "in-app")
1071
- throw new oe(
1072
- "Progress notifications require an in-app catalog definition."
1073
- );
1074
- return E.progress(r.message, {
1075
- ...Te(t, r),
1076
- ...r.onCancel ? { onCancel: r.onCancel } : {}
1077
- });
1078
- }
1079
- const Tt = {
1080
- notify: wt,
1081
- progress: St,
1082
- dismiss: (t) => ae(t)
1083
- };
1084
- function xt(t, e, r, i) {
1085
- return t === "error" && e === "default" && r && i ? "urgent" : e;
1086
- }
1087
- function tr(t, e) {
1088
- var l;
1089
- const r = e.vendorError === void 0 || !Oe() ? null : Y(e.vendorError), i = t.severity === "error" ? we(
1090
- e.message,
1091
- {
1092
- ...e.title ? { title: e.title } : {},
1093
- ...e.subtitle ? { subtitle: e.subtitle } : {},
1094
- ...e.description ? { description: e.description } : {},
1095
- ...e.action ? { action: e.action } : {}
1096
- },
1097
- r,
1098
- le
1099
- ) : null, n = (i == null ? void 0 : i.displayText) ?? e.title ?? e.message, s = (i == null ? void 0 : i.bodyText) ?? e.subtitle ?? e.description, o = (i == null ? void 0 : i.primaryAction) ?? e.action, c = t.severity === "error" && t.source === "general" && r !== null ? "vendor-error" : t.source, u = xt(
1100
- t.severity,
1101
- t.priority,
1102
- r !== null,
1103
- f.get().vendorCodesAreUrgent
1104
- );
1105
- return X({
1106
- severity: t.severity,
1107
- title: N(n),
1108
- ...s ? { body: N(s) } : {},
1109
- source: c,
1110
- priority: u,
1111
- isolated: !0,
1112
- ...e.duration !== void 0 ? { durationMs: e.duration } : {},
1113
- ...e.id !== void 0 ? { id: `dev-preview:${e.id}` } : {},
1114
- ...e.icon ? { icon: e.icon } : {},
1115
- // Isolated NotificationItem rendering keeps markdown links inert and
1116
- // disables images, so previewing preserves formatting without a fetch.
1117
- ...e.markdown ? { markdown: !0 } : {},
1118
- ...t.kind === "progress" ? { sticky: !0, progress: { done: !1 } } : {},
1119
- ...o || (l = e.actions) != null && l.length ? {
1120
- actions: [o, ...e.actions ?? []].filter(
1121
- (a) => a !== void 0
1122
- ).map((a, p) => ({
1123
- id: `dev-preview-action-${p}`,
1124
- label: a.label,
1125
- primary: p === 0,
1126
- onClick: () => {
1127
- var y;
1128
- (y = a.onClick) == null || y.call(a);
1129
- }
1130
- }))
1131
- } : {}
1132
- }).id;
1133
- }
1134
- let xe = null;
1135
- function rr(t) {
1136
- xe = t;
1137
- }
1138
- function J() {
1139
- return xe ?? Tt;
1140
- }
1141
- function Et(t, e) {
1142
- return J().notify(t, t.build(e));
1143
- }
1144
- function ir(t, e) {
1145
- if (t.kind !== "progress")
1146
- throw new oe(
1147
- "catalogNotify: a message definition cannot be sent with progressFromCatalog."
1148
- );
1149
- return J().progress(t, t.build(e));
1150
- }
1151
- function nr(t) {
1152
- var e, r;
1153
- (r = (e = J()).dismiss) == null || r.call(e, t);
1154
- }
1155
- function sr(t) {
1156
- return t.resolve();
1157
- }
1158
- export {
1159
- Et as A,
1160
- He as B,
1161
- We as C,
1162
- ir as D,
1163
- It as E,
1164
- xt as F,
1165
- sr as G,
1166
- Fe as H,
1167
- Ye as I,
1168
- tr as J,
1169
- Mt as K,
1170
- Ot as L,
1171
- R as M,
1172
- E as N,
1173
- _t as O,
1174
- jt as P,
1175
- Se as Q,
1176
- Yt as R,
1177
- te as S,
1178
- Xt as T,
1179
- zt as U,
1180
- Gt as V,
1181
- Jt as W,
1182
- Zt as X,
1183
- er as Y,
1184
- Wt as a,
1185
- Lt as b,
1186
- Ue as c,
1187
- b as d,
1188
- je as e,
1189
- Tt as f,
1190
- he as g,
1191
- Ht as h,
1192
- qt as i,
1193
- v as j,
1194
- Qt as k,
1195
- Vt as l,
1196
- nr as m,
1197
- Kt as n,
1198
- Pt as o,
1199
- rr as p,
1200
- Ft as q,
1201
- we as r,
1202
- Bt as s,
1203
- Nt as t,
1204
- $ as u,
1205
- mt as v,
1206
- $t as w,
1207
- ye as x,
1208
- Ke as y,
1209
- Ut as z
1210
- };