@vokril/ui-solid 0.13.0 → 0.18.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 (585) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +110 -31
  3. package/dist/{AttributeGrid-Bg88JYZI.cjs → AttributeGrid-7cLOWtPn.cjs} +1 -1
  4. package/dist/{AttributeGrid-BypjAajJ.js → AttributeGrid-CVyqzT7-.js} +5 -5
  5. package/dist/{Button-Db6wMY-3.js → Button-BiKPB3cH.js} +2 -2
  6. package/dist/{Button-d9jJBibg.cjs → Button-Nx7byQZc.cjs} +1 -1
  7. package/dist/CommandPalette-BH7c1cbU.js +3968 -0
  8. package/dist/CommandPalette-Dfb4V-Hb.cjs +2 -0
  9. package/dist/{CopyButton-C93PFyYK.js → CopyButton-BF7L1TCO.js} +1 -1
  10. package/dist/{CopyButton-CXaZRU7b.cjs → CopyButton-BtgGbiy9.cjs} +1 -1
  11. package/dist/DateRangePicker-Ce2tTbJ4.cjs +9 -0
  12. package/dist/{DateRangePicker-D-5rg3h1.js → DateRangePicker-jSQBwB78.js} +181 -166
  13. package/dist/GuidedTour-CWDtBRHv.js +483 -0
  14. package/dist/GuidedTour-CYaR5Ozj.cjs +1 -0
  15. package/dist/HostPortal-B9Tzk_uN.cjs +1 -0
  16. package/dist/HostPortal-X1iw719T.js +33 -0
  17. package/dist/HostWindowContext-B2m0bVra.js +32 -0
  18. package/dist/HostWindowContext-_VZCt7xE.cjs +1 -0
  19. package/dist/{IconPicker-DPT-QfsC.cjs → IconPicker-4bdAeGxS.cjs} +1 -1
  20. package/dist/{IconPicker-C3ZwWkB1.js → IconPicker-Df6uIUpJ.js} +4 -4
  21. package/dist/{Input-Ca8fLm_s.cjs → Input-CZruORyy.cjs} +1 -1
  22. package/dist/{Input-gq8EcQao.js → Input-DkPhsdfk.js} +2 -2
  23. package/dist/Modal-CQG8l4x7.cjs +1 -0
  24. package/dist/{Modal-C4l_yuY9.js → Modal-CUPe98-o.js} +5 -5
  25. package/dist/PageSkeleton-C3mo6UGh.cjs +30 -0
  26. package/dist/{PageSkeleton-C95fXUUk.js → PageSkeleton-CUTLh9Ip.js} +630 -628
  27. package/dist/{Popover-C24npAQ7.js → Popover-Dht1jFEy.js} +1 -1
  28. package/dist/{Popover-hhGcYQ-a.cjs → Popover-YfzC0Tjh.cjs} +1 -1
  29. package/dist/{SearchableSelect-BpOD2_A-.js → SearchableSelect-C01brsF0.js} +5 -5
  30. package/dist/{SearchableSelect-MN5azo9r.cjs → SearchableSelect-pCaUie2M.cjs} +1 -1
  31. package/dist/StatusBarNotificationBell-BwqVV09r.js +14266 -0
  32. package/dist/StatusBarNotificationBell-C5Zc2IvW.cjs +50 -0
  33. package/dist/{Stepper-BgDx1cPX.js → Stepper-38IAEOyT.js} +3 -3
  34. package/dist/{Stepper-D7rXGxdg.cjs → Stepper-CtaTpnQu.cjs} +1 -1
  35. package/dist/{Textarea-BueHsjOk.js → Textarea-B5QqqKnI.js} +1 -1
  36. package/dist/{Textarea-BltpSavs.cjs → Textarea-CeAGf08O.cjs} +1 -1
  37. package/dist/{TimeSeriesChart-C3o7NZPh.js → TimeSeriesChart-ByKG4E1G.js} +2 -2
  38. package/dist/{TimeSeriesChart-DhYtrAgX.cjs → TimeSeriesChart-_NOs_Job.cjs} +1 -1
  39. package/dist/ToggleButton-Bz3zAtec.cjs +1 -0
  40. package/dist/{ToggleButton-DCP7f6Uo.js → ToggleButton-D-N0C2Fu.js} +54 -53
  41. package/dist/_internal/app/keybindings/context/keybindingsContext.d.cts +11 -6
  42. package/dist/_internal/app/keybindings/context/keybindingsContext.d.ts +11 -6
  43. package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +4 -3
  44. package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +4 -3
  45. package/dist/_internal/app/keybindings/context/useListCommands.d.cts +6 -5
  46. package/dist/_internal/app/keybindings/context/useListCommands.d.ts +6 -5
  47. package/dist/_internal/app/keybindings/index.d.cts +0 -10
  48. package/dist/_internal/app/keybindings/index.d.ts +0 -10
  49. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +14 -9
  50. package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +14 -9
  51. package/dist/_internal/app/menu/menuFavorites.d.cts +35 -8
  52. package/dist/_internal/app/menu/menuFavorites.d.ts +35 -8
  53. package/dist/_internal/app/onboarding/pageTourState.d.cts +75 -22
  54. package/dist/_internal/app/onboarding/pageTourState.d.ts +75 -22
  55. package/dist/_internal/app/platform/electronBridge.d.cts +35 -29
  56. package/dist/_internal/app/platform/electronBridge.d.ts +35 -29
  57. package/dist/_internal/app/settings/secrets/notificationSecrets.d.cts +8 -4
  58. package/dist/_internal/app/settings/secrets/notificationSecrets.d.ts +8 -4
  59. package/dist/_internal/app/windows/window/HostWindowContext.d.cts +8 -14
  60. package/dist/_internal/app/windows/window/HostWindowContext.d.ts +8 -14
  61. package/dist/_internal/contract/catalogNotify.d.cts +6 -19
  62. package/dist/_internal/contract/catalogNotify.d.ts +6 -19
  63. package/dist/_internal/contract/hostErrorText.d.cts +13 -23
  64. package/dist/_internal/contract/hostErrorText.d.ts +13 -23
  65. package/dist/_internal/contract/notificationCatalog.d.cts +16 -5
  66. package/dist/_internal/contract/notificationCatalog.d.ts +16 -5
  67. package/dist/_internal/platform/errors/diagnosticReport.d.cts +3 -1
  68. package/dist/_internal/platform/errors/diagnosticReport.d.ts +3 -1
  69. package/dist/_internal/platform/logging/consoleLogger.d.cts +7 -0
  70. package/dist/_internal/platform/logging/consoleLogger.d.ts +7 -0
  71. package/dist/_internal/platform/settings/registry/defineSettings.d.cts +19 -8
  72. package/dist/_internal/platform/settings/registry/defineSettings.d.ts +19 -8
  73. package/dist/_internal/platform/settings/registry/stateDbStore.d.cts +23 -15
  74. package/dist/_internal/platform/settings/registry/stateDbStore.d.ts +23 -15
  75. package/dist/_internal/platform/settings/settingsTypes.d.cts +5 -0
  76. package/dist/_internal/platform/settings/settingsTypes.d.ts +5 -0
  77. package/dist/_internal/platform/vendorErrors/index.d.cts +7 -17
  78. package/dist/_internal/platform/vendorErrors/index.d.ts +7 -17
  79. package/dist/_internal/platform/window/displayOwner.d.cts +35 -14
  80. package/dist/_internal/platform/window/displayOwner.d.ts +35 -14
  81. package/dist/a11y/index.cjs +1 -1
  82. package/dist/a11y/index.js +1 -1
  83. package/dist/actions-DtaFGwh2.cjs +1 -0
  84. package/dist/actions-wwAHs3ZU.js +16 -0
  85. package/dist/{server/appThemeDerivation-BiCyiSuz.js → appThemeDerivation-B7-DjMIM.js} +181 -184
  86. package/dist/appThemeDerivation-NS3Vws8q.cjs +1 -0
  87. package/dist/async/createGuardedListLoader.d.cts +3 -0
  88. package/dist/async/createGuardedListLoader.d.ts +3 -0
  89. package/dist/charts/index.cjs +1 -1
  90. package/dist/charts/index.js +1 -1
  91. package/dist/createDialogShellFocus-BBFu3Z_O.js +282 -0
  92. package/dist/createDialogShellFocus-CxRqhbRN.cjs +1 -0
  93. package/dist/createResizableSidebar-CfFxQUny.js +449 -0
  94. package/dist/createResizableSidebar-q7aC7SAO.cjs +1 -0
  95. package/dist/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  96. package/dist/{server/createVirtualScroller-DBvqT0UW.js → createVirtualScroller-vu-l4rVv.js} +7 -7
  97. package/dist/defineSettings-D0CSMcyy.cjs +1 -0
  98. package/dist/defineSettings-Di1sG81q.js +407 -0
  99. package/dist/descriptor-CaHgh9N_.cjs +1 -0
  100. package/dist/{descriptor-CrCl515S.js → descriptor-eGtcBtpI.js} +5 -5
  101. package/dist/desktop/index.cjs +1 -1
  102. package/dist/desktop/index.js +500 -426
  103. package/dist/dialogFocusRestore-BrALT8Ew.js +35 -0
  104. package/dist/dialogFocusRestore-CcEsB50v.cjs +1 -0
  105. package/dist/electronBridge-BK92fycw.js +235 -0
  106. package/dist/electronBridge-cT0xww92.cjs +1 -0
  107. package/dist/errorHandler-BvPGW-Nm.js +373 -0
  108. package/dist/errorHandler-DoDAPpv2.cjs +3 -0
  109. package/dist/feedback/Loader.d.cts +6 -1
  110. package/dist/feedback/Loader.d.ts +6 -1
  111. package/dist/feedback/createPreference.d.cts +4 -1
  112. package/dist/feedback/createPreference.d.ts +4 -1
  113. package/dist/feedback/guidedInstallOutcome.d.cts +15 -2
  114. package/dist/feedback/guidedInstallOutcome.d.ts +15 -2
  115. package/dist/feedback/index.cjs +1 -1
  116. package/dist/feedback/index.js +37 -38
  117. package/dist/feedback/readFailureText.d.cts +20 -1
  118. package/dist/feedback/readFailureText.d.ts +20 -1
  119. package/dist/focusModality-BISb6-yg.cjs +1 -0
  120. package/dist/focusModality-FoLPWF-_.js +135 -0
  121. package/dist/forms/index.cjs +1 -1
  122. package/dist/forms/index.js +9 -9
  123. package/dist/grid/index.cjs +1 -1
  124. package/dist/grid/index.js +1 -1
  125. package/dist/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  126. package/dist/{server/headerIconOverrides-B7TQUBmD.js → headerIconOverrides-Dh2PaOcO.js} +1 -1
  127. package/dist/host/index.cjs +1 -1
  128. package/dist/host/index.d.cts +14 -16
  129. package/dist/host/index.d.ts +14 -16
  130. package/dist/host/index.js +53 -90
  131. package/dist/host/kitHost.d.cts +42 -0
  132. package/dist/host/kitHost.d.ts +42 -0
  133. package/dist/host/window.d.cts +3 -11
  134. package/dist/host/window.d.ts +3 -11
  135. package/dist/i18n/index.cjs +1 -1
  136. package/dist/i18n/index.js +1 -1
  137. package/dist/{server/i18n-D9k9xwuD.js → i18n-DW9kcu0G.js} +180 -178
  138. package/dist/i18n-DZ0JlZal.cjs +4 -0
  139. package/dist/index.cjs +1 -1
  140. package/dist/index.d.cts +1 -1
  141. package/dist/index.d.ts +1 -1
  142. package/dist/index.js +665 -738
  143. package/dist/isOneOf-9EXOSYJu.cjs +1 -0
  144. package/dist/isOneOf-Dtomuazg.js +6 -0
  145. package/dist/{keys-Bfgdfak_.js → keys-B2nlkpqc.js} +6 -9
  146. package/dist/keys-GMxY2wcl.cjs +1 -0
  147. package/dist/layout/createResizableSidebar.d.cts +14 -0
  148. package/dist/layout/createResizableSidebar.d.ts +14 -0
  149. package/dist/layout/index.cjs +1 -1
  150. package/dist/layout/index.js +3 -3
  151. package/dist/layout/sidebarWidthClamp.d.cts +1 -1
  152. package/dist/layout/sidebarWidthClamp.d.ts +1 -1
  153. package/dist/mainRealmDom-C12lr9lm.js +171 -0
  154. package/dist/mainRealmDom-S6teqEr4.cjs +1 -0
  155. package/dist/navigation/index.cjs +1 -1
  156. package/dist/navigation/index.js +1 -1
  157. package/dist/notifications/NotificationHost.d.cts +7 -1
  158. package/dist/notifications/NotificationHost.d.ts +7 -1
  159. package/dist/notifications/NotificationItem.d.cts +48 -15
  160. package/dist/notifications/NotificationItem.d.ts +48 -15
  161. package/dist/notifications/catalogAdapter.d.cts +28 -6
  162. package/dist/notifications/catalogAdapter.d.ts +28 -6
  163. package/dist/notifications/createNotificationPreviewRuntime.d.cts +21 -3
  164. package/dist/notifications/createNotificationPreviewRuntime.d.ts +21 -3
  165. package/dist/notifications/customSoundCache.d.cts +24 -24
  166. package/dist/notifications/customSoundCache.d.ts +24 -24
  167. package/dist/notifications/emailDigest.d.cts +34 -16
  168. package/dist/notifications/emailDigest.d.ts +34 -16
  169. package/dist/notifications/errorActionButtons.d.cts +18 -1
  170. package/dist/notifications/errorActionButtons.d.ts +18 -1
  171. package/dist/notifications/fireNotification.d.cts +27 -17
  172. package/dist/notifications/fireNotification.d.ts +27 -17
  173. package/dist/notifications/index.cjs +1 -1
  174. package/dist/notifications/index.d.cts +6 -12
  175. package/dist/notifications/index.d.ts +6 -12
  176. package/dist/notifications/index.js +64 -104
  177. package/dist/notifications/nativeEngine.d.cts +18 -15
  178. package/dist/notifications/nativeEngine.d.ts +18 -15
  179. package/dist/notifications/notificationAnalytics.d.cts +11 -6
  180. package/dist/notifications/notificationAnalytics.d.ts +11 -6
  181. package/dist/notifications/notificationAudio.d.cts +30 -23
  182. package/dist/notifications/notificationAudio.d.ts +30 -23
  183. package/dist/notifications/notificationCardServices.d.cts +23 -0
  184. package/dist/notifications/notificationCardServices.d.ts +23 -0
  185. package/dist/notifications/notificationOverlayChannel.d.cts +4 -4
  186. package/dist/notifications/notificationOverlayChannel.d.ts +4 -4
  187. package/dist/notifications/notificationOverlaySync.d.cts +7 -2
  188. package/dist/notifications/notificationOverlaySync.d.ts +7 -2
  189. package/dist/notifications/notificationService.d.cts +101 -0
  190. package/dist/notifications/notificationService.d.ts +101 -0
  191. package/dist/notifications/notificationTimeline.d.cts +47 -49
  192. package/dist/notifications/notificationTimeline.d.ts +47 -49
  193. package/dist/notifications/notifications.notifications.d.cts +0 -4
  194. package/dist/notifications/notifications.notifications.d.ts +0 -4
  195. package/dist/notifications/toast.d.cts +24 -28
  196. package/dist/notifications/toast.d.ts +24 -28
  197. package/dist/notifications/webhookDelivery.d.cts +12 -17
  198. package/dist/notifications/webhookDelivery.d.ts +12 -17
  199. package/dist/overlay/ConfirmDialog.d.cts +16 -17
  200. package/dist/overlay/ConfirmDialog.d.ts +16 -17
  201. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.cts +15 -14
  202. package/dist/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.d.ts +15 -14
  203. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.cts +1 -3
  204. package/dist/overlay/command-palette/unifiedSearch/settingsSearchContributor.d.ts +1 -3
  205. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.cts +1 -1
  206. package/dist/overlay/command-palette/unifiedSearch/unifiedSearchTypes.d.ts +1 -1
  207. package/dist/overlay/dialogShellKeyIntent.d.cts +3 -3
  208. package/dist/overlay/dialogShellKeyIntent.d.ts +3 -3
  209. package/dist/overlay/index.cjs +1 -1
  210. package/dist/overlay/index.d.cts +2 -3
  211. package/dist/overlay/index.d.ts +2 -3
  212. package/dist/overlay/index.js +114 -119
  213. package/dist/pageTourState-BcBF8w89.js +516 -0
  214. package/dist/pageTourState-CrbEU7QW.cjs +5 -0
  215. package/dist/server/{AttributeGrid-UJtHTip2.js → AttributeGrid-B2s_rp00.js} +3 -3
  216. package/dist/server/{AttributeGrid-CyMsR4GC.cjs → AttributeGrid-C7aWbIe5.cjs} +1 -1
  217. package/dist/server/{Button-BesBg6eW.js → Button-Ck03cbUs.js} +1 -1
  218. package/dist/server/{Button-PZulLru4.cjs → Button-DWFMF5y0.cjs} +1 -1
  219. package/dist/server/CommandPalette-DwlWZI1s.js +3224 -0
  220. package/dist/server/CommandPalette-VewDIghb.cjs +1 -0
  221. package/dist/server/{CopyButton-D_sN2Ggp.cjs → CopyButton-BOmAUQD4.cjs} +1 -1
  222. package/dist/server/{CopyButton-I5xsXV07.js → CopyButton-UvtFwOtA.js} +1 -1
  223. package/dist/server/DateRangePicker-BJteKzOY.cjs +9 -0
  224. package/dist/server/{DateRangePicker-DGUl2aE3.js → DateRangePicker-Cr58DczM.js} +158 -143
  225. package/dist/server/GuidedTour-C4msn-Ag.js +400 -0
  226. package/dist/server/GuidedTour-Rlsp8rOe.cjs +1 -0
  227. package/dist/server/HostPortal-B9Tzk_uN.cjs +1 -0
  228. package/dist/server/HostPortal-X1iw719T.js +33 -0
  229. package/dist/server/HostWindowContext-B2m0bVra.js +32 -0
  230. package/dist/server/HostWindowContext-_VZCt7xE.cjs +1 -0
  231. package/dist/server/{IconPicker-BlD0VBca.cjs → IconPicker-9DfOxql6.cjs} +1 -1
  232. package/dist/server/{IconPicker-o8hUxjYU.js → IconPicker-N0wub1Aj.js} +4 -4
  233. package/dist/server/Modal-D__GTo-n.cjs +1 -0
  234. package/dist/server/{Modal-DmF6CwfY.js → Modal-DeQjfpkG.js} +3 -3
  235. package/dist/server/{PageSkeleton-BigztY5i.js → PageSkeleton-C41pXOcr.js} +460 -458
  236. package/dist/server/PageSkeleton-D4i-UcnI.cjs +30 -0
  237. package/dist/server/{SearchableSelect-Dn-cssWx.js → SearchableSelect-CEcuBnge.js} +2 -2
  238. package/dist/server/{SearchableSelect-R0Dwz9rz.cjs → SearchableSelect-Ca9g8ztu.cjs} +1 -1
  239. package/dist/server/StatusBarNotificationBell-BotYny7q.cjs +49 -0
  240. package/dist/server/StatusBarNotificationBell-DyEQF2W7.js +13968 -0
  241. package/dist/server/{Stepper-dBm8YaCw.cjs → Stepper--pusyxso.cjs} +1 -1
  242. package/dist/server/{Stepper-BaQ6Kexj.js → Stepper-B_eL85hK.js} +1 -1
  243. package/dist/server/{TimeSeriesChart-BbbfDyeA.js → TimeSeriesChart-aSHquoBv.js} +1 -1
  244. package/dist/server/{TimeSeriesChart-qPgMkkaW.cjs → TimeSeriesChart-nZeB5jtN.cjs} +1 -1
  245. package/dist/server/ToggleButton-57_0SA-V.cjs +1 -0
  246. package/dist/server/{ToggleButton-C0_QpslP.js → ToggleButton-DjlWwgLJ.js} +4 -4
  247. package/dist/server/VpTrash-D49oUUJh.cjs +1 -0
  248. package/dist/server/VpTrash-Dlq8o6Uv.js +298 -0
  249. package/dist/server/a11y/index.cjs +1 -1
  250. package/dist/server/a11y/index.js +1 -1
  251. package/dist/server/actions-DtaFGwh2.cjs +1 -0
  252. package/dist/server/actions-wwAHs3ZU.js +16 -0
  253. package/dist/{appThemeDerivation-BiCyiSuz.js → server/appThemeDerivation-B7-DjMIM.js} +181 -184
  254. package/dist/server/appThemeDerivation-NS3Vws8q.cjs +1 -0
  255. package/dist/server/charts/index.cjs +1 -1
  256. package/dist/server/charts/index.js +1 -1
  257. package/dist/server/{format-CYCi8g4r.js → createDialogShellFocus-DNjzmcGj.js} +110 -126
  258. package/dist/server/createDialogShellFocus-PRRfMli-.cjs +1 -0
  259. package/dist/server/createResizableSidebar-CZtGmUnA.cjs +1 -0
  260. package/dist/server/createResizableSidebar-DdWdAB9l.js +287 -0
  261. package/dist/server/{createVirtualScroller-LN-7QFiv.cjs → createVirtualScroller-CL49JE2P.cjs} +1 -1
  262. package/dist/{createVirtualScroller-DBvqT0UW.js → server/createVirtualScroller-vu-l4rVv.js} +7 -7
  263. package/dist/server/defineSettings-D0CSMcyy.cjs +1 -0
  264. package/dist/server/defineSettings-Di1sG81q.js +407 -0
  265. package/dist/server/descriptor-CEGvvJZh.cjs +1 -0
  266. package/dist/server/{descriptor-DtZDXBe6.js → descriptor-GLoKPx6x.js} +4 -4
  267. package/dist/server/desktop/index.cjs +1 -1
  268. package/dist/server/desktop/index.js +389 -315
  269. package/dist/server/dialogFocusRestore-BrALT8Ew.js +35 -0
  270. package/dist/server/dialogFocusRestore-CcEsB50v.cjs +1 -0
  271. package/dist/server/electronBridge-BK92fycw.js +235 -0
  272. package/dist/server/electronBridge-cT0xww92.cjs +1 -0
  273. package/dist/server/errorHandler-BvPGW-Nm.js +373 -0
  274. package/dist/server/errorHandler-DoDAPpv2.cjs +3 -0
  275. package/dist/server/feedback/index.cjs +1 -1
  276. package/dist/server/feedback/index.js +37 -38
  277. package/dist/server/focusModality-D-nxv8Er.cjs +1 -0
  278. package/dist/server/{focusModality-BCX5GH0P.js → focusModality-nWNVX3JG.js} +41 -41
  279. package/dist/server/forms/index.cjs +1 -1
  280. package/dist/server/forms/index.js +7 -7
  281. package/dist/server/grid/index.cjs +1 -1
  282. package/dist/server/grid/index.js +1 -1
  283. package/dist/server/{headerIconOverrides-DY3BTuca.cjs → headerIconOverrides-Bn1QuODq.cjs} +1 -1
  284. package/dist/{headerIconOverrides-B7TQUBmD.js → server/headerIconOverrides-Dh2PaOcO.js} +1 -1
  285. package/dist/server/host/index.cjs +1 -1
  286. package/dist/server/host/index.js +53 -90
  287. package/dist/server/i18n/index.cjs +1 -1
  288. package/dist/server/i18n/index.js +1 -1
  289. package/dist/{i18n-D9k9xwuD.js → server/i18n-DW9kcu0G.js} +180 -178
  290. package/dist/server/i18n-DZ0JlZal.cjs +4 -0
  291. package/dist/server/{index-B4epvfiq.js → index-BNYr6EIW.js} +89 -90
  292. package/dist/server/index-Cqod09d_.cjs +1 -0
  293. package/dist/server/index.cjs +1 -1
  294. package/dist/server/index.js +825 -898
  295. package/dist/server/layout/index.cjs +1 -1
  296. package/dist/server/layout/index.js +3 -3
  297. package/dist/server/mainRealmDom-DPNaDWtw.js +121 -0
  298. package/dist/server/mainRealmDom-DwZVMPnO.cjs +1 -0
  299. package/dist/server/navigation/index.cjs +1 -1
  300. package/dist/server/navigation/index.js +1 -1
  301. package/dist/server/notifications/index.cjs +1 -1
  302. package/dist/server/notifications/index.js +63 -103
  303. package/dist/server/overlay/index.cjs +1 -1
  304. package/dist/server/overlay/index.js +115 -120
  305. package/dist/server/pageTourState-BcBF8w89.js +516 -0
  306. package/dist/server/pageTourState-CrbEU7QW.cjs +5 -0
  307. package/dist/server/settings/index.cjs +1 -1
  308. package/dist/server/settings/index.js +23 -24
  309. package/dist/server/stateDbStore-CThsVch-.cjs +1 -0
  310. package/dist/server/stateDbStore-DHZFUIEt.js +57 -0
  311. package/dist/server/tokens/index.cjs +1 -1
  312. package/dist/server/tokens/index.js +19 -20
  313. package/dist/server/tree/index.cjs +1 -1
  314. package/dist/server/tree/index.js +1 -1
  315. package/dist/server/useListCommands-BO_XrRHj.js +38 -0
  316. package/dist/server/useListCommands-Dnm4ktP1.cjs +1 -0
  317. package/dist/server/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  318. package/dist/server/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  319. package/dist/server/window-CUK6x8Pj.js +36 -0
  320. package/dist/server/window-_BfSgFGO.cjs +1 -0
  321. package/dist/server/windowRegistry-CxXtP-iY.cjs +1 -0
  322. package/dist/server/windowRegistry-DeGmXt6W.js +20 -0
  323. package/dist/settings/index.cjs +1 -1
  324. package/dist/settings/index.d.cts +1 -1
  325. package/dist/settings/index.d.ts +1 -1
  326. package/dist/settings/index.js +23 -24
  327. package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +3 -10
  328. package/dist/solid/_internal/app/keybindings/context/useListCommands.js +1 -2
  329. package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +8 -1
  330. package/dist/solid/_internal/app/menu/menuFavorites.js +45 -40
  331. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +22 -22
  332. package/dist/solid/_internal/app/onboarding/pageTourState.js +94 -92
  333. package/dist/solid/_internal/app/platform/electronBridge.js +15 -49
  334. package/dist/solid/_internal/app/settings/secrets/notificationSecrets.js +0 -10
  335. package/dist/solid/_internal/app/windows/window/HostWindowContext.jsx +4 -13
  336. package/dist/solid/_internal/contract/catalogNotify.js +1 -24
  337. package/dist/solid/_internal/contract/hostErrorText.js +1 -14
  338. package/dist/solid/_internal/contract/notificationCatalog.js +1 -1
  339. package/dist/solid/_internal/platform/errors/diagnosticReport.js +2 -3
  340. package/dist/solid/_internal/platform/logging/consoleLogger.js +6 -0
  341. package/dist/solid/_internal/platform/settings/registry/defineSettings.js +48 -20
  342. package/dist/solid/_internal/platform/settings/registry/stateDbStore.js +29 -19
  343. package/dist/solid/_internal/platform/vendorErrors/index.js +4 -17
  344. package/dist/solid/_internal/platform/window/displayOwner.js +105 -114
  345. package/dist/solid/a11y/AriaAnnouncer.jsx +2 -3
  346. package/dist/solid/async/createGuardedListLoader.js +1 -1
  347. package/dist/solid/desktop/menu/MenuPanel.jsx +7 -7
  348. package/dist/solid/feedback/ErrorBoundary.jsx +7 -4
  349. package/dist/solid/feedback/Loader.jsx +1 -2
  350. package/dist/solid/feedback/createPreference.js +3 -2
  351. package/dist/solid/feedback/guidedInstallOutcome.js +1 -2
  352. package/dist/solid/feedback/preference.notifications.js +1 -2
  353. package/dist/solid/feedback/readFailureText.js +1 -2
  354. package/dist/solid/host/index.js +8 -16
  355. package/dist/solid/host/window.js +15 -22
  356. package/dist/solid/i18n/i18n.js +5 -6
  357. package/dist/solid/index.js +0 -1
  358. package/dist/solid/layout/createResizableSidebar.js +15 -23
  359. package/dist/solid/notifications/NotificationHost.jsx +21 -29
  360. package/dist/solid/notifications/NotificationItem.jsx +28 -104
  361. package/dist/solid/notifications/NotificationPanel.jsx +33 -44
  362. package/dist/solid/notifications/NotificationsCenter.jsx +22 -20
  363. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  364. package/dist/solid/notifications/catalogAdapter.js +61 -62
  365. package/dist/solid/notifications/createNotificationPreviewRuntime.js +29 -19
  366. package/dist/solid/notifications/customSoundCache.js +26 -21
  367. package/dist/solid/notifications/emailDigest.js +74 -86
  368. package/dist/solid/notifications/errorActionButtons.js +6 -11
  369. package/dist/solid/notifications/fireNotification.js +14 -19
  370. package/dist/solid/notifications/index.js +3 -12
  371. package/dist/solid/notifications/nativeEngine.js +6 -19
  372. package/dist/solid/notifications/notificationAnalytics.js +32 -38
  373. package/dist/solid/notifications/notificationAudio.js +77 -74
  374. package/dist/solid/notifications/notificationCardServices.js +34 -0
  375. package/dist/solid/notifications/notificationOverlayChannel.js +3 -3
  376. package/dist/solid/notifications/notificationOverlaySync.js +18 -23
  377. package/dist/solid/notifications/notificationService.js +135 -0
  378. package/dist/solid/notifications/notificationTimeline.js +117 -124
  379. package/dist/solid/notifications/notifications.notifications.js +3 -22
  380. package/dist/solid/notifications/toast.js +168 -213
  381. package/dist/solid/notifications/webhookDelivery.js +27 -53
  382. package/dist/solid/overlay/ConfirmDialog.jsx +14 -58
  383. package/dist/solid/overlay/command-palette/CommandPalette.jsx +3 -1
  384. package/dist/solid/overlay/command-palette/unifiedSearch/databaseObjectSearchContributor.js +26 -25
  385. package/dist/solid/overlay/command-palette/unifiedSearch/settingsSearchContributor.js +2 -7
  386. package/dist/solid/overlay/index.js +0 -3
  387. package/dist/solid/settings/index.js +1 -1
  388. package/dist/solid/tokens/index.js +1 -1
  389. package/dist/solid/tokens/palette/themeRegistry.js +20 -22
  390. package/dist/stateDbStore-CThsVch-.cjs +1 -0
  391. package/dist/stateDbStore-DHZFUIEt.js +57 -0
  392. package/dist/style.css +1 -1
  393. package/dist/tokens/index.cjs +1 -1
  394. package/dist/tokens/index.d.cts +1 -1
  395. package/dist/tokens/index.d.ts +1 -1
  396. package/dist/tokens/index.js +19 -20
  397. package/dist/tokens/palette/themeRegistry.d.cts +17 -22
  398. package/dist/tokens/palette/themeRegistry.d.ts +17 -22
  399. package/dist/{tooltipCoordinator-Zim5pWzk.js → tooltipCoordinator-BzxEyKhA.js} +2 -2
  400. package/dist/tooltipCoordinator-DslqMlsI.cjs +1 -0
  401. package/dist/tree/index.cjs +1 -1
  402. package/dist/tree/index.js +1 -1
  403. package/dist/ui.css +1 -1
  404. package/dist/{useFloatingDropdown-CfPEYRut.js → useFloatingDropdown-BN4J092P.js} +1 -1
  405. package/dist/{useFloatingDropdown-DcU7ozDg.cjs → useFloatingDropdown-D9OvEFAp.cjs} +1 -1
  406. package/dist/useListCommands-BO_XrRHj.js +38 -0
  407. package/dist/useListCommands-Dnm4ktP1.cjs +1 -0
  408. package/dist/useSettingsSubscription-DKjCwmRd.cjs +1 -0
  409. package/dist/{notification-CpDYN_iu.js → useSettingsSubscription-DLEk4k4j.js} +41 -32
  410. package/dist/window-CUK6x8Pj.js +36 -0
  411. package/dist/window-_BfSgFGO.cjs +1 -0
  412. package/dist/windowRegistry-CxXtP-iY.cjs +1 -0
  413. package/dist/windowRegistry-DeGmXt6W.js +20 -0
  414. package/package.json +1 -1
  415. package/dist/CommandPalette-DeEImZ8D.cjs +0 -2
  416. package/dist/CommandPalette-yqvM9AuU.js +0 -3897
  417. package/dist/DateRangePicker-7t4JKCp1.cjs +0 -9
  418. package/dist/GuidedTour-C_Lxe1t_.cjs +0 -21
  419. package/dist/GuidedTour-lsljVkPL.js +0 -11216
  420. package/dist/HostWindowContext-DqDeJmBP.cjs +0 -1
  421. package/dist/HostWindowContext-KL4U1qUv.js +0 -40
  422. package/dist/Modal-CJhd27dM.cjs +0 -1
  423. package/dist/PageSkeleton-SYSL4Adl.cjs +0 -30
  424. package/dist/Progress-B5YmNeyU.js +0 -56
  425. package/dist/Progress-BNy0wsJl.cjs +0 -1
  426. package/dist/StatusBarNotificationBell-B1bvE_SO.js +0 -2140
  427. package/dist/StatusBarNotificationBell-Cqo6cZbO.cjs +0 -4
  428. package/dist/ToggleButton-BmwDfsn4.cjs +0 -1
  429. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.cts +0 -20
  430. package/dist/_internal/app/contexts/WorkspaceTabsContext.d.ts +0 -20
  431. package/dist/_internal/app/settings/theme/appThemeChange.d.cts +0 -20
  432. package/dist/_internal/app/settings/theme/appThemeChange.d.ts +0 -20
  433. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.cts +0 -6
  434. package/dist/_internal/app/settings/ui/shell/openSettingsModal.d.ts +0 -6
  435. package/dist/_internal/base/listenerDispatch.d.cts +0 -14
  436. package/dist/_internal/base/listenerDispatch.d.ts +0 -14
  437. package/dist/_internal/contract/appName.d.cts +0 -10
  438. package/dist/_internal/contract/appName.d.ts +0 -10
  439. package/dist/_internal/contract/hostText.d.cts +0 -25
  440. package/dist/_internal/contract/hostText.d.ts +0 -25
  441. package/dist/_internal/platform/logging/rendererLogging.d.cts +0 -65
  442. package/dist/_internal/platform/logging/rendererLogging.d.ts +0 -65
  443. package/dist/_internal/platform/settings/preferencesCache.d.cts +0 -162
  444. package/dist/_internal/platform/settings/preferencesCache.d.ts +0 -162
  445. package/dist/appThemeDerivation-DmKbTiFi.cjs +0 -1
  446. package/dist/catalogNotify-BcY9oqVy.js +0 -1223
  447. package/dist/catalogNotify-DacJjC-p.cjs +0 -27
  448. package/dist/createResizableSidebar-BIhyo5zN.cjs +0 -1
  449. package/dist/createResizableSidebar-Cqv-1IXG.js +0 -461
  450. package/dist/defineSettings-CcYXt2Jf.js +0 -391
  451. package/dist/defineSettings-yHQdUwxI.cjs +0 -1
  452. package/dist/descriptor-Dmch-3AF.cjs +0 -1
  453. package/dist/dialogFocusRestore-B4ggeVAM.js +0 -64
  454. package/dist/dialogFocusRestore-BcMPrbig.cjs +0 -1
  455. package/dist/displayOwner-eYQHHvjt.cjs +0 -1
  456. package/dist/displayOwner-mT80Oyi-.js +0 -75
  457. package/dist/feedback/preference.notifications.samples.d.cts +0 -1
  458. package/dist/feedback/preference.notifications.samples.d.ts +0 -1
  459. package/dist/focusModality-BNjYldd9.cjs +0 -1
  460. package/dist/focusModality-DxudpWPs.js +0 -135
  461. package/dist/format-BS7oDguE.js +0 -298
  462. package/dist/format-CuANkXXB.cjs +0 -1
  463. package/dist/i18n-DXXArz-m.cjs +0 -4
  464. package/dist/keys-BeeC5_RZ.cjs +0 -1
  465. package/dist/mainRealmDom-CkoRyNhZ.cjs +0 -1
  466. package/dist/mainRealmDom-kEStLHIY.js +0 -102
  467. package/dist/menuFavorites-BmdM_qV5.js +0 -69
  468. package/dist/menuFavorites-DoDFvtlQ.cjs +0 -1
  469. package/dist/notification-DygvQB_o.cjs +0 -1
  470. package/dist/notificationSuppressions-DGfo2QKG.cjs +0 -1
  471. package/dist/notificationSuppressions-ddyK85cB.js +0 -430
  472. package/dist/notifications/copyToClipboard.d.cts +0 -6
  473. package/dist/notifications/copyToClipboard.d.ts +0 -6
  474. package/dist/notifications/createCopyFlash.d.cts +0 -17
  475. package/dist/notifications/createCopyFlash.d.ts +0 -17
  476. package/dist/notifications/notificationDisplayOwner.d.cts +0 -27
  477. package/dist/notifications/notificationDisplayOwner.d.ts +0 -27
  478. package/dist/notifications/notificationRepeaterEntryFactory.d.cts +0 -36
  479. package/dist/notifications/notificationRepeaterEntryFactory.d.ts +0 -36
  480. package/dist/notifications/notifications.notifications.samples.d.cts +0 -1
  481. package/dist/notifications/notifications.notifications.samples.d.ts +0 -1
  482. package/dist/notifications/persistWithRollbackOnFailure.d.cts +0 -18
  483. package/dist/notifications/persistWithRollbackOnFailure.d.ts +0 -18
  484. package/dist/notifications/startNotificationSchedulers.d.cts +0 -2
  485. package/dist/notifications/startNotificationSchedulers.d.ts +0 -2
  486. package/dist/notifications/startNotificationSettingsReactions.d.cts +0 -46
  487. package/dist/notifications/startNotificationSettingsReactions.d.ts +0 -46
  488. package/dist/overlay/ToastHost.d.cts +0 -7
  489. package/dist/overlay/ToastHost.d.ts +0 -7
  490. package/dist/pageTourState-CIr8ockR.js +0 -92
  491. package/dist/pageTourState-D8Uapyft.cjs +0 -1
  492. package/dist/preferencesCache-Bow6TxP1.js +0 -65
  493. package/dist/preferencesCache-D7mm43_n.cjs +0 -1
  494. package/dist/rendererLogging-Dt5FZ8mq.cjs +0 -7
  495. package/dist/rendererLogging-gAhiHWkA.js +0 -822
  496. package/dist/server/CommandPalette-C8treS8g.cjs +0 -1
  497. package/dist/server/CommandPalette-Dslsq5Ez.js +0 -3155
  498. package/dist/server/DateRangePicker-CDKi9BAf.cjs +0 -9
  499. package/dist/server/GuidedTour-B3T9rAPX.cjs +0 -20
  500. package/dist/server/GuidedTour-DSoSZZby.js +0 -10983
  501. package/dist/server/HostWindowContext-DqDeJmBP.cjs +0 -1
  502. package/dist/server/HostWindowContext-KL4U1qUv.js +0 -40
  503. package/dist/server/Modal-CCUwQYso.cjs +0 -1
  504. package/dist/server/PageSkeleton-DdpXfZoC.cjs +0 -30
  505. package/dist/server/Progress-CRbj6nEy.cjs +0 -1
  506. package/dist/server/Progress-nsDy6clG.js +0 -41
  507. package/dist/server/StatusBarNotificationBell-C64Odn2C.js +0 -1974
  508. package/dist/server/StatusBarNotificationBell-DY0Q27su.cjs +0 -4
  509. package/dist/server/ToggleButton-1bNYk35x.cjs +0 -1
  510. package/dist/server/VpTerminal-Bpw-d9wD.js +0 -186
  511. package/dist/server/VpTerminal-C-U_dN_x.cjs +0 -1
  512. package/dist/server/VpTrash-CagiU2Uj.cjs +0 -1
  513. package/dist/server/VpTrash-DVBfts9_.js +0 -116
  514. package/dist/server/appThemeDerivation-DmKbTiFi.cjs +0 -1
  515. package/dist/server/catalogNotify-MCW2sa2e.cjs +0 -27
  516. package/dist/server/catalogNotify-s3YymAe8.js +0 -1261
  517. package/dist/server/createResizableSidebar-MIzUlfdd.js +0 -299
  518. package/dist/server/createResizableSidebar-TdxLuiY8.cjs +0 -1
  519. package/dist/server/defineSettings-CcYXt2Jf.js +0 -391
  520. package/dist/server/defineSettings-yHQdUwxI.cjs +0 -1
  521. package/dist/server/descriptor-DAyyoF-I.cjs +0 -1
  522. package/dist/server/dialogFocusRestore-B4ggeVAM.js +0 -64
  523. package/dist/server/dialogFocusRestore-BcMPrbig.cjs +0 -1
  524. package/dist/server/displayOwner-eYQHHvjt.cjs +0 -1
  525. package/dist/server/displayOwner-mT80Oyi-.js +0 -75
  526. package/dist/server/focusModality-BKgJWRlC.cjs +0 -1
  527. package/dist/server/format-WfZycMBL.cjs +0 -1
  528. package/dist/server/i18n-DXXArz-m.cjs +0 -4
  529. package/dist/server/index-DlQYWckZ.cjs +0 -1
  530. package/dist/server/mainRealmDom-BCL1p_q6.cjs +0 -1
  531. package/dist/server/mainRealmDom-Dk0xb5Gj.js +0 -67
  532. package/dist/server/menuFavorites-BmdM_qV5.js +0 -69
  533. package/dist/server/menuFavorites-DoDFvtlQ.cjs +0 -1
  534. package/dist/server/notification-DygvQB_o.cjs +0 -1
  535. package/dist/server/notificationSuppressions-B-LKq9ZU.js +0 -391
  536. package/dist/server/notificationSuppressions-Dcc2WFBZ.cjs +0 -1
  537. package/dist/server/pageTourState-CIr8ockR.js +0 -92
  538. package/dist/server/pageTourState-D8Uapyft.cjs +0 -1
  539. package/dist/server/preferencesCache-Bow6TxP1.js +0 -65
  540. package/dist/server/preferencesCache-D7mm43_n.cjs +0 -1
  541. package/dist/server/rendererLogging-Dt5FZ8mq.cjs +0 -7
  542. package/dist/server/rendererLogging-gAhiHWkA.js +0 -822
  543. package/dist/server/settingsSearchContributor-CRZsl2Q_.js +0 -199
  544. package/dist/server/settingsSearchContributor-DH8UFpp2.cjs +0 -1
  545. package/dist/server/stateDbStore-Ds3zJ4cd.js +0 -47
  546. package/dist/server/stateDbStore-THFfFGa0.cjs +0 -1
  547. package/dist/server/useListCommands-Bf7aOTXZ.js +0 -61
  548. package/dist/server/useListCommands-ucngC3t4.cjs +0 -1
  549. package/dist/server/useSettingsSubscription-cu943hND.js +0 -11
  550. package/dist/server/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  551. package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  552. package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  553. package/dist/server/windowRegistry-Bk5lXIVd.js +0 -62
  554. package/dist/server/windowRegistry-CGvOBUsw.cjs +0 -1
  555. package/dist/settingsSearchContributor-DWP5dwn3.js +0 -199
  556. package/dist/settingsSearchContributor-Dltbs1j_.cjs +0 -1
  557. package/dist/solid/_internal/app/contexts/WorkspaceTabsContext.js +0 -10
  558. package/dist/solid/_internal/app/settings/theme/appThemeChange.js +0 -5
  559. package/dist/solid/_internal/app/settings/ui/shell/openSettingsModal.js +0 -15
  560. package/dist/solid/_internal/base/listenerDispatch.js +0 -12
  561. package/dist/solid/_internal/contract/appName.js +0 -7
  562. package/dist/solid/_internal/contract/hostText.js +0 -15
  563. package/dist/solid/_internal/platform/logging/rendererLogging.js +0 -42
  564. package/dist/solid/_internal/platform/settings/preferencesCache.js +0 -329
  565. package/dist/solid/feedback/preference.notifications.samples.js +0 -5
  566. package/dist/solid/notifications/copyToClipboard.js +0 -21
  567. package/dist/solid/notifications/createCopyFlash.js +0 -26
  568. package/dist/solid/notifications/notificationDisplayOwner.js +0 -1
  569. package/dist/solid/notifications/notificationRepeaterEntryFactory.js +0 -20
  570. package/dist/solid/notifications/notifications.notifications.samples.js +0 -14
  571. package/dist/solid/notifications/persistWithRollbackOnFailure.js +0 -11
  572. package/dist/solid/notifications/startNotificationSchedulers.js +0 -8
  573. package/dist/solid/notifications/startNotificationSettingsReactions.js +0 -22
  574. package/dist/solid/overlay/ToastHost.jsx +0 -1
  575. package/dist/stateDbStore-Ds3zJ4cd.js +0 -47
  576. package/dist/stateDbStore-THFfFGa0.cjs +0 -1
  577. package/dist/tooltipCoordinator-Causlcgt.cjs +0 -1
  578. package/dist/useListCommands-Bf7aOTXZ.js +0 -61
  579. package/dist/useListCommands-ucngC3t4.cjs +0 -1
  580. package/dist/useSettingsSubscription-cu943hND.js +0 -11
  581. package/dist/useSettingsSubscription-vlMrNNH9.cjs +0 -1
  582. package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +0 -1
  583. package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +0 -89
  584. package/dist/windowRegistry-Bk5lXIVd.js +0 -62
  585. package/dist/windowRegistry-CGvOBUsw.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const O=require("./defineSettings-yHQdUwxI.cjs"),b=1e3,k=6e4;function w(t,n){if(t.trim()==="")return n;const o=Number(t);return Number.isFinite(o)?Math.min(k,Math.max(b,o)):n}const T={notificationsEnabled:!0,toastPosition:"bottom-right",showSuccessToasts:!0,soundOnQueryCompletion:!1,longRunningQueryThresholdMs:5e3,showLongRunningNotification:!0,mutedSources:[],dontShowAgainKeys:[],remindersUntil:[],notificationWidth:450,maxVisibleNotifications:3,markdownEnabled:!1,infoDurationMs:1e4,successDurationMs:6e3,warningDurationMs:12e3,errorDurationMs:15e3,errorsAlwaysSticky:!1,warningsAlwaysSticky:!1,doNotDisturb:!1,dndBlocksUrgent:!1,urgentRoutesToCenterOnly:!1,soundOnInfo:!1,soundOnSuccess:!1,soundOnWarning:!1,soundOnError:!1,pauseTimerWhileHidden:!0,vendorCodesAreUrgent:!1,remindLaterEnabled:!0,showAdvancedSettings:!1,osNativeEnabled:!1,osNativeOnlyWhenUnfocused:!0,osNativeMinSeverity:"warning",osNativeUrgentAlways:!0,badgeCountEnabled:!0,badgeCountMax:99,quietHoursEnabled:!1,quietHoursStart:"22:00",quietHoursEnd:"08:00",quietHoursWeekdays:[0,1,2,3,4,5,6],quietHoursBlocksUrgent:!1,quietHoursMutesSounds:!0,customSoundInfo:"",customSoundSuccess:"",customSoundWarning:"",customSoundError:"",webhooks:[],emailDigestEnabled:!1,emailDigestSmtpHost:"",emailDigestSmtpPort:587,emailDigestSmtpSecure:!1,emailDigestSmtpUser:"",emailDigestSmtpPass:"",emailDigestFrom:"",emailDigestTo:"",emailDigestSchedule:"daily-9am",emailDigestMinSeverity:"warning",timelineGroupingEnabled:!1,timelineGroupBy:"source-severity",notificationRules:[],animationDuration:"normal",reduceMotion:!1},H="app-notification-settings-change",I=["bottom-right","bottom-left","top-right","top-left"],g=0,y=12e4,e=T;function v(t,n){return Array.isArray(t)?Array.from(new Set(t.filter(o=>typeof o=="string"&&o.length>0))):[...n]}function R(t,n){var u,d,l,a,s,f,r,p,D,N,A;if(!Array.isArray(t))return[...n];const o=[];for(const S of t){if(typeof S!="object"||S===null)continue;const i=S;typeof i.id=="string"&&o.push({id:i.id,name:typeof i.name=="string"?i.name:"Rule",enabled:typeof i.enabled=="boolean"?i.enabled:!0,conditions:(()=>{var h,E,M;const c={};return typeof((h=i.conditions)==null?void 0:h.source)=="string"&&(c.source=i.conditions.source),Array.isArray((E=i.conditions)==null?void 0:E.severities)&&(c.severities=i.conditions.severities.filter(m=>m==="info"||m==="success"||m==="warning"||m==="error")),typeof((M=i.conditions)==null?void 0:M.titleRegex)=="string"&&(c.titleRegex=i.conditions.titleRegex),c})(),actions:{...((u=i.actions)==null?void 0:u.setSeverity)==="info"||((d=i.actions)==null?void 0:d.setSeverity)==="success"||((l=i.actions)==null?void 0:l.setSeverity)==="warning"||((a=i.actions)==null?void 0:a.setSeverity)==="error"?{setSeverity:i.actions.setSeverity}:{},...((s=i.actions)==null?void 0:s.setPriority)==="urgent"||((f=i.actions)==null?void 0:f.setPriority)==="default"||((r=i.actions)==null?void 0:r.setPriority)==="optional"||((p=i.actions)==null?void 0:p.setPriority)==="silent"||((D=i.actions)==null?void 0:D.setPriority)==="acknowledgment-required"?{setPriority:i.actions.setPriority}:{},...typeof((N=i.actions)==null?void 0:N.addPrefix)=="string"?{addPrefix:i.actions.addPrefix}:{},...typeof((A=i.actions)==null?void 0:A.suppress)=="boolean"?{suppress:i.actions.suppress}:{}}})}return o}function U(t,n){var u,d,l;if(!Array.isArray(t))return[...n];const o=[];for(const a of t){if(typeof a!="object"||a===null)continue;const s=a;if(typeof s.id!="string")continue;const f=s.type==="slack"||s.type==="discord"||s.type==="generic"?s.type:"generic";o.push({id:s.id,name:typeof s.name=="string"?s.name:"Webhook",type:f,url:"",enabled:typeof s.enabled=="boolean"?s.enabled:!0,filters:{severities:Array.isArray((u=s.filters)==null?void 0:u.severities)?s.filters.severities.filter(r=>r==="info"||r==="success"||r==="warning"||r==="error"):[],priorities:Array.isArray((d=s.filters)==null?void 0:d.priorities)?s.filters.priorities.filter(r=>r==="urgent"||r==="default"||r==="optional"||r==="silent"):[],sources:Array.isArray((l=s.filters)==null?void 0:l.sources)?s.filters.sources.filter(r=>typeof r=="string"):[]}})}return o}const _=O.defineSettings({key:"notificationSettings",changeEvent:H,fields:{notificationsEnabled:{kind:"bool",default:e.notificationsEnabled},toastPosition:{kind:"enum",values:I,default:e.toastPosition},showSuccessToasts:{kind:"bool",default:e.showSuccessToasts},soundOnQueryCompletion:{kind:"bool",default:e.soundOnQueryCompletion},longRunningQueryThresholdMs:{kind:"int",min:b,max:k,default:e.longRunningQueryThresholdMs},showLongRunningNotification:{kind:"bool",default:e.showLongRunningNotification},mutedSources:{kind:"custom",default:e.mutedSources,normalize:(t,n)=>v(t,n)},dontShowAgainKeys:{kind:"custom",default:e.dontShowAgainKeys,normalize:(t,n)=>v(t,n)},remindersUntil:{kind:"custom",default:e.remindersUntil,normalize:(t,n)=>Array.isArray(t)?t.filter(o=>typeof o=="object"&&o!==null&&typeof o.key=="string"&&typeof o.remindAt=="number").filter(o=>o.remindAt>Date.now()):[...n]},notificationWidth:{kind:"int",min:320,max:700,default:e.notificationWidth},maxVisibleNotifications:{kind:"int",min:1,max:8,default:e.maxVisibleNotifications},markdownEnabled:{kind:"bool",default:e.markdownEnabled},infoDurationMs:{kind:"int",min:g,max:y,default:e.infoDurationMs},successDurationMs:{kind:"int",min:g,max:y,default:e.successDurationMs},warningDurationMs:{kind:"int",min:g,max:y,default:e.warningDurationMs},errorDurationMs:{kind:"int",min:g,max:y,default:e.errorDurationMs},errorsAlwaysSticky:{kind:"bool",default:e.errorsAlwaysSticky},warningsAlwaysSticky:{kind:"bool",default:e.warningsAlwaysSticky},doNotDisturb:{kind:"bool",default:e.doNotDisturb},dndBlocksUrgent:{kind:"bool",default:e.dndBlocksUrgent},urgentRoutesToCenterOnly:{kind:"bool",default:e.urgentRoutesToCenterOnly},soundOnInfo:{kind:"bool",default:e.soundOnInfo},soundOnSuccess:{kind:"bool",default:e.soundOnSuccess},soundOnWarning:{kind:"bool",default:e.soundOnWarning},soundOnError:{kind:"bool",default:e.soundOnError},pauseTimerWhileHidden:{kind:"bool",default:e.pauseTimerWhileHidden},vendorCodesAreUrgent:{kind:"bool",default:e.vendorCodesAreUrgent},remindLaterEnabled:{kind:"bool",default:e.remindLaterEnabled},showAdvancedSettings:{kind:"bool",default:e.showAdvancedSettings},osNativeEnabled:{kind:"bool",default:e.osNativeEnabled},osNativeOnlyWhenUnfocused:{kind:"bool",default:e.osNativeOnlyWhenUnfocused},osNativeMinSeverity:{kind:"enum",values:["info","success","warning","error"],default:e.osNativeMinSeverity},osNativeUrgentAlways:{kind:"bool",default:e.osNativeUrgentAlways},badgeCountEnabled:{kind:"bool",default:e.badgeCountEnabled},badgeCountMax:{kind:"int",min:1,max:9999,default:e.badgeCountMax},quietHoursEnabled:{kind:"bool",default:e.quietHoursEnabled},quietHoursStart:{kind:"custom",default:e.quietHoursStart,normalize:(t,n)=>typeof t=="string"&&/^\d{2}:\d{2}$/.test(t)?t:n},quietHoursEnd:{kind:"custom",default:e.quietHoursEnd,normalize:(t,n)=>typeof t=="string"&&/^\d{2}:\d{2}$/.test(t)?t:n},quietHoursWeekdays:{kind:"custom",default:e.quietHoursWeekdays,normalize:(t,n)=>Array.isArray(t)?Array.from(new Set(t.filter(o=>typeof o=="number"&&Number.isInteger(o)&&o>=0&&o<=6))).sort():[...n]},quietHoursBlocksUrgent:{kind:"bool",default:e.quietHoursBlocksUrgent},quietHoursMutesSounds:{kind:"bool",default:e.quietHoursMutesSounds},customSoundInfo:{kind:"string",default:e.customSoundInfo},customSoundSuccess:{kind:"string",default:e.customSoundSuccess},customSoundWarning:{kind:"string",default:e.customSoundWarning},customSoundError:{kind:"string",default:e.customSoundError},webhooks:{kind:"custom",default:e.webhooks,normalize:(t,n)=>U(t,n)},emailDigestEnabled:{kind:"bool",default:e.emailDigestEnabled},emailDigestSmtpHost:{kind:"string",default:e.emailDigestSmtpHost},emailDigestSmtpPort:{kind:"int",min:1,max:65535,default:e.emailDigestSmtpPort},emailDigestSmtpSecure:{kind:"bool",default:e.emailDigestSmtpSecure},emailDigestSmtpUser:{kind:"string",default:e.emailDigestSmtpUser},emailDigestSmtpPass:{kind:"string",default:"",secret:!0},emailDigestFrom:{kind:"string",default:e.emailDigestFrom},emailDigestTo:{kind:"string",default:e.emailDigestTo},emailDigestSchedule:{kind:"enum",values:["hourly","daily-9am","daily-5pm","weekly-mon-9am"],default:e.emailDigestSchedule},emailDigestMinSeverity:{kind:"enum",values:["info","success","warning","error"],default:e.emailDigestMinSeverity},timelineGroupingEnabled:{kind:"bool",default:e.timelineGroupingEnabled},timelineGroupBy:{kind:"enum",values:["source","source-severity"],default:e.timelineGroupBy},notificationRules:{kind:"custom",default:e.notificationRules,normalize:(t,n)=>R(t,n)},animationDuration:{kind:"enum",values:["fast","normal","slow"],default:e.animationDuration},reduceMotion:{kind:"bool",default:e.reduceMotion}}});exports.DEFAULT_NOTIFICATION_SETTINGS=T;exports.MAX_LONG_RUNNING_THRESHOLD_MS=k;exports.MIN_LONG_RUNNING_THRESHOLD_MS=b;exports.notificationSettings=_;exports.parseLongRunningThresholdMs=w;
