@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,162 +0,0 @@
1
- /**
2
- * ui adapter: same API and in-memory semantics as the host app's cache. The host app flushes
3
- * the cache to its vault over IPC (`window.electronAPI.vault.updateSettings`); ui flushes to
4
- * an optional persister set with {@link configurePreferencesPersistence} (no persistence by
5
- * default — a library must not write host storage on its own). `hydratePreferencesCache`
6
- * seeds it as the host app does.
7
- *
8
- * In-memory cache for vault-backed user preferences (workspace, SSH, UI layout).
9
- *
10
- * Why this exists:
11
- * - Vault settings are async (IPC roundtrip), but UI hooks (dashboard layout,
12
- * favorites, sidebar resize, …) need synchronous reads at component init.
13
- * - The vault settings load that already runs on workspace open (see
14
- * `loadVaultSettings()`) is the single hydration point; this cache just
15
- * exposes those three preference sub-objects with sync getters and
16
- * debounced async writers.
17
- *
18
- * Lifecycle:
19
- * bootstrap → render → vault unlock → loadVaultSettings()
20
- * → hydratePreferencesCache(settings) (called from inside loadVaultSettings)
21
- * → hooks read via get*() / write via update*()
22
- *
23
- * Deliberately NOT a settings-registry descriptor: those are state.db-backed
24
- * (synchronous, persisted immediately). This triple is VAULT-backed — async IPC,
25
- * available only post-unlock, written in 250ms-debounced batches — a different
26
- * storage axis the sync/immediate descriptor model doesn't express, so it keeps
27
- * its own cache + writers here.
28
- *
29
- * Every writer replaces `_state` (and any touched sub-object) IMMUTABLY — never an
30
- * in-place mutation — so a reader holding a previously-returned snapshot is never
31
- * surprised by a later write.
32
- */
33
- import type { ConnectionWorkspacePreferences, SshHistoryEntry, UiLayoutPreferences, VaultSettings, VaultSshPreferences } from './settingsTypes.js';
34
- /** Replace the cache with the latest vault snapshot. Idempotent. */
35
- export declare function hydratePreferencesCache(settings: VaultSettings): void;
36
- export declare function getConnectionPreferences(connectionId: string | null): ConnectionWorkspacePreferences;
37
- export declare function getConnectionPreferencesChangeEventName(): string;
38
- export declare function patchConnectionPreferences(connectionId: string, patch: Partial<ConnectionWorkspacePreferences>): void;
39
- /**
40
- * Connection ids that currently carry a per-connection execution SAFETY override
41
- * (safeMode / confirmDestructive / stopOnError). Drives the Settings → Execution
42
- * "N connections override these" badge (F2) so a user editing the GLOBAL safety
43
- * defaults SEES that some connections won't be affected — their override wins at
44
- * execution time (see `getEffectiveExecutionSettings`). Empty when the cache is
45
- * unhydrated (pre-unlock / detached settings window).
46
- */
47
- export declare function getConnectionsWithExecutionOverrides(): string[];
48
- export declare function getSshState(): VaultSshPreferences;
49
- export declare function patchSshState(patch: Partial<VaultSshPreferences>): void;
50
- export declare function setSshRefreshForInstance(instanceId: number, unit: string, setting: {
51
- enabled: boolean;
52
- intervalMs: number;
53
- }): void;
54
- export declare function setSshProcessColumnsForInstance(instanceId: number, columns: readonly string[]): void;
55
- export declare function getSshHistoryChangeEventName(): string;
56
- /**
57
- * Build the stable deduplication key for an SSH endpoint:
58
- * username@host:port, extended by bastion host when hopped.
59
- */
60
- export declare function sshHistoryDedupKey(username: string, host: string, port: number, bastionHost?: string): string;
61
- /**
62
- * Returns a copy of the vault-backed SSH connection history in MRU order.
63
- */
64
- export declare function getSshHistory(): SshHistoryEntry[];
65
- /**
66
- * Record a successful SSH connection in history.
67
- * - Deduplicates on username@host:port (+ bastion host).
68
- * - Bumps useCount, updates lastConnectedAt to now.
69
- * - Preserves MRU order (most recent first).
70
- * - Caps at 30 entries.
71
- * - Flushes to vault via debounced schedulePersist.
72
- * - NEVER accepts or records credentials (password / privateKey / passphrase).
73
- */
74
- export declare function recordSshHistory(entry: Omit<SshHistoryEntry, 'lastConnectedAt' | 'useCount'> & {
75
- lastConnectedAt?: number;
76
- useCount?: number;
77
- password?: never;
78
- privateKey?: never;
79
- passphrase?: never;
80
- }): void;
81
- /**
82
- * Remove a single history entry by its endpoint coordinates.
83
- */
84
- export declare function removeSshHistoryEntry(username: string, host: string, port: number, bastionHost?: string): void;
85
- /**
86
- * Clear the entire SSH connection history in vault preferences.
87
- */
88
- export declare function clearSshHistory(): void;
89
- /**
90
- * ui extension: the host's own UI layout preferences. The host app keeps sidebar widths and
91
- * collapsed states in its vault-backed cache; handing its functions over keeps one source of
92
- * truth for the kit's resizable sidebars (both caches announce changes on the same window
93
- * event, so a second cache would answer listeners with stale values).
94
- */
95
- export interface LayoutPreferencesHost {
96
- getUiLayout(): UiLayoutPreferences;
97
- setSidebarWidth(key: string, width: number): void;
98
- setSidebarCollapsed(key: string, collapsed: boolean): void;
99
- }
100
- /** Route the UI layout preferences to the host (`null` = the kit's own cache). */
101
- export declare function provideLayoutPreferences(next: LayoutPreferencesHost | null): void;
102
- export declare function getUiLayout(): UiLayoutPreferences;
103
- export declare function getSidebarLayoutChangeEventName(): string;
104
- export type SidebarLayoutChangeKind = 'width' | 'collapsed' | 'reset';
105
- export declare function setSidebarWidth(key: string, width: number): void;
106
- export declare function setSidebarCollapsed(key: string, collapsed: boolean): void;
107
- /**
108
- * Drop sidebar width + collapsed entries so the next read falls back to the
109
- * component's default. `widthKey` and `collapsedKey` may be the same string
110
- * for components that share one key, but typically differ.
111
- */
112
- export declare function resetSidebarLayout(widthKey: string, collapsedKey: string): void;
113
- export declare function getColumnVisibilityChangeEventName(): string;
114
- export declare function setColumnVisibility(key: string, hidden: readonly string[]): void;
115
- /**
116
- * Per-column widths for an engine-backed table. Keyed by table identity, so a
117
- * resized (or auto-fitted) column survives a tab switch and an app restart.
118
- *
119
- * Returns `null` when nothing is stored — the caller must then keep the layout
120
- * manager's computed defaults. Distinguishing "nothing stored" from "stored an
121
- * empty array" matters: see the cold-start note on `setTableColumnWidths`.
122
- */
123
- export declare function getTableColumnWidths(key: string): number[] | null;
124
- /**
125
- * Persist a table's column widths.
126
- *
127
- * COLD-START TRAP (a known race elsewhere too — `common/tabulator.ts` guards it with a
128
- * `persistenceReady` flag): on mount the layout manager computes default widths and
129
- * fires a change event BEFORE the stored widths are restored. Writing on that event
130
- * overwrites the user's saved layout with the defaults, and the resize silently
131
- * stops sticking. Callers MUST NOT call this until the restore pass has run.
132
- */
133
- export declare function setTableColumnWidths(key: string, widths: readonly number[]): void;
134
- /**
135
- * Drop a column-visibility entry so the next read falls back to the
136
- * component's `defaultHidden` set. Used by Settings page "reset" actions.
137
- */
138
- export declare function resetColumnVisibility(key: string): void;
139
- export interface ResultTabToolbarPrefs {
140
- position: 'top' | 'right' | 'bottom' | 'left';
141
- displayMode: 'icon' | 'icon+text' | 'text';
142
- displayModeExplicit: boolean;
143
- }
144
- /** Force-flush queued writes (e.g. before vault lock). Errors are logged but not propagated. */
145
- export declare function flushPreferences(): Promise<void>;
146
- /**
147
- * Force-flush queued writes and propagate any IPC error to the caller.
148
- * Use this when the caller can surface the error (e.g. an explicit Save action).
149
- */
150
- export declare function flushPreferencesStrict(): Promise<void>;
151
- /** What {@link configurePreferencesPersistence} receives on every flush. */
152
- export type PreferencesSnapshot = Pick<VaultSettings, 'workspacePreferences' | 'sshState' | 'uiLayoutState'>;
153
- /**
154
- * ui extension: where flushed preferences go (the host app: the vault over IPC). Pass `null` to
155
- * keep preferences in memory only (the default).
156
- */
157
- export declare function configurePreferencesPersistence(persist: ((snapshot: PreferencesSnapshot) => Promise<void>) | null): void;
158
- /**
159
- * Force-flush pending SSH state / preferences writes (alias of flushPreferences
160
- * for callers managing SSH lifecycle).
161
- */
162
- export declare function flushSshState(): Promise<void>;
@@ -1,97 +0,0 @@
1
- var d = Object.defineProperty;
2
- var T = (i, e, t) => e in i ? d(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var n = (i, e, t) => T(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { B as D } from "./bugIndicatingError-h3J5qkL6.js";
5
- import { E as h } from "./rendererLogging-Edo4ALXU.js";
6
- var r;
7
- ((i) => {
8
- i.serviceIds = /* @__PURE__ */ new Map(), i.DI_TARGET = "$di$target", i.DI_DEPENDENCIES = "$di$dependencies";
9
- function e(t) {
10
- return t[i.DI_DEPENDENCIES] || [];
11
- }
12
- i.getServiceDependencies = e;
13
- })(r || (r = {}));
14
- v("instantiationService");
15
- function E(i, e, t) {
16
- e[r.DI_TARGET] === e ? e[r.DI_DEPENDENCIES].push({ id: i, index: t }) : (e[r.DI_DEPENDENCIES] = [{ id: i, index: t }], e[r.DI_TARGET] = e);
17
- }
18
- function v(i) {
19
- if (r.serviceIds.has(i))
20
- return r.serviceIds.get(i);
21
- const e = function(t, u, s) {
22
- if (arguments.length !== 3)
23
- throw new D("@IServiceName-decorator can only be used to decorate a parameter");
24
- E(e, t, s);
25
- };
26
- return e.toString = () => i, r.serviceIds.set(i, e), e;
27
- }
28
- const C = v("announcerService");
29
- class A {
30
- constructor() {
31
- n(this, "_onDidAnnounce", new h());
32
- n(this, "onDidAnnounce", this._onDidAnnounce.event);
33
- n(this, "_onDidClear", new h());
34
- n(this, "onDidClear", this._onDidClear.event);
35
- n(this, "_latestPolite", "");
36
- n(this, "_latestAssertive", "");
37
- n(this, "_clearTimers", {});
38
- }
39
- announce(e, t, u) {
40
- let s = "polite", o = u;
41
- typeof t == "string" ? s = t : typeof t == "object" && t !== null && (o = t, o.politeness && (s = o.politeness));
42
- const c = e.trim();
43
- if (!c) return;
44
- let l = c;
45
- const _ = s === "assertive" ? this._latestAssertive : this._latestPolite;
46
- _ === c ? l = `${c}​` : _ === `${c}​` && (l = c), s === "assertive" ? this._latestAssertive = l : this._latestPolite = l;
47
- const f = {
48
- id: `ann_${Date.now()}_${Math.random().toString(36).slice(2, 7)}`,
49
- message: l,
50
- politeness: s,
51
- timestamp: Date.now()
52
- };
53
- this._onDidAnnounce.fire(f);
54
- const m = (o == null ? void 0 : o.timeoutMs) ?? 7e3;
55
- m > 0 && (this._clearTimers[s] && clearTimeout(this._clearTimers[s]), this._clearTimers[s] = setTimeout(() => {
56
- this.clear(s);
57
- }, m));
58
- }
59
- polite(e, t) {
60
- this.announce(e, "polite", t);
61
- }
62
- assertive(e, t) {
63
- this.announce(e, "assertive", t);
64
- }
65
- clear(e) {
66
- e ? (this._clearTimers[e] && (clearTimeout(this._clearTimers[e]), this._clearTimers[e] = void 0), e === "polite" && (this._latestPolite = ""), e === "assertive" && (this._latestAssertive = ""), this._onDidClear.fire(e)) : (this._clearTimers.polite && (clearTimeout(this._clearTimers.polite), this._clearTimers.polite = void 0), this._clearTimers.assertive && (clearTimeout(this._clearTimers.assertive), this._clearTimers.assertive = void 0), this._latestPolite = "", this._latestAssertive = "", this._onDidClear.fire("all"));
67
- }
68
- getLatestAnnouncement(e) {
69
- return e === "assertive" ? this._latestAssertive : this._latestPolite;
70
- }
71
- dispose() {
72
- this._clearTimers.polite && (clearTimeout(this._clearTimers.polite), this._clearTimers.polite = void 0), this._clearTimers.assertive && (clearTimeout(this._clearTimers.assertive), this._clearTimers.assertive = void 0), this._onDidAnnounce.dispose(), this._onDidClear.dispose();
73
- }
74
- }
75
- let a;
76
- function p() {
77
- return a || (a = new A()), a;
78
- }
79
- function P(i) {
80
- a && a !== i && a.dispose(), a = i;
81
- }
82
- function N() {
83
- const i = p();
84
- return {
85
- announce: (e, t, u) => i.announce(e, t, u),
86
- polite: (e, t) => i.polite(e, t),
87
- assertive: (e, t) => i.assertive(e, t),
88
- clear: (e) => i.clear(e)
89
- };
90
- }
91
- export {
92
- A,
93
- C as I,
94
- p as g,
95
- P as s,
96
- N as u
97
- };
@@ -1 +0,0 @@
1
- "use strict";var D=Object.defineProperty;var A=(i,e,t)=>e in i?D(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var n=(i,e,t)=>A(i,typeof e!="symbol"?e+"":e,t);const E=require("./bugIndicatingError-D2X5Hfgg.cjs"),h=require("./rendererLogging-B4XML4_G.cjs");var s;(i=>{i.serviceIds=new Map,i.DI_TARGET="$di$target",i.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[i.DI_DEPENDENCIES]||[]}i.getServiceDependencies=e})(s||(s={}));m("instantiationService");function S(i,e,t){e[s.DI_TARGET]===e?e[s.DI_DEPENDENCIES].push({id:i,index:t}):(e[s.DI_DEPENDENCIES]=[{id:i,index:t}],e[s.DI_TARGET]=e)}function m(i){if(s.serviceIds.has(i))return s.serviceIds.get(i);const e=function(t,u,r){if(arguments.length!==3)throw new E.BugIndicatingError("@IServiceName-decorator can only be used to decorate a parameter");S(e,t,r)};return e.toString=()=>i,s.serviceIds.set(i,e),e}const I=m("announcerService");class d{constructor(){n(this,"_onDidAnnounce",new h.Emitter);n(this,"onDidAnnounce",this._onDidAnnounce.event);n(this,"_onDidClear",new h.Emitter);n(this,"onDidClear",this._onDidClear.event);n(this,"_latestPolite","");n(this,"_latestAssertive","");n(this,"_clearTimers",{})}announce(e,t,u){let r="polite",o=u;typeof t=="string"?r=t:typeof t=="object"&&t!==null&&(o=t,o.politeness&&(r=o.politeness));const a=e.trim();if(!a)return;let l=a;const _=r==="assertive"?this._latestAssertive:this._latestPolite;_===a?l=`${a}​`:_===`${a}​`&&(l=a),r==="assertive"?this._latestAssertive=l:this._latestPolite=l;const T={id:`ann_${Date.now()}_${Math.random().toString(36).slice(2,7)}`,message:l,politeness:r,timestamp:Date.now()};this._onDidAnnounce.fire(T);const v=(o==null?void 0:o.timeoutMs)??7e3;v>0&&(this._clearTimers[r]&&clearTimeout(this._clearTimers[r]),this._clearTimers[r]=setTimeout(()=>{this.clear(r)},v))}polite(e,t){this.announce(e,"polite",t)}assertive(e,t){this.announce(e,"assertive",t)}clear(e){e?(this._clearTimers[e]&&(clearTimeout(this._clearTimers[e]),this._clearTimers[e]=void 0),e==="polite"&&(this._latestPolite=""),e==="assertive"&&(this._latestAssertive=""),this._onDidClear.fire(e)):(this._clearTimers.polite&&(clearTimeout(this._clearTimers.polite),this._clearTimers.polite=void 0),this._clearTimers.assertive&&(clearTimeout(this._clearTimers.assertive),this._clearTimers.assertive=void 0),this._latestPolite="",this._latestAssertive="",this._onDidClear.fire("all"))}getLatestAnnouncement(e){return e==="assertive"?this._latestAssertive:this._latestPolite}dispose(){this._clearTimers.polite&&(clearTimeout(this._clearTimers.polite),this._clearTimers.polite=void 0),this._clearTimers.assertive&&(clearTimeout(this._clearTimers.assertive),this._clearTimers.assertive=void 0),this._onDidAnnounce.dispose(),this._onDidClear.dispose()}}let c;function f(){return c||(c=new d),c}function g(i){c&&c!==i&&c.dispose(),c=i}function p(){const i=f();return{announce:(e,t,u)=>i.announce(e,t,u),polite:(e,t)=>i.polite(e,t),assertive:(e,t)=>i.assertive(e,t),clear:e=>i.clear(e)}}exports.AnnouncerService=d;exports.IAnnouncerService=I;exports.getAnnouncerService=f;exports.setAnnouncerServiceForTest=g;exports.useAnnounce=p;
@@ -1 +0,0 @@
1
- "use strict";const z=require("solid-js/web"),y=require("solid-js"),Q=require("./bugIndicatingError-D2X5Hfgg.cjs"),T=[{id:"vokril-dark",label:"Vokril Dark",type:"dark",palette:{surface:"#212329",surfaceAlt:"#181A1F",surfaceElevated:"#2D2F35",brand:"#808AE5",brandHover:"#707AD0",content:"#EBEDF0",contentSecondary:"#C7C9CE",border:"#2D2F35",input:"#181A1F",inputBorder:"#2D2F35",success:"#4FB772",error:"#E05D5A",warning:"#F0A945",info:"#55A8DB",syntaxKeyword:"#BC97E8",syntaxString:"#92C487",syntaxFunction:"#F0C77C",syntaxNumber:"#6FBCE3",syntaxType:"#76CDC5",syntaxComment:"#8F939F"}},{id:"light",label:"Vokril Light",type:"light",palette:{surface:"#FFFFFF",surfaceAlt:"#F3F4F8",surfaceElevated:"#FFFFFF",brand:"#5355D0",brandHover:"#4545B6",content:"#1C1E24",contentSecondary:"#5F636F",border:"#DFE1E7",input:"#FFFFFF",inputBorder:"#D0D2D9",success:"#048A45",error:"#C72C34",warning:"#C27400",info:"#007AB0",syntaxKeyword:"#7D3AB7",syntaxString:"#357426",syntaxFunction:"#895709",syntaxNumber:"#006A9D",syntaxType:"#007973",syntaxComment:"#696D79"}},{id:"high-contrast-dark",label:"High Contrast Dark",type:"dark",palette:{surface:"#000000",surfaceAlt:"#000000",surfaceElevated:"#121212",brand:"#66B2FF",brandHover:"#99CCFF",content:"#FFFFFF",contentSecondary:"#E6E6E6",border:"#FFFFFF",input:"#000000",inputBorder:"#FFFFFF",success:"#57E389",error:"#FF7B72",warning:"#F0B429",info:"#66B2FF",syntaxKeyword:"#FF9999",syntaxString:"#99E699",syntaxFunction:"#FFE066",syntaxNumber:"#99CCFF",syntaxType:"#FFCC80",syntaxComment:"#B0B0B0"}},{id:"high-contrast-light",label:"High Contrast Light",type:"light",palette:{surface:"#FFFFFF",surfaceAlt:"#FFFFFF",surfaceElevated:"#FFFFFF",brand:"#0047BA",brandHover:"#003080",content:"#000000",contentSecondary:"#262626",border:"#000000",input:"#FFFFFF",inputBorder:"#000000",success:"#006622",error:"#B30000",warning:"#8C4600",info:"#0047BA",syntaxKeyword:"#8C0000",syntaxString:"#005C1F",syntaxFunction:"#4D2600",syntaxNumber:"#0047BA",syntaxType:"#0047BA",syntaxComment:"#404040"}}],A="vokril-dark",Z={darcula:"vokril-dark"},ee=e=>Z[e]??e;let B={byId:()=>null,options:()=>[]},_={byId:()=>null,options:()=>[]};function he(e){B=e}function Fe(e){_=e}function C(e){const n=ee(e);return T.find(r=>r.id===n)??B.byId(n)??_.byId(n)??T[0]}function ne(){return[...T,...B.options(),..._.options()]}function Te(e){const n=ee(e);return T.some(r=>r.id===n)||B.byId(n)!==null||_.byId(n)!==null}const w=4.5,ke=3;function pe(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function xe({r:e,g:n,b:r}){const t=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function D(e){const n=pe(e);if(!n)throw new Q.BugIndicatingError(`contrast: expected #rgb/#rrggbb, got ${JSON.stringify(e)}. Resolve var()/transparent/color-mix to a literal hex before measuring.`);return n}function M(e){const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function v(e){const{r:n,g:r,b:t}=D(e);return .2126*M(n)+.7152*M(r)+.0722*M(t)}function b(e,n){const r=v(e),t=v(n),[o,c]=r>t?[r,t]:[t,r];return(o+.05)/(c+.05)}function Ee(e,n,r){const t=D(e),o=D(n),c=Math.max(0,Math.min(1,r));return xe({r:t.r+(o.r-t.r)*(1-c),g:t.g+(o.g-t.g)*(1-c),b:t.b+(o.b-t.b)*(1-c)})}function p(e,n){return e+1e-9>=n}function Ae(e){const n=v(e);return 116*(n>(6/29)**3?Math.cbrt(n):n/(3*(6/29)**2)+4/29)-16}const N=e=>{const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)},ve=e=>(e<=.0031308?12.92*e:1.055*Math.pow(e,.4166666666666667)-.055)*255;function Se(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;if(r.length!==6||/[^0-9a-fA-F]/.test(r))throw new Q.BugIndicatingError(`oklch: expected #rgb/#rrggbb, got ${JSON.stringify(e)}`);return{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function Ce(e){const{r:n,g:r,b:t}=Se(e),o=N(n),c=N(r),s=N(t),u=Math.cbrt(.4122214708*o+.5363325363*c+.0514459929*s),i=Math.cbrt(.2119034982*o+.6806995451*c+.1073969566*s),d=Math.cbrt(.0883024619*o+.2817188376*c+.6299787005*s),f=.2104542553*u+.793617785*i-.0040720468*d,m=1.9779984951*u-2.428592205*i+.4505937099*d,l=.0259040371*u+.7827717662*i-.808675766*d,g=Math.atan2(l,m)*180/Math.PI;return{l:f,c:Math.hypot(m,l),h:g<0?g+360:g}}function P({l:e,c:n,h:r}){const t=r*Math.PI/180,o=n*Math.cos(t),c=n*Math.sin(t),s=(e+.3963377774*o+.2158037573*c)**3,u=(e-.1055613458*o-.0638541728*c)**3,i=(e-.0894841775*o-1.291485548*c)**3;return{r:4.0767416621*s-3.3077115913*u+.2309699292*i,g:-1.2684380046*s+2.6097574011*u-.3413193965*i,b:-.0041960863*s-.7034186147*u+1.707614701*i}}const k=1e-4,W=({r:e,g:n,b:r})=>e>=-k&&e<=1+k&&n>=-k&&n<=1+k&&r>=-k&&r<=1+k;function Ie({l:e,c:n,h:r}){if(W(P({l:e,c:n,h:r})))return n;let t=0,o=n;for(let c=0;c<24;c++){const s=(t+o)/2;W(P({l:e,c:s,h:r}))?t=s:o=s}return t}function O(e){const n=Ie(e),r=P({...e,c:n}),t=o=>Math.max(0,Math.min(255,Math.round(ve(o)))).toString(16).padStart(2,"0");return`#${t(r.r)}${t(r.g)}${t(r.b)}`}function q(e,n,r,t){const o=Ce(e),c=t==="lighter"?1:0,s=O({...o,l:c});if(!p(b(s,n),r))return s;let u=o.l,i=c;for(let d=0;d<24;d++){const f=(u+i)/2;p(b(O({...o,l:f}),n),r)?i=f:u=f}return O({...o,l:i})}function V(e,n,r){if(p(b(e,n),r))return e;const t=v(e)<v(n),o=q(e,n,r,t?"darker":"lighter");if(p(b(o,n),r))return o;const c=q(e,n,r,t?"lighter":"darker");return b(c,n)>b(o,n)?c:o}function we(e,n,r){let t=e;for(let o=0;o<8;o++){let c=!1;for(const s of n){const u=V(t,s,r);u!==t&&(t=u,c=!0)}if(!c)break}return t}function Be(e,n,r){let t=n[0]??"#ffffff",o=-1;for(const c of n){const s=b(c,e);if(p(s,r))return c;s>o&&(o=s,t=c)}return t}const re="#2A2C31",te="#1C1E23",oe=.25,_e=oe;function ce(e){return V(e.inputBorder,e.input,ke)}function se(e,n,r){const t=[n.surface,n.surfaceAlt,n.surfaceElevated];return r==="dark"&&t.push(re,te),t.flatMap(o=>[o,Ee(e,o,oe)])}function ie(e,n,r){return we(e,se(e,n,r),w)}const Le=["error","brand","success","warning","info"],Me=60;function E(e){return p(b("#ffffff",e),w)||Ae(e)>=Me?e:V(e,"#ffffff",w)}function ae(e,n){return Be(e,["#ffffff",n.surfaceAlt,"#000000"],w)}const Ne=["brand","error","success","warning"],ue="#D76CB7",Oe="data-colorblind-safe",R={success:"#009e73",error:"#d55e00",warning:"#e69f00",info:"#56b4e9"},H={added:R.success,deleted:R.error};function de(e){return{...e,...R}}function De(){return typeof document>"u"?!1:document.documentElement.hasAttribute(Oe)}function le(e,n,r){const t=d=>ie(d,e,n),o=E(e.brand),c=E(e.error),s=E(e.success),u=E(e.warning),i=d=>ae(d,e);return{"--color-surface":e.surface,"--color-surface-alt":e.surfaceAlt,"--color-surface-elevated":e.surfaceElevated,"--color-brand":e.brand,"--color-brand-hover":e.brandHover,"--color-content":e.content,"--color-content-secondary":e.contentSecondary,"--color-border":e.border,"--color-input":e.input,"--color-input-border":ce(e),"--color-success":e.success,"--color-error":e.error,"--color-warning":e.warning,"--color-info":e.info,"--color-success-text":t(e.success),"--color-error-text":t(e.error),"--color-warning-text":t(e.warning),"--color-info-text":t(e.info),"--color-brand-text":t(e.brand),"--color-unique-text":t(ue),"--color-brand-surface":o,"--color-error-surface":c,"--color-success-surface":s,"--color-warning-surface":u,"--color-on-brand":i(o),"--color-on-error":i(c),"--color-on-success":i(s),"--color-on-warning":i(u),"--color-diff-added":r?H.added:"","--color-diff-deleted":r?H.deleted:"","--color-syntax-keyword":e.syntaxKeyword,"--color-syntax-string":e.syntaxString,"--color-syntax-function":e.syntaxFunction,"--color-syntax-comment":e.syntaxComment,"--color-syntax-number":e.syntaxNumber,"--color-syntax-type":e.syntaxType}}const X="data-colorblind-safe";function $(e,n=!1){return C(e==="system"?n?"light":A:e==="dark"?A:e)}function fe(e,n={}){var u,i;const r=typeof e=="string"?$(e):e,t=n.document??(typeof document<"u"?document:void 0);if(!t)return r;const o=t.documentElement,c=n.colorVisionSafe??!1;c?o.setAttribute(X,""):o.removeAttribute(X);const s=c?de(r.palette):r.palette;for(const[d,f]of Object.entries(le(s,r.type,c)))o.style.setProperty(d,f);return(u=t.body)==null||u.classList.remove("light","dark"),(i=t.body)==null||i.classList.add(r.type),o.classList.remove("light","dark"),o.classList.add(r.type),o.style.colorScheme=r.type,o.setAttribute("data-app-theme",r.id),r}function Pe(){return ne()}const Re="vokril-ui-theme",He="(prefers-color-scheme: light)";function Ke(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}const ge=y.createContext(),Ve=e=>{var G,U;const n=e.storageKey===void 0?Re:e.storageKey,r=e.storage===void 0?Ke():e.storage,t=()=>{if(!r||!n)return null;try{return r.getItem(n)}catch{return null}},o=((G=e.document)==null?void 0:G.defaultView)??(typeof window>"u"?void 0:window),c=(U=o==null?void 0:o.matchMedia)==null?void 0:U.call(o,He),[s,u]=y.createSignal(t()??e.defaultTheme??"dark"),[i,d]=y.createSignal((c==null?void 0:c.matches)??!1),[f,m]=y.createSignal(e.colorVisionSafe??!1);if(c){const x=be=>d(be.matches);c.addEventListener("change",x),y.onCleanup(()=>c.removeEventListener("change",x))}const l=y.createMemo(()=>$(s(),i())),g=y.createMemo(()=>l().type),h=x=>{if(u(x),!(!r||!n))try{r.setItem(n,x)}catch{}},L=()=>h(g()==="dark"?"light":"dark");y.createEffect(()=>{fe(l(),{colorVisionSafe:f(),document:e.document})});const ye={theme:s,resolvedTheme:g,themeId:()=>l().id,setTheme:h,toggleTheme:L,colorVisionSafe:f,setColorVisionSafe:m};return z.createComponent(ge.Provider,{value:ye,get children(){return e.children}})};let Y=!1;function $e(){const e=y.useContext(ge);return e||(z.isDev&&!Y&&(Y=!0,console.warn("@vokril/ui-solid: useTheme() was called outside <ThemeProvider>; it reports Vokril Dark and ignores setTheme.")),{theme:()=>"dark",resolvedTheme:()=>"dark",themeId:()=>A,setTheme:()=>{},toggleTheme:()=>{},colorVisionSafe:()=>!1,setColorVisionSafe:()=>{}})}var J;const j=((J=T.find(e=>e.id===A))==null?void 0:J.palette)??T[0].palette;function Ge(e){return Math.max(0,Math.min(255,Math.round(e)))}function K(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function I({r:e,g:n,b:r}){const t=o=>Ge(o).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function a(e,n="#000000"){const r=K(e);return r?I(r):n}function F(e,n,r){const t=K(e),o=K(n);if(!t&&!o)return"#000000";if(!t)return I(o);if(!o)return I(t);const c=Math.max(0,Math.min(1,r));return I({r:t.r+(o.r-t.r)*c,g:t.g+(o.g-t.g)*c,b:t.b+(o.b-t.b)*c})}const Ue="#ffffff",We="#000000";function me(e,n){return F(e,Ue,n)}function qe(e,n){return F(e,We,n)}function Xe(e,n,r){return n==="dark"?me(e,r):qe(e,r)}function S(e,n){return`${a(e)}${n}`}function Ye(){if(typeof document>"u")return j;const e=getComputedStyle(document.documentElement),n=(t,o)=>e.getPropertyValue(t).trim()||o,r=j;return{surface:n("--color-surface",r.surface),surfaceAlt:n("--color-surface-alt",r.surfaceAlt),surfaceElevated:n("--color-surface-elevated",r.surfaceElevated),brand:n("--color-brand",r.brand),brandHover:n("--color-brand-hover",r.brandHover),content:n("--color-content",r.content),contentSecondary:n("--color-content-secondary",r.contentSecondary),border:n("--color-border",r.border),input:n("--color-input",r.input),inputBorder:n("--color-input-border",r.inputBorder),success:n("--color-success",r.success),error:n("--color-error",r.error),warning:n("--color-warning",r.warning),info:n("--color-info",r.info),syntaxKeyword:n("--color-syntax-keyword",r.syntaxKeyword),syntaxString:n("--color-syntax-string",r.syntaxString),syntaxFunction:n("--color-syntax-function",r.syntaxFunction),syntaxComment:n("--color-syntax-comment",r.syntaxComment),syntaxNumber:n("--color-syntax-number",r.syntaxNumber),syntaxType:n("--color-syntax-type",r.syntaxType)}}function je(){return typeof document>"u"?"dark":document.body.classList.contains("light")?"light":"dark"}function Je(){return typeof document>"u"?"":document.documentElement.getAttribute("data-app-theme")??""}function ze(e,n){const r=a(e.syntaxKeyword),t=a(e.syntaxString),o=a(e.syntaxFunction),c=a(e.syntaxComment),s=a(e.syntaxNumber),u=a(e.syntaxType),i=a(e.content),d=a(e.brand),f=a(e.error),m=[{token:"",foreground:i.slice(1)},{token:"comment",foreground:c.slice(1),fontStyle:"italic"},{token:"comment.quote",foreground:c.slice(1),fontStyle:"italic"},{token:"keyword",foreground:r.slice(1)},{token:"keyword.sql",foreground:r.slice(1)},{token:"operator",foreground:r.slice(1)},{token:"operator.sql",foreground:r.slice(1)},{token:"string",foreground:t.slice(1)},{token:"string.sql",foreground:t.slice(1)},{token:"string.escape",foreground:r.slice(1)},{token:"number",foreground:s.slice(1)},{token:"number.float",foreground:s.slice(1)},{token:"number.hex",foreground:s.slice(1)},{token:"constant",foreground:s.slice(1)},{token:"type",foreground:u.slice(1)},{token:"type.identifier",foreground:u.slice(1)},{token:"predefined",foreground:o.slice(1)},{token:"predefined.sql",foreground:o.slice(1)},{token:"function",foreground:o.slice(1)},{token:"identifier",foreground:i.slice(1)},{token:"identifier.quote",foreground:t.slice(1)},{token:"variable",foreground:i.slice(1)},{token:"delimiter",foreground:i.slice(1)},{token:"tag",foreground:r.slice(1)},{token:"attribute.name",foreground:o.slice(1)},{token:"attribute.value",foreground:t.slice(1)},{token:"annotation",foreground:e.warning.replace(/^#/,"")},{token:"regexp",foreground:f.slice(1)}],l=a(e.surfaceAlt),g=a(e.surface),h=a(e.surfaceElevated),L={"editor.background":l,"editor.foreground":i,"editorLineNumber.foreground":a(e.contentSecondary),"editorLineNumber.activeForeground":i,"editorCursor.foreground":d,"editor.selectionBackground":F(g,d,.32),"editor.inactiveSelectionBackground":F(g,d,.18),"editor.lineHighlightBackground":F(l,g,.55),"editorWidget.background":h,"editorWidget.foreground":i,"editorWidget.border":a(e.border),"editorWidget.resizeBorder":d,"input.background":a(e.input),"input.foreground":i,"input.border":a(e.inputBorder),"input.placeholderForeground":a(e.contentSecondary),"inputOption.activeBackground":S(d,"40"),"inputOption.activeBorder":d,"inputOption.activeForeground":i,focusBorder:d,"editor.findMatchBackground":S(a(e.warning),"80"),"editor.findMatchHighlightBackground":S(a(e.warning),"40"),"editor.findRangeHighlightBackground":S(h,"60")};return{base:n==="dark"?"vs-dark":"vs",inherit:!0,rules:m,colors:L}}function Qe(e,n){const r=a(e.surface),t=a(e.surfaceElevated),o=a(e.content),c=a(e.contentSecondary),s=a(e.brand),u=a(e.error),i=a(e.success),d=a(e.warning),f=a(e.info),m=a(e.syntaxKeyword),l=h=>Xe(h,n,.22),g={black:t,red:u,green:i,yellow:d,blue:s,magenta:m,cyan:f,white:c,brightBlack:F(t,o,.4),brightRed:l(u),brightGreen:l(i),brightYellow:l(d),brightBlue:l(s),brightMagenta:l(m),brightCyan:l(f),brightWhite:n==="dark"?me(o,.25):o};return{background:r,foreground:o,cursor:s,selectionBackground:F(t,s,.2),...g}}exports.DEFAULT_THEME_ID=A;exports.INK_ROLE_KEYS=Ne;exports.LEGACY_THEME_IDS=Z;exports.MAX_TEXT_TINT_ALPHA=_e;exports.OKABE_ITO_DIFF=H;exports.TEXT_ROLE_KEYS=Le;exports.ThemeProvider=Ve;exports.UNIQUE_ACCENT=ue;exports.WELD_BG=te;exports.WELD_SURFACE=re;exports.accessibleFillSurface=E;exports.accessibleInputBorder=ce;exports.accessibleOnFillInk=ae;exports.accessibleTextColor=ie;exports.applyAppTheme=fe;exports.derivePaletteProperties=le;exports.generateMonacoThemeFromPalette=ze;exports.generateTerminalPaletteFromPalette=Qe;exports.getThemeById=C;exports.getThemeOptions=ne;exports.getThemes=Pe;exports.isColorVisionSafeActive=De;exports.isKnownThemeId=Te;exports.readActiveAppPalette=Ye;exports.readActiveAppThemeId=Je;exports.readActiveAppThemeType=je;exports.resolveThemeOption=$;exports.setPluginThemeResolver=Fe;exports.setUserThemeResolver=he;exports.textGroundsFor=se;exports.themeOptions=T;exports.toColorVisionSafePalette=de;exports.useTheme=$e;
@@ -1,27 +0,0 @@
1
- "use strict";const se=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-B4XML4_G.cjs"),a=require("./notificationSuppressions-DFbFpayS.cjs"),g=require("./notification-CrxHMXsk.cjs"),y=require("./i18n-B9ccWgcR.cjs"),ce={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},Ae={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Ne={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function ae(t,e,i){if(!e[Ae[t]]||e.quietHoursMutesSounds&&i)return null;const r=e[Ne[t]].trim();if(r)return{kind:"custom",path:r};const n=ce[t];return{kind:"builtin",freq:n.freq,ms:n.ms}}const K=new Map,F=new Map;async function ue(t){const e=K.get(t);if(e)return e;let i=F.get(t);return i||(i=a.readAudioAsDataUrl(t).then(r=>(F.delete(t),r&&K.set(t,r),r)),F.set(t,i)),await i??void 0}function Re(){K.clear(),F.clear()}const j=w.getLogger("NotificationAudio");let U=null,H=!1;function De(){if(H)return null;if(U)return U;try{const t=window.AudioContext??window.webkitAudioContext;return t?(U=new t,U):(H=!0,null)}catch(t){return H=!0,j.warn("AudioContext could not be created; notification sounds are off:",t),null}}async function $e(t){const e=await ue(t);if(e)try{const i=new Audio(e);i.volume=.6,await i.play()}catch(i){j.warn("Custom notification sound could not be played:",i)}}function le(t=800,e=200){const i=De();if(i)try{const r=i.currentTime,n=i.createOscillator(),o=i.createGain();n.connect(o),o.connect(i.destination),n.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+e/1e3),n.start(r),n.stop(r+e/1e3)}catch(r){j.warn("Notification tone could not be played:",r)}}function de(){le(800,200)}function fe(t,e){const i=ae(t,g.notificationSettings.get(),e);if(i){if(i.kind==="custom"){$e(i.path);return}le(i.freq,i.ms)}}const ge=w.getLogger("NotificationTimeline");function Ie(t){return t.vendorError===void 0?null:a.resolveVendorError(t.vendorError)}const Oe=200;let W=[];const B=new Set;function D(){return[...W]}function $(t){const e=[...t].sort((s,c)=>c.createdAt-s.createdAt),i=e.filter(s=>s.pinned===!0),n=e.filter(s=>s.pinned!==!0).slice(0,Math.max(0,Oe-i.length));W=[...[...i].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt)),...n];for(const s of Array.from(B))try{s(W)}catch(c){ge.warn("Zaman cizelgesi dinleyicisi firlatti:",c)}}let R=0,O=0;const V=new Set;function b(t,e,i="general",r="default",n,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:w.scrubSecrets(t),tone:e,createdAt:Date.now(),source:i,priority:r,...n&&n.length>0?{actions:n}:{},...o?{vendorError:o}:{}};$([s,...D()]),R+=1,me()}function A(t){if(t)return[{label:t.label,onClick:t.onClick,primary:!0}]}function me(){const t=Math.max(0,R-O);for(const e of Array.from(V))try{e(t)}catch(i){ge.warn("Okunmadi sayaci dinleyicisi firlatti:",i)}ye(t)}let L=-1;function ye(t){const e=g.notificationSettings.get(),i=e.badgeCountEnabled?Math.min(t,e.badgeCountMax):0;i!==L&&(L=i,a.setOsBadgeCount(i))}function Ue(){const t=Math.max(0,R-O);L=-1,ye(t)}function Me(t){return V.add(t),t(Math.max(0,R-O)),()=>{V.delete(t)}}function qe(){O!==R&&(O=R,me())}function Fe(t){return B.add(t),t(D()),()=>{B.delete(t)}}function Pe(){$([])}function _e(t){const e=D().filter(i=>i.id!==t);$(e)}function He(t){if(t.length===0)return;const e=new Set(t),i=D().filter(r=>!e.has(r.id));$(i)}function Ke(t){if(!t)return;const e=D().filter(i=>i.source!==t);$(e)}function We(t){const i=D().map(r=>{if(r.id!==t)return r;const n=!r.pinned,{pinnedAt:o,...s}=r;return n?{...s,pinned:!0,pinnedAt:Date.now()}:{...s,pinned:!1}});$(i)}const P=new Map;function Be(){P.clear()}function Ve(t){if(P.has(t))return P.get(t)??null;let e;try{e=new RegExp(t,"i")}catch{e=null}return P.set(t,e),e}function Le(t,e){const i=t.conditions;if(i.source&&i.source!==e.source||i.severities&&i.severities.length>0&&!i.severities.includes(e.severity))return!1;if(i.titleRegex){const r=Ve(i.titleRegex);if(!r||!r.test(e.title))return!1}return!0}function ve(t,e){if(e.length===0)return t;let i={...t};for(const r of e)if(r.enabled&&Le(r,i)){if(r.actions.suppress===!0)return null;if(r.actions.setSeverity&&(i={...i,severity:r.actions.setSeverity}),r.actions.setPriority&&(i={...i,priority:r.actions.setPriority}),r.actions.addPrefix){const n=r.actions.addPrefix.trim();n&&(i={...i,title:`${n} ${i.title}`})}}return i}function te(t){const e=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!e)return null;const i=Number(e[1]),r=Number(e[2]);return i>23||r>59?null:i*60+r}function X(t,e){if(!t.quietHoursEnabled||!t.quietHoursWeekdays.includes(e.getDay()))return!1;const i=te(t.quietHoursStart),r=te(t.quietHoursEnd);if(i===null||r===null||i===r)return!1;const n=e.getHours()*60+e.getMinutes();return i<r?n>=i&&n<r:n>=i||n<r}function Qe(t){return t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Q={info:0,success:1,warning:2,error:3};function pe(t,e){return e.osNativeEnabled?t.priority==="urgent"&&e.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Q[t.severity]<Q[e.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:e.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Ye={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function je(t,e){if(e)return e;if(t!==void 0)return Ye[t]}const Xe="notification.emailDigestSmtpPass",ze="notification.webhook.url.";function he(){const t=new Map;return{get:e=>Promise.resolve(t.get(e)),set:async(e,i)=>{t.set(e,i)},delete:async e=>{t.delete(e)},keys:async e=>[...t.keys()].filter(i=>i.startsWith(e))}}let z=he();function Ge(t){z=t??he()}function Je(t){return`${ze}${t}`}function Ze(){return z.get(Xe)}function et(t){return z.get(Je(t))}let Se="";function tt(t){Se=t.trim()}function G(){return Se}const it=w.getLogger("WebhookDelivery"),rt={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},nt={info:1668818,success:3046706,warning:16088064,error:12986408};function ot(t,e){const{severities:i,priorities:r,sources:n}=t.filters;return!(i.length>0&&!i.includes(e.severity)||r.length>0&&!r.includes(e.priority)||n.length>0&&!n.includes(e.source))}function st(t,e){switch(t.type){case"slack":return{text:e.title,attachments:[{color:rt[e.severity],fields:[{title:"Source",value:e.source,short:!0},{title:"Severity",value:e.severity,short:!0},{title:"Priority",value:e.priority,short:!0}],text:e.body??""}]};case"discord":return{embeds:[{title:e.title,description:e.body??"",color:nt[e.severity],fields:[{name:"Source",value:e.source,inline:!0},{name:"Severity",value:e.severity,inline:!0},{name:"Priority",value:e.priority,inline:!0}]}]};case"generic":default:return{title:e.title,body:e.body??"",severity:e.severity,priority:e.priority,source:e.source,timestamp:Date.now()}}}async function ct(t,e,i){try{const r=JSON.stringify(st(t,i));await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r})}catch(r){it.warn("Webhook delivery failed:",r)}}async function at(t,e){const i=await et(t.id)??"";i&&await ct(t,i,e)}function ut(t){const i=g.notificationSettings.get().webhooks.filter(r=>r.enabled&&ot(r,t));if(i.length!==0)for(const r of i)at(r,t)}let Y=null;function lt(t){Y=t}const dt=w.getLogger("EmailDigest"),T=[],ie=500,re={info:0,success:1,warning:2,error:3};function ft(t){const e=g.notificationSettings.get();e.emailDigestEnabled&&(re[t.severity]<re[e.emailDigestMinSeverity]||(T.push(t),T.length>ie&&T.splice(0,T.length-ie)))}const M=t=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function gt(t){const e=G(),i=t.map(r=>`<tr>
2
- <td style="padding:4px 8px">${new Date(r.at).toISOString().slice(11,19)}</td>
3
- <td style="padding:4px 8px"><strong>${r.severity}</strong></td>
4
- <td style="padding:4px 8px">${M(r.source)}</td>
5
- <td style="padding:4px 8px">${M(r.title)}${r.body?`<br><small>${M(r.body)}</small>`:""}</td>
6
- </tr>`).join(`
7
- `);return`<!doctype html>
8
- <html><body>
9
- <h2>${e?`${M(e)} notification digest`:"Notification digest"}</h2>
10
- <p>${t.length} notification(s) since the last digest.</p>
11
- <table style="border-collapse:collapse">
12
- <thead><tr style="background:#eee">
13
- <th style="padding:4px 8px;text-align:left">Time (UTC)</th>
14
- <th style="padding:4px 8px;text-align:left">Severity</th>
15
- <th style="padding:4px 8px;text-align:left">Source</th>
16
- <th style="padding:4px 8px;text-align:left">Message</th>
17
- </tr></thead>
18
- <tbody>
19
- ${i}
20
- </tbody></table>
21
- </body></html>`}function mt(t){const e=t.map(i=>`[${new Date(i.at).toISOString()}] ${i.severity.toUpperCase()} (${i.source}): ${i.title}${i.body?` — ${i.body}`:""}`);return`${t.length} notification(s):
22
-
23
- ${e.join(`
24
- `)}`}function yt(t){switch(t.kind){case"disabled":return y.t("Email digest is turned off.");case"smtp-incomplete":return y.t("SMTP host, sender and recipient are required.");case"send-failed":return a.errorText(t.error,y.t("The digest could not be sent."))}}async function be(){const t=g.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(T.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const e=T.splice(0,T.length),i={sendEmailDigest:s=>Y?Y(s):Promise.reject(new Error("No email digest transport configured"))},r=G(),n=`${r?`[${r}] `:""}${e.length} notification(s)`,o=await Ze()??"";try{return await i.sendEmailDigest({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:o},from:t.emailDigestFrom,to:t.emailDigestTo,subject:n,html:gt(e),text:mt(e)}),{kind:"sent",count:e.length}}catch(s){return T.unshift(...e),{kind:"not-sent",reason:{kind:"send-failed",error:s}}}}let ne=0,oe=null;function vt(t){const e=g.notificationSettings.get();if(!e.emailDigestEnabled)return!1;const i=t.getHours(),r=t.getMinutes(),n=t.getDay();switch(e.emailDigestSchedule){case"hourly":return r===0;case"daily-9am":return i===9&&r===0;case"daily-5pm":return i===17&&r===0;case"weekly-mon-9am":return n===1&&i===9&&r===0}}function pt(){oe===null&&(typeof window>"u"||(oe=window.setInterval(()=>{const t=new Date;if(!vt(t))return;const e=Math.floor(t.getTime()/6e4);e!==ne&&(ne=e,be().then(i=>{i.kind==="not-sent"&&i.reason.kind==="send-failed"&&dt.warn("scheduled email digest failed",i.reason.error)}))},6e4)))}function we(){return X(g.notificationSettings.get(),new Date)}function k(t,e,i,r,n){const o=g.notificationSettings.get(),s=a.deriveImplicitRemindKey(t,e);return a.decideFilter({priority:i,recordTimeline:n},o,{dismissed:r!==void 0&&a.isKeyDismissed(r),remindSuppressed:r!==void 0&&a.isKeyRemindSuppressed(r)||a.isKeyRemindSuppressed(s),sourceMuted:a.isSourceMuted(t),inQuietHours:we()})}function ht(t,e,i,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{a.recordClick(i);try{t.onClick()}finally{const n=e();t.expireOnAction!==!1&&n&&a.closeNotification(n)}}}}function N(t){var S,m;const e=t.options.source??"general";if(a.recordFire(e,t.decision.showToast,a.isSourceMuted(e)),!t.decision.showToast)return null;fe(t.severity,we());const{options:i}=t,r=((S=i.subtitle)==null?void 0:S.trim())||((m=i.description)==null?void 0:m.trim()),n=i.id!==void 0?String(i.id):void 0,o=g.notificationSettings.get(),s=i.markdown??o.markdownEnabled,c=[...t.primaryAction?[t.primaryAction]:[],...i.actions??[]],l=je(i.source,i.defaultRoute);let d=null;const u=a.notify({severity:t.severity,title:t.title,...r?{body:r}:{},...s?{markdown:!0}:{},source:i.source??"general",priority:i.priority??"default",...i.duration!==void 0?{durationMs:i.duration}:{},...i.dontShowAgainKey?{neverShowAgainKey:i.dontShowAgainKey}:{},...n?{id:n}:{},...i.icon?{icon:i.icon}:{},...l?{defaultRoute:l}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c.map((E,I)=>ht(E,()=>d==null?void 0:d.id,e,I===0))}:{}});if(d=u,a.isSpamDropHandle(u))return u;const h=w.scrubSecrets(t.title),p=r?w.scrubSecrets(r):void 0,f={title:h,...p?{body:p}:{},severity:t.severity,priority:i.priority??"default",source:i.source??"general"};return St(f),ut(f),ft({...f,at:Date.now()}),u}function St(t){const e=pe(t,g.notificationSettings.get());e.fire&&a.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:e.onlyWhenUnfocused})}function x(t){return typeof t=="string"?t:t instanceof Error?t.message:t==null?"":String(t)}function J(t,e,i,r=a.openExternal){var u,h,p;const n=x(t),o=(u=e.title)==null?void 0:u.trim(),s=((h=e.subtitle)==null?void 0:h.trim())||((p=e.description)==null?void 0:p.trim());let c=o??n,l=s;if(i&&!o){const f=i.helpers.formatCode(i.code),S=new RegExp(`^\\s*${Qe(f)}\\s*[:-]\\s*(.+)$`,"i"),m=n.match(S);if(m!=null&&m[1]){c=f;const E=m[1].trim();l=l?`${E}
25
-
26
- ${l}`:E}}let d=e.action;if(!d&&i){const f=i.helpers.docsUrl(i.code);f&&(d={label:`${i.helpers.formatCode(i.code)} ${i.helpers.docsLinkLabel}`,onClick:()=>r(f)})}return{text:n,displayText:c,bodyText:l,primaryAction:d}}function q(t){return ve(t,g.notificationSettings.get().notificationRules)}const C={success(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"general",o=e.priority??"default",s=q({severity:"success",title:i,priority:o,source:n});if(!s)return"";const c=k(s.source,s.title,s.priority,e.dontShowAgainKey,e.recordTimeline);if(c.recordTimeline&&b(s.title,s.severity==="success"?"success":s.severity,s.source,s.priority,A(e.action)),!r.showSuccessToasts&&s.priority!=="urgent")return"";const l=N({severity:s.severity,title:s.title,options:{...e,source:s.source,priority:s.priority},decision:c,...e.action?{primaryAction:e.action}:{}});return(l==null?void 0:l.id)??""},error(t,e=!1){const i=x(t),r=typeof e=="boolean"?{}:e,n=r.vendorError===void 0?null:a.resolveVendorError(r.vendorError),o=J(i,r,n),s=n!==null;let c=o.displayText;const l=o.bodyText,d=l?`${c}
27
- ${l}`:i,u=r.source??(s?"vendor-error":"general"),h=s&&g.notificationSettings.get().vendorCodesAreUrgent,p=r.priority??(h?"urgent":"default"),f=q({severity:"error",title:c,priority:p,source:u});if(!f)return"";c=f.title;const S=f.source,m=f.priority,E=k(S,c,m,r.dontShowAgainKey,r.recordTimeline);E.recordTimeline&&b(d,f.severity,S,m,A(r.action),r.vendorError);const I=N({severity:f.severity,title:c,options:{...r,source:S,priority:m,...l?{description:l}:{}},decision:E,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(I==null?void 0:I.id)??""},info(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"info",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},warning(t,e={}){const i=x(t),r=e.source??"general",n=e.priority??"default",o=q({severity:"warning",title:i,priority:n,source:r});if(!o)return"";const s=k(o.source,o.title,o.priority,e.dontShowAgainKey,e.recordTimeline);s.recordTimeline&&b(o.title,o.severity,o.source,o.priority,A(e.action));const c=N({severity:o.severity,title:o.title,options:{...e,source:o.source,priority:o.priority},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},queryCompleted(t,e={}){const i=x(t),r=g.notificationSettings.get(),n=e.source??"sql-execution",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"success",n,o,A(e.action)),r.notificationsEnabled&&r.soundOnQueryCompletion&&!(r.quietHoursMutesSounds&&X(r,new Date))&&de(),!r.showSuccessToasts&&o!=="urgent")return"";const c=N({severity:"success",title:i,options:{...e,source:n,priority:o},decision:s,...e.action?{primaryAction:e.action}:{}});return(c==null?void 0:c.id)??""},progress(t,e={}){const i=x(t),r=e.onCancel,n=e.source??"general",o=e.priority??"default",s=k(n,i,o,e.dontShowAgainKey,e.recordTimeline);if(s.recordTimeline&&b(i,"info",n,o),!s.showToast)return{update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{}};const c=e.id!==void 0?String(e.id):`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,l=a.notify({id:c,severity:"info",title:i,source:n,priority:o,sticky:!0,progress:r?{onCancel:r}:{}});return{update:(d,u)=>{l.update({title:d}),u!==void 0&&l.setProgress({value:Math.max(0,Math.min(1,u)),...r?{onCancel:r}:{}})},success:d=>{const u=d??i;s.recordTimeline&&b(u,"success",n,o),l.update({title:u,severity:"success",sticky:!1,progress:{done:!0}})},fail:d=>{const u=d??i;s.recordTimeline&&b(u,"error",n,o),l.update({title:u,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>l.close()}}};function v(t,e){return{...t,category:t.category??t.id.split(".")[0]??"general",build:e}}function bt(t,e,i){return{id:t,notification:e,resolve:()=>e.build(i)}}function _(t,e){return{message:t,...e!=null&&e.title?{title:e.title}:{},...e!=null&&e.subtitle?{subtitle:e.subtitle}:{},...e!=null&&e.description?{description:e.description}:{},...e!=null&&e.action?{action:e.action}:{},...(e==null?void 0:e.duration)!==void 0?{duration:e.duration}:{},...e!=null&&e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e!=null&&e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e!=null&&e.icon?{icon:e.icon}:{},...(e==null?void 0:e.markdown)!==void 0?{markdown:e.markdown}:{},...(e==null?void 0:e.recordTimeline)!==void 0?{recordTimeline:e.recordTimeline}:{},...(e==null?void 0:e.id)!==void 0?{id:e.id}:{},...e!=null&&e.onCancel?{onCancel:e.onCancel}:{}}}v({id:"notifications.copyToClipboard.success.1",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({successNotice:t})=>({message:t??y.t("Copied to clipboard.")}));v({id:"notifications.copyToClipboard.error.2",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},()=>({message:y.t("Could not copy to clipboard.")}));const wt=v({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Tt=v({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Et=v({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),xt=v({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:t,options:e})=>_(t,e)),Ct=v({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:t})=>({message:y.t("Exported {count} notifications",{count:t})})),kt=v({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("Export failed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),At=v({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:y.t("The action could not be completed: {message}",{message:a.errorText(t,y.t("Operation failed."))}),cause:t})),Nt=v({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:t})=>({message:a.errorText(t,y.t("Operation failed.")),cause:t}));function Z(t){if(!("cause"in t))return t;const{cause:e,...i}=t,r=a.errorActions(e).map(Rt);return r.length===0?i:{...i,actions:[...i.actions??[],...r]}}function Rt(t){return{label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e=>{ke(At,{cause:e})})}}}function Te(t,e){return{...t.severity==="error"&&t.source==="general"?{}:{source:t.source},...t.severity==="error"&&t.priority==="default"?{}:{priority:t.priority},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{},...e.actions?{actions:e.actions}:{},...e.duration!==void 0?{duration:e.duration}:{},...e.dontShowAgainKey?{dontShowAgainKey:e.dontShowAgainKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.icon?{icon:e.icon}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.recordTimeline!==void 0?{recordTimeline:e.recordTimeline}:{},...e.id!==void 0?{id:e.id}:{}}}function Dt(t,e){const i=Z(e);if(t.delivery==="os-only"){const n=i.title??i.message,o=i.description??i.subtitle??(i.title?i.message:void 0);return a.osNotify({title:n,...o?{body:o}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:!1}),""}const r=Te(t,i);if(t.kind==="query-completed")return C.queryCompleted(i.message,r);switch(t.severity){case"success":return C.success(i.message,r);case"error":{const n={...r,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return C.error(i.message,n)}case"warning":return C.warning(i.message,r);case"info":return C.info(i.message,r)}}function $t(t,e){const i=Z(e);if(t.delivery!=="in-app")throw new se.BugIndicatingError("Progress notifications require an in-app catalog definition.");return C.progress(i.message,{...Te(t,i),...i.onCancel?{onCancel:i.onCancel}:{}})}const Ee={notify:Dt,progress:$t,dismiss:t=>a.closeNotification(t)};function xe(t,e,i,r){return t==="error"&&e==="default"&&i&&r?"urgent":e}function It(t,e){var d;const i=e.vendorError===void 0||!a.isVendorErrorSourceInstalled()?null:a.resolveVendorError(e.vendorError),r=t.severity==="error"?J(e.message,{...e.title?{title:e.title}:{},...e.subtitle?{subtitle:e.subtitle}:{},...e.description?{description:e.description}:{},...e.action?{action:e.action}:{}},i,a.openExternal):null,n=(r==null?void 0:r.displayText)??e.title??e.message,o=(r==null?void 0:r.bodyText)??e.subtitle??e.description,s=(r==null?void 0:r.primaryAction)??e.action,c=t.severity==="error"&&t.source==="general"&&i!==null?"vendor-error":t.source,l=xe(t.severity,t.priority,i!==null,g.notificationSettings.get().vendorCodesAreUrgent);return a.notify({severity:t.severity,title:w.scrubSecrets(n),...o?{body:w.scrubSecrets(o)}:{},source:c,priority:l,isolated:!0,...e.duration!==void 0?{durationMs:e.duration}:{},...e.id!==void 0?{id:`dev-preview:${e.id}`}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...s||(d=e.actions)!=null&&d.length?{actions:[s,...e.actions??[]].filter(u=>u!==void 0).map((u,h)=>({id:`dev-preview-action-${h}`,label:u.label,primary:h===0,onClick:()=>{var p;(p=u.onClick)==null||p.call(u)}}))}:{}}).id}let Ce=null;function Ot(t){Ce=t}function ee(){return Ce??Ee}function ke(t,e){return ee().notify(t,t.build(e))}function Ut(t,e){if(t.kind!=="progress")throw new se.BugIndicatingError("catalogNotify: a message definition cannot be sent with progressFromCatalog.");return ee().progress(t,t.build(e))}function Mt(t){var e,i;(i=(e=ee()).dismiss)==null||i.call(e,t)}function qt(t){return t.resolve()}exports.SEVERITY_ORDER=Q;exports.SEVERITY_TONES=ce;exports.addTimelineEntry=b;exports.applyNotificationRules=ve;exports.catalogNotificationHost=Ee;exports.clearCompiledRuleRegexCache=Be;exports.clearNotificationTimeline=Pe;exports.defineNotification=v;exports.defineNotificationScenario=bt;exports.digestNotSentText=yt;exports.dismissNotificationFromCatalog=Mt;exports.dismissNotificationTimelineEntries=He;exports.dismissNotificationTimelineEntriesBySource=Ke;exports.dismissNotificationTimelineEntry=_e;exports.enrichErrorToast=J;exports.entryVendorMatch=Ie;exports.fire=N;exports.flushDigest=be;exports.getAppName=G;exports.invalidateCustomSoundCache=Re;exports.isInQuietHours=X;exports.loadCustomSoundDataUrl=ue;exports.markTimelineSeen=qe;exports.notificationReplayError=wt;exports.notificationReplayInfo=xt;exports.notificationReplaySuccess=Et;exports.notificationReplayWarning=Tt;exports.notificationSettingsUpdateFailed=Nt;exports.notificationTimelineExportFailed=kt;exports.notificationTimelineExported=Ct;exports.notifyFromCatalog=ke;exports.playQueryCompletedCue=de;exports.playSeverityToneIfEnabled=fe;exports.progressFromCatalog=Ut;exports.provideCatalogNotificationHost=Ot;exports.provideNotificationSecretStore=Ge;exports.refreshOsBadge=Ue;exports.resolveCatalogPreviewPriority=xe;exports.resolveNotificationScenario=qt;exports.resolveSeverityTone=ae;exports.setAppName=tt;exports.setEmailDigestTransport=lt;exports.shouldFireOsNative=pe;exports.showCatalogPreviewToast=It;exports.startDigestScheduler=pt;exports.subscribeNotificationTimeline=Fe;exports.subscribeUnreadCount=Me;exports.toTimelineActions=A;exports.toast=C;exports.toggleTimelineEntryPin=We;exports.withErrorActionButtons=Z;