impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22

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 (314) hide show
  1. package/README.md +1 -1
  2. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  3. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  4. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  5. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  6. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
  7. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  8. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
  11. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
  12. package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
  13. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  14. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  15. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
  16. package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +53 -49
  17. package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
  18. package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
  19. package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
  20. package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
  21. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
  22. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
  23. package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
  24. package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
  25. package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
  26. package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
  27. package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
  28. package/dist/components/data/ag-grid-react/index.d.ts +6 -1
  29. package/dist/components/data/ag-grid-react/index.js +316 -248
  30. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
  31. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
  32. package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
  33. package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
  34. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
  35. package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
  36. package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
  37. package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
  38. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  39. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  40. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
  41. package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
  42. package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
  43. package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
  44. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
  45. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
  46. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
  47. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
  48. package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
  49. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
  50. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
  51. package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
  52. package/dist/components/data/data-table/column-picker-authority.js +9 -9
  53. package/dist/components/data/data-table/data-table-column-apply.js +30 -29
  54. package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
  55. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  56. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  57. package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
  58. package/dist/components/data/data-table/data-table-overlay.js +18 -0
  59. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
  60. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
  61. package/dist/components/data/data-table/data-table.js +35 -34
  62. package/dist/components/data/data-table/data-table.types.d.ts +13 -2
  63. package/dist/components/data/data-table/index.d.ts +10 -0
  64. package/dist/components/data/data-table/index.js +64 -52
  65. package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
  66. package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
  67. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
  68. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
  69. package/dist/components/data/expandable-list-item/index.d.ts +2 -0
  70. package/dist/components/data/expandable-list-item/index.js +20 -16
  71. package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
  72. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
  73. package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
  74. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
  75. package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
  76. package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
  77. package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
  78. package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
  79. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
  80. package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
  81. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
  82. package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
  83. package/dist/components/data/scenario-comparison/index.d.ts +3 -0
  84. package/dist/components/data/scenario-comparison/index.js +6 -0
  85. package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
  86. package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
  87. package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
  88. package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
  89. package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
  90. package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
  91. package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
  92. package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
  93. package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
  94. package/dist/components/data-display/badge/index.d.ts +2 -0
  95. package/dist/components/data-display/badge/index.js +4 -2
  96. package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
  97. package/dist/components/data-display/badge/trophy-icon.js +28 -0
  98. package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
  99. package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
  100. package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
  101. package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
  102. package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
  103. package/dist/components/data-display/chart/chart.js +171 -143
  104. package/dist/components/data-display/chart/chart.types.d.ts +17 -0
  105. package/dist/components/data-display/chart/chart.utils.js +122 -92
  106. package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
  107. package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
  108. package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
  109. package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
  110. package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
  111. package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
  112. package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
  113. package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
  114. package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
  115. package/dist/components/data-display/heatmap-grid/index.js +14 -0
  116. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
  117. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
  118. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
  119. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
  120. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
  121. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
  122. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
  123. package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
  124. package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
  125. package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
  126. package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
  127. package/dist/components/data-display/stereo-scatter/index.js +10 -0
  128. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
  129. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
  130. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
  131. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
  132. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
  133. package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
  134. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
  135. package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
  136. package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
  137. package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
  138. package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
  139. package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
  140. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
  141. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
  142. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
  143. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
  144. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
  145. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
  146. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
  147. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
  148. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
  149. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
  150. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
  151. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
  152. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
  153. package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
  154. package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
  155. package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
  156. package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
  157. package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
  158. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
  159. package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
  160. package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
  161. package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
  162. package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
  163. package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
  164. package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
  165. package/dist/components/feedback/find-bar/find-bar.js +266 -0
  166. package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
  167. package/dist/components/feedback/find-bar/index.d.ts +4 -0
  168. package/dist/components/feedback/find-bar/index.js +11 -0
  169. package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
  170. package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
  171. package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
  172. package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
  173. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  174. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  175. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
  176. package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
  177. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
  178. package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
  179. package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
  180. package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
  181. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
  182. package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
  183. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
  184. package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
  185. package/dist/components/flows/iris-chat/index.d.ts +3 -1
  186. package/dist/components/flows/iris-chat/index.js +58 -53
  187. package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
  188. package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
  189. package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
  190. package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
  191. package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
  192. package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
  193. package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
  194. package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
  195. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
  196. package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
  197. package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
  198. package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
  199. package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
  200. package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
  201. package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
  202. package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
  203. package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
  204. package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
  205. package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
  206. package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
  207. package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
  208. package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
  209. package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
  210. package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
  211. package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
  212. package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
  213. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
  214. package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
  215. package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
  216. package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
  217. package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
  218. package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
  219. package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
  220. package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
  221. package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
  222. package/dist/components/flows/iris-chat/iris-chat.js +22 -330
  223. package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
  224. package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
  225. package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
  226. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
  227. package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
  228. package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
  229. package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
  230. package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
  231. package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
  232. package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
  233. package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
  234. package/dist/components/forms/choice-card/choice-card.js +470 -381
  235. package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
  236. package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
  237. package/dist/components/forms/input/input.js +5 -5
  238. package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
  239. package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
  240. package/dist/components/forms/select/components/Submenu.js +3 -2
  241. package/dist/components/layout/header/header.js +1 -0
  242. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
  243. package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
  244. package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
  245. package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
  246. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
  247. package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
  248. package/dist/components/primitives/button/button.variants.js +1 -1
  249. package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
  250. package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
  251. package/dist/components/primitives/iris/iris.d.ts +3 -1
  252. package/dist/components/primitives/iris/iris.js +85 -91
  253. package/dist/components/primitives/iris/iris.types.d.ts +9 -0
  254. package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
  255. package/dist/components/primitives/stepper/internals/step-model.js +5 -5
  256. package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
  257. package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
  258. package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
  259. package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
  260. package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
  261. package/dist/components/primitives/stepper/stepper.js +99 -97
  262. package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
  263. package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
  264. package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
  265. package/dist/components/primitives/tabs/tabs.js +178 -112
  266. package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
  267. package/dist/form-react/Fields/SelectField.js +66 -57
  268. package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
  269. package/dist/form-react/Fields/VirtualizedListField.js +223 -0
  270. package/dist/form-react/fields.d.ts +1 -0
  271. package/dist/form-react/fields.js +28 -26
  272. package/dist/form-react/index.d.ts +1 -1
  273. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
  274. package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
  275. package/dist/form-react/types/fields.types.d.ts +48 -1
  276. package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
  277. package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
  278. package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
  279. package/dist/i18n/defaultMessages.d.ts +75 -0
  280. package/dist/i18n/defaultMessages.js +112 -42
  281. package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
  282. package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
  283. package/dist/i18n/index.d.ts +1 -1
  284. package/dist/i18n/locales/de.js +71 -1
  285. package/dist/i18n/locales/es.js +71 -1
  286. package/dist/i18n/locales/hi.js +71 -1
  287. package/dist/i18n/locales/kn.js +71 -1
  288. package/dist/impact-nova-components.css +372 -14
  289. package/dist/impact-nova-tokens.scss +4 -0
  290. package/dist/impact-nova.css +1 -1
  291. package/dist/index.d.ts +1 -0
  292. package/dist/index.js +627 -601
  293. package/dist/lib/alphabetical-sort.d.ts +3 -0
  294. package/dist/lib/alphabetical-sort.js +13 -0
  295. package/dist/lib/guidance/engine/guidance-engine.js +26 -27
  296. package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
  297. package/dist/lib/guidance/engine/step-navigation.js +16 -9
  298. package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
  299. package/dist/lib/virtualized/index.d.ts +2 -0
  300. package/dist/lib/virtualized/index.js +35 -31
  301. package/dist/lib/virtualized/list-index.d.ts +5 -0
  302. package/dist/lib/virtualized/list-index.js +13 -0
  303. package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
  304. package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
  305. package/dist/lib/virtualized/types.d.ts +4 -2
  306. package/dist/lib/virtualized/useRowState.js +60 -56
  307. package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
  308. package/dist/llms/rules/ag-grid.js +1 -1
  309. package/dist/llms/rules/installation.js +1 -1
  310. package/dist/llms/rules/real-world-patterns.js +1 -1
  311. package/dist/llms/rules/requirements.js +1 -1
  312. package/dist/tailwind.config.js +3 -0
  313. package/dist/theme/tailwind-colors.js +3 -0
  314. package/package.json +27 -4
