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,85 +1,94 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { useRef as S, useState as y } from "react";
3
- import { FunnelShow as I, ThreeDots as L, Pin as M, Pencil as A, Bin as D, ChevronRight as T } from "impact-nova-icons";
4
- import { DropdownMenu as g, DropdownMenuTrigger as v, DropdownMenuContent as b, DropdownMenuItem as f } from "../../feedback/dropdown-menu/dropdown-menu.js";
5
- import { ButtonIconTooltip as N } from "../../feedback/tooltip/button-icon-tooltip.js";
6
- import { Button as x } from "../../primitives/button/button.js";
7
- import { Accordion as j, AccordionItem as k, AccordionTrigger as R, AccordionContent as E } from "../../primitives/accordion/accordion.js";
8
- import { useImpactNovaI18n as w } from "../../../i18n/use-impact-nova-i18n.js";
9
- import { useVirtualizedList as B } from "../../../lib/virtualized/useVirtualizedList.js";
10
- import { createComponent as O } from "../../../lib/primitives/create-component.js";
11
- import { cn as C } from "../../../lib/utils.js";
12
- import { IrisChatAttachIcon as $ } from "./iris-chat-icons.js";
13
- const z = ["type", "status", "lastActivity"], ee = O(
2
+ import { useRef as L, useState as C } from "react";
3
+ import { FunnelShow as z, ThreeDots as M, Pin as T, Pencil as A, Bin as D, ChevronRight as j } from "impact-nova-icons";
4
+ import { DropdownMenu as v, DropdownMenuTrigger as b, DropdownMenuContent as N, DropdownMenuItem as p } from "../../feedback/dropdown-menu/dropdown-menu.js";
5
+ import { ButtonIconTooltip as w } from "../../feedback/tooltip/button-icon-tooltip.js";
6
+ import { Button as g } from "../../primitives/button/button.js";
7
+ import { Accordion as k, AccordionItem as E, AccordionTrigger as R, AccordionContent as B } from "../../primitives/accordion/accordion.js";
8
+ import { useImpactNovaI18n as I } from "../../../i18n/use-impact-nova-i18n.js";
9
+ import { useVirtualizedList as O } from "../../../lib/virtualized/useVirtualizedList.js";
10
+ import { createComponent as $ } from "../../../lib/primitives/create-component.js";
11
+ import { cn as x } from "../../../lib/utils.js";
12
+ import { IrisChatAttachIcon as P } from "./iris-chat-icons.js";
13
+ const S = ["type", "status", "lastActivity"], te = $(
14
14
  "IrisChatMenu",
15
- ({ className: t, children: m, ...l }, c) => /* @__PURE__ */ e(
15
+ ({ className: t, children: d, ...l }, o) => /* @__PURE__ */ e(
16
16
  "div",
17
17
  {
18
- ref: c,
18
+ ref: o,
19
19
  "data-component": "iris-chat-menu",
20
- className: C("flex flex-col gap-4 py-4", t),
20
+ className: x("flex flex-col gap-4 py-4", t),
21
21
  ...l,
22
- children: /* @__PURE__ */ e(j, { type: "multiple", defaultValue: ["recent", "artifacts"], className: "flex flex-col gap-4", children: m })
22
+ children: /* @__PURE__ */ e(k, { type: "multiple", defaultValue: ["recent", "artifacts"], className: "flex flex-col gap-4", children: d })
23
23
  }
24
24
  )
25
- ), P = ({
25
+ ), V = ({
26
26
  value: t,
27
- title: m,
27
+ title: d,
28
28
  onFilterSelect: l,
29
- onViewMore: c,
30
- viewMoreLabel: a,
29
+ onViewMore: o,
30
+ viewMoreLabel: r,
31
31
  className: h,
32
- children: p
32
+ children: u
33
33
  }) => {
34
- const { t: i } = w(), d = {
34
+ const { t: i } = I(), m = {
35
35
  type: i("irisChat.filterType"),
36
36
  status: i("irisChat.filterStatus"),
37
37
  lastActivity: i("irisChat.filterLastActivity")
38
38
  };
39
39
  return /* @__PURE__ */ s(
40
- k,
40
+ E,
41
41
  {
42
42
  value: t,
43
43
  "data-component": "iris-chat-menu-section",
44
- className: C("rounded-none border-0 bg-transparent shadow-none", h),
44
+ className: x("rounded-none border-0 bg-transparent shadow-none", h),
45
45
  children: [
46
46
  /* @__PURE__ */ s("div", { className: "flex h-10 items-center justify-between gap-2", children: [
47
47
  /* @__PURE__ */ s(R, { variant: "plain", headingLevel: 3, className: "flex min-w-0 flex-1 items-center gap-2 py-0", children: [
48
48
  /* @__PURE__ */ e("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-full bg-secondary text-content-secondary", children: /* @__PURE__ */ e(
49
- T,
49
+ j,
50
50
  {
51
51
  size: 14,
52
52
  className: "rotate-90 transition-transform group-data-[state=open]:-rotate-90"
53
53
  }
54
54
  ) }),
55
- /* @__PURE__ */ e("span", { className: "text-sm font-medium text-content", children: m })
55
+ /* @__PURE__ */ e("span", { className: "text-sm font-medium text-content", children: d })
56
56
  ] }),
57
- /* @__PURE__ */ s(g, { children: [
58
- /* @__PURE__ */ e(N, { label: i("irisChat.filter"), children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
59
- x,
57
+ /* @__PURE__ */ s(v, { children: [
58
+ /* @__PURE__ */ e(
59
+ w,
60
60
  {
61
- type: "button",
62
- variant: "ghost",
63
- size: "iconSm",
64
- "aria-label": i("irisChat.filter"),
65
- "data-testid": `iris-chat-filter-${t}`,
66
- children: /* @__PURE__ */ e(I, { size: 16 })
61
+ label: i("irisChat.filter"),
62
+ variant: "secondary",
63
+ align: "end",
64
+ side: "top",
65
+ children: /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
66
+ g,
67
+ {
68
+ type: "button",
69
+ variant: "ghost",
70
+ size: "iconSm",
71
+ "aria-label": i("irisChat.filter"),
72
+ "data-testid": `iris-chat-filter-${t}`,
73
+ children: /* @__PURE__ */ e(z, { size: 16 })
74
+ }
75
+ ) })
67
76
  }
68
- ) }) }),
69
- /* @__PURE__ */ e(b, { align: "end", children: z.map((o) => /* @__PURE__ */ e(f, { onSelect: () => l?.(o), children: d[o] }, o)) })
77
+ ),
78
+ /* @__PURE__ */ e(N, { align: "end", children: S.map((c) => /* @__PURE__ */ e(p, { onSelect: () => l?.(c), children: m[c] }, c)) })
70
79
  ] })
71
80
  ] }),
72
- /* @__PURE__ */ s(E, { className: "px-0 pb-1 pt-1", children: [
73
- /* @__PURE__ */ e("div", { className: "flex flex-col", children: p }),
74
- c ? /* @__PURE__ */ e(
75
- x,
81
+ /* @__PURE__ */ s(B, { className: "px-0 pb-1 pt-1", children: [
82
+ /* @__PURE__ */ e("div", { className: "flex flex-col", children: u }),
83
+ o ? /* @__PURE__ */ e(
84
+ g,
76
85
  {
77
86
  type: "button",
78
87
  variant: "link",
79
88
  "data-testid": `iris-chat-view-more-${t}`,
80
89
  className: "mt-1 h-auto justify-start px-2 text-sm",
81
- onClick: c,
82
- children: a ?? i("irisChat.viewMore")
90
+ onClick: o,
91
+ children: r ?? i("irisChat.viewMore")
83
92
  }
84
93
  ) : null
85
94
  ] })
@@ -87,40 +96,44 @@ const z = ["type", "status", "lastActivity"], ee = O(
87
96
  }
88
97
  );
89
98
  };
90
- P.displayName = "IrisChatMenuSection";
91
- const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
92
- const { t: a } = w(), [h, p] = y(!1), [i, d] = y(!1), [o, u] = y(t), n = () => {
93
- const r = o.trim();
94
- if (d(!1), !r || r === t) {
95
- u(t);
99
+ V.displayName = "IrisChatMenuSection";
100
+ const F = ({ title: t, onSelect: d, onAction: l, className: o }) => {
101
+ const { t: r } = I(), [h, u] = C(!1), [i, m] = C(!1), [c, f] = C(t), a = () => {
102
+ const n = c.trim();
103
+ if (m(!1), !n || n === t) {
104
+ f(t);
96
105
  return;
97
106
  }
98
- l?.("rename", r);
107
+ l?.("rename", n);
99
108
  };
100
109
  return /* @__PURE__ */ s(
101
110
  "div",
102
111
  {
103
112
  "data-component": "iris-chat-list-item",
104
113
  "data-menu-open": h ? "" : void 0,
105
- className: C(
114
+ "data-editing": i ? "" : void 0,
115
+ className: x(
106
116
  "flex min-h-10 items-center justify-between gap-2 rounded-full px-3",
107
117
  (h || i) && "bg-secondary",
108
118
  "hover:bg-secondary",
109
- c
119
+ o
110
120
  ),
111
121
  children: [
112
122
  i ? /* @__PURE__ */ e(
113
123
  "input",
114
124
  {
115
- value: o,
125
+ value: c,
116
126
  autoFocus: !0,
117
- "aria-label": a("irisChat.rename"),
127
+ "aria-label": r("irisChat.rename"),
118
128
  "data-testid": "iris-chat-item-rename",
119
129
  className: "min-w-0 flex-1 bg-transparent text-sm text-content outline-none",
120
- onChange: (r) => u(r.target.value),
121
- onBlur: n,
122
- onKeyDown: (r) => {
123
- r.key === "Enter" && (r.preventDefault(), n()), r.key === "Escape" && (u(t), d(!1));
130
+ onChange: (n) => f(n.target.value),
131
+ onBlur: (n) => {
132
+ const y = n.relatedTarget;
133
+ y instanceof Element && (y.closest('[data-component="dropdown-menu-content"]') || y.closest('[data-testid="iris-chat-item-more"]')) || a();
134
+ },
135
+ onKeyDown: (n) => {
136
+ n.key === "Enter" && (n.preventDefault(), a()), n.key === "Escape" && (f(t), m(!1));
124
137
  }
125
138
  }
126
139
  ) : /* @__PURE__ */ e(
@@ -128,56 +141,66 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
128
141
  {
129
142
  type: "button",
130
143
  className: "min-w-0 flex-1 truncate text-start text-sm text-content",
131
- onClick: m,
144
+ onClick: d,
132
145
  children: t
133
146
  }
134
147
  ),
135
- /* @__PURE__ */ s(g, { open: h, onOpenChange: p, children: [
136
- /* @__PURE__ */ e(N, { label: a("irisChat.moreActions"), children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
137
- x,
148
+ /* @__PURE__ */ s(v, { open: h, onOpenChange: u, children: [
149
+ /* @__PURE__ */ e(
150
+ w,
138
151
  {
139
- type: "button",
140
- variant: "ghost",
141
- size: "iconSm",
142
- "aria-label": a("irisChat.moreActions"),
143
- "data-testid": "iris-chat-item-more",
144
- children: /* @__PURE__ */ e(L, { size: 16 })
152
+ label: r("irisChat.moreActions"),
153
+ variant: "secondary",
154
+ align: "end",
155
+ side: "top",
156
+ children: /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
157
+ g,
158
+ {
159
+ type: "button",
160
+ variant: "ghost",
161
+ size: "iconSm",
162
+ "aria-label": r("irisChat.moreActions"),
163
+ "data-testid": "iris-chat-item-more",
164
+ children: /* @__PURE__ */ e(M, { size: 16 })
165
+ }
166
+ ) })
145
167
  }
146
- ) }) }),
147
- /* @__PURE__ */ s(b, { align: "end", className: "w-[182px]", children: [
168
+ ),
169
+ /* @__PURE__ */ s(N, { align: "end", className: "w-[182px]", children: [
148
170
  /* @__PURE__ */ e(
149
- f,
171
+ p,
150
172
  {
151
- icon: /* @__PURE__ */ e(M, { size: 16 }),
173
+ icon: /* @__PURE__ */ e(T, { size: 16 }),
152
174
  onSelect: () => l?.("pin"),
153
- children: a("irisChat.pin")
175
+ children: r("irisChat.pin")
154
176
  }
155
177
  ),
156
178
  /* @__PURE__ */ e(
157
- f,
179
+ p,
158
180
  {
159
181
  icon: /* @__PURE__ */ e(A, { size: 16 }),
182
+ "data-testid": "iris-chat-item-rename-action",
160
183
  onSelect: () => {
161
- u(t), window.setTimeout(() => d(!0), 0);
184
+ f(t), m(!0), u(!1);
162
185
  },
163
- children: a("irisChat.rename")
186
+ children: r("irisChat.rename")
164
187
  }
165
188
  ),
166
189
  /* @__PURE__ */ e(
167
- f,
190
+ p,
168
191
  {
169
- icon: /* @__PURE__ */ e($, {}),
192
+ icon: /* @__PURE__ */ e(P, {}),
170
193
  onSelect: () => l?.("archive"),
171
- children: a("irisChat.archive")
194
+ children: r("irisChat.archive")
172
195
  }
173
196
  ),
174
197
  /* @__PURE__ */ e(
175
- f,
198
+ p,
176
199
  {
177
200
  icon: /* @__PURE__ */ e(D, { size: 16 }),
178
201
  className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
179
202
  onSelect: () => l?.("delete"),
180
- children: a("irisChat.delete")
203
+ children: r("irisChat.delete")
181
204
  }
182
205
  )
183
206
  ] })
@@ -186,24 +209,24 @@ const V = ({ title: t, onSelect: m, onAction: l, className: c }) => {
186
209
  }
187
210
  );
188
211
  };
189
- V.displayName = "IrisChatListItem";
190
- function F({
212
+ F.displayName = "IrisChatListItem";
213
+ function K({
191
214
  items: t,
192
- getItemId: m,
215
+ getItemId: d,
193
216
  renderItem: l,
194
- title: c,
195
- onFilterSelect: a,
217
+ title: o,
218
+ onFilterSelect: r,
196
219
  estimateSize: h = 32,
197
- className: p
220
+ className: u
198
221
  }) {
199
- const { t: i } = w(), d = S(null), o = B({
222
+ const { t: i } = I(), m = L(null), c = O({
200
223
  rowCount: t.length,
201
- getRowData: (n) => t[n],
202
- getRowId: (n) => m(t[n]),
224
+ getRowData: (a) => t[a],
225
+ getRowId: (a) => d(t[a]),
203
226
  estimateSize: () => h,
204
- scrollElementRef: d,
227
+ scrollElementRef: m,
205
228
  hasMore: !1
206
- }), u = {
229
+ }), f = {
207
230
  type: i("irisChat.filterType"),
208
231
  status: i("irisChat.filterStatus"),
209
232
  lastActivity: i("irisChat.filterLastActivity")
@@ -212,48 +235,57 @@ function F({
212
235
  "div",
213
236
  {
214
237
  "data-component": "iris-chat-list",
215
- className: C("flex min-h-0 flex-1 flex-col", p),
238
+ className: x("flex min-h-0 flex-1 flex-col", u),
216
239
  children: [
217
- c || a ? /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2 py-3", children: [
218
- c ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: c }) : /* @__PURE__ */ e("span", {}),
219
- a ? /* @__PURE__ */ s(g, { children: [
220
- /* @__PURE__ */ e(N, { label: i("irisChat.filter"), children: /* @__PURE__ */ e(v, { asChild: !0, children: /* @__PURE__ */ e(
221
- x,
240
+ o || r ? /* @__PURE__ */ s("div", { className: "flex items-center justify-between gap-2 py-3", children: [
241
+ o ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: o }) : /* @__PURE__ */ e("span", {}),
242
+ r ? /* @__PURE__ */ s(v, { children: [
243
+ /* @__PURE__ */ e(
244
+ w,
222
245
  {
223
- type: "button",
224
- variant: "ghost",
225
- size: "iconSm",
226
- "aria-label": i("irisChat.filter"),
227
- "data-testid": "iris-chat-filter-list",
228
- children: /* @__PURE__ */ e(I, { size: 16 })
246
+ label: i("irisChat.filter"),
247
+ variant: "secondary",
248
+ align: "end",
249
+ side: "top",
250
+ children: /* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(
251
+ g,
252
+ {
253
+ type: "button",
254
+ variant: "ghost",
255
+ size: "iconSm",
256
+ "aria-label": i("irisChat.filter"),
257
+ "data-testid": "iris-chat-filter-list",
258
+ children: /* @__PURE__ */ e(z, { size: 16 })
259
+ }
260
+ ) })
229
261
  }
230
- ) }) }),
231
- /* @__PURE__ */ e(b, { align: "end", children: z.map((n) => /* @__PURE__ */ e(f, { onSelect: () => a(n), children: u[n] }, n)) })
262
+ ),
263
+ /* @__PURE__ */ e(N, { align: "end", children: S.map((a) => /* @__PURE__ */ e(p, { onSelect: () => r(a), children: f[a] }, a)) })
232
264
  ] }) : null
233
265
  ] }) : null,
234
- /* @__PURE__ */ e("div", { ref: d, className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ e("div", { style: { height: o.virtualizer.getTotalSize(), position: "relative" }, children: o.virtualizer.getVirtualItems().map((n) => {
235
- const r = t[n.index];
266
+ /* @__PURE__ */ e("div", { ref: m, className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ e("div", { style: { height: c.virtualizer.getTotalSize(), position: "relative" }, children: c.virtualizer.getVirtualItems().map((a) => {
267
+ const n = t[a.index];
236
268
  return /* @__PURE__ */ e(
237
269
  "div",
238
270
  {
239
271
  className: "absolute inset-x-0",
240
272
  style: {
241
- height: n.size,
242
- transform: `translateY(${n.start}px)`
273
+ height: a.size,
274
+ transform: `translateY(${a.start}px)`
243
275
  },
244
- children: l(r)
276
+ children: l(n)
245
277
  },
246
- m(r)
278
+ d(n)
247
279
  );
248
280
  }) }) })
249
281
  ]
250
282
  }
251
283
  );
252
284
  }
253
- F.displayName = "IrisChatList";
285
+ K.displayName = "IrisChatList";
254
286
  export {
255
- F as IrisChatList,
256
- V as IrisChatListItem,
257
- ee as IrisChatMenu,
258
- P as IrisChatMenuSection
287
+ K as IrisChatList,
288
+ F as IrisChatListItem,
289
+ te as IrisChatMenu,
290
+ V as IrisChatMenuSection
259
291
  };
@@ -0,0 +1,4 @@
1
+ import { IrisChatFrame, IrisChatViewport } from './iris-chat-frame';
2
+ export type IrisChatSnapPreset = "leftHalf" | "rightHalf" | "topHalf" | "bottomHalf" | "fill";
3
+ export declare function createIrisChatSnapFrame(preset: IrisChatSnapPreset, viewport?: IrisChatViewport): IrisChatFrame;
4
+ export declare function readIrisChatFrameIsLarge(frame: IrisChatFrame, viewport: IrisChatViewport, largeThresholdRatio?: number): boolean;
@@ -0,0 +1,63 @@
1
+ import { readIrisChatMaxFrameSize as s, clampIrisChatFrame as d, IRIS_CHAT_FRAME_PADDING_PX as g } from "./iris-chat-frame.js";
2
+ function l(r, n = { width: 1280, height: 800 }) {
3
+ const t = g, a = s(n), h = a.width, i = a.height, o = Math.floor(h / 2), c = Math.floor(i / 2);
4
+ let e;
5
+ switch (r) {
6
+ case "leftHalf":
7
+ e = {
8
+ x: t,
9
+ y: t,
10
+ width: o,
11
+ height: i
12
+ };
13
+ break;
14
+ case "rightHalf":
15
+ e = {
16
+ x: t + o,
17
+ y: t,
18
+ width: h - o,
19
+ height: i
20
+ };
21
+ break;
22
+ case "topHalf":
23
+ e = {
24
+ x: t,
25
+ y: t,
26
+ width: h,
27
+ height: c
28
+ };
29
+ break;
30
+ case "bottomHalf":
31
+ e = {
32
+ x: t,
33
+ y: t + c,
34
+ width: h,
35
+ height: i - c
36
+ };
37
+ break;
38
+ case "fill":
39
+ e = {
40
+ x: t,
41
+ y: t,
42
+ width: h,
43
+ height: i
44
+ };
45
+ break;
46
+ default:
47
+ e = {
48
+ x: t,
49
+ y: t,
50
+ width: h,
51
+ height: i
52
+ };
53
+ }
54
+ return d(e, n);
55
+ }
56
+ function w(r, n, t = 0.8) {
57
+ const a = s(n), h = r.width / a.width, i = r.height / a.height;
58
+ return h >= t && i >= t;
59
+ }
60
+ export {
61
+ l as createIrisChatSnapFrame,
62
+ w as readIrisChatFrameIsLarge
63
+ };
@@ -0,0 +1,52 @@
1
+ export type IrisChatSpeechNoticeKind = "unsupported" | "permission" | "error";
2
+ export type IrisChatSpeechNotice = {
3
+ kind: IrisChatSpeechNoticeKind;
4
+ messageKey: "speechUnsupported" | "speechPermissionDenied" | "speechNoSpeech" | "speechNetwork" | "speechError" | "speechEmpty";
5
+ };
6
+ export type SpeechRecognitionHandle = {
7
+ continuous: boolean;
8
+ interimResults: boolean;
9
+ lang: string;
10
+ start: () => void;
11
+ stop: () => void;
12
+ abort: () => void;
13
+ onresult: ((event: {
14
+ resultIndex: number;
15
+ results: ArrayLike<ArrayLike<{
16
+ transcript?: string;
17
+ } & {
18
+ isFinal?: boolean;
19
+ }>>;
20
+ }) => void) | null;
21
+ onerror: ((event: {
22
+ error?: string;
23
+ }) => void) | null;
24
+ onend: (() => void) | null;
25
+ onstart: (() => void) | null;
26
+ };
27
+ export declare function readSpeechRecognitionConstructor(): (new () => SpeechRecognitionHandle) | undefined;
28
+ export declare function readSpeechRecognitionLocale(locale?: string): string;
29
+ export declare function readSpeechRecognitionErrorNotice(errorCode: string): IrisChatSpeechNotice;
30
+ export declare function readSpeechSessionTranscript(results: ArrayLike<ArrayLike<{
31
+ transcript?: string;
32
+ }>>): string;
33
+ export declare function startComposerSpeechRecognition(input: {
34
+ locale: string;
35
+ readBaseText: () => string;
36
+ shouldContinueListening: () => boolean;
37
+ onDraftChange: (nextText: string) => void;
38
+ onListeningChange: (listening: boolean) => void;
39
+ onNotice?: (notice: IrisChatSpeechNotice) => void;
40
+ }): SpeechRecognitionHandle | null;
41
+ export declare function readBasicMarkdownSpeakableText(markdown: string): string;
42
+ export declare function readIrisChatActionsSpeakText(input: {
43
+ speakText?: string;
44
+ copyText?: string;
45
+ }): string;
46
+ export declare function cancelPlainTextSpeech(): void;
47
+ export declare function speakPlainText(input: {
48
+ text: string;
49
+ locale?: string;
50
+ onSpeakingChange: (speaking: boolean) => void;
51
+ onNotice?: (notice: IrisChatSpeechNotice) => void;
52
+ }): void;
@@ -0,0 +1,121 @@
1
+ function u() {
2
+ if (typeof window > "u")
3
+ return;
4
+ const e = window;
5
+ return e.SpeechRecognition ?? e.webkitSpeechRecognition;
6
+ }
7
+ function a(e) {
8
+ let n = "en-US";
9
+ return e && e.trim().length > 0 ? n = e.trim() : typeof document < "u" && document.documentElement.lang && (n = document.documentElement.lang.trim()), n === "en" ? "en-US" : n;
10
+ }
11
+ function f(e) {
12
+ return e === "not-allowed" || e === "service-not-allowed" ? { kind: "permission", messageKey: "speechPermissionDenied" } : e === "no-speech" ? { kind: "error", messageKey: "speechNoSpeech" } : e === "network" ? { kind: "error", messageKey: "speechNetwork" } : { kind: "error", messageKey: "speechError" };
13
+ }
14
+ function h(e, n) {
15
+ const t = e.trimEnd(), s = n.trim();
16
+ return s ? t ? `${t} ${s}` : s : t;
17
+ }
18
+ function g(e) {
19
+ let n = "";
20
+ for (let t = 0; t < e.length; t += 1)
21
+ n += e[t]?.[0]?.transcript ?? "";
22
+ return n;
23
+ }
24
+ function x(e) {
25
+ const n = u();
26
+ if (!n)
27
+ return e.onNotice?.({ kind: "unsupported", messageKey: "speechUnsupported" }), null;
28
+ const t = new n();
29
+ t.continuous = !0, t.interimResults = !0, t.lang = a(e.locale);
30
+ const s = { current: e.readBaseText() };
31
+ t.onresult = (r) => {
32
+ const o = g(r.results), i = h(s.current, o);
33
+ e.onDraftChange(i);
34
+ const c = r.results.length - 1;
35
+ r.results[c]?.[0]?.isFinal && (s.current = i);
36
+ }, t.onerror = (r) => {
37
+ const o = f(r.error ?? "unknown");
38
+ e.onNotice?.(o);
39
+ }, t.onend = () => {
40
+ if (e.shouldContinueListening()) {
41
+ try {
42
+ t.start();
43
+ } catch {
44
+ e.onListeningChange(!1);
45
+ }
46
+ return;
47
+ }
48
+ e.onListeningChange(!1);
49
+ }, t.onstart = () => {
50
+ e.onListeningChange(!0);
51
+ };
52
+ try {
53
+ t.start();
54
+ } catch {
55
+ return e.onNotice?.({ kind: "error", messageKey: "speechError" }), e.onListeningChange(!1), null;
56
+ }
57
+ return t;
58
+ }
59
+ function d(e) {
60
+ let n = e;
61
+ return n = n.replace(/```[\s\S]*?```/g, " "), n = n.replace(/`([^`]+)`/g, "$1"), n = n.replace(/!\[([^\]]*)\]\([^)]+\)/g, "$1"), n = n.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1"), n = n.replace(/^#{1,6}\s+/gm, ""), n = n.replace(/[*_~>#-]+/g, " "), n = n.replace(/\s+/g, " ").trim(), n;
62
+ }
63
+ function T(e) {
64
+ const n = e.speakText ?? e.copyText ?? "";
65
+ return d(n);
66
+ }
67
+ let l = !1;
68
+ function p() {
69
+ typeof window > "u" || typeof window.speechSynthesis > "u" || (window.speechSynthesis.getVoices(), !l && (l = !0, window.speechSynthesis.onvoiceschanged = () => {
70
+ window.speechSynthesis.getVoices();
71
+ }));
72
+ }
73
+ function w(e, n, t) {
74
+ const s = e.name.toLowerCase();
75
+ let r = 0;
76
+ return e.lang === n ? r += 40 : e.lang.startsWith(t) && (r += 25), s.includes("google") && (r += 30), (s.includes("natural") || s.includes("neural") || s.includes("premium")) && (r += 35), (s.includes("samantha") || s.includes("karen") || s.includes("daniel") || s.includes("moira") || s.includes("zira")) && (r += 28), e.localService === !1 && (r += 20), e.default && (r += 5), (s.includes("compact") || s.includes("fred") || s.includes("bad news")) && (r -= 25), r;
77
+ }
78
+ function m(e) {
79
+ const n = window.speechSynthesis.getVoices();
80
+ if (n.length === 0)
81
+ return;
82
+ const t = a(e), s = t.split("-")[0] ?? t;
83
+ let r, o = Number.NEGATIVE_INFINITY;
84
+ for (const i of n) {
85
+ const c = w(i, t, s);
86
+ c > o && (o = c, r = i);
87
+ }
88
+ return r;
89
+ }
90
+ function S() {
91
+ typeof window < "u" && typeof window.speechSynthesis < "u" && window.speechSynthesis.cancel();
92
+ }
93
+ function N(e) {
94
+ if (typeof window > "u" || typeof window.speechSynthesis > "u") {
95
+ e.onNotice?.({ kind: "unsupported", messageKey: "speechUnsupported" });
96
+ return;
97
+ }
98
+ const n = d(e.text);
99
+ if (n.length === 0) {
100
+ e.onNotice?.({ kind: "error", messageKey: "speechEmpty" });
101
+ return;
102
+ }
103
+ S(), p();
104
+ const t = new SpeechSynthesisUtterance(n), s = a(e.locale);
105
+ t.lang = s;
106
+ const r = m(e.locale ?? s);
107
+ r && (t.voice = r), t.rate = 0.93, t.pitch = 1.02, t.onend = () => e.onSpeakingChange(!1), t.onerror = () => {
108
+ e.onSpeakingChange(!1), e.onNotice?.({ kind: "error", messageKey: "speechError" });
109
+ }, e.onSpeakingChange(!0), window.speechSynthesis.paused && window.speechSynthesis.resume(), window.speechSynthesis.speak(t);
110
+ }
111
+ export {
112
+ S as cancelPlainTextSpeech,
113
+ d as readBasicMarkdownSpeakableText,
114
+ T as readIrisChatActionsSpeakText,
115
+ u as readSpeechRecognitionConstructor,
116
+ f as readSpeechRecognitionErrorNotice,
117
+ a as readSpeechRecognitionLocale,
118
+ g as readSpeechSessionTranscript,
119
+ N as speakPlainText,
120
+ x as startComposerSpeechRecognition
121
+ };