@adecore/agents-react 0.53.2 → 0.54.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 (355) hide show
  1. package/dist/agents/AgentIcon.js +1 -1
  2. package/dist/agents/AgentModelLabel.js +1 -1
  3. package/dist/agents/accounts.js +1 -1
  4. package/dist/chat/attachments.js +1 -1
  5. package/dist/chat/forks.js +1 -1
  6. package/dist/chat/logic/limit.js +1 -1
  7. package/dist/chat/logic/scrubber.js +1 -1
  8. package/dist/chat/logic/selection-switch.d.ts +6 -0
  9. package/dist/chat/logic/selection-switch.js +42 -0
  10. package/dist/chat/logic/timeline-target.d.ts +1 -1
  11. package/dist/chat/logic/timeline.d.ts +6 -1
  12. package/dist/chat/logic/timeline.js +16 -2
  13. package/dist/chat/logic/tool-looks.js +1 -1
  14. package/dist/chat/logic/tools.js +1 -1
  15. package/dist/chat/logic/workflow.js +1 -1
  16. package/dist/chat/preferences.js +1 -1
  17. package/dist/chat/runtime-modes.js +1 -1
  18. package/dist/chat/send-key.js +1 -1
  19. package/dist/chat/stash.js +2 -2
  20. package/dist/chat/subagent-list.js +1 -1
  21. package/dist/chat/ui/AccountPill.js +3 -3
  22. package/dist/chat/ui/BookmarkMarker.js +6 -6
  23. package/dist/chat/ui/BookmarkSubmenu.js +5 -5
  24. package/dist/chat/ui/ChatActivity.js +15 -14
  25. package/dist/chat/ui/CodeBlock.js +9 -7
  26. package/dist/chat/ui/Composer.js +13 -13
  27. package/dist/chat/ui/ComposerInput.d.ts +1 -1
  28. package/dist/chat/ui/ComposerInput.js +35 -18
  29. package/dist/chat/ui/DiffPool.js +1 -1
  30. package/dist/chat/ui/EditDiff.js +2 -2
  31. package/dist/chat/ui/GoalDock.js +5 -5
  32. package/dist/chat/ui/ImageView.js +4 -4
  33. package/dist/chat/ui/LimitState.js +12 -12
  34. package/dist/chat/ui/Markdown.d.ts +1 -1
  35. package/dist/chat/ui/Markdown.js +11 -10
  36. package/dist/chat/ui/MermaidBlock.js +7 -6
  37. package/dist/chat/ui/MessageActions.js +7 -7
  38. package/dist/chat/ui/ModelMarks.js +2 -2
  39. package/dist/chat/ui/Pickers.d.ts +1 -1
  40. package/dist/chat/ui/Pickers.js +32 -27
  41. package/dist/chat/ui/PromptComposer.d.ts +1 -1
  42. package/dist/chat/ui/PromptComposer.js +5 -5
  43. package/dist/chat/ui/PromptEditor.js +3 -3
  44. package/dist/chat/ui/QuoteButton.js +2 -2
  45. package/dist/chat/ui/ReferenceChip.js +3 -3
  46. package/dist/chat/ui/ReferenceTrail.js +2 -2
  47. package/dist/chat/ui/ResumeCompactionDock.js +3 -3
  48. package/dist/chat/ui/RunSettings.js +11 -11
  49. package/dist/chat/ui/Scrubber.js +4 -4
  50. package/dist/chat/ui/SessionLine.js +2 -2
  51. package/dist/chat/ui/ShellCommand.d.ts +1 -1
  52. package/dist/chat/ui/ShellCommand.js +2 -2
  53. package/dist/chat/ui/SubagentControls.js +3 -3
  54. package/dist/chat/ui/SubagentInfo.js +5 -5
  55. package/dist/chat/ui/SubagentStopButton.js +2 -2
  56. package/dist/chat/ui/SubagentTimeline.js +18 -16
  57. package/dist/chat/ui/Timeline.js +231 -145
  58. package/dist/chat/ui/TimelineMenu.js +7 -7
  59. package/dist/chat/ui/UnifiedDiff.js +2 -2
  60. package/dist/chat/ui/VisualDialogs.js +1 -1
  61. package/dist/chat/ui/VisualFrame.js +4 -4
  62. package/dist/chat/ui/WorkflowAgentLine.d.ts +1 -1
  63. package/dist/chat/ui/WorkflowAgentLine.js +3 -3
  64. package/dist/chat/ui/chip-clipboard.d.ts +1 -1
  65. package/dist/chat/ui/composer/ComposerControls.d.ts +1 -1
  66. package/dist/chat/ui/composer/ComposerControls.js +4 -4
  67. package/dist/chat/ui/composer/ComposerMenu.js +5 -4
  68. package/dist/chat/ui/composer/DraftParts.js +2 -2
  69. package/dist/chat/ui/composer/QueuedMessages.js +2 -2
  70. package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
  71. package/dist/chat/ui/composer/chips.d.ts +1 -1
  72. package/dist/chat/ui/composer/chips.js +2 -2
  73. package/dist/chat/ui/composer/key-handler.js +1 -1
  74. package/dist/chat/ui/composer/placeholder.js +1 -1
  75. package/dist/chat/ui/composer/use-composer-menus.d.ts +1 -1
  76. package/dist/chat/ui/composer/use-composer-menus.js +1 -1
  77. package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
  78. package/dist/chat/ui/composer/use-draft-files.d.ts +2 -2
  79. package/dist/chat/ui/composer/use-draft-files.js +1 -1
  80. package/dist/chat/ui/composer/use-effort-stepper.js +1 -1
  81. package/dist/chat/ui/composer/use-prompt-menus.d.ts +2 -2
  82. package/dist/chat/ui/composer/use-prompt-menus.js +1 -1
  83. package/dist/chat/ui/diff/ApprovalReview.js +2 -2
  84. package/dist/chat/ui/diff/DiffOmitted.js +1 -1
  85. package/dist/chat/ui/diff/DiffStack.js +2 -2
  86. package/dist/chat/ui/diff/EditorEditDiff.d.ts +1 -1
  87. package/dist/chat/ui/diff/EditorEditDiff.js +5 -5
  88. package/dist/chat/ui/diff/EditorPatchDiff.d.ts +1 -1
  89. package/dist/chat/ui/diff/EditorPatchDiff.js +1 -1
  90. package/dist/chat/ui/diff/LegacyEditDiff.js +47 -31
  91. package/dist/chat/ui/diff/LegacyUnifiedDiff.js +93 -69
  92. package/dist/chat/ui/diff/RawDiff.js +54 -35
  93. package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
  94. package/dist/chat/ui/highlighter.d.ts +1 -1
  95. package/dist/chat/ui/highlighter.js +1 -1
  96. package/dist/chat/ui/icons.js +1 -1
  97. package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +1 -1
  98. package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +4 -4
  99. package/dist/chat/ui/intelligent-ui/UiFallbackPart.js +2 -2
  100. package/dist/chat/ui/intelligent-ui/UiReply.d.ts +2 -2
  101. package/dist/chat/ui/intelligent-ui/UiReply.js +8 -8
  102. package/dist/chat/ui/intelligent-ui/node-text.d.ts +1 -1
  103. package/dist/chat/ui/intelligent-ui/render-context.d.ts +1 -1
  104. package/dist/chat/ui/intelligent-ui/renderers/chart.js +28 -15
  105. package/dist/chat/ui/intelligent-ui/renderers/choices.js +4 -4
  106. package/dist/chat/ui/intelligent-ui/renderers/content.js +6 -6
  107. package/dist/chat/ui/intelligent-ui/renderers/data.js +104 -87
  108. package/dist/chat/ui/intelligent-ui/renderers/inputs.js +3 -3
  109. package/dist/chat/ui/intelligent-ui/renderers/links.js +2 -2
  110. package/dist/chat/ui/intelligent-ui/renderers/map-view.js +4 -4
  111. package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -3
  112. package/dist/chat/ui/intelligent-ui/renderers/structure.js +2 -2
  113. package/dist/chat/ui/intelligent-ui/renderers/text.js +5 -5
  114. package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
  115. package/dist/chat/ui/intelligent-ui/use-ui-links.d.ts +1 -1
  116. package/dist/chat/ui/intelligent-ui/use-ui-links.js +2 -2
  117. package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
  118. package/dist/chat/ui/reference-icons.d.ts +1 -1
  119. package/dist/chat/ui/reference-icons.js +2 -2
  120. package/dist/chat/ui/reply-context.d.ts +1 -1
  121. package/dist/chat/ui/rows/ForksRow.js +3 -3
  122. package/dist/chat/ui/rows/GeneratedImageRow.js +5 -5
  123. package/dist/chat/ui/rows/MessageRows.d.ts +6 -1
  124. package/dist/chat/ui/rows/MessageRows.js +151 -22
  125. package/dist/chat/ui/rows/Rows.js +39 -21
  126. package/dist/chat/ui/rows/SubagentRow.js +16 -16
  127. package/dist/chat/ui/rows/TaskRow.js +3 -3
  128. package/dist/chat/ui/rows/VisualRow.js +2 -2
  129. package/dist/chat/ui/rows/WorkRows.d.ts +2 -2
  130. package/dist/chat/ui/rows/WorkRows.js +37 -25
  131. package/dist/chat/ui/rows/WorkflowRow.js +8 -8
  132. package/dist/chat/ui/use-diff-source-tokens.js +1 -1
  133. package/dist/chat/ui/visual-theme.d.ts +1 -1
  134. package/dist/chat/ui/visual-theme.js +2 -2
  135. package/dist/chat/workflow-list.js +1 -1
  136. package/dist/host.d.ts +4 -4
  137. package/dist/host.js +1 -1
  138. package/dist/lazy.js +1 -1
  139. package/dist/locales/en/agent-chat.d.ts +4 -0
  140. package/dist/locales/en/agent-chat.js +4 -0
  141. package/dist/locales/nl/agent-chat.d.ts +4 -0
  142. package/dist/locales/nl/agent-chat.js +4 -0
  143. package/dist/port-transport.js +1 -1
  144. package/dist/prompts/logic/subjects.d.ts +1 -1
  145. package/dist/prompts/ui/ApprovalBody.js +16 -7
  146. package/dist/prompts/ui/PromptActions.js +2 -2
  147. package/dist/prompts/ui/PromptCard.js +5 -4
  148. package/dist/prompts/ui/PromptView.js +1 -1
  149. package/dist/prompts/ui/QuestionBody.js +4 -4
  150. package/dist/providers/AccountDetail.js +4 -4
  151. package/dist/providers/AccountOrderList.js +2 -2
  152. package/dist/providers/AccountVariables.js +3 -3
  153. package/dist/providers/AddAccountForm.js +6 -6
  154. package/dist/providers/CliDetail.js +8 -8
  155. package/dist/providers/InstallPage.js +3 -3
  156. package/dist/providers/ProviderList.js +2 -2
  157. package/dist/providers/ProvidersPane.d.ts +1 -1
  158. package/dist/providers/ProvidersPane.js +5 -5
  159. package/dist/providers/install-steps.d.ts +1 -1
  160. package/dist/settings/sections.d.ts +2 -2
  161. package/dist/state/chats.js +1 -1
  162. package/dist/state/usage.js +2 -2
  163. package/dist/theme.css +4 -4
  164. package/dist/transport.d.ts +1 -1
  165. package/dist/usage/LimitsList.js +4 -4
  166. package/dist/usage/UsageBreakdown.js +5 -5
  167. package/dist/usage/UsageChart.js +1 -1
  168. package/dist/usage/UsageDialog.js +1 -1
  169. package/dist/usage/UsageLimits.js +6 -6
  170. package/dist/usage/UsageLimitsCard.js +2 -2
  171. package/dist/usage/UsagePage.js +200 -189
  172. package/dist/usage/UsagePane.js +2 -2
  173. package/dist/usage/UsageSummary.js +1 -1
  174. package/dist/usage/UsageTiles.js +1 -1
  175. package/dist/usage/limit-groups.js +2 -2
  176. package/dist/usage/summary.js +1 -1
  177. package/package.json +9 -8
  178. package/src/agents/AgentIcon.tsx +1 -1
  179. package/src/agents/AgentModelLabel.tsx +2 -2
  180. package/src/agents/ProviderLogo.tsx +1 -1
  181. package/src/agents/accounts.ts +1 -1
  182. package/src/agents/option-words.ts +1 -1
  183. package/src/chat/attachments.ts +1 -1
  184. package/src/chat/bookmarks.ts +1 -1
  185. package/src/chat/drafts.ts +1 -1
  186. package/src/chat/forks.ts +1 -1
  187. package/src/chat/logic/fork.ts +1 -1
  188. package/src/chat/logic/limit.ts +1 -1
  189. package/src/chat/logic/scrubber.ts +1 -1
  190. package/src/chat/logic/selection-switch.ts +47 -0
  191. package/src/chat/logic/timeline-copy.ts +1 -1
  192. package/src/chat/logic/timeline-target.ts +1 -1
  193. package/src/chat/logic/timeline.ts +28 -4
  194. package/src/chat/logic/tool-looks.ts +1 -1
  195. package/src/chat/logic/tools.ts +1 -1
  196. package/src/chat/logic/workflow.ts +1 -1
  197. package/src/chat/pending-prompts.ts +1 -1
  198. package/src/chat/preferences.ts +1 -1
  199. package/src/chat/reading-width.ts +1 -1
  200. package/src/chat/runtime-modes.ts +1 -1
  201. package/src/chat/send-key.ts +1 -1
  202. package/src/chat/stash.ts +2 -2
  203. package/src/chat/subagent-conversation.ts +1 -1
  204. package/src/chat/subagent-list.ts +1 -1
  205. package/src/chat/subagent-view.ts +1 -1
  206. package/src/chat/thumbnails.ts +1 -1
  207. package/src/chat/ui/AccountPill.tsx +4 -4
  208. package/src/chat/ui/BookmarkMarker.tsx +6 -6
  209. package/src/chat/ui/BookmarkSubmenu.tsx +5 -5
  210. package/src/chat/ui/ChatActivity.tsx +15 -15
  211. package/src/chat/ui/CodeBlock.tsx +10 -8
  212. package/src/chat/ui/Composer.tsx +13 -13
  213. package/src/chat/ui/ComposerInput.tsx +10 -2
  214. package/src/chat/ui/DiffPool.tsx +1 -1
  215. package/src/chat/ui/EditDiff.tsx +3 -4
  216. package/src/chat/ui/GoalDock.tsx +6 -6
  217. package/src/chat/ui/ImageView.tsx +4 -4
  218. package/src/chat/ui/LimitState.tsx +13 -13
  219. package/src/chat/ui/Markdown.tsx +12 -12
  220. package/src/chat/ui/MermaidBlock.tsx +6 -6
  221. package/src/chat/ui/MessageActions.tsx +7 -7
  222. package/src/chat/ui/ModelMarks.tsx +2 -2
  223. package/src/chat/ui/Pickers.tsx +10 -10
  224. package/src/chat/ui/PromptComposer.tsx +6 -6
  225. package/src/chat/ui/PromptEditor.tsx +4 -4
  226. package/src/chat/ui/QuoteButton.tsx +2 -2
  227. package/src/chat/ui/ReferenceChip.tsx +3 -3
  228. package/src/chat/ui/ReferenceTrail.tsx +2 -2
  229. package/src/chat/ui/ResumeCompactionDock.tsx +3 -3
  230. package/src/chat/ui/RunSettings.tsx +13 -13
  231. package/src/chat/ui/Scrubber.tsx +4 -4
  232. package/src/chat/ui/SessionLine.tsx +2 -2
  233. package/src/chat/ui/ShellCommand.tsx +2 -2
  234. package/src/chat/ui/SubagentControls.tsx +3 -3
  235. package/src/chat/ui/SubagentInfo.tsx +5 -5
  236. package/src/chat/ui/SubagentStopButton.tsx +3 -3
  237. package/src/chat/ui/SubagentTimeline.tsx +20 -17
  238. package/src/chat/ui/Timeline.tsx +232 -143
  239. package/src/chat/ui/TimelineMenu.tsx +7 -7
  240. package/src/chat/ui/UnifiedDiff.tsx +3 -3
  241. package/src/chat/ui/VisualDialogs.tsx +2 -2
  242. package/src/chat/ui/VisualFrame.tsx +4 -4
  243. package/src/chat/ui/WorkflowAgentLine.tsx +4 -4
  244. package/src/chat/ui/chip-clipboard.ts +1 -1
  245. package/src/chat/ui/composer/ComposerControls.tsx +4 -4
  246. package/src/chat/ui/composer/ComposerMenu.tsx +6 -6
  247. package/src/chat/ui/composer/DraftParts.tsx +2 -2
  248. package/src/chat/ui/composer/QueuedMessages.tsx +2 -2
  249. package/src/chat/ui/composer/chip-paste.ts +1 -1
  250. package/src/chat/ui/composer/chips.ts +2 -2
  251. package/src/chat/ui/composer/key-handler.ts +2 -2
  252. package/src/chat/ui/composer/placeholder.ts +1 -1
  253. package/src/chat/ui/composer/use-chat-controls.ts +1 -1
  254. package/src/chat/ui/composer/use-compaction-offer.ts +1 -1
  255. package/src/chat/ui/composer/use-composer-menus.ts +2 -2
  256. package/src/chat/ui/composer/use-composer-submit.ts +2 -2
  257. package/src/chat/ui/composer/use-draft-files.ts +3 -3
  258. package/src/chat/ui/composer/use-effort-stepper.ts +2 -2
  259. package/src/chat/ui/composer/use-pending-requests.ts +1 -1
  260. package/src/chat/ui/composer/use-prompt-menus.ts +3 -3
  261. package/src/chat/ui/composer/use-take-back.ts +1 -1
  262. package/src/chat/ui/diff/ApprovalReview.tsx +3 -3
  263. package/src/chat/ui/diff/DiffOmitted.tsx +1 -1
  264. package/src/chat/ui/diff/DiffStack.tsx +2 -2
  265. package/src/chat/ui/diff/EditorEditDiff.tsx +5 -5
  266. package/src/chat/ui/diff/EditorPatchDiff.tsx +1 -1
  267. package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
  268. package/src/chat/ui/diff/LegacyEditDiff.tsx +18 -9
  269. package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +24 -13
  270. package/src/chat/ui/diff/RawDiff.tsx +8 -5
  271. package/src/chat/ui/diff/syntax-runtime.ts +1 -1
  272. package/src/chat/ui/highlighter.ts +1 -1
  273. package/src/chat/ui/icons.tsx +2 -2
  274. package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +5 -5
  275. package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +2 -2
  276. package/src/chat/ui/intelligent-ui/UiReply.tsx +18 -18
  277. package/src/chat/ui/intelligent-ui/node-text.ts +1 -1
  278. package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
  279. package/src/chat/ui/intelligent-ui/renderers/chart.tsx +15 -7
  280. package/src/chat/ui/intelligent-ui/renderers/choices.tsx +4 -4
  281. package/src/chat/ui/intelligent-ui/renderers/content.tsx +7 -7
  282. package/src/chat/ui/intelligent-ui/renderers/data.tsx +8 -7
  283. package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +3 -3
  284. package/src/chat/ui/intelligent-ui/renderers/links.tsx +4 -4
  285. package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +4 -4
  286. package/src/chat/ui/intelligent-ui/renderers/map.tsx +5 -5
  287. package/src/chat/ui/intelligent-ui/renderers/structure.tsx +3 -3
  288. package/src/chat/ui/intelligent-ui/renderers/text.tsx +5 -5
  289. package/src/chat/ui/intelligent-ui/tones.ts +1 -1
  290. package/src/chat/ui/intelligent-ui/use-ui-links.ts +2 -2
  291. package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
  292. package/src/chat/ui/reference-icons.ts +2 -2
  293. package/src/chat/ui/reply-context.ts +1 -1
  294. package/src/chat/ui/rows/ForksRow.tsx +3 -3
  295. package/src/chat/ui/rows/GeneratedImageRow.tsx +7 -7
  296. package/src/chat/ui/rows/MessageRows.tsx +57 -33
  297. package/src/chat/ui/rows/RowContainer.tsx +1 -1
  298. package/src/chat/ui/rows/Rows.tsx +7 -4
  299. package/src/chat/ui/rows/SubagentRow.tsx +16 -16
  300. package/src/chat/ui/rows/TaskRow.tsx +4 -4
  301. package/src/chat/ui/rows/VisualRow.tsx +2 -2
  302. package/src/chat/ui/rows/WorkRows.tsx +44 -32
  303. package/src/chat/ui/rows/WorkflowRow.tsx +9 -9
  304. package/src/chat/ui/rows/row-rhythm.ts +1 -1
  305. package/src/chat/ui/use-diff-source-tokens.ts +1 -1
  306. package/src/chat/ui/visual-theme.ts +2 -2
  307. package/src/chat/workflow-list.ts +1 -1
  308. package/src/host.ts +6 -6
  309. package/src/lazy.tsx +1 -1
  310. package/src/locales/en/agent-chat.ts +4 -0
  311. package/src/locales/nl/agent-chat.ts +4 -0
  312. package/src/port-transport.ts +1 -1
  313. package/src/prompts/logic/subjects.ts +1 -1
  314. package/src/prompts/ui/ApprovalBody.tsx +19 -9
  315. package/src/prompts/ui/PromptActions.tsx +2 -2
  316. package/src/prompts/ui/PromptCard.tsx +4 -4
  317. package/src/prompts/ui/PromptView.tsx +1 -1
  318. package/src/prompts/ui/QuestionBody.tsx +5 -5
  319. package/src/providers/AccountDetail.tsx +5 -5
  320. package/src/providers/AccountOrderList.tsx +2 -2
  321. package/src/providers/AccountVariables.tsx +4 -4
  322. package/src/providers/AddAccountForm.tsx +7 -7
  323. package/src/providers/CliDetail.tsx +9 -9
  324. package/src/providers/InstallPage.tsx +4 -4
  325. package/src/providers/ProviderList.tsx +4 -4
  326. package/src/providers/ProvidersPane.tsx +7 -7
  327. package/src/providers/account-actions.ts +1 -1
  328. package/src/providers/install-steps.ts +1 -1
  329. package/src/providers/parts.tsx +1 -1
  330. package/src/providers/provider-abilities.ts +1 -1
  331. package/src/providers/provider-groups.ts +1 -1
  332. package/src/providers/variables.ts +1 -1
  333. package/src/settings/sections.ts +2 -2
  334. package/src/state/chats.ts +2 -2
  335. package/src/state/provider-accounts.ts +1 -1
  336. package/src/state/providers.ts +1 -1
  337. package/src/state/usage.ts +2 -2
  338. package/src/theme.css +4 -4
  339. package/src/transport.ts +1 -1
  340. package/src/usage/LimitsList.tsx +5 -5
  341. package/src/usage/UsageBreakdown.tsx +6 -6
  342. package/src/usage/UsageChart.tsx +2 -2
  343. package/src/usage/UsageDialog.tsx +2 -2
  344. package/src/usage/UsageLimits.tsx +7 -7
  345. package/src/usage/UsageLimitsCard.tsx +2 -2
  346. package/src/usage/UsagePage.tsx +5 -5
  347. package/src/usage/UsagePane.tsx +2 -2
  348. package/src/usage/UsageSummary.tsx +2 -2
  349. package/src/usage/UsageTiles.tsx +1 -1
  350. package/src/usage/limit-groups.ts +2 -2
  351. package/src/usage/limits.ts +1 -1
  352. package/src/usage/summary.ts +1 -1
  353. package/dist/chat/logic/json.d.ts +0 -1
  354. package/dist/chat/logic/json.js +0 -4
  355. package/src/chat/logic/json.ts +0 -4
