impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +53 -49
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- 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.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- 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/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- 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/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
- 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.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +171 -143
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- 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/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -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/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- 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 +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -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 +113 -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 +291 -234
- 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 +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- 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 +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -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 +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -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 +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- 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 +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -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 +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- 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 +85 -91
- 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 +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- 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 +75 -0
- package/dist/i18n/defaultMessages.js +112 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +71 -1
- package/dist/i18n/locales/es.js +71 -1
- package/dist/i18n/locales/hi.js +71 -1
- package/dist/i18n/locales/kn.js +71 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +27 -4
|
@@ -1,72 +1,87 @@
|
|
|
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 se } from "../../feedback/popover/popover.js";
|
|
5
|
+
import { ButtonIconTooltip as C } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { Alert as ie, 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 v } 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 N, irisChatCopySuccessClassName as be, writeIrisChatClipboardText as ge, 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 Ne } from "./iris-chat-context.js";
|
|
16
|
+
import { readIrisChatGreetingCompact as ve, readIrisChatGreetingShowSubtitle as we, readIrisChatGreetingIconSize as ye } from "./iris-chat-window-chrome.js";
|
|
17
|
+
import { irisChatMessageVariants as ze } from "./iris-chat.variants.js";
|
|
18
|
+
import { readIrisGreetingPeriod as _e, 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: s, name: a, greeting: t, subtitle: r, children: n, mark: d }, b) => {
|
|
22
|
+
const { t: f } = v(), c = Ne(), h = c != null ? ve({
|
|
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, z = c != null ? ye({
|
|
30
|
+
isWindowPlacement: c.isWindowPlacement,
|
|
31
|
+
placement: c.placement,
|
|
32
|
+
frame: c.frame,
|
|
33
|
+
compact: h
|
|
34
|
+
}) : h ? 56 : 84, y = _e(), _ = d ?? Ae(), A = t ?? f(Se(y)), i = h ? "text-lg font-semibold leading-6 text-content" : "text-[26px] font-semibold leading-[46.8px] text-content", g = 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: b,
|
|
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
|
-
|
|
43
|
+
h ? "gap-1.5 py-2" : "gap-2 py-8",
|
|
29
44
|
"bg-[radial-gradient(ellipse_80%_70%_at_50%_45%,var(--color-iris-menu-surface-from),transparent_70%),radial-gradient(ellipse_70%_50%_at_50%_85%,color-mix(in_srgb,var(--color-iris-control-glow-cyan)_16%,transparent),transparent_72%)]",
|
|
30
|
-
|
|
45
|
+
s
|
|
31
46
|
),
|
|
32
47
|
children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */ e("p", { className:
|
|
48
|
+
/* @__PURE__ */ e(T, { size: z }),
|
|
49
|
+
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center justify-center gap-1", children: [
|
|
50
|
+
/* @__PURE__ */ e("p", { className: i, children: A }),
|
|
36
51
|
a ? /* @__PURE__ */ e(
|
|
37
52
|
"p",
|
|
38
53
|
{
|
|
39
|
-
className:
|
|
54
|
+
className: g,
|
|
40
55
|
style: {
|
|
41
56
|
backgroundImage: "linear-gradient(90deg, var(--color-header-bot-gradient-orange), var(--color-header-bot-gradient-purple))"
|
|
42
57
|
},
|
|
43
58
|
children: a
|
|
44
59
|
}
|
|
45
60
|
) : null,
|
|
46
|
-
/* @__PURE__ */ e("span", { "aria-hidden": !0, className:
|
|
61
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, className: h ? "text-base" : "text-[23px]", children: _ })
|
|
47
62
|
] }),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
63
|
+
I ? /* @__PURE__ */ e(
|
|
49
64
|
"p",
|
|
50
65
|
{
|
|
51
|
-
className:
|
|
52
|
-
children:
|
|
66
|
+
className: h ? "max-w-[20rem] text-sm font-medium leading-5 text-content-caption" : "text-base font-medium leading-5 text-content-caption",
|
|
67
|
+
children: r ?? f("irisChat.greetingSubtitle")
|
|
53
68
|
}
|
|
54
|
-
),
|
|
69
|
+
) : null,
|
|
55
70
|
n
|
|
56
71
|
]
|
|
57
72
|
}
|
|
58
73
|
);
|
|
59
74
|
}
|
|
60
|
-
),
|
|
61
|
-
const { t: n } =
|
|
62
|
-
return /* @__PURE__ */
|
|
75
|
+
), Qe = m("IrisChatSuggestions", ({ className: s, children: a, ...t }, r) => {
|
|
76
|
+
const { t: n } = v();
|
|
77
|
+
return /* @__PURE__ */ l(
|
|
63
78
|
"div",
|
|
64
79
|
{
|
|
65
|
-
ref:
|
|
80
|
+
ref: r,
|
|
66
81
|
"data-component": "iris-chat-suggestions",
|
|
67
|
-
className:
|
|
82
|
+
className: o(
|
|
68
83
|
"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
|
-
|
|
84
|
+
s
|
|
70
85
|
),
|
|
71
86
|
...t,
|
|
72
87
|
children: [
|
|
@@ -75,79 +90,79 @@ const we = d(
|
|
|
75
90
|
]
|
|
76
91
|
}
|
|
77
92
|
);
|
|
78
|
-
}),
|
|
93
|
+
}), Xe = m(
|
|
79
94
|
"IrisChatSuggestion",
|
|
80
|
-
({ className:
|
|
95
|
+
({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
|
|
81
96
|
"button",
|
|
82
97
|
{
|
|
83
98
|
ref: n,
|
|
84
99
|
type: t,
|
|
85
100
|
"data-component": "iris-chat-suggestion",
|
|
86
|
-
className:
|
|
101
|
+
className: o(
|
|
87
102
|
"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
|
-
|
|
103
|
+
s
|
|
89
104
|
),
|
|
90
|
-
...
|
|
105
|
+
...r,
|
|
91
106
|
children: [
|
|
92
|
-
/* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ e(fe, { size: 14 }),
|
|
93
108
|
/* @__PURE__ */ e("span", { className: "truncate", children: a })
|
|
94
109
|
]
|
|
95
110
|
}
|
|
96
111
|
)
|
|
97
|
-
),
|
|
98
|
-
const { t:
|
|
99
|
-
return /* @__PURE__ */
|
|
112
|
+
), Ze = m("IrisChatWorkflows", ({ className: s, children: a, onShowMore: t, ...r }, n) => {
|
|
113
|
+
const { t: d } = v();
|
|
114
|
+
return /* @__PURE__ */ l(
|
|
100
115
|
"div",
|
|
101
116
|
{
|
|
102
117
|
ref: n,
|
|
103
118
|
"data-component": "iris-chat-workflows",
|
|
104
|
-
className:
|
|
105
|
-
...
|
|
119
|
+
className: o("flex flex-col gap-2 pb-6", s),
|
|
120
|
+
...r,
|
|
106
121
|
children: [
|
|
107
|
-
/* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children:
|
|
122
|
+
/* @__PURE__ */ e("p", { className: "text-xs font-medium capitalize leading-4 text-content-secondary", children: d("irisChat.suggestedWorkflows") }),
|
|
108
123
|
/* @__PURE__ */ e("div", { className: "flex flex-col", children: a }),
|
|
109
|
-
t ? /* @__PURE__ */
|
|
110
|
-
|
|
124
|
+
t ? /* @__PURE__ */ l(
|
|
125
|
+
u,
|
|
111
126
|
{
|
|
112
127
|
type: "button",
|
|
113
128
|
variant: "link",
|
|
114
129
|
className: "h-auto justify-start px-0 text-sm",
|
|
115
130
|
onClick: t,
|
|
116
131
|
children: [
|
|
117
|
-
|
|
118
|
-
/* @__PURE__ */ e(
|
|
132
|
+
d("irisChat.showMore"),
|
|
133
|
+
/* @__PURE__ */ e(P, { size: 16, className: "rotate-90" })
|
|
119
134
|
]
|
|
120
135
|
}
|
|
121
136
|
) : null
|
|
122
137
|
]
|
|
123
138
|
}
|
|
124
139
|
);
|
|
125
|
-
}),
|
|
140
|
+
}), $e = m(
|
|
126
141
|
"IrisChatWorkflow",
|
|
127
|
-
({ className:
|
|
142
|
+
({ className: s, title: a, description: t, type: r = "button", ...n }, d) => /* @__PURE__ */ l(
|
|
128
143
|
"button",
|
|
129
144
|
{
|
|
130
|
-
ref:
|
|
131
|
-
type:
|
|
145
|
+
ref: d,
|
|
146
|
+
type: r,
|
|
132
147
|
"data-component": "iris-chat-workflow",
|
|
133
|
-
className:
|
|
148
|
+
className: o(
|
|
134
149
|
"flex items-center gap-2 rounded-md py-2 text-start hover:bg-accent",
|
|
135
|
-
|
|
150
|
+
s
|
|
136
151
|
),
|
|
137
152
|
...n,
|
|
138
153
|
children: [
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ e(T, { size: 16 }),
|
|
155
|
+
/* @__PURE__ */ l("span", { className: "min-w-0 flex-1", children: [
|
|
141
156
|
/* @__PURE__ */ e("span", { className: "block truncate text-sm font-medium text-content", children: a }),
|
|
142
157
|
t ? /* @__PURE__ */ e("span", { className: "block truncate text-xs text-content-caption", children: t }) : null
|
|
143
158
|
] }),
|
|
144
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(P, { size: 16, className: "text-content-secondary" })
|
|
145
160
|
]
|
|
146
161
|
}
|
|
147
162
|
)
|
|
148
|
-
),
|
|
163
|
+
), et = m(
|
|
149
164
|
"IrisChatThread",
|
|
150
|
-
({ className:
|
|
165
|
+
({ className: s, ...a }, t) => /* @__PURE__ */ e(
|
|
151
166
|
"div",
|
|
152
167
|
{
|
|
153
168
|
ref: t,
|
|
@@ -155,154 +170,179 @@ const we = d(
|
|
|
155
170
|
role: "log",
|
|
156
171
|
"aria-live": "polite",
|
|
157
172
|
"aria-relevant": "additions",
|
|
158
|
-
className:
|
|
173
|
+
className: o("flex min-w-0 w-full flex-col gap-4 py-4", s),
|
|
159
174
|
...a
|
|
160
175
|
}
|
|
161
176
|
)
|
|
162
|
-
),
|
|
177
|
+
), tt = m(
|
|
163
178
|
"IrisChatDay",
|
|
164
|
-
({ className:
|
|
179
|
+
({ className: s, children: a, ...t }, r) => /* @__PURE__ */ e(
|
|
165
180
|
"div",
|
|
166
181
|
{
|
|
167
|
-
ref:
|
|
182
|
+
ref: r,
|
|
168
183
|
"data-component": "iris-chat-day",
|
|
169
|
-
className:
|
|
184
|
+
className: o("flex justify-center", s),
|
|
170
185
|
...t,
|
|
171
186
|
children: /* @__PURE__ */ e("span", { className: "rounded-full bg-secondary px-3 py-1 text-xs font-medium text-content-secondary", children: a })
|
|
172
187
|
}
|
|
173
188
|
)
|
|
174
|
-
),
|
|
189
|
+
), at = m(
|
|
175
190
|
"IrisChatMessage",
|
|
176
|
-
({ className:
|
|
191
|
+
({ className: s, role: a, time: t, framed: r, children: n, ...d }, b) => /* @__PURE__ */ e(
|
|
177
192
|
"article",
|
|
178
193
|
{
|
|
179
|
-
ref:
|
|
194
|
+
ref: b,
|
|
180
195
|
"data-component": "iris-chat-message",
|
|
181
196
|
"data-role": a,
|
|
182
|
-
className:
|
|
197
|
+
className: o(
|
|
183
198
|
"flex min-w-0 w-full flex-col gap-1",
|
|
184
199
|
a === "user" ? "items-end" : "items-start",
|
|
185
|
-
|
|
200
|
+
s
|
|
186
201
|
),
|
|
187
|
-
...
|
|
188
|
-
children: [
|
|
189
|
-
|
|
190
|
-
t ? /* @__PURE__ */ e(
|
|
191
|
-
|
|
202
|
+
...d,
|
|
203
|
+
children: /* @__PURE__ */ l("div", { "data-slot": "bubble", className: ze({ role: a, framed: r }), children: [
|
|
204
|
+
n,
|
|
205
|
+
t ? /* @__PURE__ */ e(
|
|
206
|
+
"time",
|
|
207
|
+
{
|
|
208
|
+
className: "col-start-2 self-end text-[10px] font-medium leading-[10px] text-secondary-foreground",
|
|
209
|
+
children: t
|
|
210
|
+
}
|
|
211
|
+
) : null
|
|
212
|
+
] })
|
|
192
213
|
}
|
|
193
214
|
)
|
|
194
|
-
),
|
|
215
|
+
), Pe = ["notAsked", "tone", "incorrect", "other"], rt = m(
|
|
195
216
|
"IrisChatActions",
|
|
196
217
|
({
|
|
197
|
-
className:
|
|
218
|
+
className: s,
|
|
198
219
|
liked: a,
|
|
199
220
|
disliked: t,
|
|
200
|
-
copyText:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
221
|
+
copyText: r,
|
|
222
|
+
speakText: n,
|
|
223
|
+
speechLocale: d,
|
|
224
|
+
onLike: b,
|
|
225
|
+
onDislike: f,
|
|
226
|
+
onCopy: c,
|
|
227
|
+
onRetry: h,
|
|
228
|
+
onSpeak: I,
|
|
229
|
+
onSpeechNotice: z,
|
|
230
|
+
onFeedback: y,
|
|
231
|
+
..._
|
|
232
|
+
}, A) => {
|
|
233
|
+
const { t: i } = v(), [g, W] = x(!1), [R, S] = x(!1), k = Q(null);
|
|
234
|
+
X(
|
|
235
|
+
() => () => {
|
|
236
|
+
k.current !== null && window.clearTimeout(k.current);
|
|
237
|
+
},
|
|
238
|
+
[]
|
|
239
|
+
);
|
|
240
|
+
const [w, E] = x(!1), [K, G] = x(!1), [O, U] = x("notAsked"), [j, F] = x(""), [H, B] = x(!1), L = {
|
|
210
241
|
notAsked: i("irisChat.feedbackNotAsked"),
|
|
211
242
|
tone: i("irisChat.feedbackTone"),
|
|
212
243
|
incorrect: i("irisChat.feedbackIncorrect"),
|
|
213
244
|
other: i("irisChat.feedbackOther")
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
245
|
+
}, M = Ce({ speakText: n, copyText: r }), V = M.length > 0 || !!I, Y = () => {
|
|
246
|
+
(async () => {
|
|
247
|
+
if (!r) {
|
|
248
|
+
c?.();
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
await ge(r) && (c?.(), W(!0), S(!0), k.current !== null && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
252
|
+
W(!1), S(!1), k.current = null;
|
|
253
|
+
}, xe));
|
|
254
|
+
})();
|
|
255
|
+
}, q = () => {
|
|
256
|
+
if (I) {
|
|
257
|
+
I();
|
|
220
258
|
return;
|
|
221
259
|
}
|
|
222
|
-
if (
|
|
223
|
-
|
|
224
|
-
if (N) {
|
|
225
|
-
window.speechSynthesis.cancel(), I(!1);
|
|
260
|
+
if (w) {
|
|
261
|
+
Ie(), E(!1);
|
|
226
262
|
return;
|
|
227
263
|
}
|
|
228
|
-
|
|
229
|
-
|
|
264
|
+
ke({
|
|
265
|
+
text: n ?? r ?? "",
|
|
266
|
+
locale: d,
|
|
267
|
+
onSpeakingChange: E,
|
|
268
|
+
onNotice: z
|
|
269
|
+
});
|
|
230
270
|
};
|
|
231
|
-
return /* @__PURE__ */
|
|
271
|
+
return /* @__PURE__ */ l(
|
|
232
272
|
"div",
|
|
233
273
|
{
|
|
234
|
-
ref:
|
|
274
|
+
ref: A,
|
|
235
275
|
"data-component": "iris-chat-actions",
|
|
236
|
-
className:
|
|
237
|
-
...
|
|
276
|
+
className: o("flex items-center gap-0.5", s),
|
|
277
|
+
..._,
|
|
238
278
|
children: [
|
|
239
|
-
/* @__PURE__ */ e(
|
|
240
|
-
|
|
279
|
+
/* @__PURE__ */ e(C, { label: i("irisChat.like"), children: /* @__PURE__ */ e(
|
|
280
|
+
u,
|
|
241
281
|
{
|
|
242
282
|
type: "button",
|
|
243
283
|
variant: "ghost",
|
|
244
284
|
size: "icon",
|
|
245
285
|
"aria-label": i("irisChat.like"),
|
|
246
286
|
"aria-pressed": a,
|
|
247
|
-
className:
|
|
248
|
-
onClick:
|
|
249
|
-
children: /* @__PURE__ */ e(
|
|
287
|
+
className: o(N, a && "text-brand bg-brand-subtle"),
|
|
288
|
+
onClick: b,
|
|
289
|
+
children: /* @__PURE__ */ e(ce, { size: 16 })
|
|
250
290
|
}
|
|
251
291
|
) }),
|
|
252
|
-
|
|
253
|
-
|
|
292
|
+
y ? /* @__PURE__ */ l(
|
|
293
|
+
$,
|
|
254
294
|
{
|
|
255
|
-
open:
|
|
256
|
-
onOpenChange: (
|
|
257
|
-
|
|
295
|
+
open: K,
|
|
296
|
+
onOpenChange: (p) => {
|
|
297
|
+
G(p), p || (B(!1), F(""));
|
|
258
298
|
},
|
|
259
299
|
children: [
|
|
260
|
-
/* @__PURE__ */ e(
|
|
261
|
-
|
|
300
|
+
/* @__PURE__ */ e(C, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(ee, { asChild: !0, children: /* @__PURE__ */ e(
|
|
301
|
+
u,
|
|
262
302
|
{
|
|
263
303
|
type: "button",
|
|
264
304
|
variant: "ghost",
|
|
265
305
|
size: "icon",
|
|
266
306
|
"aria-label": i("irisChat.dislike"),
|
|
267
307
|
"aria-pressed": t,
|
|
268
|
-
className:
|
|
269
|
-
onClick:
|
|
270
|
-
children: /* @__PURE__ */ e(
|
|
308
|
+
className: o(N, t && "text-brand bg-brand-subtle"),
|
|
309
|
+
onClick: f,
|
|
310
|
+
children: /* @__PURE__ */ e(D, { size: 16 })
|
|
271
311
|
}
|
|
272
312
|
) }) }),
|
|
273
|
-
/* @__PURE__ */ e(
|
|
274
|
-
/* @__PURE__ */ e(
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children:
|
|
313
|
+
/* @__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: i("irisChat.feedbackThanks") }) : /* @__PURE__ */ l(J, { children: [
|
|
314
|
+
/* @__PURE__ */ e(ae, { className: "mb-3", children: /* @__PURE__ */ e(re, { className: "text-sm font-semibold", children: i("irisChat.feedbackTitle") }) }),
|
|
315
|
+
/* @__PURE__ */ l(se, { className: "flex flex-col gap-3", children: [
|
|
316
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: Pe.map((p) => /* @__PURE__ */ e(
|
|
277
317
|
"button",
|
|
278
318
|
{
|
|
279
319
|
type: "button",
|
|
280
|
-
className:
|
|
320
|
+
className: o(
|
|
281
321
|
"rounded-full border px-3 py-1 text-xs font-medium",
|
|
282
|
-
|
|
322
|
+
O === p ? "border-brand bg-brand-subtle text-brand" : "border-stroke-subtle text-content"
|
|
283
323
|
),
|
|
284
|
-
onClick: () =>
|
|
285
|
-
children:
|
|
324
|
+
onClick: () => U(p),
|
|
325
|
+
children: L[p]
|
|
286
326
|
},
|
|
287
|
-
|
|
327
|
+
p
|
|
288
328
|
)) }),
|
|
289
329
|
/* @__PURE__ */ e(
|
|
290
330
|
"textarea",
|
|
291
331
|
{
|
|
292
|
-
value:
|
|
332
|
+
value: j,
|
|
293
333
|
placeholder: i("irisChat.feedbackPlaceholder"),
|
|
294
334
|
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: (
|
|
335
|
+
onChange: (p) => F(p.target.value)
|
|
296
336
|
}
|
|
297
337
|
),
|
|
298
338
|
/* @__PURE__ */ e(
|
|
299
|
-
|
|
339
|
+
u,
|
|
300
340
|
{
|
|
301
341
|
type: "button",
|
|
302
342
|
size: "sm",
|
|
303
343
|
className: "self-end",
|
|
304
344
|
onClick: () => {
|
|
305
|
-
|
|
345
|
+
y({ reason: O, details: j }), B(!0), window.setTimeout(() => G(!1), 1200);
|
|
306
346
|
},
|
|
307
347
|
children: i("irisChat.feedbackSubmit")
|
|
308
348
|
}
|
|
@@ -311,183 +351,200 @@ const we = d(
|
|
|
311
351
|
] }) })
|
|
312
352
|
]
|
|
313
353
|
}
|
|
314
|
-
) : /* @__PURE__ */ e(
|
|
315
|
-
|
|
354
|
+
) : /* @__PURE__ */ e(C, { label: i("irisChat.dislike"), children: /* @__PURE__ */ e(
|
|
355
|
+
u,
|
|
316
356
|
{
|
|
317
357
|
type: "button",
|
|
318
358
|
variant: "ghost",
|
|
319
359
|
size: "icon",
|
|
320
360
|
"aria-label": i("irisChat.dislike"),
|
|
321
361
|
"aria-pressed": t,
|
|
322
|
-
className:
|
|
323
|
-
onClick:
|
|
324
|
-
children: /* @__PURE__ */ e(
|
|
362
|
+
className: o(N, t && "text-brand bg-brand-subtle"),
|
|
363
|
+
onClick: f,
|
|
364
|
+
children: /* @__PURE__ */ e(D, { size: 16 })
|
|
325
365
|
}
|
|
326
366
|
) }),
|
|
327
|
-
|
|
328
|
-
|
|
367
|
+
r || c ? /* @__PURE__ */ e(
|
|
368
|
+
C,
|
|
329
369
|
{
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
370
|
+
label: i(g ? "irisChat.copied" : "irisChat.copy"),
|
|
371
|
+
open: R,
|
|
372
|
+
onOpenChange: S,
|
|
373
|
+
children: /* @__PURE__ */ e(
|
|
374
|
+
u,
|
|
375
|
+
{
|
|
376
|
+
type: "button",
|
|
377
|
+
variant: "ghost",
|
|
378
|
+
size: "icon",
|
|
379
|
+
"aria-label": i(g ? "irisChat.copied" : "irisChat.copy"),
|
|
380
|
+
"data-testid": "iris-chat-copy",
|
|
381
|
+
"data-copied": g ? "" : void 0,
|
|
382
|
+
className: o(
|
|
383
|
+
N,
|
|
384
|
+
g && be
|
|
385
|
+
),
|
|
386
|
+
onClick: Y,
|
|
387
|
+
children: g ? /* @__PURE__ */ e(de, { size: 16 }) : /* @__PURE__ */ e(me, { size: 16 })
|
|
388
|
+
}
|
|
389
|
+
)
|
|
337
390
|
}
|
|
338
|
-
)
|
|
339
|
-
/* @__PURE__ */ e(
|
|
340
|
-
|
|
391
|
+
) : null,
|
|
392
|
+
V ? /* @__PURE__ */ e(C, { label: i(w ? "irisChat.stopSpeaking" : "irisChat.speak"), children: /* @__PURE__ */ e(
|
|
393
|
+
u,
|
|
341
394
|
{
|
|
342
395
|
type: "button",
|
|
343
396
|
variant: "ghost",
|
|
344
397
|
size: "icon",
|
|
345
|
-
"aria-label": i(
|
|
346
|
-
"aria-pressed":
|
|
347
|
-
|
|
348
|
-
|
|
398
|
+
"aria-label": i(w ? "irisChat.stopSpeaking" : "irisChat.speak"),
|
|
399
|
+
"aria-pressed": w,
|
|
400
|
+
"data-testid": "iris-chat-speak",
|
|
401
|
+
disabled: !I && M.length === 0,
|
|
402
|
+
className: o(N, w && "text-brand bg-brand-subtle"),
|
|
403
|
+
onClick: q,
|
|
404
|
+
children: /* @__PURE__ */ e(he, { size: 16 })
|
|
349
405
|
}
|
|
350
|
-
) }),
|
|
351
|
-
|
|
352
|
-
|
|
406
|
+
) }) : null,
|
|
407
|
+
h ? /* @__PURE__ */ e(C, { label: i("irisChat.retry"), children: /* @__PURE__ */ e(
|
|
408
|
+
u,
|
|
353
409
|
{
|
|
354
410
|
type: "button",
|
|
355
411
|
variant: "ghost",
|
|
356
412
|
size: "icon",
|
|
357
413
|
"aria-label": i("irisChat.retry"),
|
|
358
414
|
"data-testid": "iris-chat-retry",
|
|
359
|
-
|
|
360
|
-
|
|
415
|
+
className: N,
|
|
416
|
+
onClick: h,
|
|
417
|
+
children: /* @__PURE__ */ e(pe, { size: 16 })
|
|
361
418
|
}
|
|
362
419
|
) }) : null
|
|
363
420
|
]
|
|
364
421
|
}
|
|
365
422
|
);
|
|
366
423
|
}
|
|
367
|
-
),
|
|
424
|
+
), st = m(
|
|
368
425
|
"IrisChatFollowUps",
|
|
369
|
-
({ className:
|
|
426
|
+
({ className: s, ...a }, t) => /* @__PURE__ */ e(
|
|
370
427
|
"div",
|
|
371
428
|
{
|
|
372
429
|
ref: t,
|
|
373
430
|
"data-component": "iris-chat-follow-ups",
|
|
374
|
-
className:
|
|
431
|
+
className: o("flex w-full flex-col overflow-hidden rounded-xl border border-stroke-subtle", s),
|
|
375
432
|
...a
|
|
376
433
|
}
|
|
377
434
|
)
|
|
378
|
-
),
|
|
435
|
+
), it = m(
|
|
379
436
|
"IrisChatFollowUp",
|
|
380
|
-
({ className:
|
|
437
|
+
({ className: s, children: a, type: t = "button", ...r }, n) => /* @__PURE__ */ l(
|
|
381
438
|
"button",
|
|
382
439
|
{
|
|
383
440
|
ref: n,
|
|
384
441
|
type: t,
|
|
385
442
|
"data-component": "iris-chat-follow-up",
|
|
386
|
-
className:
|
|
443
|
+
className: o(
|
|
387
444
|
"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
|
-
|
|
445
|
+
s
|
|
389
446
|
),
|
|
390
|
-
...
|
|
447
|
+
...r,
|
|
391
448
|
children: [
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */ e(
|
|
449
|
+
/* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
450
|
+
/* @__PURE__ */ e(T, { size: 14 }),
|
|
394
451
|
/* @__PURE__ */ e("span", { className: "min-w-0 whitespace-normal", children: a })
|
|
395
452
|
] }),
|
|
396
|
-
/* @__PURE__ */ e(
|
|
453
|
+
/* @__PURE__ */ e(P, { size: 16, className: "shrink-0 text-content-secondary" })
|
|
397
454
|
]
|
|
398
455
|
}
|
|
399
456
|
)
|
|
400
|
-
),
|
|
457
|
+
), nt = m(
|
|
401
458
|
"IrisChatAttachment",
|
|
402
|
-
({ className:
|
|
403
|
-
const { t:
|
|
404
|
-
return /* @__PURE__ */
|
|
459
|
+
({ className: s, name: a, kind: t = "file", sizeLabel: r, previewUrl: n, onRemove: d }, b) => {
|
|
460
|
+
const { t: f } = v();
|
|
461
|
+
return /* @__PURE__ */ l(
|
|
405
462
|
"div",
|
|
406
463
|
{
|
|
407
|
-
ref:
|
|
464
|
+
ref: b,
|
|
408
465
|
"data-component": "iris-chat-attachment",
|
|
409
466
|
"data-kind": t,
|
|
410
|
-
className:
|
|
467
|
+
className: o(
|
|
411
468
|
"flex max-w-full items-center gap-2 rounded-xl bg-canvas-elevated px-2 py-1.5 text-xs text-content",
|
|
412
|
-
|
|
469
|
+
s
|
|
413
470
|
),
|
|
414
471
|
children: [
|
|
415
|
-
t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */
|
|
472
|
+
t === "image" && n ? /* @__PURE__ */ e("img", { src: n, alt: "", className: "size-10 shrink-0 rounded-lg object-cover" }) : /* @__PURE__ */ e(ue, { size: 14 }),
|
|
473
|
+
/* @__PURE__ */ l("span", { className: "min-w-0", children: [
|
|
417
474
|
/* @__PURE__ */ e("span", { className: "block truncate font-medium", children: a }),
|
|
418
|
-
|
|
475
|
+
r ? /* @__PURE__ */ e("span", { className: "block text-content-caption", children: r }) : null
|
|
419
476
|
] }),
|
|
420
|
-
|
|
421
|
-
|
|
477
|
+
d ? /* @__PURE__ */ e(C, { label: f("irisChat.removeAttachment"), children: /* @__PURE__ */ e(
|
|
478
|
+
u,
|
|
422
479
|
{
|
|
423
480
|
type: "button",
|
|
424
481
|
variant: "ghost",
|
|
425
482
|
size: "icon",
|
|
426
483
|
className: "size-6",
|
|
427
|
-
"aria-label":
|
|
428
|
-
onClick:
|
|
429
|
-
children: /* @__PURE__ */ e(
|
|
484
|
+
"aria-label": f("irisChat.removeAttachment"),
|
|
485
|
+
onClick: d,
|
|
486
|
+
children: /* @__PURE__ */ e(Z, { size: 12 })
|
|
430
487
|
}
|
|
431
488
|
) }) : null
|
|
432
489
|
]
|
|
433
490
|
}
|
|
434
491
|
);
|
|
435
492
|
}
|
|
436
|
-
),
|
|
493
|
+
), ot = m(
|
|
437
494
|
"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
|
-
|
|
495
|
+
({ className: s, title: a, description: t, onRetry: r }, n) => {
|
|
496
|
+
const { t: d } = v();
|
|
497
|
+
return /* @__PURE__ */ e("div", { ref: n, "data-component": "iris-chat-error", className: o("w-full", s), children: /* @__PURE__ */ l(ie, { variant: "error", children: [
|
|
498
|
+
/* @__PURE__ */ e(ne, { variant: "error" }),
|
|
499
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
500
|
+
/* @__PURE__ */ e(oe, { children: a ?? d("irisChat.generationError") }),
|
|
501
|
+
/* @__PURE__ */ e(le, { children: t ?? d("irisChat.generationErrorBody") }),
|
|
502
|
+
r ? /* @__PURE__ */ e(
|
|
503
|
+
u,
|
|
447
504
|
{
|
|
448
505
|
type: "button",
|
|
449
506
|
size: "sm",
|
|
450
507
|
variant: "outline",
|
|
451
508
|
className: "w-fit",
|
|
452
509
|
"data-testid": "iris-chat-error-retry",
|
|
453
|
-
onClick:
|
|
454
|
-
children:
|
|
510
|
+
onClick: r,
|
|
511
|
+
children: d("irisChat.retry")
|
|
455
512
|
}
|
|
456
513
|
) : null
|
|
457
514
|
] })
|
|
458
515
|
] }) });
|
|
459
516
|
}
|
|
460
|
-
),
|
|
517
|
+
), lt = m(
|
|
461
518
|
"IrisChatChip",
|
|
462
|
-
({ className:
|
|
519
|
+
({ className: s, type: a = "button", variant: t = "default", ...r }, n) => /* @__PURE__ */ e(
|
|
463
520
|
"button",
|
|
464
521
|
{
|
|
465
522
|
ref: n,
|
|
466
523
|
type: a,
|
|
467
524
|
"data-component": "iris-chat-chip",
|
|
468
525
|
"data-variant": t,
|
|
469
|
-
className:
|
|
526
|
+
className: o(
|
|
470
527
|
"rounded-full px-3 py-1.5 text-sm font-medium leading-5 disabled:pointer-events-none disabled:opacity-50",
|
|
471
528
|
t === "outline" ? "border border-stroke bg-canvas text-content hover:bg-accent" : "border border-stroke-subtle bg-secondary text-content hover:bg-accent",
|
|
472
|
-
|
|
529
|
+
s
|
|
473
530
|
),
|
|
474
|
-
...
|
|
531
|
+
...r
|
|
475
532
|
}
|
|
476
533
|
)
|
|
477
534
|
);
|
|
478
535
|
export {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
536
|
+
rt as IrisChatActions,
|
|
537
|
+
nt as IrisChatAttachment,
|
|
538
|
+
lt as IrisChatChip,
|
|
539
|
+
tt as IrisChatDay,
|
|
540
|
+
ot as IrisChatError,
|
|
541
|
+
it as IrisChatFollowUp,
|
|
542
|
+
st as IrisChatFollowUps,
|
|
543
|
+
Je as IrisChatGreeting,
|
|
544
|
+
at as IrisChatMessage,
|
|
545
|
+
Xe as IrisChatSuggestion,
|
|
546
|
+
Qe as IrisChatSuggestions,
|
|
547
|
+
et as IrisChatThread,
|
|
548
|
+
$e as IrisChatWorkflow,
|
|
549
|
+
Ze as IrisChatWorkflows
|
|
493
550
|
};
|