@@ -1 +0,0 @@
1
- "use strict";const B=require("./rendererLogging-Dt5FZ8mq.cjs"),s=require("./notification-DygvQB_o.cjs"),P=require("./bugIndicatingError-D2X5Hfgg.cjs"),k=new WeakMap;function ce(e,n){return k.set(e,[...k.get(e)??[],...n]),e}function O(e){return typeof e=="object"&&e!==null?k.get(e)??[]:[]}const V={text:(e,n)=>B.toErrorMessage(e,n),actions:e=>O(e)};let $=V;function ae(e){$=e??V}function C(){return $}function ue(e,n){return C().text(e,n)}function de(e){return C().actions(e)}const x=B.getLogger("ElectronBridge");let l={};function fe(e){l=e??{}}const le=new Set(["http:","https:","mailto:"]);function ge(e){let n;try{n=new URL(e).protocol}catch{x.warn("openExternal: unparseable URL refused",{url:e});return}if(!le.has(n)){x.warn("openExternal: protocol refused",{url:e,protocol:n});return}if(l.openExternal){Promise.resolve(l.openExternal(e)).catch(o=>{x.warn("openExternal: host refused",{url:e,error:o})});return}typeof window<"u"&&window.open(e,"_blank","noopener,noreferrer")}function me(e){l.osNotify&&Promise.resolve(l.osNotify(e)).catch(()=>{})}function we(e){l.setBadgeCount&&Promise.resolve(l.setBadgeCount(e)).catch(()=>{})}async function Se(e){if(!l.readAudioAsDataUrl)return null;try{return await l.readAudioAsDataUrl(e)}catch(n){return x.warn("custom sound could not be read",{filePath:e,error:n}),null}}const pe={showSaveDialog:async e=>({filePath:(e==null?void 0:e.defaultPath)??"export.txt"}),writeFile:async(e,n)=>{if(typeof document>"u")return;const o=e.split(/[\\/]/).pop()||"export.txt",i=URL.createObjectURL(new Blob([n],{type:"text/plain;charset=utf-8"})),d=document.createElement("a");d.href=i,d.download=o,d.rel="noopener",d.click(),setTimeout(()=>URL.revokeObjectURL(i),0)}};function ye(){return l.fs??pe}function he(e){var n;if(e)return(n=l.notificationOverlay)==null?void 0:n.call(l,e)}const L=new Map;function T(e){let n=L.get(e);return n||(n={source:e,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},L.set(e,n)),n}function Ee(e,n,o){const i=T(e);i.total+=1,n&&(i.shown+=1),o&&(i.muted+=1)}function Ae(e){T(e).clicked+=1}function ve(e){T(e).dismissed+=1}function xe(e){T(e).autoFaded+=1}const Ne=B.getLogger("NativeNotificationEngine");function Te(e){return e.id===""}function _(e,n=s.notificationSettings.get()){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return n.infoDurationMs;case"success":return n.successDurationMs;case"warning":return n.warningDurationMs;case"error":return n.errorDurationMs}}function q(e,n=s.notificationSettings.get()){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&n.errorsAlwaysSticky||e.severity==="warning"&&n.warningsAlwaysSticky)return!0;const o=e.durationMs;return o!==void 0&&(!Number.isFinite(o)||o<=0)}function j(e={}){const n=e.getSettings??(()=>s.notificationSettings.get()),o=e.now??(()=>Date.now()),i=e.setTimeout??((t,r)=>window.setTimeout(t,r)),d=e.clearTimeout??(t=>window.clearTimeout(t)),w=e.recordAutoFade??xe,F=e.warn??((t,r)=>Ne.warn(t,r)),u=new Map,v=new Set,y=new Map;function b(){return[...u.values()].sort((t,r)=>t.createdAt-r.createdAt)}function U(t){const r=n();if(!r.pauseTimerWhileHidden)return!1;const a=b(),m=Math.max(1,r.maxVisibleNotifications);if(a.length<=m)return!1;const c=a.length-m,f=a.findIndex(D=>D.id===t);return f>=0&&f<c}function W(){for(const t of u.keys()){if(y.has(t)){U(t)&&S(t);continue}p(t)}}function g(){const t=b();for(const r of Array.from(v))try{r(t)}catch(a){F("Bildirim motoru dinleyicisi firlatti:",a)}W()}function R(t){return!!(q(t,n())||t.hovered||t.focused)}function G(t){return _(t,n())}function S(t){const r=y.get(t);r!==void 0&&(d(r),y.delete(t))}function p(t){S(t);const r=u.get(t);if(!r||R(r)||U(t))return;const a=G(r);if(!Number.isFinite(a)||a<=0)return;const m=i(()=>{y.delete(t);const c=u.get(t);c&&(R(c)||(w(c.source??"general"),u.delete(t),g()))},a);y.set(t,m)}let H=0;function Q(){return H+=1,`n-${o().toString(36)}-${H.toString(36)}`}const X=800,z=3,E=[];function J(){const t=o();for(;E.length>0&&(E[0]??0)<t-X;)E.shift();return E.length>=z}function Y(){E.push(o())}function I(t){return!t||t.length===0?"":t.filter(r=>r.primary).map(r=>`${r.id??""}::${r.label}`).sort().join("|")}function Z(t){const r=t.source??"",a=I(t.actions);for(const[m,c]of u)if((c.source??"")===r&&c.title===t.title&&I(c.actions)===a)return m;return null}function ee(t){const r=t.id,a=r??Z(t),m=a===null;if(m&&!r&&J())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{}};const c=a??Q(),f=u.get(c),D={...t,id:c,createdAt:(f==null?void 0:f.createdAt)??o(),expanded:(f==null?void 0:f.expanded)??!1,hovered:(f==null?void 0:f.hovered)??!1,focused:(f==null?void 0:f.focused)??!1};return u.set(c,D),m&&Y(),g(),p(c),{id:c,update(K){const A=u.get(c);A&&(u.set(c,{...A,...K}),g(),p(c))},setProgress(K){const A=u.get(c);A&&(u.set(c,{...A,progress:K}),g(),p(c))},close(){S(c),u.delete(c)&&g()}}}function te(t){return v.add(t),t(b()),()=>{v.delete(t)}}function ne(t,r){const a=u.get(t);!a||a.hovered===r||(u.set(t,{...a,hovered:r}),g(),r?S(t):p(t))}function re(t,r){const a=u.get(t);!a||a.focused===r||(u.set(t,{...a,focused:r}),g(),r?S(t):p(t))}function oe(t){const r=u.get(t);r&&(u.set(t,{...r,expanded:!r.expanded}),g(),p(t))}function ie(t){S(t),u.delete(t)&&g()}function se(){for(const t of y.keys())S(t);u.clear(),v.clear()}return{notify:ee,subscribe:te,setHover:ne,setFocus:re,toggleExpanded:oe,close:ie,dispose:se}}const h=j(),Fe=h.notify,be=h.subscribe,De=h.setHover,Ke=h.setFocus,ke=h.toggleExpanded,Be=h.close;let N=null;function Me(e){N=e}function Ue(){return N!==null}function M(){if(N===null)throw new P.BugIndicatingError("[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup.");return N}function Re(e){const n=M().errorHelpersFor(e.vendorId);return n===null?null:{vendorId:e.vendorId,code:e.code,helpers:n}}function He(e,n,o){const i=M().errorHelpersFor(e);if(i===null)throw new P.BugIndicatingError(`[vendorErrors] unknown preview vendor: ${e}`);return{message:`${i.formatCode(n)}: ${o}`,vendorError:{vendorId:e,code:n}}}function Ie(e){return`https://www.google.com/search?q=${encodeURIComponent(e)}`}function Le(e,n){return`__remind:${e}:${n}`}function Pe(e,n,o){const{priority:i}=e,d=e.recordTimeline!==!1;if(!n.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(o.dismissed)return{showToast:!1,recordTimeline:!1};if(o.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(i==="silent")return{showToast:!1,recordTimeline:d};const w=i==="urgent"||i==="acknowledgment-required";return n.doNotDisturb&&(!w||i==="urgent"&&n.dndBlocksUrgent)?{showToast:!1,recordTimeline:d}:o.inQuietHours&&(!w||i==="urgent"&&n.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:d}:w?n.urgentRoutesToCenterOnly&&i==="urgent"?{showToast:!1,recordTimeline:d}:{showToast:!0,recordTimeline:d}:o.sourceMuted?{showToast:!1,recordTimeline:d}:{showToast:!0,recordTimeline:d}}function Oe(e){return s.notificationSettings.get().mutedSources.includes(e)}function Ve(e){return s.notificationSettings.get().dontShowAgainKeys.includes(e)}function $e(e){const n=Date.now();return s.notificationSettings.get().remindersUntil.some(i=>i.key===e&&i.remindAt>n)}async function Ce(e,n){if(!e||n<=0)return;const o=s.notificationSettings.get(),i=Date.now()+n,w=[...o.remindersUntil.filter(F=>F.key!==e),{key:e,remindAt:i}];s.notificationSettings.applyFromBroadcast({...o,remindersUntil:w}),await s.notificationSettings.update({...o,remindersUntil:w})}async function _e(e,n){const o=s.notificationSettings.get(),i=n?Array.from(new Set([...o.mutedSources,e])):o.mutedSources.filter(d=>d!==e);s.notificationSettings.applyFromBroadcast({...o,mutedSources:i}),await s.notificationSettings.update({...o,mutedSources:i})}async function qe(e){const n=s.notificationSettings.get();if(n.dontShowAgainKeys.includes(e))return;const o=[...n.dontShowAgainKeys,e];s.notificationSettings.applyFromBroadcast({...n,dontShowAgainKeys:o}),await s.notificationSettings.update({...n,dontShowAgainKeys:o})}async function je(e){const n=s.notificationSettings.get();if(!n.dontShowAgainKeys.includes(e))return;const o=n.dontShowAgainKeys.filter(i=>i!==e);s.notificationSettings.applyFromBroadcast({...n,dontShowAgainKeys:o}),await s.notificationSettings.update({...n,dontShowAgainKeys:o})}async function We(){const e=s.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(s.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await s.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Ge(){const e=s.notificationSettings.get();e.mutedSources.length!==0&&(s.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await s.notificationSettings.update({...e,mutedSources:[]}))}exports.attachedErrorActions=O;exports.closeNotification=Be;exports.configureDesktopBridge=fe;exports.createNativeNotificationEngine=j;exports.createVendorErrorPreview=He;exports.decideFilter=Pe;exports.deriveImplicitRemindKey=Le;exports.dismissKey=qe;exports.errorActions=de;exports.errorText=ue;exports.getFsService=ye;exports.getGoogleSearchUrl=Ie;exports.getVendorErrorSource=M;exports.installVendorErrorSource=Me;exports.isKeyDismissed=Ve;exports.isKeyRemindSuppressed=$e;exports.isNotificationSticky=q;exports.isSourceMuted=Oe;exports.isSpamDropHandle=Te;exports.isVendorErrorSourceInstalled=Ue;exports.notificationOverlayBridge=he;exports.notify=Fe;exports.openExternal=ge;exports.osNotify=me;exports.provideHostErrorPresenter=ae;exports.readAudioAsDataUrl=Se;exports.recordClick=Ae;exports.recordDismiss=ve;exports.recordFire=Ee;exports.remindLater=Ce;exports.resolveNotificationDuration=_;exports.resolveVendorError=Re;exports.restoreAllKeys=We;exports.restoreKey=je;exports.setNotificationFocus=Ke;exports.setNotificationHover=De;exports.setOsBadgeCount=we;exports.setSourceMuted=_e;exports.subscribeNotifications=be;exports.toggleNotificationExpanded=ke;exports.unmuteAllSources=Ge;exports.withErrorActions=ce;
@@ -1,430 +0,0 @@
1
- import { t as re, g as L } from "./rendererLogging-gAhiHWkA.js";
2
- import { n as s } from "./notification-CpDYN_iu.js";
3
- import { B as I } from "./bugIndicatingError-h3J5qkL6.js";
4
- const M = /* @__PURE__ */ new WeakMap();
5
- function we(e, n) {
6
- return M.set(e, [...M.get(e) ?? [], ...n]), e;
7
- }
8
- function oe(e) {
9
- return typeof e == "object" && e !== null ? M.get(e) ?? [] : [];
10
- }
11
- const P = {
12
- text: (e, n) => re(e, n),
13
- actions: (e) => oe(e)
14
- };
15
- let O = P;
16
- function pe(e) {
17
- O = e ?? P;
18
- }
19
- function $() {
20
- return O;
21
- }
22
- function he(e, n) {
23
- return $().text(e, n);
24
- }
25
- function ye(e) {
26
- return $().actions(e);
27
- }
28
- const x = L("ElectronBridge");
29
- let l = {};
30
- function Se(e) {
31
- l = e ?? {};
32
- }
33
- const ie = /* @__PURE__ */ new Set([
34
- "http:",
35
- "https:",
36
- "mailto:"
37
- ]);
38
- function Ae(e) {
39
- let n;
40
- try {
41
- n = new URL(e).protocol;
42
- } catch {
43
- x.warn("openExternal: unparseable URL refused", { url: e });
44
- return;
45
- }
46
- if (!ie.has(n)) {
47
- x.warn("openExternal: protocol refused", { url: e, protocol: n });
48
- return;
49
- }
50
- if (l.openExternal) {
51
- Promise.resolve(l.openExternal(e)).catch((o) => {
52
- x.warn("openExternal: host refused", { url: e, error: o });
53
- });
54
- return;
55
- }
56
- typeof window < "u" && window.open(e, "_blank", "noopener,noreferrer");
57
- }
58
- function ve(e) {
59
- l.osNotify && Promise.resolve(l.osNotify(e)).catch(() => {
60
- });
61
- }
62
- function Ee(e) {
63
- l.setBadgeCount && Promise.resolve(l.setBadgeCount(e)).catch(() => {
64
- });
65
- }
66
- async function xe(e) {
67
- if (!l.readAudioAsDataUrl) return null;
68
- try {
69
- return await l.readAudioAsDataUrl(e);
70
- } catch (n) {
71
- return x.warn("custom sound could not be read", { filePath: e, error: n }), null;
72
- }
73
- }
74
- const se = {
75
- // The browser cannot show a native save dialog; the chosen name is the default one and
76
- // the file is offered as a download.
77
- showSaveDialog: async (e) => ({ filePath: (e == null ? void 0 : e.defaultPath) ?? "export.txt" }),
78
- writeFile: async (e, n) => {
79
- if (typeof document > "u") return;
80
- const o = e.split(/[\\/]/).pop() || "export.txt", i = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), d = document.createElement("a");
81
- d.href = i, d.download = o, d.rel = "noopener", d.click(), setTimeout(() => URL.revokeObjectURL(i), 0);
82
- }
83
- };
84
- function Te() {
85
- return l.fs ?? se;
86
- }
87
- function Ne(e) {
88
- var n;
89
- if (e)
90
- return (n = l.notificationOverlay) == null ? void 0 : n.call(l, e);
91
- }
92
- const H = /* @__PURE__ */ new Map();
93
- function N(e) {
94
- let n = H.get(e);
95
- return n || (n = {
96
- source: e,
97
- total: 0,
98
- shown: 0,
99
- clicked: 0,
100
- dismissed: 0,
101
- autoFaded: 0,
102
- muted: 0
103
- }, H.set(e, n)), n;
104
- }
105
- function Fe(e, n, o) {
106
- const i = N(e);
107
- i.total += 1, n && (i.shown += 1), o && (i.muted += 1);
108
- }
109
- function be(e) {
110
- N(e).clicked += 1;
111
- }
112
- function De(e) {
113
- N(e).dismissed += 1;
114
- }
115
- function ce(e) {
116
- N(e).autoFaded += 1;
117
- }
118
- const ae = L("NativeNotificationEngine");
119
- function ke(e) {
120
- return e.id === "";
121
- }
122
- function ue(e, n = s.get()) {
123
- if (e.durationMs !== void 0) return e.durationMs;
124
- switch (e.severity) {
125
- case "info":
126
- return n.infoDurationMs;
127
- case "success":
128
- return n.successDurationMs;
129
- case "warning":
130
- return n.warningDurationMs;
131
- case "error":
132
- return n.errorDurationMs;
133
- }
134
- }
135
- function de(e, n = s.get()) {
136
- if (e.sticky || e.priority === "urgent" || e.priority === "acknowledgment-required" || e.progress && !e.progress.done || e.severity === "error" && n.errorsAlwaysSticky || e.severity === "warning" && n.warningsAlwaysSticky) return !0;
137
- const o = e.durationMs;
138
- return o !== void 0 && (!Number.isFinite(o) || o <= 0);
139
- }
140
- function fe(e = {}) {
141
- const n = e.getSettings ?? (() => s.get()), o = e.now ?? (() => Date.now()), i = e.setTimeout ?? ((t, r) => window.setTimeout(t, r)), d = e.clearTimeout ?? ((t) => window.clearTimeout(t)), w = e.recordAutoFade ?? ce, F = e.warn ?? ((t, r) => ae.warn(t, r)), u = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
142
- function b() {
143
- return [...u.values()].sort((t, r) => t.createdAt - r.createdAt);
144
- }
145
- function B(t) {
146
- const r = n();
147
- if (!r.pauseTimerWhileHidden) return !1;
148
- const a = b(), m = Math.max(1, r.maxVisibleNotifications);
149
- if (a.length <= m) return !1;
150
- const c = a.length - m, f = a.findIndex((D) => D.id === t);
151
- return f >= 0 && f < c;
152
- }
153
- function _() {
154
- for (const t of u.keys()) {
155
- if (y.has(t)) {
156
- B(t) && p(t);
157
- continue;
158
- }
159
- h(t);
160
- }
161
- }
162
- function g() {
163
- const t = b();
164
- for (const r of Array.from(E))
165
- try {
166
- r(t);
167
- } catch (a) {
168
- F("Bildirim motoru dinleyicisi firlatti:", a);
169
- }
170
- _();
171
- }
172
- function K(t) {
173
- return !!(de(t, n()) || t.hovered || t.focused);
174
- }
175
- function V(t) {
176
- return ue(t, n());
177
- }
178
- function p(t) {
179
- const r = y.get(t);
180
- r !== void 0 && (d(r), y.delete(t));
181
- }
182
- function h(t) {
183
- p(t);
184
- const r = u.get(t);
185
- if (!r || K(r) || B(t)) return;
186
- const a = V(r);
187
- if (!Number.isFinite(a) || a <= 0) return;
188
- const m = i(() => {
189
- y.delete(t);
190
- const c = u.get(t);
191
- c && (K(c) || (w(c.source ?? "general"), u.delete(t), g()));
192
- }, a);
193
- y.set(t, m);
194
- }
195
- let U = 0;
196
- function j() {
197
- return U += 1, `n-${o().toString(36)}-${U.toString(36)}`;
198
- }
199
- const q = 800, W = 3, A = [];
200
- function G() {
201
- const t = o();
202
- for (; A.length > 0 && (A[0] ?? 0) < t - q; )
203
- A.shift();
204
- return A.length >= W;
205
- }
206
- function z() {
207
- A.push(o());
208
- }
209
- function R(t) {
210
- return !t || t.length === 0 ? "" : t.filter((r) => r.primary).map((r) => `${r.id ?? ""}::${r.label}`).sort().join("|");
211
- }
212
- function J(t) {
213
- const r = t.source ?? "", a = R(t.actions);
214
- for (const [m, c] of u)
215
- if ((c.source ?? "") === r && c.title === t.title && R(c.actions) === a)
216
- return m;
217
- return null;
218
- }
219
- function Q(t) {
220
- const r = t.id, a = r ?? J(t), m = a === null;
221
- if (m && !r && G())
222
- return {
223
- id: "",
224
- update: () => {
225
- },
226
- setProgress: () => {
227
- },
228
- close: () => {
229
- }
230
- };
231
- const c = a ?? j(), f = u.get(c), D = {
232
- ...t,
233
- id: c,
234
- createdAt: (f == null ? void 0 : f.createdAt) ?? o(),
235
- // Default to collapsed so long error traces do not cover the screen;
236
- // the user can expand via the chevron button.
237
- expanded: (f == null ? void 0 : f.expanded) ?? !1,
238
- hovered: (f == null ? void 0 : f.hovered) ?? !1,
239
- focused: (f == null ? void 0 : f.focused) ?? !1
240
- };
241
- return u.set(c, D), m && z(), g(), h(c), {
242
- id: c,
243
- update(k) {
244
- const v = u.get(c);
245
- v && (u.set(c, { ...v, ...k }), g(), h(c));
246
- },
247
- setProgress(k) {
248
- const v = u.get(c);
249
- v && (u.set(c, { ...v, progress: k }), g(), h(c));
250
- },
251
- close() {
252
- p(c), u.delete(c) && g();
253
- }
254
- };
255
- }
256
- function X(t) {
257
- return E.add(t), t(b()), () => {
258
- E.delete(t);
259
- };
260
- }
261
- function Y(t, r) {
262
- const a = u.get(t);
263
- !a || a.hovered === r || (u.set(t, { ...a, hovered: r }), g(), r ? p(t) : h(t));
264
- }
265
- function Z(t, r) {
266
- const a = u.get(t);
267
- !a || a.focused === r || (u.set(t, { ...a, focused: r }), g(), r ? p(t) : h(t));
268
- }
269
- function ee(t) {
270
- const r = u.get(t);
271
- r && (u.set(t, { ...r, expanded: !r.expanded }), g(), h(t));
272
- }
273
- function te(t) {
274
- p(t), u.delete(t) && g();
275
- }
276
- function ne() {
277
- for (const t of y.keys()) p(t);
278
- u.clear(), E.clear();
279
- }
280
- return {
281
- notify: Q,
282
- subscribe: X,
283
- setHover: Y,
284
- setFocus: Z,
285
- toggleExpanded: ee,
286
- close: te,
287
- dispose: ne
288
- };
289
- }
290
- const S = fe(), Me = S.notify, Be = S.subscribe, Ke = S.setHover, Ue = S.setFocus, Re = S.toggleExpanded, He = S.close;
291
- let T = null;
292
- function Le(e) {
293
- T = e;
294
- }
295
- function Ie() {
296
- return T !== null;
297
- }
298
- function C() {
299
- if (T === null)
300
- throw new I(
301
- "[vendorErrors] read before a source was installed — the host must call installVendorErrorSource at startup."
302
- );
303
- return T;
304
- }
305
- function Pe(e) {
306
- const n = C().errorHelpersFor(e.vendorId);
307
- return n === null ? null : { vendorId: e.vendorId, code: e.code, helpers: n };
308
- }
309
- function Oe(e, n, o) {
310
- const i = C().errorHelpersFor(e);
311
- if (i === null)
312
- throw new I(
313
- `[vendorErrors] unknown preview vendor: ${e}`
314
- );
315
- return {
316
- message: `${i.formatCode(n)}: ${o}`,
317
- vendorError: { vendorId: e, code: n }
318
- };
319
- }
320
- function $e(e) {
321
- return `https://www.google.com/search?q=${encodeURIComponent(e)}`;
322
- }
323
- function Ce(e, n) {
324
- return `__remind:${e}:${n}`;
325
- }
326
- function _e(e, n, o) {
327
- const { priority: i } = e, d = e.recordTimeline !== !1;
328
- if (!n.notificationsEnabled)
329
- return { showToast: !1, recordTimeline: !1 };
330
- if (o.dismissed)
331
- return { showToast: !1, recordTimeline: !1 };
332
- if (o.remindSuppressed)
333
- return { showToast: !1, recordTimeline: !1 };
334
- if (i === "silent")
335
- return { showToast: !1, recordTimeline: d };
336
- const w = i === "urgent" || i === "acknowledgment-required";
337
- return n.doNotDisturb && (!w || i === "urgent" && n.dndBlocksUrgent) ? { showToast: !1, recordTimeline: d } : o.inQuietHours && (!w || i === "urgent" && n.quietHoursBlocksUrgent) ? { showToast: !1, recordTimeline: d } : w ? n.urgentRoutesToCenterOnly && i === "urgent" ? { showToast: !1, recordTimeline: d } : { showToast: !0, recordTimeline: d } : o.sourceMuted ? { showToast: !1, recordTimeline: d } : { showToast: !0, recordTimeline: d };
338
- }
339
- function Ve(e) {
340
- return s.get().mutedSources.includes(e);
341
- }
342
- function je(e) {
343
- return s.get().dontShowAgainKeys.includes(e);
344
- }
345
- function qe(e) {
346
- const n = Date.now();
347
- return s.get().remindersUntil.some((i) => i.key === e && i.remindAt > n);
348
- }
349
- async function We(e, n) {
350
- if (!e || n <= 0) return;
351
- const o = s.get(), i = Date.now() + n, w = [...o.remindersUntil.filter((F) => F.key !== e), { key: e, remindAt: i }];
352
- s.applyFromBroadcast({ ...o, remindersUntil: w }), await s.update({ ...o, remindersUntil: w });
353
- }
354
- async function Ge(e, n) {
355
- const o = s.get(), i = n ? Array.from(/* @__PURE__ */ new Set([...o.mutedSources, e])) : o.mutedSources.filter((d) => d !== e);
356
- s.applyFromBroadcast({ ...o, mutedSources: i }), await s.update({ ...o, mutedSources: i });
357
- }
358
- async function ze(e) {
359
- const n = s.get();
360
- if (n.dontShowAgainKeys.includes(e)) return;
361
- const o = [...n.dontShowAgainKeys, e];
362
- s.applyFromBroadcast({
363
- ...n,
364
- dontShowAgainKeys: o
365
- }), await s.update({ ...n, dontShowAgainKeys: o });
366
- }
367
- async function Je(e) {
368
- const n = s.get();
369
- if (!n.dontShowAgainKeys.includes(e)) return;
370
- const o = n.dontShowAgainKeys.filter((i) => i !== e);
371
- s.applyFromBroadcast({
372
- ...n,
373
- dontShowAgainKeys: o
374
- }), await s.update({ ...n, dontShowAgainKeys: o });
375
- }
376
- async function Qe() {
377
- const e = s.get();
378
- e.dontShowAgainKeys.length !== 0 && (s.applyFromBroadcast({
379
- ...e,
380
- dontShowAgainKeys: []
381
- }), await s.update({ ...e, dontShowAgainKeys: [] }));
382
- }
383
- async function Xe() {
384
- const e = s.get();
385
- e.mutedSources.length !== 0 && (s.applyFromBroadcast({ ...e, mutedSources: [] }), await s.update({ ...e, mutedSources: [] }));
386
- }
387
- export {
388
- Ke as A,
389
- Ge as B,
390
- Be as C,
391
- Re as D,
392
- Xe as E,
393
- he as F,
394
- xe as G,
395
- Ee as H,
396
- Fe as I,
397
- be as J,
398
- ve as K,
399
- Ae as L,
400
- ye as M,
401
- De as N,
402
- Te as O,
403
- Ne as P,
404
- oe as a,
405
- Oe as b,
406
- Se as c,
407
- C as d,
408
- Ie as e,
409
- He as f,
410
- $e as g,
411
- fe as h,
412
- Le as i,
413
- _e as j,
414
- Ce as k,
415
- ze as l,
416
- je as m,
417
- qe as n,
418
- de as o,
419
- pe as p,
420
- Ve as q,
421
- Pe as r,
422
- ke as s,
423
- Me as t,
424
- We as u,
425
- ue as v,
426
- we as w,
427
- Qe as x,
428
- Je as y,
429
- Ue as z
430
- };
@@ -1,6 +0,0 @@
1
- export declare function copyTextToClipboard(value: string, options?: {
2
- /** Text of the success toast (default: 'Copied to clipboard.'). */
3
- successMessage?: string;
4
- /** Silence the success toast entirely (when the caller gives its own feedback). */
5
- silentOnSuccess?: boolean;
6
- }): Promise<boolean>;
@@ -1,6 +0,0 @@
1
- export declare function copyTextToClipboard(value: string, options?: {
2
- /** Text of the success toast (default: 'Copied to clipboard.'). */
3
- successMessage?: string;
4
- /** Silence the success toast entirely (when the caller gives its own feedback). */
5
- silentOnSuccess?: boolean;
6
- }): Promise<boolean>;
@@ -1,17 +0,0 @@
1
- import { type Accessor } from 'solid-js';
2
- /** How long the "Copied" badge stays lit. */
3
- export declare const COPY_FLASH_MS = 1500;
4
- export interface CopyFlash {
5
- /** `true` for a short time if the last copy was ACTUALLY written to the clipboard. */
6
- readonly copied: Accessor<boolean>;
7
- /** Copies through the clipboard canon; the canon reports failure, the badge lights only on success. */
8
- readonly copy: (text: string) => void;
9
- }
10
- /**
11
- * The behaviour of a copy button that has its own "Copied" badge. Writing goes through the
12
- * clipboard canon: a rejection is not swallowed, the user is told; the badge lights only when
13
- * the copy really happened. (A bare `navigator.clipboard.writeText(...).then(...)` has no
14
- * rejection handler, so a failure would stay silent.) The badge timer is cleaned up with the
15
- * owner's lifetime.
16
- */
17
- export declare function createCopyFlash(): CopyFlash;
@@ -1,17 +0,0 @@
1
- import { type Accessor } from 'solid-js';
2
- /** How long the "Copied" badge stays lit. */
3
- export declare const COPY_FLASH_MS = 1500;
4
- export interface CopyFlash {
5
- /** `true` for a short time if the last copy was ACTUALLY written to the clipboard. */
6
- readonly copied: Accessor<boolean>;
7
- /** Copies through the clipboard canon; the canon reports failure, the badge lights only on success. */
8
- readonly copy: (text: string) => void;
9
- }
10
- /**
11
- * The behaviour of a copy button that has its own "Copied" badge. Writing goes through the
12
- * clipboard canon: a rejection is not swallowed, the user is told; the badge lights only when
13
- * the copy really happened. (A bare `navigator.clipboard.writeText(...).then(...)` has no
14
- * rejection handler, so a failure would stay silent.) The badge timer is cleaned up with the
15
- * owner's lifetime.
16
- */
17
- export declare function createCopyFlash(): CopyFlash;
@@ -1,27 +0,0 @@
1
- /**
2
- * The single decision point that selects WHICH window paints the toast stack.
3
- *
4
- * ## Why it is needed
5
- *
6
- * `nativeEngine` keeps a single GLOBAL store: `subscribeNotifications` hands every listener
7
- * the same list. If a `NotificationHost` is mounted in an auxiliary window next to the main
8
- * window, every toast would be painted in **both windows at once** — two copies of the same
9
- * notification, in two separate stacks.
10
- *
11
- * Splitting the store per window would be wrong too: a notification belongs to the app, not to
12
- * a window (the timeline, the unread badge and the DND rules are all app-wide). What is split
13
- * is not the store but the **right to paint**.
14
- *
15
- * ## Rule
16
- *
17
- * Owner = the registered window that has focus. If none has focus (the app is in the
18
- * background, or focus is outside the app), the owner is the **first registered** window —
19
- * i.e. the main window, because the app shell mounts before the auxiliary windows. That makes
20
- * the "nobody paints" state structurally impossible.
21
- *
22
- * ⚠ Recomputation is DEFERRED to the next macrotask. `blur` always arrives BEFORE the
23
- * `focus` of the other window; if we recomputed immediately, the window in between would look
24
- * "nobody has focus", ownership would drop to the main window for a moment, and the toast
25
- * would visibly jump between windows.
26
- */
27
- export { registerDisplayHost as registerNotificationHost, type DisplayHostRegistration as NotificationHostRegistration, } from '../_internal/platform/window/displayOwner.cjs';
@@ -1,27 +0,0 @@
1
- /**
2
- * The single decision point that selects WHICH window paints the toast stack.
3
- *
4
- * ## Why it is needed
5
- *
6
- * `nativeEngine` keeps a single GLOBAL store: `subscribeNotifications` hands every listener
7
- * the same list. If a `NotificationHost` is mounted in an auxiliary window next to the main
8
- * window, every toast would be painted in **both windows at once** — two copies of the same
9
- * notification, in two separate stacks.
10
- *
11
- * Splitting the store per window would be wrong too: a notification belongs to the app, not to
12
- * a window (the timeline, the unread badge and the DND rules are all app-wide). What is split
13
- * is not the store but the **right to paint**.
14
- *
15
- * ## Rule
16
- *
17
- * Owner = the registered window that has focus. If none has focus (the app is in the
18
- * background, or focus is outside the app), the owner is the **first registered** window —
19
- * i.e. the main window, because the app shell mounts before the auxiliary windows. That makes
20
- * the "nobody paints" state structurally impossible.
21
- *
22
- * ⚠ Recomputation is DEFERRED to the next macrotask. `blur` always arrives BEFORE the
23
- * `focus` of the other window; if we recomputed immediately, the window in between would look
24
- * "nobody has focus", ownership would drop to the main window for a moment, and the toast
25
- * would visibly jump between windows.
26
- */
27
- export { registerDisplayHost as registerNotificationHost, type DisplayHostRegistration as NotificationHostRegistration, } from '../_internal/platform/window/displayOwner.js';
@@ -1,36 +0,0 @@
1
- /**
2
- * Factory builders for the two "repeater" entry types in the Notification
3
- * settings UI: a new {@link NotificationRule} and a new {@link WebhookConfig}.
4
- *
5
- * #1345: the `NotificationSettingsSection` component (1500+ lines) inlined the
6
- * default shape + id of a new rule/webhook directly inside the "+ Add" button
7
- * `onClick` handlers. Constructing the canonical default entry is a single
8
- * cohesive responsibility (one reason to change: the default rule/webhook
9
- * shape) that is wholly independent of JSX, so it lives here as pure logic the
10
- * component delegates to — the first concern peeled off the god-component
11
- * (the `#1346` `parseLongRunningThresholdMs` extraction set this precedent).
12
- *
13
- * Pure: builders never mutate inputs and return a fresh object each call. The
14
- * id generator is injected (defaulting to the codebase's canonical
15
- * `${prefix}-${Date.now()}-${Math.random()...}` idiom) so callers can supply a
16
- * deterministic generator under test without stubbing globals.
17
- */
18
- import type { NotificationRule, WebhookConfig } from '../_internal/platform/settings/settingsTypes.cjs';
19
- /** Produces a collision-resistant entry id for the given prefix. */
20
- export type RepeaterEntryIdGenerator = (prefix: string) => string;
21
- /**
22
- * Canonical id idiom for notification entries (`notificationCenter.ts`): a (today `toast.ts`)
23
- * short, sortable, collision-resistant token. Kept here so the builders match
24
- * the rest of the notification domain exactly instead of re-deriving the format.
25
- */
26
- export declare const generateRepeaterEntryId: RepeaterEntryIdGenerator;
27
- /**
28
- * Build a new, disabled-condition notification rule with empty match
29
- * conditions and no actions — the neutral starting point a user then edits.
30
- */
31
- export declare function buildNewNotificationRule(generateId?: RepeaterEntryIdGenerator): NotificationRule;
32
- /**
33
- * Build a new generic webhook with an empty URL and match-any filters — the
34
- * neutral starting point a user then points at Slack / Discord / a custom URL.
35
- */
36
- export declare function buildNewWebhook(generateId?: RepeaterEntryIdGenerator): WebhookConfig;
@@ -1,36 +0,0 @@
1
- /**
2
- * Factory builders for the two "repeater" entry types in the Notification
3
- * settings UI: a new {@link NotificationRule} and a new {@link WebhookConfig}.
4
- *
5
- * #1345: the `NotificationSettingsSection` component (1500+ lines) inlined the
6
- * default shape + id of a new rule/webhook directly inside the "+ Add" button
7
- * `onClick` handlers. Constructing the canonical default entry is a single
8
- * cohesive responsibility (one reason to change: the default rule/webhook
9
- * shape) that is wholly independent of JSX, so it lives here as pure logic the
10
- * component delegates to — the first concern peeled off the god-component
11
- * (the `#1346` `parseLongRunningThresholdMs` extraction set this precedent).
12
- *
13
- * Pure: builders never mutate inputs and return a fresh object each call. The
14
- * id generator is injected (defaulting to the codebase's canonical
15
- * `${prefix}-${Date.now()}-${Math.random()...}` idiom) so callers can supply a
16
- * deterministic generator under test without stubbing globals.
17
- */
18
- import type { NotificationRule, WebhookConfig } from '../_internal/platform/settings/settingsTypes.js';
19
- /** Produces a collision-resistant entry id for the given prefix. */
20
- export type RepeaterEntryIdGenerator = (prefix: string) => string;
21
- /**
22
- * Canonical id idiom for notification entries (`notificationCenter.ts`): a (today `toast.ts`)
23
- * short, sortable, collision-resistant token. Kept here so the builders match
24
- * the rest of the notification domain exactly instead of re-deriving the format.
25
- */
26
- export declare const generateRepeaterEntryId: RepeaterEntryIdGenerator;
27
- /**
28
- * Build a new, disabled-condition notification rule with empty match
29
- * conditions and no actions — the neutral starting point a user then edits.
30
- */
31
- export declare function buildNewNotificationRule(generateId?: RepeaterEntryIdGenerator): NotificationRule;
32
- /**
33
- * Build a new generic webhook with an empty URL and match-any filters — the
34
- * neutral starting point a user then points at Slack / Discord / a custom URL.
35
- */
36
- export declare function buildNewWebhook(generateId?: RepeaterEntryIdGenerator): WebhookConfig;
@@ -1 +0,0 @@
1
- export declare const notificationsNotificationSamples: readonly [import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor, import("./index.cjs").NotificationScenarioDescriptor];
@@ -1 +0,0 @@
1
- export declare const notificationsNotificationSamples: readonly [import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor, import("./index.js").NotificationScenarioDescriptor];