@@ -1,297 +1,354 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useRef as A, useState as F, useEffect as le } from "react";
3
- import { ChevronRight as ce } from "impact-nova-icons";
4
- import { ButtonIconTooltip as h } from "../../feedback/tooltip/button-icon-tooltip.js";
1
+ import { jsxs as s, jsx as t, Fragment as ze } from "react/jsx-runtime";
2
+ import { useRef as C, useState as g, useEffect as j } from "react";
3
+ import { ChevronRight as De } from "impact-nova-icons";
4
+ import { ButtonIconTooltip as d } from "../../feedback/tooltip/button-icon-tooltip.js";
5
5
  import { Button as p } from "../../primitives/button/button.js";
6
- import { DropdownMenu as P, DropdownMenuTrigger as _, DropdownMenuContent as W, DropdownMenuItem as V, DropdownMenuRadioGroup as ue, DropdownMenuRadioItem as de } from "../../feedback/dropdown-menu/dropdown-menu.js";
7
- import { useImpactNovaI18n as he } from "../../../i18n/use-impact-nova-i18n.js";
8
- import { useControllableState as G } from "@radix-ui/react-use-controllable-state";
9
- import { createComponent as pe } from "../../../lib/primitives/create-component.js";
10
- import { cn as me } from "../../../lib/utils.js";
11
- import { useIrisChatOptional as fe } from "./iris-chat-context.js";
12
- import { IrisChatAddIcon as q, IrisChatAttachIcon as ge, IrisChatMicIcon as Ce, IrisChatStopIcon as be, IrisChatSendIcon as ve } from "./iris-chat-icons.js";
13
- import { IrisChatAttachment as ye } from "./iris-chat-thread.js";
14
- import { irisChatComposerVariants as we } from "./iris-chat.variants.js";
15
- const xe = [
6
+ import { DropdownMenu as Z, DropdownMenuTrigger as ee, DropdownMenuContent as te, DropdownMenuItem as re, DropdownMenuRadioGroup as Re, DropdownMenuRadioItem as Ne } from "../../feedback/dropdown-menu/dropdown-menu.js";
7
+ import { useImpactNovaI18n as ke } from "../../../i18n/use-impact-nova-i18n.js";
8
+ import { useControllableState as ae } from "@radix-ui/react-use-controllable-state";
9
+ import { createComponent as Le } from "../../../lib/primitives/create-component.js";
10
+ import { cn as ne } from "../../../lib/utils.js";
11
+ import { useIrisChatOptional as Ee } from "./iris-chat-context.js";
12
+ import { readIrisChatComposerLayout as Se } from "./iris-chat-window-chrome.js";
13
+ import { IrisChatComposerExpandIcon as Fe, IrisChatAddIcon as ie, IrisChatAttachIcon as Pe, IrisChatMicIcon as Me, IrisChatStopIcon as Oe, IrisChatSendIcon as Ue } from "./iris-chat-icons.js";
14
+ import { syncIrisChatComposerTextareaHeight as je, readIrisChatComposerExpandOffered as Ke } from "./sync-iris-chat-composer-textarea.js";
15
+ import { IrisChatAttachment as Te } from "./iris-chat-thread.js";
16
+ import { IrisChatComposerVoiceCapture as Ae } from "./IrisChatComposerVoiceCapture.js";
17
+ import { startComposerSpeechRecognition as $e } from "./iris-chat-speech.js";
18
+ import { irisChatComposerVariants as Be } from "./iris-chat.variants.js";
19
+ const _e = [
16
20
  { label: "Auto", value: "auto" },
17
21
  { label: "Fast", value: "fast" }
18
- ], $e = pe(
22
+ ], ct = Le(
19
23
  "IrisChatComposer",
20
24
  ({
21
- className: a,
22
- value: s,
23
- defaultValue: H = "",
24
- onValueChange: J,
25
- pending: f = !1,
26
- placeholder: g,
27
- model: Q,
28
- defaultModel: X = "auto",
29
- onModelChange: Y,
30
- models: U = xe,
31
- onSend: Z,
32
- onStop: j,
33
- onAddClick: O,
34
- onAttachClick: E,
35
- onAttach: ee,
36
- onMicClick: K
37
- }, te) => {
38
- const { t: n } = he(), $ = fe(), C = $?.placement === "minimized" || $?.placement === "composer" ? "inline" : "stacked", [ie, x] = G({
39
- prop: s,
40
- defaultProp: H,
41
- onChange: J
42
- }), [D, ne] = G({
43
- prop: Q,
44
- defaultProp: X,
45
- onChange: Y
46
- }), T = A(null), k = A(null), B = A({}), [b, m] = F(!1), [v, z] = F([]), [c, I] = F({});
47
- B.current = c;
48
- const u = ie ?? "", R = u.trim().length > 0 || v.length > 0, ae = (e) => {
49
- const i = T.current;
50
- i && (i.accept = e, i.value = "", i.click());
51
- }, L = (e) => {
25
+ className: n,
26
+ value: o,
27
+ defaultValue: se = "",
28
+ onValueChange: oe,
29
+ pending: x = !1,
30
+ placeholder: le,
31
+ model: ce,
32
+ defaultModel: de = "auto",
33
+ onModelChange: pe,
34
+ models: K = _e,
35
+ onSend: ue,
36
+ onStop: T,
37
+ onAddClick: A,
38
+ onAttachClick: $,
39
+ onAttach: he,
40
+ onMicClick: D,
41
+ speechRecognitionLocale: me,
42
+ onSpeechNotice: B
43
+ }, fe) => {
44
+ const { t: r } = ke(), y = Ee(), R = y ? Se({
45
+ isWindowPlacement: y.isWindowPlacement,
46
+ placement: y.placement,
47
+ frame: y.frame
48
+ }) : "stacked", [Ce, _] = ae({
49
+ prop: o,
50
+ defaultProp: se,
51
+ onChange: oe
52
+ }), [N, ge] = ae({
53
+ prop: ce,
54
+ defaultProp: de,
55
+ onChange: pe
56
+ }), W = C(null), k = C(null), u = C(null), h = C(!1), V = C({}), [w, L] = g(!1), [G, H] = g(
57
+ null
58
+ ), [b, E] = g([]), [m, S] = g({}), [l, q] = g(!1), [J, be] = g(!1);
59
+ V.current = m;
60
+ const i = Ce ?? "", Q = C(i);
61
+ Q.current = i;
62
+ const F = i.trim().length > 0 || b.length > 0, ve = (e) => {
63
+ if ((e.kind === "permission" || e.messageKey === "speechNetwork" || e.messageKey === "speechError") && (h.current = !1, L(!1), u.current?.abort(), u.current = null), B) {
64
+ B(e);
65
+ return;
66
+ }
67
+ H(e);
68
+ }, xe = (e) => {
69
+ const a = W.current;
70
+ a && (a.accept = e, a.value = "", a.click());
71
+ }, P = (e) => {
52
72
  if (!e?.length)
53
73
  return;
54
- const i = Array.from(e);
55
- ee?.(i), z((r) => [...r, ...i]), I((r) => {
56
- const o = {};
57
- for (const d of i)
58
- d.type.startsWith("image/") && (o[w(d)] = URL.createObjectURL(d));
59
- return { ...r, ...o };
74
+ const a = Array.from(e);
75
+ he?.(a), E((c) => [...c, ...a]), S((c) => {
76
+ const v = {};
77
+ for (const f of a)
78
+ f.type.startsWith("image/") && (v[z(f)] = URL.createObjectURL(f));
79
+ return { ...c, ...v };
60
80
  });
61
81
  }, M = (e) => {
62
- if (E) {
63
- E();
82
+ if ($) {
83
+ $();
64
84
  return;
65
85
  }
66
- ae(e);
67
- }, re = () => {
68
- if (K) {
69
- K();
86
+ xe(e);
87
+ }, O = () => {
88
+ h.current = !1, u.current?.stop(), u.current = null, L(!1);
89
+ }, ye = () => {
90
+ if (D) {
91
+ D();
70
92
  return;
71
93
  }
72
- if (b) {
73
- k.current?.stop(), m(!1);
94
+ if (w) {
95
+ O();
74
96
  return;
75
97
  }
76
- const e = ke();
77
- if (!e)
78
- return;
79
- const i = new e();
80
- i.continuous = !1, i.interimResults = !1, i.onresult = (r) => {
81
- const o = r.results[0]?.[0]?.transcript?.trim();
82
- o && x(u ? `${u} ${o}` : o), m(!1);
83
- }, i.onerror = () => m(!1), i.onend = () => m(!1), k.current = i, i.start(), m(!0);
98
+ H(null), h.current = !0;
99
+ const e = $e({
100
+ locale: me ?? "",
101
+ readBaseText: () => Q.current,
102
+ shouldContinueListening: () => h.current,
103
+ onDraftChange: _,
104
+ onListeningChange: L,
105
+ onNotice: ve
106
+ });
107
+ e || (h.current = !1), u.current = e;
84
108
  };
85
- le(
109
+ j(
86
110
  () => () => {
87
- k.current?.stop(), Object.values(B.current).forEach((e) => URL.revokeObjectURL(e));
111
+ h.current = !1, u.current?.stop(), Object.values(V.current).forEach((e) => URL.revokeObjectURL(e));
88
112
  },
89
113
  []
90
- );
91
- const se = () => {
92
- Object.values(c).forEach((e) => URL.revokeObjectURL(e)), I({}), z([]);
93
- }, N = () => {
94
- !R || f || (Z?.(u.trim(), v), se());
114
+ ), j(() => {
115
+ i.trim() || q(!1);
116
+ }, [i]), j(() => {
117
+ je(k.current, l), be(
118
+ Ke(
119
+ k.current,
120
+ l,
121
+ i.split(`
122
+ `).length
123
+ )
124
+ );
125
+ }, [i, l, R, b.length]);
126
+ const X = le ?? r("irisChat.askAnything"), we = () => {
127
+ Object.values(m).forEach((e) => URL.revokeObjectURL(e)), S({}), E([]);
128
+ }, Y = () => {
129
+ !F || x || (ue?.(i.trim(), b), we());
95
130
  };
96
- return /* @__PURE__ */ l(
131
+ return /* @__PURE__ */ s(
97
132
  "form",
98
133
  {
99
- ref: te,
134
+ ref: fe,
100
135
  "data-component": "iris-chat-composer",
101
- "data-layout": C,
102
- "data-pending": f ? "" : void 0,
103
- className: me(
104
- we({ layout: C }),
105
- R && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
106
- a
136
+ "data-layout": R,
137
+ "data-pending": x ? "" : void 0,
138
+ "data-listening": w ? "" : void 0,
139
+ className: ne(
140
+ Be({ layout: R }),
141
+ "relative z-0",
142
+ F && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
143
+ n
107
144
  ),
108
145
  onDragOver: (e) => {
109
146
  e.dataTransfer.types.includes("Files") && e.preventDefault();
110
147
  },
111
148
  onDrop: (e) => {
112
- e.dataTransfer.files.length && (e.preventDefault(), L(e.dataTransfer.files));
149
+ e.dataTransfer.files.length && (e.preventDefault(), P(e.dataTransfer.files));
113
150
  },
114
151
  onPaste: (e) => {
115
- const i = De(e.clipboardData);
116
- i.length && (e.preventDefault(), L(i));
152
+ const a = We(e.clipboardData);
153
+ a.length && (e.preventDefault(), P(a));
117
154
  },
118
155
  onKeyDown: (e) => {
119
- e.key === "Escape" && f && (e.preventDefault(), j?.());
156
+ if (e.key === "Escape") {
157
+ if (w) {
158
+ e.preventDefault(), O();
159
+ return;
160
+ }
161
+ x && (e.preventDefault(), T?.());
162
+ }
120
163
  },
121
164
  onSubmit: (e) => {
122
- e.preventDefault(), N();
165
+ e.preventDefault(), Y();
123
166
  },
124
167
  children: [
125
- v.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", "data-testid": "iris-chat-composer-attachments", children: v.map((e, i) => {
126
- const r = w(e, i);
127
- return /* @__PURE__ */ t(
128
- ye,
129
- {
130
- name: e.name,
131
- kind: e.type.startsWith("image/") ? "image" : "file",
132
- sizeLabel: e.size < 1024 ? `${e.size} B` : `${Math.round(e.size / 1024)} KB`,
133
- previewUrl: c[w(e)] ?? c[r],
134
- onRemove: () => {
135
- const o = w(e), d = c[o] ?? c[r];
136
- d && URL.revokeObjectURL(d), I((S) => {
137
- const y = { ...S };
138
- return delete y[o], delete y[r], y;
139
- }), z((S) => S.filter((y, oe) => oe !== i));
140
- }
141
- },
142
- r
143
- );
144
- }) }) : null,
145
- C === "stacked" ? /* @__PURE__ */ t(
146
- "textarea",
147
- {
148
- id: "iris-chat-composer-input",
149
- "data-testid": "iris-chat-composer-input",
150
- rows: 2,
151
- value: u,
152
- placeholder: g ?? n("irisChat.askAnything"),
153
- "aria-label": g ?? n("irisChat.askAnything"),
154
- className: "w-full resize-none bg-transparent text-sm font-medium leading-5 text-content outline-none placeholder:text-content-empty",
155
- onChange: (e) => x(e.target.value),
156
- onKeyDown: (e) => {
157
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), N());
158
- }
159
- }
160
- ) : null,
161
- /* @__PURE__ */ l("div", { className: "flex min-w-0 w-full items-center justify-between gap-1 [&_button[data-size=icon]]:size-8 [&_button[data-size=icon]_svg]:size-4", children: [
162
- /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center", children: [
163
- /* @__PURE__ */ t(
164
- "input",
168
+ w && !D ? /* @__PURE__ */ t(Ae, { transcript: i, onStop: O }) : /* @__PURE__ */ s(ze, { children: [
169
+ b.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", "data-testid": "iris-chat-composer-attachments", children: b.map((e, a) => {
170
+ const c = z(e, a);
171
+ return /* @__PURE__ */ t(
172
+ Te,
165
173
  {
166
- ref: T,
167
- type: "file",
168
- hidden: !0,
169
- multiple: !0,
170
- "data-testid": "iris-chat-attach-input",
171
- onChange: (e) => L(e.target.files)
172
- }
173
- ),
174
- O ? /* @__PURE__ */ t(h, { label: n("irisChat.add"), children: /* @__PURE__ */ t(
175
- p,
176
- {
177
- type: "button",
178
- variant: "ghost",
179
- size: "icon",
180
- "aria-label": n("irisChat.add"),
181
- onClick: O,
182
- children: /* @__PURE__ */ t(q, {})
183
- }
184
- ) }) : /* @__PURE__ */ l(P, { children: [
185
- /* @__PURE__ */ t(h, { label: n("irisChat.add"), children: /* @__PURE__ */ t(_, { asChild: !0, children: /* @__PURE__ */ t(p, { type: "button", variant: "ghost", size: "icon", "aria-label": n("irisChat.add"), children: /* @__PURE__ */ t(q, {}) }) }) }),
186
- /* @__PURE__ */ l(W, { align: "start", children: [
187
- /* @__PURE__ */ t(V, { onSelect: () => M("*/*"), children: n("irisChat.attachFile") }),
188
- /* @__PURE__ */ t(V, { onSelect: () => M("image/*"), children: n("irisChat.attachImage") })
189
- ] })
190
- ] }),
191
- /* @__PURE__ */ t(h, { label: n("irisChat.attach"), children: /* @__PURE__ */ t(
192
- p,
174
+ name: e.name,
175
+ kind: e.type.startsWith("image/") ? "image" : "file",
176
+ sizeLabel: e.size < 1024 ? `${e.size} B` : `${Math.round(e.size / 1024)} KB`,
177
+ previewUrl: m[z(e)] ?? m[c],
178
+ onRemove: () => {
179
+ const v = z(e), f = m[v] ?? m[c];
180
+ f && URL.revokeObjectURL(f), S((U) => {
181
+ const I = { ...U };
182
+ return delete I[v], delete I[c], I;
183
+ }), E((U) => U.filter((I, Ie) => Ie !== a));
184
+ }
185
+ },
186
+ c
187
+ );
188
+ }) }) : null,
189
+ /* @__PURE__ */ s("div", { className: "relative min-w-0 w-full", children: [
190
+ (J || l) && /* @__PURE__ */ t(
191
+ d,
193
192
  {
194
- type: "button",
195
- variant: "ghost",
196
- size: "icon",
197
- "aria-label": n("irisChat.attach"),
198
- onClick: () => M("*/*"),
199
- children: /* @__PURE__ */ t(ge, {})
193
+ label: r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
194
+ children: /* @__PURE__ */ t(
195
+ p,
196
+ {
197
+ type: "button",
198
+ variant: "ghost",
199
+ size: "icon",
200
+ className: "absolute end-0 top-0 z-10 size-7 rounded-lg text-content-secondary",
201
+ "aria-label": r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
202
+ "data-testid": "iris-chat-composer-expand",
203
+ onClick: () => q((e) => !e),
204
+ children: /* @__PURE__ */ t(
205
+ Fe,
206
+ {
207
+ size: 14,
208
+ className: l ? "rotate-180" : void 0
209
+ }
210
+ )
211
+ }
212
+ )
200
213
  }
201
- ) }),
202
- C === "inline" ? /* @__PURE__ */ t(
203
- "input",
214
+ ),
215
+ /* @__PURE__ */ t(
216
+ "textarea",
204
217
  {
218
+ ref: k,
205
219
  id: "iris-chat-composer-input",
206
220
  "data-testid": "iris-chat-composer-input",
207
- value: u,
208
- placeholder: g ?? n("irisChat.askAnything"),
209
- "aria-label": g ?? n("irisChat.askAnything"),
210
- className: "ms-1 h-8 min-w-0 flex-1 overflow-hidden bg-transparent py-0 text-sm font-medium leading-8 text-content outline-none placeholder:text-content-empty",
211
- onChange: (e) => x(e.target.value),
221
+ rows: 1,
222
+ value: i,
223
+ placeholder: X,
224
+ "aria-label": X,
225
+ className: ne(
226
+ "min-h-8 w-full resize-none bg-transparent py-0 text-sm font-medium leading-5 text-content outline-none placeholder:text-content-empty",
227
+ J || l ? "pe-9" : void 0
228
+ ),
229
+ onChange: (e) => _(e.target.value),
212
230
  onKeyDown: (e) => {
213
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), N());
231
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y());
214
232
  }
215
233
  }
216
- ) : null
234
+ )
217
235
  ] }),
218
- /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center gap-0.5", children: [
219
- /* @__PURE__ */ l(P, { children: [
220
- /* @__PURE__ */ t(_, { asChild: !0, children: /* @__PURE__ */ l(
221
- "button",
236
+ /* @__PURE__ */ s("div", { className: "flex min-w-0 w-full items-center justify-between gap-1 [&_button[data-size=icon]]:size-8 [&_button[data-size=icon]_svg]:size-4", children: [
237
+ /* @__PURE__ */ s("div", { className: "flex min-w-0 shrink-0 items-center", children: [
238
+ /* @__PURE__ */ t(
239
+ "input",
240
+ {
241
+ ref: W,
242
+ type: "file",
243
+ hidden: !0,
244
+ multiple: !0,
245
+ "data-testid": "iris-chat-attach-input",
246
+ onChange: (e) => P(e.target.files)
247
+ }
248
+ ),
249
+ A ? /* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(
250
+ p,
222
251
  {
223
252
  type: "button",
224
- "data-testid": "iris-chat-model",
225
- className: "flex h-8 max-w-24 shrink-0 items-center gap-0.5 truncate rounded-lg bg-secondary px-2 text-sm font-medium capitalize leading-none text-content",
226
- "aria-label": n("irisChat.model"),
227
- children: [
228
- U.find((e) => e.value === D)?.label ?? D,
229
- /* @__PURE__ */ t(ce, { size: 16, className: "rotate-90" })
230
- ]
253
+ variant: "ghost",
254
+ size: "icon",
255
+ "aria-label": r("irisChat.add"),
256
+ onClick: A,
257
+ children: /* @__PURE__ */ t(ie, {})
231
258
  }
232
- ) }),
233
- /* @__PURE__ */ t(W, { align: "end", children: /* @__PURE__ */ t(
234
- ue,
259
+ ) }) : /* @__PURE__ */ s(Z, { children: [
260
+ /* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ t(p, { type: "button", variant: "ghost", size: "icon", "aria-label": r("irisChat.add"), children: /* @__PURE__ */ t(ie, {}) }) }) }),
261
+ /* @__PURE__ */ s(te, { align: "start", children: [
262
+ /* @__PURE__ */ t(re, { onSelect: () => M("*/*"), children: r("irisChat.attachFile") }),
263
+ /* @__PURE__ */ t(re, { onSelect: () => M("image/*"), children: r("irisChat.attachImage") })
264
+ ] })
265
+ ] }),
266
+ /* @__PURE__ */ t(d, { label: r("irisChat.attach"), children: /* @__PURE__ */ t(
267
+ p,
235
268
  {
236
- value: D,
237
- onValueChange: ne,
238
- children: U.map((e) => /* @__PURE__ */ t(de, { value: e.value, children: e.label }, e.value))
269
+ type: "button",
270
+ variant: "ghost",
271
+ size: "icon",
272
+ "aria-label": r("irisChat.attach"),
273
+ onClick: () => M("*/*"),
274
+ children: /* @__PURE__ */ t(Pe, {})
239
275
  }
240
276
  ) })
241
277
  ] }),
242
- /* @__PURE__ */ t(h, { label: n(b ? "irisChat.listening" : "irisChat.mic"), children: /* @__PURE__ */ t(
243
- p,
244
- {
245
- type: "button",
246
- variant: "ghost",
247
- size: "icon",
248
- "aria-label": n(b ? "irisChat.listening" : "irisChat.mic"),
249
- "aria-pressed": b,
250
- onClick: re,
251
- children: /* @__PURE__ */ t(Ce, {})
252
- }
253
- ) }),
254
- f ? /* @__PURE__ */ t(h, { label: n("irisChat.stop"), children: /* @__PURE__ */ t(
255
- p,
256
- {
257
- type: "button",
258
- variant: "default",
259
- size: "icon",
260
- "aria-label": n("irisChat.stop"),
261
- "data-testid": "iris-chat-stop",
262
- className: "rounded-full",
263
- onClick: j,
264
- children: /* @__PURE__ */ t(be, { size: 16 })
265
- }
266
- ) }) : R ? /* @__PURE__ */ t(h, { label: n("irisChat.send"), children: /* @__PURE__ */ t(
267
- p,
268
- {
269
- type: "submit",
270
- variant: "default",
271
- size: "icon",
272
- "aria-label": n("irisChat.send"),
273
- "data-testid": "iris-chat-send",
274
- className: "rounded-full",
275
- children: /* @__PURE__ */ t(ve, { size: 16 })
276
- }
277
- ) }) : null
278
+ /* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-0.5", children: [
279
+ /* @__PURE__ */ s(Z, { children: [
280
+ /* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ s(
281
+ "button",
282
+ {
283
+ type: "button",
284
+ "data-testid": "iris-chat-model",
285
+ className: "flex h-8 max-w-24 shrink-0 items-center gap-0.5 truncate rounded-lg bg-secondary px-2 text-sm font-medium capitalize leading-none text-content",
286
+ "aria-label": r("irisChat.model"),
287
+ children: [
288
+ K.find((e) => e.value === N)?.label ?? N,
289
+ /* @__PURE__ */ t(De, { size: 16, className: "rotate-90" })
290
+ ]
291
+ }
292
+ ) }),
293
+ /* @__PURE__ */ t(te, { align: "end", children: /* @__PURE__ */ t(
294
+ Re,
295
+ {
296
+ value: N,
297
+ onValueChange: ge,
298
+ children: K.map((e) => /* @__PURE__ */ t(Ne, { value: e.value, children: e.label }, e.value))
299
+ }
300
+ ) })
301
+ ] }),
302
+ /* @__PURE__ */ t(d, { label: r("irisChat.mic"), children: /* @__PURE__ */ t(
303
+ p,
304
+ {
305
+ type: "button",
306
+ variant: "ghost",
307
+ size: "icon",
308
+ "aria-label": r("irisChat.mic"),
309
+ onClick: ye,
310
+ children: /* @__PURE__ */ t(Me, {})
311
+ }
312
+ ) }),
313
+ x ? /* @__PURE__ */ t(d, { label: r("irisChat.stop"), children: /* @__PURE__ */ t(
314
+ p,
315
+ {
316
+ type: "button",
317
+ variant: "default",
318
+ size: "icon",
319
+ "aria-label": r("irisChat.stop"),
320
+ "data-testid": "iris-chat-stop",
321
+ className: "rounded-full",
322
+ onClick: T,
323
+ children: /* @__PURE__ */ t(Oe, { size: 16 })
324
+ }
325
+ ) }) : F ? /* @__PURE__ */ t(d, { label: r("irisChat.send"), children: /* @__PURE__ */ t(
326
+ p,
327
+ {
328
+ type: "submit",
329
+ variant: "default",
330
+ size: "icon",
331
+ "aria-label": r("irisChat.send"),
332
+ "data-testid": "iris-chat-send",
333
+ className: "rounded-full",
334
+ children: /* @__PURE__ */ t(Ue, { size: 16 })
335
+ }
336
+ ) }) : null
337
+ ] })
278
338
  ] })
