@lincyaw/aegis-ui 0.10.0 → 0.12.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 (396) hide show
  1. package/dist/agent/ask/AskPanel.cjs +1 -1
  2. package/dist/agent/ask/AskPanel.cjs.map +1 -1
  3. package/dist/agent/ask/AskPanel.d.ts +5 -0
  4. package/dist/agent/ask/AskPanel.js +105 -98
  5. package/dist/agent/ask/AskPanel.js.map +1 -1
  6. package/dist/commands/commandContext.cjs.map +1 -1
  7. package/dist/commands/commandContext.d.ts +4 -1
  8. package/dist/commands/commandContext.js.map +1 -1
  9. package/dist/components/ui/AgentPanel.cjs +1 -1
  10. package/dist/components/ui/AgentPanel.cjs.map +1 -1
  11. package/dist/components/ui/AgentPanel.js +15 -14
  12. package/dist/components/ui/AgentPanel.js.map +1 -1
  13. package/dist/components/ui/Avatar.cjs +1 -1
  14. package/dist/components/ui/Avatar.cjs.map +1 -1
  15. package/dist/components/ui/Avatar.js +21 -19
  16. package/dist/components/ui/Avatar.js.map +1 -1
  17. package/dist/components/ui/BlastRadiusBar.cjs +1 -1
  18. package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
  19. package/dist/components/ui/BlastRadiusBar.d.ts +16 -4
  20. package/dist/components/ui/BlastRadiusBar.js +27 -23
  21. package/dist/components/ui/BlastRadiusBar.js.map +1 -1
  22. package/dist/components/ui/Button.cjs.map +1 -1
  23. package/dist/components/ui/Button.d.ts +4 -2
  24. package/dist/components/ui/Button.js.map +1 -1
  25. package/dist/components/ui/ChatComposer.cjs +1 -1
  26. package/dist/components/ui/ChatComposer.cjs.map +1 -1
  27. package/dist/components/ui/ChatComposer.js +32 -31
  28. package/dist/components/ui/ChatComposer.js.map +1 -1
  29. package/dist/components/ui/ChatSessionList.cjs +1 -1
  30. package/dist/components/ui/ChatSessionList.cjs.map +1 -1
  31. package/dist/components/ui/ChatSessionList.js +68 -66
  32. package/dist/components/ui/ChatSessionList.js.map +1 -1
  33. package/dist/components/ui/CheckGrid.cjs +1 -1
  34. package/dist/components/ui/CheckGrid.cjs.map +1 -1
  35. package/dist/components/ui/CheckGrid.js +18 -17
  36. package/dist/components/ui/CheckGrid.js.map +1 -1
  37. package/dist/components/ui/Checkbox.cjs +1 -1
  38. package/dist/components/ui/Checkbox.cjs.map +1 -1
  39. package/dist/components/ui/Checkbox.d.ts +6 -2
  40. package/dist/components/ui/Checkbox.js +21 -17
  41. package/dist/components/ui/Checkbox.js.map +1 -1
  42. package/dist/components/ui/ChoiceCardGroup.cjs +1 -1
  43. package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -1
  44. package/dist/components/ui/ChoiceCardGroup.d.ts +13 -4
  45. package/dist/components/ui/ChoiceCardGroup.js +47 -35
  46. package/dist/components/ui/ChoiceCardGroup.js.map +1 -1
  47. package/dist/components/ui/CodeEditor.cjs +1 -1
  48. package/dist/components/ui/CodeEditor.cjs.map +1 -1
  49. package/dist/components/ui/CodeEditor.d.ts +11 -1
  50. package/dist/components/ui/CodeEditor.js +108 -74
  51. package/dist/components/ui/CodeEditor.js.map +1 -1
  52. package/dist/components/ui/CommandInvocationCard.cjs +1 -1
  53. package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
  54. package/dist/components/ui/CommandInvocationCard.js +23 -26
  55. package/dist/components/ui/CommandInvocationCard.js.map +1 -1
  56. package/dist/components/ui/CommandPalette.cjs +1 -1
  57. package/dist/components/ui/CommandPalette.cjs.map +1 -1
  58. package/dist/components/ui/CommandPalette.d.ts +3 -3
  59. package/dist/components/ui/CommandPalette.js +75 -75
  60. package/dist/components/ui/CommandPalette.js.map +1 -1
  61. package/dist/components/ui/CommitGraph.cjs +1 -1
  62. package/dist/components/ui/CommitGraph.cjs.map +1 -1
  63. package/dist/components/ui/CommitGraph.d.ts +3 -1
  64. package/dist/components/ui/CommitGraph.js +77 -74
  65. package/dist/components/ui/CommitGraph.js.map +1 -1
  66. package/dist/components/ui/ContentInspectorDialog.cjs +1 -1
  67. package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
  68. package/dist/components/ui/ContentInspectorDialog.js +25 -31
  69. package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
  70. package/dist/components/ui/ContentPreview.cjs +2 -2
  71. package/dist/components/ui/ContentPreview.cjs.map +1 -1
  72. package/dist/components/ui/ContentPreview.js +55 -56
  73. package/dist/components/ui/ContentPreview.js.map +1 -1
  74. package/dist/components/ui/DangerZone.cjs +1 -1
  75. package/dist/components/ui/DangerZone.cjs.map +1 -1
  76. package/dist/components/ui/DangerZone.js +9 -8
  77. package/dist/components/ui/DangerZone.js.map +1 -1
  78. package/dist/components/ui/DataList.cjs +1 -1
  79. package/dist/components/ui/DataList.cjs.map +1 -1
  80. package/dist/components/ui/DataList.js +27 -25
  81. package/dist/components/ui/DataList.js.map +1 -1
  82. package/dist/components/ui/DataTable.cjs +1 -1
  83. package/dist/components/ui/DataTable.cjs.map +1 -1
  84. package/dist/components/ui/DataTable.d.ts +2 -1
  85. package/dist/components/ui/DataTable.js +141 -124
  86. package/dist/components/ui/DataTable.js.map +1 -1
  87. package/dist/components/ui/DiffViewer.cjs +1 -1
  88. package/dist/components/ui/DiffViewer.cjs.map +1 -1
  89. package/dist/components/ui/DiffViewer.js +29 -25
  90. package/dist/components/ui/DiffViewer.js.map +1 -1
  91. package/dist/components/ui/DropdownMenu.cjs +1 -1
  92. package/dist/components/ui/DropdownMenu.cjs.map +1 -1
  93. package/dist/components/ui/DropdownMenu.d.ts +1 -0
  94. package/dist/components/ui/DropdownMenu.js +41 -40
  95. package/dist/components/ui/DropdownMenu.js.map +1 -1
  96. package/dist/components/ui/EnvironmentSwitcher.cjs +1 -1
  97. package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -1
  98. package/dist/components/ui/EnvironmentSwitcher.js +26 -24
  99. package/dist/components/ui/EnvironmentSwitcher.js.map +1 -1
  100. package/dist/components/ui/EventTable.cjs +1 -1
  101. package/dist/components/ui/EventTable.cjs.map +1 -1
  102. package/dist/components/ui/EventTable.js +60 -53
  103. package/dist/components/ui/EventTable.js.map +1 -1
  104. package/dist/components/ui/FileDropzone.cjs +1 -1
  105. package/dist/components/ui/FileDropzone.cjs.map +1 -1
  106. package/dist/components/ui/FileDropzone.js +40 -42
  107. package/dist/components/ui/FileDropzone.js.map +1 -1
  108. package/dist/components/ui/FilePreview.cjs +1 -1
  109. package/dist/components/ui/FilePreview.cjs.map +1 -1
  110. package/dist/components/ui/FilePreview.js +63 -61
  111. package/dist/components/ui/FilePreview.js.map +1 -1
  112. package/dist/components/ui/FolderDropzone.cjs +1 -1
  113. package/dist/components/ui/FolderDropzone.cjs.map +1 -1
  114. package/dist/components/ui/FolderDropzone.js +114 -84
  115. package/dist/components/ui/FolderDropzone.js.map +1 -1
  116. package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
  117. package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
  118. package/dist/components/ui/ForgotPasswordForm.js +22 -21
  119. package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
  120. package/dist/components/ui/FormRow.cjs +1 -1
  121. package/dist/components/ui/FormRow.cjs.map +1 -1
  122. package/dist/components/ui/FormRow.d.ts +32 -11
  123. package/dist/components/ui/FormRow.js +24 -15
  124. package/dist/components/ui/FormRow.js.map +1 -1
  125. package/dist/components/ui/InboxPage.cjs +1 -1
  126. package/dist/components/ui/InboxPage.cjs.map +1 -1
  127. package/dist/components/ui/InboxPage.d.ts +12 -3
  128. package/dist/components/ui/InboxPage.js +91 -77
  129. package/dist/components/ui/InboxPage.js.map +1 -1
  130. package/dist/components/ui/LoginForm.cjs +1 -1
  131. package/dist/components/ui/LoginForm.cjs.map +1 -1
  132. package/dist/components/ui/LoginForm.js +43 -43
  133. package/dist/components/ui/LoginForm.js.map +1 -1
  134. package/dist/components/ui/MonoValue.cjs +1 -1
  135. package/dist/components/ui/MonoValue.cjs.map +1 -1
  136. package/dist/components/ui/MonoValue.d.ts +5 -1
  137. package/dist/components/ui/MonoValue.js +17 -17
  138. package/dist/components/ui/MonoValue.js.map +1 -1
  139. package/dist/components/ui/NotificationBell.cjs +1 -1
  140. package/dist/components/ui/NotificationBell.cjs.map +1 -1
  141. package/dist/components/ui/NotificationBell.d.ts +17 -1
  142. package/dist/components/ui/NotificationBell.js +129 -75
  143. package/dist/components/ui/NotificationBell.js.map +1 -1
  144. package/dist/components/ui/NumberField.cjs +1 -1
  145. package/dist/components/ui/NumberField.cjs.map +1 -1
  146. package/dist/components/ui/NumberField.d.ts +3 -1
  147. package/dist/components/ui/NumberField.js +52 -49
  148. package/dist/components/ui/NumberField.js.map +1 -1
  149. package/dist/components/ui/ObjectBrowser.cjs +1 -1
  150. package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
  151. package/dist/components/ui/ObjectBrowser.js +83 -78
  152. package/dist/components/ui/ObjectBrowser.js.map +1 -1
  153. package/dist/components/ui/PageSizeSelect.cjs +1 -1
  154. package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
  155. package/dist/components/ui/PageSizeSelect.js +30 -29
  156. package/dist/components/ui/PageSizeSelect.js.map +1 -1
  157. package/dist/components/ui/Panel.cjs.map +1 -1
  158. package/dist/components/ui/Panel.d.ts +5 -2
  159. package/dist/components/ui/Panel.js.map +1 -1
  160. package/dist/components/ui/ParetoChart.cjs +1 -1
  161. package/dist/components/ui/ParetoChart.cjs.map +1 -1
  162. package/dist/components/ui/ParetoChart.js +247 -212
  163. package/dist/components/ui/ParetoChart.js.map +1 -1
  164. package/dist/components/ui/ParquetViewer.cjs +1 -1
  165. package/dist/components/ui/ParquetViewer.cjs.map +1 -1
  166. package/dist/components/ui/ParquetViewer.js +69 -74
  167. package/dist/components/ui/ParquetViewer.js.map +1 -1
  168. package/dist/components/ui/PasswordField.cjs +1 -1
  169. package/dist/components/ui/PasswordField.cjs.map +1 -1
  170. package/dist/components/ui/PasswordField.js +28 -27
  171. package/dist/components/ui/PasswordField.js.map +1 -1
  172. package/dist/components/ui/PickerField.cjs +1 -1
  173. package/dist/components/ui/PickerField.cjs.map +1 -1
  174. package/dist/components/ui/PickerField.d.ts +25 -6
  175. package/dist/components/ui/PickerField.js +20 -17
  176. package/dist/components/ui/PickerField.js.map +1 -1
  177. package/dist/components/ui/ProjectSelector.cjs +1 -1
  178. package/dist/components/ui/ProjectSelector.cjs.map +1 -1
  179. package/dist/components/ui/ProjectSelector.js +40 -37
  180. package/dist/components/ui/ProjectSelector.js.map +1 -1
  181. package/dist/components/ui/QueryAutocomplete.cjs +1 -1
  182. package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
  183. package/dist/components/ui/QueryAutocomplete.d.ts +11 -2
  184. package/dist/components/ui/QueryAutocomplete.js +146 -126
  185. package/dist/components/ui/QueryAutocomplete.js.map +1 -1
  186. package/dist/components/ui/RankBar.cjs +1 -1
  187. package/dist/components/ui/RankBar.cjs.map +1 -1
  188. package/dist/components/ui/RankBar.js +9 -9
  189. package/dist/components/ui/RankBar.js.map +1 -1
  190. package/dist/components/ui/RegisterForm.cjs +1 -1
  191. package/dist/components/ui/RegisterForm.cjs.map +1 -1
  192. package/dist/components/ui/RegisterForm.js +41 -40
  193. package/dist/components/ui/RegisterForm.js.map +1 -1
  194. package/dist/components/ui/ReplayStepStrip.cjs +1 -1
  195. package/dist/components/ui/ReplayStepStrip.cjs.map +1 -1
  196. package/dist/components/ui/ReplayStepStrip.d.ts +6 -3
  197. package/dist/components/ui/ReplayStepStrip.js +71 -61
  198. package/dist/components/ui/ReplayStepStrip.js.map +1 -1
  199. package/dist/components/ui/ResizableSidePanel.cjs +1 -1
  200. package/dist/components/ui/ResizableSidePanel.cjs.map +1 -1
  201. package/dist/components/ui/ResizableSidePanel.js +41 -40
  202. package/dist/components/ui/ResizableSidePanel.js.map +1 -1
  203. package/dist/components/ui/SavedQueryBar.cjs +1 -1
  204. package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
  205. package/dist/components/ui/SavedQueryBar.d.ts +1 -1
  206. package/dist/components/ui/SavedQueryBar.js +375 -277
  207. package/dist/components/ui/SavedQueryBar.js.map +1 -1
  208. package/dist/components/ui/SearchInput.cjs +1 -1
  209. package/dist/components/ui/SearchInput.cjs.map +1 -1
  210. package/dist/components/ui/SearchInput.d.ts +5 -1
  211. package/dist/components/ui/SearchInput.js +28 -24
  212. package/dist/components/ui/SearchInput.js.map +1 -1
  213. package/dist/components/ui/Select.cjs +1 -1
  214. package/dist/components/ui/Select.cjs.map +1 -1
  215. package/dist/components/ui/Select.d.ts +3 -1
  216. package/dist/components/ui/Select.js +21 -19
  217. package/dist/components/ui/Select.js.map +1 -1
  218. package/dist/components/ui/ServiceMap.cjs +1 -1
  219. package/dist/components/ui/ServiceMap.cjs.map +1 -1
  220. package/dist/components/ui/ServiceMap.d.ts +18 -4
  221. package/dist/components/ui/ServiceMap.js +353 -228
  222. package/dist/components/ui/ServiceMap.js.map +1 -1
  223. package/dist/components/ui/Slider.cjs +1 -1
  224. package/dist/components/ui/Slider.cjs.map +1 -1
  225. package/dist/components/ui/Slider.d.ts +3 -1
  226. package/dist/components/ui/Slider.js +11 -9
  227. package/dist/components/ui/Slider.js.map +1 -1
  228. package/dist/components/ui/SparkLine.cjs +1 -1
  229. package/dist/components/ui/SparkLine.cjs.map +1 -1
  230. package/dist/components/ui/SparkLine.d.ts +5 -2
  231. package/dist/components/ui/SparkLine.js +36 -31
  232. package/dist/components/ui/SparkLine.js.map +1 -1
  233. package/dist/components/ui/Steps.cjs +1 -1
  234. package/dist/components/ui/Steps.cjs.map +1 -1
  235. package/dist/components/ui/Steps.js +25 -29
  236. package/dist/components/ui/Steps.js.map +1 -1
  237. package/dist/components/ui/TableOfContents.cjs +1 -1
  238. package/dist/components/ui/TableOfContents.cjs.map +1 -1
  239. package/dist/components/ui/TableOfContents.js +16 -19
  240. package/dist/components/ui/TableOfContents.js.map +1 -1
  241. package/dist/components/ui/Tabs.cjs +2 -2
  242. package/dist/components/ui/Tabs.cjs.map +1 -1
  243. package/dist/components/ui/Tabs.js +107 -87
  244. package/dist/components/ui/Tabs.js.map +1 -1
  245. package/dist/components/ui/Terminal.cjs +1 -1
  246. package/dist/components/ui/Terminal.cjs.map +1 -1
  247. package/dist/components/ui/Terminal.js +18 -17
  248. package/dist/components/ui/Terminal.js.map +1 -1
  249. package/dist/components/ui/TextField.cjs +1 -1
  250. package/dist/components/ui/TextField.cjs.map +1 -1
  251. package/dist/components/ui/TextField.js +6 -6
  252. package/dist/components/ui/TextField.js.map +1 -1
  253. package/dist/components/ui/ThemeToggle.cjs +1 -1
  254. package/dist/components/ui/ThemeToggle.cjs.map +1 -1
  255. package/dist/components/ui/ThemeToggle.js +15 -18
  256. package/dist/components/ui/ThemeToggle.js.map +1 -1
  257. package/dist/components/ui/TimeDisplay.cjs +1 -1
  258. package/dist/components/ui/TimeDisplay.cjs.map +1 -1
  259. package/dist/components/ui/TimeDisplay.js +12 -12
  260. package/dist/components/ui/TimeDisplay.js.map +1 -1
  261. package/dist/components/ui/TimeRangePicker.cjs +1 -1
  262. package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
  263. package/dist/components/ui/TimeRangePicker.d.ts +12 -1
  264. package/dist/components/ui/TimeRangePicker.js +136 -113
  265. package/dist/components/ui/TimeRangePicker.js.map +1 -1
  266. package/dist/components/ui/Timeline.cjs.map +1 -1
  267. package/dist/components/ui/Timeline.d.ts +4 -4
  268. package/dist/components/ui/Timeline.js.map +1 -1
  269. package/dist/components/ui/TimelineChart.cjs +2 -2
  270. package/dist/components/ui/TimelineChart.cjs.map +1 -1
  271. package/dist/components/ui/TimelineChart.d.ts +1 -0
  272. package/dist/components/ui/TimelineChart.js +131 -137
  273. package/dist/components/ui/TimelineChart.js.map +1 -1
  274. package/dist/components/ui/TraceSpanInspector.cjs +1 -1
  275. package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
  276. package/dist/components/ui/TraceSpanInspector.js +43 -46
  277. package/dist/components/ui/TraceSpanInspector.js.map +1 -1
  278. package/dist/components/ui/TraceTree.cjs +1 -1
  279. package/dist/components/ui/TraceTree.cjs.map +1 -1
  280. package/dist/components/ui/TraceTree.d.ts +5 -1
  281. package/dist/components/ui/TraceTree.js +98 -97
  282. package/dist/components/ui/TraceTree.js.map +1 -1
  283. package/dist/components/ui/TrajectoryStep.cjs +2 -1
  284. package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
  285. package/dist/components/ui/TrajectoryStep.js +64 -43
  286. package/dist/components/ui/TrajectoryStep.js.map +1 -1
  287. package/dist/components/ui/UploadQueue.cjs +1 -1
  288. package/dist/components/ui/UploadQueue.cjs.map +1 -1
  289. package/dist/components/ui/UploadQueue.js +59 -70
  290. package/dist/components/ui/UploadQueue.js.map +1 -1
  291. package/dist/components/ui/authValidation.cjs +1 -1
  292. package/dist/components/ui/authValidation.cjs.map +1 -1
  293. package/dist/components/ui/authValidation.d.ts +2 -2
  294. package/dist/components/ui/authValidation.js +4 -5
  295. package/dist/components/ui/authValidation.js.map +1 -1
  296. package/dist/components/ui/classifyContent.cjs +3 -3
  297. package/dist/components/ui/classifyContent.cjs.map +1 -1
  298. package/dist/components/ui/classifyContent.d.ts +2 -1
  299. package/dist/components/ui/classifyContent.js +52 -54
  300. package/dist/components/ui/classifyContent.js.map +1 -1
  301. package/dist/components/ui/relativeTime.cjs +1 -1
  302. package/dist/components/ui/relativeTime.cjs.map +1 -1
  303. package/dist/components/ui/relativeTime.d.ts +5 -3
  304. package/dist/components/ui/relativeTime.js +15 -6
  305. package/dist/components/ui/relativeTime.js.map +1 -1
  306. package/dist/components/ui/useColumnWidths.cjs +1 -1
  307. package/dist/components/ui/useColumnWidths.cjs.map +1 -1
  308. package/dist/components/ui/useColumnWidths.d.ts +6 -1
  309. package/dist/components/ui/useColumnWidths.js +139 -123
  310. package/dist/components/ui/useColumnWidths.js.map +1 -1
  311. package/dist/hooks/popoverOverflow.cjs +2 -0
  312. package/dist/hooks/popoverOverflow.cjs.map +1 -0
  313. package/dist/hooks/popoverOverflow.d.ts +8 -0
  314. package/dist/hooks/popoverOverflow.js +9 -0
  315. package/dist/hooks/popoverOverflow.js.map +1 -0
  316. package/dist/hooks/useDialogPopover.cjs +2 -0
  317. package/dist/hooks/useDialogPopover.cjs.map +1 -0
  318. package/dist/hooks/useDialogPopover.d.ts +23 -0
  319. package/dist/hooks/useDialogPopover.js +48 -0
  320. package/dist/hooks/useDialogPopover.js.map +1 -0
  321. package/dist/hooks/useMenuPopover.cjs +1 -1
  322. package/dist/hooks/useMenuPopover.cjs.map +1 -1
  323. package/dist/hooks/useMenuPopover.d.ts +0 -8
  324. package/dist/hooks/useMenuPopover.js +17 -22
  325. package/dist/hooks/useMenuPopover.js.map +1 -1
  326. package/dist/hooks/useSavedQueries.cjs +1 -1
  327. package/dist/hooks/useSavedQueries.cjs.map +1 -1
  328. package/dist/hooks/useSavedQueries.js +29 -28
  329. package/dist/hooks/useSavedQueries.js.map +1 -1
  330. package/dist/index.d.ts +1 -1
  331. package/dist/layouts/shell/AegisShell.cjs +1 -1
  332. package/dist/layouts/shell/AegisShell.cjs.map +1 -1
  333. package/dist/layouts/shell/AegisShell.js +58 -59
  334. package/dist/layouts/shell/AegisShell.js.map +1 -1
  335. package/dist/layouts/shell/AppSwitcher.cjs +1 -1
  336. package/dist/layouts/shell/AppSwitcher.cjs.map +1 -1
  337. package/dist/layouts/shell/AppSwitcher.js +53 -36
  338. package/dist/layouts/shell/AppSwitcher.js.map +1 -1
  339. package/dist/layouts/shell/AuthRequiredCard.cjs +1 -1
  340. package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -1
  341. package/dist/layouts/shell/AuthRequiredCard.js +24 -22
  342. package/dist/layouts/shell/AuthRequiredCard.js.map +1 -1
  343. package/dist/layouts/shell/RouteErrorBoundary.cjs +1 -1
  344. package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -1
  345. package/dist/layouts/shell/RouteErrorBoundary.d.ts +4 -1
  346. package/dist/layouts/shell/RouteErrorBoundary.js +15 -10
  347. package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -1
  348. package/dist/layouts/shell/ShellInboxPage.cjs +1 -1
  349. package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -1
  350. package/dist/layouts/shell/ShellInboxPage.js +17 -16
  351. package/dist/layouts/shell/ShellInboxPage.js.map +1 -1
  352. package/dist/layouts/shell/ShellNotificationBell.cjs +1 -1
  353. package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -1
  354. package/dist/layouts/shell/ShellNotificationBell.js +20 -14
  355. package/dist/layouts/shell/ShellNotificationBell.js.map +1 -1
  356. package/dist/layouts/shell/TopHeader.cjs +1 -1
  357. package/dist/layouts/shell/TopHeader.cjs.map +1 -1
  358. package/dist/layouts/shell/TopHeader.js +74 -74
  359. package/dist/layouts/shell/TopHeader.js.map +1 -1
  360. package/dist/layouts/shell/useShellUser.cjs +1 -1
  361. package/dist/layouts/shell/useShellUser.cjs.map +1 -1
  362. package/dist/layouts/shell/useShellUser.js +15 -13
  363. package/dist/layouts/shell/useShellUser.js.map +1 -1
  364. package/dist/lib/breakAtSeparators.cjs +2 -0
  365. package/dist/lib/breakAtSeparators.cjs.map +1 -0
  366. package/dist/lib/breakAtSeparators.d.ts +6 -0
  367. package/dist/lib/breakAtSeparators.js +10 -0
  368. package/dist/lib/breakAtSeparators.js.map +1 -0
  369. package/dist/lib/chart.cjs +1 -1
  370. package/dist/lib/chart.cjs.map +1 -1
  371. package/dist/lib/chart.d.ts +5 -7
  372. package/dist/lib/chart.js +49 -34
  373. package/dist/lib/chart.js.map +1 -1
  374. package/dist/lib/timeRange.cjs +1 -1
  375. package/dist/lib/timeRange.cjs.map +1 -1
  376. package/dist/lib/timeRange.d.ts +14 -4
  377. package/dist/lib/timeRange.js +41 -40
  378. package/dist/lib/timeRange.js.map +1 -1
  379. package/dist/locale/strings.cjs +1 -1
  380. package/dist/locale/strings.cjs.map +1 -1
  381. package/dist/locale/strings.d.ts +247 -2
  382. package/dist/locale/strings.js +562 -37
  383. package/dist/locale/strings.js.map +1 -1
  384. package/dist/notifications/notificationContext.cjs.map +1 -1
  385. package/dist/notifications/notificationContext.d.ts +12 -2
  386. package/dist/notifications/notificationContext.js.map +1 -1
  387. package/dist/style.css +1 -1
  388. package/dist/theme/antdTheme.cjs +1 -1
  389. package/dist/theme/antdTheme.cjs.map +1 -1
  390. package/dist/theme/antdTheme.js +52 -29
  391. package/dist/theme/antdTheme.js.map +1 -1
  392. package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
  393. package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
  394. package/dist/transports/agentm/AgentmChannelProvider.js +66 -61
  395. package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
  396. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AuthRequiredCard.js","sources":["../../../src/layouts/shell/AuthRequiredCard.tsx"],"sourcesContent":["import { type ReactElement } from 'react';\n\nimport type { AegisAuthUser, AuthStatus } from '../../auth';\nimport { Chip } from '../../components/ui/Chip';\nimport { EmptyState } from '../../components/ui/EmptyState';\nimport type { AegisApp } from './types';\n\ninterface AuthRequiredCardProps {\n app: AegisApp;\n status: AuthStatus;\n user: AegisAuthUser | null;\n onSignIn?: () => void;\n}\n\n/**\n * Rendered in place of an app's content when the current user is not\n * authorized to view it. Distinguishes between \"needs login\" and\n * \"logged in but missing role\" so the message and call-to-action match.\n */\nexport function AuthRequiredCard({\n app,\n status,\n user,\n onSignIn,\n}: AuthRequiredCardProps): ReactElement {\n if (status === 'loading') {\n return <EmptyState title=\"Checking your session…\" />;\n }\n if (status === 'unauthenticated') {\n return (\n <EmptyState\n title={`Sign in to use ${app.label}`}\n description={\n app.description ??\n 'This app needs an authenticated session. Sign in to continue.'\n }\n action={\n onSignIn ? (\n <Chip tone=\"ink\" onClick={onSignIn}>\n Sign in\n </Chip>\n ) : undefined\n }\n />\n );\n }\n const userRoles = user?.roles ?? [];\n const required = app.requiredRoles ?? [];\n return (\n <EmptyState\n title=\"Insufficient permissions\"\n description={\n required.length\n ? `${app.label} requires one of: ${required.join(', ')}. Your roles: ${\n userRoles.length ? userRoles.join(', ') : '(none)'\n }.`\n : `You don't have access to ${app.label}.`\n }\n />\n );\n}\n"],"names":["AuthRequiredCard","app","status","user","onSignIn","jsx","EmptyState","Chip","userRoles","required"],"mappings":";;;AAmBO,SAASA,EAAiB;AAAA,EAC/B,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AACF,GAAwC;AACtC,MAAIF,MAAW;AACb,WAAO,gBAAAG,EAACC,GAAA,EAAW,OAAM,yBAAA,CAAyB;AAEpD,MAAIJ,MAAW;AACb,WACE,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAO,kBAAkBL,EAAI,KAAK;AAAA,QAClC,aACEA,EAAI,eACJ;AAAA,QAEF,QACEG,IACE,gBAAAC,EAACE,GAAA,EAAK,MAAK,OAAM,SAASH,GAAU,UAAA,UAAA,CAEpC,IACE;AAAA,MAAA;AAAA,IAAA;AAKZ,QAAMI,IAAYL,GAAM,SAAS,CAAA,GAC3BM,IAAWR,EAAI,iBAAiB,CAAA;AACtC,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,aACEG,EAAS,SACL,GAAGR,EAAI,KAAK,qBAAqBQ,EAAS,KAAK,IAAI,CAAC,iBAClDD,EAAU,SAASA,EAAU,KAAK,IAAI,IAAI,QAC5C,MACA,4BAA4BP,EAAI,KAAK;AAAA,IAAA;AAAA,EAAA;AAIjD;"}
