impact-nova 2.6.3 → 3.0.0-alpha.0
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/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +162 -146
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- 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/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { IrisChat as i, IrisChatBody as a, IrisChatDisclaimer as s, IrisChatFooter as e, IrisChatHeader as h, IrisChatHeaderBackButton as o, IrisChatHeaderCloseButton as C, IrisChatHeaderLeading as I, IrisChatHeaderMenuButton as n, IrisChatHeaderMinimizeButton as m, IrisChatHeaderNewChatButton as p, IrisChatHeaderTitle as d, IrisChatHeaderTrailing as u, IrisChatIconButton as f, IrisChatPanel as g, IrisChatTrigger as l } from "./iris-chat.js";
|
|
2
|
+
import { IrisChatComposer as x } from "./iris-chat-composer.js";
|
|
3
|
+
import { IrisChatActions as B, IrisChatAttachment as k, IrisChatChip as w, IrisChatDay as M, IrisChatError as S, IrisChatFollowUp as T, IrisChatFollowUps as A, IrisChatGreeting as F, IrisChatMessage as L, IrisChatSuggestion as P, IrisChatSuggestions as y, IrisChatThread as D, IrisChatWorkflow as U, IrisChatWorkflows as W } from "./iris-chat-thread.js";
|
|
4
|
+
import { IrisChatCitations as E, IrisChatProcessSteps as G, IrisChatThinking as N, IrisChatThinkingStatus as b } from "./iris-chat-thinking.js";
|
|
5
|
+
import { IrisChatMarkdown as q } from "./iris-chat-markdown.js";
|
|
6
|
+
import { IrisChatPrompt as J } from "./iris-chat-prompt.js";
|
|
7
|
+
import { IrisChatArtifact as O, IrisChatScenario as Q } from "./iris-chat-artifact.js";
|
|
8
|
+
import { IrisChatList as V, IrisChatListItem as X, IrisChatMenu as Y, IrisChatMenuSection as Z } from "./iris-chat-menu.js";
|
|
9
|
+
import { useIrisChat as $ } from "./iris-chat-context.js";
|
|
10
|
+
export {
|
|
11
|
+
i as IrisChat,
|
|
12
|
+
B as IrisChatActions,
|
|
13
|
+
O as IrisChatArtifact,
|
|
14
|
+
k as IrisChatAttachment,
|
|
15
|
+
a as IrisChatBody,
|
|
16
|
+
w as IrisChatChip,
|
|
17
|
+
E as IrisChatCitations,
|
|
18
|
+
x as IrisChatComposer,
|
|
19
|
+
M as IrisChatDay,
|
|
20
|
+
s as IrisChatDisclaimer,
|
|
21
|
+
S as IrisChatError,
|
|
22
|
+
T as IrisChatFollowUp,
|
|
23
|
+
A as IrisChatFollowUps,
|
|
24
|
+
e as IrisChatFooter,
|
|
25
|
+
F as IrisChatGreeting,
|
|
26
|
+
h as IrisChatHeader,
|
|
27
|
+
o as IrisChatHeaderBackButton,
|
|
28
|
+
C as IrisChatHeaderCloseButton,
|
|
29
|
+
I as IrisChatHeaderLeading,
|
|
30
|
+
n as IrisChatHeaderMenuButton,
|
|
31
|
+
m as IrisChatHeaderMinimizeButton,
|
|
32
|
+
p as IrisChatHeaderNewChatButton,
|
|
33
|
+
d as IrisChatHeaderTitle,
|
|
34
|
+
u as IrisChatHeaderTrailing,
|
|
35
|
+
f as IrisChatIconButton,
|
|
36
|
+
V as IrisChatList,
|
|
37
|
+
X as IrisChatListItem,
|
|
38
|
+
q as IrisChatMarkdown,
|
|
39
|
+
Y as IrisChatMenu,
|
|
40
|
+
Z as IrisChatMenuSection,
|
|
41
|
+
L as IrisChatMessage,
|
|
42
|
+
g as IrisChatPanel,
|
|
43
|
+
G as IrisChatProcessSteps,
|
|
44
|
+
J as IrisChatPrompt,
|
|
45
|
+
Q as IrisChatScenario,
|
|
46
|
+
P as IrisChatSuggestion,
|
|
47
|
+
y as IrisChatSuggestions,
|
|
48
|
+
N as IrisChatThinking,
|
|
49
|
+
b as IrisChatThinkingStatus,
|
|
50
|
+
D as IrisChatThread,
|
|
51
|
+
l as IrisChatTrigger,
|
|
52
|
+
U as IrisChatWorkflow,
|
|
53
|
+
W as IrisChatWorkflows,
|
|
54
|
+
$ as useIrisChat
|
|
55
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IrisChatArtifactProps, IrisChatScenarioProps } from './iris-chat.types';
|
|
2
|
+
declare const IrisChatArtifact: import('react').ForwardRefExoticComponent<IrisChatArtifactProps & import('react').RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const IrisChatScenario: import('react').ForwardRefExoticComponent<IrisChatScenarioProps & import('react').RefAttributes<HTMLElement>>;
|
|
4
|
+
export { IrisChatArtifact, IrisChatScenario };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Download as y, ThreeDots as v } from "impact-nova-icons";
|
|
3
|
+
import { Checkbox as C } from "../../forms/checkbox/checkbox.js";
|
|
4
|
+
import { DropdownMenu as w, DropdownMenuTrigger as j, DropdownMenuContent as k, DropdownMenuItem as p } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
5
|
+
import { ButtonIconTooltip as x } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { Button as b } from "../../primitives/button/button.js";
|
|
7
|
+
import { useImpactNovaI18n as I } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { createComponent as f } from "../../../lib/primitives/create-component.js";
|
|
9
|
+
import { cn as u } from "../../../lib/utils.js";
|
|
10
|
+
function N(o, i) {
|
|
11
|
+
const a = o.map((l) => l.header).join(","), n = i.map(
|
|
12
|
+
(l) => o.map((t) => {
|
|
13
|
+
const d = l.cells[t.id];
|
|
14
|
+
return `"${(typeof d == "string" || typeof d == "number" ? String(d) : "").replaceAll('"', '""')}"`;
|
|
15
|
+
}).join(",")
|
|
16
|
+
);
|
|
17
|
+
return [a, ...n].join(`
|
|
18
|
+
`);
|
|
19
|
+
}
|
|
20
|
+
function S(o, i, a) {
|
|
21
|
+
const n = new Blob([N(i, a)], { type: "text/csv;charset=utf-8" }), l = URL.createObjectURL(n), t = document.createElement("a");
|
|
22
|
+
t.href = l, t.download = `${o.replaceAll(/\s+/g, "-").toLowerCase()}.csv`, t.click(), URL.revokeObjectURL(l);
|
|
23
|
+
}
|
|
24
|
+
const O = f(
|
|
25
|
+
"IrisChatArtifact",
|
|
26
|
+
({ className: o, title: i, columns: a, rows: n, onDownload: l, onMore: t }, d) => {
|
|
27
|
+
const { t: c } = I(), m = () => {
|
|
28
|
+
S(i, a, n), l?.();
|
|
29
|
+
}, g = () => {
|
|
30
|
+
navigator.clipboard?.writeText(N(a, n)).catch(() => {
|
|
31
|
+
}), t?.();
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ r(
|
|
34
|
+
"section",
|
|
35
|
+
{
|
|
36
|
+
ref: d,
|
|
37
|
+
"data-component": "iris-chat-artifact",
|
|
38
|
+
className: u("min-w-0 w-full max-w-full overflow-hidden rounded-xl border border-stroke-subtle", o),
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ r("header", { className: "flex items-center justify-between gap-2 px-3 py-2", children: [
|
|
41
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
42
|
+
/* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
|
|
43
|
+
/* @__PURE__ */ e(x, { label: c("irisChat.download"), children: /* @__PURE__ */ e(
|
|
44
|
+
b,
|
|
45
|
+
{
|
|
46
|
+
type: "button",
|
|
47
|
+
variant: "ghost",
|
|
48
|
+
size: "iconSm",
|
|
49
|
+
"aria-label": c("irisChat.download"),
|
|
50
|
+
onClick: m,
|
|
51
|
+
children: /* @__PURE__ */ e(y, { size: 16 })
|
|
52
|
+
}
|
|
53
|
+
) }),
|
|
54
|
+
/* @__PURE__ */ r(w, { children: [
|
|
55
|
+
/* @__PURE__ */ e(x, { label: c("irisChat.moreActions"), children: /* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ e(
|
|
56
|
+
b,
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
variant: "ghost",
|
|
60
|
+
size: "iconSm",
|
|
61
|
+
"aria-label": c("irisChat.moreActions"),
|
|
62
|
+
children: /* @__PURE__ */ e(v, { size: 16 })
|
|
63
|
+
}
|
|
64
|
+
) }) }),
|
|
65
|
+
/* @__PURE__ */ r(k, { align: "end", children: [
|
|
66
|
+
/* @__PURE__ */ e(p, { onSelect: g, children: c("irisChat.copy") }),
|
|
67
|
+
/* @__PURE__ */ e(p, { onSelect: m, children: c("irisChat.download") })
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
] })
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ r("table", { className: "w-full table-fixed border-t border-stroke-subtle text-sm", children: [
|
|
73
|
+
/* @__PURE__ */ e("thead", { className: "bg-secondary", children: /* @__PURE__ */ r("tr", { children: [
|
|
74
|
+
/* @__PURE__ */ e("th", { className: "w-10 px-3 py-2", children: /* @__PURE__ */ e("span", { className: "sr-only", children: c("aria.toggleSelection") }) }),
|
|
75
|
+
a.map((s) => /* @__PURE__ */ e(
|
|
76
|
+
"th",
|
|
77
|
+
{
|
|
78
|
+
className: "px-3 py-2 text-start font-medium text-content",
|
|
79
|
+
children: s.header
|
|
80
|
+
},
|
|
81
|
+
s.id
|
|
82
|
+
))
|
|
83
|
+
] }) }),
|
|
84
|
+
/* @__PURE__ */ e("tbody", { children: n.map((s) => /* @__PURE__ */ r("tr", { className: "border-t border-stroke-subtle", children: [
|
|
85
|
+
/* @__PURE__ */ e("td", { className: "px-3 py-2", children: /* @__PURE__ */ e(C, { "aria-label": s.id }) }),
|
|
86
|
+
a.map((h) => /* @__PURE__ */ e("td", { className: "px-3 py-2 text-content", children: s.cells[h.id] }, h.id))
|
|
87
|
+
] }, s.id)) })
|
|
88
|
+
] }) })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
), $ = f(
|
|
94
|
+
"IrisChatScenario",
|
|
95
|
+
({ className: o, title: i, rows: a, notes: n }, l) => /* @__PURE__ */ r(
|
|
96
|
+
"section",
|
|
97
|
+
{
|
|
98
|
+
ref: l,
|
|
99
|
+
"data-component": "iris-chat-scenario",
|
|
100
|
+
className: u("flex flex-col gap-2 rounded-xl bg-secondary p-3", o),
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
103
|
+
a.length > 0 ? /* @__PURE__ */ e("dl", { className: "flex flex-col gap-2", children: a.map((t) => /* @__PURE__ */ r(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
className: "flex items-center justify-between rounded-lg border border-stroke-subtle px-3 py-2 text-sm",
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ e("dt", { className: "text-content-secondary", children: t.label }),
|
|
109
|
+
/* @__PURE__ */ e("dd", { className: "font-medium text-content", children: t.value })
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
t.label
|
|
113
|
+
)) }) : null,
|
|
114
|
+
n?.length ? /* @__PURE__ */ e("ul", { className: "flex flex-col gap-1 text-sm text-content", children: n.map((t) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
|
|
115
|
+
/* @__PURE__ */ e("span", { "aria-hidden": !0, className: "text-brand", children: "✓" }),
|
|
116
|
+
t
|
|
117
|
+
] }, t)) }) : null
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
export {
|
|
123
|
+
O as IrisChatArtifact,
|
|
124
|
+
$ as IrisChatScenario
|
|
125
|
+
};
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as A, useState as F, useEffect as le } from "react";
|
|
3
|
+
import { ChevronRight as ce } from "impact-nova-icons";
|
|
4
|
+
import { ButtonIconTooltip as h } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
5
|
+
import { Button as p } from "../../primitives/button/button.js";
|
|
6
|
+
import { DropdownMenu as P, DropdownMenuTrigger as _, DropdownMenuContent as W, DropdownMenuItem as V, DropdownMenuRadioGroup as ue, DropdownMenuRadioItem as de } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
7
|
+
import { useImpactNovaI18n as he } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { useControllableState as G } from "@radix-ui/react-use-controllable-state";
|
|
9
|
+
import { createComponent as pe } from "../../../lib/primitives/create-component.js";
|
|
10
|
+
import { cn as me } from "../../../lib/utils.js";
|
|
11
|
+
import { useIrisChatOptional as fe } from "./iris-chat-context.js";
|
|
12
|
+
import { IrisChatAddIcon as q, IrisChatAttachIcon as ge, IrisChatMicIcon as Ce, IrisChatStopIcon as be, IrisChatSendIcon as ve } from "./iris-chat-icons.js";
|
|
13
|
+
import { IrisChatAttachment as ye } from "./iris-chat-thread.js";
|
|
14
|
+
import { irisChatComposerVariants as we } from "./iris-chat.variants.js";
|
|
15
|
+
const xe = [
|
|
16
|
+
{ label: "Auto", value: "auto" },
|
|
17
|
+
{ label: "Fast", value: "fast" }
|
|
18
|
+
], $e = pe(
|
|
19
|
+
"IrisChatComposer",
|
|
20
|
+
({
|
|
21
|
+
className: a,
|
|
22
|
+
value: s,
|
|
23
|
+
defaultValue: H = "",
|
|
24
|
+
onValueChange: J,
|
|
25
|
+
pending: f = !1,
|
|
26
|
+
placeholder: g,
|
|
27
|
+
model: Q,
|
|
28
|
+
defaultModel: X = "auto",
|
|
29
|
+
onModelChange: Y,
|
|
30
|
+
models: U = xe,
|
|
31
|
+
onSend: Z,
|
|
32
|
+
onStop: j,
|
|
33
|
+
onAddClick: O,
|
|
34
|
+
onAttachClick: E,
|
|
35
|
+
onAttach: ee,
|
|
36
|
+
onMicClick: K
|
|
37
|
+
}, te) => {
|
|
38
|
+
const { t: n } = he(), $ = fe(), C = $?.placement === "minimized" || $?.placement === "composer" ? "inline" : "stacked", [ie, x] = G({
|
|
39
|
+
prop: s,
|
|
40
|
+
defaultProp: H,
|
|
41
|
+
onChange: J
|
|
42
|
+
}), [D, ne] = G({
|
|
43
|
+
prop: Q,
|
|
44
|
+
defaultProp: X,
|
|
45
|
+
onChange: Y
|
|
46
|
+
}), T = A(null), k = A(null), B = A({}), [b, m] = F(!1), [v, z] = F([]), [c, I] = F({});
|
|
47
|
+
B.current = c;
|
|
48
|
+
const u = ie ?? "", R = u.trim().length > 0 || v.length > 0, ae = (e) => {
|
|
49
|
+
const i = T.current;
|
|
50
|
+
i && (i.accept = e, i.value = "", i.click());
|
|
51
|
+
}, L = (e) => {
|
|
52
|
+
if (!e?.length)
|
|
53
|
+
return;
|
|
54
|
+
const i = Array.from(e);
|
|
55
|
+
ee?.(i), z((r) => [...r, ...i]), I((r) => {
|
|
56
|
+
const o = {};
|
|
57
|
+
for (const d of i)
|
|
58
|
+
d.type.startsWith("image/") && (o[w(d)] = URL.createObjectURL(d));
|
|
59
|
+
return { ...r, ...o };
|
|
60
|
+
});
|
|
61
|
+
}, M = (e) => {
|
|
62
|
+
if (E) {
|
|
63
|
+
E();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
ae(e);
|
|
67
|
+
}, re = () => {
|
|
68
|
+
if (K) {
|
|
69
|
+
K();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (b) {
|
|
73
|
+
k.current?.stop(), m(!1);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const e = ke();
|
|
77
|
+
if (!e)
|
|
78
|
+
return;
|
|
79
|
+
const i = new e();
|
|
80
|
+
i.continuous = !1, i.interimResults = !1, i.onresult = (r) => {
|
|
81
|
+
const o = r.results[0]?.[0]?.transcript?.trim();
|
|
82
|
+
o && x(u ? `${u} ${o}` : o), m(!1);
|
|
83
|
+
}, i.onerror = () => m(!1), i.onend = () => m(!1), k.current = i, i.start(), m(!0);
|
|
84
|
+
};
|
|
85
|
+
le(
|
|
86
|
+
() => () => {
|
|
87
|
+
k.current?.stop(), Object.values(B.current).forEach((e) => URL.revokeObjectURL(e));
|
|
88
|
+
},
|
|
89
|
+
[]
|
|
90
|
+
);
|
|
91
|
+
const se = () => {
|
|
92
|
+
Object.values(c).forEach((e) => URL.revokeObjectURL(e)), I({}), z([]);
|
|
93
|
+
}, N = () => {
|
|
94
|
+
!R || f || (Z?.(u.trim(), v), se());
|
|
95
|
+
};
|
|
96
|
+
return /* @__PURE__ */ l(
|
|
97
|
+
"form",
|
|
98
|
+
{
|
|
99
|
+
ref: te,
|
|
100
|
+
"data-component": "iris-chat-composer",
|
|
101
|
+
"data-layout": C,
|
|
102
|
+
"data-pending": f ? "" : void 0,
|
|
103
|
+
className: me(
|
|
104
|
+
we({ layout: C }),
|
|
105
|
+
R && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
|
|
106
|
+
a
|
|
107
|
+
),
|
|
108
|
+
onDragOver: (e) => {
|
|
109
|
+
e.dataTransfer.types.includes("Files") && e.preventDefault();
|
|
110
|
+
},
|
|
111
|
+
onDrop: (e) => {
|
|
112
|
+
e.dataTransfer.files.length && (e.preventDefault(), L(e.dataTransfer.files));
|
|
113
|
+
},
|
|
114
|
+
onPaste: (e) => {
|
|
115
|
+
const i = De(e.clipboardData);
|
|
116
|
+
i.length && (e.preventDefault(), L(i));
|
|
117
|
+
},
|
|
118
|
+
onKeyDown: (e) => {
|
|
119
|
+
e.key === "Escape" && f && (e.preventDefault(), j?.());
|
|
120
|
+
},
|
|
121
|
+
onSubmit: (e) => {
|
|
122
|
+
e.preventDefault(), N();
|
|
123
|
+
},
|
|
124
|
+
children: [
|
|
125
|
+
v.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", "data-testid": "iris-chat-composer-attachments", children: v.map((e, i) => {
|
|
126
|
+
const r = w(e, i);
|
|
127
|
+
return /* @__PURE__ */ t(
|
|
128
|
+
ye,
|
|
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",
|
|
165
|
+
{
|
|
166
|
+
ref: T,
|
|
167
|
+
type: "file",
|
|
168
|
+
hidden: !0,
|
|
169
|
+
multiple: !0,
|
|
170
|
+
"data-testid": "iris-chat-attach-input",
|
|
171
|
+
onChange: (e) => L(e.target.files)
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
O ? /* @__PURE__ */ t(h, { label: n("irisChat.add"), children: /* @__PURE__ */ t(
|
|
175
|
+
p,
|
|
176
|
+
{
|
|
177
|
+
type: "button",
|
|
178
|
+
variant: "ghost",
|
|
179
|
+
size: "icon",
|
|
180
|
+
"aria-label": n("irisChat.add"),
|
|
181
|
+
onClick: O,
|
|
182
|
+
children: /* @__PURE__ */ t(q, {})
|
|
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,
|
|
193
|
+
{
|
|
194
|
+
type: "button",
|
|
195
|
+
variant: "ghost",
|
|
196
|
+
size: "icon",
|
|
197
|
+
"aria-label": n("irisChat.attach"),
|
|
198
|
+
onClick: () => M("*/*"),
|
|
199
|
+
children: /* @__PURE__ */ t(ge, {})
|
|
200
|
+
}
|
|
201
|
+
) }),
|
|
202
|
+
C === "inline" ? /* @__PURE__ */ t(
|
|
203
|
+
"input",
|
|
204
|
+
{
|
|
205
|
+
id: "iris-chat-composer-input",
|
|
206
|
+
"data-testid": "iris-chat-composer-input",
|
|
207
|
+
value: u,
|
|
208
|
+
placeholder: g ?? n("irisChat.askAnything"),
|
|
209
|
+
"aria-label": g ?? n("irisChat.askAnything"),
|
|
210
|
+
className: "ms-1 h-8 min-w-0 flex-1 overflow-hidden bg-transparent py-0 text-sm font-medium leading-8 text-content outline-none placeholder:text-content-empty",
|
|
211
|
+
onChange: (e) => x(e.target.value),
|
|
212
|
+
onKeyDown: (e) => {
|
|
213
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), N());
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
) : null
|
|
217
|
+
] }),
|
|
218
|
+
/* @__PURE__ */ l("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
219
|
+
/* @__PURE__ */ l(P, { children: [
|
|
220
|
+
/* @__PURE__ */ t(_, { asChild: !0, children: /* @__PURE__ */ l(
|
|
221
|
+
"button",
|
|
222
|
+
{
|
|
223
|
+
type: "button",
|
|
224
|
+
"data-testid": "iris-chat-model",
|
|
225
|
+
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",
|
|
226
|
+
"aria-label": n("irisChat.model"),
|
|
227
|
+
children: [
|
|
228
|
+
U.find((e) => e.value === D)?.label ?? D,
|
|
229
|
+
/* @__PURE__ */ t(ce, { size: 16, className: "rotate-90" })
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
) }),
|
|
233
|
+
/* @__PURE__ */ t(W, { align: "end", children: /* @__PURE__ */ t(
|
|
234
|
+
ue,
|
|
235
|
+
{
|
|
236
|
+
value: D,
|
|
237
|
+
onValueChange: ne,
|
|
238
|
+
children: U.map((e) => /* @__PURE__ */ t(de, { value: e.value, children: e.label }, e.value))
|
|
239
|
+
}
|
|
240
|
+
) })
|
|
241
|
+
] }),
|
|
242
|
+
/* @__PURE__ */ t(h, { label: n(b ? "irisChat.listening" : "irisChat.mic"), children: /* @__PURE__ */ t(
|
|
243
|
+
p,
|
|
244
|
+
{
|
|
245
|
+
type: "button",
|
|
246
|
+
variant: "ghost",
|
|
247
|
+
size: "icon",
|
|
248
|
+
"aria-label": n(b ? "irisChat.listening" : "irisChat.mic"),
|
|
249
|
+
"aria-pressed": b,
|
|
250
|
+
onClick: re,
|
|
251
|
+
children: /* @__PURE__ */ t(Ce, {})
|
|
252
|
+
}
|
|
253
|
+
) }),
|
|
254
|
+
f ? /* @__PURE__ */ t(h, { label: n("irisChat.stop"), children: /* @__PURE__ */ t(
|
|
255
|
+
p,
|
|
256
|
+
{
|
|
257
|
+
type: "button",
|
|
258
|
+
variant: "default",
|
|
259
|
+
size: "icon",
|
|
260
|
+
"aria-label": n("irisChat.stop"),
|
|
261
|
+
"data-testid": "iris-chat-stop",
|
|
262
|
+
className: "rounded-full",
|
|
263
|
+
onClick: j,
|
|
264
|
+
children: /* @__PURE__ */ t(be, { size: 16 })
|
|
265
|
+
}
|
|
266
|
+
) }) : R ? /* @__PURE__ */ t(h, { label: n("irisChat.send"), children: /* @__PURE__ */ t(
|
|
267
|
+
p,
|
|
268
|
+
{
|
|
269
|
+
type: "submit",
|
|
270
|
+
variant: "default",
|
|
271
|
+
size: "icon",
|
|
272
|
+
"aria-label": n("irisChat.send"),
|
|
273
|
+
"data-testid": "iris-chat-send",
|
|
274
|
+
className: "rounded-full",
|
|
275
|
+
children: /* @__PURE__ */ t(ve, { size: 16 })
|
|
276
|
+
}
|
|
277
|
+
) }) : null
|
|
278
|
+
] })
|
|
279
|
+
] })
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
function w(a, s = 0) {
|
|
286
|
+
return `${a.name}:${a.size}:${a.lastModified}:${s}`;
|
|
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) : [];
|
|
290
|
+
}
|
|
291
|
+
function ke() {
|
|
292
|
+
const a = window;
|
|
293
|
+
return a.SpeechRecognition ?? a.webkitSpeechRecognition;
|
|
294
|
+
}
|
|
295
|
+
export {
|
|
296
|
+
$e as IrisChatComposer
|
|
297
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IrisChatPlacement } from './iris-chat.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type IrisChatContextValue = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: (open: boolean) => void;
|
|
6
|
+
placement: IrisChatPlacement;
|
|
7
|
+
setPlacement: (placement: IrisChatPlacement) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function IrisChatProvider({ value, children, }: {
|
|
10
|
+
value: IrisChatContextValue;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function useIrisChat(): IrisChatContextValue;
|
|
14
|
+
export declare function useIrisChatOptional(): IrisChatContextValue | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
const e = r.createContext(null);
|
|
4
|
+
function s({
|
|
5
|
+
value: t,
|
|
6
|
+
children: n
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ o(e.Provider, { value: t, children: n });
|
|
9
|
+
}
|
|
10
|
+
function u() {
|
|
11
|
+
const t = r.useContext(e);
|
|
12
|
+
if (!t)
|
|
13
|
+
throw new Error("IrisChat parts must render inside IrisChat.");
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
function a() {
|
|
17
|
+
return r.useContext(e);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
s as IrisChatProvider,
|
|
21
|
+
u as useIrisChat,
|
|
22
|
+
a as useIrisChatOptional
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type IconProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function IrisChatAddIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function IrisChatAttachIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function IrisChatMicIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function IrisChatSendIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function IrisChatStopIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function IrisChatHamburgerIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function IrisChatMinimizeIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function IrisChatSuggestIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function IrisChatLikeIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function IrisChatDislikeIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function IrisChatCopyIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function IrisChatRetryIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function IrisChatSpeakIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|