impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.10

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 (372) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/index.js +7 -0
  4. package/dist/_virtual/index2.js +7 -0
  5. package/dist/_virtual/index3.js +4 -0
  6. package/dist/_virtual/utilities.js +4 -0
  7. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
  8. package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
  9. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
  11. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  12. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
  14. package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
  15. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  16. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  17. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  18. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  19. package/dist/components/data/ag-grid-react/index.js +115 -111
  20. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  21. package/dist/components/data/expandable-list-item/index.js +20 -16
  22. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  23. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  24. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  25. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  26. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  27. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  28. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  29. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  30. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  31. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  32. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  33. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  34. package/dist/components/data-display/chart/chart.js +125 -112
  35. package/dist/components/data-display/chart/chart.utils.js +122 -92
  36. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  37. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  38. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  39. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  40. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  41. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  42. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  43. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  44. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  45. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  46. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  47. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  48. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  49. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  50. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  51. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  52. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  53. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  54. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  55. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  56. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  57. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  58. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  59. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  60. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  61. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  62. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  63. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  64. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  65. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  66. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  67. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  68. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  69. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  70. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  71. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  72. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  73. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  74. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  75. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  76. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +40 -0
  77. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  78. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  79. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  80. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +99 -0
  81. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  82. package/dist/components/flows/iris-chat/index.js +58 -53
  83. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  84. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  85. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  86. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  87. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  88. package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
  89. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  90. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  91. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  92. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  93. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +31 -0
  94. package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
  95. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
  96. package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
  97. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  98. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  99. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  100. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  101. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +4 -0
  102. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -0
  103. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  104. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  105. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  106. package/dist/components/flows/iris-chat/iris-chat-thread.js +289 -231
  107. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
  108. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -0
  109. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  110. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  111. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  112. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  113. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  114. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  115. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  116. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  117. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  118. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  119. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  120. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  121. package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
  122. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  123. package/dist/components/flows/iris-chat/use-iris-chat-root.js +167 -0
  124. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  125. package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
  126. package/dist/components/forms/choice-card/choice-card.js +196 -199
  127. package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
  128. package/dist/components/forms/input/input.js +5 -5
  129. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  130. package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
  131. package/dist/components/layout/header/header.js +1 -0
  132. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  133. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  134. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  135. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  136. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  137. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  138. package/dist/components/primitives/button/button.variants.js +1 -1
  139. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  140. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  141. package/dist/components/primitives/iris/iris.d.ts +3 -1
  142. package/dist/components/primitives/iris/iris.js +76 -84
  143. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  144. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  145. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  146. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  147. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  148. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  149. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  150. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  151. package/dist/components/primitives/stepper/stepper.js +92 -91
  152. package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
  153. package/dist/form-react/Fields/SelectField.js +66 -57
  154. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  155. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  156. package/dist/form-react/fields.d.ts +1 -0
  157. package/dist/form-react/fields.js +28 -26
  158. package/dist/form-react/index.d.ts +1 -1
  159. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  160. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  161. package/dist/form-react/types/fields.types.d.ts +48 -1
  162. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  163. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  164. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  165. package/dist/i18n/defaultMessages.d.ts +45 -0
  166. package/dist/i18n/defaultMessages.js +58 -14
  167. package/dist/i18n/index.d.ts +1 -1
  168. package/dist/i18n/locales/de.js +44 -0
  169. package/dist/i18n/locales/es.js +44 -0
  170. package/dist/i18n/locales/hi.js +44 -0
  171. package/dist/i18n/locales/kn.js +44 -0
  172. package/dist/impact-nova-components.css +195 -8
  173. package/dist/impact-nova.css +1 -1
  174. package/dist/index.js +356 -352
  175. package/dist/lib/alphabetical-sort.d.ts +3 -0
  176. package/dist/lib/alphabetical-sort.js +13 -0
  177. package/dist/lib/overflow/is-text-overflowing.js +24 -6
  178. package/dist/llms/rules/installation.js +1 -1
  179. package/dist/llms/rules/requirements.js +1 -1
  180. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  181. package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
  182. package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
  183. package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
  184. package/dist/node_modules/bail/index.js +7 -0
  185. package/dist/node_modules/ccount/index.js +12 -0
  186. package/dist/node_modules/comma-separated-tokens/index.js +9 -0
  187. package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
  188. package/dist/node_modules/devlop/lib/default.js +8 -0
  189. package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
  190. package/dist/node_modules/extend/index.js +43 -0
  191. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
  192. package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
  193. package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
  194. package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
  195. package/dist/node_modules/is-plain-obj/index.js +9 -0
  196. package/dist/node_modules/longest-streak/index.js +12 -0
  197. package/dist/node_modules/markdown-table/index.js +75 -0
  198. package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
  199. package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
  200. package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
  201. package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
  202. package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
  203. package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
  204. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
  205. package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
  206. package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
  207. package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
  208. package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
  209. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
  210. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
  211. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
  212. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
  213. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
  214. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
  215. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
  216. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
  217. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
  218. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
  219. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
  220. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
  221. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
  222. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
  223. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
  224. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
  225. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
  226. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
  227. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
  228. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
  229. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
  230. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
  231. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
  232. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
  233. package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
  234. package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
  235. package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
  236. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
  237. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
  238. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
  239. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
  240. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
  241. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
  242. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
  243. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
  244. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
  245. package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
  246. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
  247. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
  248. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
  249. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
  250. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
  251. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
  252. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
  253. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
  254. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
  255. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
  256. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
  257. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
  258. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
  259. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
  260. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
  261. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
  262. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
  263. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
  264. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
  265. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
  266. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
  267. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
  268. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
  269. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
  270. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
  271. package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
  272. package/dist/node_modules/micromark/lib/constructs.js +85 -0
  273. package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
  274. package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
  275. package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
  276. package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
  277. package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
  278. package/dist/node_modules/micromark/lib/parse.js +32 -0
  279. package/dist/node_modules/micromark/lib/postprocess.js +9 -0
  280. package/dist/node_modules/micromark/lib/preprocess.js +44 -0
  281. package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
  282. package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
  283. package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
  284. package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
  285. package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
  286. package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
  287. package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
  288. package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
  289. package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
  290. package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
  291. package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
  292. package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
  293. package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
  294. package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
  295. package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
  296. package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
  297. package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
  298. package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
  299. package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
  300. package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
  301. package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
  302. package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
  303. package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
  304. package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
  305. package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
  306. package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
  307. package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
  308. package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
  309. package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
  310. package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
  311. package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
  312. package/dist/node_modules/micromark-factory-destination/index.js +31 -0
  313. package/dist/node_modules/micromark-factory-label/index.js +28 -0
  314. package/dist/node_modules/micromark-factory-space/index.js +29 -0
  315. package/dist/node_modules/micromark-factory-title/index.js +26 -0
  316. package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
  317. package/dist/node_modules/micromark-util-character/index.js +39 -0
  318. package/dist/node_modules/micromark-util-chunked/index.js +16 -0
  319. package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
  320. package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
  321. package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
  322. package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
  323. package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
  324. package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
  325. package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
  326. package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
  327. package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
  328. package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
  329. package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
  330. package/dist/node_modules/property-information/index.js +12 -0
  331. package/dist/node_modules/property-information/lib/aria.js +61 -0
  332. package/dist/node_modules/property-information/lib/find.js +33 -0
  333. package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
  334. package/dist/node_modules/property-information/lib/html.js +378 -0
  335. package/dist/node_modules/property-information/lib/normalize.js +6 -0
  336. package/dist/node_modules/property-information/lib/svg.js +568 -0
  337. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
  338. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
  339. package/dist/node_modules/property-information/lib/util/create.js +19 -0
  340. package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
  341. package/dist/node_modules/property-information/lib/util/info.js +28 -0
  342. package/dist/node_modules/property-information/lib/util/merge.js +10 -0
  343. package/dist/node_modules/property-information/lib/util/schema.js +21 -0
  344. package/dist/node_modules/property-information/lib/util/types.js +14 -0
  345. package/dist/node_modules/property-information/lib/xlink.js +19 -0
  346. package/dist/node_modules/property-information/lib/xml.js +11 -0
  347. package/dist/node_modules/property-information/lib/xmlns.js +11 -0
  348. package/dist/node_modules/react-markdown/lib/index.js +102 -0
  349. package/dist/node_modules/remark-gfm/lib/index.js +13 -0
  350. package/dist/node_modules/remark-parse/lib/index.js +19 -0
  351. package/dist/node_modules/remark-rehype/lib/index.js +18 -0
  352. package/dist/node_modules/space-separated-tokens/index.js +6 -0
  353. package/dist/node_modules/style-to-js/cjs/index.js +20 -0
  354. package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
  355. package/dist/node_modules/style-to-object/cjs/index.js +28 -0
  356. package/dist/node_modules/trim-lines/index.js +28 -0
  357. package/dist/node_modules/trough/lib/index.js +60 -0
  358. package/dist/node_modules/unified/lib/callable-instance.js +25 -0
  359. package/dist/node_modules/unified/lib/index.js +529 -0
  360. package/dist/node_modules/unist-util-is/lib/index.js +91 -0
  361. package/dist/node_modules/unist-util-position/lib/index.js +23 -0
  362. package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
  363. package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
  364. package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
  365. package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
  366. package/dist/node_modules/vfile/lib/index.js +406 -0
  367. package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
  368. package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
  369. package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
  370. package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
  371. package/dist/node_modules/vfile-message/lib/index.js +91 -0
  372. package/package.json +8 -2
