@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,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useTranslation } from 'react-i18next';
3
- import { Clock, Copy, FastForward, Pencil, X } from 'lucide-react';
4
2
  import { ButtonGroup, ContextMenu, copyText, Icon, IconButton } from '@adecore/ui';
3
+ import { Clock, Copy, FastForward, Pencil, X } from 'lucide-react';
4
+ import { useTranslation } from 'react-i18next';
5
5
  import { useChatActions } from '../../actions.js';
6
6
  import { scrollTimelineToEnd } from '../../timeline-scroll.js';
7
7
  /* The messages waiting for the running turn to end, each with a way to send it now, edit it or drop it. */
@@ -1,6 +1,6 @@
1
1
  import type { EditorView } from '@codemirror/view';
2
- import type { ChatDraft } from '../../drafts.js';
3
2
  import type { Referable } from '../../chat-references.js';
3
+ import type { ChatDraft } from '../../drafts.js';
4
4
  import { type ClipboardChips, type ReferenceToken, type TextRange } from '../../mentions.js';
5
5
  export interface PasteChoices {
6
6
  skills: readonly string[];
@@ -1,5 +1,5 @@
1
- import { type ComponentType } from 'react';
2
1
  import { type Extension } from '@codemirror/state';
2
+ import { type ComponentType } from 'react';
3
3
  import type { ReferenceIconProps } from '../../../host.js';
4
4
  import type { ReferableKind, ReferenceStep } from '../../chat-references.js';
5
5
  import { type ReferenceToken } from '../../mentions.js';
@@ -1,8 +1,8 @@
1
- import { createElement, Fragment } from 'react';
2
- import { createRoot } from 'react-dom/client';
3
1
  import { syntaxTree } from '@codemirror/language';
4
2
  import { Facet, StateField } from '@codemirror/state';
5
3
  import { Decoration, EditorView, WidgetType } from '@codemirror/view';
4
+ import { createElement, Fragment } from 'react';
5
+ import { createRoot } from 'react-dom/client';
6
6
  import { chipRanges } from '../../mentions.js';
7
7
  import { CHIP_IN_EDITOR, MENTION_TONE, REFERENCE_TONE, SKILL_TONE, TOKEN_ICON_IN_EDITOR } from '../chips.js';
8
8
  import { referenceGlyph } from '../reference-icons.js';
@@ -1,6 +1,6 @@
1
+ import { isModHeld, matchesShortcut } from '@adecore/ui';
1
2
  import { indentLess, indentMore, insertNewline } from '@codemirror/commands';
2
3
  import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
3
- import { isModHeld, matchesShortcut } from '@adecore/ui';
4
4
  import { STASH_SHORTCUT } from '../../stash.js';
5
5
  import { pageTimeline } from '../../timeline-scroll.js';
6
6
  import { enterAction, inCode, inFenceBody, inOpenFence, listItemAt, recallDirection, tabSpaces } from './keys.js';
@@ -1,8 +1,8 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useMemo } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { useChatScope } from '../../../scope.js';
5
4
  import { useHostComposerPlaceholder } from '../../../host-hooks.js';
5
+ import { useChatScope } from '../../../scope.js';
6
6
  /* The empty box names its sigils as key caps, so they read as keys to press rather than as punctuation. */
7
7
  function hintedPlaceholder(lead, joiner, hints) {
8
8
  const root = document.createElement('span');
@@ -1,5 +1,5 @@
1
- import { type RefObject } from 'react';
2
1
  import type { ChatInfo, ProviderCapabilities } from '@adecore/agent-contracts';
2
+ import { type RefObject } from 'react';
3
3
  import type { ComposerInputHandle } from '../ComposerInput.js';
4
4
  import type { ComposerDraft } from './use-composer-draft.js';
5
5
  import { type PromptMenus } from './use-prompt-menus.js';
@@ -1,9 +1,9 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useEffect, useState } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
+ import { useHostReferables } from '../../../host-hooks.js';
4
5
  import { useChatScope } from '../../../scope.js';
