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.
- package/README.md +1 -1
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +40 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +99 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +266 -238
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +31 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +289 -231
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +46 -23
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +167 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
- package/dist/components/forms/choice-card/choice-card.js +196 -199
- package/dist/components/forms/choice-card/choice-card.variants.js +3 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +76 -84
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +92 -91
- package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +45 -0
- package/dist/i18n/defaultMessages.js +58 -14
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +44 -0
- package/dist/i18n/locales/es.js +44 -0
- package/dist/i18n/locales/hi.js +44 -0
- package/dist/i18n/locales/kn.js +44 -0
- package/dist/impact-nova-components.css +195 -8
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/package.json +8 -2
|
@@ -1,72 +1,88 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Cross as
|
|
4
|
-
import { Popover as
|
|
5
|
-
import { ButtonIconTooltip as
|
|
6
|
-
import { Alert as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { IrisAlanGradientIcon as
|
|
9
|
-
import { useImpactNovaI18n as
|
|
10
|
-
import { createComponent as
|
|
11
|
-
import { cn as
|
|
12
|
-
import { IrisChatLikeIcon as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useRef as Q, useEffect as X } from "react";
|
|
3
|
+
import { Cross as Z, ChevronRight as P } from "impact-nova-icons";
|
|
4
|
+
import { Popover as $, PopoverTrigger as ee, PopoverContent as te, PopoverHeader as ae, PopoverTitle as re, PopoverBody as ie } from "../../feedback/popover/popover.js";
|
|
5
|
+
import { ButtonIconTooltip as C } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { Alert as se, AlertIcon as ne, AlertTitle as oe, AlertDescription as le } from "../../feedback/alert/alert.js";
|
|
7
|
+
import { Button as u } from "../../primitives/button/button.js";
|
|
8
|
+
import { IrisAlanGradientIcon as T } from "../../primitives/iris/iris-alan-gradient-icon.js";
|
|
9
|
+
import { useImpactNovaI18n as N } from "../../../i18n/use-impact-nova-i18n.js";
|
|
10
|
+
import { createComponent as m } from "../../../lib/primitives/create-component.js";
|
|
11
|
+
import { cn as o } from "../../../lib/utils.js";
|
|
12
|
+
import { IrisChatLikeIcon as ce, IrisChatDislikeIcon as D, IrisChatCheckIcon as de, IrisChatCopyIcon as me, IrisChatSpeakIcon as he, IrisChatRetryIcon as pe, IrisChatAttachIcon as ue, IrisChatSuggestIcon as fe } from "./iris-chat-icons.js";
|
|
13
|
+
import { irisChatActionIconPressClassName as v, irisChatCopySuccessClassName as ge, writeIrisChatClipboardText as be, IRIS_CHAT_COPY_FEEDBACK_MS as xe } from "./iris-chat-copy-feedback.js";
|
|
14
|
+
import { readIrisChatActionsSpeakText as Ce, cancelPlainTextSpeech as Ie, speakPlainText as ke } from "./iris-chat-speech.js";
|
|
15
|
+
import { useIrisChatOptional as ve } from "./iris-chat-context.js";
|
|
16
|
+
import { readIrisChatGreetingCompact as Ne, readIrisChatGreetingShowSubtitle as we, readIrisChatGreetingIconSize as ye } from "./iris-chat-window-chrome.js";
|
|
17
|
+
import { irisChatMessageVariants as _e } from "./iris-chat.variants.js";
|
|
18
|
+
import { readIrisGreetingPeriod as ze, readIrisGreetingMark as Ae, readIrisGreetingMessageKey as Se } from "./read-iris-greeting-period.js";
|
|
19
|
+
const Je = m(
|
|
17
20
|
"IrisChatGreeting",
|
|
18
|
-
({ className:
|
|
19
|
-
const { t:
|
|
20
|
-
|
|
21
|
+
({ className: i, name: a, greeting: t, subtitle: r, children: n, mark: d }, g) => {
|
|
22
|
+
const { t: f } = N(), c = ve(), h = c != null ? Ne({
|
|
23
|
+
isWindowPlacement: c.isWindowPlacement,
|
|
24
|
+
placement: c.placement,
|
|
25
|
+
frame: c.frame
|
|
26
|
+
}) : !1, I = c != null ? we({
|
|
27
|
+
isWindowPlacement: c.isWindowPlacement,
|
|
28
|
+
frame: c.frame
|
|
29
|
+
}) : !0, _ = c != null ? ye({
|
|
30
|
+
isWindowPlacement: c.isWindowPlacement,
|
|
31
|
+
placement: c.placement,
|
|
32
|
+
frame: c.frame,
|
|
33
|
+
compact: h
|
|
34
|
+
}) : h ? 56 : 84, y = ze(), z = d ?? Ae(), A = t ?? f(Se(y)), s = h ? "text-lg font-semibold leading-6 text-content" : "text-[26px] font-semibold leading-[46.8px] text-content", b = h ? "bg-clip-text text-lg font-extrabold leading-6 text-transparent" : "bg-clip-text text-[26px] font-extrabold leading-[46.8px] text-transparent";
|
|
35
|
+
return /* @__PURE__ */ l(
|
|
21
36
|
"div",
|
|
22
37
|
{
|
|
23
|
-
ref:
|
|
38
|
+
ref: g,
|
|
24
39
|
"data-component": "iris-chat-greeting",
|
|
25
|
-
"data-compact":
|
|
26
|
-
className:
|
|
40
|
+
"data-compact": h ? "" : void 0,
|
|
41
|
+
className: o(
|
|
27
42
|
"relative flex flex-col items-center justify-center text-center",
|
|
28
|
-
|
|
29
|
-
"bg-[radial-gradient(ellipse_80%_70%_at_50%
|
|
30
|
-
|
|
43
|
+
h ? "gap-1.5 py-2" : "gap-3 py-6 pb-8",
|
|
44
|
+
"bg-[radial-gradient(ellipse_90%_55%_at_50%_8%,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_14%,transparent),transparent_68%),radial-gradient(ellipse_80%_70%_at_50%_42%,var(--color-iris-menu-surface-from),transparent_72%),radial-gradient(ellipse_85%_55%_at_50%_100%,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_18%,transparent),transparent_75%)]",
|
|
45
|
+
n ? "w-full max-w-[min(100%,28rem)] px-2" : void 0,
|
|
46
|
+
i
|
|
31
47
|
),
|
|
32
48
|
children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ e("p", { className:
|
|
49
|
+
/* @__PURE__ */ e(T, { size: _ }),
|
|
50
|
+
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-center gap-1", children: [
|
|
51
|
+
/* @__PURE__ */ e("p", { className: s, children: A }),
|
|
36
52
|
a ? /* @__PURE__ */ e(
|
|
37
53
|
"p",
|
|
38
54
|
{
|
|
39
|
-
className:
|
|
55
|
+
className: b,
|
|
40
56
|
style: {
|
|
41
57
|
backgroundImage: "linear-gradient(90deg, var(--color-header-bot-gradient-orange), var(--color-header-bot-gradient-purple))"
|
|
42
58
|
},
|
|
43
59
|
children: a
|
|
44
60
|
}
|
|
45
61
|
) : null,
|
|
46
|
-
/* @__PURE__ */ e("span", { "aria-hidden": !0, className:
|
|
62
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, className: h ? "text-base" : "text-[23px]", children: z })
|
|
47
63
|
] }),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
64
|
+
I ? /* @__PURE__ */ e(
|
|
49
65
|
"p",
|
|
50
66
|
{
|
|
51
|
-
className:
|
|
52
|
-
children:
|
|
67
|
+
className: h ? "max-w-[20rem] text-sm font-medium leading-5 text-content-caption" : "text-base font-medium leading-5 text-content-caption",
|
|
68
|
+
children: r ?? f("irisChat.greetingSubtitle")
|
|
53
69
|
}
|
|
54
|
-
),
|
|
70
|
+
) : null,
|
|
55
71
|
n
|
|
56
72
|
]
|
|
57
73
|
}
|
|
58
74
|
);
|
|
59
75
|
}
|
|
60
|
-
),
|
|
61
|
-
const { t: n } =
|
|
62
|
-
return /* @__PURE__ */
|
|
76
|
+
), Qe = m("IrisChatSuggestions", ({ className: i, children: a, ...t }, r) => {
|
|
77
|
+
const { t: n } = N();
|
|
78
|
+
return /* @__PURE__ */ l(
|
|
63
79
|
"div",
|
|
64
80
|
{
|
|
65
|
-
ref:
|
|
81
|
+
ref: r,
|
|
66
82
|
"data-component": "iris-chat-suggestions",
|
|
67
|
-
className:
|
|
83
|
+
className: o(
|
|
68
84
|
"flex flex-col gap-2 bg-[radial-gradient(ellipse_at_center,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_12%,transparent),transparent_72%)] pb-6",
|
|
69
|
-
|
|
85
|
+
i
|
|
70
86
|
),
|
|
71
87
|
...t,
|
|
72
88
|
children: [
|
|
@@ -75,79 +91,79 @@ const we = d(
|
|
|
75
91
|
]
|
|
76
92
|
}
|
|
77
93
|
);
|
|
78
|
-
}),
|
|
94
|
+
}), Xe = m(
|
|
79
95
|
"IrisChatSuggestion",
|
|
80
|
-
({ className:
|
|
96
|
+
({ className: i, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
|
|
81
97
|
"button",
|
|
82
98
|
{
|
|
83
99
|
ref: n,
|
|
84
100
|
type: t,
|
|
85
101
|
"data-component": "iris-chat-suggestion",
|
|
86
|
-
className:
|
|
102
|
+
className: o(
|
|
87
103
|
"flex h-8 items-center gap-1 rounded-md px-2 text-start text-sm font-medium leading-5 text-content-secondary hover:bg-accent",
|
|
88
|
-
|
|
104
|
+
i
|
|
89
105
|
),
|
|
90
|
-
...
|
|
106
|
+
...r,
|
|
91
107
|
children: [
|
|
92
|
-
/* @__PURE__ */ e(
|
|
108
|
+
/* @__PURE__ */ e(fe, { size: 14 }),
|
|
93
109
|
/* @__PURE__ */ e("span", { className: "truncate", children: a })
|
|
94
110
|
]
|
|
95
111
|
}
|
|
96
112
|
)
|
|
97
|
-
),
|
|
98
|
-
const { t:
|
|
99
|
-
return /* @__PURE__ */
|
|
113
|
+
), Ze = m("IrisChatWorkflows", ({ className: i, children: a, onShowMore: t, ...r }, n) => {
|
|
114
|
+
const { t: d } = N();
|
|
115
|
+
return /* @__PURE__ */ l(
|
|
100
116
|
"div",
|
|
101
117
|
{
|
|
102
118
|
ref: n,
|
|
103
119
|
"data-component": "iris-chat-workflows",
|
|
104
|
-
className:
|
|
105
|
-
...
|
|
120
|
+
className: o("flex flex-col gap-2 pb-6", i),
|
|
121
|
+
...r,
|
|
106
122
|
children: [
|
|
107
|
-
/* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children:
|
|
123
|
+
/* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: d("irisChat.suggestedWorkflows") }),
|
|
108
124
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: a }),
|
|
109
|
-
t ? /* @__PURE__ */
|
|
110
|
-
|
|
125
|
+
t ? /* @__PURE__ */ l(
|
|
126
|
+
u,
|
|
111
127
|
{
|
|
112
128
|
type: "button",
|
|
113
129
|
variant: "link",
|
|
114
130
|
className: "h-auto justify-start px-0 text-sm",
|
|
115
131
|
onClick: t,
|
|
116
132
|
children: [
|
|
117
|
-
|
|
118
|
-
/* @__PURE__ */ e(
|
|
133
|
+
d("irisChat.showMore"),
|
|
134
|
+
/* @__PURE__ */ e(P, { size: 16, className: "rotate-90" })
|
|
119
135
|
]
|
|
120
136
|
}
|
|
121
137
|
) : null
|
|
122
138
|
]
|
|
123
139
|
}
|
|
124
140
|
);
|
|
125
|
-
}),
|
|
141
|
+
}), $e = m(
|
|
126
142
|
"IrisChatWorkflow",
|
|
127
|
-
({ className:
|
|
143
|
+
({ className: i, title: a, description: t, type: r = "button", ...n }, d) => /* @__PURE__ */ l(
|
|
128
144
|
"button",
|
|
129
145
|
{
|
|
130
|
-
ref:
|
|
131
|
-
type:
|
|
146
|
+
ref: d,
|
|
147
|
+
type: r,
|
|
132
148
|
"data-component": "iris-chat-workflow",
|
|
133
|
-
className:
|
|
149
|
+
className: o(
|
|
134
150
|
"flex items-center gap-2 rounded-md py-2 text-start hover:bg-accent",
|
|
135
|
-
|
|
151
|
+
i
|
|
136
152
|
),
|
|
137
153
|
...n,
|
|
138
154
|
children: [
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ e(T, { size: 16 }),
|
|
156
|
+
/* @__PURE__ */ l("span", { className: "min-w-0 flex-1", children: [
|
|
141
157
|
/* @__PURE__ */ e("span", { className: "block truncate text-sm font-medium text-content", children: a }),
|
|
142
158
|
t ? /* @__PURE__ */ e("span", { className: "block truncate text-xs text-content-caption", children: t }) : null
|
|
143
159
|
] }),
|
|
144
|
-
/* @__PURE__ */ e(
|
|
160
|
+
/* @__PURE__ */ e(P, { size: 16, className: "text-content-secondary" })
|
|
145
161
|
]
|
|
146
162
|
}
|
|
147
163
|
)
|
|
148
|
-
),
|
|
164
|
+
), et = m(
|
|
149
165
|
"IrisChatThread",
|
|
150
|
-
({ className:
|
|
166
|
+
({ className: i, ...a }, t) => /* @__PURE__ */ e(
|
|
151
167
|
"div",
|
|
152
168
|
{
|
|
153
169
|
ref: t,
|
|
@@ -155,339 +171,381 @@ const we = d(
|
|
|
155
171
|
role: "log",
|
|
156
172
|
"aria-live": "polite",
|
|
157
173
|
"aria-relevant": "additions",
|
|
158
|
-
className:
|
|
174
|
+
className: o("flex min-w-0 w-full flex-col gap-4 py-4", i),
|
|
159
175
|
...a
|
|
160
176
|
}
|
|
161
177
|
)
|
|
162
|
-
),
|
|
178
|
+
), tt = m(
|
|
163
179
|
"IrisChatDay",
|
|
164
|
-
({ className:
|
|
180
|
+
({ className: i, children: a, ...t }, r) => /* @__PURE__ */ e(
|
|
165
181
|
"div",
|
|
166
182
|
{
|
|
167
|
-
ref:
|
|
183
|
+
ref: r,
|
|
168
184
|
"data-component": "iris-chat-day",
|
|
169
|
-
className:
|
|
185
|
+
className: o("flex justify-center", i),
|
|
170
186
|
...t,
|
|
171
187
|
children: /* @__PURE__ */ e("span", { className: "rounded-full bg-secondary px-3 py-1 text-xs font-medium text-content-secondary", children: a })
|
|
172
188
|
}
|
|
173
189
|
)
|
|
174
|
-
),
|
|
190
|
+
), at = m(
|
|
175
191
|
"IrisChatMessage",
|
|
176
|
-
({ className:
|
|
192
|
+
({ className: i, role: a, time: t, framed: r, children: n, ...d }, g) => /* @__PURE__ */ e(
|
|
177
193
|
"article",
|
|
178
194
|
{
|
|
179
|
-
ref:
|
|
195
|
+
ref: g,
|
|
180
196
|
"data-component": "iris-chat-message",
|
|
181
197
|
"data-role": a,
|
|
182
|
-
className:
|
|
198
|
+
className: o(
|
|
183
199
|
"flex min-w-0 w-full flex-col gap-1",
|
|
184
200
|
a === "user" ? "items-end" : "items-start",
|
|
185
|
-
|
|
201
|
+
i
|
|
186
202
|
),
|
|
187
|
-
...
|
|
188
|
-
children: [
|
|
189
|
-
|
|
190
|
-
t ? /* @__PURE__ */ e(
|
|
191
|
-
|
|
203
|
+
...d,
|
|
204
|
+
children: /* @__PURE__ */ l("div", { "data-slot": "bubble", className: _e({ role: a, framed: r }), children: [
|
|
205
|
+
n,
|
|
206
|
+
t ? /* @__PURE__ */ e(
|
|
207
|
+
"time",
|
|
208
|
+
{
|
|
209
|
+
className: "col-start-2 self-end text-[10px] font-medium leading-[10px] text-secondary-foreground",
|
|
210
|
+
children: t
|
|
211
|
+
}
|
|
212
|
+
) : null
|
|
213
|
+
] })
|
|
192
214
|
}
|
|
193
215
|
)
|
|
194
|
-
),
|
|
216
|
+
), Pe = ["notAsked", "tone", "incorrect", "other"], rt = m(
|
|
195
217
|
"IrisChatActions",
|
|
196
218
|
({
|
|
197
|
-
className:
|
|
219
|
+
className: i,
|
|
198
220
|
liked: a,
|
|
199
221
|
disliked: t,
|
|
200
|
-
copyText:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
copyText: r,
|
|
223
|
+
speakText: n,
|
|
224
|
+
speechLocale: d,
|
|
225
|
+
onLike: g,
|
|
226
|
+
onDislike: f,
|
|
227
|
+
onCopy: c,
|
|
228
|
+
onRetry: h,
|
|
229
|
+
onSpeak: I,
|
|
230
|
+
onSpeechNotice: _,
|
|
231
|
+
onFeedback: y,
|
|
232
|
+
...z
|
|
233
|
+
}, A) => {
|
|
234
|
+
const { t: s } = N(), [b, W] = x(!1), [R, S] = x(!1), k = Q(null);
|
|
235
|
+
X(
|
|
236
|
+
() => () => {
|
|
237
|
+
k.current !== null && window.clearTimeout(k.current);
|
|
238
|
+
},
|
|
239
|
+
[]
|
|
240
|
+
);
|
|
241
|
+
const [w, E] = x(!1), [K, G] = x(!1), [O, U] = x("notAsked"), [j, F] = x(""), [H, B] = x(!1), L = {
|
|
242
|
+
notAsked: s("irisChat.feedbackNotAsked"),
|
|
243
|
+
tone: s("irisChat.feedbackTone"),
|
|
244
|
+
incorrect: s("irisChat.feedbackIncorrect"),
|
|
245
|
+
other: s("irisChat.feedbackOther")
|
|
246
|
+
}, M = Ce({ speakText: n, copyText: r }), V = M.length > 0 || !!I, Y = () => {
|
|
247
|
+
(async () => {
|
|
248
|
+
if (!r) {
|
|
249
|
+
c?.();
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
await be(r) && (c?.(), W(!0), S(!0), k.current !== null && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
253
|
+
W(!1), S(!1), k.current = null;
|
|
254
|
+
}, xe));
|
|
255
|
+
})();
|
|
256
|
+
}, q = () => {
|
|
257
|
+
if (I) {
|
|
258
|
+
I();
|
|
220
259
|
return;
|
|
221
260
|
}
|
|
222
|
-
if (
|
|
223
|
-
|
|
224
|
-
if (N) {
|
|
225
|
-
window.speechSynthesis.cancel(), I(!1);
|
|
261
|
+
if (w) {
|
|
262
|
+
Ie(), E(!1);
|
|
226
263
|
return;
|
|
227
264
|
}
|
|
228
|
-
|
|
229
|
-
|
|
265
|
+
ke({
|
|
266
|
+
text: n ?? r ?? "",
|
|
267
|
+
locale: d,
|
|
268
|
+
onSpeakingChange: E,
|
|
269
|
+
onNotice: _
|
|
270
|
+
});
|
|
230
271
|
};
|
|
231
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ l(
|
|
232
273
|
"div",
|
|
233
274
|
{
|
|
234
|
-
ref:
|
|
275
|
+
ref: A,
|
|
235
276
|
"data-component": "iris-chat-actions",
|
|
236
|
-
className:
|
|
237
|
-
...
|
|
277
|
+
className: o("flex items-center gap-0.5", i),
|
|
278
|
+
...z,
|
|
238
279
|
children: [
|
|
239
|
-
/* @__PURE__ */ e(
|
|
240
|
-
|
|
280
|
+
/* @__PURE__ */ e(C, { label: s("irisChat.like"), children: /* @__PURE__ */ e(
|
|
281
|
+
u,
|
|
241
282
|
{
|
|
242
283
|
type: "button",
|
|
243
284
|
variant: "ghost",
|
|
244
285
|
size: "icon",
|
|
245
|
-
"aria-label":
|
|
286
|
+
"aria-label": s("irisChat.like"),
|
|
246
287
|
"aria-pressed": a,
|
|
247
|
-
className:
|
|
248
|
-
onClick:
|
|
249
|
-
children: /* @__PURE__ */ e(
|
|
288
|
+
className: o(v, a && "text-brand bg-brand-subtle"),
|
|
289
|
+
onClick: g,
|
|
290
|
+
children: /* @__PURE__ */ e(ce, { size: 16 })
|
|
250
291
|
}
|
|
251
292
|
) }),
|
|
252
|
-
|
|
253
|
-
|
|
293
|
+
y ? /* @__PURE__ */ l(
|
|
294
|
+
$,
|
|
254
295
|
{
|
|
255
|
-
open:
|
|
256
|
-
onOpenChange: (
|
|
257
|
-
|
|
296
|
+
open: K,
|
|
297
|
+
onOpenChange: (p) => {
|
|
298
|
+
G(p), p || (B(!1), F(""));
|
|
258
299
|
},
|
|
259
300
|
children: [
|
|
260
|
-
/* @__PURE__ */ e(
|
|
261
|
-
|
|
301
|
+
/* @__PURE__ */ e(C, { label: s("irisChat.dislike"), children: /* @__PURE__ */ e(ee, { asChild: !0, children: /* @__PURE__ */ e(
|
|
302
|
+
u,
|
|
262
303
|
{
|
|
263
304
|
type: "button",
|
|
264
305
|
variant: "ghost",
|
|
265
306
|
size: "icon",
|
|
266
|
-
"aria-label":
|
|
307
|
+
"aria-label": s("irisChat.dislike"),
|
|
267
308
|
"aria-pressed": t,
|
|
268
|
-
className:
|
|
269
|
-
onClick:
|
|
270
|
-
children: /* @__PURE__ */ e(
|
|
309
|
+
className: o(v, t && "text-brand bg-brand-subtle"),
|
|
310
|
+
onClick: f,
|
|
311
|
+
children: /* @__PURE__ */ e(D, { size: 16 })
|
|
271
312
|
}
|
|
272
313
|
) }) }),
|
|
273
|
-
/* @__PURE__ */ e(
|
|
274
|
-
/* @__PURE__ */ e(
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children:
|
|
314
|
+
/* @__PURE__ */ e(te, { align: "start", side: "top", className: "w-[320px] rounded-xl p-4", children: H ? /* @__PURE__ */ e("p", { className: "text-sm font-medium text-content", children: s("irisChat.feedbackThanks") }) : /* @__PURE__ */ l(J, { children: [
|
|
315
|
+
/* @__PURE__ */ e(ae, { className: "mb-3", children: /* @__PURE__ */ e(re, { className: "text-sm font-semibold", children: s("irisChat.feedbackTitle") }) }),
|
|
316
|
+
/* @__PURE__ */ l(ie, { className: "flex flex-col gap-3", children: [
|
|
317
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: Pe.map((p) => /* @__PURE__ */ e(
|
|
277
318
|
"button",
|
|
278
319
|
{
|
|
279
320
|
type: "button",
|
|
280
|
-
className:
|
|
321
|
+
className: o(
|
|
281
322
|
"rounded-full border px-3 py-1 text-xs font-medium",
|
|
282
|
-
|
|
323
|
+
O === p ? "border-brand bg-brand-subtle text-brand" : "border-stroke-subtle text-content"
|
|
283
324
|
),
|
|
284
|
-
onClick: () =>
|
|
285
|
-
children:
|
|
325
|
+
onClick: () => U(p),
|
|
326
|
+
children: L[p]
|
|
286
327
|
},
|
|
287
|
-
|
|
328
|
+
p
|
|
288
329
|
)) }),
|
|
289
330
|
/* @__PURE__ */ e(
|
|
290
331
|
"textarea",
|
|
291
332
|
{
|
|
292
|
-
value:
|
|
293
|
-
placeholder:
|
|
333
|
+
value: j,
|
|
334
|
+
placeholder: s("irisChat.feedbackPlaceholder"),
|
|
294
335
|
className: "min-h-16 w-full resize-none rounded-lg border border-stroke-subtle bg-transparent px-3 py-2 text-sm outline-none",
|
|
295
|
-
onChange: (
|
|
336
|
+
onChange: (p) => F(p.target.value)
|
|
296
337
|
}
|
|
297
338
|
),
|
|
298
339
|
/* @__PURE__ */ e(
|
|
299
|
-
|
|
340
|
+
u,
|
|
300
341
|
{
|
|
301
342
|
type: "button",
|
|
302
343
|
size: "sm",
|
|
303
344
|
className: "self-end",
|
|
304
345
|
onClick: () => {
|
|
305
|
-
|
|
346
|
+
y({ reason: O, details: j }), B(!0), window.setTimeout(() => G(!1), 1200);
|
|
306
347
|
},
|
|
307
|
-
children:
|
|
348
|
+
children: s("irisChat.feedbackSubmit")
|
|
308
349
|
}
|
|
309
350
|
)
|
|
310
351
|
] })
|
|
311
352
|
] }) })
|
|
312
353
|
]
|
|
313
354
|
}
|
|
314
|
-
) : /* @__PURE__ */ e(
|
|
315
|
-
|
|
355
|
+
) : /* @__PURE__ */ e(C, { label: s("irisChat.dislike"), children: /* @__PURE__ */ e(
|
|
356
|
+
u,
|
|
316
357
|
{
|
|
317
358
|
type: "button",
|
|
318
359
|
variant: "ghost",
|
|
319
360
|
size: "icon",
|
|
320
|
-
"aria-label":
|
|
361
|
+
"aria-label": s("irisChat.dislike"),
|
|
321
362
|
"aria-pressed": t,
|
|
322
|
-
className:
|
|
323
|
-
onClick:
|
|
324
|
-
children: /* @__PURE__ */ e(
|
|
363
|
+
className: o(v, t && "text-brand bg-brand-subtle"),
|
|
364
|
+
onClick: f,
|
|
365
|
+
children: /* @__PURE__ */ e(D, { size: 16 })
|
|
325
366
|
}
|
|
326
367
|
) }),
|
|
327
|
-
|
|
328
|
-
|
|
368
|
+
r || c ? /* @__PURE__ */ e(
|
|
369
|
+
C,
|
|
329
370
|
{
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
371
|
+
label: s(b ? "irisChat.copied" : "irisChat.copy"),
|
|
372
|
+
open: R,
|
|
373
|
+
onOpenChange: S,
|
|
374
|
+
children: /* @__PURE__ */ e(
|
|
375
|
+
u,
|
|
376
|
+
{
|
|
377
|
+
type: "button",
|
|
378
|
+
variant: "ghost",
|
|
379
|
+
size: "icon",
|
|
380
|
+
"aria-label": s(b ? "irisChat.copied" : "irisChat.copy"),
|
|
381
|
+
"data-testid": "iris-chat-copy",
|
|
382
|
+
"data-copied": b ? "" : void 0,
|
|
383
|
+
className: o(
|
|
384
|
+
v,
|
|
385
|
+
b && ge
|
|
386
|
+
),
|
|
387
|
+
onClick: Y,
|
|
388
|
+
children: b ? /* @__PURE__ */ e(de, { size: 16 }) : /* @__PURE__ */ e(me, { size: 16 })
|
|
389
|
+
}
|
|
390
|
+
)
|
|
337
391
|
}
|
|
338
|
-
)
|
|
339
|
-
/* @__PURE__ */ e(
|
|
340
|
-
|
|
392
|
+
) : null,
|
|
393
|
+
V ? /* @__PURE__ */ e(C, { label: s(w ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
|
|
394
|
+
u,
|
|
341
395
|
{
|
|
342
396
|
type: "button",
|
|
343
397
|
variant: "ghost",
|
|
344
398
|
size: "icon",
|
|
345
|
-
"aria-label":
|
|
346
|
-
"aria-pressed":
|
|
347
|
-
|
|
348
|
-
|
|
399
|
+
"aria-label": s(w ? "irisChat.stopSpeaking" : "irisChat.speak"),
|
|
400
|
+
"aria-pressed": w,
|
|
401
|
+
"data-testid": "iris-chat-speak",
|
|
402
|
+
disabled: !I && M.length === 0,
|
|
403
|
+
className: o(v, w && "text-brand bg-brand-subtle"),
|
|
404
|
+
onClick: q,
|
|
405
|
+
children: /* @__PURE__ */ e(he, { size: 16 })
|
|
349
406
|
}
|
|
350
|
-
) }),
|
|
351
|
-
|
|
352
|
-
|
|
407
|
+
) }) : null,
|
|
408
|
+
h ? /* @__PURE__ */ e(C, { label: s("irisChat.retry"), children: /* @__PURE__ */ e(
|
|
409
|
+
u,
|
|
353
410
|
{
|
|
354
411
|
type: "button",
|
|
355
412
|
variant: "ghost",
|
|
356
413
|
size: "icon",
|
|
357
|
-
"aria-label":
|
|
414
|
+
"aria-label": s("irisChat.retry"),
|
|
358
415
|
"data-testid": "iris-chat-retry",
|
|
359
|
-
|
|
360
|
-
|
|
416
|
+
className: v,
|
|
417
|
+
onClick: h,
|
|
418
|
+
children: /* @__PURE__ */ e(pe, { size: 16 })
|
|
361
419
|
}
|
|
362
420
|
) }) : null
|
|
363
421
|
]
|
|
364
422
|
}
|
|
365
423
|
);
|
|
366
424
|
}
|
|
367
|
-
),
|
|
425
|
+
), it = m(
|
|
368
426
|
"IrisChatFollowUps",
|
|
369
|
-
({ className:
|
|
427
|
+
({ className: i, ...a }, t) => /* @__PURE__ */ e(
|
|
370
428
|
"div",
|
|
371
429
|
{
|
|
372
430
|
ref: t,
|
|
373
431
|
"data-component": "iris-chat-follow-ups",
|
|
374
|
-
className:
|
|
432
|
+
className: o("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", i),
|
|
375
433
|
...a
|
|
376
434
|
}
|
|
377
435
|
)
|
|
378
|
-
),
|
|
436
|
+
), st = m(
|
|
379
437
|
"IrisChatFollowUp",
|
|
380
|
-
({ className:
|
|
438
|
+
({ className: i, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
|
|
381
439
|
"button",
|
|
382
440
|
{
|
|
383
441
|
ref: n,
|
|
384
442
|
type: t,
|
|
385
443
|
"data-component": "iris-chat-follow-up",
|
|
386
|
-
className:
|
|
444
|
+
className: o(
|
|
387
445
|
"flex w-full items-center justify-between gap-3 border-b border-stroke-subtle px-3 py-2.5 text-start text-sm last:border-b-0 hover:bg-accent",
|
|
388
|
-
|
|
446
|
+
i
|
|
389
447
|
),
|
|
390
|
-
...
|
|
448
|
+
...r,
|
|
391
449
|
children: [
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */ e(
|
|
450
|
+
/* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
451
|
+
/* @__PURE__ */ e(T, { size: 14 }),
|
|
394
452
|
/* @__PURE__ */ e("span", { className: "min-w-0 whitespace-normal", children: a })
|
|
395
453
|
] }),
|
|
396
|
-
/* @__PURE__ */ e(
|
|
454
|
+
/* @__PURE__ */ e(P, { size: 16, className: "shrink-0 text-content-secondary" })
|
|
397
455
|
]
|
|
398
456
|
}
|
|
399
457
|
)
|
|
400
|
-
),
|
|
458
|
+
), nt = m(
|
|
401
459
|
"IrisChatAttachment",
|
|
402
|
-
({ className:
|
|
403
|
-
const { t:
|
|
404
|
-
return /* @__PURE__ */
|
|
460
|
+
({ className: i, name: a, kind: t = "file", sizeLabel: r, previewUrl: n, onRemove: d }, g) => {
|
|
461
|
+
const { t: f } = N();
|
|
462
|
+
return /* @__PURE__ */ l(
|
|
405
463
|
"div",
|
|
406
464
|
{
|
|
407
|
-
ref:
|
|
465
|
+
ref: g,
|
|
408
466
|
"data-component": "iris-chat-attachment",
|
|
409
467
|
"data-kind": t,
|
|
410
|
-
className:
|
|
468
|
+
className: o(
|
|
411
469
|
"flex max-w-full items-center gap-2 rounded-xl bg-canvas-elevated px-2 py-1.5 text-xs text-content",
|
|
412
|
-
|
|
470
|
+
i
|
|
413
471
|
),
|
|
414
472
|
children: [
|
|
415
|
-
t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */
|
|
473
|
+
t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(ue, { size: 14 }),
|
|
474
|
+
/* @__PURE__ */ l("span", { className: "min-w-0", children: [
|
|
417
475
|
/* @__PURE__ */ e("span", { className: "block truncate font-medium", children: a }),
|
|
418
|
-
|
|
476
|
+
r ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: r }) : null
|
|
419
477
|
] }),
|
|
420
|
-
|
|
421
|
-
|
|
478
|
+
d ? /* @__PURE__ */ e(C, { label: f("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
|
|
479
|
+
u,
|
|
422
480
|
{
|
|
423
481
|
type: "button",
|
|
424
482
|
variant: "ghost",
|
|
425
483
|
size: "icon",
|
|
426
484
|
className: "size-6",
|
|
427
|
-
"aria-label":
|
|
428
|
-
onClick:
|
|
429
|
-
children: /* @__PURE__ */ e(
|
|
485
|
+
"aria-label": f("irisChat.removeAttachment"),
|
|
486
|
+
onClick: d,
|
|
487
|
+
children: /* @__PURE__ */ e(Z, { size: 12 })
|
|
430
488
|
}
|
|
431
489
|
) }) : null
|
|
432
490
|
]
|
|
433
491
|
}
|
|
434
492
|
);
|
|
435
493
|
}
|
|
436
|
-
),
|
|
494
|
+
), ot = m(
|
|
437
495
|
"IrisChatError",
|
|
438
|
-
({ className:
|
|
439
|
-
const { t:
|
|
440
|
-
return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className:
|
|
441
|
-
/* @__PURE__ */ e(
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
/* @__PURE__ */ e(
|
|
444
|
-
/* @__PURE__ */ e(
|
|
445
|
-
|
|
446
|
-
|
|
496
|
+
({ className: i, title: a, description: t, onRetry: r }, n) => {
|
|
497
|
+
const { t: d } = N();
|
|
498
|
+
return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: o("w-full", i), children: /* @__PURE__ */ l(se, { variant: "error", children: [
|
|
499
|
+
/* @__PURE__ */ e(ne, { variant: "error" }),
|
|
500
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
501
|
+
/* @__PURE__ */ e(oe, { children: a ?? d("irisChat.generationError") }),
|
|
502
|
+
/* @__PURE__ */ e(le, { children: t ?? d("irisChat.generationErrorBody") }),
|
|
503
|
+
r ? /* @__PURE__ */ e(
|
|
504
|
+
u,
|
|
447
505
|
{
|
|
448
506
|
type: "button",
|
|
449
507
|
size: "sm",
|
|
450
508
|
variant: "outline",
|
|
451
509
|
className: "w-fit",
|
|
452
510
|
"data-testid": "iris-chat-error-retry",
|
|
453
|
-
onClick:
|
|
454
|
-
children:
|
|
511
|
+
onClick: r,
|
|
512
|
+
children: d("irisChat.retry")
|
|
455
513
|
}
|
|
456
514
|
) : null
|
|
457
515
|
] })
|
|
458
516
|
] }) });
|
|
459
517
|
}
|
|
460
|
-
),
|
|
518
|
+
), lt = m(
|
|
461
519
|
"IrisChatChip",
|
|
462
|
-
({ className:
|
|
520
|
+
({ className: i, type: a = "button", variant: t = "default", ...r }, n) => /* @__PURE__ */ e(
|
|
463
521
|
"button",
|
|
464
522
|
{
|
|
465
523
|
ref: n,
|
|
466
524
|
type: a,
|
|
467
525
|
"data-component": "iris-chat-chip",
|
|
468
526
|
"data-variant": t,
|
|
469
|
-
className:
|
|
527
|
+
className: o(
|
|
470
528
|
"rounded-full px-3 py-1.5 text-sm font-medium leading-5 disabled:pointer-events-none disabled:opacity-50",
|
|
471
529
|
t === "outline" ? "border border-stroke bg-canvas text-content hover:bg-accent" : "border border-stroke-subtle bg-secondary text-content hover:bg-accent",
|
|
472
|
-
|
|
530
|
+
i
|
|
473
531
|
),
|
|
474
|
-
...
|
|
532
|
+
...r
|
|
475
533
|
}
|
|
476
534
|
)
|
|
477
535
|
);
|
|
478
536
|
export {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
537
|
+
rt as IrisChatActions,
|
|
538
|
+
nt as IrisChatAttachment,
|
|
539
|
+
lt as IrisChatChip,
|
|
540
|
+
tt as IrisChatDay,
|
|
541
|
+
ot as IrisChatError,
|
|
542
|
+
st as IrisChatFollowUp,
|
|
543
|
+
it as IrisChatFollowUps,
|
|
544
|
+
Je as IrisChatGreeting,
|
|
545
|
+
at as IrisChatMessage,
|
|
546
|
+
Xe as IrisChatSuggestion,
|
|
547
|
+
Qe as IrisChatSuggestions,
|
|
548
|
+
et as IrisChatThread,
|
|
549
|
+
$e as IrisChatWorkflow,
|
|
550
|
+
Ze as IrisChatWorkflows
|
|
493
551
|
};
|