@@ -1,336 +1,28 @@
1
- import { jsx as r, jsxs as I, Fragment as z } from "react/jsx-runtime";
2
- import * as H from "react";
3
- import { Slot as P } from "@radix-ui/react-slot";
4
- import { Back as k, Cross as w, Draw as T } from "impact-nova-icons";
5
- import { Popover as y, PopoverTrigger as R, PopoverContent as M, PopoverHeader as O, PopoverTitle as D, PopoverBody as F } from "../../feedback/popover/popover.js";
6
- import { ButtonIconTooltip as L } from "../../feedback/tooltip/button-icon-tooltip.js";
7
- import { Button as S } from "../../primitives/button/button.js";
8
- import { IrisButton as V } from "../../primitives/iris/iris.js";
9
- import { IrisAlanGradientIcon as N } from "../../primitives/iris/iris-alan-gradient-icon.js";
10
- import { useImpactNovaI18n as p } from "../../../i18n/use-impact-nova-i18n.js";
11
- import { useComposedRefs as j } from "../../../lib/compose-refs.js";
12
- import { useControllableState as b } from "@radix-ui/react-use-controllable-state";
13
- import { createComponent as c } from "../../../lib/primitives/create-component.js";
14
- import { cn as m } from "../../../lib/utils.js";
15
- import { IrisChatProvider as A, useIrisChat as g, useIrisChatOptional as E } from "./iris-chat-context.js";
16
- import { IrisChatHamburgerIcon as G, IrisChatMinimizeIcon as q } from "./iris-chat-icons.js";
17
- import { irisChatRootVariants as J, irisChatHeaderVariants as K, irisChatPanelVariants as Q } from "./iris-chat.variants.js";
18
- const U = ({
19
- open: e,
20
- defaultOpen: t = !0,
21
- onOpenChange: a,
22
- placement: i,
23
- defaultPlacement: s = "dock-right",
24
- onPlacementChange: n,
25
- className: l,
26
- children: d
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cn as d } from "../../../lib/utils.js";
3
+ import { IrisChatProvider as p } from "./iris-chat-context.js";
4
+ import { irisChatRootVariants as l } from "./iris-chat.variants.js";
5
+ import { useIrisChatRoot as c } from "./use-iris-chat-root.js";
6
+ const v = ({
7
+ className: a,
8
+ children: r,
9
+ ...t
27
10
  }) => {
28
- const [o, h] = b({
29
- prop: e,
30
- defaultProp: t,
31
- onChange: a
32
- }), [u, x] = b({
33
- prop: i,
34
- defaultProp: s,
35
- onChange: n
36
- }), C = o ?? t, f = u ?? s;
37
- return /* @__PURE__ */ r(
38
- A,
11
+ const { resolvedOpen: e, resolvedPlacement: o, isClosing: s, isOpening: n, providerValue: m } = c({ ...t });
12
+ return /* @__PURE__ */ i(p, { value: m, children: /* @__PURE__ */ i(
13
+ "div",
39
14
  {
40
- value: {
41
- open: C,
42
- setOpen: h,
43
- placement: f,
44
- setPlacement: x
45
- },
46
- children: /* @__PURE__ */ r(
47
- "div",
48
- {
49
- "data-component": "iris-chat",
50
- "data-placement": f,
51
- "data-open": C ? "" : void 0,
52
- className: m(J({ placement: f }), l),
53
- children: d
54
- }
55
- )
15
+ "data-component": "iris-chat",
16
+ "data-placement": o,
17
+ "data-open": e ? "" : void 0,
18
+ "data-closing": s ? "" : void 0,
19
+ "data-opening": n ? "" : void 0,
20
+ className: d(l({ placement: o }), a),
21
+ children: r
56
22
  }
57
- );
23
+ ) });
58
24
  };
59
- U.displayName = "IrisChat";
60
- const me = c(
61
- "IrisChatPanel",
62
- ({ className: e, hidden: t, ...a }, i) => {
63
- const s = g();
64
- return t ?? !s.open ? null : /* @__PURE__ */ r(
65
- "div",
66
- {
67
- ref: i,
68
- "data-component": "iris-chat-panel",
69
- "data-placement": s.placement,
70
- className: m(Q({ placement: s.placement }), e),
71
- ...a
72
- }
73
- );
74
- }
75
- ), de = c(
76
- "IrisChatHeader",
77
- ({ className: e, ...t }, a) => /* @__PURE__ */ r(
78
- "header",
79
- {
80
- ref: a,
81
- "data-component": "iris-chat-header",
82
- className: m(K(), e),
83
- ...t
84
- }
85
- )
86
- ), he = c("IrisChatHeaderLeading", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
87
- "div",
88
- {
89
- ref: a,
90
- "data-component": "iris-chat-header-leading",
91
- className: m("flex min-w-0 items-center gap-2", e),
92
- ...t
93
- }
94
- )), pe = c("IrisChatHeaderTrailing", ({ className: e, ...t }, a) => /* @__PURE__ */ r(
95
- "div",
96
- {
97
- ref: a,
98
- "data-component": "iris-chat-header-trailing",
99
- className: m("flex shrink-0 items-center gap-2", e),
100
- ...t
101
- }
102
- )), ue = c(
103
- "IrisChatHeaderTitle",
104
- ({ className: e, showBrand: t = !1, children: a, ...i }, s) => {
105
- const { t: n } = p();
106
- return /* @__PURE__ */ I("div", { className: "flex min-w-0 items-center gap-1", children: [
107
- t ? /* @__PURE__ */ r(N, { size: 18 }) : null,
108
- /* @__PURE__ */ r(
109
- "h2",
110
- {
111
- ref: s,
112
- "data-component": "iris-chat-header-title",
113
- className: m("truncate text-sm font-semibold leading-5 text-content", e),
114
- ...i,
115
- children: a ?? n("irisChat.askIris")
116
- }
117
- )
118
- ] });
119
- }
120
- ), v = c(
121
- "IrisChatIconButton",
122
- ({ className: e, label: t, children: a, type: i = "button", variant: s = "secondary", disabled: n, ...l }, d) => /* @__PURE__ */ r(L, { label: t, disabled: n, children: /* @__PURE__ */ r(
123
- S,
124
- {
125
- ref: d,
126
- type: i,
127
- variant: s,
128
- size: "icon",
129
- "aria-label": t,
130
- disabled: n,
131
- "data-component": "iris-chat-icon-button",
132
- className: m(
133
- "text-content",
134
- s === "secondary" ? "rounded-full" : "rounded-lg",
135
- e
136
- ),
137
- ...l,
138
- children: a
139
- }
140
- ) })
141
- ), Ce = c("IrisChatHeaderMenuButton", ({ label: e, ...t }, a) => {
142
- const { t: i } = p();
143
- return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.menu"), ...t, children: /* @__PURE__ */ r(G, { size: 16 }) });
144
- }), fe = c("IrisChatHeaderBackButton", ({ label: e, ...t }, a) => {
145
- const { t: i } = p();
146
- return /* @__PURE__ */ r(v, { ref: a, variant: "ghost", label: e ?? i("irisChat.back"), ...t, children: /* @__PURE__ */ r(k, { size: 16 }) });
147
- }), Ie = c("IrisChatHeaderNewChatButton", ({ label: e, ...t }, a) => {
148
- const { t: i } = p();
149
- return /* @__PURE__ */ r(v, { ref: a, label: e ?? i("irisChat.newChat"), ...t, children: /* @__PURE__ */ r(T, { size: 16 }) });
150
- }), ge = c("IrisChatHeaderMinimizeButton", ({ label: e, onClick: t, ...a }, i) => {
151
- const { t: s } = p(), n = g(), l = H.useRef(
152
- n.placement === "minimized" ? "float" : n.placement
153
- ), d = n.placement === "minimized";
154
- return /* @__PURE__ */ r(
155
- v,
156
- {
157
- ref: i,
158
- label: e ?? s(d ? "irisChat.expand" : "irisChat.minimize"),
159
- "aria-pressed": d,
160
- onClick: (o) => {
161
- d ? n.setPlacement(l.current) : (l.current = n.placement, n.setPlacement("minimized")), t?.(o);
162
- },
163
- ...a,
164
- children: /* @__PURE__ */ r(q, { size: 16 })
165
- }
166
- );
167
- }), ve = c("IrisChatHeaderCloseButton", ({ label: e, onClick: t, ...a }, i) => {
168
- const { t: s } = p(), n = g();
169
- return /* @__PURE__ */ r(
170
- v,
171
- {
172
- ref: i,
173
- label: e ?? s("aria.close"),
174
- onClick: (l) => {
175
- n.setOpen(!1), t?.(l);
176
- },
177
- ...a,
178
- children: /* @__PURE__ */ r(w, { size: 16 })
179
- }
180
- );
181
- });
182
- function B(e) {
183
- return e === "minimized" || e === "composer";
184
- }
185
- const xe = c(
186
- "IrisChatBody",
187
- ({ className: e, onScroll: t, ...a }, i) => {
188
- const s = g(), n = H.useRef(null), l = H.useRef(!0), d = j(i, n);
189
- return H.useEffect(() => {
190
- const o = n.current;
191
- if (!o)
192
- return;
193
- const h = () => {
194
- l.current && (o.scrollTop = o.scrollHeight);
195
- }, u = new ResizeObserver(h), x = () => {
196
- u.disconnect(), u.observe(o);
197
- for (const f of o.children)
198
- u.observe(f);
199
- }, C = new MutationObserver(() => {
200
- x(), h();
201
- });
202
- return C.observe(o, { childList: !0, subtree: !0, characterData: !0 }), x(), h(), () => {
203
- u.disconnect(), C.disconnect();
204
- };
205
- }, []), /* @__PURE__ */ r(
206
- "div",
207
- {
208
- ref: d,
209
- "data-component": "iris-chat-body",
210
- "data-placement": s.placement,
211
- className: m(
212
- "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
213
- B(s.placement) ? "px-4" : "px-12",
214
- e
215
- ),
216
- onScroll: (o) => {
217
- const h = o.currentTarget;
218
- l.current = h.scrollHeight - h.scrollTop - h.clientHeight < 64, t?.(o);
219
- },
220
- ...a
221
- }
222
- );
223
- }
224
- ), He = c(
225
- "IrisChatFooter",
226
- ({ className: e, ...t }, a) => {
227
- const i = g();
228
- return /* @__PURE__ */ r(
229
- "div",
230
- {
231
- ref: a,
232
- "data-component": "iris-chat-footer",
233
- "data-placement": i.placement,
234
- className: m(
235
- "min-w-0 shrink-0 pb-2",
236
- B(i.placement) ? "px-4" : "px-12",
237
- e
238
- ),
239
- ...t
240
- }
241
- );
242
- }
243
- ), be = c(
244
- "IrisChatDisclaimer",
245
- ({ className: e, href: t, children: a, ...i }, s) => {
246
- const { t: n } = p();
247
- return /* @__PURE__ */ r(
248
- "p",
249
- {
250
- ref: s,
251
- "data-component": "iris-chat-disclaimer",
252
- className: m(
253
- "shrink-0 px-4 py-3 text-center text-xs font-medium leading-4 text-content-caption",
254
- e
255
- ),
256
- ...i,
257
- children: a ?? /* @__PURE__ */ I(z, { children: [
258
- n("irisChat.disclaimer"),
259
- " ",
260
- t ? /* @__PURE__ */ r("a", { href: t, className: "underline hover:text-brand", children: n("irisChat.learnMore") }) : /* @__PURE__ */ I(y, { children: [
261
- /* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
262
- "button",
263
- {
264
- type: "button",
265
- className: "underline hover:text-brand",
266
- "data-testid": "iris-chat-learn-more",
267
- children: n("irisChat.learnMore")
268
- }
269
- ) }),
270
- /* @__PURE__ */ I(
271
- M,
272
- {
273
- align: "center",
274
- side: "top",
275
- className: "iris-menu-surface w-[320px] rounded-xl p-4",
276
- children: [
277
- /* @__PURE__ */ r(O, { className: "mb-2", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
278
- /* @__PURE__ */ r(N, { size: 18 }),
279
- /* @__PURE__ */ r(D, { className: "text-sm font-semibold", children: n("irisChat.disclaimerTitle") })
280
- ] }) }),
281
- /* @__PURE__ */ r(F, { className: "text-sm leading-5 text-content-secondary", children: n("irisChat.disclaimerBody") })
282
- ]
283
- }
284
- )
285
- ] })
286
- ] })
287
- }
288
- );
289
- }
290
- ), Ne = c(
291
- "IrisChatTrigger",
292
- ({ asChild: e = !1, onClick: t, size: a = "md", shape: i = "default", className: s, ...n }, l) => {
293
- const d = E(), o = (h) => {
294
- d?.setOpen(!0), t?.(h);
295
- };
296
- return e ? /* @__PURE__ */ r(
297
- P,
298
- {
299
- ref: l,
300
- "data-component": "iris-chat-trigger",
301
- className: m("pointer-events-auto", s),
302
- onClick: o,
303
- ...n
304
- }
305
- ) : /* @__PURE__ */ r(
306
- V,
307
- {
308
- ref: l,
309
- size: a,
310
- shape: i,
311
- "data-component": "iris-chat-trigger",
312
- className: m("pointer-events-auto", s),
313
- onClick: o,
314
- ...n
315
- }
316
- );
317
- }
318
- );
25
+ v.displayName = "IrisChat";
319
26
  export {
320
- U as IrisChat,
321
- xe as IrisChatBody,
322
- be as IrisChatDisclaimer,
323
- He as IrisChatFooter,
324
- de as IrisChatHeader,
325
- fe as IrisChatHeaderBackButton,
326
- ve as IrisChatHeaderCloseButton,
327
- he as IrisChatHeaderLeading,
328
- Ce as IrisChatHeaderMenuButton,
329
- ge as IrisChatHeaderMinimizeButton,
330
- Ie as IrisChatHeaderNewChatButton,
331
- ue as IrisChatHeaderTitle,
332
- pe as IrisChatHeaderTrailing,
333
- v as IrisChatIconButton,
334
- me as IrisChatPanel,
335
- Ne as IrisChatTrigger
27
+ v as IrisChat
336
28
  };