5
6
  import { usePromptMenus } from './use-prompt-menus.js';
6
- import { useHostReferables } from '../../../host-hooks.js';
7
7
  // Commands the composer handles itself; the CLI's own ones are sent through as text.
8
8
  export const LOCAL_COMMANDS = ['model', 'compact', 'clear'];
9
9
  /* The pickers over a chat's composer, fed by what the chat's CLI has: its skills, its commands and its folder. */
@@ -5,9 +5,9 @@ import type { PromptGuard } from '../../guards.js';
5
5
  import { type StashedPrompt } from '../../stash.js';
6
6
  import type { ComposerInputHandle } from '../ComposerInput.js';
7
7
  import type { ChatControls } from './use-chat-controls.js';
8
- import type { NoticeTone } from './use-notice.js';
9
8
  import type { ComposerDraft } from './use-composer-draft.js';
10
9
  import type { ComposerMenus } from './use-composer-menus.js';
10
+ import type { NoticeTone } from './use-notice.js';
11
11
  import type { PromptHistory } from './use-prompt-history.js';
12
12
  import type { ComposerPromptHold } from './use-prompt-hold.js';
13
13
  interface SubmitInput {
@@ -1,6 +1,6 @@
1
- import { type DragEvent, type RefObject } from 'react';
2
- import { EditorView } from '@codemirror/view';
3
1
  import type { ProviderCapabilities } from '@adecore/agent-contracts';
2
+ import { EditorView } from '@codemirror/view';
3
+ import { type DragEvent, type RefObject } from 'react';
4
4
  import type { Referable } from '../../chat-references.js';
5
5
  import { type ReferenceToken } from '../../mentions.js';
6
6
  import type { ComposerInputHandle } from '../ComposerInput.js';
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { EditorView } from '@codemirror/view';
2
3
  import { useRef, useState } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
4
- import { EditorView } from '@codemirror/view';
5
5
  import { useChatHost } from '../../../host.js';
6
6
  import { checkAttachmentLimits, filesOf, readAttachments, uploadBytes } from '../../attachments.js';
7
7
  import { pasteBecomesAttachment, pastedTextName } from '../../guards.js';
@@ -1,8 +1,8 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
2
  import { useEffect, useRef } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { useChatScope } from '../../../scope.js';
5
4
  import { choiceWord } from '../../../agents/option-words.js';
5
+ import { useChatScope } from '../../../scope.js';
6
6
  import { registerEffortStepper } from '../../composer-effort.js';
7
7
  import { EFFORT_OPTION, stepEffort } from '../../logic/effort.js';
8
8
  /* Lets a command of the host step this chat's reasoning effort, as picking it in the pill's menu does, and says where it landed. */
@@ -1,6 +1,6 @@
1
- import { type Dispatch, type RefObject, type SetStateAction } from 'react';
2
- import type { EditorState } from '@codemirror/state';
3
1
  import type { ChatSkill } from '@adecore/agent-contracts';
2
+ import type { EditorState } from '@codemirror/state';
3
+ import { type Dispatch, type RefObject, type SetStateAction } from 'react';
4
4
  import { type Referable, type Referables } from '../../chat-references.js';
5
5
  import type { ChatDraft } from '../../drafts.js';
6
6
  import { type MentionQuery, type TextRange } from '../../mentions.js';
@@ -1,7 +1,7 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
+ import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
2
3
  import { useEffect, useId, useState } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
4
- import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
5
5
  import { useChatHost } from '../../../host.js';
6
6
  import { useHostExpandingCommands } from '../../../host-hooks.js';
7
7
  import { useChatScope } from '../../../scope.js';
@@ -1,8 +1,8 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useState } from 'react';
3
- import { useTranslation } from 'react-i18next';
4
2
  import { Button } from '@adecore/ui';
5
3
  import { formatNumber } from '@adecore/ui/format';
