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