1
+ {"version":3,"file":"AuthRequiredCard.js","sources":["../../../src/layouts/shell/AuthRequiredCard.tsx"],"sourcesContent":["import { type ReactElement } from 'react';\n\nimport type { AegisAuthUser, AuthStatus } from '../../auth';\nimport { Chip } from '../../components/ui/Chip';\nimport { EmptyState } from '../../components/ui/EmptyState';\nimport { useStrings } from '../../locale';\nimport type { AegisApp } from './types';\n\ninterface AuthRequiredCardProps {\n app: AegisApp;\n status: AuthStatus;\n user: AegisAuthUser | null;\n onSignIn?: () => void;\n}\n\n/**\n * Rendered in place of an app's content when the current user is not\n * authorized to view it. Distinguishes between \"needs login\" and\n * \"logged in but missing role\" so the message and call-to-action match.\n */\nexport function AuthRequiredCard({\n app,\n status,\n user,\n onSignIn,\n}: AuthRequiredCardProps): ReactElement {\n const strings = useStrings();\n if (status === 'loading') {\n return <EmptyState title={strings.authChecking} />;\n }\n if (status === 'unauthenticated') {\n return (\n <EmptyState\n title={strings.authSignInTo(app.label)}\n description={app.description ?? strings.authSignInDescription}\n action={\n onSignIn ? (\n <Chip tone=\"ink\" onClick={onSignIn}>\n {strings.signIn}\n </Chip>\n ) : undefined\n }\n />\n );\n }\n const userRoles = user?.roles ?? [];\n const required = app.requiredRoles ?? [];\n return (\n <EmptyState\n title={strings.authForbiddenTitle}\n description={\n required.length\n ? strings.authForbiddenRoles(app.label, required, userRoles)\n : strings.authForbidden(app.label)\n }\n />\n );\n}\n"],"names":["AuthRequiredCard","app","status","user","onSignIn","strings","useStrings","jsx","EmptyState","Chip","userRoles","required"],"mappings":";;;;AAoBO,SAASA,EAAiB;AAAA,EAC/B,KAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AACF,GAAwC;AACtC,QAAMC,IAAUC,EAAA;AAChB,MAAIJ,MAAW;AACb,WAAO,gBAAAK,EAACC,GAAA,EAAW,OAAOH,EAAQ,aAAA,CAAc;AAElD,MAAIH,MAAW;AACb,WACE,gBAAAK;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAOH,EAAQ,aAAaJ,EAAI,KAAK;AAAA,QACrC,aAAaA,EAAI,eAAeI,EAAQ;AAAA,QACxC,QACED,IACE,gBAAAG,EAACE,GAAA,EAAK,MAAK,OAAM,SAASL,GACvB,UAAAC,EAAQ,OAAA,CACX,IACE;AAAA,MAAA;AAAA,IAAA;AAKZ,QAAMK,IAAYP,GAAM,SAAS,CAAA,GAC3BQ,IAAWV,EAAI,iBAAiB,CAAA;AACtC,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAOH,EAAQ;AAAA,MACf,aACEM,EAAS,SACLN,EAAQ,mBAAmBJ,EAAI,OAAOU,GAAUD,CAAS,IACzDL,EAAQ,cAAcJ,EAAI,KAAK;AAAA,IAAA;AAAA,EAAA;AAI3C;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("react"),o=require("../../components/ui/Button.cjs"),s=require("../../components/ui/ErrorState.cjs"),i=require("../PageWrapper.cjs");class a extends n.Component{state={error:null,resetKey:this.props.resetKey};static getDerivedStateFromError(e){return{error:e instanceof Error?e:new Error(String(e))}}static getDerivedStateFromProps(e,t){return e.resetKey===t.resetKey?null:{error:null,resetKey:e.resetKey}}retry=()=>{this.setState({error:null})};render(){const{error:e}=this.state;return e?r.jsx(i.PageWrapper,{children:r.jsx(s.ErrorState,{title:"This page failed to render",description:e.message,action:r.jsx(o.Button,{tone:"secondary",onClick:this.retry,children:"Try again"})})}):this.props.children}}exports.RouteErrorBoundary=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),o=require("react"),n=require("../../components/ui/Button.cjs"),s=require("../../components/ui/ErrorState.cjs"),i=require("../../locale/localeContext.cjs"),c=require("../PageWrapper.cjs");class a extends o.Component{static contextType=i.LocaleContext;state={error:null,resetKey:this.props.resetKey};static getDerivedStateFromError(e){return{error:e instanceof Error?e:new Error(String(e))}}static getDerivedStateFromProps(e,r){return e.resetKey===r.resetKey?null:{error:null,resetKey:e.resetKey}}retry=()=>{this.setState({error:null})};render(){const{error:e}=this.state;if(!e)return this.props.children;const r=this.context;return t.jsx(c.PageWrapper,{children:t.jsx(s.ErrorState,{title:r.routeErrorTitle,description:e.message,action:t.jsx(n.Button,{tone:"secondary",onClick:this.retry,children:r.retry})})})}}exports.RouteErrorBoundary=a;
2
2
  //# sourceMappingURL=RouteErrorBoundary.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteErrorBoundary.cjs","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n return (\n <PageWrapper>\n <ErrorState\n title=\"This page failed to render\"\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n Try again\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","error","props","state","PageWrapper","jsx","ErrorState","Button"],"mappings":"oQAsBO,MAAMA,UAA2BC,EAAAA,SAGtC,CACS,MAAiC,CACxC,MAAO,KACP,SAAU,KAAK,MAAM,QAAA,EAGvB,OAAO,yBACLC,EACkC,CAClC,MAAO,CAAE,MAAOA,aAAiB,MAAQA,EAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,CAAA,CAC1E,CAEA,OAAO,yBACLC,EACAC,EACyC,CACzC,OAAOD,EAAM,WAAaC,EAAM,SAC5B,KACA,CAAE,MAAO,KAAM,SAAUD,EAAM,QAAA,CACrC,CAEiB,MAAQ,IAAY,CACnC,KAAK,SAAS,CAAE,MAAO,IAAA,CAAM,CAC/B,EAES,QAAoB,CAC3B,KAAM,CAAE,MAAAD,GAAU,KAAK,MACvB,OAAKA,QAIFG,EAAAA,YAAA,CACC,SAAAC,EAAAA,IAACC,EAAAA,WAAA,CACC,MAAM,6BACN,YAAaL,EAAM,QACnB,aACGM,SAAA,CAAO,KAAK,YAAY,QAAS,KAAK,MAAO,SAAA,WAAA,CAE9C,CAAA,CAAA,EAGN,EAbO,KAAK,MAAM,QAetB,CACF"}
1
+ {"version":3,"file":"RouteErrorBoundary.cjs","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ContextType, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { LocaleContext } from '../../locale/localeContext';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n static override contextType = LocaleContext;\n declare context: ContextType<typeof LocaleContext>;\n\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n const strings = this.context;\n return (\n <PageWrapper>\n <ErrorState\n title={strings.routeErrorTitle}\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n {strings.retry}\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","LocaleContext","error","props","state","strings","PageWrapper","jsx","ErrorState","Button"],"mappings":"gTAuBO,MAAMA,UAA2BC,EAAAA,SAGtC,CACA,OAAgB,YAAcC,EAAAA,cAGrB,MAAiC,CACxC,MAAO,KACP,SAAU,KAAK,MAAM,QAAA,EAGvB,OAAO,yBACLC,EACkC,CAClC,MAAO,CAAE,MAAOA,aAAiB,MAAQA,EAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,CAAA,CAC1E,CAEA,OAAO,yBACLC,EACAC,EACyC,CACzC,OAAOD,EAAM,WAAaC,EAAM,SAC5B,KACA,CAAE,MAAO,KAAM,SAAUD,EAAM,QAAA,CACrC,CAEiB,MAAQ,IAAY,CACnC,KAAK,SAAS,CAAE,MAAO,IAAA,CAAM,CAC/B,EAES,QAAoB,CAC3B,KAAM,CAAE,MAAAD,GAAU,KAAK,MACvB,GAAI,CAACA,EACH,OAAO,KAAK,MAAM,SAEpB,MAAMG,EAAU,KAAK,QACrB,aACGC,EAAAA,YAAA,CACC,SAAAC,EAAAA,IAACC,EAAAA,WAAA,CACC,MAAOH,EAAQ,gBACf,YAAaH,EAAM,QACnB,aACGO,SAAA,CAAO,KAAK,YAAY,QAAS,KAAK,MACpC,SAAAJ,EAAQ,KAAA,CACX,CAAA,CAAA,EAGN,CAEJ,CACF"}
@@ -1,4 +1,5 @@
1
- import { Component, ReactNode } from 'react';
1
+ import { Component, ContextType, ReactNode } from 'react';
2
+ import { LocaleContext } from '../../locale/localeContext';
2
3
  interface RouteErrorBoundaryProps {
3
4
  /** A new key — the next location — clears the error and renders the route again. */
4
5
  resetKey: string;
@@ -14,6 +15,8 @@ interface RouteErrorBoundaryState {
14
15
  * clears it.
15
16
  */
16
17
  export declare class RouteErrorBoundary extends Component<RouteErrorBoundaryProps, RouteErrorBoundaryState> {
18
+ static contextType: import('react').Context<import('../..').AegisStrings>;
19
+ context: ContextType<typeof LocaleContext>;
17
20
  state: RouteErrorBoundaryState;
18
21
  static getDerivedStateFromError(error: unknown): Partial<RouteErrorBoundaryState>;
19
22
  static getDerivedStateFromProps(props: RouteErrorBoundaryProps, state: RouteErrorBoundaryState): Partial<RouteErrorBoundaryState> | null;
@@ -1,9 +1,11 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { Component as o } from "react";
3
- import { Button as n } from "../../components/ui/Button.js";
4
- import { ErrorState as s } from "../../components/ui/ErrorState.js";
5
- import { PageWrapper as i } from "../PageWrapper.js";
6
- class u extends o {
3
+ import { Button as s } from "../../components/ui/Button.js";
4
+ import { ErrorState as n } from "../../components/ui/ErrorState.js";
5
+ import { LocaleContext as i } from "../../locale/localeContext.js";
6
+ import { PageWrapper as a } from "../PageWrapper.js";
7
+ class h extends o {
8
+ static contextType = i;
7
9
  state = {
8
10
  error: null,
9
11
  resetKey: this.props.resetKey
@@ -19,17 +21,20 @@ class u extends o {
19
21
  };
20
22
  render() {
21
23
  const { error: r } = this.state;
22
- return r ? /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
23
- s,
24
+ if (!r)
25
+ return this.props.children;
26
+ const t = this.context;
27
+ return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
28
+ n,
24
29
  {
25
- title: "This page failed to render",
30
+ title: t.routeErrorTitle,
26
31
  description: r.message,
27
- action: /* @__PURE__ */ e(n, { tone: "secondary", onClick: this.retry, children: "Try again" })
32
+ action: /* @__PURE__ */ e(s, { tone: "secondary", onClick: this.retry, children: t.retry })
28
33
  }
29
- ) }) : this.props.children;
34
+ ) });
30
35
  }
