@trinityui/design-system 2.11.1 → 2.13.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/CHANGELOG.md +2155 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +505 -28
- package/README.md +281 -120
- package/dist/IllustratedMessage.js +546 -1341
- package/dist/accessibility.d.ts +596 -18
- package/dist/accessibility.d.ts.map +1 -1
- package/dist/accessibility.js +458 -0
- package/dist/app-shell.js +18458 -10385
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +8507 -6059
- package/dist/color-contrast.d.ts +35 -0
- package/dist/color-contrast.d.ts.map +1 -0
- package/dist/commonjs-helpers.js +8 -0
- package/dist/component-color-references.d.ts +175 -0
- package/dist/component-color-references.d.ts.map +1 -0
- package/dist/components/AI/AIActions.d.ts +72 -12
- package/dist/components/AI/AIActions.d.ts.map +1 -1
- package/dist/components/AI/AIAvatar.d.ts +31 -3
- package/dist/components/AI/AIAvatar.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.d.ts +159 -77
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +292 -40
- package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.utils.d.ts +25 -7
- package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -1
- package/dist/components/AI/AIChat.d.ts +12 -0
- package/dist/components/AI/AIChat.d.ts.map +1 -1
- package/dist/components/AI/AIChatWelcome.d.ts +254 -0
- package/dist/components/AI/AIChatWelcome.d.ts.map +1 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts +134 -0
- package/dist/components/AI/AIClarificationPrompt.d.ts.map +1 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts +117 -0
- package/dist/components/AI/AIConfidenceBadge.d.ts.map +1 -0
- package/dist/components/AI/AIConfigContext.d.ts +100 -0
- package/dist/components/AI/AIConfigContext.d.ts.map +1 -0
- package/dist/components/AI/AIConfigProvider.d.ts +66 -0
- package/dist/components/AI/AIConfigProvider.d.ts.map +1 -0
- package/dist/components/AI/AIContainer.d.ts +80 -11
- package/dist/components/AI/AIContainer.d.ts.map +1 -1
- package/dist/components/AI/AIExplainability.d.ts +39 -5
- package/dist/components/AI/AIExplainability.d.ts.map +1 -1
- package/dist/components/AI/AIFeedbackControl.d.ts +113 -0
- package/dist/components/AI/AIFeedbackControl.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackForm.d.ts +117 -0
- package/dist/components/AI/AIFeedbackForm.d.ts.map +1 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts +16 -0
- package/dist/components/AI/AIFeedbackHostContext.d.ts.map +1 -0
- package/dist/components/AI/AILabel.d.ts +39 -6
- package/dist/components/AI/AILabel.d.ts.map +1 -1
- package/dist/components/AI/AIMessage.d.ts +337 -42
- package/dist/components/AI/AIMessage.d.ts.map +1 -1
- package/dist/components/AI/AIPlanReview.d.ts +194 -0
- package/dist/components/AI/AIPlanReview.d.ts.map +1 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts +119 -0
- package/dist/components/AI/AIQueryDisclosure.d.ts.map +1 -0
- package/dist/components/AI/AIRelatedQuestions.d.ts +50 -11
- package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
- package/dist/components/AI/AIResponseRenderer.d.ts +133 -21
- package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
- package/dist/components/AI/AIResponseSourcesContext.d.ts +83 -0
- package/dist/components/AI/AIResponseSourcesContext.d.ts.map +1 -0
- package/dist/components/AI/AIReviewItem.d.ts +142 -0
- package/dist/components/AI/AIReviewItem.d.ts.map +1 -0
- package/dist/components/AI/AISourceChip.d.ts +135 -0
- package/dist/components/AI/AISourceChip.d.ts.map +1 -0
- package/dist/components/AI/AISources.d.ts +81 -11
- package/dist/components/AI/AISources.d.ts.map +1 -1
- package/dist/components/AI/AISourcesPanel.d.ts +43 -7
- package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.d.ts +104 -16
- package/dist/components/AI/AITextBlock.d.ts.map +1 -1
- package/dist/components/AI/AITextBlock.parser.d.ts +153 -0
- package/dist/components/AI/AITextBlock.parser.d.ts.map +1 -0
- package/dist/components/AI/AIVerificationBadge.d.ts +94 -0
- package/dist/components/AI/AIVerificationBadge.d.ts.map +1 -0
- package/dist/components/AI/AIVisuals.d.ts +92 -23
- package/dist/components/AI/AIVisuals.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceInput.d.ts +42 -11
- package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
- package/dist/components/AI/AIVoiceMode.d.ts +16 -2
- package/dist/components/AI/AIVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/BlockErrorBoundary.d.ts +77 -0
- package/dist/components/AI/BlockErrorBoundary.d.ts.map +1 -0
- package/dist/components/AI/ChatHeader.d.ts +41 -4
- package/dist/components/AI/ChatHeader.d.ts.map +1 -1
- package/dist/components/AI/ChatHistoryList.d.ts +25 -12
- package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
- package/dist/components/AI/ChatThread.d.ts +263 -13
- package/dist/components/AI/ChatThread.d.ts.map +1 -1
- package/dist/components/AI/InThreadContext.d.ts +14 -0
- package/dist/components/AI/InThreadContext.d.ts.map +1 -0
- package/dist/components/AI/InsightEngine.d.ts +270 -46
- package/dist/components/AI/InsightEngine.d.ts.map +1 -1
- package/dist/components/AI/InsightEngineInput.d.ts +47 -4
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/AI/MessageActionButton.d.ts +72 -0
- package/dist/components/AI/MessageActionButton.d.ts.map +1 -0
- package/dist/components/AI/QueryInput.d.ts.map +1 -1
- package/dist/components/AI/UserAvatar.d.ts +50 -4
- package/dist/components/AI/UserAvatar.d.ts.map +1 -1
- package/dist/components/AI/UserMessage.d.ts +32 -3
- package/dist/components/AI/UserMessage.d.ts.map +1 -1
- package/dist/components/AI/blockRendererContext.d.ts +64 -0
- package/dist/components/AI/blockRendererContext.d.ts.map +1 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts +48 -0
- package/dist/components/AI/hitlBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/index.d.ts +23 -6
- package/dist/components/AI/index.d.ts.map +1 -1
- package/dist/components/AI/moleculeBlockRenderers.d.ts +15 -0
- package/dist/components/AI/moleculeBlockRenderers.d.ts.map +1 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts +8 -0
- package/dist/components/AI/planReviewBlockRenderer.d.ts.map +1 -0
- package/dist/components/AI/strings/defaults.d.ts +31 -0
- package/dist/components/AI/strings/defaults.d.ts.map +1 -0
- package/dist/components/AI/tokens.d.ts +185 -20
- package/dist/components/AI/tokens.d.ts.map +1 -1
- package/dist/components/AI/types/hitl.d.ts +2294 -0
- package/dist/components/AI/types/hitl.d.ts.map +1 -0
- package/dist/components/AI/types/index.d.ts +2 -1
- package/dist/components/AI/types/index.d.ts.map +1 -1
- package/dist/components/AI/types/response.d.ts +428 -40
- package/dist/components/AI/types/response.d.ts.map +1 -1
- package/dist/components/AI/useBlockSources.d.ts +67 -0
- package/dist/components/AI/useBlockSources.d.ts.map +1 -0
- package/dist/components/AI/useBrowserVoiceMode.d.ts +31 -2
- package/dist/components/AI/useBrowserVoiceMode.d.ts.map +1 -1
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts +30 -0
- package/dist/components/AI/useWelcomeComposerHandoff.d.ts.map +1 -0
- package/dist/components/AI/utils/alphaIndex.d.ts +19 -0
- package/dist/components/AI/utils/alphaIndex.d.ts.map +1 -0
- package/dist/components/AI/utils/blockReady.d.ts +54 -0
- package/dist/components/AI/utils/blockReady.d.ts.map +1 -0
- package/dist/components/AI/utils/blocks.d.ts +28 -0
- package/dist/components/AI/utils/blocks.d.ts.map +1 -0
- package/dist/components/AI/utils/confidence.d.ts +182 -0
- package/dist/components/AI/utils/confidence.d.ts.map +1 -0
- package/dist/components/AI/utils/filters.d.ts +31 -0
- package/dist/components/AI/utils/filters.d.ts.map +1 -0
- package/dist/components/AI/utils/responseText.d.ts +8 -0
- package/dist/components/AI/utils/responseText.d.ts.map +1 -0
- package/dist/components/AI/utils/sources.d.ts +110 -0
- package/dist/components/AI/utils/sources.d.ts.map +1 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -1
- package/dist/components/AIDigestCard/types.d.ts +42 -5
- package/dist/components/AIDigestCard/types.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFab.d.ts +33 -6
- package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
- package/dist/components/AppLayout/AppLayout.d.ts +135 -7
- package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/components/AppLayout/InsightEnginePanel.d.ts +315 -21
- package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ResizablePanel.d.ts +145 -8
- package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +6 -0
- package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
- package/dist/components/AppLayout/index.d.ts +3 -3
- package/dist/components/AppLayout/index.d.ts.map +1 -1
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts +32 -0
- package/dist/components/AppLayout/insightEnginePanel.demo.d.ts.map +1 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts +26 -0
- package/dist/components/AppLayout/panelPropsPath.d.ts.map +1 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts +49 -0
- package/dist/components/AppLayout/panelResizeTransition.d.ts.map +1 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts +40 -0
- package/dist/components/AppLayout/toChatThreadMessage.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +5 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +4 -3
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -1
- package/dist/components/AuditDrawer/index.d.ts +1 -1
- package/dist/components/AuditDrawer/index.d.ts.map +1 -1
- package/dist/components/AuditDrawer/types.d.ts +39 -5
- package/dist/components/AuditDrawer/types.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +10 -2
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomLegend.d.ts +11 -2
- package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/gaugeGeometry.d.ts +35 -0
- package/dist/components/Charts/gaugeGeometry.d.ts.map +1 -0
- package/dist/components/Charts/highcharts.d.ts +23 -0
- package/dist/components/Charts/highcharts.d.ts.map +1 -0
- package/dist/components/Charts/highchartsUtils.d.ts +101 -6
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/index.d.ts.map +1 -1
- package/dist/components/Charts/tokens.d.ts +21 -0
- package/dist/components/Charts/tokens.d.ts.map +1 -1
- package/dist/components/Charts/types.d.ts +7 -7
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
- package/dist/components/ChoiceChips/ChoiceChips.d.ts +106 -0
- package/dist/components/ChoiceChips/ChoiceChips.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +23 -2
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +80 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +3 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +54 -3
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/CommandPalette/index.d.ts +1 -1
- package/dist/components/CommandPalette/index.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +80 -0
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/DataCard/DataCard.d.ts +11 -1
- package/dist/components/DataCard/DataCard.d.ts.map +1 -1
- package/dist/components/DataTable/CellRenderers.d.ts +8 -11
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +1 -1
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/columnContext.d.ts +8 -0
- package/dist/components/DataTable/columnContext.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -2
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/labels.d.ts +13 -0
- package/dist/components/DataTable/labels.d.ts.map +1 -0
- package/dist/components/DataTable/types.d.ts +34 -0
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DetailsPopover/DetailsPopover.d.ts +185 -0
- package/dist/components/DetailsPopover/DetailsPopover.d.ts.map +1 -0
- package/dist/components/DiffViewer/DiffViewer.d.ts +3 -2
- package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
- package/dist/components/Disclosure/Disclosure.d.ts +83 -0
- package/dist/components/Disclosure/Disclosure.d.ts.map +1 -0
- package/dist/components/DockLayout/DockLayout.d.ts +58 -0
- package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
- package/dist/components/DockLayout/index.d.ts +1 -1
- package/dist/components/DockLayout/index.d.ts.map +1 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts +5 -1
- package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -1
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +6 -2
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +141 -6
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/FileUpload/index.d.ts +1 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts +27 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar/index.d.ts +1 -1
- package/dist/components/FilterBar/index.d.ts.map +1 -1
- package/dist/components/FlowAutoLayout/useFlowAutoLayout.d.ts.map +1 -1
- package/dist/components/GanttView/GanttView.d.ts +24 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -1
- package/dist/components/GanttView/types.d.ts +33 -7
- package/dist/components/GanttView/types.d.ts.map +1 -1
- package/dist/components/GaugeCard/GaugeCard.d.ts +4 -3
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -1
- package/dist/components/GaugeCard/geometry.d.ts +59 -0
- package/dist/components/GaugeCard/geometry.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -1
- package/dist/components/GeoStatusMap/types.d.ts +8 -5
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -1
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -1
- package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -1
- package/dist/components/Icon.d.ts +567 -10
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/IllustratedMessage.d.ts +52 -3
- package/dist/components/IllustratedMessage.d.ts.map +1 -1
- package/dist/components/InlineEditableText/InlineEditableText.d.ts +117 -0
- package/dist/components/InlineEditableText/InlineEditableText.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -1
- package/dist/components/InsightCard/types.d.ts +10 -3
- package/dist/components/InsightCard/types.d.ts.map +1 -1
- package/dist/components/KeyValueList/KeyValueList.d.ts +94 -0
- package/dist/components/KeyValueList/KeyValueList.d.ts.map +1 -0
- package/dist/components/LandingPage/FeatureCard.d.ts +4 -0
- package/dist/components/LandingPage/FeatureCard.d.ts.map +1 -1
- package/dist/components/LandingPage/LandingPage.d.ts +43 -4
- package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
- package/dist/components/LandingPage/heroTone.d.ts +54 -0
- package/dist/components/LandingPage/heroTone.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
- package/dist/components/MetaChip/MetaChip.d.ts +113 -0
- package/dist/components/MetaChip/MetaChip.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +222 -20
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +5 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/OrgChart/types.d.ts +31 -7
- package/dist/components/OrgChart/types.d.ts.map +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/components/PageTOC/PageTOC.d.ts +2 -1
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -1
- package/dist/components/Popper/Popper.d.ts +80 -9
- package/dist/components/Popper/Popper.d.ts.map +1 -1
- package/dist/components/Popper/index.d.ts +1 -1
- package/dist/components/Popper/index.d.ts.map +1 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +5 -1
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +49 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/SearchInput/index.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +11 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
- package/dist/components/SplitPane/SplitPane.d.ts +2 -1
- package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Badge.d.ts +6 -1
- package/dist/components/StatusIndicator/Badge.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Chip.d.ts +3 -1
- package/dist/components/StatusIndicator/Chip.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Indicators.d.ts +5 -1
- package/dist/components/StatusIndicator/Indicators.d.ts.map +1 -1
- package/dist/components/StatusIndicator/Legend.d.ts.map +1 -1
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +98 -4
- package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
- package/dist/components/StatusIndicator/index.d.ts +2 -2
- package/dist/components/StatusIndicator/index.d.ts.map +1 -1
- package/dist/components/StatusIndicator/types.d.ts +48 -1
- package/dist/components/StatusIndicator/types.d.ts.map +1 -1
- package/dist/components/StepList/StepList.d.ts +80 -0
- package/dist/components/StepList/StepList.d.ts.map +1 -0
- package/dist/components/StepList/StepStatusMarker.d.ts +39 -0
- package/dist/components/StepList/StepStatusMarker.d.ts.map +1 -0
- package/dist/components/StepList/stepStatus.d.ts +30 -0
- package/dist/components/StepList/stepStatus.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +57 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Timeline/index.d.ts.map +1 -1
- package/dist/components/Timeline/timelineLabels.d.ts +70 -0
- package/dist/components/Timeline/timelineLabels.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/TopNavHeader.d.ts +6 -0
- package/dist/components/TopNavHeader.d.ts.map +1 -1
- package/dist/components/TopNavWithSidebar.d.ts +49 -1
- package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
- package/dist/components/Tour/Tour.d.ts +18 -1
- package/dist/components/Tour/Tour.d.ts.map +1 -1
- package/dist/components/TransferList/TransferList.d.ts +123 -4
- package/dist/components/TransferList/TransferList.d.ts.map +1 -1
- package/dist/components/TransferList/index.d.ts +1 -1
- package/dist/components/TransferList/index.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.d.ts +97 -8
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/index.d.ts +1 -1
- package/dist/components/TreeView/index.d.ts.map +1 -1
- package/dist/components/TrinityLoader.d.ts.map +1 -1
- package/dist/components/icons/featherExtensions.d.ts +55 -0
- package/dist/components/icons/featherExtensions.d.ts.map +1 -0
- package/dist/components/icons/materialExtensions.d.ts +20 -0
- package/dist/components/icons/materialExtensions.d.ts.map +1 -0
- package/dist/components/internal/index.d.ts +87 -0
- package/dist/components/internal/index.d.ts.map +1 -1
- package/dist/components/navigation/MenuListWithHeading.d.ts +33 -0
- package/dist/components/navigation/MenuListWithHeading.d.ts.map +1 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts +13 -0
- package/dist/components/navigation/clientSelectorLabels.d.ts.map +1 -0
- package/dist/components/navigation/components.d.ts +6 -0
- package/dist/components/navigation/components.d.ts.map +1 -1
- package/dist/components/shared/AsyncOutcomeAlert.d.ts +91 -0
- package/dist/components/shared/AsyncOutcomeAlert.d.ts.map +1 -0
- package/dist/components/shared/TrinityIconSvg.d.ts.map +1 -1
- package/dist/components/shared/TrinityLogoSvg.d.ts.map +1 -1
- package/dist/components/shared/bidi.d.ts +44 -0
- package/dist/components/shared/bidi.d.ts.map +1 -0
- package/dist/components/shared/bidiText.d.ts +25 -0
- package/dist/components/shared/bidiText.d.ts.map +1 -0
- package/dist/components/shared/containerQueries.d.ts +73 -0
- package/dist/components/shared/containerQueries.d.ts.map +1 -0
- package/dist/components/shared/createStringsContext.d.ts +69 -0
- package/dist/components/shared/createStringsContext.d.ts.map +1 -0
- package/dist/components/shared/direction.d.ts +46 -0
- package/dist/components/shared/direction.d.ts.map +1 -0
- package/dist/components/shared/focusTrap.d.ts +36 -0
- package/dist/components/shared/focusTrap.d.ts.map +1 -0
- package/dist/components/shared/getInitials.d.ts +29 -0
- package/dist/components/shared/getInitials.d.ts.map +1 -0
- package/dist/components/shared/headingLevel.d.ts +69 -0
- package/dist/components/shared/headingLevel.d.ts.map +1 -0
- package/dist/components/shared/mergeSlotProps.d.ts +50 -0
- package/dist/components/shared/mergeSlotProps.d.ts.map +1 -0
- package/dist/components/shared/mergeSx.d.ts +26 -0
- package/dist/components/shared/mergeSx.d.ts.map +1 -0
- package/dist/components/shared/motion.d.ts +110 -0
- package/dist/components/shared/motion.d.ts.map +1 -0
- package/dist/components/shared/occurrenceKeys.d.ts +23 -0
- package/dist/components/shared/occurrenceKeys.d.ts.map +1 -0
- package/dist/components/shared/primaryAction.d.ts +89 -0
- package/dist/components/shared/primaryAction.d.ts.map +1 -0
- package/dist/components/shared/resizeKeyboard.d.ts +68 -0
- package/dist/components/shared/resizeKeyboard.d.ts.map +1 -0
- package/dist/components/shared/rootProps.d.ts +117 -0
- package/dist/components/shared/rootProps.d.ts.map +1 -0
- package/dist/components/shared/safeContent.d.ts +9 -2
- package/dist/components/shared/safeContent.d.ts.map +1 -1
- package/dist/components/shared/targetSize.d.ts +64 -0
- package/dist/components/shared/targetSize.d.ts.map +1 -0
- package/dist/components/shared/useContainerInlineSize.d.ts +43 -0
- package/dist/components/shared/useContainerInlineSize.d.ts.map +1 -0
- package/dist/components/shared/useCopyAction.d.ts +35 -0
- package/dist/components/shared/useCopyAction.d.ts.map +1 -0
- package/dist/components/shared/useOverflow.d.ts +44 -0
- package/dist/components/shared/useOverflow.d.ts.map +1 -0
- package/dist/components/shared/useResizable.d.ts +106 -7
- package/dist/components/shared/useResizable.d.ts.map +1 -1
- package/dist/components/shared/warnDeprecated.d.ts +89 -15
- package/dist/components/shared/warnDeprecated.d.ts.map +1 -1
- package/dist/components/shared/zIndexRoles.d.ts +62 -0
- package/dist/components/shared/zIndexRoles.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts +213 -0
- package/dist/components/templates/AIReviewQueue/AIReviewQueueTemplate.d.ts.map +1 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts +2 -0
- package/dist/components/templates/AIReviewQueue/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -1
- package/dist/components/templates/Auth/types.d.ts +4 -1
- package/dist/components/templates/Auth/types.d.ts.map +1 -1
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -1
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -1
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +168 -10
- package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/index.d.ts +1 -1
- package/dist/components/templates/ListDetail/index.d.ts.map +1 -1
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts +106 -0
- package/dist/components/templates/ListDetail/listDetailLabels.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -1
- package/dist/components/templates/Settings/SettingsTemplate.d.ts +0 -3
- package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +4 -1
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -1
- package/dist/components/templates/index.d.ts +2 -1
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +1 -0
- package/dist/data-table2.js +13522 -13465
- package/dist/data.js +213 -194
- package/dist/elk.bundled.js +47371 -0
- package/dist/essentials.d.ts +3 -3
- package/dist/essentials.d.ts.map +1 -1
- package/dist/essentials.js +179 -147
- package/dist/focus-on-replace.js +49 -0
- package/dist/form.d.ts +26 -4
- package/dist/form.d.ts.map +1 -1
- package/dist/forms.js +575 -483
- package/dist/foundation.js +3704 -0
- package/dist/hooks/storageStore.d.ts +51 -0
- package/dist/hooks/storageStore.d.ts.map +1 -0
- package/dist/hooks/useAsyncAction.d.ts +65 -0
- package/dist/hooks/useAsyncAction.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +190 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useFocusOnReplace.d.ts +95 -0
- package/dist/hooks/useFocusOnReplace.d.ts.map +1 -0
- package/dist/hooks/useTrinityPalette.d.ts +38 -40
- package/dist/hooks/useTrinityPalette.d.ts.map +1 -1
- package/dist/hooks.d.ts +44 -6
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +301 -0
- package/dist/index.d.ts +71 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13923 -60619
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts +203 -0
- package/dist/patterns/AICopilotPattern/AICopilotPattern.d.ts.map +1 -0
- package/dist/patterns/AICopilotPattern/index.d.ts +3 -0
- package/dist/patterns/AICopilotPattern/index.d.ts.map +1 -0
- package/dist/patterns/index.d.ts +15 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/presets/analytics.d.ts +8 -1
- package/dist/presets/analytics.d.ts.map +1 -1
- package/dist/presets/crm.d.ts +8 -1
- package/dist/presets/crm.d.ts.map +1 -1
- package/dist/presets/index.d.ts +1 -1
- package/dist/presets/portal.d.ts +8 -1
- package/dist/presets/portal.d.ts.map +1 -1
- package/dist/safe-content.js +69 -69
- package/dist/theme-augmentation.d.ts +388 -0
- package/dist/theme-augmentation.d.ts.map +1 -0
- package/dist/theme.d.ts +116 -30
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +891 -436
- package/dist/token-color.d.ts +14 -0
- package/dist/token-color.d.ts.map +1 -0
- package/dist/token-merge.d.ts +56 -0
- package/dist/token-merge.d.ts.map +1 -0
- package/dist/token-serialization.d.ts +65 -0
- package/dist/token-serialization.d.ts.map +1 -0
- package/dist/tokens.d.ts +882 -13
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +21 -19
- package/dist/trinity.css +1077 -414
- package/package.json +111 -90
- package/dist/components/index.d.ts +0 -145
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/shared.d.ts +0 -92
- package/dist/components/shared.d.ts.map +0 -1
|
@@ -2,22 +2,35 @@
|
|
|
2
2
|
* @fileoverview Types for AIChainOfThought.
|
|
3
3
|
* @module components/AI/AIChainOfThought.types
|
|
4
4
|
*
|
|
5
|
-
* Extracted from `AIChainOfThought.tsx` so the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Extracted from `AIChainOfThought.tsx` so the types can be imported without
|
|
6
|
+
* the component (for test fixtures, mock data generators, or server code that
|
|
7
|
+
* builds chain data).
|
|
8
8
|
*/
|
|
9
|
+
import type * as React from 'react';
|
|
9
10
|
import type { SxProps, Theme } from '@mui/material';
|
|
11
|
+
import type { TrinityRootProps, TrinitySlotProps } from '../shared/rootProps';
|
|
12
|
+
import type { HeadingLevel } from '../shared/headingLevel';
|
|
10
13
|
import type { AISourceCategory } from './AISourcesPanel';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
import type { AIActionErrorContext, AIBlockEvent, AIFeedbackRating, AIPlan } from './types/hitl';
|
|
15
|
+
import type { AIMessageAction } from './AIMessage';
|
|
16
|
+
import type { AIRelatedQuestion } from './AIRelatedQuestions';
|
|
17
|
+
import type { AIBlockRendererMap } from './blockRendererContext';
|
|
18
|
+
/**
|
|
19
|
+
* Status of an individual execution step. `'awaiting-input'` (since 2.13.0): the step waits for
|
|
20
|
+
* the user (shown as "Needs your input"). Switches over it need a default branch.
|
|
21
|
+
*/
|
|
22
|
+
export type StepStatus = 'pending' | 'running' | 'completed' | 'error' | 'retrying' | 'awaiting-input';
|
|
23
|
+
/**
|
|
24
|
+
* Status of a phase overall. `'awaiting-input'` (since 2.13.0): the phase waits for the user, for
|
|
25
|
+
* example a plan to confirm; the chain keeps it open. Switches over it need a default branch.
|
|
26
|
+
*/
|
|
27
|
+
export type PhaseStatus = 'pending' | 'active' | 'completed' | 'error' | 'awaiting-input';
|
|
15
28
|
export interface ChainSource {
|
|
16
29
|
/** Icon name */
|
|
17
30
|
icon?: string;
|
|
18
31
|
/** Source label */
|
|
19
32
|
label: string;
|
|
20
|
-
/**
|
|
33
|
+
/** The source's type (for example "Database"), rendered as the chip label: "Database: metrics-store". */
|
|
21
34
|
type?: string;
|
|
22
35
|
}
|
|
23
36
|
export interface TaskError {
|
|
@@ -29,6 +42,12 @@ export interface TaskError {
|
|
|
29
42
|
resolution?: string;
|
|
30
43
|
}
|
|
31
44
|
export interface ExecutionTask {
|
|
45
|
+
/**
|
|
46
|
+
* Stable id of the task, used as its row key and as `taskId` in `onActionError`. Default
|
|
47
|
+
* `<phase id>-task-<index>`. Unique within its phase (a duplicate warns once in development).
|
|
48
|
+
* @since 2.13.0
|
|
49
|
+
*/
|
|
50
|
+
id?: string;
|
|
32
51
|
/** Task label */
|
|
33
52
|
label: string;
|
|
34
53
|
/** Sub-detail text shown while running */
|
|
@@ -43,23 +62,44 @@ export interface ExecutionTask {
|
|
|
43
62
|
retryDetail?: string;
|
|
44
63
|
/** Retry timing */
|
|
45
64
|
retryTime?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether a failed task offers Retry when the chain has `onTaskRetry`. `false` hides Retry for
|
|
67
|
+
* this task. @default true
|
|
68
|
+
* @since 2.13.0
|
|
69
|
+
*/
|
|
70
|
+
retryable?: boolean;
|
|
46
71
|
}
|
|
47
72
|
export interface ChainArtifact {
|
|
48
73
|
/** Unique id */
|
|
49
74
|
id: string;
|
|
50
75
|
/** Display label */
|
|
51
76
|
label: string;
|
|
52
|
-
/** Icon name */
|
|
77
|
+
/** Icon name for the card's white tile. Default: a file glyph. */
|
|
53
78
|
icon?: string;
|
|
54
79
|
/** Short description */
|
|
55
80
|
description?: string;
|
|
56
|
-
/** File format
|
|
81
|
+
/** File format (e.g. "CSV", "Interactive", "PDF"), shown with `meta` as the card's second line ("CSV · 5 rows"). */
|
|
57
82
|
format?: string;
|
|
58
|
-
/** Meta text (e.g. "12,420 records") */
|
|
83
|
+
/** Meta text (e.g. "5 rows", "12,420 records") */
|
|
59
84
|
meta?: string;
|
|
60
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Whether to show the mini chart. Its bars come from `chartData` only; without
|
|
87
|
+
* data a neutral chart glyph shows instead. The chart is decorative and hidden
|
|
88
|
+
* from assistive technology.
|
|
89
|
+
*/
|
|
61
90
|
showChart?: boolean;
|
|
62
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Values for the mini chart, one bar per value, scaled so the smallest value
|
|
93
|
+
* gets the shortest bar and the largest the tallest. Keep it short (about 12
|
|
94
|
+
* values fit a card). Values that are not finite numbers get the shortest bar.
|
|
95
|
+
* @since 2.13.0
|
|
96
|
+
*/
|
|
97
|
+
chartData?: number[];
|
|
98
|
+
/**
|
|
99
|
+
* Called when the card is activated. With it, the card's primary action is a
|
|
100
|
+
* button named by `label` that covers the card (click, Enter or Space);
|
|
101
|
+
* without it the card is plain content.
|
|
102
|
+
*/
|
|
63
103
|
onClick?: () => void;
|
|
64
104
|
}
|
|
65
105
|
export interface OutputStat {
|
|
@@ -93,23 +133,32 @@ export interface PhaseBase {
|
|
|
93
133
|
id: string;
|
|
94
134
|
/** Display title */
|
|
95
135
|
title: string;
|
|
96
|
-
/**
|
|
136
|
+
/** The phase's one line of text under its title (for example "Three steps, shown before anything runs."). */
|
|
97
137
|
subtitle?: string;
|
|
98
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Explicit status. When set it always wins; otherwise `derivePhaseStatus()`
|
|
140
|
+
* derives it (an execution phase from its tasks, every other type
|
|
141
|
+
* `completed`). See the table in AIChainOfThought.tsx.
|
|
142
|
+
*/
|
|
99
143
|
status?: PhaseStatus;
|
|
100
144
|
/** Duration string shown when completed */
|
|
101
145
|
duration?: string;
|
|
102
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* Whether the phase body starts expanded. Read the first time the phase id is
|
|
148
|
+
* seen, including a phase that streams in after mount; later changes do not
|
|
149
|
+
* reseed it. @default true
|
|
150
|
+
*/
|
|
103
151
|
defaultExpanded?: boolean;
|
|
104
152
|
}
|
|
105
153
|
/** Understanding phase — thought bubbles + sources */
|
|
106
154
|
export interface UnderstandingPhase extends PhaseBase {
|
|
107
155
|
type: 'understanding';
|
|
108
156
|
/**
|
|
109
|
-
* Thought bubble contents. Treated as untrusted
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
157
|
+
* Thought bubble contents. Treated as untrusted and read as the chain's
|
|
158
|
+
* `contentFormat` says: by default safe-content HTML (the allowlist b, strong, i,
|
|
159
|
+
* em, code, br, p, ul, ol, li, span, a, mark; links keep only
|
|
160
|
+
* http(s)/mailto/tel/relative hrefs; every other tag, attribute and handler is
|
|
161
|
+
* removed or shown as text), or markdown, or plain text.
|
|
113
162
|
*/
|
|
114
163
|
thoughts: string[];
|
|
115
164
|
/** Sources consulted */
|
|
@@ -147,10 +196,12 @@ export interface OutputPhase extends PhaseBase {
|
|
|
147
196
|
export interface InsightPhase extends PhaseBase {
|
|
148
197
|
type: 'insight';
|
|
149
198
|
/**
|
|
150
|
-
* The insight body. Treated as untrusted
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
199
|
+
* The insight body. Treated as untrusted and read as the chain's
|
|
200
|
+
* `contentFormat` says: by default safe-content HTML (the allowlist b, strong, i,
|
|
201
|
+
* em, code, br, p, ul, ol, li, span, a, mark, with
|
|
202
|
+
* `<span class="insight-highlight">` for highlights; links keep only
|
|
203
|
+
* http(s)/mailto/tel/relative hrefs; everything else is removed or shown as
|
|
204
|
+
* text), or markdown, or plain text.
|
|
154
205
|
*/
|
|
155
206
|
content: string;
|
|
156
207
|
/** Optional confidence 0-1 */
|
|
@@ -160,30 +211,106 @@ export interface InsightPhase extends PhaseBase {
|
|
|
160
211
|
/** References / sources */
|
|
161
212
|
references?: InsightReference[];
|
|
162
213
|
}
|
|
163
|
-
/**
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
214
|
+
/**
|
|
215
|
+
* Plan review phase (G-22): a plan the user confirms, edits or clarifies before it runs. A
|
|
216
|
+
* thinking phase: it shows in the thought process, never in the response, and keeps the
|
|
217
|
+
* thought process open while the plan waits for the user (`plan.status` 'review'). The body is
|
|
218
|
+
* the `plan-review` block renderer (AIPlanReview by default) with a block whose id is the
|
|
219
|
+
* phase's id; its events reach `onBlockEvent`.
|
|
220
|
+
*
|
|
221
|
+
* Status without an explicit `status`: 'review' (or none) is `awaiting-input`, 'replanning' is
|
|
222
|
+
* `active`, every other plan status is `completed`.
|
|
223
|
+
*
|
|
224
|
+
* @since 2.13.0
|
|
225
|
+
*/
|
|
226
|
+
export interface PlanReviewPhase extends PhaseBase {
|
|
227
|
+
type: 'plan-review';
|
|
228
|
+
/** The plan under review. */
|
|
229
|
+
plan: AIPlan;
|
|
230
|
+
/** Where the review shows: in the phase (`'inline'`) or in a dialog (`'dialog'`). @default 'inline' */
|
|
231
|
+
presentation?: 'inline' | 'dialog';
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Discriminated union of all phase types. `PlanReviewPhase` joined it in 2.13.0: switches over
|
|
235
|
+
* `type` need a default branch.
|
|
236
|
+
*/
|
|
237
|
+
export type ChainPhase = UnderstandingPhase | PlanPhase | PlanReviewPhase | ExecutionPhase | OutputPhase | InsightPhase;
|
|
238
|
+
/**
|
|
239
|
+
* AIChainOfThought's own props. The root `<div>`'s HTML attributes are the rest (ADR-04 (3)).
|
|
240
|
+
*/
|
|
241
|
+
export interface AIChainOfThoughtOwnProps {
|
|
242
|
+
/**
|
|
243
|
+
* The original user query, used as the accessible name of the reasoning group
|
|
244
|
+
* ("Reasoning for {query}"; without it, "AI reasoning chain"). Not shown on
|
|
245
|
+
* screen.
|
|
246
|
+
*/
|
|
167
247
|
query?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Shows the query as visible text above the thought process (G-OD3). Off by default: the query
|
|
250
|
+
* names the reasoning group either way.
|
|
251
|
+
* @default false
|
|
252
|
+
* @since 2.13.0
|
|
253
|
+
*/
|
|
254
|
+
showQuery?: boolean;
|
|
168
255
|
/** Ordered list of reasoning phases */
|
|
169
256
|
phases: ChainPhase[];
|
|
170
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* How thought bubbles (`thoughts`) and insight bodies (`content`) are read.
|
|
259
|
+
* All three treat the strings as untrusted model output.
|
|
260
|
+
*
|
|
261
|
+
* - `'html'` (default): safe-content HTML. Only b, strong, i, em, code, br, p,
|
|
262
|
+
* ul, ol, li, span, a and mark are kept, plus `<span class="insight-highlight">`.
|
|
263
|
+
* Links keep only http(s), mailto, tel and relative hrefs. Scripts, event
|
|
264
|
+
* handlers, frames, styles and every other tag or attribute are removed or
|
|
265
|
+
* shown as text.
|
|
266
|
+
* - `'markdown'`: parsed by AITextBlock's markdown renderer (bold, italic,
|
|
267
|
+
* inline code, links through the same URL policy, headings, lists, quotes,
|
|
268
|
+
* rules and paragraphs). HTML in the string is shown as text.
|
|
269
|
+
* Recommended for new integrations.
|
|
270
|
+
* - `'text'`: plain text; nothing is parsed.
|
|
271
|
+
*
|
|
272
|
+
* @default 'html'
|
|
273
|
+
* @since 2.13.0
|
|
274
|
+
*/
|
|
275
|
+
contentFormat?: 'html' | 'markdown' | 'text';
|
|
276
|
+
/**
|
|
277
|
+
* Wraps each phase trigger in a heading of this level (`<h3><button>…</button></h3>`), so
|
|
278
|
+
* screen-reader users can move between phases by heading. The trigger keeps its name (the
|
|
279
|
+
* title, then the status). Unset, no heading element is rendered.
|
|
280
|
+
* @since 2.13.0
|
|
281
|
+
*/
|
|
282
|
+
phaseHeadingLevel?: HeadingLevel;
|
|
283
|
+
/** Whether to show the "Thought process" header (the collapsible disclosure with the status line and progress dots). @default true */
|
|
171
284
|
showToggle?: boolean;
|
|
172
285
|
/** Whether the thought process starts collapsed */
|
|
173
286
|
defaultCollapsed?: boolean;
|
|
174
287
|
/** Which phase IDs are "thinking" phases (shown in toggle, collapsible).
|
|
175
288
|
* Output and Insight phases are always shown outside the collapsible area. */
|
|
176
289
|
thinkingPhaseIds?: string[];
|
|
177
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* Whether phase entrance and expand/collapse transitions animate (the Fade and
|
|
292
|
+
* Collapse timeouts). CSS animations such as spinners and entrance keyframes
|
|
293
|
+
* run either way. @default true
|
|
294
|
+
*/
|
|
178
295
|
animated?: boolean;
|
|
179
|
-
/** Elapsed time string shown in
|
|
296
|
+
/** Elapsed time string shown in the header's status line ("Done · 4.2s") */
|
|
180
297
|
elapsedTime?: string;
|
|
181
298
|
/** Source citations displayed after the AI response (reuses AISourcesPanel) */
|
|
182
299
|
sources?: AISourceCategory[];
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
|
|
300
|
+
/**
|
|
301
|
+
* Related follow-up questions (reuses AIRelatedQuestions): strings, or `AIRelatedQuestion`
|
|
302
|
+
* objects (since 2.13.0) for an id and the verified flag ('Verified' badge). Both can be mixed.
|
|
303
|
+
*/
|
|
304
|
+
relatedQuestions?: Array<string | AIRelatedQuestion>;
|
|
305
|
+
/** Callback when a related question is clicked: the question's text. */
|
|
186
306
|
onQuestionClick?: (question: string) => void;
|
|
307
|
+
/**
|
|
308
|
+
* Callback when a related question is clicked: the question (a string is passed as `{ text }`)
|
|
309
|
+
* and its index. Fires alongside `onQuestionClick`; the chain then reports the content-free
|
|
310
|
+
* `followup.select` interaction (`{ verified, index, questionId? }`) once.
|
|
311
|
+
* @since 2.13.0
|
|
312
|
+
*/
|
|
313
|
+
onQuestionSelect?: (question: AIRelatedQuestion, index: number) => void;
|
|
187
314
|
/** Suggested actions shown after the response (reuses AISuggestedAction) */
|
|
188
315
|
suggestedActions?: Array<{
|
|
189
316
|
label: string;
|
|
@@ -191,15 +318,140 @@ export interface AIChainOfThoughtProps {
|
|
|
191
318
|
}>;
|
|
192
319
|
/** Timestamp displayed in the AI message footer */
|
|
193
320
|
timestamp?: string;
|
|
194
|
-
/**
|
|
195
|
-
|
|
196
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Called with the copied text when Copy is pressed. Without it, Copy writes the response to the
|
|
323
|
+
* clipboard and announces the result (AIMessage's `'auto'` copy). Copy always shows.
|
|
324
|
+
*/
|
|
325
|
+
onCopy?: (text: string) => void;
|
|
326
|
+
/**
|
|
327
|
+
* The text Copy uses. Default: the visible text of the final phases (output and insight), without
|
|
328
|
+
* hidden parts.
|
|
329
|
+
* @since 2.13.0
|
|
330
|
+
*/
|
|
331
|
+
copyText?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Called with the new rating when a thumb is pressed (`true` good, `false` poor). The thumbs show
|
|
334
|
+
* only when this, `onFeedbackChange` or a controlled `feedback` is passed.
|
|
335
|
+
*/
|
|
197
336
|
onFeedback?: (positive: boolean) => void;
|
|
198
|
-
/**
|
|
337
|
+
/**
|
|
338
|
+
* The rating, controlled: `'positive'`, `'negative'` or `null`. Passed to AIMessage.
|
|
339
|
+
* @since 2.13.0
|
|
340
|
+
*/
|
|
341
|
+
feedback?: AIFeedbackRating | null;
|
|
342
|
+
/**
|
|
343
|
+
* The initial rating when `feedback` is not controlled. Passed to AIMessage.
|
|
344
|
+
* @default null
|
|
345
|
+
* @since 2.13.0
|
|
346
|
+
*/
|
|
347
|
+
defaultFeedback?: AIFeedbackRating | null;
|
|
348
|
+
/**
|
|
349
|
+
* Called with every rating change, `null` when the pressed thumb is pressed again. Passed to
|
|
350
|
+
* AIMessage.
|
|
351
|
+
* @since 2.13.0
|
|
352
|
+
*/
|
|
353
|
+
onFeedbackChange?: (value: AIFeedbackRating | null) => void;
|
|
354
|
+
/**
|
|
355
|
+
* Replaces the built-in thumbs in the footer, for example with a detailed AIFeedbackControl.
|
|
356
|
+
* @since 2.13.0
|
|
357
|
+
*/
|
|
358
|
+
feedbackControl?: React.ReactNode;
|
|
359
|
+
/** Share callback. The Share action shows only when it is passed. */
|
|
199
360
|
onShare?: () => void;
|
|
200
|
-
/**
|
|
361
|
+
/** Download callback. The Download action shows only when it is passed. */
|
|
201
362
|
onDownload?: () => void;
|
|
202
|
-
/**
|
|
363
|
+
/**
|
|
364
|
+
* Regenerates the response. When passed, the footer shows Regenerate (AIMessage's action: pending
|
|
365
|
+
* state, the failure alert with "Try again", `onActionError` with `{ source: 'action', actionId:
|
|
366
|
+
* 'regenerate' }`).
|
|
367
|
+
* @since 2.13.0
|
|
368
|
+
*/
|
|
369
|
+
onRegenerate?: () => void | Promise<void>;
|
|
370
|
+
/**
|
|
371
|
+
* App actions after the built-in ones in the response footer (see `AIMessageAction`).
|
|
372
|
+
* @since 2.13.0
|
|
373
|
+
*/
|
|
374
|
+
actions?: AIMessageAction[];
|
|
375
|
+
/**
|
|
376
|
+
* Non-interactive content at the start of the response footer: AIConfidenceBadge,
|
|
377
|
+
* AIVerificationBadge.
|
|
378
|
+
* @since 2.13.0
|
|
379
|
+
*/
|
|
380
|
+
badges?: React.ReactNode;
|
|
381
|
+
/**
|
|
382
|
+
* Retries a failed execution task. When set, every task whose status is `error` shows a
|
|
383
|
+
* "Retry" button in its error alert. The button runs this through the shared async contract:
|
|
384
|
+
* while the returned promise is pending it is `aria-disabled` and `aria-busy` and keeps focus,
|
|
385
|
+
* and a rejection shows an inline "Couldn't retry the task" alert with "Try again". On success
|
|
386
|
+
* the parent moves the task on by updating `phases` (for example to `running` or `retrying`).
|
|
387
|
+
* Named apart from the message-level `onRegenerate`, which regenerates the whole response.
|
|
388
|
+
* @since 2.13.0
|
|
389
|
+
*/
|
|
390
|
+
onTaskRetry?: (task: ExecutionTask, phase: ExecutionPhase) => void | PromiseLike<void>;
|
|
391
|
+
/**
|
|
392
|
+
* Called when a task retry (`onTaskRetry`) rejects, with
|
|
393
|
+
* `{ source: 'task', phaseId, taskId }` (`taskId` is `<phase id>-task-<index>`). The inline
|
|
394
|
+
* failure shows either way. Without it, the error goes to `globalThis.reportError` (ADR-07).
|
|
395
|
+
* @since 2.13.0
|
|
396
|
+
*/
|
|
397
|
+
onActionError?: (error: unknown, context: AIActionErrorContext) => void;
|
|
398
|
+
/**
|
|
399
|
+
* Called with what the user did in a plan-review phase (`plan.confirm`, `plan.stepEdit`,
|
|
400
|
+
* `plan.clarify`, `plan.cancel`; the block id is the phase id). A returned promise drives the
|
|
401
|
+
* plan's pending state, its rejection the plan's error. Without it a plan renders read-only.
|
|
402
|
+
* @since 2.13.0
|
|
403
|
+
*/
|
|
404
|
+
onBlockEvent?: (event: AIBlockEvent) => void | Promise<void>;
|
|
405
|
+
/**
|
|
406
|
+
* Block renderers by block type, merged over the ones a host provides (ChatThread,
|
|
407
|
+
* InsightEngine). The `plan-review` entry renders plan-review phases; `null` turns a provided
|
|
408
|
+
* one off. Keep the object stable (module scope or `useMemo`).
|
|
409
|
+
* @since 2.13.0
|
|
410
|
+
*/
|
|
411
|
+
blockRenderers?: AIBlockRendererMap;
|
|
412
|
+
/**
|
|
413
|
+
* What the chain announces to screen readers (ADR-19).
|
|
414
|
+
*
|
|
415
|
+
* - `'transitions'` (default): one polite message per transition: "Thinking"
|
|
416
|
+
* when the first thinking phase becomes active, "Plan's ready — needs your
|
|
417
|
+
* confirmation" when a plan-review phase starts waiting for the user,
|
|
418
|
+
* "Response ready" when the final phases appear. A chain that mounts already
|
|
419
|
+
* thinking, waiting or complete does not announce that state.
|
|
420
|
+
* - `'stream'`: the 2.12 behavior: the chain is a polite live container, so
|
|
421
|
+
* added text is read as it streams.
|
|
422
|
+
* - `'off'`: nothing is announced.
|
|
423
|
+
*
|
|
424
|
+
* Inside a chat thread (which announces new messages itself) the chain
|
|
425
|
+
* announces nothing and is never a live container, whatever this is.
|
|
426
|
+
*
|
|
427
|
+
* @default 'transitions'
|
|
428
|
+
* @since 2.13.0
|
|
429
|
+
*/
|
|
430
|
+
announcements?: 'transitions' | 'stream' | 'off';
|
|
431
|
+
/** Added to the root's own class names. @since 2.13.0 */
|
|
432
|
+
className?: string;
|
|
433
|
+
/** Custom sx, applied to the root after its own styles (object, array or function form). */
|
|
203
434
|
sx?: SxProps<Theme>;
|
|
435
|
+
/**
|
|
436
|
+
* Props for the parts (ADR-04 (6)): `root` (the root; its role and busy and live attributes stay
|
|
437
|
+
* the component's), `toggle` (the thought-process disclosure), `phaseCard` (each phase card) and
|
|
438
|
+
* `response` (the box around the response AIMessage). Each takes `className`, `data-*` and `sx`.
|
|
439
|
+
* @since 2.13.0
|
|
440
|
+
*/
|
|
441
|
+
slotProps?: {
|
|
442
|
+
root?: TrinitySlotProps<HTMLDivElement>;
|
|
443
|
+
toggle?: TrinitySlotProps<HTMLDivElement>;
|
|
444
|
+
phaseCard?: TrinitySlotProps<HTMLDivElement>;
|
|
445
|
+
response?: TrinitySlotProps<HTMLDivElement>;
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Props for AIChainOfThought: its own props plus the root `<div>`'s HTML attributes (`id`,
|
|
450
|
+
* `data-*`, `aria-*`, event handlers), spread on the root (ADR-04). `role`, `aria-busy`,
|
|
451
|
+
* `aria-live`, `aria-relevant` and `aria-atomic` stay the component's. The own `onCopy` (Copy's
|
|
452
|
+
* callback) shadows the DOM clipboard handler by design; a consumer `aria-label` replaces the
|
|
453
|
+
* group name.
|
|
454
|
+
*/
|
|
455
|
+
export interface AIChainOfThoughtProps extends AIChainOfThoughtOwnProps, TrinityRootProps<HTMLDivElement, AIChainOfThoughtOwnProps> {
|
|
204
456
|
}
|
|
205
457
|
//# sourceMappingURL=AIChainOfThought.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIChainOfThought.types.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"AIChainOfThought.types.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,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AAS,CAAC;IACzB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACvF;;;;;OAKG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACxE;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB;;;;;OAKG;IACH,SAAS,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACxC,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC1C,SAAS,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QAC7C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;KAC7C,CAAC;CACH;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBACf,SAAQ,wBAAwB,EAC9B,gBAAgB,CAAC,cAAc,EAAE,wBAAwB,CAAC;CAAG"}
|
|
@@ -2,19 +2,37 @@
|
|
|
2
2
|
* @fileoverview Pure helpers for AIChainOfThought.
|
|
3
3
|
* @module components/AI/AIChainOfThought.utils
|
|
4
4
|
*
|
|
5
|
-
* Extracted from `AIChainOfThought.tsx` so the state-derivation logic
|
|
6
|
-
* unit-tested
|
|
5
|
+
* Extracted from `AIChainOfThought.tsx` so the state-derivation logic and the marker colour
|
|
6
|
+
* derivations can be unit-tested without mounting the component.
|
|
7
7
|
*/
|
|
8
|
+
import { type Theme } from '@mui/material/styles';
|
|
8
9
|
import type { ChainPhase, PhaseStatus } from './AIChainOfThought.types';
|
|
9
10
|
/**
|
|
10
|
-
* Derive a `PhaseStatus` from a `ChainPhase`.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Derive a `PhaseStatus` from a `ChainPhase`. An explicit `status` wins.
|
|
12
|
+
* Otherwise a plan-review phase reads its plan's status ('review' or none:
|
|
13
|
+
* awaiting-input; 'replanning': active; any other: completed), an execution
|
|
14
|
+
* phase derives it from its tasks (error, then awaiting-input, then all
|
|
15
|
+
* completed, then running or retrying, else pending), and every other phase
|
|
16
|
+
* type is `completed`.
|
|
13
17
|
*
|
|
14
|
-
* See the "
|
|
15
|
-
* decision table.
|
|
18
|
+
* See the "Phase status" table in `AIChainOfThought.tsx`.
|
|
16
19
|
*
|
|
17
20
|
* This function is pure and side-effect-free — safe to call during render.
|
|
18
21
|
*/
|
|
19
22
|
export declare function derivePhaseStatus(phase: ChainPhase): PhaseStatus;
|
|
23
|
+
/**
|
|
24
|
+
* The tint behind a done marker's check: the success text at 16%. The check (the success text)
|
|
25
|
+
* measures 3:1 or more on it and on the card in light and dark (asserted in the contrast tests).
|
|
26
|
+
*/
|
|
27
|
+
export declare const DONE_TINT_ALPHA = 0.16;
|
|
28
|
+
/**
|
|
29
|
+
* The neutral graphic of a pending step (the gray progress dot, the pending marker's dot and a
|
|
30
|
+
* pending task's ring): the primary text at 50%, a mid gray that measures 3:1 or more on the
|
|
31
|
+
* header, the card and the neutral wash in light and dark (asserted in the contrast tests).
|
|
32
|
+
*/
|
|
33
|
+
export declare const PENDING_GRAPHIC_ALPHA = 0.5;
|
|
34
|
+
/** @internal The pending graphic colour of a theme (see PENDING_GRAPHIC_ALPHA). */
|
|
35
|
+
export declare function pendingGraphic(theme: Theme): string;
|
|
36
|
+
/** @internal The done marker's tint of a theme (see DONE_TINT_ALPHA). */
|
|
37
|
+
export declare function doneTint(theme: Theme): string;
|
|
20
38
|
//# sourceMappingURL=AIChainOfThought.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIChainOfThought.utils.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE
|
|
1
|
+
{"version":3,"file":"AIChainOfThought.utils.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChainOfThought.utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAS,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,CAoBhE;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEnD;AAED,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE7C"}
|
|
@@ -75,6 +75,9 @@ export interface AIChatMessageProps {
|
|
|
75
75
|
/**
|
|
76
76
|
* AI Chat Message - Individual message in a chat conversation.
|
|
77
77
|
*
|
|
78
|
+
* @deprecated Removed in v3.0 (planned). Use `AIMessage` instead (MIGRATION.md, "Deprecated
|
|
79
|
+
* exports removed in v3.0").
|
|
80
|
+
*
|
|
78
81
|
* Structure:
|
|
79
82
|
* - User messages: Right-aligned with bubble and avatar
|
|
80
83
|
* - Assistant messages: Left-aligned with avatar, content, actions, and children
|
|
@@ -109,6 +112,9 @@ export interface AIChatInputProps {
|
|
|
109
112
|
}
|
|
110
113
|
/**
|
|
111
114
|
* AI Chat Input - Input field for chat messages with send and voice buttons.
|
|
115
|
+
*
|
|
116
|
+
* @deprecated Removed in v3.0 (planned). Use `InsightEngineInput` for the input, or `ChatThread`
|
|
117
|
+
* for a whole conversation (MIGRATION.md, "Deprecated exports removed in v3.0").
|
|
112
118
|
*/
|
|
113
119
|
export declare const AIChatInput: React.ForwardRefExoticComponent<AIChatInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
114
120
|
/**
|
|
@@ -122,6 +128,9 @@ export interface AITypingIndicatorProps {
|
|
|
122
128
|
}
|
|
123
129
|
/**
|
|
124
130
|
* AI Typing Indicator - Shows when AI is generating a response.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated Removed in v3.0 (planned). Use `AIMessage`'s streaming state with `AIShimmer`
|
|
133
|
+
* (MIGRATION.md, "Deprecated exports removed in v3.0").
|
|
125
134
|
*/
|
|
126
135
|
export declare const AITypingIndicator: React.ForwardRefExoticComponent<AITypingIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
127
136
|
/**
|
|
@@ -137,6 +146,9 @@ export interface AIQuickReplyProps {
|
|
|
137
146
|
}
|
|
138
147
|
/**
|
|
139
148
|
* AI Quick Reply - Suggested quick reply options.
|
|
149
|
+
*
|
|
150
|
+
* @deprecated Removed in v3.0 (planned). Use `AISuggestedAction` or `AIActionsGroup`
|
|
151
|
+
* (MIGRATION.md, "Deprecated exports removed in v3.0").
|
|
140
152
|
*/
|
|
141
153
|
export declare const AIQuickReply: React.ForwardRefExoticComponent<AIQuickReplyProps & React.RefAttributes<HTMLDivElement>>;
|
|
142
154
|
//# sourceMappingURL=AIChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIChat.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"AIChat.d.ts","sourceRoot":"","sources":["../../../src/components/AI/AIChat.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAUL,OAAO,EACP,KAAK,EACN,MAAM,eAAe,CAAC;AAyBvB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,iCAAiC;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,uBAAuB;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wCAAwC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB;IACxB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0BAA0B;IAC1B,YAAY,CAAC,E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