@@ -1,4 +1,6 @@
1
+ import { IrisChatFrame } from './iris-chat-frame';
1
2
  import type * as React from "react";
3
+ export type { IrisChatFrame };
2
4
  export type IrisChatPlacement = "dock-right" | "float" | "minimized" | "composer";
3
5
  export type IrisChatRole = "user" | "assistant";
4
6
  export type IrisChatModelOption = {
@@ -54,6 +56,12 @@ export type IrisChatProps = {
54
56
  placement?: IrisChatPlacement;
55
57
  defaultPlacement?: IrisChatPlacement;
56
58
  onPlacementChange?: (placement: IrisChatPlacement) => void;
59
+ frame?: IrisChatFrame;
60
+ defaultFrame?: IrisChatFrame;
61
+ onFrameChange?: (frame: IrisChatFrame) => void;
62
+ /** When set, close animates the floating panel into this element before unmounting. */
63
+ closeAnimationTarget?: () => HTMLElement | null;
64
+ onCloseAnimationComplete?: () => void;
57
65
  className?: string;
58
66
  children?: React.ReactNode;
59
67
  };
@@ -92,8 +100,15 @@ export type IrisChatComposerProps = {
92
100
  onAttachClick?: () => void;
93
101
  onAttach?: (files: File[]) => void;
94
102
  onMicClick?: () => void;
103
+ speechRecognitionLocale?: string;
104
+ onSpeechNotice?: (notice: IrisChatSpeechNotice) => void;
95
105
  className?: string;
96
106
  };
107
+ export type IrisChatSpeechNoticeKind = "unsupported" | "permission" | "error";
108
+ export type IrisChatSpeechNotice = {
109
+ kind: IrisChatSpeechNoticeKind;
110
+ messageKey: "speechUnsupported" | "speechPermissionDenied" | "speechNoSpeech" | "speechNetwork" | "speechError" | "speechEmpty";
111
+ };
97
112
  export type IrisChatGreetingProps = {
98
113
  name?: string;
99
114
  greeting?: React.ReactNode;
@@ -112,6 +127,8 @@ export type IrisChatDayProps = React.HTMLAttributes<HTMLDivElement>;
112
127
  export type IrisChatMessageProps = React.HTMLAttributes<HTMLElement> & {
113
128
  role: IrisChatRole;
114
129
  time?: string;
130
+ /** Revolving reply ring. Leave unset for the thinking row. */
131
+ framed?: boolean;
115
132
  };
116
133
  export type IrisChatFeedbackReason = "notAsked" | "tone" | "incorrect" | "other";
117
134
  export type IrisChatFeedback = {
@@ -122,11 +139,14 @@ export type IrisChatActionsProps = React.HTMLAttributes<HTMLDivElement> & {
122
139
  liked?: boolean;
123
140
  disliked?: boolean;
124
141
  copyText?: string;
142
+ speakText?: string;
143
+ speechLocale?: string;
125
144
  onLike?: () => void;
126
145
  onDislike?: () => void;
127
146
  onCopy?: () => void;
128
147
  onRetry?: () => void;
129
148
  onSpeak?: () => void;
149
+ onSpeechNotice?: (notice: IrisChatSpeechNotice) => void;
130
150
  onFeedback?: (feedback: IrisChatFeedback) => void;
131
151
  };
132
152
  export type IrisChatFollowUpProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
@@ -1,14 +1,15 @@
1
1
  export declare const irisChatRootVariants: (props?: ({
2
- placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
2
+ placement?: "float" | "dock-right" | "minimized" | "composer" | null | undefined;
3
3
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
4
4
  export declare const irisChatPanelVariants: (props?: ({
5
- placement?: "dock-right" | "float" | "minimized" | "composer" | null | undefined;
5
+ placement?: "float" | "dock-right" | "minimized" | "composer" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export declare const irisChatHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
8
8
  export declare const irisChatComposerVariants: (props?: ({
9
- layout?: "inline" | "stacked" | null | undefined;
9
+ layout?: "inline" | "stacked" | "stackedCompact" | null | undefined;
10
10
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
11
  export declare const irisChatMessageVariants: (props?: ({
12
12
  role?: "user" | "assistant" | null | undefined;
13
+ framed?: boolean | null | undefined;
13
14
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
15
  export declare const irisChatMarkdownVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -1,10 +1,10 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const l = e("relative min-h-0 min-w-0", {
2
+ const a = e("relative min-h-0 min-w-0", {
3
3
  variants: {
4
4
  placement: {
5
5
  "dock-right": "flex h-full w-full justify-end",
6
- float: "pointer-events-none flex h-full w-full items-center justify-center",
7
- minimized: "pointer-events-none flex h-full w-full items-center justify-center",
6
+ float: "pointer-events-none fixed inset-0",
7
+ minimized: "pointer-events-none fixed inset-0",
8
8
  composer: "flex w-full justify-center"
9
9
  }
10
10
  },
@@ -17,8 +17,8 @@ const l = e("relative min-h-0 min-w-0", {
17
17
  variants: {
18
18
  placement: {
19
19
  "dock-right": "h-full w-[640px] max-w-full border-s border-stroke-subtle shadow-elevation-card",
20
- float: "h-full max-h-[1028px] w-[640px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
21
- minimized: "h-[490px] max-h-full w-[410px] max-w-full rounded-3xl border border-stroke-subtle shadow-elevation-card",
20
+ float: "hidden",
21
+ minimized: "hidden",
22
22
  composer: "w-[624px] max-w-full bg-transparent"
23
23
  }
24
24
  },
@@ -26,31 +26,55 @@ const l = e("relative min-h-0 min-w-0", {
26
26
  placement: "dock-right"
27
27
  }
28
28
  }
29
- ), r = e(
29
+ ), n = e(
30
30
  "flex h-[50px] shrink-0 items-center justify-between px-4"
31
- ), a = e(
32
- "flex w-full min-w-0 max-w-full flex-col border border-stroke-subtle bg-canvas-elevated",
31
+ ), l = e(
32
+ [
33
+ "flex w-full min-w-0 max-w-full flex-col border border-stroke-subtle bg-canvas-elevated",
34
+ "data-[listening]:!h-auto data-[listening]:min-h-[11.5rem] data-[listening]:justify-center",
35
+ "data-[listening]:overflow-visible data-[listening]:py-3"
36
+ ].join(" "),
33
37
  {
34
38
  variants: {
35
39
  layout: {
36
40
  stacked: "min-h-[123px] justify-between rounded-3xl p-4",
37
- inline: "h-14 justify-center rounded-3xl px-3"
41
+ stackedCompact: "min-h-0 justify-between gap-2 rounded-2xl p-2.5",
42
+ inline: "h-14 justify-center rounded-2xl px-2.5"
38
43
  }
39
44
  },
40
45
  defaultVariants: {
41
46
  layout: "stacked"
42
47
  }
43
48
  }
44
- ), n = e("text-sm leading-5", {
49
+ ), i = e("text-sm leading-5", {
45
50
  variants: {
46
51
  role: {
47
- user: "ms-auto max-w-[min(90%,100%)] break-words rounded-2xl px-4 py-3 text-content",
48
- assistant: "flex w-full min-w-0 flex-col gap-3 break-words text-content"
52
+ user: "ms-auto flex max-w-[min(90%,100%)] flex-col break-words rounded-2xl px-4 py-3 text-content",
53
+ assistant: [
54
+ "grid w-full min-w-0 max-w-full overflow-x-hidden grid-cols-[minmax(0,1fr)_auto] items-end gap-x-2 gap-y-4 break-words text-content",
55
+ "[&>*]:min-w-0 [&>*]:max-w-full",
56
+ "[&>*:not(time):not([data-slot=reply-actions])]:col-span-2",
57
+ "[&>[data-slot=reply-actions]]:col-span-1 [&>[data-slot=reply-actions]]:col-start-1"
58
+ ].join(" ")
59
+ },
60
+ framed: {
61
+ true: "",
62
+ false: ""
49
63
  }
50
- }
51
- }), s = e(
64
+ },
65
+ defaultVariants: {
66
+ framed: !1
67
+ },
68
+ compoundVariants: [
69
+ {
70
+ role: "assistant",
71
+ framed: !0,
72
+ class: "iris-reply-frame rounded-xl px-3 py-2"
73
+ }
74
+ ]
75
+ }), r = e(
52
76
  [
53
- "iris-chat-markdown flex flex-col gap-3 text-sm font-medium leading-5 text-content",
77
+ "iris-chat-markdown flex w-full min-w-0 max-w-full flex-col gap-3 text-sm font-medium leading-5 text-content",
54
78
  "[&_a]:text-brand [&_a]:underline",
55
79
  "[&_blockquote]:m-0 [&_blockquote]:rounded-xl [&_blockquote]:border-0 [&_blockquote]:bg-secondary [&_blockquote]:px-3 [&_blockquote]:py-2 [&_blockquote]:text-content-secondary",
56
80
  "[&_code]:rounded-md [&_code]:bg-secondary [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-xs [&_code]:font-medium",
@@ -62,17 +86,16 @@ const l = e("relative min-h-0 min-w-0", {
62
86
  "[&_p]:m-0",
63
87
  "[&_pre]:m-0 [&_pre]:overflow-x-auto [&_pre]:rounded-xl [&_pre]:bg-secondary [&_pre]:p-3 [&_pre]:text-xs [&_pre]:leading-5",
64
88
  "[&_pre_code]:bg-transparent [&_pre_code]:p-0",
65
- "[&_table]:w-full [&_table]:border-separate [&_table]:border-spacing-0 [&_table]:overflow-hidden [&_table]:rounded-xl",
66
- "[&_td]:border-t [&_td]:border-stroke-subtle [&_td]:px-3 [&_td]:py-2",
67
- "[&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
89
+ "[&_td]:whitespace-nowrap [&_td]:border-t [&_td]:border-stroke-subtle [&_td]:px-3 [&_td]:py-2",
90
+ "[&_th]:whitespace-nowrap [&_th]:bg-secondary [&_th]:px-3 [&_th]:py-2 [&_th]:text-start [&_th]:text-xs [&_th]:font-semibold",
68
91
  "[&_ul]:m-0 [&_ul]:flex [&_ul]:list-disc [&_ul]:flex-col [&_ul]:gap-1.5 [&_ul]:ps-4"
69
92
  ].join(" ")
70
93
  );
71
94
  export {
72
- a as irisChatComposerVariants,
73
- r as irisChatHeaderVariants,
74
- s as irisChatMarkdownVariants,
75
- n as irisChatMessageVariants,
95
+ l as irisChatComposerVariants,
96
+ n as irisChatHeaderVariants,
97
+ r as irisChatMarkdownVariants,
98
+ i as irisChatMessageVariants,
76
99
  o as irisChatPanelVariants,
77
- l as irisChatRootVariants
100
+ a as irisChatRootVariants
78
101
  };
@@ -0,0 +1,29 @@
1
+ import { IrisChatFrame } from './iris-chat-frame';
2
+ import { IrisChatSnapPreset } from './iris-chat-snap-presets';
3
+ import { IrisChatPlacement, IrisChatProps } from './iris-chat.types';
4
+ export interface IrisChatRootController {
5
+ resolvedOpen: boolean;
6
+ resolvedPlacement: IrisChatPlacement;
7
+ isClosing: boolean;
8
+ isOpening: boolean;
9
+ providerValue: {
10
+ open: boolean;
11
+ setOpen: (open: boolean) => void;
12
+ requestClose: () => void;
13
+ isClosing: boolean;
14
+ isOpening: boolean;
15
+ registerPanelNode: (node: HTMLDivElement | null) => void;
16
+ placement: IrisChatPlacement;
17
+ setPlacement: (placement: IrisChatPlacement) => void;
18
+ frame: IrisChatFrame;
19
+ setFrame: (frame: IrisChatFrame) => void;
20
+ commitFrame: (frame: IrisChatFrame) => void;
21
+ resetFrame: () => void;
22
+ applyCompactFrame: () => void;
23
+ expandFromCompactFrame: () => void;
24
+ applySnapPreset: (preset: IrisChatSnapPreset) => void;
25
+ toggleWindowSize: () => void;
26
+ isWindowPlacement: boolean;
27
+ };
28
+ }
29
+ export declare function useIrisChatRoot(props: IrisChatProps): IrisChatRootController;