31
36
  }
32
37
  export {
33
- u as RouteErrorBoundary
38
+ h as RouteErrorBoundary
34
39
  };
35
40
  //# sourceMappingURL=RouteErrorBoundary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteErrorBoundary.js","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n return (\n <PageWrapper>\n <ErrorState\n title=\"This page failed to render\"\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n Try again\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","error","props","state","PageWrapper","jsx","ErrorState","Button"],"mappings":";;;;;AAsBO,MAAMA,UAA2BC,EAGtC;AAAA,EACS,QAAiC;AAAA,IACxC,OAAO;AAAA,IACP,UAAU,KAAK,MAAM;AAAA,EAAA;AAAA,EAGvB,OAAO,yBACLC,GACkC;AAClC,WAAO,EAAE,OAAOA,aAAiB,QAAQA,IAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,EAAA;AAAA,EAC1E;AAAA,EAEA,OAAO,yBACLC,GACAC,GACyC;AACzC,WAAOD,EAAM,aAAaC,EAAM,WAC5B,OACA,EAAE,OAAO,MAAM,UAAUD,EAAM,SAAA;AAAA,EACrC;AAAA,EAEiB,QAAQ,MAAY;AACnC,SAAK,SAAS,EAAE,OAAO,KAAA,CAAM;AAAA,EAC/B;AAAA,EAES,SAAoB;AAC3B,UAAM,EAAE,OAAAD,MAAU,KAAK;AACvB,WAAKA,sBAIFG,GAAA,EACC,UAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,aAAaL,EAAM;AAAA,QACnB,0BACGM,GAAA,EAAO,MAAK,aAAY,SAAS,KAAK,OAAO,UAAA,YAAA,CAE9C;AAAA,MAAA;AAAA,IAAA,GAGN,IAbO,KAAK,MAAM;AAAA,EAetB;AACF;"}
