@trinityui/design-system 2.11.0 → 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 +2209 -0
- package/CONTRIBUTING.md +180 -69
- package/LICENSE +21 -0
- package/MIGRATION.md +523 -21
- 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 +17230 -9097
- 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 +192 -72
- package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
- package/dist/components/AI/AIChainOfThought.types.d.ts +296 -34
- 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 +91 -13
- 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 +107 -17
- 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 +52 -5
- 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 +32 -2
- 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/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +48 -4
- package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.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 +136 -0
- package/dist/components/shared/safeContent.d.ts.map +1 -0
- 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 +792 -0
- 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
|
@@ -1,30 +1,104 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview
|
|
2
|
+
* @fileoverview Development-only warnings: deprecations (ADR-30) and keyed one-time warnings.
|
|
3
3
|
* @module components/shared/warnDeprecated
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* rendered in the current session. Silent in production builds. IDEs already
|
|
7
|
-
* strike through `@deprecated` JSDoc at the call site — this adds a runtime
|
|
8
|
-
* signal for consumers who paste code without reading the hover hint (Replit
|
|
9
|
-
* Agent output, LLM-generated code, copy-paste from Stack Overflow, etc.).
|
|
5
|
+
* @internal — not part of the public API; see ADR-02
|
|
10
6
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
7
|
+
* Placement rule (ADR-30):
|
|
8
|
+
*
|
|
9
|
+
* 1. Never warn at module scope. A module-scope call warns every app that
|
|
10
|
+
* imports the chunk, whether or not it renders the component.
|
|
11
|
+
* 2. Never warn during render. Warn from an effect. `useDeprecationWarning`
|
|
12
|
+
* does this for you.
|
|
13
|
+
* 3. An unconditional deprecation (the whole component is deprecated) warns
|
|
14
|
+
* from a mount effect, keyed by the component name:
|
|
15
|
+
* `useDeprecationWarning('OldCard', 'v3.0', '`Card`')`.
|
|
16
|
+
* 4. A conditional deprecation (a deprecated prop is passed, or a default is
|
|
17
|
+
* relied on) warns from an effect keyed by `<Component>.<condition>`, and
|
|
18
|
+
* only when the condition holds:
|
|
19
|
+
* `useDeprecationWarning('Chart.legacyColors', 'v3.0', '`colors`', legacyColors !== undefined)`.
|
|
20
|
+
* 5. Trinity components that render a deprecated component on purpose wrap
|
|
21
|
+
* it in `DeprecationSuppressionContext.Provider value={true}`. The consumer
|
|
22
|
+
* cannot change that usage, so no warning fires for it.
|
|
23
|
+
* 6. Each key warns once per session. All warnings are development-only:
|
|
24
|
+
* production builds drop the warning code.
|
|
25
|
+
*
|
|
26
|
+
* `src/components/shared/__tests__/warnDeprecated.test.ts` enforces rule 1
|
|
27
|
+
* and 2 with an AST check over `src/components`. It holds a ratchet of the
|
|
28
|
+
* render-phase calls that are left; the ratchet can only go down.
|
|
29
|
+
*
|
|
30
|
+
* `warnOnce(key, message)` is the single helper for other development
|
|
31
|
+
* warnings (a missing handler, an unsupported value). Call it from an effect
|
|
32
|
+
* too, and keep the call inside the literal check
|
|
33
|
+
* `if (process.env.NODE_ENV !== 'production')`, so bundlers drop your message
|
|
34
|
+
* text as well as the helper.
|
|
35
|
+
*
|
|
36
|
+
* Tests: `src/test-setup.ts` calls `__resetDevWarnings()` after every test,
|
|
37
|
+
* so each test sees its own first warning.
|
|
14
38
|
*
|
|
15
39
|
* @example
|
|
16
40
|
* ```tsx
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
41
|
+
* export function OldCard(props: OldCardProps) {
|
|
42
|
+
* useDeprecationWarning('OldCard', 'v3.0', '`Card`');
|
|
43
|
+
* return <Card {...props} />;
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* // Inside a Trinity component that still renders OldCard internally:
|
|
47
|
+
* <DeprecationSuppressionContext.Provider value={true}>
|
|
48
|
+
* <OldCard />
|
|
49
|
+
* </DeprecationSuppressionContext.Provider>
|
|
20
50
|
* ```
|
|
21
51
|
*/
|
|
52
|
+
import * as React from 'react';
|
|
53
|
+
/**
|
|
54
|
+
* `true` inside a Trinity component that renders a deprecated component on
|
|
55
|
+
* purpose. `useDeprecationWarning` does not warn while it is `true`.
|
|
56
|
+
*
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
export declare const DeprecationSuppressionContext: React.Context<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Warns once per session that `componentName` is deprecated. Development only.
|
|
62
|
+
*
|
|
63
|
+
* Prefer `useDeprecationWarning` in components: it warns from an effect and
|
|
64
|
+
* respects `DeprecationSuppressionContext`. Call this function directly only
|
|
65
|
+
* from an effect, never at module scope or during render.
|
|
66
|
+
*
|
|
67
|
+
* @param componentName - The key and the name shown in the message, e.g.
|
|
68
|
+
* `'OldCard'` or `'Chart.legacyColors'`.
|
|
69
|
+
* @param removalVersion - The version that removes it, e.g. `'v3.0'`.
|
|
70
|
+
* @param replacement - What to use instead, as Markdown-style text.
|
|
71
|
+
*/
|
|
22
72
|
export declare function warnDeprecated(componentName: string, removalVersion: string, replacement: string): void;
|
|
23
73
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
74
|
+
* Warns from an effect that `name` is deprecated (ADR-30). Development only.
|
|
75
|
+
* Does nothing inside `DeprecationSuppressionContext` or while `when` is
|
|
76
|
+
* `false`. Each `name` warns once per session.
|
|
77
|
+
*
|
|
78
|
+
* @param name - The component name, or `<Component>.<condition>` for a
|
|
79
|
+
* conditional deprecation.
|
|
80
|
+
* @param removalVersion - The version that removes it, e.g. `'v3.0'`.
|
|
81
|
+
* @param replacement - What to use instead.
|
|
82
|
+
* @param when - The deprecation condition. Defaults to `true` (unconditional).
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare function useDeprecationWarning(name: string, removalVersion: string, replacement: string, when?: boolean): void;
|
|
87
|
+
/**
|
|
88
|
+
* Logs `message` once per `key` per session. Development only. Call it from
|
|
89
|
+
* an effect, inside `if (process.env.NODE_ENV !== 'production')`.
|
|
90
|
+
*
|
|
91
|
+
* @param key - Identifies the warning, e.g. `'AIResponseRenderer.unknownBlock.chart'`.
|
|
92
|
+
* @param message - The text after the `[trinity]` prefix.
|
|
93
|
+
*
|
|
94
|
+
* @internal
|
|
95
|
+
*/
|
|
96
|
+
export declare function warnOnce(key: string, message: string): void;
|
|
97
|
+
/**
|
|
98
|
+
* Test-only: forget every key that already warned, so the next call warns
|
|
99
|
+
* again. `src/test-setup.ts` calls it after each test.
|
|
26
100
|
*
|
|
27
101
|
* @internal
|
|
28
102
|
*/
|
|
29
|
-
export declare function
|
|
103
|
+
export declare function __resetDevWarnings(): void;
|
|
30
104
|
//# sourceMappingURL=warnDeprecated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warnDeprecated.d.ts","sourceRoot":"","sources":["../../../src/components/shared/warnDeprecated.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"warnDeprecated.d.ts","sourceRoot":"","sources":["../../../src/components/shared/warnDeprecated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,wBAAsC,CAAC;AAGjF;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,GAClB,IAAI,CAcN;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,OAAc,GACnB,IAAI,CAON;AAED;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAQ3D;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Named overlay layer roles on `theme.zIndex` (ADR-03-R12, master-plan E-46+).
|
|
3
|
+
* @module components/shared/zIndexRoles
|
|
4
|
+
*
|
|
5
|
+
* Remediation §5.6 names every overlay layer and bans arbitrary 1000, 1300 and 9999 values. The
|
|
6
|
+
* roles are offsets on MUI's own zIndex scale, which every MUI overlay already uses (Trinity's
|
|
7
|
+
* CSS z-index scale tops out at 1070, below MUI's modal, so it cannot order a toast or a skip
|
|
8
|
+
* link above an open dialog). No new absolute value is introduced.
|
|
9
|
+
*
|
|
10
|
+
* | Role | Value | Used by |
|
|
11
|
+
* |---|---|---|
|
|
12
|
+
* | `aiPanel` | `drawer - 1` | AppLayout's AI panel, under the header and the sidebar |
|
|
13
|
+
* | `appChrome` | `drawer + 1` | the application header |
|
|
14
|
+
* | `aiFab` | `drawer + 1` | the AI floating action button |
|
|
15
|
+
* | `popover` | `modal` | anchored listboxes and popovers (SearchInput's suggestions) |
|
|
16
|
+
* | `toast` | `snackbar` | Toast's stacks |
|
|
17
|
+
* | `skipLink` | `tooltip + 1` | SkipLink, above every overlay but the diagnostic layer |
|
|
18
|
+
* | `diagnostic` | `tooltip + 2` | emergency and diagnostic layers |
|
|
19
|
+
*
|
|
20
|
+
* `fab` (GoToTop) and `tooltip` are MUI's own keys and stay as they are.
|
|
21
|
+
*
|
|
22
|
+
* Trinity themes carry the roles on `theme.zIndex` (optional keys in the published types).
|
|
23
|
+
* Components read them through {@link getZIndexRole}, which derives the role from the theme's
|
|
24
|
+
* scale when a theme does not carry it (a plain `createTheme()`, a consumer theme), so a role
|
|
25
|
+
* always resolves (ADR-26). A theme extended from a Trinity theme
|
|
26
|
+
* (`createTheme(trinityTheme, { zIndex: { tooltip } })`) keeps the carried roles: override the
|
|
27
|
+
* role keys with the scale. Not exported from a package entry.
|
|
28
|
+
*/
|
|
29
|
+
import type { Theme } from '@mui/material/styles';
|
|
30
|
+
/** The MUI zIndex keys the roles derive from. */
|
|
31
|
+
export interface ZIndexScale {
|
|
32
|
+
drawer: number;
|
|
33
|
+
modal: number;
|
|
34
|
+
snackbar: number;
|
|
35
|
+
tooltip: number;
|
|
36
|
+
}
|
|
37
|
+
/** The named overlay layer roles (ADR-03-R12). */
|
|
38
|
+
export interface TrinityZIndexRoles {
|
|
39
|
+
appChrome: number;
|
|
40
|
+
aiPanel: number;
|
|
41
|
+
aiFab: number;
|
|
42
|
+
popover: number;
|
|
43
|
+
toast: number;
|
|
44
|
+
skipLink: number;
|
|
45
|
+
diagnostic: number;
|
|
46
|
+
}
|
|
47
|
+
export type TrinityZIndexRole = keyof TrinityZIndexRoles;
|
|
48
|
+
/** Every role name, in stacking order (lowest first). */
|
|
49
|
+
export declare const Z_INDEX_ROLE_NAMES: readonly TrinityZIndexRole[];
|
|
50
|
+
/** The roles for a MUI zIndex scale: offsets only, no absolute value. */
|
|
51
|
+
export declare function zIndexRoles(scale: ZIndexScale): TrinityZIndexRoles;
|
|
52
|
+
/**
|
|
53
|
+
* The z-index of `role` for `theme`: the theme's own value when it carries the role (a Trinity
|
|
54
|
+
* theme, or a consumer override), else the value derived from the theme's MUI scale.
|
|
55
|
+
*/
|
|
56
|
+
export declare function getZIndexRole(theme: Pick<Theme, 'zIndex'>, role: TrinityZIndexRole): number;
|
|
57
|
+
/**
|
|
58
|
+
* `theme` with every role on `theme.zIndex`, derived from its scale; a role the theme already
|
|
59
|
+
* carries is kept. The Trinity theme factories call it (E-46+ theme wire).
|
|
60
|
+
*/
|
|
61
|
+
export declare function withZIndexRoles<T extends Pick<Theme, 'zIndex'>>(theme: T): T;
|
|
62
|
+
//# sourceMappingURL=zIndexRoles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zIndexRoles.d.ts","sourceRoot":"","sources":["../../../src/components/shared/zIndexRoles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,kBAAkB,CAAC;AAEzD,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,EAAE,SAAS,iBAAiB,EAQzD,CAAC;AAEH,yEAAyE;AACzE,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,kBAAkB,CAUlE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAG3F;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAG5E"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AIReviewQueueTemplate: the golden-dataset review queue (master plan H-25;
|
|
3
|
+
* requirements R24 and R25).
|
|
4
|
+
* @module components/templates/AIReviewQueue
|
|
5
|
+
*
|
|
6
|
+
* A thin template composition (ADR-02: the template lives here, AIReviewItem in AI/) with no
|
|
7
|
+
* business state beyond UI state: the selection, the status filter, the search and the detail
|
|
8
|
+
* drawer (each controlled or uncontrolled), and the focus and announcement after a decision.
|
|
9
|
+
*
|
|
10
|
+
* - **List** (ListDetailTemplate, H-19..H-22, H-43). One row per flagged answer, built once per
|
|
11
|
+
* `items` in a memo (`ListDetailItem & { review }`, a typed path back). The template is the
|
|
12
|
+
* first production consumer of `renderListItem`'s helpers (H-20): each row is a button with
|
|
13
|
+
* `aria-current` (ADR-34 (4); keyboard-models.md (4)), named by the question, and described by
|
|
14
|
+
* the answer, the query and a meta line (status chip with an icon, flag count and problem
|
|
15
|
+
* types, AIConfidenceBadge, the golden badge, the time it was asked).
|
|
16
|
+
* - **Filter.** ChoiceChips (D-09), native checkboxes in a fieldset with a legend, one per review
|
|
17
|
+
* status, with counts from `statusCounts` or counted from `items`. The default filter is
|
|
18
|
+
* pending answers. No status checked shows every status.
|
|
19
|
+
* - **Detail.** AIReviewItem (G-19) with the item's history merged with `history`, `canDecide`
|
|
20
|
+
* per item, `loading` (`detailLoading`), `headingRef` and `focusOnResolve` 'none' while the
|
|
21
|
+
* queue moves on. It is keyed by the item, so its edit and dialog state never outlive the item.
|
|
22
|
+
* - **Decisions.** The template awaits `onDecision`. On success, with `advanceOnDecision` (the
|
|
23
|
+
* default), it selects the item after the decided one in the order shown when the decision
|
|
24
|
+
* started, else the one before, else none; it then focuses that item's heading
|
|
25
|
+
* (useFocusOnReplace), or the empty-state heading, and announces the outcome and the number of
|
|
26
|
+
* answers left. A rejection changes nothing here: AIReviewItem shows the error, focus stays.
|
|
27
|
+
* - **States** (H-43's slots). Empty queue: IllustratedMessage 'success'. Nothing matches the
|
|
28
|
+
* search or the filter: 'no-results' with Clear filters (MICROCOPY's empty list). Load error:
|
|
29
|
+
* 'error-generic' with a Try again button run through useAsyncAction (aria-disabled and
|
|
30
|
+
* aria-busy while pending). Loading: ListDetailTemplate's skeleton with aria-busy.
|
|
31
|
+
* - **Scale.** `hasMore`, `onLoadMore`, `loadingMore` and `totalCount` pass through (every row
|
|
32
|
+
* carries aria-setsize and aria-posinset). `filterMode` 'server' shows `items` as given: the
|
|
33
|
+
* consumer filters through `onStatusFilterChange` and `onSearchChange`. Virtualization is
|
|
34
|
+
* deferred (MASTER_PLAN section 10, H-22), so there is no `virtualized` prop.
|
|
35
|
+
* - **Layout.** `collapseMode` 'container': below the width of a list plus a compact detail
|
|
36
|
+
* (744px with the defaults) the queue is the list plus a detail drawer as wide as the queue, so
|
|
37
|
+
* it works beside AppLayout's AI panel, inside the docked panel (320 to 800px; the drawer
|
|
38
|
+
* covers the panel) and on a full page.
|
|
39
|
+
* - **Design.** Strings from `ai.reviewQueue` (ADR-06); colours from the resolver and the brand
|
|
40
|
+
* primary (ADR-03, ADR-26); logical properties and motion tokens (ADR-11); the root props
|
|
41
|
+
* contract with `slotProps` { listPanel, detailPanel, filter } (ADR-04); SSR-safe (ADR-27).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <AIReviewQueueTemplate
|
|
46
|
+
* items={items}
|
|
47
|
+
* onDecision={(decision) => api.decide(decision)}
|
|
48
|
+
* canDecide={(item) => user.canReview(item)}
|
|
49
|
+
* />
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
import * as React from 'react';
|
|
53
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
54
|
+
import type { AIActionErrorContext, AIReviewDecision, AIReviewEditableField, AIReviewHistoryEntry, AIReviewItemData, AIReviewStatus } from '../../AI/types/hitl';
|
|
55
|
+
import type { HeadingLevel } from '../../shared/headingLevel';
|
|
56
|
+
import { type TrinityRootProps, type TrinitySlotProps } from '../../shared/rootProps';
|
|
57
|
+
import { type ListDetailItemHelpers } from '../ListDetail';
|
|
58
|
+
/**
|
|
59
|
+
* One event of the queue's decision log for an item: an {@link AIReviewHistoryEntry} with the id
|
|
60
|
+
* of the item it belongs to. The template groups them per item and shows them in the item's
|
|
61
|
+
* history, after the entries of `item.history` (an entry whose `id` is already there is shown
|
|
62
|
+
* once).
|
|
63
|
+
*
|
|
64
|
+
* @since 2.13.0
|
|
65
|
+
*/
|
|
66
|
+
export interface AIReviewQueueHistoryEntry extends AIReviewHistoryEntry {
|
|
67
|
+
/** Id of the review item the entry belongs to. */
|
|
68
|
+
itemId: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The load error of {@link AIReviewQueueTemplate}: shown instead of the list.
|
|
72
|
+
*
|
|
73
|
+
* @since 2.13.0
|
|
74
|
+
*/
|
|
75
|
+
export interface AIReviewQueueError {
|
|
76
|
+
/** The heading. @default ai.reviewQueue.errorTitle */
|
|
77
|
+
title?: string;
|
|
78
|
+
/** The text under the heading. @default ai.reviewQueue.errorDescription */
|
|
79
|
+
description?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Loads the queue again. With it, a Try again button shows; a returned promise keeps the button
|
|
82
|
+
* aria-disabled and busy until it settles.
|
|
83
|
+
*/
|
|
84
|
+
onRetry?: () => void | Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* AIReviewQueueTemplate's own props (the HTML attributes of the root are added in
|
|
88
|
+
* {@link AIReviewQueueTemplateProps}).
|
|
89
|
+
*
|
|
90
|
+
* @since 2.13.0
|
|
91
|
+
*/
|
|
92
|
+
export interface AIReviewQueueTemplateOwnProps {
|
|
93
|
+
/** The answers in the queue (in `filterMode` 'server', the ones the server returned). */
|
|
94
|
+
items: AIReviewItemData[];
|
|
95
|
+
/** The selected item's id (controlled); `null` selects nothing. */
|
|
96
|
+
selectedId?: string | null;
|
|
97
|
+
/** The initially selected item's id (uncontrolled). @default null */
|
|
98
|
+
defaultSelectedId?: string | null;
|
|
99
|
+
/** Called when the selection changes: a row press, or the queue moving on after a decision. */
|
|
100
|
+
onSelectedIdChange?: (id: string | null, item?: AIReviewItemData) => void;
|
|
101
|
+
/** The statuses shown (controlled). An empty list shows every status. */
|
|
102
|
+
statusFilter?: AIReviewStatus[];
|
|
103
|
+
/** The initial status filter (uncontrolled). @default ['pending'] */
|
|
104
|
+
defaultStatusFilter?: AIReviewStatus[];
|
|
105
|
+
/** Called when the reviewer changes the status filter or clears the filters. */
|
|
106
|
+
onStatusFilterChange?: (statuses: AIReviewStatus[]) => void;
|
|
107
|
+
/**
|
|
108
|
+
* The number of items per status, shown in the filter. Without it the template counts `items`
|
|
109
|
+
* in `filterMode` 'client' and shows no count in 'server'.
|
|
110
|
+
*/
|
|
111
|
+
statusCounts?: Partial<Record<AIReviewStatus, number>>;
|
|
112
|
+
/**
|
|
113
|
+
* Who filters: `'client'` filters `items` by status and search; `'server'` shows `items` as given
|
|
114
|
+
* and leaves the filtering to the consumer (`onStatusFilterChange`, `onSearchChange`).
|
|
115
|
+
* @default 'client'
|
|
116
|
+
*/
|
|
117
|
+
filterMode?: 'client' | 'server';
|
|
118
|
+
/** The search text (controlled). */
|
|
119
|
+
searchValue?: string;
|
|
120
|
+
/** The initial search text (uncontrolled). @default '' */
|
|
121
|
+
defaultSearchValue?: string;
|
|
122
|
+
/** Called when the search text changes. */
|
|
123
|
+
onSearchChange?: (value: string) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Called with the reviewer's decision. Return the request's promise: while it is pending the
|
|
126
|
+
* item's controls are aria-disabled; a rejection shows the item's error and keeps the item
|
|
127
|
+
* selected; a success moves the queue on (`advanceOnDecision`).
|
|
128
|
+
*/
|
|
129
|
+
onDecision?: (decision: AIReviewDecision) => void | Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the reviewer may decide: one answer for every item, or one per item. When false the
|
|
132
|
+
* item shows `decisionBlockedReason` instead of its controls.
|
|
133
|
+
* @default Boolean(onDecision)
|
|
134
|
+
*/
|
|
135
|
+
canDecide?: boolean | ((item: AIReviewItemData) => boolean);
|
|
136
|
+
/** Why the reviewer cannot decide (`ai.reviewItem.blockedReason`). */
|
|
137
|
+
decisionBlockedReason?: string;
|
|
138
|
+
/**
|
|
139
|
+
* After a successful decision, select the next item shown (else the previous one, else none)
|
|
140
|
+
* and move focus to its heading (else to the empty-state heading). When false the selection
|
|
141
|
+
* stays and the item's summary takes focus.
|
|
142
|
+
* @default true
|
|
143
|
+
*/
|
|
144
|
+
advanceOnDecision?: boolean;
|
|
145
|
+
/** Decision-log entries, each with its item's id; shown in that item's history. */
|
|
146
|
+
history?: AIReviewQueueHistoryEntry[];
|
|
147
|
+
/** The fields the item's Edit form offers. @default ['answer'] */
|
|
148
|
+
editableFields?: AIReviewEditableField[];
|
|
149
|
+
/** The queue is loading: the list shows its skeleton and is busy. */
|
|
150
|
+
loading?: boolean;
|
|
151
|
+
/** A decision is saving outside the item: the item's controls are aria-disabled and it is busy. */
|
|
152
|
+
detailLoading?: boolean;
|
|
153
|
+
/** Loading the queue failed: the error replaces the list. */
|
|
154
|
+
error?: AIReviewQueueError | null;
|
|
155
|
+
/** Replaces the empty queue's message. */
|
|
156
|
+
emptyState?: React.ReactNode;
|
|
157
|
+
/** Replaces the message shown when the search or the filter matches nothing. */
|
|
158
|
+
filteredEmptyState?: React.ReactNode;
|
|
159
|
+
/** More items can be loaded: a Load more button follows the list. */
|
|
160
|
+
hasMore?: boolean;
|
|
161
|
+
/** Loads the next items (append them to `items`); a returned promise keeps the button busy. */
|
|
162
|
+
onLoadMore?: () => void | Promise<void>;
|
|
163
|
+
/** More items are loading (for an `onLoadMore` that loads elsewhere). */
|
|
164
|
+
loadingMore?: boolean;
|
|
165
|
+
/** The number of items in the whole queue, when `items` holds only the loaded part. */
|
|
166
|
+
totalCount?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Renders a row yourself. Spread `helpers.getItemProps()` on the row's pressable element (or call
|
|
169
|
+
* `helpers.select()`), so selection, the detail drawer and `aria-current` keep working.
|
|
170
|
+
*/
|
|
171
|
+
renderListItem?: (item: AIReviewItemData, selected: boolean, helpers: ListDetailItemHelpers) => React.ReactNode;
|
|
172
|
+
/** Shown in the detail's header row while an item is selected. */
|
|
173
|
+
detailActions?: React.ReactNode;
|
|
174
|
+
/** Level of the item's heading and of the empty states' headings. @default 2 */
|
|
175
|
+
headingLevel?: HeadingLevel;
|
|
176
|
+
/** Called with the error of a failed decision or retry. */
|
|
177
|
+
onActionError?: (error: unknown, context: AIActionErrorContext) => void;
|
|
178
|
+
/** Added to the root element's classes. */
|
|
179
|
+
className?: string;
|
|
180
|
+
/** Styles for the root element, applied after the template's own. */
|
|
181
|
+
sx?: SxProps<Theme>;
|
|
182
|
+
/**
|
|
183
|
+
* Props for the template's parts (ADR-04 (6)): `listPanel` and `detailPanel` (ListDetailTemplate's
|
|
184
|
+
* panels) and `filter` (the status filter's fieldset).
|
|
185
|
+
*/
|
|
186
|
+
slotProps?: {
|
|
187
|
+
listPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
188
|
+
detailPanel?: TrinitySlotProps<HTMLDivElement>;
|
|
189
|
+
filter?: TrinitySlotProps<HTMLFieldSetElement>;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Props of {@link AIReviewQueueTemplate}: its own props plus the HTML attributes of the root div
|
|
194
|
+
* (ADR-04).
|
|
195
|
+
*
|
|
196
|
+
* @since 2.13.0
|
|
197
|
+
*/
|
|
198
|
+
export interface AIReviewQueueTemplateProps extends AIReviewQueueTemplateOwnProps, TrinityRootProps<HTMLDivElement, AIReviewQueueTemplateOwnProps> {
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* The golden-dataset review queue: flagged answers in a filterable list, each opened in
|
|
202
|
+
* AIReviewItem to approve, edit or reject, with focus and selection moving on after each decision.
|
|
203
|
+
* See the module notes.
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```tsx
|
|
207
|
+
* <AIReviewQueueTemplate items={items} onDecision={(decision) => api.decide(decision)} />
|
|
208
|
+
* ```
|
|
209
|
+
*
|
|
210
|
+
* @since 2.13.0
|
|
211
|
+
*/
|
|
212
|
+
export declare const AIReviewQueueTemplate: React.ForwardRefExoticComponent<AIReviewQueueTemplateProps & React.RefAttributes<HTMLDivElement>>;
|
|
213
|
+
//# sourceMappingURL=AIReviewQueueTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AIReviewQueueTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/AIReviewQueue/AIReviewQueueTemplate.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/AIReviewQueue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/AuthTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAcvF;;;;GAIG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"AuthTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/AuthTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,SAAS,CAAC;AAEjE,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAcvF;;;;GAIG;AACH,eAAO,MAAM,YAAY,0FAkNxB,CAAC"}
|
|
@@ -15,7 +15,10 @@ export interface AuthAction {
|
|
|
15
15
|
icon?: ReactNode;
|
|
16
16
|
/** Disabled state */
|
|
17
17
|
disabled?: boolean;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Loading state: shows a spinner and ignores submits while the button keeps focus
|
|
20
|
+
* (aria-disabled and aria-busy; `disabled` alone disables it natively).
|
|
21
|
+
*/
|
|
19
22
|
loading?: boolean;
|
|
20
23
|
/** Label to show while loading */
|
|
21
24
|
loadingLabel?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Auth/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,mCAAmC;IACnC,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,sDAAsD;IACtD,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,qCAAqC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CAC9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Catalog/CatalogTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/Catalog/CatalogTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,GACZ,MAAM,SAAS,CAAC;AA+IjB,eAAO,MAAM,eAAe,6FAkS3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectorWizardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ConnectorWizard/ConnectorWizardTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectorWizardTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/ConnectorWizard/ConnectorWizardTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,MAAM,WAAW,aAAa;IAC5B,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;IAC7C,gBAAgB;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAqB,SAAQ,kBAAkB;IAC9D,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,iDAAiD;IACjD,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAClC,mDAAmD;IACnD,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACtC,gDAAgD;IAChD,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE;QACpB,SAAS,EAAE,aAAa,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,kDAAkD;IAClD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE;QACjB,SAAS,EAAE,aAAa,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtD,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,uBAAuB,qGA6RlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightsCenterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/InsightsCenter/InsightsCenterTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InsightsCenterTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/InsightsCenter/InsightsCenterTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,SAAS,CAAC;IACtF,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,4CAA4C;IAC5C,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,0BAA0B;IAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,sEAAsE;IACtE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3D,6CAA6C;IAC7C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,kCAAkC;IAClC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACxD,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,sBAAsB,oGA+NjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/IntegrationDetail/IntegrationDetailTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"IntegrationDetailTemplate.d.ts","sourceRoot":"","sources":["../../../../src/components/templates/IntegrationDetail/IntegrationDetailTemplate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,MAAM,MAAM,iBAAiB,GACzB,WAAW,GACX,cAAc,GACd,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,eAAe;IAC9B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,kDAAkD;IAClD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,2CAA2C;IAC3C,WAAW,EAAE,eAAe,CAAC;IAC7B,uBAAuB;IACvB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,mDAAmD;IACnD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,yDAAyD;IACzD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAaD,eAAO,MAAM,yBAAyB,uGAqLpC,CAAC"}
|