279
- ] })
339
+ ] }),
340
+ G ? /* @__PURE__ */ t("p", { className: "px-1 text-xs text-destructive", role: "alert", children: r(`irisChat.${G.messageKey}`) }) : null
280
341
  ]
281
342
  }
282
343
  );
283
344
  }
284
345
  );
285
- function w(a, s = 0) {
286
- return `${a.name}:${a.size}:${a.lastModified}:${s}`;
287
- }
288
- function De(a) {
289
- return a ? a.files.length ? Array.from(a.files) : Array.from(a.items).filter((s) => s.kind === "file").map((s) => s.getAsFile()).filter((s) => !!s) : [];
346
+ function z(n, o = 0) {
347
+ return `${n.name}:${n.size}:${n.lastModified}:${o}`;
290
348
  }
291
- function ke() {
292
- const a = window;
293
- return a.SpeechRecognition ?? a.webkitSpeechRecognition;
349
+ function We(n) {
350
+ return n ? n.files.length ? Array.from(n.files) : Array.from(n.items).filter((o) => o.kind === "file").map((o) => o.getAsFile()).filter((o) => !!o) : [];
294
351
  }
295
352
  export {
296
- $e as IrisChatComposer
353
+ ct as IrisChatComposer
297
354
  };
@@ -1,10 +1,25 @@
1
+ import { IrisChatFrame } from './iris-chat-frame';
2
+ import { IrisChatSnapPreset } from './iris-chat-snap-presets';
1
3
  import { IrisChatPlacement } from './iris-chat.types';
2
4
  import * as React from "react";
3
5
  export type IrisChatContextValue = {
4
6
  open: boolean;
5
7
  setOpen: (open: boolean) => void;
8
+ requestClose: () => void;
9
+ isClosing: boolean;
10
+ registerPanelNode: (node: HTMLDivElement | null) => void;
11
+ isOpening: boolean;
6
12
  placement: IrisChatPlacement;
7
13
  setPlacement: (placement: IrisChatPlacement) => void;
14
+ frame: IrisChatFrame;
15
+ setFrame: (frame: IrisChatFrame) => void;
16
+ commitFrame: (frame: IrisChatFrame) => void;
17
+ resetFrame: () => void;
18
+ applyCompactFrame: () => void;
19
+ expandFromCompactFrame: () => void;
20
+ applySnapPreset: (preset: IrisChatSnapPreset) => void;
21
+ toggleWindowSize: () => void;
22
+ isWindowPlacement: boolean;
8
23
  };
9
24
  export declare function IrisChatProvider({ value, children, }: {
10
25
  value: IrisChatContextValue;
@@ -12,3 +27,4 @@ export declare function IrisChatProvider({ value, children, }: {
12
27
  }): import("react/jsx-runtime").JSX.Element;
13
28
  export declare function useIrisChat(): IrisChatContextValue;
14
29
  export declare function useIrisChatOptional(): IrisChatContextValue | null;
30
+ export declare function readIsIrisChatWindowPlacement(placement: IrisChatPlacement): boolean;