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,297 +1,354 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { ButtonIconTooltip as
|
|
1
|
+
import { jsxs as s, jsx as t, Fragment as ze } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as C, useState as g, useEffect as j } from "react";
|
|
3
|
+
import { ChevronRight as De } from "impact-nova-icons";
|
|
4
|
+
import { ButtonIconTooltip as d } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
5
5
|
import { Button as p } from "../../primitives/button/button.js";
|
|
6
|
-
import { DropdownMenu as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
import { useControllableState as
|
|
9
|
-
import { createComponent as
|
|
10
|
-
import { cn as
|
|
11
|
-
import { useIrisChatOptional as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
6
|
+
import { DropdownMenu as Z, DropdownMenuTrigger as ee, DropdownMenuContent as te, DropdownMenuItem as re, DropdownMenuRadioGroup as Re, DropdownMenuRadioItem as Ne } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
7
|
+
import { useImpactNovaI18n as ke } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { useControllableState as ae } from "@radix-ui/react-use-controllable-state";
|
|
9
|
+
import { createComponent as Le } from "../../../lib/primitives/create-component.js";
|
|
10
|
+
import { cn as ne } from "../../../lib/utils.js";
|
|
11
|
+
import { useIrisChatOptional as Ee } from "./iris-chat-context.js";
|
|
12
|
+
import { readIrisChatComposerLayout as Se } from "./iris-chat-window-chrome.js";
|
|
13
|
+
import { IrisChatComposerExpandIcon as Fe, IrisChatAddIcon as ie, IrisChatAttachIcon as Pe, IrisChatMicIcon as Me, IrisChatStopIcon as Oe, IrisChatSendIcon as Ue } from "./iris-chat-icons.js";
|
|
14
|
+
import { syncIrisChatComposerTextareaHeight as je, readIrisChatComposerExpandOffered as Ke } from "./sync-iris-chat-composer-textarea.js";
|
|
15
|
+
import { IrisChatAttachment as Te } from "./iris-chat-thread.js";
|
|
16
|
+
import { IrisChatComposerVoiceCapture as Ae } from "./IrisChatComposerVoiceCapture.js";
|
|
17
|
+
import { startComposerSpeechRecognition as $e } from "./iris-chat-speech.js";
|
|
18
|
+
import { irisChatComposerVariants as Be } from "./iris-chat.variants.js";
|
|
19
|
+
const _e = [
|
|
16
20
|
{ label: "Auto", value: "auto" },
|
|
17
21
|
{ label: "Fast", value: "fast" }
|
|
18
|
-
],
|
|
22
|
+
], ct = Le(
|
|
19
23
|
"IrisChatComposer",
|
|
20
24
|
({
|
|
21
|
-
className:
|
|
22
|
-
value:
|
|
23
|
-
defaultValue:
|
|
24
|
-
onValueChange:
|
|
25
|
-
pending:
|
|
26
|
-
placeholder:
|
|
27
|
-
model:
|
|
28
|
-
defaultModel:
|
|
29
|
-
onModelChange:
|
|
30
|
-
models:
|
|
31
|
-
onSend:
|
|
32
|
-
onStop:
|
|
33
|
-
onAddClick:
|
|
34
|
-
onAttachClick:
|
|
35
|
-
onAttach:
|
|
36
|
-
onMicClick:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
className: n,
|
|
26
|
+
value: o,
|
|
27
|
+
defaultValue: se = "",
|
|
28
|
+
onValueChange: oe,
|
|
29
|
+
pending: x = !1,
|
|
30
|
+
placeholder: le,
|
|
31
|
+
model: ce,
|
|
32
|
+
defaultModel: de = "auto",
|
|
33
|
+
onModelChange: pe,
|
|
34
|
+
models: K = _e,
|
|
35
|
+
onSend: ue,
|
|
36
|
+
onStop: T,
|
|
37
|
+
onAddClick: A,
|
|
38
|
+
onAttachClick: $,
|
|
39
|
+
onAttach: he,
|
|
40
|
+
onMicClick: D,
|
|
41
|
+
speechRecognitionLocale: me,
|
|
42
|
+
onSpeechNotice: B
|
|
43
|
+
}, fe) => {
|
|
44
|
+
const { t: r } = ke(), y = Ee(), R = y ? Se({
|
|
45
|
+
isWindowPlacement: y.isWindowPlacement,
|
|
46
|
+
placement: y.placement,
|
|
47
|
+
frame: y.frame
|
|
48
|
+
}) : "stacked", [Ce, _] = ae({
|
|
49
|
+
prop: o,
|
|
50
|
+
defaultProp: se,
|
|
51
|
+
onChange: oe
|
|
52
|
+
}), [N, ge] = ae({
|
|
53
|
+
prop: ce,
|
|
54
|
+
defaultProp: de,
|
|
55
|
+
onChange: pe
|
|
56
|
+
}), W = C(null), k = C(null), u = C(null), h = C(!1), V = C({}), [w, L] = g(!1), [G, H] = g(
|
|
57
|
+
null
|
|
58
|
+
), [b, E] = g([]), [m, S] = g({}), [l, q] = g(!1), [J, be] = g(!1);
|
|
59
|
+
V.current = m;
|
|
60
|
+
const i = Ce ?? "", Q = C(i);
|
|
61
|
+
Q.current = i;
|
|
62
|
+
const F = i.trim().length > 0 || b.length > 0, ve = (e) => {
|
|
63
|
+
if ((e.kind === "permission" || e.messageKey === "speechNetwork" || e.messageKey === "speechError") && (h.current = !1, L(!1), u.current?.abort(), u.current = null), B) {
|
|
64
|
+
B(e);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
H(e);
|
|
68
|
+
}, xe = (e) => {
|
|
69
|
+
const a = W.current;
|
|
70
|
+
a && (a.accept = e, a.value = "", a.click());
|
|
71
|
+
}, P = (e) => {
|
|
52
72
|
if (!e?.length)
|
|
53
73
|
return;
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
for (const
|
|
58
|
-
|
|
59
|
-
return { ...
|
|
74
|
+
const a = Array.from(e);
|
|
75
|
+
he?.(a), E((c) => [...c, ...a]), S((c) => {
|
|
76
|
+
const v = {};
|
|
77
|
+
for (const f of a)
|
|
78
|
+
f.type.startsWith("image/") && (v[z(f)] = URL.createObjectURL(f));
|
|
79
|
+
return { ...c, ...v };
|
|
60
80
|
});
|
|
61
81
|
}, M = (e) => {
|
|
62
|
-
if (
|
|
63
|
-
|
|
82
|
+
if ($) {
|
|
83
|
+
$();
|
|
64
84
|
return;
|
|
65
85
|
}
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
86
|
+
xe(e);
|
|
87
|
+
}, O = () => {
|
|
88
|
+
h.current = !1, u.current?.stop(), u.current = null, L(!1);
|
|
89
|
+
}, ye = () => {
|
|
90
|
+
if (D) {
|
|
91
|
+
D();
|
|
70
92
|
return;
|
|
71
93
|
}
|
|
72
|
-
if (
|
|
73
|
-
|
|
94
|
+
if (w) {
|
|
95
|
+
O();
|
|
74
96
|
return;
|
|
75
97
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
98
|
+
H(null), h.current = !0;
|
|
99
|
+
const e = $e({
|
|
100
|
+
locale: me ?? "",
|
|
101
|
+
readBaseText: () => Q.current,
|
|
102
|
+
shouldContinueListening: () => h.current,
|
|
103
|
+
onDraftChange: _,
|
|
104
|
+
onListeningChange: L,
|
|
105
|
+
onNotice: ve
|
|
106
|
+
});
|
|
107
|
+
e || (h.current = !1), u.current = e;
|
|
84
108
|
};
|
|
85
|
-
|
|
109
|
+
j(
|
|
86
110
|
() => () => {
|
|
87
|
-
|
|
111
|
+
h.current = !1, u.current?.stop(), Object.values(V.current).forEach((e) => URL.revokeObjectURL(e));
|
|
88
112
|
},
|
|
89
113
|
[]
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
114
|
+
), j(() => {
|
|
115
|
+
i.trim() || q(!1);
|
|
116
|
+
}, [i]), j(() => {
|
|
117
|
+
je(k.current, l), be(
|
|
118
|
+
Ke(
|
|
119
|
+
k.current,
|
|
120
|
+
l,
|
|
121
|
+
i.split(`
|
|
122
|
+
`).length
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
}, [i, l, R, b.length]);
|
|
126
|
+
const X = le ?? r("irisChat.askAnything"), we = () => {
|
|
127
|
+
Object.values(m).forEach((e) => URL.revokeObjectURL(e)), S({}), E([]);
|
|
128
|
+
}, Y = () => {
|
|
129
|
+
!F || x || (ue?.(i.trim(), b), we());
|
|
95
130
|
};
|
|
96
|
-
return /* @__PURE__ */
|
|
131
|
+
return /* @__PURE__ */ s(
|
|
97
132
|
"form",
|
|
98
133
|
{
|
|
99
|
-
ref:
|
|
134
|
+
ref: fe,
|
|
100
135
|
"data-component": "iris-chat-composer",
|
|
101
|
-
"data-layout":
|
|
102
|
-
"data-pending":
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
136
|
+
"data-layout": R,
|
|
137
|
+
"data-pending": x ? "" : void 0,
|
|
138
|
+
"data-listening": w ? "" : void 0,
|
|
139
|
+
className: ne(
|
|
140
|
+
Be({ layout: R }),
|
|
141
|
+
"relative z-0",
|
|
142
|
+
F && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
|
|
143
|
+
n
|
|
107
144
|
),
|
|
108
145
|
onDragOver: (e) => {
|
|
109
146
|
e.dataTransfer.types.includes("Files") && e.preventDefault();
|
|
110
147
|
},
|
|
111
148
|
onDrop: (e) => {
|
|
112
|
-
e.dataTransfer.files.length && (e.preventDefault(),
|
|
149
|
+
e.dataTransfer.files.length && (e.preventDefault(), P(e.dataTransfer.files));
|
|
113
150
|
},
|
|
114
151
|
onPaste: (e) => {
|
|
115
|
-
const
|
|
116
|
-
|
|
152
|
+
const a = We(e.clipboardData);
|
|
153
|
+
a.length && (e.preventDefault(), P(a));
|
|
117
154
|
},
|
|
118
155
|
onKeyDown: (e) => {
|
|
119
|
-
e.key === "Escape"
|
|
156
|
+
if (e.key === "Escape") {
|
|
157
|
+
if (w) {
|
|
158
|
+
e.preventDefault(), O();
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
x && (e.preventDefault(), T?.());
|
|
162
|
+
}
|
|
120
163
|
},
|
|
121
164
|
onSubmit: (e) => {
|
|
122
|
-
e.preventDefault(),
|
|
165
|
+
e.preventDefault(), Y();
|
|
123
166
|
},
|
|
124
167
|
children: [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
name: e.name,
|
|
131
|
-
kind: e.type.startsWith("image/") ? "image" : "file",
|
|
132
|
-
sizeLabel: e.size < 1024 ? `${e.size} B` : `${Math.round(e.size / 1024)} KB`,
|
|
133
|
-
previewUrl: c[w(e)] ?? c[r],
|
|
134
|
-
onRemove: () => {
|
|
135
|
-
const o = w(e), d = c[o] ?? c[r];
|
|
136
|
-
d && URL.revokeObjectURL(d), I((S) => {
|
|
137
|
-
const y = { ...S };
|
|
138
|
-
return delete y[o], delete y[r], y;
|
|
139
|
-
}), z((S) => S.filter((y, oe) => oe !== i));
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
r
|
|
143
|
-
);
|
|
144
|
-
}) }) : null,
|
|
145
|
-
C === "stacked" ? /* @__PURE__ */ t(
|
|
146
|
-
"textarea",
|
|
147
|
-
{
|
|
148
|
-
id: "iris-chat-composer-input",
|
|
149
|
-
"data-testid": "iris-chat-composer-input",
|
|
150
|
-
rows: 2,
|
|
151
|
-
value: u,
|
|
152
|
-
placeholder: g ?? n("irisChat.askAnything"),
|
|
153
|
-
"aria-label": g ?? n("irisChat.askAnything"),
|
|
154
|
-
className: "w-full resize-none bg-transparent text-sm font-medium leading-5 text-content outline-none placeholder:text-content-empty",
|
|
155
|
-
onChange: (e) => x(e.target.value),
|
|
156
|
-
onKeyDown: (e) => {
|
|
157
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), N());
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
) : null,
|
|
161
|
-
/* @__PURE__ */ l("div", { className: "flex min-w-0 w-full items-center justify-between gap-1 [&_button[data-size=icon]]:size-8 [&_button[data-size=icon]_svg]:size-4", children: [
|
|
162
|
-
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-center", children: [
|
|
163
|
-
/* @__PURE__ */ t(
|
|
164
|
-
"input",
|
|
168
|
+
w && !D ? /* @__PURE__ */ t(Ae, { transcript: i, onStop: O }) : /* @__PURE__ */ s(ze, { children: [
|
|
169
|
+
b.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", "data-testid": "iris-chat-composer-attachments", children: b.map((e, a) => {
|
|
170
|
+
const c = z(e, a);
|
|
171
|
+
return /* @__PURE__ */ t(
|
|
172
|
+
Te,
|
|
165
173
|
{
|
|
166
|
-
|
|
167
|
-
type: "file",
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
) }) : /* @__PURE__ */ l(P, { children: [
|
|
185
|
-
/* @__PURE__ */ t(h, { label: n("irisChat.add"), children: /* @__PURE__ */ t(_, { asChild: !0, children: /* @__PURE__ */ t(p, { type: "button", variant: "ghost", size: "icon", "aria-label": n("irisChat.add"), children: /* @__PURE__ */ t(q, {}) }) }) }),
|
|
186
|
-
/* @__PURE__ */ l(W, { align: "start", children: [
|
|
187
|
-
/* @__PURE__ */ t(V, { onSelect: () => M("*/*"), children: n("irisChat.attachFile") }),
|
|
188
|
-
/* @__PURE__ */ t(V, { onSelect: () => M("image/*"), children: n("irisChat.attachImage") })
|
|
189
|
-
] })
|
|
190
|
-
] }),
|
|
191
|
-
/* @__PURE__ */ t(h, { label: n("irisChat.attach"), children: /* @__PURE__ */ t(
|
|
192
|
-
p,
|
|
174
|
+
name: e.name,
|
|
175
|
+
kind: e.type.startsWith("image/") ? "image" : "file",
|
|
176
|
+
sizeLabel: e.size < 1024 ? `${e.size} B` : `${Math.round(e.size / 1024)} KB`,
|
|
177
|
+
previewUrl: m[z(e)] ?? m[c],
|
|
178
|
+
onRemove: () => {
|
|
179
|
+
const v = z(e), f = m[v] ?? m[c];
|
|
180
|
+
f && URL.revokeObjectURL(f), S((U) => {
|
|
181
|
+
const I = { ...U };
|
|
182
|
+
return delete I[v], delete I[c], I;
|
|
183
|
+
}), E((U) => U.filter((I, Ie) => Ie !== a));
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
c
|
|
187
|
+
);
|
|
188
|
+
}) }) : null,
|
|
189
|
+
/* @__PURE__ */ s("div", { className: "relative min-w-0 w-full", children: [
|
|
190
|
+
(J || l) && /* @__PURE__ */ t(
|
|
191
|
+
d,
|
|
193
192
|
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
193
|
+
label: r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
|
|
194
|
+
children: /* @__PURE__ */ t(
|
|
195
|
+
p,
|
|
196
|
+
{
|
|
197
|
+
type: "button",
|
|
198
|
+
variant: "ghost",
|
|
199
|
+
size: "icon",
|
|
200
|
+
className: "absolute end-0 top-0 z-10 size-7 rounded-lg text-content-secondary",
|
|
201
|
+
"aria-label": r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
|
|
202
|
+
"data-testid": "iris-chat-composer-expand",
|
|
203
|
+
onClick: () => q((e) => !e),
|
|
204
|
+
children: /* @__PURE__ */ t(
|
|
205
|
+
Fe,
|
|
206
|
+
{
|
|
207
|
+
size: 14,
|
|
208
|
+
className: l ? "rotate-180" : void 0
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
}
|
|
212
|
+
)
|
|
200
213
|
}
|
|
201
|
-
)
|
|
202
|
-
|
|
203
|
-
"
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ t(
|
|
216
|
+
"textarea",
|
|
204
217
|
{
|
|
218
|
+
ref: k,
|
|
205
219
|
id: "iris-chat-composer-input",
|
|
206
220
|
"data-testid": "iris-chat-composer-input",
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
221
|
+
rows: 1,
|
|
222
|
+
value: i,
|
|
223
|
+
placeholder: X,
|
|
224
|
+
"aria-label": X,
|
|
225
|
+
className: ne(
|
|
226
|
+
"min-h-8 w-full resize-none bg-transparent py-0 text-sm font-medium leading-5 text-content outline-none placeholder:text-content-empty",
|
|
227
|
+
J || l ? "pe-9" : void 0
|
|
228
|
+
),
|
|
229
|
+
onChange: (e) => _(e.target.value),
|
|
212
230
|
onKeyDown: (e) => {
|
|
213
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(),
|
|
231
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y());
|
|
214
232
|
}
|
|
215
233
|
}
|
|
216
|
-
)
|
|
234
|
+
)
|
|
217
235
|
] }),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
/* @__PURE__ */ t(
|
|
221
|
-
"
|
|
236
|
+
/* @__PURE__ */ s("div", { className: "flex min-w-0 w-full items-center justify-between gap-1 [&_button[data-size=icon]]:size-8 [&_button[data-size=icon]_svg]:size-4", children: [
|
|
237
|
+
/* @__PURE__ */ s("div", { className: "flex min-w-0 shrink-0 items-center", children: [
|
|
238
|
+
/* @__PURE__ */ t(
|
|
239
|
+
"input",
|
|
240
|
+
{
|
|
241
|
+
ref: W,
|
|
242
|
+
type: "file",
|
|
243
|
+
hidden: !0,
|
|
244
|
+
multiple: !0,
|
|
245
|
+
"data-testid": "iris-chat-attach-input",
|
|
246
|
+
onChange: (e) => P(e.target.files)
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
A ? /* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(
|
|
250
|
+
p,
|
|
222
251
|
{
|
|
223
252
|
type: "button",
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"aria-label":
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */ t(ce, { size: 16, className: "rotate-90" })
|
|
230
|
-
]
|
|
253
|
+
variant: "ghost",
|
|
254
|
+
size: "icon",
|
|
255
|
+
"aria-label": r("irisChat.add"),
|
|
256
|
+
onClick: A,
|
|
257
|
+
children: /* @__PURE__ */ t(ie, {})
|
|
231
258
|
}
|
|
232
|
-
) }),
|
|
233
|
-
|
|
234
|
-
|
|
259
|
+
) }) : /* @__PURE__ */ s(Z, { children: [
|
|
260
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ t(p, { type: "button", variant: "ghost", size: "icon", "aria-label": r("irisChat.add"), children: /* @__PURE__ */ t(ie, {}) }) }) }),
|
|
261
|
+
/* @__PURE__ */ s(te, { align: "start", children: [
|
|
262
|
+
/* @__PURE__ */ t(re, { onSelect: () => M("*/*"), children: r("irisChat.attachFile") }),
|
|
263
|
+
/* @__PURE__ */ t(re, { onSelect: () => M("image/*"), children: r("irisChat.attachImage") })
|
|
264
|
+
] })
|
|
265
|
+
] }),
|
|
266
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.attach"), children: /* @__PURE__ */ t(
|
|
267
|
+
p,
|
|
235
268
|
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
269
|
+
type: "button",
|
|
270
|
+
variant: "ghost",
|
|
271
|
+
size: "icon",
|
|
272
|
+
"aria-label": r("irisChat.attach"),
|
|
273
|
+
onClick: () => M("*/*"),
|
|
274
|
+
children: /* @__PURE__ */ t(Pe, {})
|
|
239
275
|
}
|
|
240
276
|
) })
|
|
241
277
|
] }),
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
+
/* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
279
|
+
/* @__PURE__ */ s(Z, { children: [
|
|
280
|
+
/* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ s(
|
|
281
|
+
"button",
|
|
282
|
+
{
|
|
283
|
+
type: "button",
|
|
284
|
+
"data-testid": "iris-chat-model",
|
|
285
|
+
className: "flex h-8 max-w-24 shrink-0 items-center gap-0.5 truncate rounded-lg bg-secondary px-2 text-sm font-medium capitalize leading-none text-content",
|
|
286
|
+
"aria-label": r("irisChat.model"),
|
|
287
|
+
children: [
|
|
288
|
+
K.find((e) => e.value === N)?.label ?? N,
|
|
289
|
+
/* @__PURE__ */ t(De, { size: 16, className: "rotate-90" })
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
) }),
|
|
293
|
+
/* @__PURE__ */ t(te, { align: "end", children: /* @__PURE__ */ t(
|
|
294
|
+
Re,
|
|
295
|
+
{
|
|
296
|
+
value: N,
|
|
297
|
+
onValueChange: ge,
|
|
298
|
+
children: K.map((e) => /* @__PURE__ */ t(Ne, { value: e.value, children: e.label }, e.value))
|
|
299
|
+
}
|
|
300
|
+
) })
|
|
301
|
+
] }),
|
|
302
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.mic"), children: /* @__PURE__ */ t(
|
|
303
|
+
p,
|
|
304
|
+
{
|
|
305
|
+
type: "button",
|
|
306
|
+
variant: "ghost",
|
|
307
|
+
size: "icon",
|
|
308
|
+
"aria-label": r("irisChat.mic"),
|
|
309
|
+
onClick: ye,
|
|
310
|
+
children: /* @__PURE__ */ t(Me, {})
|
|
311
|
+
}
|
|
312
|
+
) }),
|
|
313
|
+
x ? /* @__PURE__ */ t(d, { label: r("irisChat.stop"), children: /* @__PURE__ */ t(
|
|
314
|
+
p,
|
|
315
|
+
{
|
|
316
|
+
type: "button",
|
|
317
|
+
variant: "default",
|
|
318
|
+
size: "icon",
|
|
319
|
+
"aria-label": r("irisChat.stop"),
|
|
320
|
+
"data-testid": "iris-chat-stop",
|
|
321
|
+
className: "rounded-full",
|
|
322
|
+
onClick: T,
|
|
323
|
+
children: /* @__PURE__ */ t(Oe, { size: 16 })
|
|
324
|
+
}
|
|
325
|
+
) }) : F ? /* @__PURE__ */ t(d, { label: r("irisChat.send"), children: /* @__PURE__ */ t(
|
|
326
|
+
p,
|
|
327
|
+
{
|
|
328
|
+
type: "submit",
|
|
329
|
+
variant: "default",
|
|
330
|
+
size: "icon",
|
|
331
|
+
"aria-label": r("irisChat.send"),
|
|
332
|
+
"data-testid": "iris-chat-send",
|
|
333
|
+
className: "rounded-full",
|
|
334
|
+
children: /* @__PURE__ */ t(Ue, { size: 16 })
|
|
335
|
+
}
|
|
336
|
+
) }) : null
|
|
337
|
+
] })
|
|
278
338
|
] })
|
|
279
|
-
] })
|
|
339
|
+
] }),
|
|
340
|
+
G ? /* @__PURE__ */ t("p", { className: "px-1 text-xs text-destructive", role: "alert", children: r(`irisChat.${G.messageKey}`) }) : null
|
|
280
341
|
]
|
|
281
342
|
}
|
|
282
343
|
);
|
|
283
344
|
}
|
|
284
345
|
);
|
|
285
|
-
function
|
|
286
|
-
return `${
|
|
287
|
-
}
|
|
288
|
-
function De(a) {
|
|
289
|
-
return a ? a.files.length ? Array.from(a.files) : Array.from(a.items).filter((s) => s.kind === "file").map((s) => s.getAsFile()).filter((s) => !!s) : [];
|
|
346
|
+
function z(n, o = 0) {
|
|
347
|
+
return `${n.name}:${n.size}:${n.lastModified}:${o}`;
|
|
290
348
|
}
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
return a.SpeechRecognition ?? a.webkitSpeechRecognition;
|
|
349
|
+
function We(n) {
|
|
350
|
+
return n ? n.files.length ? Array.from(n.files) : Array.from(n.items).filter((o) => o.kind === "file").map((o) => o.getAsFile()).filter((o) => !!o) : [];
|
|
294
351
|
}
|
|
295
352
|
export {
|
|
296
|
-
|
|
353
|
+
ct as IrisChatComposer
|
|
297
354
|
};
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
import { IrisChatFrame } from './iris-chat-frame';
|
|
2
|
+
import { IrisChatSnapPreset } from './iris-chat-snap-presets';
|
|
1
3
|
import { IrisChatPlacement } from './iris-chat.types';
|
|
2
4
|
import * as React from "react";
|
|
3
5
|
export type IrisChatContextValue = {
|
|
4
6
|
open: boolean;
|
|
5
7
|
setOpen: (open: boolean) => void;
|
|
8
|
+
requestClose: () => void;
|
|
9
|
+
isClosing: boolean;
|
|
10
|
+
registerPanelNode: (node: HTMLDivElement | null) => void;
|
|
11
|
+
isOpening: boolean;
|
|
6
12
|
placement: IrisChatPlacement;
|
|
7
13
|
setPlacement: (placement: IrisChatPlacement) => void;
|
|
14
|
+
frame: IrisChatFrame;
|
|
15
|
+
setFrame: (frame: IrisChatFrame) => void;
|
|
16
|
+
commitFrame: (frame: IrisChatFrame) => void;
|
|
17
|
+
resetFrame: () => void;
|
|
18
|
+
applyCompactFrame: () => void;
|
|
19
|
+
expandFromCompactFrame: () => void;
|
|
20
|
+
applySnapPreset: (preset: IrisChatSnapPreset) => void;
|
|
21
|
+
toggleWindowSize: () => void;
|
|
22
|
+
isWindowPlacement: boolean;
|
|
8
23
|
};
|
|
9
24
|
export declare function IrisChatProvider({ value, children, }: {
|
|
10
25
|
value: IrisChatContextValue;
|
|
@@ -12,3 +27,4 @@ export declare function IrisChatProvider({ value, children, }: {
|
|
|
12
27
|
}): import("react/jsx-runtime").JSX.Element;
|
|
13
28
|
export declare function useIrisChat(): IrisChatContextValue;
|
|
14
29
|
export declare function useIrisChatOptional(): IrisChatContextValue | null;
|
|
30
|
+
export declare function readIsIrisChatWindowPlacement(placement: IrisChatPlacement): boolean;
|