@trinityui/design-system 2.11.0 → 2.13.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 (518) hide show
  1. package/CHANGELOG.md +2209 -0
  2. package/CONTRIBUTING.md +180 -69
  3. package/LICENSE +21 -0
  4. package/MIGRATION.md +523 -21
  5. package/README.md +281 -120
  6. package/dist/IllustratedMessage.js +546 -1341
  7. package/dist/accessibility.d.ts +596 -18
  8. package/dist/accessibility.d.ts.map +1 -1
  9. package/dist/accessibility.js +458 -0
  10. package/dist/app-shell.js +17230 -9097
  11. package/dist/assets/index.d.ts +1 -1
  12. package/dist/charts.js +8507 -6059
  13. package/dist/color-contrast.d.ts +35 -0
  14. package/dist/color-contrast.d.ts.map +1 -0
  15. package/dist/commonjs-helpers.js +8 -0
  16. package/dist/component-color-references.d.ts +175 -0
  17. package/dist/component-color-references.d.ts.map +1 -0
  18. package/dist/components/AI/AIActions.d.ts +72 -12
  19. package/dist/components/AI/AIActions.d.ts.map +1 -1
  20. package/dist/components/AI/AIAvatar.d.ts +31 -3
  21. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  22. package/dist/components/AI/AIChainOfThought.d.ts +192 -72
  23. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  24. package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
  25. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
  26. package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
  27. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
  28. package/dist/components/AI/AIChat.d.ts +12 -0
  29. package/dist/components/AI/AIChat.d.ts.map +1 -1
  30. package/dist/components/AI/AIChatWelcome.d.ts +254 -0
  31. package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
  32. package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
  33. package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
  34. package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
  35. package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
  36. package/dist/components/AI/AIConfigContext.d.ts +100 -0
  37. package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
  38. package/dist/components/AI/AIConfigProvider.d.ts +66 -0
  39. package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
  40. package/dist/components/AI/AIContainer.d.ts +80 -11
  41. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  42. package/dist/components/AI/AIExplainability.d.ts +39 -5
  43. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  44. package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
  45. package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
  46. package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
  47. package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
  48. package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
  49. package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
  50. package/dist/components/AI/AILabel.d.ts +39 -6
  51. package/dist/components/AI/AILabel.d.ts.map +1 -1
  52. package/dist/components/AI/AIMessage.d.ts +337 -42
  53. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  54. package/dist/components/AI/AIPlanReview.d.ts +194 -0
  55. package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
  56. package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
  57. package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
  58. package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
  59. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  60. package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
  61. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  62. package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
  63. package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
  64. package/dist/components/AI/AIReviewItem.d.ts +142 -0
  65. package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
  66. package/dist/components/AI/AISourceChip.d.ts +135 -0
  67. package/dist/components/AI/AISourceChip.d.ts.map +1 -0
  68. package/dist/components/AI/AISources.d.ts +91 -13
  69. package/dist/components/AI/AISources.d.ts.map +1 -1
  70. package/dist/components/AI/AISourcesPanel.d.ts +43 -7
  71. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  72. package/dist/components/AI/AITextBlock.d.ts +107 -17
  73. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  74. package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
  75. package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
  76. package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
  77. package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
  78. package/dist/components/AI/AIVisuals.d.ts +92 -23
  79. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  80. package/dist/components/AI/AIVoiceInput.d.ts +42 -11
  81. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  82. package/dist/components/AI/AIVoiceMode.d.ts +16 -2
  83. package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
  84. package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
  85. package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
  86. package/dist/components/AI/ChatHeader.d.ts +41 -4
  87. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  88. package/dist/components/AI/ChatHistoryList.d.ts +25 -12
  89. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  90. package/dist/components/AI/ChatThread.d.ts +263 -13
  91. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  92. package/dist/components/AI/InThreadContext.d.ts +14 -0
  93. package/dist/components/AI/InThreadContext.d.ts.map +1 -0
  94. package/dist/components/AI/InsightEngine.d.ts +270 -46
  95. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  96. package/dist/components/AI/InsightEngineInput.d.ts +52 -5
  97. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  98. package/dist/components/AI/MessageActionButton.d.ts +72 -0
  99. package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
  100. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  101. package/dist/components/AI/UserAvatar.d.ts +50 -4
  102. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  103. package/dist/components/AI/UserMessage.d.ts +32 -3
  104. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  105. package/dist/components/AI/blockRendererContext.d.ts +64 -0
  106. package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
  107. package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
  108. package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
  109. package/dist/components/AI/index.d.ts +23 -6
  110. package/dist/components/AI/index.d.ts.map +1 -1
  111. package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
  112. package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
  113. package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
  114. package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
  115. package/dist/components/AI/strings/defaults.d.ts +31 -0
  116. package/dist/components/AI/strings/defaults.d.ts.map +1 -0
  117. package/dist/components/AI/tokens.d.ts +185 -20
  118. package/dist/components/AI/tokens.d.ts.map +1 -1
  119. package/dist/components/AI/types/hitl.d.ts +2294 -0
  120. package/dist/components/AI/types/hitl.d.ts.map +1 -0
  121. package/dist/components/AI/types/index.d.ts +2 -1
  122. package/dist/components/AI/types/index.d.ts.map +1 -1
  123. package/dist/components/AI/types/response.d.ts +428 -40
  124. package/dist/components/AI/types/response.d.ts.map +1 -1
  125. package/dist/components/AI/useBlockSources.d.ts +67 -0
  126. package/dist/components/AI/useBlockSources.d.ts.map +1 -0
  127. package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
  128. package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
  129. package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
  130. package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
  131. package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
  132. package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
  133. package/dist/components/AI/utils/blockReady.d.ts +54 -0
  134. package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
  135. package/dist/components/AI/utils/blocks.d.ts +28 -0
  136. package/dist/components/AI/utils/blocks.d.ts.map +1 -0
  137. package/dist/components/AI/utils/confidence.d.ts +182 -0
  138. package/dist/components/AI/utils/confidence.d.ts.map +1 -0
  139. package/dist/components/AI/utils/filters.d.ts +31 -0
  140. package/dist/components/AI/utils/filters.d.ts.map +1 -0
  141. package/dist/components/AI/utils/responseText.d.ts +8 -0
  142. package/dist/components/AI/utils/responseText.d.ts.map +1 -0
  143. package/dist/components/AI/utils/sources.d.ts +110 -0
  144. package/dist/components/AI/utils/sources.d.ts.map +1 -0
  145. package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
  146. package/dist/components/AIDigestCard/types.d.ts +42 -5
  147. package/dist/components/AIDigestCard/types.d.ts.map +1 -1
  148. package/dist/components/AppLayout/AIFab.d.ts +33 -6
  149. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  150. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  151. package/dist/components/AppLayout/AppLayout.d.ts +135 -7
  152. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  153. package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
  154. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  155. package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
  156. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  157. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
  158. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  159. package/dist/components/AppLayout/index.d.ts +3 -3
  160. package/dist/components/AppLayout/index.d.ts.map +1 -1
  161. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
  162. package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
  163. package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
  164. package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
  165. package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
  166. package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
  167. package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
  168. package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
  169. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
  170. package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
  171. package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
  172. package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
  173. package/dist/components/AuditDrawer/index.d.ts +1 -1
  174. package/dist/components/AuditDrawer/index.d.ts.map +1 -1
  175. package/dist/components/AuditDrawer/types.d.ts +39 -5
  176. package/dist/components/AuditDrawer/types.d.ts.map +1 -1
  177. package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
  178. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  179. package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
  180. package/dist/components/Carousel/Carousel.d.ts +10 -2
  181. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  182. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  183. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  184. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  185. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  186. package/dist/components/Charts/CustomLegend.d.ts +11 -2
  187. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  188. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  189. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  190. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  191. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  192. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  193. package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
  194. package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
  195. package/dist/components/Charts/highcharts.d.ts +23 -0
  196. package/dist/components/Charts/highcharts.d.ts.map +1 -0
  197. package/dist/components/Charts/highchartsUtils.d.ts +101 -6
  198. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  199. package/dist/components/Charts/index.d.ts +1 -1
  200. package/dist/components/Charts/index.d.ts.map +1 -1
  201. package/dist/components/Charts/tokens.d.ts +21 -0
  202. package/dist/components/Charts/tokens.d.ts.map +1 -1
  203. package/dist/components/Charts/types.d.ts +7 -7
  204. package/dist/components/Charts/types.d.ts.map +1 -1
  205. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  206. package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
  207. package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
  208. package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
  209. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  210. package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
  211. package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  212. package/dist/components/Combobox/Combobox.d.ts +3 -2
  213. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  214. package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
  215. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  216. package/dist/components/CommandPalette/index.d.ts +1 -1
  217. package/dist/components/CommandPalette/index.d.ts.map +1 -1
  218. package/dist/components/CopyButton/CopyButton.d.ts +80 -0
  219. package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
  220. package/dist/components/DataCard/DataCard.d.ts +11 -1
  221. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  222. package/dist/components/DataTable/CellRenderers.d.ts +8 -11
  223. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
  224. package/dist/components/DataTable/DataTable.d.ts +1 -1
  225. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  226. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
  227. package/dist/components/DataTable/columnContext.d.ts +8 -0
  228. package/dist/components/DataTable/columnContext.d.ts.map +1 -0
  229. package/dist/components/DataTable/index.d.ts +2 -2
  230. package/dist/components/DataTable/index.d.ts.map +1 -1
  231. package/dist/components/DataTable/labels.d.ts +13 -0
  232. package/dist/components/DataTable/labels.d.ts.map +1 -0
  233. package/dist/components/DataTable/types.d.ts +34 -0
  234. package/dist/components/DataTable/types.d.ts.map +1 -1
  235. package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  236. package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
  237. package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
  238. package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
  239. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  240. package/dist/components/Disclosure/Disclosure.d.ts +83 -0
  241. package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
  242. package/dist/components/DockLayout/DockLayout.d.ts +58 -0
  243. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  244. package/dist/components/DockLayout/index.d.ts +1 -1
  245. package/dist/components/DockLayout/index.d.ts.map +1 -1
  246. package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
  247. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
  248. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
  249. package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
  250. package/dist/components/FileUpload/FileUpload.d.ts +141 -6
  251. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  252. package/dist/components/FileUpload/index.d.ts +1 -1
  253. package/dist/components/FileUpload/index.d.ts.map +1 -1
  254. package/dist/components/FilterBar/FilterBar.d.ts +27 -1
  255. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  256. package/dist/components/FilterBar/index.d.ts +1 -1
  257. package/dist/components/FilterBar/index.d.ts.map +1 -1
  258. package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
  259. package/dist/components/GanttView/GanttView.d.ts +24 -0
  260. package/dist/components/GanttView/GanttView.d.ts.map +1 -1
  261. package/dist/components/GanttView/types.d.ts +33 -7
  262. package/dist/components/GanttView/types.d.ts.map +1 -1
  263. package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
  264. package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
  265. package/dist/components/GaugeCard/geometry.d.ts +59 -0
  266. package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
  267. package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
  268. package/dist/components/GeoStatusMap/types.d.ts +8 -5
  269. package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
  270. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  271. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  272. package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
  273. package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
  274. package/dist/components/HtmlToMui/HtmlToMui.d.ts +32 -2
  275. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
  276. package/dist/components/Icon.d.ts +567 -10
  277. package/dist/components/Icon.d.ts.map +1 -1
  278. package/dist/components/IllustratedMessage.d.ts +52 -3
  279. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  280. package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
  281. package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
  282. package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
  283. package/dist/components/InsightCard/types.d.ts +10 -3
  284. package/dist/components/InsightCard/types.d.ts.map +1 -1
  285. package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
  286. package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
  287. package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
  288. package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
  289. package/dist/components/LandingPage/LandingPage.d.ts +43 -4
  290. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  291. package/dist/components/LandingPage/heroTone.d.ts +54 -0
  292. package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
  293. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  294. package/dist/components/MetaChip/MetaChip.d.ts +113 -0
  295. package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
  296. package/dist/components/Modal/Modal.d.ts +222 -20
  297. package/dist/components/Modal/Modal.d.ts.map +1 -1
  298. package/dist/components/Modal/index.d.ts +1 -1
  299. package/dist/components/Modal/index.d.ts.map +1 -1
  300. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  301. package/dist/components/OrgChart/OrgChart.d.ts +5 -0
  302. package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
  303. package/dist/components/OrgChart/types.d.ts +31 -7
  304. package/dist/components/OrgChart/types.d.ts.map +1 -1
  305. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
  306. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  307. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  308. package/dist/components/PageTOC/PageTOC.d.ts +2 -1
  309. package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
  310. package/dist/components/Popper/Popper.d.ts +80 -9
  311. package/dist/components/Popper/Popper.d.ts.map +1 -1
  312. package/dist/components/Popper/index.d.ts +1 -1
  313. package/dist/components/Popper/index.d.ts.map +1 -1
  314. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
  315. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  316. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
  317. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -1
  318. package/dist/components/SearchInput/SearchInput.d.ts +49 -0
  319. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  320. package/dist/components/SearchInput/index.d.ts +1 -1
  321. package/dist/components/SearchInput/index.d.ts.map +1 -1
  322. package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
  323. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  324. package/dist/components/SplitPane/SplitPane.d.ts +2 -1
  325. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  326. package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
  327. package/dist/components/StatusIndicator/Badge.d.ts +6 -1
  328. package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
  329. package/dist/components/StatusIndicator/Chip.d.ts +3 -1
  330. package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
  331. package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
  332. package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
  333. package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
  334. package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
  335. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  336. package/dist/components/StatusIndicator/index.d.ts +2 -2
  337. package/dist/components/StatusIndicator/index.d.ts.map +1 -1
  338. package/dist/components/StatusIndicator/types.d.ts +48 -1
  339. package/dist/components/StatusIndicator/types.d.ts.map +1 -1
  340. package/dist/components/StepList/StepList.d.ts +80 -0
  341. package/dist/components/StepList/StepList.d.ts.map +1 -0
  342. package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
  343. package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
  344. package/dist/components/StepList/stepStatus.d.ts +30 -0
  345. package/dist/components/StepList/stepStatus.d.ts.map +1 -0
  346. package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
  347. package/dist/components/Timeline/Timeline.d.ts +57 -3
  348. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  349. package/dist/components/Timeline/index.d.ts +1 -1
  350. package/dist/components/Timeline/index.d.ts.map +1 -1
  351. package/dist/components/Timeline/timelineLabels.d.ts +70 -0
  352. package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
  353. package/dist/components/Toast/Toast.d.ts.map +1 -1
  354. package/dist/components/TopNavHeader.d.ts +6 -0
  355. package/dist/components/TopNavHeader.d.ts.map +1 -1
  356. package/dist/components/TopNavWithSidebar.d.ts +49 -1
  357. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  358. package/dist/components/Tour/Tour.d.ts +18 -1
  359. package/dist/components/Tour/Tour.d.ts.map +1 -1
  360. package/dist/components/TransferList/TransferList.d.ts +123 -4
  361. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  362. package/dist/components/TransferList/index.d.ts +1 -1
  363. package/dist/components/TransferList/index.d.ts.map +1 -1
  364. package/dist/components/TreeView/TreeView.d.ts +97 -8
  365. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  366. package/dist/components/TreeView/index.d.ts +1 -1
  367. package/dist/components/TreeView/index.d.ts.map +1 -1
  368. package/dist/components/TrinityLoader.d.ts.map +1 -1
  369. package/dist/components/icons/featherExtensions.d.ts +55 -0
  370. package/dist/components/icons/featherExtensions.d.ts.map +1 -0
  371. package/dist/components/icons/materialExtensions.d.ts +20 -0
  372. package/dist/components/icons/materialExtensions.d.ts.map +1 -0
  373. package/dist/components/internal/index.d.ts +87 -0
  374. package/dist/components/internal/index.d.ts.map +1 -1
  375. package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
  376. package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
  377. package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
  378. package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
  379. package/dist/components/navigation/components.d.ts +6 -0
  380. package/dist/components/navigation/components.d.ts.map +1 -1
  381. package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
  382. package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
  383. package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
  384. package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
  385. package/dist/components/shared/bidi.d.ts +44 -0
  386. package/dist/components/shared/bidi.d.ts.map +1 -0
  387. package/dist/components/shared/bidiText.d.ts +25 -0
  388. package/dist/components/shared/bidiText.d.ts.map +1 -0
  389. package/dist/components/shared/containerQueries.d.ts +73 -0
  390. package/dist/components/shared/containerQueries.d.ts.map +1 -0
  391. package/dist/components/shared/createStringsContext.d.ts +69 -0
  392. package/dist/components/shared/createStringsContext.d.ts.map +1 -0
  393. package/dist/components/shared/direction.d.ts +46 -0
  394. package/dist/components/shared/direction.d.ts.map +1 -0
  395. package/dist/components/shared/focusTrap.d.ts +36 -0
  396. package/dist/components/shared/focusTrap.d.ts.map +1 -0
  397. package/dist/components/shared/getInitials.d.ts +29 -0
  398. package/dist/components/shared/getInitials.d.ts.map +1 -0
  399. package/dist/components/shared/headingLevel.d.ts +69 -0
  400. package/dist/components/shared/headingLevel.d.ts.map +1 -0
  401. package/dist/components/shared/mergeSlotProps.d.ts +50 -0
  402. package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
  403. package/dist/components/shared/mergeSx.d.ts +26 -0
  404. package/dist/components/shared/mergeSx.d.ts.map +1 -0
  405. package/dist/components/shared/motion.d.ts +110 -0
  406. package/dist/components/shared/motion.d.ts.map +1 -0
  407. package/dist/components/shared/occurrenceKeys.d.ts +23 -0
  408. package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
  409. package/dist/components/shared/primaryAction.d.ts +89 -0
  410. package/dist/components/shared/primaryAction.d.ts.map +1 -0
  411. package/dist/components/shared/resizeKeyboard.d.ts +68 -0
  412. package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
  413. package/dist/components/shared/rootProps.d.ts +117 -0
  414. package/dist/components/shared/rootProps.d.ts.map +1 -0
  415. package/dist/components/shared/safeContent.d.ts +136 -0
  416. package/dist/components/shared/safeContent.d.ts.map +1 -0
  417. package/dist/components/shared/targetSize.d.ts +64 -0
  418. package/dist/components/shared/targetSize.d.ts.map +1 -0
  419. package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
  420. package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
  421. package/dist/components/shared/useCopyAction.d.ts +35 -0
  422. package/dist/components/shared/useCopyAction.d.ts.map +1 -0
  423. package/dist/components/shared/useOverflow.d.ts +44 -0
  424. package/dist/components/shared/useOverflow.d.ts.map +1 -0
  425. package/dist/components/shared/useResizable.d.ts +106 -7
  426. package/dist/components/shared/useResizable.d.ts.map +1 -1
  427. package/dist/components/shared/warnDeprecated.d.ts +89 -15
  428. package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
  429. package/dist/components/shared/zIndexRoles.d.ts +62 -0
  430. package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
  431. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
  432. package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
  433. package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
  434. package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
  435. package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
  436. package/dist/components/templates/Auth/types.d.ts +4 -1
  437. package/dist/components/templates/Auth/types.d.ts.map +1 -1
  438. package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
  439. package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
  440. package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
  441. package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
  442. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
  443. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  444. package/dist/components/templates/ListDetail/index.d.ts +1 -1
  445. package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
  446. package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
  447. package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
  448. package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
  449. package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
  450. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  451. package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
  452. package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
  453. package/dist/components/templates/index.d.ts +2 -1
  454. package/dist/components/templates/index.d.ts.map +1 -1
  455. package/dist/data-table.d.ts +1 -1
  456. package/dist/data-table.d.ts.map +1 -1
  457. package/dist/data-table.js +1 -0
  458. package/dist/data-table2.js +13522 -13465
  459. package/dist/data.js +213 -194
  460. package/dist/elk.bundled.js +47371 -0
  461. package/dist/essentials.d.ts +3 -3
  462. package/dist/essentials.d.ts.map +1 -1
  463. package/dist/essentials.js +179 -147
  464. package/dist/focus-on-replace.js +49 -0
  465. package/dist/form.d.ts +26 -4
  466. package/dist/form.d.ts.map +1 -1
  467. package/dist/forms.js +575 -483
  468. package/dist/foundation.js +3704 -0
  469. package/dist/hooks/storageStore.d.ts +51 -0
  470. package/dist/hooks/storageStore.d.ts.map +1 -0
  471. package/dist/hooks/useAsyncAction.d.ts +65 -0
  472. package/dist/hooks/useAsyncAction.d.ts.map +1 -0
  473. package/dist/hooks/useDisclosure.d.ts +190 -0
  474. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  475. package/dist/hooks/useFocusOnReplace.d.ts +95 -0
  476. package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
  477. package/dist/hooks/useTrinityPalette.d.ts +38 -40
  478. package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
  479. package/dist/hooks.d.ts +44 -6
  480. package/dist/hooks.d.ts.map +1 -1
  481. package/dist/hooks.js +301 -0
  482. package/dist/index.d.ts +71 -26
  483. package/dist/index.d.ts.map +1 -1
  484. package/dist/index.js +13923 -60619
  485. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
  486. package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
  487. package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
  488. package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
  489. package/dist/patterns/index.d.ts +15 -0
  490. package/dist/patterns/index.d.ts.map +1 -0
  491. package/dist/presets/analytics.d.ts +8 -1
  492. package/dist/presets/analytics.d.ts.map +1 -1
  493. package/dist/presets/crm.d.ts +8 -1
  494. package/dist/presets/crm.d.ts.map +1 -1
  495. package/dist/presets/index.d.ts +1 -1
  496. package/dist/presets/portal.d.ts +8 -1
  497. package/dist/presets/portal.d.ts.map +1 -1
  498. package/dist/safe-content.js +792 -0
  499. package/dist/theme-augmentation.d.ts +388 -0
  500. package/dist/theme-augmentation.d.ts.map +1 -0
  501. package/dist/theme.d.ts +116 -30
  502. package/dist/theme.d.ts.map +1 -1
  503. package/dist/theme.js +891 -436
  504. package/dist/token-color.d.ts +14 -0
  505. package/dist/token-color.d.ts.map +1 -0
  506. package/dist/token-merge.d.ts +56 -0
  507. package/dist/token-merge.d.ts.map +1 -0
  508. package/dist/token-serialization.d.ts +65 -0
  509. package/dist/token-serialization.d.ts.map +1 -0
  510. package/dist/tokens.d.ts +882 -13
  511. package/dist/tokens.d.ts.map +1 -1
  512. package/dist/tokens.js +21 -19
  513. package/dist/trinity.css +1077 -414
  514. package/package.json +111 -90
  515. package/dist/components/index.d.ts +0 -145
  516. package/dist/components/index.d.ts.map +0 -1
  517. package/dist/components/shared.d.ts +0 -92
  518. package/dist/components/shared.d.ts.map +0 -1
