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