4
+ import { useState } from 'react';
5
+ import { useTranslation } from 'react-i18next';
6
6
  import { ReviewDiff } from './ReviewDiff.js';
7
7
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export function ApprovalReview(t0) {
@@ -1,6 +1,6 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useReviewSettled } from './review-settle.js';
3
2
  import { useTranslation } from 'react-i18next';
3
+ import { useReviewSettled } from './review-settle.js';
4
4
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  export function DiffOmitted(t0) {
6
6
  const $ = _c(9);
@@ -1,9 +1,9 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useTranslation } from 'react-i18next';
3
2
  import { Button } from '@adecore/ui';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { reviewSize } from './review-plan.js';
4
5
  import { ReviewSettleContext } from './review-settle.js';
5
6
  import { ReviewDiff } from './ReviewDiff.js';
6
- import { reviewSize } from './review-plan.js';
7
7
  import { useReviewStack } from './use-review-stack.js';
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  export function ReviewStackView(t0) {
@@ -1,7 +1,7 @@
1
- import { type ReactNode } from 'react';
2
1
  import type { EditorEngine } from '@adecore/editor';
3
2
  import { type DiffSource } from '@adecore/editor-react';
4
3
  import { type DiffDocument } from '@adecore/merge';
4
+ import { type ReactNode } from 'react';
5
5
  import { type FileChange } from '../../logic/tools.js';
6
6
  type EngineLoader = () => Promise<EditorEngine>;
7
7
  export declare function EditorDocumentDiff({ document, path, loadEngine, fallback, wrap, fill, layout, maxHeight, numbered, onSource }: {
@@ -1,16 +1,16 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useReviewSettled } from './review-settle.js';
3
- import { useEffect, useState } from 'react';
4
- import { useTranslation } from 'react-i18next';
5
- import { getFiletypeFromFileName } from '@pierre/diffs';
6
2
  import { DiffView } from '@adecore/editor-react';
7
3
  import { diffDocument, patchOf } from '@adecore/merge';
4
+ import { getFiletypeFromFileName } from '@pierre/diffs';
5
+ import { useEffect, useState } from 'react';
6
+ import { useTranslation } from 'react-i18next';
7
+ import { useHostCodeMode, useHostCodeThemes } from '../../../host-hooks.js';
8
8
  import { diffTexts } from '../../logic/tools.js';
9
9
  import { useDiffSourceTokens } from '../use-diff-source-tokens.js';
10
10
  import { diffSourceBudget } from './diff-source-budget.js';
11
11
  import { DiffOmitted } from './DiffOmitted.js';
12
12
  import { canRenderEditorDiff, EDITOR_DIFF_LIMITS, EDITOR_DIFF_WORK } from './editor-edit-model.js';
13
- import { useHostCodeMode, useHostCodeThemes } from '../../../host-hooks.js';
13
+ import { useReviewSettled } from './review-settle.js';
14
14
  // Virtualized rows remount; retain the engine so their height does not return to the loading placeholder.
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  const engines = new WeakMap();
@@ -1,7 +1,7 @@
1
- import { type ReactNode } from 'react';
2
1
  import type { ChatFileChange } from '@adecore/agent-contracts';
3
2
  import type { EditorEngine } from '@adecore/editor';
4
3
  import type { DiffSource } from '@adecore/editor-react';
4
+ import { type ReactNode } from 'react';
5
5
  import type { DiffContents } from '../full-diff.js';
6
6
  export default function EditorPatchDiff({ change, sourceChecked, contents, ignoreWhitespace, wrap, fill, maxHeight, layout, loadEngine, fallback, onSource }: {
7
7
  change: ChatFileChange;
@@ -1,5 +1,5 @@
1
- import { useMemo } from 'react';
2
1
  import { diffDocument, parsePatch } from '@adecore/merge';
2
+ import { useMemo } from 'react';
3
3
  import { diffSourceBudget, patchSourceBudget } from './diff-source-budget.js';
4
4
  import { DiffOmitted } from './DiffOmitted.js';
5
5
  import { EditorDocumentDiff } from './EditorEditDiff.js';
@@ -1,13 +1,14 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { LegacyDiffPool } from './LegacyDiffPool.js';
3
- import { useReviewSettled } from './review-settle.js';
2
+ import { ScrollArea } from '@adecore/ui';
4
3
  import { MultiFileDiff } from '@pierre/diffs/react';
5
- import { useDiffTheme } from '../diff-theme.js';
6
- import { diffTexts } from '../../logic/tools.js';
7
4
  import { useHostCodeMode } from '../../../host-hooks.js';
5
+ import { diffTexts } from '../../logic/tools.js';
6
+ import { useDiffTheme } from '../diff-theme.js';
7
+ import { LegacyDiffPool } from './LegacyDiffPool.js';
8
+ import { useReviewSettled } from './review-settle.js';
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  export default function LegacyEditDiff(t0) {
10
- const $ = _c(21);
11
+ const $ = _c(23);
11
12
  const {
12
13
  change,
13
14
  maxHeight
@@ -74,44 +75,59 @@ export default function LegacyEditDiff(t0) {
74
75
  }
75
76
  const options = t5;
76
77
  let t6;
77
- if ($[12] !== maxHeight) {
78
- t6 = maxHeight === undefined ? undefined : {
79
- maxHeight,
80
- overflow: "auto"
81
- };
82
- $[12] = maxHeight;
83
- $[13] = t6;
84
- } else {
85
- t6 = $[13];
86
- }
87
- let t7;
88
- if ($[14] !== newFile || $[15] !== oldFile || $[16] !== options) {
89
- t7 = /*#__PURE__*/_jsx(LegacyDiffPool, {
78
+ if ($[12] !== newFile || $[13] !== oldFile || $[14] !== options) {
79
+ t6 = /*#__PURE__*/_jsx(LegacyDiffPool, {
90
80
  children: /*#__PURE__*/_jsx(MultiFileDiff, {
91
81
  oldFile: oldFile,
92
82
  newFile: newFile,
93
83
  options: options
94
84
  })
95
85
  });
96
- $[14] = newFile;
97
- $[15] = oldFile;
98
- $[16] = options;
99
- $[17] = t7;
86
+ $[12] = newFile;
87
+ $[13] = oldFile;
88
+ $[14] = options;
89
+ $[15] = t6;
100
90
  } else {
101
- t7 = $[17];
91
+ t6 = $[15];
92
+ }
93
+ const body = t6;
94
+ if (maxHeight === undefined) {
95
+ let t7;
96
+ if ($[16] !== body) {
97
+ t7 = /*#__PURE__*/_jsx("div", {
98
+ className: "chat-diff select-text",
99
+ children: body
100
+ });
101
+ $[16] = body;
102
+ $[17] = t7;
103
+ } else {
104
+ t7 = $[17];
105
+ }
106
+ return t7;
107
+ }
108
+ let t7;
109
+ if ($[18] !== maxHeight) {
110
+ t7 = {
111
+ maxHeight
112
+ };
113
+ $[18] = maxHeight;
114
+ $[19] = t7;
115
+ } else {
116
+ t7 = $[19];
102
117
  }
103
118
  let t8;
104
- if ($[18] !== t6 || $[19] !== t7) {
105
- t8 = /*#__PURE__*/_jsx("div", {
119
+ if ($[20] !== body || $[21] !== t7) {
120
+ t8 = /*#__PURE__*/_jsx(ScrollArea, {
121
+ axis: "both",
106
122
  className: "chat-diff select-text",
107
- style: t6,
108
- children: t7
123
+ style: t7,
124
+ children: body
109
125
  });
110
- $[18] = t6;
111
- $[19] = t7;
112
- $[20] = t8;
126
+ $[20] = body;
127
+ $[21] = t7;
128
+ $[22] = t8;
113
129
  } else {
114
- t8 = $[20];
130
+ t8 = $[22];
115
131
  }
116
132
  return t8;
117
133
  }
@@ -1,11 +1,12 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { LegacyDiffPool } from './LegacyDiffPool.js';
3
- import { useReviewSettled } from './review-settle.js';
4
- import clsx from 'clsx';
2
+ import { ScrollArea } from '@adecore/ui';
5
3
  import { FileDiff, PatchDiff } from '@pierre/diffs/react';
4
+ import clsx from 'clsx';
5
+ import { useHostCodeMode } from '../../../host-hooks.js';
6
6
  import { useDiffTheme } from '../diff-theme.js';
7
7
  import { fullFileDiff } from '../full-diff.js';
8
- import { useHostCodeMode } from '../../../host-hooks.js';
8
+ import { LegacyDiffPool } from './LegacyDiffPool.js';
9
+ import { useReviewSettled } from './review-settle.js';
9
10
  /*
10
11
  * A patch the CLI reported itself. The renderer needs a file header, which a CLI that only sends hunks
11
12
  * gets from the path we know; a diff without hunks is shown as its own lines, so nothing is swallowed.
@@ -40,7 +41,7 @@ function lineClass(line) {
40
41
  return 'text-text-muted';
41
42
  }
42
43
  export default function LegacyUnifiedDiff(t0) {
43
- const $ = _c(33);
44
+ const $ = _c(35);
44
45
  const {
45
46
  change,
46
47
  overflow: t1,
@@ -102,63 +103,51 @@ export default function LegacyUnifiedDiff(t0) {
102
103
  const options = t7;
103
104
  if (patch === null) {
104
105
  let t8;
105
- if ($[12] !== fill || $[13] !== maxHeight) {
106
- t8 = fill ? undefined : {
107
- maxHeight
108
- };
109
- $[12] = fill;
110
- $[13] = maxHeight;
111
- $[14] = t8;
106
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
107
+ t8 = /*#__PURE__*/_jsx("pre", {});
108
+ $[12] = t8;
112
109
  } else {
113
- t8 = $[14];
110
+ t8 = $[12];
114
111
  }
115
112
  let t9;
116
- if ($[15] !== change.diff) {
117
- t9 = change.diff.replace(/\n$/, "").split("\n").map(_temp);
118
- $[15] = change.diff;
119
- $[16] = t9;
113
+ if ($[13] !== fill || $[14] !== maxHeight) {
114
+ t9 = fill ? undefined : {
115
+ maxHeight
116
+ };
117
+ $[13] = fill;
118
+ $[14] = maxHeight;
119
+ $[15] = t9;
120
120
  } else {
121
- t9 = $[16];
121
+ t9 = $[15];
122
122
  }
123
123
  let t10;
124
- if ($[17] !== t8 || $[18] !== t9) {
125
- t10 = /*#__PURE__*/_jsx("pre", {
126
- className: "max-h-64 overflow-auto px-3 py-2 font-mono text-code select-text",
127
- style: t8,
128
- children: t9
124
+ if ($[16] !== change.diff) {
125
+ t10 = change.diff.replace(/\n$/, "").split("\n").map(_temp);
126
+ $[16] = change.diff;
127
+ $[17] = t10;
128
+ } else {
129
+ t10 = $[17];
130
+ }
131
+ let t11;
132
+ if ($[18] !== t10 || $[19] !== t9) {
133
+ t11 = /*#__PURE__*/_jsx(ScrollArea, {
134
+ axis: "both",
135
+ render: t8,
136
+ viewportClassName: "max-h-64 px-3 py-2 font-mono text-code select-text",
137
+ style: t9,
138
+ children: t10
129
139
  });
130
- $[17] = t8;
131
- $[18] = t9;
132
- $[19] = t10;
140
+ $[18] = t10;
141
+ $[19] = t9;
142
+ $[20] = t11;
133
143
  } else {
134
- t10 = $[19];
144
+ t11 = $[20];
135
145
  }
136
- return t10;
146
+ return t11;
137
147
  }
138
- const t8 = fill && "flex grow flex-col";
139
- let t9;
140
- if ($[20] !== t8) {
141
- t9 = clsx("chat-diff select-text", t8);
142
- $[20] = t8;
143
- $[21] = t9;
144
- } else {
145
- t9 = $[21];
146
- }
147
- let t10;
148
- if ($[22] !== fill || $[23] !== maxHeight) {
149
- t10 = fill || maxHeight === undefined ? undefined : {
150
- maxHeight,
151
- overflow: "auto"
152
- };
153
- $[22] = fill;
154
- $[23] = maxHeight;
155
- $[24] = t10;
156
- } else {
157
- t10 = $[24];
158
- }
159
- let t11;
160
- if ($[25] !== full || $[26] !== options || $[27] !== patch) {
161
- t11 = /*#__PURE__*/_jsx(LegacyDiffPool, {
148
+ let t8;
149
+ if ($[21] !== full || $[22] !== options || $[23] !== patch) {
150
+ t8 = /*#__PURE__*/_jsx(LegacyDiffPool, {
162
151
  children: full === null ? /*#__PURE__*/_jsx(PatchDiff, {
163
152
  patch: patch,
164
153
  options: options
@@ -167,28 +156,63 @@ export default function LegacyUnifiedDiff(t0) {
167
156
  options: options
168
157
  })
169
158
  });
170
- $[25] = full;
171
- $[26] = options;
172
- $[27] = patch;
173
- $[28] = t11;
159
+ $[21] = full;
160
+ $[22] = options;
161
+ $[23] = patch;
162
+ $[24] = t8;
174
163
  } else {
175
- t11 = $[28];
164
+ t8 = $[24];
176
165
  }
177
- let t12;
178
- if ($[29] !== t10 || $[30] !== t11 || $[31] !== t9) {
179
- t12 = /*#__PURE__*/_jsx("div", {
180
- className: t9,
181
- style: t10,
182
- children: t11
183
- });
184
- $[29] = t10;
185
- $[30] = t11;
166
+ const body = t8;
167
+ if (fill || maxHeight === undefined) {
168
+ const t9 = fill && "flex grow flex-col";
169
+ let t10;
170
+ if ($[25] !== t9) {
171
+ t10 = clsx("chat-diff select-text", t9);
172
+ $[25] = t9;
173
+ $[26] = t10;
174
+ } else {
175
+ t10 = $[26];
176
+ }
177
+ let t11;
178
+ if ($[27] !== body || $[28] !== t10) {
179
+ t11 = /*#__PURE__*/_jsx("div", {
180
+ className: t10,
181
+ children: body
182
+ });
183
+ $[27] = body;
184
+ $[28] = t10;
185
+ $[29] = t11;
186
+ } else {
187
+ t11 = $[29];
188
+ }
189
+ return t11;
190
+ }
191
+ let t9;
192
+ if ($[30] !== maxHeight) {
193
+ t9 = {
194
+ maxHeight
195
+ };
196
+ $[30] = maxHeight;
186
197
  $[31] = t9;
187
- $[32] = t12;
188
198
  } else {
189
- t12 = $[32];
199
+ t9 = $[31];
200
+ }
201
+ let t10;
202
+ if ($[32] !== body || $[33] !== t9) {
203
+ t10 = /*#__PURE__*/_jsx(ScrollArea, {
204
+ axis: "both",
205
+ className: "chat-diff select-text",
206
+ style: t9,
207
+ children: body
208
+ });
209
+ $[32] = body;
210
+ $[33] = t9;
211
+ $[34] = t10;
212
+ } else {
213
+ t10 = $[34];
190
214
  }
191
- return t12;
215
+ return t10;
192
216
  }
193
217
  function _temp(line, index) {
194
218
  return /*#__PURE__*/_jsx("div", {