@seed-ship/mcp-ui-solid 6.24.0 → 7.0.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 (353) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +61 -0
  3. package/dist/adapters/connector.cjs +3 -3
  4. package/dist/adapters/connector.cjs.map +1 -1
  5. package/dist/adapters/connector.d.cts +108 -0
  6. package/dist/adapters/connector.d.ts +1 -2
  7. package/dist/adapters/connector.js +3 -3
  8. package/dist/adapters/connector.js.map +1 -1
  9. package/dist/adapters/index.d.cts +21 -0
  10. package/dist/adapters/index.d.ts +6 -7
  11. package/dist/adapters/macro-run.d.cts +99 -0
  12. package/dist/adapters/macro-run.d.ts +1 -2
  13. package/dist/adapters/presentation.d.cts +1 -2
  14. package/dist/adapters/presentation.d.ts +1 -2
  15. package/dist/adapters.d.cts +1 -1
  16. package/dist/adapters.d.ts +1 -1
  17. package/dist/components/ActionGroupRenderer.cjs +6 -6
  18. package/dist/components/ActionGroupRenderer.cjs.map +1 -1
  19. package/dist/components/ActionGroupRenderer.d.cts +38 -0
  20. package/dist/components/ActionGroupRenderer.d.ts +1 -2
  21. package/dist/components/ActionGroupRenderer.js +6 -6
  22. package/dist/components/ActionGroupRenderer.js.map +1 -1
  23. package/dist/components/ActionRenderer.d.cts +9 -0
  24. package/dist/components/ActionRenderer.d.ts +0 -1
  25. package/dist/components/AgentCard.d.cts +19 -0
  26. package/dist/components/AgentCard.d.ts +1 -2
  27. package/dist/components/AgentHandoff.d.cts +11 -0
  28. package/dist/components/AgentHandoff.d.ts +1 -2
  29. package/dist/components/ArtifactRenderer.d.cts +11 -0
  30. package/dist/components/ArtifactRenderer.d.ts +0 -1
  31. package/dist/components/AutocompleteDropdown.cjs +6 -6
  32. package/dist/components/AutocompleteDropdown.cjs.map +1 -1
  33. package/dist/components/AutocompleteDropdown.d.cts +70 -0
  34. package/dist/components/AutocompleteDropdown.d.ts +1 -2
  35. package/dist/components/AutocompleteDropdown.js +6 -6
  36. package/dist/components/AutocompleteDropdown.js.map +1 -1
  37. package/dist/components/AutocompleteFormField.cjs +6 -5
  38. package/dist/components/AutocompleteFormField.cjs.map +1 -1
  39. package/dist/components/AutocompleteFormField.d.cts +51 -0
  40. package/dist/components/AutocompleteFormField.d.ts +1 -2
  41. package/dist/components/AutocompleteFormField.d.ts.map +1 -1
  42. package/dist/components/AutocompleteFormField.js +6 -5
  43. package/dist/components/AutocompleteFormField.js.map +1 -1
  44. package/dist/components/BriefingDiff.d.cts +11 -0
  45. package/dist/components/BriefingDiff.d.ts +1 -2
  46. package/dist/components/CarouselRenderer.d.cts +12 -0
  47. package/dist/components/CarouselRenderer.d.ts +1 -2
  48. package/dist/components/ChartJSRenderer.cjs +216 -6
  49. package/dist/components/ChartJSRenderer.cjs.map +1 -1
  50. package/dist/components/ChartJSRenderer.d.cts +62 -0
  51. package/dist/components/ChartJSRenderer.d.ts +1 -2
  52. package/dist/components/ChartJSRenderer.d.ts.map +1 -1
  53. package/dist/components/ChartJSRenderer.js +217 -7
  54. package/dist/components/ChartJSRenderer.js.map +1 -1
  55. package/dist/components/ChatPrompt.cjs +5 -5
  56. package/dist/components/ChatPrompt.cjs.map +1 -1
  57. package/dist/components/ChatPrompt.d.cts +69 -0
  58. package/dist/components/ChatPrompt.d.ts +1 -2
  59. package/dist/components/ChatPrompt.js +5 -5
  60. package/dist/components/ChatPrompt.js.map +1 -1
  61. package/dist/components/CodeBlockRenderer.d.cts +23 -0
  62. package/dist/components/CodeBlockRenderer.d.ts +1 -2
  63. package/dist/components/ComponentToolbar.cjs +5 -5
  64. package/dist/components/ComponentToolbar.cjs.map +1 -1
  65. package/dist/components/ComponentToolbar.d.cts +46 -0
  66. package/dist/components/ComponentToolbar.d.ts +0 -1
  67. package/dist/components/ComponentToolbar.js +5 -5
  68. package/dist/components/ComponentToolbar.js.map +1 -1
  69. package/dist/components/DataPreviewSection.d.cts +11 -0
  70. package/dist/components/DataPreviewSection.d.ts +1 -2
  71. package/dist/components/DegradedFallback.cjs +1 -1
  72. package/dist/components/DegradedFallback.cjs.map +1 -1
  73. package/dist/components/DegradedFallback.d.cts +43 -0
  74. package/dist/components/DegradedFallback.d.ts +0 -1
  75. package/dist/components/DegradedFallback.js +1 -1
  76. package/dist/components/DegradedFallback.js.map +1 -1
  77. package/dist/components/DraggableGridItem.d.cts +94 -0
  78. package/dist/components/DraggableGridItem.d.ts +1 -2
  79. package/dist/components/EditableLayoutContext.d.cts +4 -0
  80. package/dist/components/EditableLayoutContext.d.ts +0 -1
  81. package/dist/components/EditableUIResourceRenderer.d.cts +42 -0
  82. package/dist/components/EditableUIResourceRenderer.d.ts +1 -2
  83. package/dist/components/ElicitationForm.d.cts +67 -0
  84. package/dist/components/ElicitationForm.d.ts +1 -2
  85. package/dist/components/ExpandableWrapper.cjs +10 -7
  86. package/dist/components/ExpandableWrapper.cjs.map +1 -1
  87. package/dist/components/ExpandableWrapper.d.cts +49 -0
  88. package/dist/components/ExpandableWrapper.d.ts +0 -1
  89. package/dist/components/ExpandableWrapper.d.ts.map +1 -1
  90. package/dist/components/ExpandableWrapper.js +10 -7
  91. package/dist/components/ExpandableWrapper.js.map +1 -1
  92. package/dist/components/FeedbackInline.d.cts +70 -0
  93. package/dist/components/FeedbackInline.d.ts +0 -1
  94. package/dist/components/FooterRenderer.d.cts +15 -0
  95. package/dist/components/FooterRenderer.d.ts +0 -1
  96. package/dist/components/FormFieldRenderer.cjs +13 -12
  97. package/dist/components/FormFieldRenderer.cjs.map +1 -1
  98. package/dist/components/FormFieldRenderer.d.cts +19 -0
  99. package/dist/components/FormFieldRenderer.d.ts +1 -2
  100. package/dist/components/FormFieldRenderer.d.ts.map +1 -1
  101. package/dist/components/FormFieldRenderer.js +13 -12
  102. package/dist/components/FormFieldRenderer.js.map +1 -1
  103. package/dist/components/FormRenderer.cjs +1 -1
  104. package/dist/components/FormRenderer.cjs.map +1 -1
  105. package/dist/components/FormRenderer.d.cts +14 -0
  106. package/dist/components/FormRenderer.d.ts +1 -2
  107. package/dist/components/FormRenderer.js +1 -1
  108. package/dist/components/FormRenderer.js.map +1 -1
  109. package/dist/components/GenerativeUIErrorBoundary.cjs +1 -1
  110. package/dist/components/GenerativeUIErrorBoundary.cjs.map +1 -1
  111. package/dist/components/GenerativeUIErrorBoundary.d.cts +58 -0
  112. package/dist/components/GenerativeUIErrorBoundary.d.ts +1 -2
  113. package/dist/components/GenerativeUIErrorBoundary.default.d.cts +1 -0
  114. package/dist/components/GenerativeUIErrorBoundary.default.d.ts +1 -2
  115. package/dist/components/GenerativeUIErrorBoundary.js +1 -1
  116. package/dist/components/GenerativeUIErrorBoundary.js.map +1 -1
  117. package/dist/components/GhostText.cjs +2 -2
  118. package/dist/components/GhostText.cjs.map +1 -1
  119. package/dist/components/GhostText.d.cts +112 -0
  120. package/dist/components/GhostText.d.ts +0 -1
  121. package/dist/components/GhostText.js +2 -2
  122. package/dist/components/GhostText.js.map +1 -1
  123. package/dist/components/GraphRenderer.cjs +100 -29
  124. package/dist/components/GraphRenderer.cjs.map +1 -1
  125. package/dist/components/GraphRenderer.d.cts +66 -0
  126. package/dist/components/GraphRenderer.d.ts +2 -3
  127. package/dist/components/GraphRenderer.d.ts.map +1 -1
  128. package/dist/components/GraphRenderer.js +100 -29
  129. package/dist/components/GraphRenderer.js.map +1 -1
  130. package/dist/components/GridRenderer.d.cts +49 -0
  131. package/dist/components/GridRenderer.d.ts +1 -2
  132. package/dist/components/IframeFallbackLink.d.cts +22 -0
  133. package/dist/components/IframeFallbackLink.d.ts +0 -1
  134. package/dist/components/ImageGalleryRenderer.d.cts +22 -0
  135. package/dist/components/ImageGalleryRenderer.d.ts +1 -2
  136. package/dist/components/LightboxOverlay.d.cts +31 -0
  137. package/dist/components/LightboxOverlay.d.ts +1 -2
  138. package/dist/components/MapRenderer.d.cts +77 -0
  139. package/dist/components/MapRenderer.d.ts +1 -2
  140. package/dist/components/MissingValue.cjs +2 -2
  141. package/dist/components/MissingValue.cjs.map +1 -1
  142. package/dist/components/MissingValue.d.cts +26 -0
  143. package/dist/components/MissingValue.d.ts +0 -1
  144. package/dist/components/MissingValue.js +2 -2
  145. package/dist/components/MissingValue.js.map +1 -1
  146. package/dist/components/ModalRenderer.cjs +39 -31
  147. package/dist/components/ModalRenderer.cjs.map +1 -1
  148. package/dist/components/ModalRenderer.d.cts +66 -0
  149. package/dist/components/ModalRenderer.d.ts +1 -2
  150. package/dist/components/ModalRenderer.d.ts.map +1 -1
  151. package/dist/components/ModalRenderer.js +40 -32
  152. package/dist/components/ModalRenderer.js.map +1 -1
  153. package/dist/components/PortalDropdownMenu.cjs +6 -3
  154. package/dist/components/PortalDropdownMenu.cjs.map +1 -1
  155. package/dist/components/PortalDropdownMenu.d.cts +55 -0
  156. package/dist/components/PortalDropdownMenu.d.ts +0 -1
  157. package/dist/components/PortalDropdownMenu.d.ts.map +1 -1
  158. package/dist/components/PortalDropdownMenu.js +7 -4
  159. package/dist/components/PortalDropdownMenu.js.map +1 -1
  160. package/dist/components/PresentationFeedback.d.cts +112 -0
  161. package/dist/components/PresentationFeedback.d.ts +0 -1
  162. package/dist/components/RenderContext.d.cts +41 -0
  163. package/dist/components/RenderContext.d.ts +1 -2
  164. package/dist/components/ResizeHandle.d.cts +49 -0
  165. package/dist/components/ResizeHandle.d.ts +0 -1
  166. package/dist/components/SafeHtml.d.cts +45 -0
  167. package/dist/components/SafeHtml.d.ts +0 -1
  168. package/dist/components/ScratchpadPanel.cjs +38 -44
  169. package/dist/components/ScratchpadPanel.cjs.map +1 -1
  170. package/dist/components/ScratchpadPanel.d.cts +34 -0
  171. package/dist/components/ScratchpadPanel.d.ts +1 -2
  172. package/dist/components/ScratchpadPanel.d.ts.map +1 -1
  173. package/dist/components/ScratchpadPanel.js +38 -44
  174. package/dist/components/ScratchpadPanel.js.map +1 -1
  175. package/dist/components/SplitStepper.d.cts +11 -0
  176. package/dist/components/SplitStepper.d.ts +1 -2
  177. package/dist/components/StreamingUIRenderer.d.cts +58 -0
  178. package/dist/components/StreamingUIRenderer.d.ts +3 -4
  179. package/dist/components/UIResourceRenderer.cjs +20 -20
  180. package/dist/components/UIResourceRenderer.cjs.map +1 -1
  181. package/dist/components/UIResourceRenderer.d.cts +181 -0
  182. package/dist/components/UIResourceRenderer.d.ts +3 -4
  183. package/dist/components/UIResourceRenderer.default.d.cts +1 -0
  184. package/dist/components/UIResourceRenderer.default.d.ts +1 -2
  185. package/dist/components/UIResourceRenderer.js +20 -20
  186. package/dist/components/UIResourceRenderer.js.map +1 -1
  187. package/dist/components/VerifiedText.d.cts +22 -0
  188. package/dist/components/VerifiedText.d.ts +1 -2
  189. package/dist/components/VideoRenderer.d.cts +41 -0
  190. package/dist/components/VideoRenderer.d.ts +1 -2
  191. package/dist/components/chart-data-table.d.cts +68 -0
  192. package/dist/components/chart-data-table.d.ts +0 -1
  193. package/dist/components/chart-missing-plugin.cjs +4 -4
  194. package/dist/components/chart-missing-plugin.cjs.map +1 -1
  195. package/dist/components/chart-missing-plugin.d.cts +128 -0
  196. package/dist/components/chart-missing-plugin.d.ts +4 -3
  197. package/dist/components/chart-missing-plugin.d.ts.map +1 -1
  198. package/dist/components/chart-missing-plugin.js +4 -4
  199. package/dist/components/chart-missing-plugin.js.map +1 -1
  200. package/dist/components/index.d.cts +62 -0
  201. package/dist/components/index.d.ts +57 -58
  202. package/dist/components.d.cts +2 -2
  203. package/dist/components.d.ts +2 -2
  204. package/dist/context/AutocompleteContext.d.cts +76 -0
  205. package/dist/context/AutocompleteContext.d.ts +1 -2
  206. package/dist/context/MCPActionContext.d.cts +169 -0
  207. package/dist/context/MCPActionContext.d.ts +0 -1
  208. package/dist/context/MCPUIConfigContext.d.cts +201 -0
  209. package/dist/context/MCPUIConfigContext.d.ts +1 -2
  210. package/dist/context/MCPUIMathContext.d.cts +17 -0
  211. package/dist/context/MCPUIMathContext.d.ts +0 -1
  212. package/dist/context/MCPUIStringsContext.d.cts +802 -0
  213. package/dist/context/MCPUIStringsContext.d.ts +1 -2
  214. package/dist/context/MCPUITelemetryContext.d.cts +35 -0
  215. package/dist/context/MCPUITelemetryContext.d.ts +1 -2
  216. package/dist/context/index.d.cts +7 -0
  217. package/dist/context/index.d.ts +2 -3
  218. package/dist/hooks/createResponsiveGrid.d.cts +5 -0
  219. package/dist/hooks/createResponsiveGrid.d.ts +0 -1
  220. package/dist/hooks/index.d.cts +25 -0
  221. package/dist/hooks/index.d.ts +20 -21
  222. package/dist/hooks/useAction.d.cts +164 -0
  223. package/dist/hooks/useAction.d.ts +2 -3
  224. package/dist/hooks/useAutocomplete.d.cts +118 -0
  225. package/dist/hooks/useAutocomplete.d.ts +1 -2
  226. package/dist/hooks/useChatBus.d.cts +55 -0
  227. package/dist/hooks/useChatBus.d.ts +1 -2
  228. package/dist/hooks/useConditionalField.d.cts +34 -0
  229. package/dist/hooks/useConditionalField.d.ts +1 -2
  230. package/dist/hooks/useDataValidator.d.cts +41 -0
  231. package/dist/hooks/useDataValidator.d.ts +1 -2
  232. package/dist/hooks/useDragDrop.d.cts +99 -0
  233. package/dist/hooks/useDragDrop.d.ts +1 -2
  234. package/dist/hooks/useFormPersistence.d.cts +80 -0
  235. package/dist/hooks/useFormPersistence.d.ts +0 -1
  236. package/dist/hooks/useModal.d.cts +106 -0
  237. package/dist/hooks/useModal.d.ts +0 -1
  238. package/dist/hooks/useResize.d.cts +86 -0
  239. package/dist/hooks/useResize.d.ts +1 -2
  240. package/dist/hooks/useStreamingUI.d.cts +117 -0
  241. package/dist/hooks/useStreamingUI.d.ts +1 -2
  242. package/dist/hooks.d.cts +1 -1
  243. package/dist/hooks.d.ts +1 -1
  244. package/dist/index.d.cts +91 -92
  245. package/dist/index.d.ts +91 -92
  246. package/dist/plugins/duckdb.d.cts +1 -2
  247. package/dist/plugins/duckdb.d.ts +1 -2
  248. package/dist/plugins/groq.d.cts +12 -0
  249. package/dist/plugins/groq.d.ts +1 -2
  250. package/dist/plugins/index.d.cts +9 -0
  251. package/dist/plugins/index.d.ts +3 -4
  252. package/dist/plugins/katex.d.cts +1 -2
  253. package/dist/plugins/katex.d.ts +1 -2
  254. package/dist/plugins/rest.d.cts +12 -0
  255. package/dist/plugins/rest.d.ts +1 -2
  256. package/dist/plugins/supabase.d.cts +12 -0
  257. package/dist/plugins/supabase.d.ts +1 -2
  258. package/dist/services/chat-bus.d.cts +100 -0
  259. package/dist/services/chat-bus.d.ts +1 -2
  260. package/dist/services/chat-prompt-controller.d.cts +92 -0
  261. package/dist/services/chat-prompt-controller.d.ts +1 -2
  262. package/dist/services/component-registry.d.cts +119 -0
  263. package/dist/services/component-registry.d.ts +1 -2
  264. package/dist/services/data-validator.d.cts +27 -0
  265. package/dist/services/data-validator.d.ts +1 -2
  266. package/dist/services/index.d.cts +9 -0
  267. package/dist/services/index.d.ts +4 -5
  268. package/dist/services/telemetry.d.cts +86 -0
  269. package/dist/services/telemetry.d.ts +1 -2
  270. package/dist/services/validation.d.cts +169 -0
  271. package/dist/services/validation.d.ts +1 -2
  272. package/dist/stores/scratchpad-store.d.cts +109 -0
  273. package/dist/stores/scratchpad-store.d.ts +1 -2
  274. package/dist/stores/server-capabilities-store.d.cts +171 -0
  275. package/dist/stores/server-capabilities-store.d.ts +0 -1
  276. package/dist/test-setup.d.cts +5 -0
  277. package/dist/test-setup.d.ts +0 -1
  278. package/dist/testing/index.d.cts +34 -0
  279. package/dist/testing/index.d.ts +1 -2
  280. package/dist/types/chat-bus.d.cts +783 -0
  281. package/dist/types/chat-bus.d.ts +4 -5
  282. package/dist/types/index.d.cts +1616 -0
  283. package/dist/types/index.d.ts +0 -1
  284. package/dist/types-export.d.cts +1 -2
  285. package/dist/types-export.d.ts +1 -2
  286. package/dist/types.d.cts +1 -1
  287. package/dist/types.d.ts +1 -1
  288. package/dist/utils/degraded-projections.d.cts +119 -0
  289. package/dist/utils/degraded-projections.d.ts +0 -1
  290. package/dist/utils/duplicate-mount-registry.d.cts +83 -0
  291. package/dist/utils/duplicate-mount-registry.d.ts +0 -1
  292. package/dist/utils/escape-html.d.cts +12 -0
  293. package/dist/utils/escape-html.d.ts +0 -1
  294. package/dist/utils/format-string.d.cts +25 -0
  295. package/dist/utils/format-string.d.ts +0 -1
  296. package/dist/utils/iframe-coep.d.cts +53 -0
  297. package/dist/utils/iframe-coep.d.ts +1 -2
  298. package/dist/utils/logger.d.cts +57 -0
  299. package/dist/utils/logger.d.ts +0 -1
  300. package/dist/utils/math-markdown.cjs +1 -1
  301. package/dist/utils/math-markdown.cjs.map +1 -1
  302. package/dist/utils/math-markdown.d.cts +15 -0
  303. package/dist/utils/math-markdown.d.ts +1 -2
  304. package/dist/utils/math-markdown.js +1 -1
  305. package/dist/utils/math-markdown.js.map +1 -1
  306. package/dist/utils/missing-value.d.cts +78 -0
  307. package/dist/utils/missing-value.d.ts +0 -1
  308. package/dist/utils/pan-zoom.d.cts +234 -0
  309. package/dist/utils/pan-zoom.d.ts +0 -1
  310. package/dist/utils/perf.d.cts +18 -0
  311. package/dist/utils/perf.d.ts +0 -1
  312. package/dist/utils/safe-url.d.cts +33 -0
  313. package/dist/utils/safe-url.d.ts +0 -1
  314. package/dist/utils/sanitize-html.d.cts +142 -0
  315. package/dist/utils/sanitize-html.d.ts +0 -1
  316. package/dist/utils/stable-key.d.cts +32 -0
  317. package/dist/utils/stable-key.d.ts +0 -1
  318. package/dist/utils/theme.cjs +91 -0
  319. package/dist/utils/theme.cjs.map +1 -0
  320. package/dist/utils/theme.d.cts +10 -0
  321. package/dist/utils/theme.d.ts +10 -0
  322. package/dist/utils/theme.d.ts.map +1 -0
  323. package/dist/utils/theme.js +91 -0
  324. package/dist/utils/theme.js.map +1 -0
  325. package/dist/validation.d.cts +3 -4
  326. package/dist/validation.d.ts +3 -4
  327. package/docs/SECURITY-DEPENDENCIES.md +209 -0
  328. package/docs/THEMING.md +205 -0
  329. package/docs/ZOD4-STABLE-MIGRATION-2026-10-26.md +181 -0
  330. package/package.json +12 -9
  331. package/src/adapters/connector.ts +3 -3
  332. package/src/components/ActionGroupRenderer.tsx +6 -6
  333. package/src/components/AutocompleteDropdown.tsx +17 -17
  334. package/src/components/AutocompleteFormField.tsx +10 -9
  335. package/src/components/ChartJSRenderer.tsx +483 -239
  336. package/src/components/ChatPrompt.tsx +16 -16
  337. package/src/components/ComponentToolbar.tsx +5 -5
  338. package/src/components/DegradedFallback.tsx +9 -9
  339. package/src/components/ExpandableWrapper.tsx +15 -11
  340. package/src/components/FormFieldRenderer.tsx +52 -51
  341. package/src/components/FormRenderer.tsx +12 -12
  342. package/src/components/GenerativeUIErrorBoundary.tsx +6 -6
  343. package/src/components/GhostText.tsx +7 -7
  344. package/src/components/GraphRenderer.tsx +83 -67
  345. package/src/components/MissingValue.tsx +2 -2
  346. package/src/components/ModalRenderer.tsx +11 -5
  347. package/src/components/PortalDropdownMenu.tsx +6 -2
  348. package/src/components/ScratchpadPanel.tsx +144 -141
  349. package/src/components/UIResourceRenderer.tsx +101 -101
  350. package/src/components/chart-missing-plugin.ts +5 -3
  351. package/src/styles/autocomplete.css +53 -53
  352. package/src/utils/math-markdown.ts +1 -1
  353. package/src/utils/theme.ts +101 -0