@@ -14,6 +14,14 @@
14
14
  * <StatusIndicator variant="dot" status="error" />
15
15
  * ```
16
16
  *
17
+ * This file is also the registry of internal names (ADR-02, D-01). Every name it
18
+ * exports, value or type, must stay off every package entry:
19
+ * src/__tests__/internal-api-boundary.test.ts checks the runtime exports and
20
+ * scripts/lib/declaration-boundary.mjs checks the built declarations. Nothing
21
+ * imports this barrel: consumers and sibling blocks import a block by its direct
22
+ * module path, which avoids ESM cycles. Use `export { … } from` lines only (no
23
+ * `export *`), so the checks can read the names.
24
+ *
17
25
  * @internal
18
26
  * @module internal
19
27
  */
@@ -24,4 +32,83 @@ export type { StatusChipProps, InlineStatusProps } from '../StatusIndicator/Chip
24
32
  export { IconIndicator, ShapeIndicator, StatusDot } from '../StatusIndicator/Indicators';
25
33
  export type { IconIndicatorProps, ShapeIndicatorProps, StatusDotProps } from '../StatusIndicator/Indicators';
26
34
  export { CircleShape, SquareShape, DiamondShape, TriangleShape, HexagonShape, ShapeComponents, type ShapeProps, } from '../StatusIndicator/Shapes';
35
+ export { useRootProps, joinIds, isOwnedAttribute, warnOwnedAttributes, OWNED_ATTRIBUTES, __resetOwnedAttributeWarnings, } from '../shared/rootProps';
36
+ export type { TrinityRootProps, UseRootPropsOptions, RootPropsResult, IdList } from '../shared/rootProps';
37
+ export { mergeSx } from '../shared/mergeSx';
38
+ export type { SxPart } from '../shared/mergeSx';
39
+ export { mergeSlotProps } from '../shared/mergeSlotProps';
40
+ export type { SlotOwnProps, MergeSlotPropsOptions } from '../shared/mergeSlotProps';
41
+ export { containerWrapperSx, containerQueryWidth, containerUp, containerDown, type ContainerQuerySize, } from '../shared/containerQueries';
42
+ export { useOverflow } from '../shared/useOverflow';
43
+ export type { OverflowAxis, UseOverflowOptions, UseOverflowResult } from '../shared/useOverflow';
44
+ export { useContainerInlineSize } from '../shared/useContainerInlineSize';
45
+ export type { UseContainerInlineSizeOptions } from '../shared/useContainerInlineSize';
46
+ export { headingComponent, offsetHeadingComponent, type HeadingOffset, type HeadingElement, } from '../shared/headingLevel';
47
+ export { BidiIsolate } from '../shared/bidi';
48
+ export type { BidiIsolateProps } from '../shared/bidi';
49
+ export { isolateText, BIDI_ISOLATE_CONTROLS } from '../shared/bidiText';
50
+ export type { BidiDirection } from '../shared/bidiText';
51
+ export { occurrenceKeys } from '../shared/occurrenceKeys';
52
+ export { getInitials } from '../shared/getInitials';
53
+ export { getResizeKeyTarget, RESIZE_KEY_STEP, RESIZE_KEY_LARGE_STEP } from '../shared/resizeKeyboard';
54
+ export type { ResizeOrientation, ResizeGrowDirection, ResizeKeyOptions } from '../shared/resizeKeyboard';
55
+ export { toMs, useMotionTimeout, reducedMotion, keyframes } from '../shared/motion';
56
+ export { themeTransitions, reducedMotionBackstop, ESSENTIAL_MOTION_CLASS, REDUCED_MOTION_DURATION, } from '../shared/motion';
57
+ export { decodeEntities, isSafeHref, isSafeSrc, isRemoteSrc, warnUnsafeUrl, __resetUnsafeUrlWarnings, sanitizeInlineStyle, tokenizeHtml, renderSafeHtml, DROP_WITH_CONTENT_TAGS, DEFAULT_ALLOWED_TAGS, } from '../shared/safeContent';
58
+ export type { SafeStyleMap, SafeHtmlTag, RenderSafeHtmlOptions } from '../shared/safeContent';
59
+ export { isRtl, inlineSign, rotateInline, translateInlineStart } from '../shared/direction';
60
+ export type { DirectionSource } from '../shared/direction';
61
+ export { useCopyAction } from '../shared/useCopyAction';
62
+ export type { UseCopyActionOptions, UseCopyActionResult, CopyActionStatus } from '../shared/useCopyAction';
63
+ export { FocusTrap, TABBABLE_SELECTOR, firstTabbable } from '../shared/focusTrap';
64
+ export type { FocusTrapProps } from '../shared/focusTrap';
65
+ export { MetaChip } from '../MetaChip/MetaChip';
66
+ export type { MetaChipProps, MetaChipOwnProps, MetaChipTone, MetaChipColors } from '../MetaChip/MetaChip';
67
+ export { KeyValueList } from '../KeyValueList/KeyValueList';
68
+ export type { KeyValueListProps, KeyValueListOwnProps, KeyValueListItem, KeyValueListLayout } from '../KeyValueList/KeyValueList';
69
+ export { CopyButton } from '../CopyButton/CopyButton';
70
+ export type { CopyButtonProps, CopyButtonOwnProps, CopyButtonSource, CopyButtonLabels } from '../CopyButton/CopyButton';
71
+ export { CodeBlock } from '../CodeBlock/CodeBlock';
72
+ export type { CodeBlockProps, CodeBlockOwnProps, CodeBlockContent, CodeBlockLabels } from '../CodeBlock/CodeBlock';
73
+ export { Disclosure } from '../Disclosure/Disclosure';
74
+ export type { DisclosureProps, DisclosureOwnProps } from '../Disclosure/Disclosure';
75
+ export { ChoiceChips } from '../ChoiceChips/ChoiceChips';
76
+ export type { ChoiceChipsProps, ChoiceChipsBaseProps, ChoiceChipsSingleProps, ChoiceChipsMultipleProps, ChoiceChipsOption, ChoiceChipsActions } from '../ChoiceChips/ChoiceChips';
77
+ export { InlineEditableText } from '../InlineEditableText/InlineEditableText';
78
+ export type { InlineEditableTextProps, InlineEditableTextBaseProps, InlineEditableTextButtonProps, InlineEditableTextExternalProps, InlineEditableTextLabels, InlineEditableTextEditingReason } from '../InlineEditableText/InlineEditableText';
79
+ export { StepList } from '../StepList/StepList';
80
+ export type { StepListItem, StepListOwnProps, StepListProps, StepListSlot } from '../StepList/StepList';
81
+ export { StepStatusMarker } from '../StepList/StepStatusMarker';
82
+ export type { StepStatusMarkerProps } from '../StepList/StepStatusMarker';
83
+ export { STEP_STATUS_CATALOG, DEFAULT_STEP_STATUS_LABELS } from '../StepList/stepStatus';
84
+ export type { StepListStatus } from '../StepList/stepStatus';
85
+ export { DetailsPopover, useDetailsPopover } from '../DetailsPopover/DetailsPopover';
86
+ export type { DetailsPopoverProps, DetailsPopoverOwnProps, DetailsPopoverName, DetailsPopoverChangeReason, UseDetailsPopoverOptions, UseDetailsPopoverResult, } from '../DetailsPopover/DetailsPopover';
87
+ export { DeprecationSuppressionContext, useDeprecationWarning, warnOnce, warnDeprecated, __resetDevWarnings, } from '../shared/warnDeprecated';
88
+ export { useFocusOnReplace } from '../../hooks/useFocusOnReplace';
89
+ export type { FocusOnReplaceTarget, UseFocusOnReplaceOptions, UseFocusOnReplaceResult } from '../../hooks/useFocusOnReplace';
90
+ export { createStorageStore } from '../../hooks/storageStore';
91
+ export type { StorageArea, StorageStore } from '../../hooks/storageStore';
92
+ export { primaryActionContainerSx, primaryActionOverlaySx, primaryActionContentSx, PRIMARY_ACTION_INTERACTIVE_SELECTOR, } from '../shared/primaryAction';
93
+ export { AsyncOutcomeAlert } from '../shared/AsyncOutcomeAlert';
94
+ export type { AsyncOutcomeAlertProps } from '../shared/AsyncOutcomeAlert';
95
+ export { targetSizeHitAreaSx, TARGET_SIZE_FLOOR_PX } from '../shared/targetSize';
96
+ export { InThreadContext } from '../AI/InThreadContext';
97
+ export { MessageActionButton } from '../AI/MessageActionButton';
98
+ export type { BuiltInActionSpec } from '../AI/MessageActionButton';
99
+ export { getResponsePlainText } from '../AI/utils/responseText';
100
+ export { AI_AVATAR_SIZE_PX } from '../AI/AIAvatar';
101
+ export { getMessageContentInset } from '../AI/AIMessage';
102
+ export { AIBlockRendererProvider, useBlockRenderer, useBlockRendererMap, type AIBlockRendererMap, type AIBlockRendererProviderProps, } from '../AI/blockRendererContext';
103
+ export { BlockErrorBoundary, BlockUnavailable, type BlockErrorBoundaryProps, type BlockErrorContext, type BlockUnavailableProps, } from '../AI/BlockErrorBoundary';
104
+ export { queryBlockRenderer, clarificationBlockRenderer } from '../AI/moleculeBlockRenderers';
105
+ export { useBlockReadyAnnouncement, BlockReadyAnnouncementSuppressed, type UseBlockReadyAnnouncementOptions, } from '../AI/utils/blockReady';
106
+ export { getPendingRequiredClarification, useRequiredClarificationGate, type BlockGateMessage, type MessageBlockEventHandler, type RequiredClarificationGate, } from '../AI/utils/blocks';
107
+ export { planReviewBlockRenderer } from '../AI/planReviewBlockRenderer';
108
+ export { createStringsContext, mergeStrings, contentHash, useIdentityChurnWarning, type DeepPartial, type StringsProviderProps, type StringsContextKit, type StringsContextOptions, } from '../shared/createStringsContext';
109
+ export { DEFAULT_AI_STRINGS } from '../AI/strings/defaults';
110
+ export { AIStringsKit, AIThresholdsContext, AILocaleContext, AITimeZoneContext, AIInteractionContext, stripInteractionContent, type AIInteractionContextValue, } from '../AI/AIConfigContext';
111
+ export { parseMarkdown, parseInlineMarkdown, type MarkdownElementType, type ParsedElement, type InlinePart, LEGACY_INLINE_SYNTAX, type InlineSyntax, type InlineScanOptions, DEFAULT_INLINE_SYNTAX, CITATION_INLINE_SYNTAX, TRAILING_PARTIAL_CITATION, splitCitations, citationsToPlainText, type CitationRun, type SplitCitationsOptions, type CitationPlainTextOptions, } from '../AI/AITextBlock.parser';
112
+ export { AIResponseSourcesContext, AIResponseSourcesProvider, useResponseSources, useIsQueryRegistered, indexResponseSources, createQueryRegistry, cellKey, pointKey, type AIResponseSourcesProviderProps, type ResponseSourcesContextValue, type ResponseSourcesIndex, type QueryRegistry, type QueryRegistration, } from '../AI/AIResponseSourcesContext';
113
+ export { HostedFeedbackContext, useHostedFeedback } from '../AI/AIFeedbackHostContext';
27
114
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/internal/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAQH,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjF,YAAY,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGhG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGlF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACzF,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG7G,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,eAAe,EACf,KAAK,UAAU,GAChB,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,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,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EAEf,oBAAoB,EACpB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @fileoverview A Menu `list` slot that renders a heading above the list instead of inside it.
3
+ * @module components/navigation/MenuListWithHeading
4
+ *
5
+ * A heading placed as a child of a MUI Menu ends up inside the `role="menu"` or
6
+ * `role="listbox"` element, where only items may live (axe `aria-required-children`, B-37).
7
+ * Passing this component as `slots.list` keeps MUI Menu (its focus management, keyboard model
8
+ * and `MuiMenu-paper` classes) and renders the heading before the list, naming the list through
9
+ * `aria-labelledby` with an id from `useId`:
10
+ *
11
+ * ```tsx
12
+ * <Menu
13
+ * slots={{ list: MenuListWithHeading }}
14
+ * slotProps={{ list: { heading: 'Switch client', role: 'listbox' } as MenuListWithHeadingSlotProps }}
15
+ * >
16
+ * ```
17
+ */
18
+ import * as React from 'react';
19
+ import { type MenuListProps, type SxProps, type Theme } from '@mui/material';
20
+ /** The slot props MenuListWithHeading reads on top of MenuList's. */
21
+ export interface MenuListWithHeadingSlotProps extends Partial<MenuListProps> {
22
+ /** Shown above the list, outside it; it names the list. */
23
+ heading: React.ReactNode;
24
+ /** Styles of the heading's box. @default { px: 2, pt: 2.5, pb: 1.5 } */
25
+ headingSx?: SxProps<Theme>;
26
+ }
27
+ interface MenuListWithHeadingProps extends MenuListProps, Omit<MenuListWithHeadingSlotProps, keyof MenuListProps> {
28
+ /** Passed by MUI's slot machinery; not a DOM attribute. */
29
+ ownerState?: unknown;
30
+ }
31
+ export declare const MenuListWithHeading: React.ForwardRefExoticComponent<Omit<MenuListWithHeadingProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
32
+ export {};
33
+ //# sourceMappingURL=MenuListWithHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuListWithHeading.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/MenuListWithHeading.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE5F,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,OAAO,CAAC,aAAa,CAAC;IAC1E,2DAA2D;IAC3D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wEAAwE;IACxE,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC5B;AAED,UAAU,wBAAyB,SAAQ,aAAa,EAAE,IAAI,CAAC,4BAA4B,EAAE,MAAM,aAAa,CAAC;IAC/G,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAQD,eAAO,MAAM,mBAAmB,gHAiB/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @fileoverview The client picker's built-in strings, shared by ClientMenu, TopNavHeader and
3
+ * TopNavWithSidebar (B-37).
4
+ * @module components/navigation/clientSelectorLabels
5
+ */
6
+ /**
7
+ * The default name of a client picker's trigger: the action first, then the current client, in
8
+ * sentence case (MICROCOPY: no "click").
9
+ */
10
+ export declare const defaultClientSelectorLabel: (client: string) => string;
11
+ /** The client list's heading, which also names the listbox. */
12
+ export declare const CLIENT_LIST_HEADING = "Switch client";
13
+ //# sourceMappingURL=clientSelectorLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientSelectorLabels.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/clientSelectorLabels.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,KAAG,MAA6C,CAAC;AAE1G,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,kBAAkB,CAAC"}
@@ -44,6 +44,12 @@ export interface ClientMenuProps {
44
44
  onButtonClick: (event: React.MouseEvent<HTMLElement>) => void;
45
45
  onClose: () => void;
46
46
  onSelect: (client: Client) => void;
47
+ /**
48
+ * Accessible name of the trigger, from the current client.
49
+ * @default (client) => `Switch client, current: ${client}`
50
+ * @since 2.13.0
51
+ */
52
+ clientSelectorLabel?: (client: string) => string;
47
53
  }
48
54
  export declare const ClientMenu: React.ForwardRefExoticComponent<ClientMenuProps & React.RefAttributes<HTMLButtonElement>>;
49
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;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C;AAED,eAAO,MAAM,QAAQ,yFAwEnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,yFA+FnB,CAAC;AAMH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4BtD,CAAC"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @fileoverview AsyncOutcomeAlert: the one inline error surface for a failed async action (ADR-36 (4)).
3
+ * @module components/shared/AsyncOutcomeAlert
4
+ *
5
+ * @internal — not part of the public API; see ADR-02
6
+ *
7
+ * A surface that runs an action through `useAsyncAction` (B-07) renders this
8
+ * below its controls when the action fails: an MUI Alert (severity error,
9
+ * theme colours only) with the message and, when the action can run again, a
10
+ * retry button. It holds no built-in strings: the surface passes the message
11
+ * (MICROCOPY's "what happened / what to do" form) and the button text.
12
+ *
13
+ * - Announcement: the message is announced once, assertively, through
14
+ * `useAnnounce` (B-04), so it reaches the nearest `LiveRegionProvider` (a
15
+ * Modal or Popover paper) or the document-level region. The Alert itself
16
+ * carries no `role="alert"` (G-OD9): inside a chat log or a live container
17
+ * an implicit live role would announce twice or nest live regions. A new
18
+ * message text is announced again; a re-render with the same text is not.
19
+ * - Focus (ADR-31, ADR-36 (1)): it never steals focus. When the Alert appears
20
+ * and nothing has focus (the control that failed was removed), focus moves to
21
+ * the Alert. After the retry button is pressed, if the button goes away (the
22
+ * surface removes the Alert, or renders it again without a retry), focus
23
+ * moves to `focusFallbackRef`, else to the Alert while it is still shown.
24
+ * - Root props: `className`, `sx`, `style`, `ref`, `data-*` and `aria-*` reach
25
+ * the Alert root. `role` and `tabIndex` are owned.
26
+ * - Narrow hosts (a 360px popover, a 320px panel): the retry button wraps below
27
+ * the message once the message would get less than 12rem, and long words
28
+ * wrap, so the message never becomes a narrow box that scrolls sideways
29
+ * (MUI's message is `overflow: auto`, which axe then reports as a
30
+ * scrollable region with nothing focusable in it). Wide hosts look the same:
31
+ * the button stays at the inline end.
32
+ *
33
+ * @example
34
+ * ```tsx
35
+ * const submitRef = React.useRef<HTMLButtonElement>(null);
36
+ * const save = useAsyncAction(onSave);
37
+ * {save.status === 'error' && (
38
+ * <AsyncOutcomeAlert
39
+ * message={strings.saveFailed} // "The changes were not saved. Check your connection and try again."
40
+ * retryLabel={strings.tryAgain} // "Try again"
41
+ * onRetry={() => save.run(values)}
42
+ * error={save.error}
43
+ * focusFallbackRef={submitRef}
44
+ * />
45
+ * )}
46
+ * ```
47
+ */
48
+ import * as React from 'react';
49
+ import { type SxProps, type Theme } from '@mui/material';
50
+ /** Props of `AsyncOutcomeAlert` that every variant shares. */
51
+ interface AsyncOutcomeAlertBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'role' | 'tabIndex' | 'onError' | 'color'> {
52
+ /** What happened and what to do next. Announced assertively when it appears or changes. */
53
+ message: React.ReactNode;
54
+ /**
55
+ * The error the action reported. It is never rendered (it may hold
56
+ * internals); pass it so developer tools show the cause next to the message.
57
+ */
58
+ error?: unknown;
59
+ /**
60
+ * Where focus goes when the retry button disappears after it was pressed
61
+ * (the Alert is removed, or shown again without a retry). Usually the
62
+ * control that started the action. Without it, focus goes to the Alert
63
+ * while it is still shown.
64
+ */
65
+ focusFallbackRef?: React.RefObject<HTMLElement | null>;
66
+ /** Styles for the Alert root, merged after the defaults. */
67
+ sx?: SxProps<Theme>;
68
+ }
69
+ /**
70
+ * Props of `AsyncOutcomeAlert`. `retryLabel` is required when `onRetry` is set:
71
+ * the component has no built-in strings.
72
+ *
73
+ * @internal
74
+ */
75
+ export type AsyncOutcomeAlertProps = AsyncOutcomeAlertBaseProps & ({
76
+ /** Runs the failed action again. Shows the retry button. */
77
+ onRetry: () => void;
78
+ /** The retry button text, for example "Try again". */
79
+ retryLabel: string;
80
+ } | {
81
+ onRetry?: undefined;
82
+ retryLabel?: undefined;
83
+ });
84
+ /**
85
+ * The inline error surface for a failed async action (ADR-36 (4)).
86
+ *
87
+ * @internal
88
+ */
89
+ export declare const AsyncOutcomeAlert: React.ForwardRefExoticComponent<AsyncOutcomeAlertProps & React.RefAttributes<HTMLDivElement>>;
90
+ export {};
91
+ //# sourceMappingURL=AsyncOutcomeAlert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncOutcomeAlert.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AsyncOutcomeAlert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAsB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAO7E,8DAA8D;AAC9D,UAAU,0BACR,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1G,2FAA2F;IAC3F,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACvD,4DAA4D;IAC5D,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,0BAA0B,GAC7D,CACI;IACE,4DAA4D;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;CACpB,GACD;IAAE,OAAO,CAAC,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,SAAS,CAAA;CAAE,CAClD,CAAC;AAcJ;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,+FAyF5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TrinityIconSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityIconSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuCxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TrinityIconSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityIconSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiExD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"TrinityLogoSvg.d.ts","sourceRoot":"","sources":["../../../src/components/shared/TrinityLogoSvg.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsExD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @fileoverview Bidi isolation for text that is not written in the UI language (E-48+;
3
+ * docs/RTL.md, "Mixed-direction text").
4
+ * @module components/shared/bidi
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * A value that comes from a model, a user or a data source can be in any script. Placed next to
9
+ * a label in the UI's language, its neutral characters (punctuation, spaces, brackets, digits
10
+ * at the edges) take their direction from the label's paragraph and reorder: in an Arabic UI,
11
+ * `v2.1 (beta)!` shows its `!` before the `v`. Isolating the value lets its own first strong
12
+ * character decide its direction and keeps it from reordering the label around it.
13
+ *
14
+ * - {@link BidiIsolate}: the element form, `<span dir="auto">` with `unicode-bidi: isolate`.
15
+ * - `isolateText` (./bidiText.ts): the string form, for text that must stay a string
16
+ * (`aria-label`, `title`, live-region announcements): the value between Unicode isolate
17
+ * controls. It has its own module so this one exports only a component (react-refresh).
18
+ *
19
+ * Isolate values, never labels: a label is authored in the UI language and follows the page.
20
+ * It lives here, in src/components/shared/, so the shared blocks (MetaChip, KeyValueList) can
21
+ * import it (src/__tests__/shared-block-layering.test.ts).
22
+ */
23
+ import { type HTMLAttributes, type ReactNode } from 'react';
24
+ import type { BidiDirection } from './bidiText';
25
+ /** Props of {@link BidiIsolate}. @internal */
26
+ export interface BidiIsolateProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'dir'> {
27
+ /** The value to isolate: model, user or data text. */
28
+ children?: ReactNode;
29
+ /**
30
+ * 'auto' (the default): the value's first strong character decides, which is right for text
31
+ * in an unknown script. 'ltr' for content that is always left to right whatever its first
32
+ * character: code, URLs, e-mail addresses, file paths and identifiers. 'rtl' only for a value
33
+ * known to be right to left.
34
+ * @default 'auto'
35
+ */
36
+ dir?: BidiDirection;
37
+ }
38
+ /**
39
+ * An inline bidi isolate: `<span dir="auto">` with `unicode-bidi: isolate`. Wrap the value, not
40
+ * the label: `{label}: <BidiIsolate>{value}</BidiIsolate>`. It adds no box, colour or spacing.
41
+ * @internal
42
+ */
43
+ export declare const BidiIsolate: import("react").ForwardRefExoticComponent<BidiIsolateProps & import("react").RefAttributes<HTMLSpanElement>>;
44
+ //# sourceMappingURL=bidi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bidi.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidi.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,8CAA8C;AAC9C,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC;IACpF,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,8GAKtB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @fileoverview The string form of bidi isolation (E-48+; docs/RTL.md, "Mixed-direction text"),
3
+ * for text that cannot hold markup. The element form is `BidiIsolate` in ./bidi.tsx.
4
+ * @module components/shared/bidiText
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ */
8
+ /** The direction of an isolated value: 'auto' lets its first strong character decide. */
9
+ export type BidiDirection = 'auto' | 'ltr' | 'rtl';
10
+ /** First strong isolate, left-to-right isolate, right-to-left isolate, pop directional isolate. */
11
+ export declare const BIDI_ISOLATE_CONTROLS: Readonly<{
12
+ auto: "⁨";
13
+ ltr: "⁦";
14
+ rtl: "⁧";
15
+ pop: "⁩";
16
+ }>;
17
+ /**
18
+ * The string form of {@link BidiIsolate}: the value between Unicode isolate controls (U+2068
19
+ * FIRST STRONG ISOLATE, or U+2066 / U+2067 for a fixed direction, then U+2069 POP DIRECTIONAL
20
+ * ISOLATE). Use it where markup cannot go, such as `aria-label`, `title` and announcements:
21
+ * ``aria-label={`Remove ${isolateText(fileName, 'ltr')}`}``. An empty value stays empty.
22
+ * @internal
23
+ */
24
+ export declare function isolateText(value: string, dir?: BidiDirection): string;
25
+ //# sourceMappingURL=bidiText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bidiText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/bidiText.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yFAAyF;AACzF,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAEnD,mGAAmG;AACnG,eAAO,MAAM,qBAAqB;;;;;EAKhC,CAAC;AAEH;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,GAAE,aAAsB,GAAG,MAAM,CAG9E"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * @fileoverview Container-query helpers for components hosted in narrow containers
3
+ * (master-plan E-19, ADR-11 §5).
4
+ * @module components/shared/containerQueries
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * Panel-hosted components (an AI panel 320-420px wide inside a desktop viewport) cannot use
9
+ * viewport breakpoints: the viewport says "desktop" while the panel is narrow. They respond
10
+ * to their container instead, with the widths in `semanticTokens.spacing.layout.containerQuery`
11
+ * (narrow 320, compact 360, regular 600), which are JavaScript-only: a CSS custom property
12
+ * cannot be an `@container` operand (H-08).
13
+ *
14
+ * The policy (docs/TOKEN_USAGE_RULES.md, "Narrow containers"):
15
+ *
16
+ * - Every panel-hosted component is usable at `narrow` (320px) with no horizontal scroll.
17
+ * - Below `compact`, footers and toolbars wrap or collapse.
18
+ * - Container queries for components, viewport breakpoints only for page layout.
19
+ * - **The inner-wrapper rule.** `container-type: inline-size` goes on an inner wrapper
20
+ * ({@link containerWrapperSx}), never on the component's public root. A size container
21
+ * cannot size itself from its content, so on the root it would change how the component
22
+ * sizes in its host, and it would turn a consumer's `sx` on the root into a container
23
+ * query target they did not ask for. Rules inside the wrapper query it with
24
+ * {@link containerUp} and {@link containerDown}.
25
+ *
26
+ * Container queries need an evergreen browser (ADR-11); MUI 9 builds the conditions.
27
+ *
28
+ * @example
29
+ * ```tsx
30
+ * <Box className="root">
31
+ * <Box sx={containerWrapperSx}>
32
+ * <Box sx={(theme) => ({
33
+ * display: 'flex',
34
+ * flexWrap: 'nowrap',
35
+ * [containerDown(theme, 'compact')]: { flexWrap: 'wrap' },
36
+ * })} />
37
+ * </Box>
38
+ * </Box>
39
+ * ```
40
+ */
41
+ import type { Theme } from '@mui/material/styles';
42
+ import { type TrinityContainerQuerySizes } from '../../tokens';
43
+ /** A container width role: `narrow` (320px), `compact` (360px) or `regular` (600px). */
44
+ export type ContainerQuerySize = keyof TrinityContainerQuerySizes;
45
+ /**
46
+ * The inner wrapper that becomes the size container. `width: 100%` keeps it as wide as the
47
+ * component, because an inline-size container does not size from its content.
48
+ *
49
+ * For the same reason its content gives the component no width in a host that sizes from content
50
+ * (a flex row whose child has no width, a grid `auto` column, a popover's paper): the component
51
+ * would be 0px wide there (F-22's hosting check). `containIntrinsicInlineSize` gives the
52
+ * container the narrow container width (320px, `semanticTokens.spacing.layout.containerQuery`)
53
+ * as its intrinsic inline size, the width every panel-hosted component is usable at; a host that
54
+ * sets a width still decides the width.
55
+ */
56
+ export declare const containerWrapperSx: {
57
+ readonly containerType: "inline-size";
58
+ readonly width: "100%";
59
+ readonly containIntrinsicInlineSize: `${number}px`;
60
+ };
61
+ /**
62
+ * The width in px for a container role: the theme's resolved tokens (token overrides reach
63
+ * it), else the defaults. Works under a plain MUI theme too.
64
+ */
65
+ export declare function containerQueryWidth(theme: Theme, size: ContainerQuerySize): number;
66
+ /**
67
+ * `@container (min-width:<px>)` for a role, or `@container <name> (min-width:<px>)` when the
68
+ * wrapper has a `containerName`. Use as an `sx` key.
69
+ */
70
+ export declare function containerUp(theme: Theme, size: ContainerQuerySize, name?: string): string;
71
+ /** `@container (max-width:<px - 0.05>)` for a role: below that width. Use as an `sx` key. */
72
+ export declare function containerDown(theme: Theme, size: ContainerQuerySize, name?: string): string;
73
+ //# sourceMappingURL=containerQueries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"containerQueries.d.ts","sourceRoot":"","sources":["../../../src/components/shared/containerQueries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAkB,KAAK,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE/E,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,MAAM,0BAA0B,CAAC;AAElE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAGlF;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAGzF;AAED,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAG3F"}
@@ -0,0 +1,69 @@
1
+ import type { Context, ReactElement, ReactNode } from 'react';
2
+ /**
3
+ * Every key optional, at every depth. Functions (count strings) are leaves: they are replaced
4
+ * whole, never merged.
5
+ *
6
+ * @internal
7
+ */
8
+ export type DeepPartial<T> = {
9
+ [K in keyof T]?: T[K] extends (...args: never[]) => unknown ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K];
10
+ };
11
+ /** @internal */
12
+ export interface StringsProviderProps<T> {
13
+ /** Keys to replace; the rest come from the nearest parent provider, then the defaults. */
14
+ strings?: DeepPartial<T>;
15
+ children?: ReactNode;
16
+ }
17
+ /** @internal */
18
+ export interface StringsContextOptions {
19
+ /** The public component that renders the provider, named in warnings. Default `StringsProvider(<namespace>)`. */
20
+ providerName?: string;
21
+ }
22
+ /** @internal */
23
+ export interface StringsContextKit<T> {
24
+ /** The namespace, for example 'ai'. */
25
+ namespace: string;
26
+ /** The built-in strings, returned when no provider is mounted. */
27
+ defaults: T;
28
+ /** The context itself; its default value is `defaults`. */
29
+ Context: Context<T>;
30
+ /** Deep-merges `strings` over the nearest parent value. */
31
+ StringsProvider: (props: StringsProviderProps<T>) => ReactElement;
32
+ /** The merged strings of the nearest provider, or `defaults`. */
33
+ useStrings: () => T;
34
+ }
35
+ /**
36
+ * Deep-merges `overrides` over `base` without mutating either. Returns `base` itself when
37
+ * there is nothing to merge, so the value keeps its identity.
38
+ *
39
+ * @internal
40
+ */
41
+ export declare function mergeStrings<T>(base: T, overrides: DeepPartial<T> | undefined): T;
42
+ /**
43
+ * A stable text form of a value for the churn check: object keys sorted, functions by their
44
+ * source text (an inline arrow re-created on each render has the same text).
45
+ *
46
+ * @internal
47
+ */
48
+ export declare function contentHash(value: unknown): string;
49
+ /**
50
+ * Dev-only identity-churn check (ADR-06 (4)). Runs after every commit of the calling
51
+ * component and warns once when `value` got a new identity with equal content on more than 3
52
+ * consecutive commits. Checking in an effect means StrictMode's double render never counts,
53
+ * and its double effect sees the same identity twice, which is not a change.
54
+ *
55
+ * @internal
56
+ */
57
+ export declare function useIdentityChurnWarning(label: string, value: unknown): void;
58
+ /**
59
+ * Creates a namespaced strings context: provider, hook and defaults.
60
+ *
61
+ * @param namespace The key namespace, for example 'ai'. Used in key paths, warnings and the
62
+ * context's display name.
63
+ * @param defaults The built-in strings. Frozen by the caller or never mutated.
64
+ * @param options.providerName The public component that renders the provider, for warnings.
65
+ *
66
+ * @internal
67
+ */
68
+ export declare function createStringsContext<T extends object>(namespace: string, defaults: T, options?: StringsContextOptions): StringsContextKit<T>;
69
+ //# sourceMappingURL=createStringsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createStringsContext.d.ts","sourceRoot":"","sources":["../../../src/components/shared/createStringsContext.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,E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,EAAE,CAAC,EACX,OAAO,GAAE,qBAA0B,GAClC,iBAAiB,CAAC,CAAC,CAAC,CAkBtB"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @fileoverview Direction helpers for the CSS that logical properties cannot express (ADR-11,
3
+ * master-plan E-18; docs/QUICK_START.md, "Right-to-left").
4
+ * @module components/shared/direction
5
+ *
6
+ * @internal — not part of the public API; see ADR-02
7
+ *
8
+ * Layout uses logical properties, which follow `dir` with or without stylis-plugin-rtl:
9
+ * `marginInlineStart`, `paddingInlineEnd`, `insetInlineStart`, `borderInlineStart`,
10
+ * `textAlign: 'start'` and `borderStartStartRadius` (and its three siblings). Never build them
11
+ * from these helpers.
12
+ *
13
+ * Transforms have no logical form, and the RTL plugin does not flip them: a chevron rotated to
14
+ * point at the inline end, or an entrance that slides in from the inline start, must read the
15
+ * theme's direction. These helpers do that, so a component never branches on `theme.direction`
16
+ * itself. They read `theme.direction`, which `createTrinityTheme(mode, overrides, 'rtl')` and
17
+ * the presets' `direction` option set; the consumer also sets `dir` on the root
18
+ * (QUICK_START). A theme without a direction is left to right, as in MUI.
19
+ */
20
+ import type { Theme } from '@mui/material/styles';
21
+ /** The part of a theme the helpers read; any MUI theme fits. */
22
+ export type DirectionSource = Pick<Theme, 'direction'> | {
23
+ direction?: Theme['direction'];
24
+ };
25
+ /** Whether the theme lays out right to left. */
26
+ export declare function isRtl(theme: DirectionSource): boolean;
27
+ /**
28
+ * The sign of the inline-end direction on the physical x axis: `1` left to right, `-1` right to
29
+ * left. Multiply an x offset or an angle that points toward the inline end by it.
30
+ */
31
+ export declare function inlineSign(theme: DirectionSource): 1 | -1;
32
+ /**
33
+ * A `rotate()` for an angle written for left to right, mirrored right to left. A chevron that
34
+ * points down (`chevron-down`) and turns to point at the inline end when collapsed uses
35
+ * `rotateInline(theme, -90)`: `rotate(-90deg)` left to right, `rotate(90deg)` right to left.
36
+ * Zero stays `rotate(0deg)`.
37
+ */
38
+ export declare function rotateInline(theme: DirectionSource, degrees: number): string;
39
+ /**
40
+ * A `translateX()` that moves an element `px` pixels toward the inline start (negative values
41
+ * move it toward the inline end): `translateX(-8px)` left to right, `translateX(8px)` right to
42
+ * left for `translateInlineStart(theme, 8)`. Use it for an entrance that slides in from the
43
+ * start edge; zero is `translateX(0px)`.
44
+ */
45
+ export declare function translateInlineStart(theme: DirectionSource, px: number): string;
46
+ //# sourceMappingURL=direction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../src/components/shared/direction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,gEAAgE;AAChE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;AAE5F,gDAAgD;AAChD,wBAAgB,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAG/E"}