1
+ {"version":3,"file":"RouteErrorBoundary.js","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ContextType, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { LocaleContext } from '../../locale/localeContext';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n static override contextType = LocaleContext;\n declare context: ContextType<typeof LocaleContext>;\n\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n const strings = this.context;\n return (\n <PageWrapper>\n <ErrorState\n title={strings.routeErrorTitle}\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n {strings.retry}\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","LocaleContext","error","props","state","strings","PageWrapper","jsx","ErrorState","Button"],"mappings":";;;;;;AAuBO,MAAMA,UAA2BC,EAGtC;AAAA,EACA,OAAgB,cAAcC;AAAA,EAGrB,QAAiC;AAAA,IACxC,OAAO;AAAA,IACP,UAAU,KAAK,MAAM;AAAA,EAAA;AAAA,EAGvB,OAAO,yBACLC,GACkC;AAClC,WAAO,EAAE,OAAOA,aAAiB,QAAQA,IAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,EAAA;AAAA,EAC1E;AAAA,EAEA,OAAO,yBACLC,GACAC,GACyC;AACzC,WAAOD,EAAM,aAAaC,EAAM,WAC5B,OACA,EAAE,OAAO,MAAM,UAAUD,EAAM,SAAA;AAAA,EACrC;AAAA,EAEiB,QAAQ,MAAY;AACnC,SAAK,SAAS,EAAE,OAAO,KAAA,CAAM;AAAA,EAC/B;AAAA,EAES,SAAoB;AAC3B,UAAM,EAAE,OAAAD,MAAU,KAAK;AACvB,QAAI,CAACA;AACH,aAAO,KAAK,MAAM;AAEpB,UAAMG,IAAU,KAAK;AACrB,6BACGC,GAAA,EACC,UAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAOH,EAAQ;AAAA,QACf,aAAaH,EAAM;AAAA,QACnB,0BACGO,GAAA,EAAO,MAAK,aAAY,SAAS,KAAK,OACpC,UAAAJ,EAAQ,MAAA,CACX;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAEJ;AACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),b=require("../../components/ui/InboxPage.cjs"),f=require("./useOpenNotification.cjs"),g=require("../../notifications/useNotifications.cjs");function x({defaultFilter:t,surface:r}){const{items:i,unreadCount:s,markAllRead:e,error:a,refetch:o}=g.useNotifications(),c=f.useOpenNotification(),u=n.useCallback(()=>{e?.()},[e]),l=n.useCallback(()=>{o?.()},[o]);return d.jsx(b.InboxPage,{items:i,unreadCount:s,onOpen:c,onMarkAllRead:e?u:void 0,error:a,onRetry:o?l:void 0,defaultFilter:t,surface:r})}exports.ShellInboxPage=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),n=require("react"),f=require("../../components/ui/InboxPage.cjs"),g=require("./useOpenNotification.cjs"),v=require("../../notifications/useNotifications.cjs");function x({defaultFilter:t,surface:r}){const{items:i,unreadCount:s,markAllRead:e,error:a,liveError:c,refetch:o}=v.useNotifications(),u=g.useOpenNotification(),l=n.useCallback(()=>{e?.()},[e]),d=n.useCallback(()=>{o?.()},[o]);return b.jsx(f.InboxPage,{items:i,unreadCount:s,onOpen:u,onMarkAllRead:e?l:void 0,error:a,liveError:c,onRetry:o?d:void 0,defaultFilter:t,surface:r})}exports.ShellInboxPage=x;
2
2
  //# sourceMappingURL=ShellInboxPage.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShellInboxPage.cjs","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":"oRAkBO,SAASA,EAAe,CAC7B,cAAAC,EACA,QAAAC,CACF,EAAsC,CACpC,KAAM,CAAE,MAAAC,EAAO,YAAAC,EAAa,YAAAC,EAAa,MAAAC,EAAO,QAAAC,CAAA,EAC9CC,mBAAA,EACIC,EAAOC,EAAAA,oBAAA,EACPC,EAAUC,EAAAA,YAAY,IAAM,CAC3BP,IAAA,CACP,EAAG,CAACA,CAAW,CAAC,EACVQ,EAAQD,EAAAA,YAAY,IAAM,CACzBL,IAAA,CACP,EAAG,CAACA,CAAO,CAAC,EACZ,OACEO,EAAAA,IAACC,EAAAA,UAAA,CACC,MAAAZ,EACA,YAAAC,EACA,OAAQK,EACR,cAAeJ,EAAcM,EAAU,OACvC,MAAAL,EACA,QAASC,EAAUM,EAAQ,OAC3B,cAAAZ,EACA,QAAAC,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"ShellInboxPage.cjs","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, liveError, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","liveError","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":"oRAkBO,SAASA,EAAe,CAC7B,cAAAC,EACA,QAAAC,CACF,EAAsC,CACpC,KAAM,CAAE,MAAAC,EAAO,YAAAC,EAAa,YAAAC,EAAa,MAAAC,EAAO,UAAAC,EAAW,QAAAC,CAAA,EACzDC,mBAAA,EACIC,EAAOC,EAAAA,oBAAA,EACPC,EAAUC,EAAAA,YAAY,IAAM,CAC3BR,IAAA,CACP,EAAG,CAACA,CAAW,CAAC,EACVS,EAAQD,EAAAA,YAAY,IAAM,CACzBL,IAAA,CACP,EAAG,CAACA,CAAO,CAAC,EACZ,OACEO,EAAAA,IAACC,EAAAA,UAAA,CACC,MAAAb,EACA,YAAAC,EACA,OAAQM,EACR,cAAeL,EAAcO,EAAU,OACvC,MAAAN,EACA,UAAAC,EACA,QAASC,EAAUM,EAAQ,OAC3B,cAAAb,EACA,QAAAC,CAAA,CAAA,CAGN"}