@@ -1,9 +1,10 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { ScrollArea } from '@adecore/ui';
2
3
  import clsx from 'clsx';
3
4
  import { useReviewSettled } from './review-settle.js';
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
6
  export function RawDiff(t0) {
6
- const $ = _c(13);
7
+ const $ = _c(16);
7
8
  const {
8
9
  text,
9
10
  overflow,
@@ -11,57 +12,75 @@ export function RawDiff(t0) {
11
12
  maxHeight
12
13
  } = t0;
13
14
  useReviewSettled();
14
- const t1 = fill && "h-full min-h-0";
15
- const t2 = overflow === "wrap" ? "whitespace-pre-wrap" : "whitespace-pre";
16
- let t3;
17
- if ($[0] !== t1 || $[1] !== t2) {
18
- t3 = clsx("overflow-auto px-3 py-2 font-mono text-code text-text-muted select-text", t1, t2);
15
+ let t1;
16
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
17
+ t1 = /*#__PURE__*/_jsx("pre", {});
19
18
  $[0] = t1;
19
+ } else {
20
+ t1 = $[0];
21
+ }
22
+ const t2 = fill && "h-full";
23
+ let t3;
24
+ if ($[1] !== t2) {
25
+ t3 = clsx(t2);
20
26
  $[1] = t2;
21
27
  $[2] = t3;
22
28
  } else {
23
29
  t3 = $[2];
24
30
  }
25
- let t4;
26
- if ($[3] !== fill || $[4] !== maxHeight) {
27
- t4 = fill ? undefined : {
31
+ const t4 = overflow === "wrap" ? "whitespace-pre-wrap" : "whitespace-pre";
32
+ let t5;
33
+ if ($[3] !== t4) {
34
+ t5 = clsx("px-3 py-2 font-mono text-code text-text-muted select-text", t4);
35
+ $[3] = t4;
36
+ $[4] = t5;
37
+ } else {
38
+ t5 = $[4];
39
+ }
40
+ let t6;
41
+ if ($[5] !== fill || $[6] !== maxHeight) {
42
+ t6 = fill ? undefined : {
28
43
  maxHeight: maxHeight ?? 256
29
44
  };
30
- $[3] = fill;
31
- $[4] = maxHeight;
32
- $[5] = t4;
45
+ $[5] = fill;
46
+ $[6] = maxHeight;
47
+ $[7] = t6;
33
48
  } else {
34
- t4 = $[5];
49
+ t6 = $[7];
35
50
  }
36
- let t5;
37
- if ($[6] !== text) {
38
- let t6;
39
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
40
- t6 = /\n$/;
41
- $[8] = t6;
51
+ let t7;
52
+ if ($[8] !== text) {
53
+ let t8;
54
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
55
+ t8 = /\n$/;
56
+ $[10] = t8;
42
57
  } else {
43
- t6 = $[8];
58
+ t8 = $[10];
44
59
  }
45
- t5 = text.replace(t6, "");
46
- $[6] = text;
47
- $[7] = t5;
60
+ t7 = text.replace(t8, "");
61
+ $[8] = text;
62
+ $[9] = t7;
48
63
  } else {
49
- t5 = $[7];
64
+ t7 = $[9];
50
65
  }
51
- let t6;
52
- if ($[9] !== t3 || $[10] !== t4 || $[11] !== t5) {
53
- t6 = /*#__PURE__*/_jsx("pre", {
66
+ let t8;
67
+ if ($[11] !== t3 || $[12] !== t5 || $[13] !== t6 || $[14] !== t7) {
68
+ t8 = /*#__PURE__*/_jsx(ScrollArea, {
69
+ axis: "both",
70
+ render: t1,
54
71
  "data-diff-raw": true,
55
72
  className: t3,
56
- style: t4,
57
- children: t5
73
+ viewportClassName: t5,
74
+ style: t6,
75
+ children: t7
58
76
  });
59
- $[9] = t3;
60
- $[10] = t4;
61
- $[11] = t5;
62
- $[12] = t6;
77
+ $[11] = t3;
78
+ $[12] = t5;
79
+ $[13] = t6;
80
+ $[14] = t7;
81
+ $[15] = t8;
63
82
  } else {
64
- t6 = $[12];
83
+ t8 = $[15];
65
84
  }
66
- return t6;
85
+ return t8;
67
86
  }
@@ -1,5 +1,5 @@
1
- import type { Highlighter, ThemeRegistration } from 'shiki';
2
1
  import { type DiffSyntaxDocument, type DiffSyntaxTokens } from '@adecore/editor/shiki-worker';
2
+ import type { Highlighter, ThemeRegistration } from 'shiki';
3
3
  import type { ChatHost } from '../../../host.js';
4
4
  export interface DiffSyntaxSession {
5
5
  request(index: number): Promise<DiffSyntaxTokens | null>;
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import type { Highlighter } from 'shiki';
3
- import { type CodeToken, type Tokenize } from './code-lines.js';
4
3
  import { type ChatHost } from '../../host.js';
4
+ import { type CodeToken, type Tokenize } from './code-lines.js';
5
5
  export type { Highlighter };
6
6
  export type GrammarState = ReturnType<Highlighter['getLastGrammarState']>;
7
7
  export interface CodeHighlighter {
@@ -1,6 +1,6 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { TokenCache } from './code-lines.js';
3
2
  import { useChatHost } from '../../host.js';
3
+ import { TokenCache } from './code-lines.js';
4
4
  import { shikiThemeOf } from './code-theme.js';
5
5
  // A plain language needs no grammar; shiki draws it in the theme's own foreground.
6
6
  const PLAIN = 'text';
@@ -1,6 +1,6 @@
1
+ import { Icon } from '@adecore/ui';
1
2
  import { Hammer, Wrench } from 'lucide-react';
2
3
  import { toolEntry } from '../logic/tool-catalog.js';
3
- import { Icon } from '@adecore/ui';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const SIZE = 12;
6
6
  /* The gutter every row in the thread opens with: 16 wide, on the line box of its first row of text,
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from 'react';
2
1
  import type { UiViewNode } from '@adecore/intelligent-ui';
2
+ import { type ReactNode } from 'react';
3
3
  import { type UiLiveStatus } from './render-context.js';
4
4
  export interface UiBlockFix {
5
5
  code: string;
@@ -1,11 +1,11 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useId, useLayoutEffect, useRef, useState } from 'react';
2
+ import { Icon, KEY_SHORTCUTS, matchesShortcut, Skeleton, Spinner, Tooltip, useTickingText } from '@adecore/ui';
3
+ import { formatAgo, formatMoment } from '@adecore/ui/format';
3
4
  import clsx from 'clsx';
4
- import { useTranslation } from 'react-i18next';
5
5
  import { Info, Lock, Radio, TriangleAlert } from 'lucide-react';
6
- import { Icon, KEY_SHORTCUTS, matchesShortcut, Skeleton, Spinner, Tooltip, useTickingText } from '@adecore/ui';
6
+ import { useId, useLayoutEffect, useRef, useState } from 'react';
7
+ import { useTranslation } from 'react-i18next';
7
8
  import { useChatHost } from '../../../host.js';
8
- import { formatAgo, formatMoment } from '@adecore/ui/format';
9
9
  import { uiBlockHead, uiReasonText } from './node-text.js';
10
10
  import { UiHeadContext } from './render-context.js';
11
11
  import { useLater } from './use-later.js';
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useTranslation } from 'react-i18next';
3
- import { Info } from 'lucide-react';
4
2
  import { Icon } from '@adecore/ui';
3
+ import { Info } from 'lucide-react';
4
+ import { useTranslation } from 'react-i18next';
5
5
  import { Markdown } from '../Markdown.js';
6
6
  /*
7
7
  * One part of a block as the markdown it stands for, on a card in a quiet tile under a line that says why.
@@ -1,6 +1,6 @@
1
- import { type ComponentProps, type ReactNode } from 'react';
2
- import { type UiBlock } from '@adecore/intelligent-ui';
3
1
  import type { ChatUiAnswer, ChatUiQueryState } from '@adecore/agent-contracts';
2
+ import { type UiBlock } from '@adecore/intelligent-ui';
3
+ import { type ComponentProps, type ReactNode } from 'react';
4
4
  import { ReplyMarkdown } from '../Markdown.js';
5
5
  import type { UiRenderContext } from './render-context.js';
6
6
  type UiBlockIdentity = Pick<UiRenderContext, 'scopeId' | 'chatId' | 'itemId' | 'blockId' | 'phase'>;
@@ -1,22 +1,22 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { Component, createContext, Fragment, memo, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
3
- import ReactMarkdown from 'react-markdown';
4
- import { useTranslation } from 'react-i18next';
5
2
  import { evaluateUiBlock, uiInputValues, isUiComponent, UI_CATALOG_VERSION, UiState } from '@adecore/intelligent-ui';
6
3
  import { ErrorBoundary, Tooltip } from '@adecore/ui';
4
+ import { Component, createContext, Fragment, memo, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
5
+ import { useTranslation } from 'react-i18next';
6
+ import ReactMarkdown from 'react-markdown';
7
7
  import { useChatHost } from '../../../host.js';
8
- import { UiReplyNavigationContext } from '../reply-context.js';
9
8
  import { ReplyMarkdown } from '../Markdown.js';
10
9
  import { rehypeFadeWords } from '../rehype-fade.js';
11
- import { UI_RENDERERS } from './registry.js';
10
+ import { UiReplyNavigationContext } from '../reply-context.js';
12
11
  import { UiPageMemory } from './block-local.js';
12
+ import { uiChildrenOf, revealUiSource, uiLiveChoiceReason, uiUrlDomain } from './node-text.js';
13
+ import { UI_RENDERERS } from './registry.js';
14
+ import { UiSourceCitation } from './renderers/content.js';
15
+ import { uiReplyParts } from './reply-parts.js';
13
16
  import { UiBlockFrame } from './UiBlockFrame.js';
14
17
  import { UiFallbackPart } from './UiFallbackPart.js';
15
18
  import { useUiLinks } from './use-ui-links.js';
16
19
  import { useUiQueries, useUiLiveValues } from './use-ui-queries.js';
17
- import { UiSourceCitation } from './renderers/content.js';
18
- import { uiChildrenOf, revealUiSource, uiLiveChoiceReason, uiUrlDomain } from './node-text.js';
19
- import { uiReplyParts } from './reply-parts.js';
20
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const localStates = new UiPageMemory(64);
22
22
  function localState(key, block, answered) {
@@ -1,5 +1,5 @@
1
- import type { TFunction } from 'i18next';
2
1
  import { type UiComponentName, type UiProps, type UiViewNode } from '@adecore/intelligent-ui';
2
+ import type { TFunction } from 'i18next';
3
3
  import type { UiLiveStatus } from './render-context.js';
4
4
  export declare function uiNodeText(node: UiViewNode): string;
5
5
  export declare function uiNodeLabel(node: UiViewNode): string;
@@ -1,6 +1,6 @@
1
- import { type ReactNode } from 'react';
2
1
  import type { UiComponentName, UiProps, UiViewNode } from '@adecore/intelligent-ui';
3
2
  import type { UiLinkTarget } from '@adecore/intelligent-ui/links';
3
+ import { type ReactNode } from 'react';
4
4
  export type { UiLinkTarget };
5
5
  export interface UiLink {
6
6
  state: 'chip' | 'plain';
@@ -1,14 +1,14 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useState } from 'react';
2
+ import { Button, ScrollArea, SegmentBar, Tooltip, useMeasuredWidth } from '@adecore/ui';
3
+ import { formatNumber, formatRounded } from '@adecore/ui/format';
3
4
  import clsx from 'clsx';
5
+ import { useState } from 'react';
4
6
  import { useTranslation } from 'react-i18next';
5
- import { Button, SegmentBar, Tooltip, useMeasuredWidth } from '@adecore/ui';
6
- import { formatNumber, formatRounded } from '@adecore/ui/format';
7
7
  import { useBlockLocal } from '../block-local.js';
8
8
  import { UI_CHART_CHARACTER, UI_CHART_ROWS, uiChartCharacter, uiChartAxis, uiChartData, uiChartRange, uiChartText, uiChartTextWidth, uiChartValues } from '../chart-data.js';
9
9
  import { uiWithUnit } from '../node-text.js';
10
- import { useTruncated } from '../use-truncated.js';
11
10
  import { UiFallbackPart } from '../UiFallbackPart.js';
11
+ import { useTruncated } from '../use-truncated.js';
12
12
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
13
  const HEIGHT = 160;
14
14
  const HBAR_ROW = 24;
@@ -149,7 +149,7 @@ function _temp2(series, index) {
149
149
  }, series.key);
150
150
  }
151
151
  function ValuesTable(t0) {
152
- const $ = _c(35);
152
+ const $ = _c(36);
153
153
  const {
154
154
  values,
155
155
  unit,
@@ -287,20 +287,33 @@ function ValuesTable(t0) {
287
287
  t12 = $[31];
288
288
  }
289
289
  const table = t12;
290
- const t13 = shown ? "max-h-80 w-full overflow-auto rounded-md border border-border-soft" : "sr-only";
291
- let t14;
292
- if ($[32] !== t13 || $[33] !== table) {
293
- t14 = /*#__PURE__*/_jsx("div", {
294
- className: t13,
290
+ if (!shown) {
291
+ let t13;
292
+ if ($[32] !== table) {
293
+ t13 = /*#__PURE__*/_jsx("div", {
294
+ className: "sr-only",
295
+ children: table
296
+ });
297
+ $[32] = table;
298
+ $[33] = t13;
299
+ } else {
300
+ t13 = $[33];
301
+ }
302
+ return t13;
303
+ }
304
+ let t13;
305
+ if ($[34] !== table) {
306
+ t13 = /*#__PURE__*/_jsx(ScrollArea, {
307
+ axis: "both",
308
+ className: "max-h-80 w-full rounded-md border border-border-soft",
295
309
  children: table
296
310
  });
297
- $[32] = t13;
298
- $[33] = table;
299
- $[34] = t14;
311
+ $[34] = table;
312
+ $[35] = t13;
300
313
  } else {
301
- t14 = $[34];
314
+ t13 = $[35];
302
315
  }
303
- return t14;
316
+ return t13;
304
317
  }
305
318
  /* The values of one category beside the pointer. */
306
319
  function Readout(t0) {
@@ -1,10 +1,10 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useId, useState } from 'react';
3
- import clsx from 'clsx';
4
- import { useTranslation } from 'react-i18next';
5
- import { Check } from 'lucide-react';
6
2
  import { uiChoiceLabel } from '@adecore/intelligent-ui';
7
3
  import { DisabledReason, formatShortcut, Icon, KEY_SHORTCUTS, Spinner, Tooltip } from '@adecore/ui';
4
+ import clsx from 'clsx';
5
+ import { Check } from 'lucide-react';
6
+ import { useId, useState } from 'react';
7
+ import { useTranslation } from 'react-i18next';
8
8
  import { useChatHost } from '../../../../host.js';
9
9
  import { UiFallbackPart } from '../UiFallbackPart.js';
10
10
  import { useLater } from '../use-later.js';
@@ -1,18 +1,18 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { ErrorBoundary, Icon, Pill, PreviewCard, Tooltip, Wipe } from '@adecore/ui';
3
+ import { formatNumber } from '@adecore/ui/format';
2
4
  import clsx from 'clsx';
5
+ import { Box } from 'lucide-react';
3
6
  import { createContext, useContext, useId, useState } from 'react';
4
7
  import { useTranslation } from 'react-i18next';
5
- import { Box } from 'lucide-react';
6
- import { ErrorBoundary, Icon, Pill, PreviewCard, Tooltip, Wipe } from '@adecore/ui';
7
- import { formatNumber } from '@adecore/ui/format';
8
8
  import { useChatHost } from '../../../../host.js';
9
- import { CodeBlock } from '../../CodeBlock.js';
9
+ import { useHostAttachmentUrl } from '../../../../host-hooks.js';
10
10
  import { CodeStreamingContext } from '../../code-streaming.js';
11
+ import { CodeBlock } from '../../CodeBlock.js';
12
+ import { DisplayImage } from '../../DisplayImage.js';
11
13
  import { ImageGroup, ImageThumb } from '../../ImageView.js';
12
14
  import { uiChildrenOf, uiNodeLabel, uiNodeText, uiUrlDomain } from '../node-text.js';
13
15
  import { useTruncated } from '../use-truncated.js';
14
- import { useHostAttachmentUrl } from '../../../../host-hooks.js';
15
- import { DisplayImage } from '../../DisplayImage.js';
16
16
  // The number of every source by its node id, which the list counts in its own order.
17
17
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
18
18
  const SourceNumbers = createContext(new Map());
@@ -1,10 +1,10 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { createContext, useContext } from 'react';
2
+ import { Button, Icon, KeyValueList, Pill, ScrollArea, Tooltip } from '@adecore/ui';
3
+ import { formatBytes, formatDuration, formatMoment, formatNumber, formatPercent, formatRounded } from '@adecore/ui/format';
3
4
  import clsx from 'clsx';
4
- import { useTranslation } from 'react-i18next';
5
5
  import { ArrowDown, ArrowRight, ArrowUp } from 'lucide-react';
6
- import { Button, Icon, KeyValueList, Pill, Tooltip } from '@adecore/ui';
7
- import { formatBytes, formatDuration, formatMoment, formatNumber, formatPercent, formatRounded } from '@adecore/ui/format';
6
+ import { createContext, useContext } from 'react';
7
+ import { useTranslation } from 'react-i18next';
8
8
  import { useBlockLocal } from '../block-local.js';
9
9
  import { uiChildrenOf, uiWithUnit } from '../node-text.js';
10
10
  import { isNumericColumn, UI_TABLE_ROWS, uiTableCell, uiTableColumns } from '../table-data.js';
@@ -471,7 +471,7 @@ function Cell(t0) {
471
471
  * arrive one by one while the block streams, without animation; past fifty a person asks for the rest.
472
472
  */
473
473
  export function TableRenderer(t0) {
474
- const $ = _c(35);
474
+ const $ = _c(41);
475
475
  const {
476
476
  node,
477
477
  context
@@ -480,6 +480,7 @@ export function TableRenderer(t0) {
480
480
  t
481
481
  } = useTranslation("agent-chat");
482
482
  const [all, setAll] = useBlockLocal(context, node.id, _temp);
483
+ let T0;
483
484
  let rows;
484
485
  let t1;
485
486
  let t2;
@@ -488,48 +489,53 @@ export function TableRenderer(t0) {
488
489
  let t5;
489
490
  let t6;
490
491
  let t7;
492
+ let t8;
493
+ let t9;
491
494
  if ($[0] !== all || $[1] !== context || $[2] !== node || $[3] !== t) {
492
- t7 = Symbol.for("react.early_return_sentinel");
495
+ t9 = Symbol.for("react.early_return_sentinel");
493
496
  bb0: {
494
497
  const columns = uiTableColumns(node);
495
498
  if (columns.length === 0) {
496
- let t8;
497
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
498
- t8 = {
499
+ let t10;
500
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
501
+ t10 = {
499
502
  kind: "failed"
500
503
  };
501
- $[12] = t8;
504
+ $[15] = t10;
502
505
  } else {
503
- t8 = $[12];
506
+ t10 = $[15];
504
507
  }
505
- let t9;
506
- if ($[13] !== node.fallback) {
507
- t9 = /*#__PURE__*/_jsx(UiFallbackPart, {
508
+ let t11;
509
+ if ($[16] !== node.fallback) {
510
+ t11 = /*#__PURE__*/_jsx(UiFallbackPart, {
508
511
  fallback: node.fallback,
509
- problem: t8
512
+ problem: t10
510
513
  });
511
- $[13] = node.fallback;
512
- $[14] = t9;
514
+ $[16] = node.fallback;
515
+ $[17] = t11;
513
516
  } else {
514
- t9 = $[14];
517
+ t11 = $[17];
515
518
  }
516
- t7 = t9;
519
+ t9 = t11;
517
520
  break bb0;
518
521
  }
519
522
  ({
520
523
  rows
521
524
  } = node.props);
522
525
  const shown = all ? rows : rows.slice(0, UI_TABLE_ROWS);
523
- t6 = "flex flex-col items-start gap-1.5";
524
- t5 = "chat-ui-flat max-h-80 w-full overflow-auto rounded-xl bg-ui-tile px-1.5 pb-1.5";
526
+ t8 = "flex flex-col items-start gap-1.5";
527
+ T0 = ScrollArea;
528
+ t5 = "both";
529
+ t6 = "chat-ui-flat max-h-80 w-full rounded-xl bg-ui-tile";
530
+ t7 = "chat-ui-flat px-1.5 pb-1.5";
525
531
  t2 = t("blocks.table.label", {
526
532
  columns: columns.map(_temp2).join(", ")
527
533
  });
528
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
534
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
529
535
  t3 = clsx("w-full border-separate border-spacing-0 text-xs tabular-nums", "[&_tbody_tr:first-child_td:first-child]:rounded-tl-lg [&_tbody_tr:first-child_td:last-child]:rounded-tr-lg", "[&_tbody_tr:last-child_td:first-child]:rounded-bl-lg [&_tbody_tr:last-child_td:last-child]:rounded-br-lg");
530
- $[15] = t3;
536
+ $[18] = t3;
531
537
  } else {
532
- t3 = $[15];
538
+ t3 = $[18];
533
539
  }
534
540
  t4 = /*#__PURE__*/_jsx("thead", {
535
541
  className: "sticky top-0 z-1 bg-ui-tile",
@@ -552,67 +558,78 @@ export function TableRenderer(t0) {
552
558
  $[1] = context;
553
559
  $[2] = node;
554
560
  $[3] = t;
555
- $[4] = rows;
556
- $[5] = t1;
557
- $[6] = t2;
558
- $[7] = t3;
559
- $[8] = t4;
560
- $[9] = t5;
561
- $[10] = t6;
562
- $[11] = t7;
561
+ $[4] = T0;
562
+ $[5] = rows;
563
+ $[6] = t1;
564
+ $[7] = t2;
565
+ $[8] = t3;
566
+ $[9] = t4;
567
+ $[10] = t5;
568
+ $[11] = t6;
569
+ $[12] = t7;
570
+ $[13] = t8;
571
+ $[14] = t9;
563
572
  } else {
564
- rows = $[4];
565
- t1 = $[5];
566
- t2 = $[6];
567
- t3 = $[7];
568
- t4 = $[8];
569
- t5 = $[9];
570
- t6 = $[10];
571
- t7 = $[11];
573
+ T0 = $[4];
574
+ rows = $[5];
575
+ t1 = $[6];
576
+ t2 = $[7];
577
+ t3 = $[8];
578
+ t4 = $[9];
579
+ t5 = $[10];
580
+ t6 = $[11];
581
+ t7 = $[12];
582
+ t8 = $[13];
583
+ t9 = $[14];
572
584
  }
573
- if (t7 !== Symbol.for("react.early_return_sentinel")) {
574
- return t7;
585
+ if (t9 !== Symbol.for("react.early_return_sentinel")) {
586
+ return t9;
575
587
  }
576
- let t8;
577
- if ($[16] !== t1) {
578
- t8 = /*#__PURE__*/_jsx("tbody", {
588
+ let t10;
589
+ if ($[19] !== t1) {
590
+ t10 = /*#__PURE__*/_jsx("tbody", {
579
591
  children: t1
580
592
  });
581
- $[16] = t1;
582
- $[17] = t8;
593
+ $[19] = t1;
594
+ $[20] = t10;
583
595
  } else {
584
- t8 = $[17];
596
+ t10 = $[20];
585
597
  }
586
- let t9;
587
- if ($[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t8) {
588
- t9 = /*#__PURE__*/_jsxs("table", {
598
+ let t11;
599
+ if ($[21] !== t10 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4) {
600
+ t11 = /*#__PURE__*/_jsxs("table", {
589
601
  "aria-label": t2,
590
602
  className: t3,
591
- children: [t4, t8]
603
+ children: [t4, t10]
592
604
  });
593
- $[18] = t2;
594
- $[19] = t3;
595
- $[20] = t4;
596
- $[21] = t8;
597
- $[22] = t9;
605
+ $[21] = t10;
606
+ $[22] = t2;
607
+ $[23] = t3;
608
+ $[24] = t4;
609
+ $[25] = t11;
598
610
  } else {
599
- t9 = $[22];
611
+ t11 = $[25];
600
612
  }
601
- let t10;
602
- if ($[23] !== t5 || $[24] !== t9) {
603
- t10 = /*#__PURE__*/_jsx("div", {
604
- className: t5,
605
- children: t9
613
+ let t12;
614
+ if ($[26] !== T0 || $[27] !== t11 || $[28] !== t5 || $[29] !== t6 || $[30] !== t7) {
615
+ t12 = /*#__PURE__*/_jsx(T0, {
616
+ axis: t5,
617
+ className: t6,
618
+ viewportClassName: t7,
619
+ children: t11
606
620
  });
607
- $[23] = t5;
608
- $[24] = t9;
609
- $[25] = t10;
621
+ $[26] = T0;
622
+ $[27] = t11;
623
+ $[28] = t5;
624
+ $[29] = t6;
625
+ $[30] = t7;
626
+ $[31] = t12;
610
627
  } else {
611
- t10 = $[25];
628
+ t12 = $[31];
612
629
  }
613
- let t11;
614
- if ($[26] !== all || $[27] !== rows || $[28] !== setAll || $[29] !== t) {
615
- t11 = !all && rows.length > UI_TABLE_ROWS && /*#__PURE__*/_jsx(Button, {
630
+ let t13;
631
+ if ($[32] !== all || $[33] !== rows || $[34] !== setAll || $[35] !== t) {
632
+ t13 = !all && rows.length > UI_TABLE_ROWS && /*#__PURE__*/_jsx(Button, {
616
633
  size: "xs",
617
634
  variant: "secondary",
618
635
  onClick: () => setAll(true),
@@ -620,28 +637,28 @@ export function TableRenderer(t0) {
620
637
  total: formatNumber(rows.length)
621
638
  })
622
639
  });
623
- $[26] = all;
624
- $[27] = rows;
625
- $[28] = setAll;
626
- $[29] = t;
627
- $[30] = t11;
640
+ $[32] = all;
641
+ $[33] = rows;
642
+ $[34] = setAll;
643
+ $[35] = t;
644
+ $[36] = t13;
628
645
  } else {
629
- t11 = $[30];
646
+ t13 = $[36];
630
647
  }
631
- let t12;
632
- if ($[31] !== t10 || $[32] !== t11 || $[33] !== t6) {
633
- t12 = /*#__PURE__*/_jsxs("div", {
634
- className: t6,
635
- children: [t10, t11]
648
+ let t14;
649
+ if ($[37] !== t12 || $[38] !== t13 || $[39] !== t8) {
650
+ t14 = /*#__PURE__*/_jsxs("div", {
651
+ className: t8,
652
+ children: [t12, t13]
636
653
  });
637
- $[31] = t10;
638
- $[32] = t11;
639
- $[33] = t6;
640
- $[34] = t12;
654
+ $[37] = t12;
655
+ $[38] = t13;
656
+ $[39] = t8;
657
+ $[40] = t14;
641
658
  } else {
642
- t12 = $[34];
659
+ t14 = $[40];
643
660
  }
644
- return t12;
661
+ return t14;
645
662
  }
646
663
  function _temp3(column_0) {
647
664
  return /*#__PURE__*/_jsx("th", {
@@ -1,9 +1,9 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { createContext, useContext, useId } from 'react';
3
- import clsx from 'clsx';
4
- import { useTranslation } from 'react-i18next';
5
2
  import { Button, Checkbox, Input, Segmented, Select, Slider, Switch, Tooltip } from '@adecore/ui';
6
3
  import { formatNumber } from '@adecore/ui/format';
4
+ import clsx from 'clsx';
5
+ import { createContext, useContext, useId } from 'react';
6
+ import { useTranslation } from 'react-i18next';
7
7
  import { uiChildrenOf, uiNodeLabel, uiOwnLabel, uiWithUnit } from '../node-text.js';
8
8
  import { useTruncated } from '../use-truncated.js';
9
9
  import { bindingOf, PENDING } from './binding.js';