@@ -0,0 +1,802 @@
1
+ /**
2
+ * MCPUIStringsContext — i18n for the library's own "chrome" strings.
3
+ *
4
+ * @since v6.6.0 (D2 / R4 of ROADMAP-opendata-macro-mcpui)
5
+ *
6
+ * ## Scope — chrome only, NOT content
7
+ *
8
+ * MCP-UI renders two kinds of text :
9
+ *
10
+ * - **Content** — table headers, chart titles, action labels, prompt
11
+ * questions. These come from the payload and are ALREADY localized by
12
+ * whoever produced the payload (the connector / MCP server). MCP-UI
13
+ * renders them verbatim and this context never touches them.
14
+ * - **Chrome** — the handful of strings the library itself hardcodes :
15
+ * the expand-button tooltip, the feedback acknowledgements, etc. THIS
16
+ * is what `MCPUIStrings` covers.
17
+ *
18
+ * There is deliberately no full i18n framework here : no per-renderer
19
+ * `locale` prop, no message catalogue, no ICU. A flat string map behind a
20
+ * context is enough — the chrome surface is small and static.
21
+ *
22
+ * ## Defaults are English
23
+ *
24
+ * `DEFAULT_MCPUI_STRINGS` is English. A published library should not ship
25
+ * hardcoded French. Consumers that want another language wrap their tree
26
+ * in `<MCPUIStringsProvider strings={...}>` with a partial override.
27
+ *
28
+ * Component props that already carry a label (e.g. `FeedbackInline`'s
29
+ * `positiveAck`, `ExpandableWrapper`'s `copyLabel`) keep priority over the
30
+ * provider — the provider only fills the gap when no explicit prop is set.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * import { MCPUIStringsProvider } from '@seed-ship/mcp-ui-solid'
35
+ *
36
+ * <MCPUIStringsProvider strings={{ expand: 'Agrandir', feedbackUseful: 'Utile' }}>
37
+ * <App />
38
+ * </MCPUIStringsProvider>
39
+ * ```
40
+ */
41
+ import { type JSX } from 'solid-js';
42
+ /**
43
+ * The library's own chrome strings. Flat map, no interpolation.
44
+ *
45
+ * The original chrome keys remain required. Later additions are optional
46
+ * so existing typed dictionaries remain valid across minor releases.
47
+ * `useMCPUIStrings` resolves omitted keys to their English defaults.
48
+ */
49
+ export interface MCPUIStrings {
50
+ /** `title` of the expand-to-fullscreen button. */
51
+ expand: string;
52
+ /** Heading + `aria-label` of the fullscreen modal when no title is given. */
53
+ expandedView: string;
54
+ /** Default tooltip of the copy button (overridden by `copyLabel` prop). */
55
+ copyToClipboard: string;
56
+ /** `aria-label` of the close button in the fullscreen modal. */
57
+ closeExpandedView: string;
58
+ /** `title` of the thumb-up button. */
59
+ feedbackUseful: string;
60
+ /** `title` of the thumb-down button. */
61
+ feedbackNotUseful: string;
62
+ /** Acknowledgement shown after a positive rating (overridden by `positiveAck`). */
63
+ feedbackPositiveAck: string;
64
+ /** Acknowledgement shown after a negative rating (overridden by `negativeAck`). */
65
+ feedbackNegativeAck: string;
66
+ /** Label of the streaming retry button. */
67
+ retry: string;
68
+ /** Label of a generic inline "confirm" button (scratchpad filter editor). */
69
+ ok?: string;
70
+ /** Label of a generic "cancel" button (scratchpad, chat prompt). */
71
+ cancel?: string;
72
+ /** Label of a generic "confirm" button (chat prompt). */
73
+ confirm?: string;
74
+ /** Label of a generic "submit" button (chat prompt, form renderers). */
75
+ submit?: string;
76
+ /** `aria-label` of a generic "dismiss" button (chat prompt). */
77
+ dismiss?: string;
78
+ /** Affirmative value label (streaming metadata, scratchpad feedback). */
79
+ yes?: string;
80
+ /** Negative value label (scratchpad feedback). */
81
+ no?: string;
82
+ /** Label of the native chart view button. */
83
+ chartView?: string;
84
+ /** Label of the exact-data table view button. */
85
+ chartDataView?: string;
86
+ /** Accessible name of the chart/data view selector. */
87
+ chartViewSelector?: string;
88
+ /** Caption and accessible name for the chart's data table. */
89
+ chartDataTable?: string;
90
+ /** Screen-reader description associated with the chart canvas. */
91
+ chartDataSummary?: string;
92
+ /** Empty state shown when a chart has no data points. */
93
+ chartNoData?: string;
94
+ /** Accessible name of the pagination "previous page" button. */
95
+ paginationPrevious?: string;
96
+ /** Accessible name of the pagination "next page" button. */
97
+ paginationNext?: string;
98
+ /** Accessible name of the pagination page-size `<select>`. */
99
+ paginationPageSize?: string;
100
+ /** Fallback `aria-label` for a grid region without a title. */
101
+ gridRegion?: string;
102
+ /** `aria-label` of the suggestions listbox. */
103
+ autocompleteSuggestions?: string;
104
+ /** Fallback loading message of the suggestions listbox. */
105
+ autocompleteLoading?: string;
106
+ /** Fallback empty state of the suggestions listbox. */
107
+ autocompleteEmpty?: string;
108
+ /** Toolbar title of the carousel's expandable wrapper. */
109
+ carouselTitle?: string;
110
+ /** `copyLabel` of the carousel's copy button (title + `aria-label`). */
111
+ carouselCopy?: string;
112
+ /** Toolbar title of the map's expandable wrapper. */
113
+ mapTitle?: string;
114
+ /** `copyLabel` of the map's copy button (title + `aria-label`). */
115
+ mapCopy?: string;
116
+ /** `title` of the chart PNG export button. */
117
+ chartDownloadPng?: string;
118
+ /** `aria-label` of the chart PNG export button. */
119
+ chartDownloadPngAria?: string;
120
+ /** `copyLabel` of the chart's copy button (title + `aria-label`). */
121
+ chartCopy?: string;
122
+ /** Overlay shown while the chart library and data are loading. */
123
+ chartLoading?: string;
124
+ /** `placeholder` of the in-code search input. */
125
+ codeSearchPlaceholder?: string;
126
+ /** `aria-label` of the in-code search input. */
127
+ codeSearchAria?: string;
128
+ /** `aria-label` of the code download button. */
129
+ codeDownloadAria?: string;
130
+ /** `title` of the code download button. */
131
+ codeDownload?: string;
132
+ /** `aria-label` of the word-wrap toggle. */
133
+ codeToggleWordWrap?: string;
134
+ /** `aria-label` and `title` of the code copy button. */
135
+ codeCopy?: string;
136
+ /** Heading and toolbar title of a code block with no filename or language. */
137
+ codeTitle?: string;
138
+ /** `title` of the word-wrap toggle while word wrap is OFF. */
139
+ codeWordWrapEnable?: string;
140
+ /** `title` of the word-wrap toggle while word wrap is ON. */
141
+ codeWordWrapDisable?: string;
142
+ /** `title` of the CSV export button. Template — `{count}` = row count. */
143
+ exportCsvRows?: string;
144
+ /** `title` of the JSON export button. Template — `{count}` = row count. */
145
+ exportJsonRows?: string;
146
+ /**
147
+ * `title` of a sortable column header (data preview and tables).
148
+ * Template — `{column}` = the column label.
149
+ */
150
+ sortBy?: string;
151
+ /**
152
+ * `aria-label` of a chip/tag/filter removal button.
153
+ * Template — `{name}` = the item being removed.
154
+ */
155
+ removeItem?: string;
156
+ /** `placeholder` of the multi-select options filter input. */
157
+ filterPlaceholder?: string;
158
+ /** Badge shown next to a field whose type the renderer does not support. */
159
+ fieldNotSupported?: string;
160
+ /** Empty state of the multi-select / autocomplete option list. */
161
+ fieldNoMatches?: string;
162
+ /** Fallback help text of a `fieldset` field with none. */
163
+ fieldGroupContainer?: string;
164
+ /** Fallback `placeholder` of the multi-select trigger. */
165
+ fieldSelectPlaceholder?: string;
166
+ /** Fallback `placeholder` of the tags input. */
167
+ fieldTagsPlaceholder?: string;
168
+ /** `aria-label` of the scratchpad close button. */
169
+ scratchpadClose?: string;
170
+ /** Heading of the filter preview block. */
171
+ scratchpadPreview?: string;
172
+ /** Empty state of the filter preview block. */
173
+ scratchpadNoResults?: string;
174
+ /** Label of the "refine the filters" button in the empty preview. */
175
+ scratchpadModifyFilters?: string;
176
+ /** Empty state of the active-filter chip row. */
177
+ scratchpadNoFilters?: string;
178
+ /** Label of the collapsed embedded form's "edit" button. */
179
+ scratchpadEdit?: string;
180
+ /** Label of the free-text feedback "send" button. */
181
+ scratchpadSend?: string;
182
+ /** Label of the debug toggle while the raw SSE payload is hidden. */
183
+ scratchpadShowRaw?: string;
184
+ /** Label of the debug toggle while the raw SSE payload is shown. */
185
+ scratchpadHideRaw?: string;
186
+ /** Fallback `placeholder` of the free-text feedback input. */
187
+ scratchpadCommentPlaceholder?: string;
188
+ /** Fallback message of an error section with none. */
189
+ scratchpadError?: string;
190
+ /** Fallback name of a source card with none. */
191
+ scratchpadSource?: string;
192
+ /** `title` and `aria-label` of the graph export menu trigger. */
193
+ graphExport?: string;
194
+ /** `copyLabel` of the graph's copy button (title + `aria-label`). */
195
+ graphCopy?: string;
196
+ /** Toolbar title of the graph's expandable wrapper when untitled. */
197
+ graphTitle?: string;
198
+ /**
199
+ * Visible label of the graph export menu trigger button.
200
+ * @since 6.20.0
201
+ */
202
+ graphExportMenu?: string;
203
+ /** Label of the "download PNG" item in the graph export menu. */
204
+ graphDownloadPng?: string;
205
+ /** Hint under the "download PNG" item. */
206
+ graphDownloadPngHint?: string;
207
+ /** Label of the "download Mermaid" item in the graph export menu. */
208
+ graphDownloadMermaid?: string;
209
+ /** Hint under the "download Mermaid" item. */
210
+ graphDownloadMermaidHint?: string;
211
+ /** Label of the "download JSON" item in the graph export menu. */
212
+ graphDownloadJson?: string;
213
+ /** Hint under the "download JSON" item. */
214
+ graphDownloadJsonHint?: string;
215
+ /** `copyLabel` of the gallery's copy button (title + `aria-label`). */
216
+ galleryCopy?: string;
217
+ /** Toolbar title of the gallery's expandable wrapper when untitled. */
218
+ galleryTitle?: string;
219
+ /** `copyLabel` of the video's copy button (title + `aria-label`). */
220
+ videoCopy?: string;
221
+ /** Toolbar title and iframe `title` of an untitled video. */
222
+ videoTitle?: string;
223
+ /** `title` of the `detected` prefill-source badge. */
224
+ sourceDetected?: string;
225
+ /** `title` of the `inferred` prefill-source badge. */
226
+ sourceInferred?: string;
227
+ /** `title` of the `user` prefill-source badge. */
228
+ sourcePrevious?: string;
229
+ /** `aria-label` of the lightbox dialog. */
230
+ lightboxLabel?: string;
231
+ /** `aria-label` of the lightbox close button. */
232
+ lightboxClose?: string;
233
+ /** `aria-label` of the lightbox "previous image" button. */
234
+ lightboxPrevious?: string;
235
+ /** `aria-label` of the lightbox "next image" button. */
236
+ lightboxNext?: string;
237
+ /**
238
+ * `aria-label` / `title` of the "zoom in" button.
239
+ * @since 6.22.0
240
+ */
241
+ zoomIn?: string;
242
+ /**
243
+ * `aria-label` / `title` of the "zoom out" button.
244
+ * @since 6.22.0
245
+ */
246
+ zoomOut?: string;
247
+ /**
248
+ * `aria-label` / `title` of the "reset zoom" button — the one the chart
249
+ * toolbar only shows while the chart is actually zoomed.
250
+ * @since 6.22.0
251
+ */
252
+ zoomReset?: string;
253
+ /**
254
+ * Zoom-level readout next to the zoom buttons.
255
+ * Template — `{percent}` = the scale as a whole percentage (`100` at rest).
256
+ * @since 6.22.0
257
+ */
258
+ zoomLevel?: string;
259
+ /** `aria-label` of the modal close button. */
260
+ modalClose?: string;
261
+ /** Default `title`/`aria-label` of the generic copy button. */
262
+ copy?: string;
263
+ /** `title` of the metric card copy button. */
264
+ copyMetric?: string;
265
+ /** `title` of the text card copy button. */
266
+ copyText?: string;
267
+ /** `title` of the error card copy button. */
268
+ copyErrorDetails?: string;
269
+ /** Toolbar title of the table's expandable wrapper when untitled. */
270
+ tableTitle?: string;
271
+ /** `title`/`copyLabel` of the table CSV copy button. */
272
+ tableCopyCsv?: string;
273
+ /** `title` and `aria-label` of the table export menu trigger. */
274
+ tableExport?: string;
275
+ /** `aria-label` of the table search reset button. */
276
+ tableClearSearch?: string;
277
+ /** Fallback `aria-label` of the table scroll region when untitled. */
278
+ tableAriaLabel?: string;
279
+ /**
280
+ * `placeholder` of the table search input. The payload's
281
+ * `params.searchPlaceholder` still wins when set.
282
+ */
283
+ tableSearchPlaceholder?: string;
284
+ /** Label of the "copy as TSV" item in the export menu. */
285
+ tableCopyTsv?: string;
286
+ /** Label of the "download CSV" item in the export menu. */
287
+ tableDownloadCsv?: string;
288
+ /** Label of the "download JSON" item in the export menu. */
289
+ tableDownloadJson?: string;
290
+ /** Suffix rendered after the pagination page-size selector. */
291
+ perPageSuffix?: string;
292
+ /** Fallback `alt` text of an image without one. */
293
+ imageAlt?: string;
294
+ /**
295
+ * `aria-label` of the image zoom link.
296
+ * Template — `{alt}` = the image's alternative text.
297
+ */
298
+ imageViewFullSize?: string;
299
+ /** Fallback `title` of an iframe without one. */
300
+ iframeTitle?: string;
301
+ /**
302
+ * Label of the "open in a new tab" link rendered under an embed
303
+ * (`IframeRenderer`, `VideoRenderer`). A COEP-blocked iframe fires no
304
+ * observable event, so this link is the only way out of a blank frame.
305
+ * @since 6.21.0
306
+ */
307
+ iframeOpenInNewTab?: string;
308
+ /** Fallback label of a link component without one. */
309
+ linkLabel?: string;
310
+ /**
311
+ * `aria-label` of a link component.
312
+ * Template — `{label}` and `{description}`.
313
+ */
314
+ linkOpensInNewTab?: string;
315
+ /** `aria-label` of the inline component-validation warning chip. */
316
+ validationWarning?: string;
317
+ /** Fallback heading of an HTML resource without a title or URI. */
318
+ resourceTitle?: string;
319
+ /** Heading of the chart renderer's error overlay. */
320
+ chartError?: string;
321
+ /** Heading of the blocking component-validation error card. */
322
+ validationError?: string;
323
+ /** Fallback detail of a validation error carrying no message. */
324
+ validationUnknownError?: string;
325
+ /** Fallback message inside the error card's copyable text. */
326
+ errorUnknown?: string;
327
+ /** Fallback tool name in the error card heading. */
328
+ errorUnknownToolName?: string;
329
+ /** Fallback body of an error card carrying no message. */
330
+ errorToolExecution?: string;
331
+ /** `title` of a segment verified against the source data. */
332
+ verifiedTitle?: string;
333
+ /** `aria-label` of the verified marker glyph. */
334
+ verifiedAria?: string;
335
+ /** `aria-label` of the unverified marker glyph. */
336
+ unverifiedAria?: string;
337
+ /** `title` of an unverified number with no closest source match. */
338
+ verifiedNotFound?: string;
339
+ /**
340
+ * `title` of an unverified number that has a closest source match.
341
+ * Template — `{closest}` = the nearest source number, `{pct}` = the
342
+ * relative distance in percent.
343
+ */
344
+ verifiedNotFoundClosest?: string;
345
+ /** Placeholder rendered in `strip` mode in place of the number. */
346
+ verifiedStripLabel?: string;
347
+ /**
348
+ * Confidence summary of a validated answer.
349
+ * Template — `{pct}` = the confidence as a whole percentage.
350
+ */
351
+ verifiedConfidence?: string;
352
+ /**
353
+ * Count of unverified numbers next to the confidence summary.
354
+ * Template — `{count}` = how many numbers failed verification.
355
+ */
356
+ verifiedUnverifiedCount?: string;
357
+ /** Placeholder shown while the form's live preview is loading. */
358
+ promptLoadingPreview?: string;
359
+ /** Submitted label of a confirmed `confirm` prompt (no `confirmLabel`). */
360
+ promptConfirmed?: string;
361
+ /** Submitted label of a cancelled `confirm` prompt (no `cancelLabel`). */
362
+ promptCancelled?: string;
363
+ /** Submitted label of a `form` prompt whose fields are all empty. */
364
+ promptFormSubmitted?: string;
365
+ /** Fallback error when the submit action fails without a message. */
366
+ formSubmissionFailed?: string;
367
+ /**
368
+ * Auto-submit countdown notice.
369
+ * Template — `{label}` = the submit label, `{seconds}` = seconds left.
370
+ */
371
+ formSubmitCountdown?: string;
372
+ /** Fallback `aria-label` of an action group without one. */
373
+ actionGroupLabel?: string;
374
+ /** Fallback description of an artifact card without one. */
375
+ artifactDescription?: string;
376
+ /** Fallback caption of the degraded-renderer notice. */
377
+ degradedCaption?: string;
378
+ /** Label of the provider cell. */
379
+ metaProvider?: string;
380
+ /** Label of the model cell. */
381
+ metaModel?: string;
382
+ /** Label of the execution-time cell. */
383
+ metaExecutionTime?: string;
384
+ /** Label of the cost cell. */
385
+ metaCost?: string;
386
+ /** Label of the time-to-first-byte cell. */
387
+ metaTtfb?: string;
388
+ /** Label of the cache-hit cell. */
389
+ metaCached?: string;
390
+ /** Label of a generic "download" link (artifact card). */
391
+ download?: string;
392
+ /** Placeholder shown in place of a value the renderer could not determine. */
393
+ unknown?: string;
394
+ /**
395
+ * Visible placeholder kept in a table cell for a citation marker that no
396
+ * `citationMap` resolves (empty map only — see `transformCellCitations`).
397
+ * Template — `{id}` = the marker number.
398
+ *
399
+ * The former literal was French (`[réf. {id}]`).
400
+ */
401
+ citationUnresolved?: string;
402
+ /**
403
+ * Inline (`errorMode: 'inline-warn'`) validation chip text.
404
+ * Template — `{type}` = the component type.
405
+ */
406
+ invalidComponent?: string;
407
+ /**
408
+ * Heading of the tool-error card.
409
+ * Template — `{tool}` = the tool name (`errorUnknownToolName` when absent).
410
+ */
411
+ toolErrorTitle?: string;
412
+ /**
413
+ * Error-type line of the tool-error card.
414
+ * Template — `{type}` = the error type.
415
+ */
416
+ errorTypeLabel?: string;
417
+ /** Heading above the tool-error suggestion list. */
418
+ errorSuggestions?: string;
419
+ /** Message shown in place of a chart whose payload has no `data.datasets`. */
420
+ chartInvalidData?: string;
421
+ /** Prefix of the unsupported-component notice (the type follows in a `<code>`). */
422
+ unsupportedComponentType?: string;
423
+ /** Visible label of the previous-page button (glyph stays decorative). */
424
+ previewPrev?: string;
425
+ /** Visible label of the next-page button (glyph stays decorative). */
426
+ previewNext?: string;
427
+ /**
428
+ * Page indicator between the two buttons.
429
+ * Template — `{page}` = the 1-based page, `{total}` = the page count.
430
+ */
431
+ previewPageIndicator?: string;
432
+ /** Inline notice while an entity reference is being resolved. */
433
+ fieldResolving?: string;
434
+ /**
435
+ * Prefill summary for a single pre-filled field.
436
+ * Template — `{count}` = always 1, `{total}` = the field count.
437
+ *
438
+ * The former literal was French (`{count} champ pré-rempli sur {total}`).
439
+ */
440
+ formPrefilledOne?: string;
441
+ /**
442
+ * Prefill summary for several pre-filled fields.
443
+ * Template — `{count}` = how many, `{total}` = the field count.
444
+ *
445
+ * The former literal was French (`{count} champs pré-remplis sur {total}`).
446
+ */
447
+ formPrefilledMany?: string;
448
+ /** Busy label of the submit button while the form is submitting. */
449
+ formSubmitting?: string;
450
+ /** Label of the form's reset button. */
451
+ formReset?: string;
452
+ /** Heading of the default error-boundary fallback card. */
453
+ errorBoundaryTitle?: string;
454
+ /**
455
+ * Metadata line of the fallback card.
456
+ * Template — `{type}` = the component type, `{id}` = its truncated id.
457
+ * Both fall back to `unknown`.
458
+ */
459
+ errorBoundaryMeta?: string;
460
+ /** Label of the fallback card's retry button. */
461
+ errorBoundaryRetry?: string;
462
+ /** Label of the `waiting_human` search button. */
463
+ scratchpadSearch?: string;
464
+ /** Label of the "advance to the next step" button in the steps view. */
465
+ scratchpadNextStep?: string;
466
+ /** Label preceding the interrogation plan summary. */
467
+ scratchpadPlan?: string;
468
+ /** Label of the "modify this prompt" button of a prompt section. */
469
+ scratchpadModify?: string;
470
+ /** Label of the "show details" toggle of an error section. */
471
+ scratchpadDetails?: string;
472
+ /** Unit suffix after an action section's item count. */
473
+ scratchpadItems?: string;
474
+ /** Fallback text of a `<video>` element the browser cannot play. */
475
+ videoUnsupported?: string;
476
+ /** Paginated row range. Template — `{start}`, `{end}`, `{total}`. */
477
+ previewShowingRange?: string;
478
+ /** Unpaginated row count, singular. Template — `{count}`. */
479
+ previewRowsOne?: string;
480
+ /** Unpaginated row count, plural. Template — `{count}`. */
481
+ previewRowsMany?: string;
482
+ /**
483
+ * Suffix appended when the payload declares more rows than were sent.
484
+ * Template — `{total}`. Keeps its leading space.
485
+ */
486
+ previewTotalSuffix?: string;
487
+ /** Status badge — the run is still loading. */
488
+ statusLoading?: string;
489
+ /** Status badge — an action is available to the user. */
490
+ statusActionAvailable?: string;
491
+ /** Status badge — the run is waiting for a human answer. */
492
+ statusYourTurn?: string;
493
+ /** Status badge — the run is processing. */
494
+ statusProcessing?: string;
495
+ /** Status badge — the run finished. (The error badge reuses `scratchpadError`.) */
496
+ statusComplete?: string;
497
+ /** Agent badge — idle. */
498
+ agentStatusIdle?: string;
499
+ /** Agent badge — running. */
500
+ agentStatusRunning?: string;
501
+ /** Agent badge — waiting. */
502
+ agentStatusWaiting?: string;
503
+ /** Agent badge — done. */
504
+ agentStatusDone?: string;
505
+ /** Agent badge — errored. */
506
+ agentStatusError?: string;
507
+ /**
508
+ * Fallback summary of a handoff that carries only an item count.
509
+ * Template — `{count}`. `content.summary` still wins.
510
+ */
511
+ handoffItems?: string;
512
+ /** Truncation notice under the degraded table. Template — `{count}`. */
513
+ degradedMoreRows?: string;
514
+ /** Caption of the chart's degraded table. */
515
+ chartDegradedCaption?: string;
516
+ /** Notice above the chart's degraded table. Template — `{error}`. */
517
+ chartRenderFailed?: string;
518
+ /** Caption of the degraded table shown when chart.js is missing. */
519
+ chartQuickchartCaption?: string;
520
+ /** Caption of the graph's degraded table. */
521
+ graphDegradedCaption?: string;
522
+ /** Notice above the graph's degraded table. Template — `{error}`. */
523
+ graphRenderFailed?: string;
524
+ /** Fallback reason when the G6 render throws without a message. */
525
+ graphRenderError?: string;
526
+ /** Fallback reason when the Chart.js render throws without a message. */
527
+ chartRenderError?: string;
528
+ /** Error shown when the PNG export is unavailable in the active renderer. */
529
+ graphPngUnsupported?: string;
530
+ /** Error shown when the PNG export throws without a message. */
531
+ graphPngExportFailed?: string;
532
+ /** Error shown when the Leaflet bundle fails to load. */
533
+ mapLibraryUnavailable?: string;
534
+ /** Caption of the map's degraded coordinate table. */
535
+ mapDegradedCaption?: string;
536
+ /** Notice above the map's degraded table. Template — `{error}`. */
537
+ mapRenderFailed?: string;
538
+ /** Fallback reason when the Leaflet render throws without a message. */
539
+ mapRenderError?: string;
540
+ /** Column header of the map projection — feature type. */
541
+ degradedColType?: string;
542
+ /** Column header of the map projection — latitude. */
543
+ degradedColLat?: string;
544
+ /** Column header of the map projection — longitude. */
545
+ degradedColLng?: string;
546
+ /** Column header of the map projection — property summary. */
547
+ degradedColInfo?: string;
548
+ /** `Type` cell of a marker row in the map projection (6.20.0). */
549
+ degradedMarker?: string;
550
+ /** `Type` cell of a GeoJSON feature without a geometry type (6.20.0). */
551
+ degradedFeature?: string;
552
+ /** Column header of the graph projection — edge source. */
553
+ degradedColSource?: string;
554
+ /** Column header of the graph projection — edge target. */
555
+ degradedColTarget?: string;
556
+ /** Column header of the graph projection — node id. */
557
+ degradedColNode?: string;
558
+ /** Column header of the graph / chart projections — label. */
559
+ degradedColLabel?: string;
560
+ /** Fallback name of a dataset without a label. Template — `{n}`. */
561
+ degradedSeries?: string;
562
+ /** Column header of the chart data table — series name. */
563
+ chartTableSeries?: string;
564
+ /** Column header of the chart data table — point index. */
565
+ chartTablePoint?: string;
566
+ /** Hint prose between the arrow keys and the Enter key cap. */
567
+ autocompleteHintNavigate?: string;
568
+ /** Hint prose between the Enter and Esc key caps. */
569
+ autocompleteHintSelect?: string;
570
+ /** Hint prose after the Esc key cap. */
571
+ autocompleteHintDismiss?: string;
572
+ /** Ghost-text hint of the completion field. */
573
+ autocompleteTabToAccept?: string;
574
+ /** Placeholder of a multi-value entity picker that already has values. */
575
+ fieldAddMorePlaceholder?: string;
576
+ /** Accessible name of a gallery thumbnail. Template — `{index}`. */
577
+ galleryViewImage?: string;
578
+ /** `alt` of a gallery image without one. Template — `{index}`. */
579
+ galleryImageAlt?: string;
580
+ /** Noun substituted into `imageViewFullSize` when the image has no `alt`. */
581
+ imageAltFallback?: string;
582
+ /** `alt` / `aria-label` of the chart image when the payload has no title. */
583
+ chartVisualizationAlt?: string;
584
+ /** `alt` / `aria-label` of the chart image with a title. Template — `{title}`. */
585
+ chartWithTitleAlt?: string;
586
+ /** Error shown when the chart image fails to load. */
587
+ chartLoadFailed?: string;
588
+ /** Page-size option that disables pagination. */
589
+ paginationAllRows?: string;
590
+ /** Template — `{field}`. */
591
+ fieldRequired?: string;
592
+ /** Template — `{field}`. */
593
+ fieldMustBeChecked?: string;
594
+ /** Template — `{min}`. */
595
+ fieldMinLength?: string;
596
+ /** Template — `{max}`. */
597
+ fieldMaxLength?: string;
598
+ /** Value does not match the field's `pattern`. */
599
+ fieldInvalidPattern?: string;
600
+ /** Value is not a valid email address. */
601
+ fieldInvalidEmail?: string;
602
+ /** Value is not a number. */
603
+ fieldInvalidNumber?: string;
604
+ /** Template — `{min}`. */
605
+ fieldMinValue?: string;
606
+ /** Template — `{max}`. */
607
+ fieldMaxValue?: string;
608
+ /** Template — `{min}`. */
609
+ fieldMinDate?: string;
610
+ /** Template — `{max}`. */
611
+ fieldMaxDate?: string;
612
+ /** Value is not one of the field's options. */
613
+ fieldInvalidOption?: string;
614
+ /**
615
+ * Value does not match the field's `valueFormat`. Template — `{format}`.
616
+ * `field.valueFormatHint` still wins.
617
+ */
618
+ fieldInvalidFormat?: string;
619
+ /**
620
+ * BCP-47 tag used for number / date formatting and string collation in
621
+ * library chrome and table cells (`toLocaleString`, `localeCompare`).
622
+ * Default `'en-US'`. Former behaviour: a hardcoded `'fr-FR'` / `'fr'` in
623
+ * table sorting, DataPreviewSection cells and map popups, and the
624
+ * runtime's implicit locale elsewhere (non-deterministic across SSR and
625
+ * hydration).
626
+ */
627
+ locale?: string;
628
+ /** Stats summary — added entries. Template — `{count}`. */
629
+ briefingAdded?: string;
630
+ /** Stats summary — removed entries. Template — `{count}`. */
631
+ briefingRemoved?: string;
632
+ /** Stats summary — changed entries. Template — `{count}`. */
633
+ briefingChanged?: string;
634
+ /** Number of sources in the footer. Template — `{count}`. */
635
+ footerSources?: string;
636
+ /** Warning under a field whose `type` is unknown. Template — `{type}`. */
637
+ fieldUnknownType?: string;
638
+ /** Trigger text of a multiselect with selections. Template — `{count}`. */
639
+ fieldSelectedCount?: string;
640
+ /** Error code line of the error state. Template — `{code}`. */
641
+ scratchpadErrorCode?: string;
642
+ /** Row count of a data-source section. Template — `{count}`. */
643
+ scratchpadResultCount?: string;
644
+ /** Suffix of the table title while rows are virtualized. Template — `{count}`. */
645
+ tableVirtualizedRows?: string;
646
+ /** Search result count, singular. Template — `{count}`, `{total}`. */
647
+ tableSearchResultsOne?: string;
648
+ /** Search result count, plural. Template — `{count}`, `{total}`. */
649
+ tableSearchResultsMany?: string;
650
+ /** Server-side pagination range. Template — `{start}`, `{end}`, `{total}`. */
651
+ tableServerPageRange?: string;
652
+ /**
653
+ * Text put on the clipboard by the error card's Copy button.
654
+ * Template — `{tool}`, `{message}`.
655
+ */
656
+ errorCopyText?: string;
657
+ /** Tool name substituted into `errorCopyText` when the error has none. */
658
+ errorUnknownTool?: string;
659
+ /** Progress message before the stream starts. */
660
+ streamInitializing?: string;
661
+ /** Progress message while connecting. */
662
+ streamConnecting?: string;
663
+ /** Progress message while a component streams in. Template — `{type}`. */
664
+ streamLoadingComponent?: string;
665
+ /** Progress message once the stream completed. */
666
+ streamDashboardLoaded?: string;
667
+ /** Progress message after a stream error. Template — `{message}`. */
668
+ streamErrorProgress?: string;
669
+ /** Error title when the stream connection fails. */
670
+ streamConnectionFailed?: string;
671
+ /** Error message when the server answers with a non-OK status and no message. */
672
+ streamRequestFailed?: string;
673
+ /** Error message when the server answers without a body. */
674
+ streamEmptyResponse?: string;
675
+ /** Error message when streaming is started during SSR. */
676
+ streamServerSide?: string;
677
+ /** Error message when the failure carries no message. */
678
+ streamUnknownError?: string;
679
+ /** StreamingUIRenderer error heading when streaming was started during SSR (the hook keeps the machine code `'ssr'`). */
680
+ streamServerSideTitle?: string;
681
+ /** GraphRenderer heading when the `@antv/g6` peer is missing (the install hint below it stays English, policy P3). */
682
+ graphUnavailable?: string;
683
+ /** MapRenderer banner when the PMTiles overlay fails to load or render. */
684
+ mapPmtilesUnavailable?: string;
685
+ /** MapRenderer sentence appended to the PMTiles banner. */
686
+ mapBaseMapStillShown?: string;
687
+ /** Chart error when `renderer: 'native'` is forced and chart.js is missing. */
688
+ chartJsUnavailable?: string;
689
+ /** DegradedFallback message when chart.js is missing and the quickchart fallback is not allowed. */
690
+ chartIframeUnavailable?: string;
691
+ /** DataPreviewSection fallback when the section content is not `{ columns, rows }`. */
692
+ previewInvalidContent?: string;
693
+ /** Tooltip of the default citation chip button. Template — `{label}` (file name and page). */
694
+ citationViewSource?: string;
695
+ /** ArtifactRenderer file size below 1 KB. Template — `{size}`. */
696
+ sizeBytes?: string;
697
+ /** ArtifactRenderer file size in kilobytes. Template — `{size}`. */
698
+ sizeKilobytes?: string;
699
+ /** ArtifactRenderer file size in megabytes. Template — `{size}`. */
700
+ sizeMegabytes?: string;
701
+ /**
702
+ * Accessible name of a value that is explicitly missing: read by screen
703
+ * readers in place of the `-` a table cell shows, and the tooltip value of
704
+ * a bar whose value is `null`.
705
+ * @since 6.24.0
706
+ */
707
+ missingValue?: string;
708
+ /**
709
+ * Legend under a table or data view that contains at least one missing
710
+ * value. Template — `{marker}` = the glyph the cells show (`-`).
711
+ * @since 6.24.0
712
+ */
713
+ missingValueLegend?: string;
714
+ /**
715
+ * Note under a line or radar chart with a missing value: the line is broken
716
+ * there rather than drawn through, or down to zero.
717
+ * @since 6.24.0
718
+ */
719
+ chartMissingGaps?: string;
720
+ /**
721
+ * Note under a bar chart with a missing value, which the chart draws as a
722
+ * dashed outline at the baseline so it cannot be read as a zero bar.
723
+ * @since 6.24.0
724
+ */
725
+ chartMissingBars?: string;
726
+ /**
727
+ * Note under a chart that draws nothing for a missing value — a scatter or
728
+ * bubble chart, or a stacked bar chart (whose baseline belongs to the series
729
+ * below, so no outline can stand in for the bar).
730
+ * @since 6.24.0
731
+ */
732
+ chartMissingPoints?: string;
733
+ /**
734
+ * Note naming the series whose values are ALL missing.
735
+ * Template — `{series}` = the series names, joined as a list in the locale.
736
+ * @since 6.24.0
737
+ */
738
+ chartSeriesNoData?: string;
739
+ /**
740
+ * Legend entry of a series whose values are all missing.
741
+ * Template — `{series}` = the series name.
742
+ * @since 6.24.0
743
+ */
744
+ chartLegendNoData?: string;
745
+ /**
746
+ * A value followed by the chart's `unit`, in tooltips.
747
+ * Template — `{value}` (already formatted), `{unit}`.
748
+ * @since 6.24.0
749
+ */
750
+ chartValueWithUnit?: string;
751
+ /**
752
+ * A column header followed by the chart's `unit`, in the chart data view
753
+ * and the degraded tables. Template — `{label}`, `{unit}`.
754
+ * @since 6.24.0
755
+ */
756
+ chartLabelWithUnit?: string;
757
+ /**
758
+ * Shown instead of a pie, doughnut or polar-area chart that received a
759
+ * missing value: those types would draw it as a zero share.
760
+ * @since 6.24.0
761
+ */
762
+ chartMissingUnsupported?: string;
763
+ }
764
+ /**
765
+ * English defaults. A published library ships no hardcoded non-English
766
+ * chrome — consumers localize via `<MCPUIStringsProvider>`.
767
+ */
768
+ export declare const DEFAULT_MCPUI_STRINGS: Required<MCPUIStrings>;
769
+ /**
770
+ * Substitutes `{name}` placeholders in a chrome string template.
771
+ *
772
+ * Lives in `../utils/format-string` — a runtime-free module — so the pure
773
+ * adapters under `src/adapters` can interpolate their own templates without
774
+ * importing `solid-js`. Re-exported here (and from the root barrel) so every
775
+ * existing import path keeps working.
776
+ */
777
+ export { formatMCPUIString } from "../utils/format-string.cjs";
778
+ export declare const MCPUIStringsContext: import("solid-js").Context<MCPUIStrings>;
779
+ /**
780
+ * Returns `locale` in canonical BCP-47 form, or `DEFAULT_MCPUI_STRINGS.locale`
781
+ * (`'en-US'`) when it is missing or not a valid tag. Renderers pass the result
782
+ * straight to `Intl` / `toLocaleString` / `localeCompare`, which throw a
783
+ * `RangeError` on an invalid tag such as `'not_a_locale'`.
784
+ *
785
+ * @since v6.20.0
786
+ */
787
+ export declare function resolveMCPUILocale(locale: unknown): string;
788
+ export declare function useMCPUIStrings(): Required<MCPUIStrings>;
789
+ export interface MCPUIStringsProviderProps {
790
+ /**
791
+ * Partial override of the chrome strings. Any key left unset falls back
792
+ * to the English `DEFAULT_MCPUI_STRINGS` — so a consumer can localize
793
+ * just the strings they care about.
794
+ */
795
+ strings?: Partial<MCPUIStrings>;
796
+ children: JSX.Element;
797
+ }
798
+ /**
799
+ * Provides localized chrome strings to every MCP-UI renderer below it.
800
+ * Merges the partial `strings` override over the English defaults.
801
+ */
802
+ export declare function MCPUIStringsProvider(props: MCPUIStringsProviderProps): JSX.Element;