@@ -1,32 +1,33 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { useCallback as t } from "react";
3
- import { InboxPage as p } from "../../components/ui/InboxPage.js";
4
- import { useOpenNotification as d } from "./useOpenNotification.js";
5
- import { useNotifications as u } from "../../notifications/useNotifications.js";
6
- function R({
7
- defaultFilter: e,
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { useCallback as e } from "react";
3
+ import { InboxPage as d } from "../../components/ui/InboxPage.js";
4
+ import { useOpenNotification as u } from "./useOpenNotification.js";
5
+ import { useNotifications as v } from "../../notifications/useNotifications.js";
6
+ function g({
7
+ defaultFilter: t,
8
8
  surface: n
9
9
  }) {
10
- const { items: i, unreadCount: m, markAllRead: o, error: a, refetch: r } = u(), l = d(), s = t(() => {
10
+ const { items: i, unreadCount: m, markAllRead: o, error: a, liveError: l, refetch: r } = v(), s = u(), c = e(() => {
11
11
  o?.();
12
- }, [o]), c = t(() => {
12
+ }, [o]), f = e(() => {
13
13
  r?.();
14
14
  }, [r]);
15
- return /* @__PURE__ */ f(
16
- p,
15
+ return /* @__PURE__ */ p(
16
+ d,
17
17
  {
18
18
  items: i,
19
19
  unreadCount: m,
20
- onOpen: l,
21
- onMarkAllRead: o ? s : void 0,
20
+ onOpen: s,
21
+ onMarkAllRead: o ? c : void 0,
22
22
  error: a,
23
- onRetry: r ? c : void 0,
24
- defaultFilter: e,
23
+ liveError: l,
24
+ onRetry: r ? f : void 0,
25
+ defaultFilter: t,
25
26
  surface: n
26
27
  }
27
28
  );
28
29
  }
29
30
  export {
30
- R as ShellInboxPage
31
+ g as ShellInboxPage
31
32
  };
32
33
  //# sourceMappingURL=ShellInboxPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShellInboxPage.js","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":";;;;;AAkBO,SAASA,EAAe;AAAA,EAC7B,eAAAC;AAAA,EACA,SAAAC;AACF,GAAsC;AACpC,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,aAAAC,GAAa,OAAAC,GAAO,SAAAC,EAAA,IAC9CC,EAAA,GACIC,IAAOC,EAAA,GACPC,IAAUC,EAAY,MAAM;AAChC,IAAKP,IAAA;AAAA,EACP,GAAG,CAACA,CAAW,CAAC,GACVQ,IAAQD,EAAY,MAAM;AAC9B,IAAKL,IAAA;AAAA,EACP,GAAG,CAACA,CAAO,CAAC;AACZ,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAZ;AAAA,MACA,aAAAC;AAAA,MACA,QAAQK;AAAA,MACR,eAAeJ,IAAcM,IAAU;AAAA,MACvC,OAAAL;AAAA,MACA,SAASC,IAAUM,IAAQ;AAAA,MAC3B,eAAAZ;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"ShellInboxPage.js","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, liveError, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","liveError","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":";;;;;AAkBO,SAASA,EAAe;AAAA,EAC7B,eAAAC;AAAA,EACA,SAAAC;AACF,GAAsC;AACpC,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,aAAAC,GAAa,OAAAC,GAAO,WAAAC,GAAW,SAAAC,EAAA,IACzDC,EAAA,GACIC,IAAOC,EAAA,GACPC,IAAUC,EAAY,MAAM;AAChC,IAAKR,IAAA;AAAA,EACP,GAAG,CAACA,CAAW,CAAC,GACVS,IAAQD,EAAY,MAAM;AAC9B,IAAKL,IAAA;AAAA,EACP,GAAG,CAACA,CAAO,CAAC;AACZ,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAb;AAAA,MACA,aAAAC;AAAA,MACA,QAAQM;AAAA,MACR,eAAeL,IAAcO,IAAU;AAAA,MACvC,OAAAN;AAAA,MACA,WAAAC;AAAA,MACA,SAASC,IAAUM,IAAQ;AAAA,MAC3B,eAAAb;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("../../components/ui/NotificationBell.cjs"),u=require("./RouterLink.cjs"),c=require("./useOpenNotification.cjs"),s=require("../../notifications/useNotifications.cjs");function l({inboxPath:e}){const{items:i,unreadCount:t}=s.useNotifications(),o=c.useOpenNotification();return n.jsx(r.NotificationBell,{items:i,unreadCount:t,onOpen:o,inboxPath:e,linkComponent:u.RouterLink})}exports.ShellNotificationBell=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),l=require("react"),a=require("../../components/ui/NotificationBell.cjs"),f=require("./RouterLink.cjs"),N=require("./useOpenNotification.cjs"),p=require("../../notifications/useNotifications.cjs");function q({inboxPath:t}){const{items:i,unreadCount:o,error:n,liveError:r,refetch:e}=p.useNotifications(),c=N.useOpenNotification(),s=l.useCallback(()=>{e?.()},[e]);return u.jsx(a.NotificationBell,{items:i,unreadCount:o,error:n,liveError:r,onRetry:e?s:void 0,onOpen:c,inboxPath:t,linkComponent:f.RouterLink})}exports.ShellNotificationBell=q;
2
2
  //# sourceMappingURL=ShellNotificationBell.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShellNotificationBell.cjs","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount } = useNotifications();\n const open = useOpenNotification();\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","useNotifications","open","useOpenNotification","jsx","NotificationBell","RouterLink"],"mappings":"sSAQO,SAASA,EAAsB,CACpC,UAAAC,CACF,EAEiB,CACf,KAAM,CAAE,MAAAC,EAAO,YAAAC,CAAA,EAAgBC,mBAAA,EACzBC,EAAOC,EAAAA,oBAAA,EACb,OACEC,EAAAA,IAACC,EAAAA,iBAAA,CACC,MAAAN,EACA,YAAAC,EACA,OAAQE,EACR,UAAAJ,EACA,cAAeQ,EAAAA,UAAA,CAAA,CAGrB"}
1
+ {"version":3,"file":"ShellNotificationBell.cjs","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount, error, liveError, refetch } = useNotifications();\n const open = useOpenNotification();\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","error","liveError","refetch","useNotifications","open","useOpenNotification","retry","useCallback","jsx","NotificationBell","RouterLink"],"mappings":"yTAQO,SAASA,EAAsB,CACpC,UAAAC,CACF,EAEiB,CACf,KAAM,CAAE,MAAAC,EAAO,YAAAC,EAAa,MAAAC,EAAO,UAAAC,EAAW,QAAAC,CAAA,EAAYC,mBAAA,EACpDC,EAAOC,EAAAA,oBAAA,EACPC,EAAQC,EAAAA,YAAY,IAAM,CACzBL,IAAA,CACP,EAAG,CAACA,CAAO,CAAC,EACZ,OACEM,EAAAA,IAACC,EAAAA,iBAAA,CACC,MAAAX,EACA,YAAAC,EACA,MAAAC,EACA,UAAAC,EACA,QAASC,EAAUI,EAAQ,OAC3B,OAAQF,EACR,UAAAP,EACA,cAAea,EAAAA,UAAA,CAAA,CAGrB"}
@@ -1,24 +1,30 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { NotificationBell as e } from "../../components/ui/NotificationBell.js";
3
- import { RouterLink as m } from "./RouterLink.js";
4
- import { useOpenNotification as f } from "./useOpenNotification.js";
5
- import { useNotifications as p } from "../../notifications/useNotifications.js";
6
- function N({
7
- inboxPath: o
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { useCallback as c } from "react";
3
+ import { NotificationBell as l } from "../../components/ui/NotificationBell.js";
4
+ import { RouterLink as s } from "./RouterLink.js";
5
+ import { useOpenNotification as u } from "./useOpenNotification.js";
6
+ import { useNotifications as a } from "../../notifications/useNotifications.js";
7
+ function x({
8
+ inboxPath: r
8
9
  }) {
9
- const { items: t, unreadCount: i } = p(), n = f();
10
- return /* @__PURE__ */ r(
11
- e,
10
+ const { items: t, unreadCount: i, error: e, liveError: n, refetch: o } = a(), m = u(), f = c(() => {
11
+ o?.();
12
+ }, [o]);
13
+ return /* @__PURE__ */ p(
14
+ l,
12
15
  {
13
16
  items: t,
14
17
  unreadCount: i,
15
- onOpen: n,
16
- inboxPath: o,
17
- linkComponent: m
18
+ error: e,
19
+ liveError: n,
20
+ onRetry: o ? f : void 0,
21
+ onOpen: m,
22
+ inboxPath: r,
23
+ linkComponent: s
18
24
  }
19
25
  );
20
26
  }
21
27
  export {
22
- N as ShellNotificationBell
28
+ x as ShellNotificationBell
23
29
  };
24
30
  //# sourceMappingURL=ShellNotificationBell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShellNotificationBell.js","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount } = useNotifications();\n const open = useOpenNotification();\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","useNotifications","open","useOpenNotification","jsx","NotificationBell","RouterLink"],"mappings":";;;;;AAQO,SAASA,EAAsB;AAAA,EACpC,WAAAC;AACF,GAEiB;AACf,QAAM,EAAE,OAAAC,GAAO,aAAAC,EAAA,IAAgBC,EAAA,GACzBC,IAAOC,EAAA;AACb,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAN;AAAA,MACA,aAAAC;AAAA,MACA,QAAQE;AAAA,MACR,WAAAJ;AAAA,MACA,eAAeQ;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
1
+ {"version":3,"file":"ShellNotificationBell.js","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount, error, liveError, refetch } = useNotifications();\n const open = useOpenNotification();\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","error","liveError","refetch","useNotifications","open","useOpenNotification","retry","useCallback","jsx","NotificationBell","RouterLink"],"mappings":";;;;;;AAQO,SAASA,EAAsB;AAAA,EACpC,WAAAC;AACF,GAEiB;AACf,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,OAAAC,GAAO,WAAAC,GAAW,SAAAC,EAAA,IAAYC,EAAA,GACpDC,IAAOC,EAAA,GACPC,IAAQC,EAAY,MAAM;AAC9B,IAAKL,IAAA;AAAA,EACP,GAAG,CAACA,CAAO,CAAC;AACZ,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAX;AAAA,MACA,aAAAC;AAAA,MACA,OAAAC;AAAA,MACA,WAAAC;AAAA,MACA,SAASC,IAAUI,IAAQ;AAAA,MAC3B,QAAQF;AAAA,MACR,WAAAP;AAAA,MACA,eAAea;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),k=require("antd"),j=require("react-router-dom"),S=require("../../components/ui/Avatar.cjs"),q=require("../../components/ui/Chip.cjs"),C=require("../../components/ui/DropdownMenu.cjs"),E=require("../../components/ui/EnvironmentSwitcher.cjs"),B=require("./AppSwitcher.cjs"),H=require("./ShellNotificationBell.cjs"),A=require("../../locale/useStrings.cjs"),D=require("./environments/useEnvironment.cjs");function I({brand:s,apps:i,activeAppId:r,onAppSwitch:t,appSwitcher:o=!0,scrolled:a=!1,user:l,headerCenter:v,headerActions:w,inboxPath:d,onMobileMenuToggle:g,mobileMenuOpen:u=!1,menuToggleRef:N,showMobileMenu:f,sidebarCollapsible:b,sidebarCollapsed:h,onSidebarToggle:_,inlineSlotRef:y,inlineSlotActive:m,agentPanelOpen:c=!1,onAgentPanelToggle:x}){const n=A.useStrings(),p=e.jsxs(e.Fragment,{children:[s.logo&&e.jsx("span",{className:"aegis-shell__brand-logo",children:s.logo}),e.jsx("span",{className:"aegis-shell__brand-name",children:s.name})]});return e.jsxs("header",{className:a?"aegis-shell__header aegis-shell__header--scrolled":"aegis-shell__header",children:[e.jsxs("div",{className:"aegis-shell__header-left",children:[f&&g&&e.jsx("button",{ref:N,type:"button",className:"aegis-shell__menu-toggle",onClick:g,"aria-label":u?n.closeNavigation:n.openNavigation,"aria-expanded":u,children:e.jsx("span",{className:"aegis-shell__menu-toggle-glyph","aria-hidden":"true",children:"☰"})}),b&&_&&e.jsx("button",{type:"button",className:"aegis-shell__sidebar-toggle",onClick:_,"aria-label":h?n.showSidebar:n.hideSidebar,"aria-pressed":h,title:h?n.showSidebar:n.hideSidebar,children:e.jsx("span",{className:"aegis-shell__sidebar-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"8",y1:"3.5",x2:"8",y2:"16.5"})]})})}),o?e.jsx(B.AppSwitcher,{apps:i,activeAppId:r,onAppSwitch:t}):null,s.href?e.jsx(j.Link,{to:s.href,className:"aegis-shell__brand",children:p}):e.jsx("span",{className:"aegis-shell__brand",children:p})]}),e.jsx("div",{className:m?"aegis-shell__header-center aegis-shell__header-center--app":"aegis-shell__header-center",ref:y,"data-aegis-inline-slot":"",children:!m&&v}),e.jsxs("div",{className:"aegis-shell__header-right",children:[e.jsx(L,{}),w,d&&e.jsx(H.ShellNotificationBell,{inboxPath:d}),l&&e.jsx(M,{user:l}),x&&e.jsx("button",{type:"button",className:"aegis-shell__agent-toggle",onClick:x,"aria-label":c?"Hide agent panel":"Show agent panel","aria-pressed":c,title:c?"Hide agent panel":"Show agent panel",children:e.jsx("span",{className:"aegis-shell__agent-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"12",y1:"3.5",x2:"12",y2:"16.5"})]})})})]})]})}function L(){const s=D.useEnvironmentManifest();if(s.status==="error")return e.jsx(k.Tooltip,{title:`${s.error.message} Click to retry.`,children:e.jsx("span",{className:"aegis-shell__env-error",children:e.jsxs(q.Chip,{tone:"warning",onClick:s.retry,children:[e.jsx("span",{className:"aegis-shell__env-error-full",children:"Environments unavailable"}),e.jsx("span",{className:"aegis-shell__env-error-short",children:"Env error"})]})})});if(s.status!=="ready")return null;const i=s.manifest.environments.map(r=>({id:r.id,label:r.label,badge:r.badge,hint:r.baseUrl}));return e.jsx(E.EnvironmentSwitcher,{className:"aegis-shell__env-switcher",options:i,currentId:s.currentEnvId,onChange:s.setCurrentEnv})}function M({user:s}){const i=j.useNavigate(),r=(s.menu??[]).map(a=>{const l=a.to;return{key:a.key,label:a.label,onClick:l?()=>{i(l)}:a.onClick}}),t=s.avatar??(typeof s.name=="string"?e.jsx(S.Avatar,{name:s.name,size:"sm",className:"aegis-shell__user-initials"}):null),o=e.jsxs("span",{className:t?"aegis-shell__user aegis-shell__user--badge":"aegis-shell__user",children:[t,e.jsx("span",{className:"aegis-shell__user-name",children:s.name})]});return r.length===0?o:e.jsx(C.DropdownMenu,{trigger:o,items:r})}exports.TopHeader=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),S=require("antd"),p=require("react-router-dom"),q=require("../../components/ui/Avatar.cjs"),C=require("../../components/ui/Chip.cjs"),A=require("../../components/ui/DropdownMenu.cjs"),E=require("../../components/ui/EnvironmentSwitcher.cjs"),B=require("./AppSwitcher.cjs"),U=require("./ShellNotificationBell.cjs"),v=require("../../locale/useStrings.cjs"),D=require("./environments/useEnvironment.cjs");function I({brand:s,apps:n,activeAppId:i,onAppSwitch:a,appSwitcher:o=!0,scrolled:l=!1,user:t,headerCenter:w,headerActions:N,inboxPath:d,onMobileMenuToggle:g,mobileMenuOpen:u=!1,menuToggleRef:b,showMobileMenu:f,sidebarCollapsible:y,sidebarCollapsed:h,onSidebarToggle:_,inlineSlotRef:k,inlineSlotActive:m,agentPanelOpen:c=!1,onAgentPanelToggle:x}){const r=v.useStrings(),j=e.jsxs(e.Fragment,{children:[s.logo&&e.jsx("span",{className:"aegis-shell__brand-logo",children:s.logo}),e.jsx("span",{className:"aegis-shell__brand-name",children:s.name})]});return e.jsxs("header",{className:l?"aegis-shell__header aegis-shell__header--scrolled":"aegis-shell__header",children:[e.jsxs("div",{className:"aegis-shell__header-left",children:[f&&g&&e.jsx("button",{ref:b,type:"button",className:"aegis-shell__menu-toggle",onClick:g,"aria-label":u?r.closeNavigation:r.openNavigation,"aria-expanded":u,children:e.jsx("span",{className:"aegis-shell__menu-toggle-glyph","aria-hidden":"true",children:"☰"})}),y&&_&&e.jsx("button",{type:"button",className:"aegis-shell__sidebar-toggle",onClick:_,"aria-label":h?r.showSidebar:r.hideSidebar,"aria-pressed":h,title:h?r.showSidebar:r.hideSidebar,children:e.jsx("span",{className:"aegis-shell__sidebar-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"8",y1:"3.5",x2:"8",y2:"16.5"})]})})}),o?e.jsx(B.AppSwitcher,{apps:n,activeAppId:i,onAppSwitch:a}):null,s.href?e.jsx(p.Link,{to:s.href,className:"aegis-shell__brand",children:j}):e.jsx("span",{className:"aegis-shell__brand",children:j})]}),e.jsx("div",{className:m?"aegis-shell__header-center aegis-shell__header-center--app":"aegis-shell__header-center",ref:k,"data-aegis-inline-slot":"",children:!m&&w}),e.jsxs("div",{className:"aegis-shell__header-right",children:[e.jsx(L,{}),N,d&&e.jsx(U.ShellNotificationBell,{inboxPath:d}),t&&e.jsx(R,{user:t}),x&&e.jsx("button",{type:"button",className:"aegis-shell__agent-toggle",onClick:x,"aria-label":c?r.hideAgentPanel:r.showAgentPanel,"aria-pressed":c,title:c?r.hideAgentPanel:r.showAgentPanel,children:e.jsx("span",{className:"aegis-shell__agent-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"12",y1:"3.5",x2:"12",y2:"16.5"})]})})})]})]})}function L(){const s=v.useStrings(),n=D.useEnvironmentManifest();if(n.status==="error")return e.jsx(S.Tooltip,{title:s.environmentsRetry(n.error.message),children:e.jsx("span",{className:"aegis-shell__env-error",children:e.jsxs(C.Chip,{tone:"warning",onClick:n.retry,children:[e.jsx("span",{className:"aegis-shell__env-error-full",children:s.environmentsUnavailable}),e.jsx("span",{className:"aegis-shell__env-error-short",children:s.environmentsUnavailableShort})]})})});if(n.status!=="ready")return null;const i=n.manifest.environments.map(a=>({id:a.id,label:a.label,badge:a.badge,hint:a.baseUrl}));return e.jsx(E.EnvironmentSwitcher,{className:"aegis-shell__env-switcher",options:i,currentId:n.currentEnvId,onChange:n.setCurrentEnv})}function R({user:s}){const n=p.useNavigate(),i=(s.menu??[]).map(l=>{const t=l.to;return{key:l.key,label:l.label,onClick:t?()=>{n(t)}:l.onClick}}),a=s.avatar??(typeof s.name=="string"?e.jsx(q.Avatar,{name:s.name,size:"sm",className:"aegis-shell__user-initials"}):null),o=e.jsxs("span",{className:a?"aegis-shell__user aegis-shell__user--badge":"aegis-shell__user",children:[a,e.jsx("span",{className:"aegis-shell__user-name",children:s.name})]});return i.length===0?o:e.jsx(A.DropdownMenu,{trigger:o,items:i})}exports.TopHeader=I;
2
2
  //# sourceMappingURL=TopHeader.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopHeader.cjs","sources":["../../../src/layouts/shell/TopHeader.tsx"],"sourcesContent":["import type { ReactElement, ReactNode, Ref } from 'react';\n\nimport { Tooltip } from 'antd';\nimport { Link, useNavigate } from 'react-router-dom';\n\nimport { Avatar } from '../../components/ui/Avatar';\nimport { Chip } from '../../components/ui/Chip';\nimport {\n type DropdownItem,\n DropdownMenu,\n} from '../../components/ui/DropdownMenu';\nimport { EnvironmentSwitcher } from '../../components/ui/EnvironmentSwitcher';\nimport { useStrings } from '../../locale';\nimport { AppSwitcher } from './AppSwitcher';\nimport { ShellNotificationBell } from './ShellNotificationBell';\nimport { useEnvironmentManifest } from './environments';\nimport type { AegisApp, AegisBrand, AegisUser } from './types';\n\ninterface TopHeaderProps {\n brand: AegisBrand;\n apps: AegisApp[];\n activeAppId?: string;\n onAppSwitch?: (appId: string) => void;\n /** Whether to render the app launcher. */\n appSwitcher?: boolean;\n /** The page has scrolled under the header; it gets a shadow. */\n scrolled?: boolean;\n user?: AegisUser;\n headerCenter?: ReactNode;\n headerActions?: ReactNode;\n /** When set, render a notification bell linking to this path. */\n inboxPath?: string;\n /** Fired by the mobile hamburger; the shell owns the open state. */\n onMobileMenuToggle?: () => void;\n /** Whether the navigation drawer is open — drives aria-expanded on the hamburger. */\n mobileMenuOpen?: boolean;\n /** The hamburger button, which takes focus back when the drawer is dismissed. */\n menuToggleRef?: Ref<HTMLButtonElement>;\n /** Whether to render the mobile hamburger at all (only when sidebar exists). */\n showMobileMenu?: boolean;\n /** Whether to render the desktop sidebar collapse toggle. */\n sidebarCollapsible?: boolean;\n /** Current collapsed state — drives aria-pressed on the toggle. */\n sidebarCollapsed?: boolean;\n /** Fired by the desktop collapse button; the shell owns the state. */\n onSidebarToggle?: () => void;\n /**\n * Ref callback for the inline app-header slot. The active app's\n * `header` is portalled into this node so it appears inside the shell\n * header instead of below it.\n */\n inlineSlotRef?: (node: HTMLDivElement | null) => void;\n /** When true, hide the global `headerCenter` (an app header took it over). */\n inlineSlotActive?: boolean;\n /** Current agent panel state — drives aria-pressed on its toggle. */\n agentPanelOpen?: boolean;\n /** Fired by the agent panel toggle; the toggle renders only when set. */\n onAgentPanelToggle?: () => void;\n}\n\nexport function TopHeader({\n brand,\n apps,\n activeAppId,\n onAppSwitch,\n appSwitcher = true,\n scrolled = false,\n user,\n headerCenter,\n headerActions,\n inboxPath,\n onMobileMenuToggle,\n mobileMenuOpen = false,\n menuToggleRef,\n showMobileMenu,\n sidebarCollapsible,\n sidebarCollapsed,\n onSidebarToggle,\n inlineSlotRef,\n inlineSlotActive,\n agentPanelOpen = false,\n onAgentPanelToggle,\n}: TopHeaderProps): ReactElement {\n const strings = useStrings();\n const brandInner = (\n <>\n {brand.logo && (\n <span className=\"aegis-shell__brand-logo\">{brand.logo}</span>\n )}\n <span className=\"aegis-shell__brand-name\">{brand.name}</span>\n </>\n );\n\n return (\n <header\n className={\n scrolled\n ? 'aegis-shell__header aegis-shell__header--scrolled'\n : 'aegis-shell__header'\n }\n >\n <div className=\"aegis-shell__header-left\">\n {showMobileMenu && onMobileMenuToggle && (\n <button\n ref={menuToggleRef}\n type=\"button\"\n className=\"aegis-shell__menu-toggle\"\n onClick={onMobileMenuToggle}\n aria-label={\n mobileMenuOpen ? strings.closeNavigation : strings.openNavigation\n }\n aria-expanded={mobileMenuOpen}\n >\n <span className=\"aegis-shell__menu-toggle-glyph\" aria-hidden=\"true\">\n ☰\n </span>\n </button>\n )}\n {sidebarCollapsible && onSidebarToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__sidebar-toggle\"\n onClick={onSidebarToggle}\n aria-label={\n sidebarCollapsed ? strings.showSidebar : strings.hideSidebar\n }\n aria-pressed={sidebarCollapsed}\n title={sidebarCollapsed ? strings.showSidebar : strings.hideSidebar}\n >\n <span\n className=\"aegis-shell__sidebar-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"8\" y1=\"3.5\" x2=\"8\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n {appSwitcher ? (\n <AppSwitcher\n apps={apps}\n activeAppId={activeAppId}\n onAppSwitch={onAppSwitch}\n />\n ) : null}\n {brand.href ? (\n <Link to={brand.href} className=\"aegis-shell__brand\">\n {brandInner}\n </Link>\n ) : (\n <span className=\"aegis-shell__brand\">{brandInner}</span>\n )}\n </div>\n <div\n className={\n inlineSlotActive\n ? 'aegis-shell__header-center aegis-shell__header-center--app'\n : 'aegis-shell__header-center'\n }\n ref={inlineSlotRef}\n data-aegis-inline-slot=\"\"\n >\n {!inlineSlotActive && headerCenter}\n </div>\n <div className=\"aegis-shell__header-right\">\n <ActiveEnvironmentSwitcher />\n {headerActions}\n {inboxPath && <ShellNotificationBell inboxPath={inboxPath} />}\n {user && <UserMenu user={user} />}\n {onAgentPanelToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__agent-toggle\"\n onClick={onAgentPanelToggle}\n aria-label={\n agentPanelOpen ? 'Hide agent panel' : 'Show agent panel'\n }\n aria-pressed={agentPanelOpen}\n title={agentPanelOpen ? 'Hide agent panel' : 'Show agent panel'}\n >\n <span\n className=\"aegis-shell__agent-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"12\" y1=\"3.5\" x2=\"12\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n </div>\n </header>\n );\n}\n\nfunction ActiveEnvironmentSwitcher(): ReactElement | null {\n const state = useEnvironmentManifest();\n if (state.status === 'error') {\n return (\n <Tooltip title={`${state.error.message} Click to retry.`}>\n <span className=\"aegis-shell__env-error\">\n <Chip tone=\"warning\" onClick={state.retry}>\n <span className=\"aegis-shell__env-error-full\">\n Environments unavailable\n </span>\n <span className=\"aegis-shell__env-error-short\">Env error</span>\n </Chip>\n </span>\n </Tooltip>\n );\n }\n if (state.status !== 'ready') {\n return null;\n }\n const options = state.manifest.environments.map((e) => ({\n id: e.id,\n label: e.label,\n badge: e.badge,\n hint: e.baseUrl,\n }));\n return (\n <EnvironmentSwitcher\n className=\"aegis-shell__env-switcher\"\n options={options}\n currentId={state.currentEnvId}\n onChange={state.setCurrentEnv}\n />\n );\n}\n\nfunction UserMenu({ user }: { user: AegisUser }): ReactElement {\n const navigate = useNavigate();\n const items: DropdownItem[] = (user.menu ?? []).map((entry) => {\n const to = entry.to;\n return {\n key: entry.key,\n label: entry.label,\n onClick: to\n ? () => {\n navigate(to);\n }\n : entry.onClick,\n };\n });\n const badge =\n user.avatar ??\n (typeof user.name === 'string' ? (\n <Avatar\n name={user.name}\n size=\"sm\"\n className=\"aegis-shell__user-initials\"\n />\n ) : null);\n const trigger = (\n <span\n className={\n badge\n ? 'aegis-shell__user aegis-shell__user--badge'\n : 'aegis-shell__user'\n }\n >\n {badge}\n <span className=\"aegis-shell__user-name\">{user.name}</span>\n </span>\n );\n if (items.length === 0) {\n return trigger;\n }\n return <DropdownMenu trigger={trigger} items={items} />;\n}\n"],"names":["TopHeader","brand","apps","activeAppId","onAppSwitch","appSwitcher","scrolled","user","headerCenter","headerActions","inboxPath","onMobileMenuToggle","mobileMenuOpen","menuToggleRef","showMobileMenu","sidebarCollapsible","sidebarCollapsed","onSidebarToggle","inlineSlotRef","inlineSlotActive","agentPanelOpen","onAgentPanelToggle","strings","useStrings","brandInner","jsxs","Fragment","jsx","AppSwitcher","Link","ActiveEnvironmentSwitcher","ShellNotificationBell","UserMenu","state","useEnvironmentManifest","Tooltip","Chip","options","e","EnvironmentSwitcher","navigate","useNavigate","items","entry","to","badge","Avatar","trigger","DropdownMenu"],"mappings":"sgBA4DO,SAASA,EAAU,CACxB,MAAAC,EACA,KAAAC,EACA,YAAAC,EACA,YAAAC,EACA,YAAAC,EAAc,GACd,SAAAC,EAAW,GACX,KAAAC,EACA,aAAAC,EACA,cAAAC,EACA,UAAAC,EACA,mBAAAC,EACA,eAAAC,EAAiB,GACjB,cAAAC,EACA,eAAAC,EACA,mBAAAC,EACA,iBAAAC,EACA,gBAAAC,EACA,cAAAC,EACA,iBAAAC,EACA,eAAAC,EAAiB,GACjB,mBAAAC,CACF,EAAiC,CAC/B,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EACJC,EAAAA,KAAAC,EAAAA,SAAA,CACG,SAAA,CAAAzB,EAAM,MACL0B,EAAAA,IAAC,OAAA,CAAK,UAAU,0BAA2B,WAAM,KAAK,EAExDA,EAAAA,IAAC,OAAA,CA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AAU,8BAA8B,SAAA,2BAE9C,EACAA,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAA+B,SAAA,WAAA,CAAS,CAAA,CAAA,CAC1D,EACF,EACF,EAGJ,GAAIM,EAAM,SAAW,QACnB,OAAO,KAET,MAAMI,EAAUJ,EAAM,SAAS,aAAa,IAAKK,IAAO,CACtD,GAAIA,EAAE,GACN,MAAOA,EAAE,MACT,MAAOA,EAAE,MACT,KAAMA,EAAE,OAAA,EACR,EACF,OACEX,EAAAA,IAACY,EAAAA,oBAAA,CACC,UAAU,4BACV,QAAAF,EACA,UAAWJ,EAAM,aACjB,SAAUA,EAAM,aAAA,CAAA,CAGtB,CAEA,SAASD,EAAS,CAAE,KAAAzB,GAA2C,CAC7D,MAAMiC,EAAWC,EAAAA,YAAA,EACXC,GAAyBnC,EAAK,MAAQ,CAAA,GAAI,IAAKoC,GAAU,CAC7D,MAAMC,EAAKD,EAAM,GACjB,MAAO,CACL,IAAKA,EAAM,IACX,MAAOA,EAAM,MACb,QAASC,EACL,IAAM,CACJJ,EAASI,CAAE,CACb,EACAD,EAAM,OAAA,CAEd,CAAC,EACKE,EACJtC,EAAK,SACJ,OAAOA,EAAK,MAAS,SACpBoB,EAAAA,IAACmB,EAAAA,OAAA,CACC,KAAMvC,EAAK,KACX,KAAK,KACL,UAAU,4BAAA,CAAA,EAEV,MACAwC,EACJtB,EAAAA,KAAC,OAAA,CACC,UACEoB,EACI,6CACA,oBAGL,SAAA,CAAAA,EACDlB,EAAAA,IAAC,OAAA,CAAK,UAAU,yBAA0B,WAAK,IAAA,CAAK,CAAA,CAAA,CAAA,EAGxD,OAAIe,EAAM,SAAW,EACZK,EAEFpB,EAAAA,IAACqB,EAAAA,aAAA,CAAa,QAAAD,EAAkB,MAAAL,CAAA,CAAc,CACvD"}
1
+ {"version":3,"file":"TopHeader.cjs","sources":["../../../src/layouts/shell/TopHeader.tsx"],"sourcesContent":["import type { ReactElement, ReactNode, Ref } from 'react';\n\nimport { Tooltip } from 'antd';\nimport { Link, useNavigate } from 'react-router-dom';\n\nimport { Avatar } from '../../components/ui/Avatar';\nimport { Chip } from '../../components/ui/Chip';\nimport {\n type DropdownItem,\n DropdownMenu,\n} from '../../components/ui/DropdownMenu';\nimport { EnvironmentSwitcher } from '../../components/ui/EnvironmentSwitcher';\nimport { useStrings } from '../../locale';\nimport { AppSwitcher } from './AppSwitcher';\nimport { ShellNotificationBell } from './ShellNotificationBell';\nimport { useEnvironmentManifest } from './environments';\nimport type { AegisApp, AegisBrand, AegisUser } from './types';\n\ninterface TopHeaderProps {\n brand: AegisBrand;\n apps: AegisApp[];\n activeAppId?: string;\n onAppSwitch?: (appId: string) => void;\n /** Whether to render the app launcher. */\n appSwitcher?: boolean;\n /** The page has scrolled under the header; it gets a shadow. */\n scrolled?: boolean;\n user?: AegisUser;\n headerCenter?: ReactNode;\n headerActions?: ReactNode;\n /** When set, render a notification bell linking to this path. */\n inboxPath?: string;\n /** Fired by the mobile hamburger; the shell owns the open state. */\n onMobileMenuToggle?: () => void;\n /** Whether the navigation drawer is open — drives aria-expanded on the hamburger. */\n mobileMenuOpen?: boolean;\n /** The hamburger button, which takes focus back when the drawer is dismissed. */\n menuToggleRef?: Ref<HTMLButtonElement>;\n /** Whether to render the mobile hamburger at all (only when sidebar exists). */\n showMobileMenu?: boolean;\n /** Whether to render the desktop sidebar collapse toggle. */\n sidebarCollapsible?: boolean;\n /** Current collapsed state — drives aria-pressed on the toggle. */\n sidebarCollapsed?: boolean;\n /** Fired by the desktop collapse button; the shell owns the state. */\n onSidebarToggle?: () => void;\n /**\n * Ref callback for the inline app-header slot. The active app's\n * `header` is portalled into this node so it appears inside the shell\n * header instead of below it.\n */\n inlineSlotRef?: (node: HTMLDivElement | null) => void;\n /** When true, hide the global `headerCenter` (an app header took it over). */\n inlineSlotActive?: boolean;\n /** Current agent panel state — drives aria-pressed on its toggle. */\n agentPanelOpen?: boolean;\n /** Fired by the agent panel toggle; the toggle renders only when set. */\n onAgentPanelToggle?: () => void;\n}\n\nexport function TopHeader({\n brand,\n apps,\n activeAppId,\n onAppSwitch,\n appSwitcher = true,\n scrolled = false,\n user,\n headerCenter,\n headerActions,\n inboxPath,\n onMobileMenuToggle,\n mobileMenuOpen = false,\n menuToggleRef,\n showMobileMenu,\n sidebarCollapsible,\n sidebarCollapsed,\n onSidebarToggle,\n inlineSlotRef,\n inlineSlotActive,\n agentPanelOpen = false,\n onAgentPanelToggle,\n}: TopHeaderProps): ReactElement {\n const strings = useStrings();\n const brandInner = (\n <>\n {brand.logo && (\n <span className=\"aegis-shell__brand-logo\">{brand.logo}</span>\n )}\n <span className=\"aegis-shell__brand-name\">{brand.name}</span>\n </>\n );\n\n return (\n <header\n className={\n scrolled\n ? 'aegis-shell__header aegis-shell__header--scrolled'\n : 'aegis-shell__header'\n }\n >\n <div className=\"aegis-shell__header-left\">\n {showMobileMenu && onMobileMenuToggle && (\n <button\n ref={menuToggleRef}\n type=\"button\"\n className=\"aegis-shell__menu-toggle\"\n onClick={onMobileMenuToggle}\n aria-label={\n mobileMenuOpen ? strings.closeNavigation : strings.openNavigation\n }\n aria-expanded={mobileMenuOpen}\n >\n <span className=\"aegis-shell__menu-toggle-glyph\" aria-hidden=\"true\">\n ☰\n </span>\n </button>\n )}\n {sidebarCollapsible && onSidebarToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__sidebar-toggle\"\n onClick={onSidebarToggle}\n aria-label={\n sidebarCollapsed ? strings.showSidebar : strings.hideSidebar\n }\n aria-pressed={sidebarCollapsed}\n title={sidebarCollapsed ? strings.showSidebar : strings.hideSidebar}\n >\n <span\n className=\"aegis-shell__sidebar-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"8\" y1=\"3.5\" x2=\"8\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n {appSwitcher ? (\n <AppSwitcher\n apps={apps}\n activeAppId={activeAppId}\n onAppSwitch={onAppSwitch}\n />\n ) : null}\n {brand.href ? (\n <Link to={brand.href} className=\"aegis-shell__brand\">\n {brandInner}\n </Link>\n ) : (\n <span className=\"aegis-shell__brand\">{brandInner}</span>\n )}\n </div>\n <div\n className={\n inlineSlotActive\n ? 'aegis-shell__header-center aegis-shell__header-center--app'\n : 'aegis-shell__header-center'\n }\n ref={inlineSlotRef}\n data-aegis-inline-slot=\"\"\n >\n {!inlineSlotActive && headerCenter}\n </div>\n <div className=\"aegis-shell__header-right\">\n <ActiveEnvironmentSwitcher />\n {headerActions}\n {inboxPath && <ShellNotificationBell inboxPath={inboxPath} />}\n {user && <UserMenu user={user} />}\n {onAgentPanelToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__agent-toggle\"\n onClick={onAgentPanelToggle}\n aria-label={\n agentPanelOpen ? strings.hideAgentPanel : strings.showAgentPanel\n }\n aria-pressed={agentPanelOpen}\n title={\n agentPanelOpen ? strings.hideAgentPanel : strings.showAgentPanel\n }\n >\n <span\n className=\"aegis-shell__agent-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"12\" y1=\"3.5\" x2=\"12\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n </div>\n </header>\n );\n}\n\nfunction ActiveEnvironmentSwitcher(): ReactElement | null {\n const strings = useStrings();\n const state = useEnvironmentManifest();\n if (state.status === 'error') {\n return (\n <Tooltip title={strings.environmentsRetry(state.error.message)}>\n <span className=\"aegis-shell__env-error\">\n <Chip tone=\"warning\" onClick={state.retry}>\n <span className=\"aegis-shell__env-error-full\">\n {strings.environmentsUnavailable}\n </span>\n <span className=\"aegis-shell__env-error-short\">\n {strings.environmentsUnavailableShort}\n </span>\n </Chip>\n </span>\n </Tooltip>\n );\n }\n if (state.status !== 'ready') {\n return null;\n }\n const options = state.manifest.environments.map((e) => ({\n id: e.id,\n label: e.label,\n badge: e.badge,\n hint: e.baseUrl,\n }));\n return (\n <EnvironmentSwitcher\n className=\"aegis-shell__env-switcher\"\n options={options}\n currentId={state.currentEnvId}\n onChange={state.setCurrentEnv}\n />\n );\n}\n\nfunction UserMenu({ user }: { user: AegisUser }): ReactElement {\n const navigate = useNavigate();\n const items: DropdownItem[] = (user.menu ?? []).map((entry) => {\n const to = entry.to;\n return {\n key: entry.key,\n label: entry.label,\n onClick: to\n ? () => {\n navigate(to);\n }\n : entry.onClick,\n };\n });\n const badge =\n user.avatar ??\n (typeof user.name === 'string' ? (\n <Avatar\n name={user.name}\n size=\"sm\"\n className=\"aegis-shell__user-initials\"\n />\n ) : null);\n const trigger = (\n <span\n className={\n badge\n ? 'aegis-shell__user aegis-shell__user--badge'\n : 'aegis-shell__user'\n }\n >\n {badge}\n <span className=\"aegis-shell__user-name\">{user.name}</span>\n </span>\n );\n if (items.length === 0) {\n return trigger;\n }\n return <DropdownMenu trigger={trigger} items={items} />;\n}\n"],"names":["TopHeader","brand","apps","activeAppId","onAppSwitch","appSwitcher","scrolled","user","headerCenter","headerActions","inboxPath","onMobileMenuToggle","mobileMenuOpen","menuToggleRef","showMobileMenu","sidebarCollapsible","sidebarCollapsed","onSidebarToggle","inlineSlotRef","inlineSlotActive","agentPanelOpen","onAgentPanelToggle","strings","useStrings","brandInner","jsxs","Fragment","jsx","AppSwitcher","Link","ActiveEnvironmentSwitcher","ShellNotificationBell","UserMenu","state","useEnvironmentManifest","Tooltip","Chip","options","e","EnvironmentSwitcher","navigate","useNavig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