@manta-eu/react 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-plan-changes/ActionPlanChangesTable.js +1 -1
- package/dist/action-plan-changes/build-change-tree.js.map +1 -1
- package/dist/ad-preview/AdPluralDisplay.js +1 -1
- package/dist/ad-preview/GoogleAdGroupAdSingularDisplay.js +1 -3
- package/dist/ad-preview/GoogleAdGroupAdSingularDisplay.js.map +1 -1
- package/dist/ad-preview/MetaAdPreview.js +1 -1
- package/dist/ad-preview/meta-ad-copy.d.ts.map +1 -1
- package/dist/ad-preview/meta-ad-model.js.map +1 -1
- package/dist/components/ErrorBoundary.d.ts.map +1 -1
- package/dist/components/ad-preview/business-avatar.d.ts.map +1 -1
- package/dist/components/ad-preview/business-identity.d.ts.map +1 -1
- package/dist/components/ad-preview/business-info.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/carousel.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/constants.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/header.js +1 -1
- package/dist/components/ad-preview/facebook/instream-reels.d.ts.map +1 -1
- package/dist/components/ad-preview/facebook/marketplace.d.ts.map +1 -1
- package/dist/components/ad-preview/google/search.js +1 -1
- package/dist/components/ad-preview/instagram/feed.js +1 -1
- package/dist/components/ad-preview/instagram/search-result.d.ts.map +1 -1
- package/dist/components/ad-preview/use-scroll-navigation.d.ts.map +1 -1
- package/dist/components/ai-elements/conversation.js +1 -1
- package/dist/components/badge/index.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/banner/index.d.ts.map +1 -1
- package/dist/components/branding/MantaGridAnimation.js +1 -1
- package/dist/components/breadcrumbs/index.js +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/chart/ForecastChart.d.ts +41 -0
- package/dist/components/chart/ForecastChart.d.ts.map +1 -0
- package/dist/components/chart/ForecastChart.js +110 -0
- package/dist/components/chart/ForecastChart.js.map +1 -0
- package/dist/components/chart/ForecastEventCard.d.ts +28 -0
- package/dist/components/chart/ForecastEventCard.d.ts.map +1 -0
- package/dist/components/chart/ForecastEventCard.js +56 -0
- package/dist/components/chart/ForecastEventCard.js.map +1 -0
- package/dist/components/chart/ForecastHoverCard.d.ts +23 -0
- package/dist/components/chart/ForecastHoverCard.d.ts.map +1 -0
- package/dist/components/chart/ForecastHoverCard.js +22 -0
- package/dist/components/chart/ForecastHoverCard.js.map +1 -0
- package/dist/components/chart/ForecastLegend.d.ts +33 -0
- package/dist/components/chart/ForecastLegend.d.ts.map +1 -0
- package/dist/components/chart/ForecastLegend.js +38 -0
- package/dist/components/chart/ForecastLegend.js.map +1 -0
- package/dist/components/chart/annotations.d.ts.map +1 -1
- package/dist/components/chart/chart-colors.d.ts.map +1 -1
- package/dist/components/chart/chart-schemas.d.ts +599 -599
- package/dist/components/chart/chart-schemas.d.ts.map +1 -1
- package/dist/components/chart/chart-schemas.js.map +1 -1
- package/dist/components/chart/chart.js +1 -1
- package/dist/components/chart/forecast-model.d.ts +70 -0
- package/dist/components/chart/forecast-model.d.ts.map +1 -0
- package/dist/components/chart/forecast-model.js +89 -0
- package/dist/components/chart/forecast-model.js.map +1 -0
- package/dist/components/chart/forecast.d.ts +62 -0
- package/dist/components/chart/forecast.d.ts.map +1 -0
- package/dist/components/chart/forecast.js +90 -0
- package/dist/components/chart/forecast.js.map +1 -0
- package/dist/components/chart/index.d.ts +3 -0
- package/dist/components/chart/index.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -0
- package/dist/components/chart/index.js.map +1 -1
- package/dist/components/chat/chat-input/index.d.ts +1 -1
- package/dist/components/chat/chat-input/index.js +1 -1
- package/dist/components/chat/chat-input-footer/index.js +1 -1
- package/dist/components/chat/chat-reasoning/index.js +1 -1
- package/dist/components/chat-view/Chat.js +1 -1
- package/dist/components/chat-view/FileMessagePart.js +1 -1
- package/dist/components/chat-view/GraphContextPanel.js +1 -1
- package/dist/components/chat-view/MessageItem.js +1 -1
- package/dist/components/command/index.d.ts +15 -15
- package/dist/components/command/index.d.ts.map +1 -1
- package/dist/components/command/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/graph/AgentsGraphListRow.js +1 -1
- package/dist/components/input/ai-action-buttons.js +1 -1
- package/dist/components/input/input-date-range.js +1 -1
- package/dist/components/input/input-field.d.ts.map +1 -1
- package/dist/components/input/input-field.js +1 -1
- package/dist/components/input/textarea.d.ts.map +1 -1
- package/dist/components/input/textarea.js +2 -2
- package/dist/components/input-otp/index.d.ts +6 -6
- package/dist/components/input-otp/index.d.ts.map +1 -1
- package/dist/components/layouts/InstallPrompt.js +1 -1
- package/dist/components/layouts/KnowledgeGraphStartupGate.d.ts +1 -1
- package/dist/components/layouts/RouteLayout.js +1 -1
- package/dist/components/layouts/page/PageHeaderActions.js +1 -1
- package/dist/components/loader/index.d.ts.map +1 -1
- package/dist/components/manta-logo/index.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/onboarding/SidebarSpotlight.js +1 -1
- package/dist/components/pill/index.d.ts.map +1 -1
- package/dist/components/planning/ActionPlanDetailView.js +1 -1
- package/dist/components/planning/ManualActionList.d.ts +1 -1
- package/dist/components/planning/PlanDetailFooter.js +1 -1
- package/dist/components/popover/index.d.ts +2 -1
- package/dist/components/popover/index.d.ts.map +1 -1
- package/dist/components/popover/index.js +2 -1
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/progress/index.d.ts.map +1 -1
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/rdf-insights/CampaignPerformanceSummary.js +1 -1
- package/dist/components/rdf-insights/InsightCard.js +1 -1
- package/dist/components/rdf-insights/ProductProfitability.js +1 -1
- package/dist/components/rdf-insights/ProductSalesRanking.js +1 -1
- package/dist/components/rdf-insights/ProductVariantsTable.js +1 -1
- package/dist/components/rdf-insights/RoasBenchmark.js +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/sheet/index.d.ts.map +1 -1
- package/dist/components/sidebar/company-picker.js +1 -1
- package/dist/components/sidebar/nav-menu.js +1 -1
- package/dist/components/skeleton/index.d.ts +4 -4
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/status/index.d.ts.map +1 -1
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/use-table-state.js.map +1 -1
- package/dist/components/table-skeleton/index.js +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/thinking/index.d.ts.map +1 -1
- package/dist/components/toast/index.d.ts.map +1 -1
- package/dist/components/tool-invocation-card/DefaultResultDisplay.js +1 -1
- package/dist/components/tool-invocation-card/ToolOutputRenderer.js +1 -1
- package/dist/components/tree-multi-select/tree-multi-select-rows.js.map +1 -1
- package/dist/datastore-picker/DatastoreRow.js +1 -1
- package/dist/easing.d.ts.map +1 -1
- package/dist/entity-tree/EntityRelationTree.js +1 -1
- package/dist/explain-fact/EntityChip.js +1 -1
- package/dist/explain-fact/conclusion/ConclusionSubtitle.js +1 -1
- package/dist/explain-fact/inspector/InspectorBindings.js +1 -1
- package/dist/explain-fact/inspector/SupportsSection.js +1 -1
- package/dist/explain-fact/proof-tree/ProofRowContent.js +1 -1
- package/dist/explain-fact/proof-tree/ProofRowValue.js +1 -1
- package/dist/globals.css +64 -0
- package/dist/graph/GraphContextPanel.js +1 -1
- package/dist/graph/GraphControls.d.ts +1 -1
- package/dist/graph/GraphControls.d.ts.map +1 -1
- package/dist/graph/GraphControls.js +1 -1
- package/dist/graph/GraphErrorBoundary.d.ts +1 -1
- package/dist/graph/GraphErrorBoundary.d.ts.map +1 -1
- package/dist/graph/NodeContextMenu.d.ts +1 -1
- package/dist/graph/NodeContextMenu.d.ts.map +1 -1
- package/dist/graph/NodeContextMenu.js +1 -1
- package/dist/graph/NodeDetailPanel/PropertyDiffView.js +1 -1
- package/dist/graph/custom-nodes.d.ts +4 -4
- package/dist/graph/custom-nodes.d.ts.map +1 -1
- package/dist/graph/custom-nodes.js +1 -1
- package/dist/graph/graph-layout.js.map +1 -1
- package/dist/graph/graph-list-utils.js.map +1 -1
- package/dist/graph/graph-model.js.map +1 -1
- package/dist/graph/graph-store.js.map +1 -1
- package/dist/graph/nodes/AdsDailyReportTemplateView.d.ts +1 -1
- package/dist/graph/nodes/AdsDailyReportTemplateView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioCallRecordingView.d.ts +1 -1
- package/dist/graph/nodes/AttioCallRecordingView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioCompanyView.d.ts +1 -1
- package/dist/graph/nodes/AttioCompanyView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioDealView.d.ts +1 -1
- package/dist/graph/nodes/AttioDealView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioMeetingView.d.ts +1 -1
- package/dist/graph/nodes/AttioMeetingView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioNoteView.d.ts +1 -1
- package/dist/graph/nodes/AttioNoteView.d.ts.map +1 -1
- package/dist/graph/nodes/AttioTaskView.d.ts +1 -1
- package/dist/graph/nodes/AttioTaskView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisActionView.d.ts +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisActionView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisView.d.ts +1 -1
- package/dist/graph/nodes/BrandAssetAnalysisView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandFontSuggestionView.d.ts +1 -1
- package/dist/graph/nodes/BrandFontSuggestionView.d.ts.map +1 -1
- package/dist/graph/nodes/BrandGuidelinesView.d.ts +1 -1
- package/dist/graph/nodes/BrandGuidelinesView.d.ts.map +1 -1
- package/dist/graph/nodes/ConnectedAccountCard.d.ts +1 -1
- package/dist/graph/nodes/ConnectedAccountCard.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalCompanyView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalCompanyView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalEmployeeView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalEmployeeView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalExperienceView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalExperienceView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalJobView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalJobView.d.ts.map +1 -1
- package/dist/graph/nodes/CoresignalKeyExecutiveDepartureView.d.ts +1 -1
- package/dist/graph/nodes/CoresignalKeyExecutiveDepartureView.d.ts.map +1 -1
- package/dist/graph/nodes/EntityCardShell.d.ts +1 -1
- package/dist/graph/nodes/EntityCardShell.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4DailyOverviewView.d.ts +1 -1
- package/dist/graph/nodes/Ga4DailyOverviewView.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4FunnelEventCountView.d.ts +1 -1
- package/dist/graph/nodes/Ga4FunnelEventCountView.d.ts.map +1 -1
- package/dist/graph/nodes/Ga4TrafficSourceView.d.ts +1 -1
- package/dist/graph/nodes/Ga4TrafficSourceView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupAdView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupAdView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupCriterionView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupCriterionView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleAdGroupView.d.ts +1 -1
- package/dist/graph/nodes/GoogleAdGroupView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignBudgetView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignBudgetView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignCriterionView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignCriterionView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignInsightView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCampaignView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCampaignView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCustomerClientView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCustomerClientView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleCustomerView.d.ts +1 -1
- package/dist/graph/nodes/GoogleCustomerView.d.ts.map +1 -1
- package/dist/graph/nodes/GoogleSearchTermInsightView.d.ts +1 -1
- package/dist/graph/nodes/GoogleSearchTermInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/LinkedinAdAccountView.d.ts +1 -1
- package/dist/graph/nodes/LinkedinAdAccountView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdAccountActivityView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdAccountActivityView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdAccountView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdAccountView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdImageView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdImageView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdSetView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdSetView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaAdView.d.ts +1 -1
- package/dist/graph/nodes/MetaAdView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaCampaignView.d.ts +1 -1
- package/dist/graph/nodes/MetaCampaignView.d.ts.map +1 -1
- package/dist/graph/nodes/MetaInsightView.d.ts +1 -1
- package/dist/graph/nodes/MetaInsightView.d.ts.map +1 -1
- package/dist/graph/nodes/RenderedTemplateView.d.ts +1 -1
- package/dist/graph/nodes/RenderedTemplateView.d.ts.map +1 -1
- package/dist/graph/nodes/SchemaActionView.d.ts +1 -1
- package/dist/graph/nodes/SchemaActionView.d.ts.map +1 -1
- package/dist/graph/nodes/ShopifyShopView.d.ts +1 -1
- package/dist/graph/nodes/ShopifyShopView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackChannelView.d.ts +1 -1
- package/dist/graph/nodes/SlackChannelView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackMessageView.d.ts +1 -1
- package/dist/graph/nodes/SlackMessageView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackUserView.d.ts +1 -1
- package/dist/graph/nodes/SlackUserView.d.ts.map +1 -1
- package/dist/graph/nodes/SlackWorkspaceView.d.ts +1 -1
- package/dist/graph/nodes/SlackWorkspaceView.d.ts.map +1 -1
- package/dist/graph/nodes/attio-shared.d.ts +1 -1
- package/dist/graph/nodes/attio-shared.d.ts.map +1 -1
- package/dist/graph/nodes/attio-shared.js +1 -1
- package/dist/graph/nodes/brand-shared.d.ts.map +1 -1
- package/dist/graph/nodes/card-rows.js +1 -1
- package/dist/graph/nodes/google-campaign-utils.d.ts.map +1 -1
- package/dist/graph/nodes/insight-shared.d.ts +1 -1
- package/dist/graph/nodes/insight-shared.d.ts.map +1 -1
- package/dist/graph/special-nodes/BaseNode.d.ts +2 -2
- package/dist/graph/special-nodes/BaseNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/BaseNode.js +1 -1
- package/dist/graph/special-nodes/DynamicNode.d.ts +1 -1
- package/dist/graph/special-nodes/DynamicNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/EntityValueChip.js +1 -1
- package/dist/graph/special-nodes/GenericNode.d.ts +1 -1
- package/dist/graph/special-nodes/GenericNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/GenericView.d.ts +1 -1
- package/dist/graph/special-nodes/GenericView.d.ts.map +1 -1
- package/dist/graph/special-nodes/NodeFrame.d.ts +1 -1
- package/dist/graph/special-nodes/NodeFrame.d.ts.map +1 -1
- package/dist/graph/special-nodes/NodeFrame.js +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.d.ts +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.d.ts.map +1 -1
- package/dist/graph/special-nodes/TypeSummaryNode.js +1 -1
- package/dist/graph/special-nodes/card-facts.js.map +1 -1
- package/dist/hooks/resolved-terms.d.ts +1 -0
- package/dist/hooks/resolved-terms.d.ts.map +1 -1
- package/dist/hooks/resolved-terms.js +2 -1
- package/dist/hooks/resolved-terms.js.map +1 -1
- package/dist/hooks/use-action-plans-list.d.ts.map +1 -1
- package/dist/hooks/use-action-plans-list.js.map +1 -1
- package/dist/hooks/use-activity-feed.js.map +1 -1
- package/dist/hooks/use-connection-problems.d.ts.map +1 -1
- package/dist/hooks/use-conversation-starters.d.ts +2 -2
- package/dist/hooks/use-entity-relations.d.ts.map +1 -1
- package/dist/hooks/use-entity.d.ts.map +1 -1
- package/dist/hooks/use-latest-rendered-template.d.ts.map +1 -1
- package/dist/hooks/use-manual-actions.d.ts.map +1 -1
- package/dist/hooks/use-manual-actions.js.map +1 -1
- package/dist/hooks/useActionGraph.d.ts.map +1 -1
- package/dist/hooks/useActionGraph.js.map +1 -1
- package/dist/hooks/useActionPlanDetail.d.ts +2 -2
- package/dist/hooks/useActionPlanDetail.d.ts.map +1 -1
- package/dist/hooks/useAuth.d.ts +2 -1
- package/dist/hooks/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth.js +4 -1
- package/dist/hooks/useAuth.js.map +1 -1
- package/dist/hooks/useConversationGraphContext.js.map +1 -1
- package/dist/hooks/useConversations.js.map +1 -1
- package/dist/hooks/useDatastoreSelection.js.map +1 -1
- package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
- package/dist/lib/build-config.js.map +1 -1
- package/dist/lib/default-map.d.ts.map +1 -1
- package/dist/lib/default-map.js.map +1 -1
- package/dist/lib/merge-refs.d.ts.map +1 -1
- package/dist/lib/rdf/insights.js.map +1 -1
- package/dist/lib/structured-data/schema-converter.d.ts +2 -2
- package/dist/lib/structured-data/schema-converter.d.ts.map +1 -1
- package/dist/lib/structured-data/schema-converter.js.map +1 -1
- package/dist/lib/tanstack-query.js +1 -1
- package/dist/lib/tanstack-query.js.map +1 -1
- package/dist/lib/term-batcher.d.ts +3 -1
- package/dist/lib/term-batcher.d.ts.map +1 -1
- package/dist/lib/term-batcher.js +2 -2
- package/dist/lib/term-batcher.js.map +1 -1
- package/dist/lib/use-can-scroll.d.ts.map +1 -1
- package/dist/lib/use-color-palette.d.ts.map +1 -1
- package/dist/lib/use-toggle-set.js.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/ontology/OntologyTermText.js +1 -1
- package/dist/providers/ActiveChatProvider.d.ts +1 -1
- package/dist/providers/ActiveDatastoreProvider.js.map +1 -1
- package/dist/providers/AuthContext.d.ts +1 -0
- package/dist/providers/AuthContext.d.ts.map +1 -1
- package/dist/providers/AuthContext.js.map +1 -1
- package/dist/providers/ChatManagerProvider.js.map +1 -1
- package/dist/providers/commands/CommandContext.js +1 -1
- package/dist/routes/activity/components/ActivityTable.js +1 -1
- package/dist/routes/activity/detail/ActivityDetail.d.ts.map +1 -1
- package/dist/routes/activity/detail/ActivityDetail.js +1 -1
- package/dist/routes/activity/detail/ActivityStepsRail.js +1 -1
- package/dist/routes/activity/detail/ActivityTimeline.js +1 -1
- package/dist/routes/data-explorer/class-properties.js.map +1 -1
- package/dist/routes/data-explorer/class-relations.d.ts +2 -2
- package/dist/routes/data-explorer/components/DetailHeader.js +1 -1
- package/dist/routes/data-explorer/components/DetailHeader.js.map +1 -1
- package/dist/routes/data-explorer/components/SegmentBuilder.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/ClassDetail.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/CreateRecordAction.js +1 -1
- package/dist/routes/data-explorer/components/class-detail/Overview.js +1 -1
- package/dist/routes/data-explorer/components/ontology-coverage/CoverageNamespaceRail.js +1 -1
- package/dist/routes/data-explorer/components/ontology-coverage/CoverageSkeleton.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/CreateAction.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordActions.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordActions.js +12 -9
- package/dist/routes/data-explorer/components/record-detail/RecordActions.js.map +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordDetail.js +1 -1
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.d.ts +7 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.d.ts.map +1 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.js +104 -0
- package/dist/routes/data-explorer/components/record-detail/RecordRefresh.js.map +1 -0
- package/dist/routes/data-explorer/coverage.d.ts.map +1 -1
- package/dist/routes/data-explorer/sparql-client.js.map +1 -1
- package/dist/routes/datastores/components/DatastoreTableSkeleton.js +1 -1
- package/dist/routes/datastores/components/DatastoresToolbar.js +1 -1
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.js +1 -1
- package/dist/routes/datastores/components/UnlinkedDatastoresPanel.js +1 -1
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts +2 -2
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts.map +1 -1
- package/dist/routes/datastores/hooks/useDatastoreColumns.js +2 -4
- package/dist/routes/datastores/hooks/useDatastoreColumns.js.map +1 -1
- package/dist/routes/datastores/index.js +1 -1
- package/dist/routes/integrations/catalog-shape.js.map +1 -1
- package/dist/routes/integrations/components/ConnectionRow.js +1 -1
- package/dist/routes/integrations/components/ProviderLogo.d.ts.map +1 -1
- package/dist/routes/integrations/components/connect-forms/DashConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/MetaAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/MicrosoftAdsConnectForm.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/google-ads-account-tree.js.map +1 -1
- package/dist/routes/integrations/components/connect-forms/google-analytics-property-tree.js.map +1 -1
- package/dist/routes/integrations/types.d.ts.map +1 -1
- package/dist/routes/memories/components/ChangeScopeDialog.js +1 -1
- package/dist/routes/memories/components/ConflictMemoryCard.js +1 -1
- package/dist/routes/memories/components/ConsolidationReviewDialog.js +1 -1
- package/dist/routes/memories/components/LoadingSkeleton.js +1 -1
- package/dist/routes/memories/components/MemoriesFilters.js +1 -1
- package/dist/routes/memories/components/MemoriesTabPanel.js +1 -1
- package/dist/routes/memories/components/MemoryActions.js +1 -1
- package/dist/routes/memories/components/MemoryFields.js +1 -1
- package/dist/routes/memories/components/MemoryFormDialog.js +1 -1
- package/dist/routes/memories/expiry-utils.js.map +1 -1
- package/dist/routes/memories/hooks/useDuplicateDetection.js.map +1 -1
- package/dist/routes/memories/hooks/useLiveContext.d.ts.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts.map +1 -1
- package/dist/routes/memories/hooks/useMemoryColumns.js +1 -1
- package/dist/routes/memories/hooks/useMemoryTable.js.map +1 -1
- package/dist/routes/plans/components/ActionPlanPage.js +1 -1
- package/dist/routes/plans/components/ActionPlansFilters.js +1 -1
- package/dist/routes/plans/components/ActionPlansPage.js +1 -1
- package/dist/routes/plans/components/ActionPlansTableBody.js +1 -1
- package/dist/routes/plans/components/actionPlansTableConfig.d.ts +7 -7
- package/dist/routes/plans/components/actionPlansTableConfig.d.ts.map +1 -1
- package/dist/routes/plans/index.js +1 -1
- package/dist/routes/rules/components/RuleAffectedActionPlansSection.js +1 -1
- package/dist/routes/rules/components/RuleDetailsPage.js +1 -1
- package/dist/routes/rules/components/RuleProducersSection.js +1 -1
- package/dist/routes/rules/components/RuleSetup.js +1 -1
- package/dist/routes/rules/components/RulesOverviewPage.js +1 -1
- package/dist/routes/rules/components/datalog-editor/FactsPreview.js +1 -1
- package/dist/routes/rules/components/datalog-editor/SparqlQueryPanel.js +1 -1
- package/dist/routes/rules/components/rule-actionability.js.map +1 -1
- package/dist/rules/RuleNarrativeSegments.js +1 -1
- package/dist/rules/datalog-ast/DatalogAtomComponent.js +1 -1
- package/dist/rules/datalog-ast/DatalogBodyFormulaComponent.js +1 -1
- package/dist/rules/datalog-ast/DatalogExpressionRenderer.js +1 -1
- package/dist/rules/datalog-ast/DatalogTermComponent.js +1 -1
- package/dist/rules/datalog-cache.js.map +1 -1
- package/dist/rules/rule-narrative-format.d.ts.map +1 -1
- package/dist/rules/rule-narrative-renderer.js.map +1 -1
- package/dist/style.js +1 -1
- package/dist/templates/slack-to-markdown.js +1 -1
- package/package.json +14 -14
- package/src/components/badge/index.tsx +1 -1
- package/src/components/calendar/index.tsx +2 -2
- package/src/components/chart/ForecastChart.tsx +383 -0
- package/src/components/chart/ForecastEventCard.tsx +163 -0
- package/src/components/chart/ForecastHoverCard.tsx +73 -0
- package/src/components/chart/ForecastLegend.tsx +97 -0
- package/src/components/chart/forecast-model.ts +130 -0
- package/src/components/chart/forecast.ts +144 -0
- package/src/components/chart/index.tsx +3 -0
- package/src/components/input/input-field.tsx +1 -1
- package/src/components/input/textarea.tsx +1 -1
- package/src/components/popover/index.tsx +2 -1
- package/src/components/table/index.tsx +0 -1
- package/src/globals.css +2 -0
- package/src/hooks/resolved-terms.ts +6 -1
- package/src/hooks/useAuth.ts +5 -1
- package/src/lib/chat-types.ts +1 -1
- package/src/lib/tanstack-query.ts +2 -2
- package/src/lib/term-batcher.ts +3 -3
- package/src/lib/utils.ts +1 -1
- package/src/providers/AuthContext.ts +1 -0
- package/src/routes/data-explorer/components/DetailHeader.tsx +4 -4
- package/src/routes/data-explorer/components/record-detail/RecordActions.tsx +22 -16
- package/src/routes/data-explorer/components/record-detail/RecordRefresh.tsx +150 -0
- package/src/rules/datalog-ast/DatalogBodyFormulaComponent.tsx +1 -1
- package/src/rules/datalog-ast/DatalogTermComponent.tsx +1 -1
- package/src/shacl/shacl-form-types.ts +1 -1
- package/src/style.ts +1 -1
- package/src/templates/slack-to-markdown.ts +1 -1
- package/src/themes/manta-dark.css +2 -0
- package/src/themes/manta.css +2 -0
- package/src/themes/standard.css +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { isPresent } from "@manta-eu/lib/present";
|
|
3
3
|
import { Minus } from "lucide-react";
|
|
4
4
|
import { match, P } from "ts-pattern";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { match } from "ts-pattern";
|
|
3
3
|
import { DatalogTermComponent } from "./DatalogTermComponent.js";
|
|
4
4
|
export function renderExpressionWithVariables(expression, variableColors, hoverState, onVariableHover) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { compactUri } from "@manta-eu/rdf-lib/namespaces";
|
|
3
3
|
import { match } from "ts-pattern";
|
|
4
4
|
import { OntologyTermText } from "#ontology/OntologyTermText";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datalog-cache.js","sourceRoot":"","sources":["../../src/rules/datalog-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAoB,MAAM,0BAA0B,CAAC;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAe9C,MAAM,UAAU,GAAG,GAAG,CAAC;AAIvB,SAAS,SAAS,CAAC,KAAiB,EAAE,IAAY;IAChD,IAAI,CAAC;QACH,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC3C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAsB,EAAE,CAAC;IAC3F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,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,4BAA4B,EAC5B,8BAA8B,GAM/B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,eAAe,GAIhB,MAAM,yBAAyB,CAAC;AAejC,SAAS,cAAc,CACrB,OAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"rule-narrative-renderer.js","sourceRoot":"","sources":["../../src/rules/rule-narrative-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,4BAA4B,EAC5B,8BAA8B,GAM/B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,eAAe,GAIhB,MAAM,yBAAyB,CAAC;AAejC,SAAS,cAAc,CACrB,OAAoB,EACpB,OAAO,GAA0B,EAAE,EACnC,WAAW,GAAG,KAAK;IAEnB,MAAM,I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AC;AAC3D,CAAC;AAED,SAAS,qBAAqB,CAC5B,OAA0B,EAC1B,cAA4C,EAC5C,IAAsB,EACtB,MAA6D;IAE7D,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,6BAA6B,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAClH,CAAC"}
|
package/dist/style.js
CHANGED
|
@@ -12,7 +12,7 @@ export function slackToMarkdown(input) {
|
|
|
12
12
|
output = output.replace(/(?<!\*)\*(?!\s)([^*\n]+?)(?<!\s)\*(?!\*)/g, "**$1**");
|
|
13
13
|
output = output.replace(/(?<!~)~(?!\s)([^~\n]+?)(?<!\s)~(?!~)/g, "~~$1~~");
|
|
14
14
|
output = output.replace(/([^\n])\n(?!\n)/g, "$1 \n");
|
|
15
|
-
//
|
|
15
|
+
// oxlint-disable-next-line no-control-regex -- NUL delimits the code placeholders this file writes.
|
|
16
16
|
output = output.replace(/\x00CODE(\d+)\x00/g, (_, i) => placeholders[Number(i)]);
|
|
17
17
|
return output;
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "The Manta design system, knowledge-graph UI and agent components",
|
|
5
5
|
"homepage": "https://developers.manta.eu",
|
|
6
6
|
"keywords": [
|
|
@@ -1139,12 +1139,12 @@
|
|
|
1139
1139
|
"usehooks-ts": "^3.1.1",
|
|
1140
1140
|
"zod": "^4.5.0",
|
|
1141
1141
|
"zustand": "^5.0.2",
|
|
1142
|
-
"@manta-eu/
|
|
1143
|
-
"@manta-eu/
|
|
1144
|
-
"@manta-eu/lib": "0.
|
|
1145
|
-
"@manta-eu/
|
|
1146
|
-
"@manta-eu/
|
|
1147
|
-
"@manta-eu/
|
|
1142
|
+
"@manta-eu/auth": "0.8.1",
|
|
1143
|
+
"@manta-eu/client": "0.8.1",
|
|
1144
|
+
"@manta-eu/lib": "0.8.1",
|
|
1145
|
+
"@manta-eu/rdf-lib": "0.8.1",
|
|
1146
|
+
"@manta-eu/datalog-parser": "0.8.1",
|
|
1147
|
+
"@manta-eu/ldo": "0.8.1"
|
|
1148
1148
|
},
|
|
1149
1149
|
"peerDependencies": {
|
|
1150
1150
|
"@ulb-darmstadt/shacl-form": "^2.1.1-rc1",
|
|
@@ -1166,10 +1166,10 @@
|
|
|
1166
1166
|
"@types/react": "^19.2.7",
|
|
1167
1167
|
"@types/react-dom": "^19.2.3",
|
|
1168
1168
|
"ajv": "^8.17.1",
|
|
1169
|
-
"eslint": "^9.39.2",
|
|
1170
1169
|
"happy-dom": "^15.11.7",
|
|
1171
1170
|
"jsdom": "^28.1.0",
|
|
1172
1171
|
"next-themes": "^0.4.6",
|
|
1172
|
+
"oxlint": "1.90.0",
|
|
1173
1173
|
"postcss-cli": "^11.0.0",
|
|
1174
1174
|
"react": "^19.2.3",
|
|
1175
1175
|
"react-dom": "^19.2.3",
|
|
@@ -1177,11 +1177,11 @@
|
|
|
1177
1177
|
"storybook": "^10.6.4",
|
|
1178
1178
|
"tailwindcss": "^4.3.3",
|
|
1179
1179
|
"tsc-alias": "^1.9.5",
|
|
1180
|
-
"typescript": "^
|
|
1180
|
+
"typescript": "^7.0.2",
|
|
1181
1181
|
"uuid": "^13.0.0",
|
|
1182
1182
|
"vite": "^8.3.5",
|
|
1183
1183
|
"vitest": "^4.1.8",
|
|
1184
|
-
"@manta-eu/
|
|
1184
|
+
"@manta-eu/oxlint-config": "0.1.0"
|
|
1185
1185
|
},
|
|
1186
1186
|
"imports": {
|
|
1187
1187
|
"#*": {
|
|
@@ -1200,13 +1200,13 @@
|
|
|
1200
1200
|
"access": "public"
|
|
1201
1201
|
},
|
|
1202
1202
|
"scripts": {
|
|
1203
|
-
"build": "
|
|
1203
|
+
"build": "rimraf dist && postcss src/globals.css -o dist/globals.css && tsc --project tsconfig.build.json && tsc-alias --project tsconfig.build.json --resolve-full-paths",
|
|
1204
1204
|
"build-storybook": "NODE_OPTIONS=\"$NODE_OPTIONS --max-old-space-size=6144\" storybook build",
|
|
1205
|
-
"
|
|
1206
|
-
"lint": "eslint .",
|
|
1205
|
+
"lint": "oxlint --type-aware --report-unused-disable-directives-severity=warn .",
|
|
1207
1206
|
"storybook": "storybook dev -p 6007",
|
|
1208
1207
|
"test": "vitest --run",
|
|
1209
1208
|
"types": "tsc --noEmit",
|
|
1210
|
-
"generate:action-shapes": "tsx scripts/generate-action-shapes.ts"
|
|
1209
|
+
"generate:action-shapes": "tsx scripts/generate-action-shapes.ts",
|
|
1210
|
+
"lint:fix": "oxlint --fix --type-aware --report-unused-disable-directives-severity=warn ."
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
@@ -15,7 +15,7 @@ export const badgeConfig = {
|
|
|
15
15
|
primary: "bg-primary text-primary-foreground",
|
|
16
16
|
secondary: "bg-accent text-default-foreground",
|
|
17
17
|
copy: "bg-accent text-muted-foreground",
|
|
18
|
-
//
|
|
18
|
+
// oxlint-disable-next-line @manta-eu/no-theme-primitive-colors
|
|
19
19
|
promo: "bg-pink-100 text-pink-700",
|
|
20
20
|
success: "bg-success text-success-foreground",
|
|
21
21
|
warning: "bg-warning text-warning-foreground",
|
|
@@ -189,7 +189,7 @@ export function CalendarDayButton(props: ComponentProps<typeof DayButton>) {
|
|
|
189
189
|
"flex-col",
|
|
190
190
|
"gap-1",
|
|
191
191
|
"leading-none",
|
|
192
|
-
//
|
|
192
|
+
// oxlint-disable-next-line @manta-eu/no-raw-typography
|
|
193
193
|
"font-normal",
|
|
194
194
|
"group-data-[focused=true]/day:relative",
|
|
195
195
|
"group-data-[focused=true]/day:z-10",
|
|
@@ -197,7 +197,7 @@ export function CalendarDayButton(props: ComponentProps<typeof DayButton>) {
|
|
|
197
197
|
"data-[range-end=true]:rounded-2xl-v4",
|
|
198
198
|
"data-[range-middle=true]:rounded-none",
|
|
199
199
|
"data-[range-start=true]:rounded-2xl-v4",
|
|
200
|
-
//
|
|
200
|
+
// oxlint-disable-next-line @manta-eu/no-raw-typography
|
|
201
201
|
"[&>span]:text-xs",
|
|
202
202
|
"[&>span]:opacity-70",
|
|
203
203
|
dayButtonClassName,
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
2
|
+
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { Area, CartesianGrid, ComposedChart, Line, ReferenceDot, ReferenceLine, XAxis, YAxis } from "recharts";
|
|
4
|
+
import { renderAnnotations } from "./annotations";
|
|
5
|
+
import { ChartTooltip } from "./chart";
|
|
6
|
+
import { ChartFrame } from "./ChartFrame";
|
|
7
|
+
import {
|
|
8
|
+
forecastMargin,
|
|
9
|
+
forecastXAxisHeight,
|
|
10
|
+
formatCompact,
|
|
11
|
+
formatWhole,
|
|
12
|
+
nearestMetric,
|
|
13
|
+
partKey,
|
|
14
|
+
plotGeometry,
|
|
15
|
+
rangeKey,
|
|
16
|
+
valueAtY,
|
|
17
|
+
type ForecastEvent,
|
|
18
|
+
type ForecastPart,
|
|
19
|
+
type ForecastPlanShare,
|
|
20
|
+
} from "./forecast";
|
|
21
|
+
import {
|
|
22
|
+
betweenName,
|
|
23
|
+
buildForecastModel,
|
|
24
|
+
forecastParts as parts,
|
|
25
|
+
gainName,
|
|
26
|
+
metricColor,
|
|
27
|
+
withoutColor,
|
|
28
|
+
type ForecastBetween,
|
|
29
|
+
type ForecastMetric,
|
|
30
|
+
} from "./forecast-model";
|
|
31
|
+
import { ForecastEventCard, ForecastEventDot } from "./ForecastEventCard";
|
|
32
|
+
import { ForecastHoverCard } from "./ForecastHoverCard";
|
|
33
|
+
import { ForecastLegend } from "./ForecastLegend";
|
|
34
|
+
import { Popover, PopoverAnchor } from "#components/popover/index";
|
|
35
|
+
import { cn } from "#style";
|
|
36
|
+
|
|
37
|
+
export type ForecastChartProps = {
|
|
38
|
+
/** One row per x value; each row carries `x` and a number per metric key. */
|
|
39
|
+
data: Record<string, unknown>[];
|
|
40
|
+
/** The x value of Today: lines are solid up to it and dotted after. Omit it for a history-only chart. */
|
|
41
|
+
today?: string | number;
|
|
42
|
+
metrics: ForecastMetric[];
|
|
43
|
+
/** Legend name of the shading between a metric and its `withoutPlans` line. */
|
|
44
|
+
gainLabel?: string;
|
|
45
|
+
/** A faint fill between two metrics, such as profit between revenue and costs. */
|
|
46
|
+
between?: ForecastBetween[];
|
|
47
|
+
goal?: { value: number; label: string };
|
|
48
|
+
events?: ForecastEvent[];
|
|
49
|
+
/** Called when an event's dot or its card link is chosen; without it, an event's `href` is a plain link. */
|
|
50
|
+
onEventSelect?: (event: ForecastEvent) => void;
|
|
51
|
+
/** The plans behind each projected point of a metric, shown in its hover card (the first two). */
|
|
52
|
+
planShares?: ForecastPlanShare[];
|
|
53
|
+
/** Formats axis ticks. */
|
|
54
|
+
formatValue?: (value: number) => string;
|
|
55
|
+
/** Formats the figures in the hover card. */
|
|
56
|
+
formatDetail?: (value: number) => string;
|
|
57
|
+
/** Follows the signed gap in the hover card: "+$2,664 with the plans". */
|
|
58
|
+
changeLabel?: string;
|
|
59
|
+
projectedLabel?: string;
|
|
60
|
+
/** The tag on the Today line. */
|
|
61
|
+
todayLabel?: string;
|
|
62
|
+
/** Legend names of the solid and dotted parts of a single metric. */
|
|
63
|
+
legendLabels?: { historic?: string; projected?: string };
|
|
64
|
+
title?: string;
|
|
65
|
+
height?: number;
|
|
66
|
+
className?: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const projectedDash = "0.5 6";
|
|
70
|
+
const noBetween: ForecastBetween[] = [];
|
|
71
|
+
const noEvents: ForecastEvent[] = [];
|
|
72
|
+
const noPlanShares: ForecastPlanShare[] = [];
|
|
73
|
+
|
|
74
|
+
function TodayTag(props: { text: string; viewBox?: { x?: number; y?: number } }) {
|
|
75
|
+
const { text, viewBox } = props;
|
|
76
|
+
if (viewBox?.x === undefined || viewBox.y === undefined) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return (
|
|
80
|
+
<foreignObject
|
|
81
|
+
x={viewBox.x - 100}
|
|
82
|
+
y={viewBox.y}
|
|
83
|
+
width={200}
|
|
84
|
+
height={20}
|
|
85
|
+
className="pointer-events-none overflow-visible"
|
|
86
|
+
>
|
|
87
|
+
<div className="flex justify-center">
|
|
88
|
+
<span className="h-5 rounded-full border border-default-border bg-card px-2 typography-tiny-medium leading-5 text-default-foreground">
|
|
89
|
+
{text}
|
|
90
|
+
</span>
|
|
91
|
+
</div>
|
|
92
|
+
</foreignObject>
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ForecastChart(props: ForecastChartProps) {
|
|
97
|
+
const {
|
|
98
|
+
data,
|
|
99
|
+
today,
|
|
100
|
+
metrics,
|
|
101
|
+
gainLabel = "Added by plans",
|
|
102
|
+
between = noBetween,
|
|
103
|
+
goal,
|
|
104
|
+
events = noEvents,
|
|
105
|
+
onEventSelect,
|
|
106
|
+
planShares = noPlanShares,
|
|
107
|
+
formatValue = formatCompact,
|
|
108
|
+
formatDetail = formatWhole,
|
|
109
|
+
changeLabel = "with the plans",
|
|
110
|
+
projectedLabel = "projected",
|
|
111
|
+
todayLabel = "Today",
|
|
112
|
+
legendLabels,
|
|
113
|
+
title,
|
|
114
|
+
height = 320,
|
|
115
|
+
className,
|
|
116
|
+
} = props;
|
|
117
|
+
const id = useId().replace(/:/g, "");
|
|
118
|
+
const fadeId = `forecast-fade-${id}`;
|
|
119
|
+
const cardId = `forecast-event-${id}`;
|
|
120
|
+
const plotRef = useRef<HTMLDivElement>(null);
|
|
121
|
+
const closeTimer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
|
|
122
|
+
const [activeEvent, setActiveEvent] = useState<{ index: number; cx: number; cy: number }>();
|
|
123
|
+
const [focusKey, setFocusKey] = useState<string>();
|
|
124
|
+
|
|
125
|
+
const model = useMemo(
|
|
126
|
+
() =>
|
|
127
|
+
buildForecastModel({
|
|
128
|
+
data,
|
|
129
|
+
...(today === undefined ? {} : { today }),
|
|
130
|
+
metrics,
|
|
131
|
+
between,
|
|
132
|
+
gainLabel,
|
|
133
|
+
...(goal ? { goal } : {}),
|
|
134
|
+
...(legendLabels ? { legendLabels } : {}),
|
|
135
|
+
}),
|
|
136
|
+
[data, today, metrics, between, goal, gainLabel, legendLabels],
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
const emptyKeys = model.emptyKeys.join(", ");
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
if (isPresent(emptyKeys)) {
|
|
142
|
+
console.warn(`ForecastChart: no numbers in data for ${emptyKeys}; check the metric keys`);
|
|
143
|
+
}
|
|
144
|
+
}, [emptyKeys]);
|
|
145
|
+
|
|
146
|
+
const missingToday = model.todayMissing ? String(today) : "";
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
if (isPresent(missingToday)) {
|
|
149
|
+
console.warn(
|
|
150
|
+
`ForecastChart: today "${missingToday}" matches no row's x; the Today line and projection are hidden`,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
}, [missingToday]);
|
|
154
|
+
|
|
155
|
+
const { overlay, withPlans, rows, domain, ticks, firstColor } = model;
|
|
156
|
+
const gainOpacity: Record<ForecastPart, number> = overlay ? { past: 0.5, ahead: 0.34 } : { past: 0.24, ahead: 0.14 };
|
|
157
|
+
const betweenOpacity: Record<ForecastPart, number> = { past: 0.08, ahead: 0.05 };
|
|
158
|
+
const geometry = plotGeometry(height);
|
|
159
|
+
const focusedMetric = model.hoverMetrics.find((metric) => metric.key === focusKey) ?? model.hoverMetrics[0];
|
|
160
|
+
|
|
161
|
+
function followPointer(state: { chartY?: number; activePayload?: { payload?: Record<string, unknown> }[] }) {
|
|
162
|
+
const row = state.activePayload?.[0]?.payload;
|
|
163
|
+
if (state.chartY === undefined || row === undefined) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const nearest = nearestMetric(
|
|
167
|
+
row,
|
|
168
|
+
metrics.map((metric) => metric.key),
|
|
169
|
+
valueAtY(state.chartY, geometry.top, geometry.height, domain),
|
|
170
|
+
);
|
|
171
|
+
if (nearest !== focusKey) {
|
|
172
|
+
setFocusKey(nearest);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function cancelClose() {
|
|
177
|
+
clearTimeout(closeTimer.current);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function closeSoon() {
|
|
181
|
+
cancelClose();
|
|
182
|
+
closeTimer.current = setTimeout(() => setActiveEvent(undefined), 150);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function closeUnlessInside(next: EventTarget | null) {
|
|
186
|
+
const inside = [plotRef.current, document.getElementById(cardId)].some(
|
|
187
|
+
(container) => next instanceof Node && container?.contains(next),
|
|
188
|
+
);
|
|
189
|
+
if (!inside) {
|
|
190
|
+
setActiveEvent(undefined);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function showEvent(index: number, cx: number, cy: number) {
|
|
195
|
+
cancelClose();
|
|
196
|
+
setActiveEvent({ index, cx, cy });
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function rangeArea(name: string, part: ForecastPart, color: string, opacity: number) {
|
|
200
|
+
return (
|
|
201
|
+
<Area
|
|
202
|
+
key={rangeKey(name, part)}
|
|
203
|
+
dataKey={rangeKey(name, part)}
|
|
204
|
+
type="monotone"
|
|
205
|
+
fill={color}
|
|
206
|
+
fillOpacity={opacity}
|
|
207
|
+
stroke="none"
|
|
208
|
+
tooltipType="none"
|
|
209
|
+
activeDot={false}
|
|
210
|
+
isAnimationActive={false}
|
|
211
|
+
/>
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function line(key: string, part: ForecastPart, color: string, width: number, withPlans: boolean) {
|
|
216
|
+
const activeDot = { r: 3.5, fill: color, stroke: "var(--color-card)", strokeWidth: 1.5 };
|
|
217
|
+
return (
|
|
218
|
+
<Line
|
|
219
|
+
key={partKey(key, part)}
|
|
220
|
+
dataKey={partKey(key, part)}
|
|
221
|
+
type="monotone"
|
|
222
|
+
stroke={color}
|
|
223
|
+
strokeWidth={width}
|
|
224
|
+
strokeLinejoin="round"
|
|
225
|
+
strokeLinecap="round"
|
|
226
|
+
strokeDasharray={part === "ahead" && withPlans ? projectedDash : undefined}
|
|
227
|
+
dot={false}
|
|
228
|
+
activeDot={activeEvent ? false : activeDot}
|
|
229
|
+
tooltipType="none"
|
|
230
|
+
isAnimationActive={false}
|
|
231
|
+
/>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const shownEvent = activeEvent ? events[activeEvent.index] : undefined;
|
|
236
|
+
|
|
237
|
+
return (
|
|
238
|
+
<div className={cn("w-full", className)}>
|
|
239
|
+
{isPresent(title) ? (
|
|
240
|
+
<p className="typography-small-medium mb-2 text-center text-default-foreground">{title}</p>
|
|
241
|
+
) : null}
|
|
242
|
+
<ForecastLegend items={model.legendItems} />
|
|
243
|
+
<div ref={plotRef} className="relative">
|
|
244
|
+
<ChartFrame config={model.config} height={height}>
|
|
245
|
+
<ComposedChart accessibilityLayer data={rows} margin={forecastMargin} onMouseMove={followPointer}>
|
|
246
|
+
<defs>
|
|
247
|
+
<linearGradient id={fadeId} x1="0" y1="0" x2="0" y2="1">
|
|
248
|
+
<stop offset="0%" stopColor={model.fadeColor} stopOpacity={overlay ? 0.3 : 0.34} />
|
|
249
|
+
<stop offset="100%" stopColor={model.fadeColor} stopOpacity={0} />
|
|
250
|
+
</linearGradient>
|
|
251
|
+
</defs>
|
|
252
|
+
<CartesianGrid vertical={false} strokeDasharray="2 3" />
|
|
253
|
+
<XAxis
|
|
254
|
+
dataKey="x"
|
|
255
|
+
height={forecastXAxisHeight}
|
|
256
|
+
tickLine={false}
|
|
257
|
+
axisLine={false}
|
|
258
|
+
tickMargin={12}
|
|
259
|
+
minTickGap={24}
|
|
260
|
+
/>
|
|
261
|
+
<YAxis
|
|
262
|
+
tickLine={false}
|
|
263
|
+
axisLine={false}
|
|
264
|
+
width={56}
|
|
265
|
+
domain={domain}
|
|
266
|
+
ticks={ticks}
|
|
267
|
+
interval={0}
|
|
268
|
+
tickFormatter={formatValue}
|
|
269
|
+
allowDataOverflow
|
|
270
|
+
/>
|
|
271
|
+
{model.fadeKeys.map(({ part, key }) => (
|
|
272
|
+
<Area
|
|
273
|
+
key={`fade-${part}`}
|
|
274
|
+
dataKey={partKey(key, part)}
|
|
275
|
+
baseValue="dataMin"
|
|
276
|
+
type="monotone"
|
|
277
|
+
stroke="none"
|
|
278
|
+
fill={`url(#${fadeId})`}
|
|
279
|
+
tooltipType="none"
|
|
280
|
+
activeDot={false}
|
|
281
|
+
isAnimationActive={false}
|
|
282
|
+
/>
|
|
283
|
+
))}
|
|
284
|
+
{between.flatMap((_, index) =>
|
|
285
|
+
parts.map((part) => rangeArea(betweenName(index), part, firstColor, betweenOpacity[part])),
|
|
286
|
+
)}
|
|
287
|
+
{withPlans.flatMap((entry) =>
|
|
288
|
+
parts.map((part) =>
|
|
289
|
+
rangeArea(gainName(entry.index), part, metricColor(entry.metric, entry.index), gainOpacity[part]),
|
|
290
|
+
),
|
|
291
|
+
)}
|
|
292
|
+
{isPresent(goal)
|
|
293
|
+
? renderAnnotations([
|
|
294
|
+
{ kind: "reference-line", axis: "y", value: goal.value, label: goal.label, tone: "neutral" },
|
|
295
|
+
])
|
|
296
|
+
: null}
|
|
297
|
+
{model.todayIndex >= 0 && today !== undefined ? (
|
|
298
|
+
<ReferenceLine
|
|
299
|
+
x={today}
|
|
300
|
+
stroke="var(--color-default-foreground)"
|
|
301
|
+
strokeOpacity={0.4}
|
|
302
|
+
label={<TodayTag text={todayLabel} />}
|
|
303
|
+
/>
|
|
304
|
+
) : null}
|
|
305
|
+
<ChartTooltip
|
|
306
|
+
active={shownEvent ? false : undefined}
|
|
307
|
+
cursor={{ stroke: "var(--color-default-border)" }}
|
|
308
|
+
content={
|
|
309
|
+
<ForecastHoverCard
|
|
310
|
+
metric={focusedMetric}
|
|
311
|
+
formatDetail={formatDetail}
|
|
312
|
+
changeLabel={changeLabel}
|
|
313
|
+
projectedLabel={projectedLabel}
|
|
314
|
+
planShares={planShares}
|
|
315
|
+
/>
|
|
316
|
+
}
|
|
317
|
+
/>
|
|
318
|
+
{withPlans.flatMap((entry) =>
|
|
319
|
+
parts.map((part) => line(entry.without.key, part, withoutColor, overlay ? 1.5 : 2, false)),
|
|
320
|
+
)}
|
|
321
|
+
{metrics.flatMap((metric, index) =>
|
|
322
|
+
(["ahead", "past"] as const).map((part) =>
|
|
323
|
+
line(metric.key, part, metricColor(metric, index), index === 0 ? 2.5 : 2.25, true),
|
|
324
|
+
),
|
|
325
|
+
)}
|
|
326
|
+
{events.map((event, index) => {
|
|
327
|
+
const metricIndex = metrics.findIndex((metric) => metric.key === event.metric);
|
|
328
|
+
const metric = metrics[metricIndex];
|
|
329
|
+
const value = data.find((row) => row.x === event.x)?.[event.metric];
|
|
330
|
+
if (typeof value !== "number" || metric === undefined) {
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
return (
|
|
334
|
+
<ReferenceDot
|
|
335
|
+
key={`${event.metric}-${event.x}-${event.title}`}
|
|
336
|
+
x={event.x}
|
|
337
|
+
y={value}
|
|
338
|
+
shape={(dot: { cx?: number; cy?: number }) => (
|
|
339
|
+
<ForecastEventDot
|
|
340
|
+
event={event}
|
|
341
|
+
color={metricColor(metric, metricIndex)}
|
|
342
|
+
{...(dot.cx === undefined ? {} : { cx: dot.cx })}
|
|
343
|
+
{...(dot.cy === undefined ? {} : { cy: dot.cy })}
|
|
344
|
+
active={activeEvent?.index === index}
|
|
345
|
+
cardId={cardId}
|
|
346
|
+
{...(onEventSelect ? { onSelect: onEventSelect } : {})}
|
|
347
|
+
onShow={(cx, cy) => showEvent(index, cx, cy)}
|
|
348
|
+
onLeave={closeSoon}
|
|
349
|
+
onBlur={closeUnlessInside}
|
|
350
|
+
/>
|
|
351
|
+
)}
|
|
352
|
+
/>
|
|
353
|
+
);
|
|
354
|
+
})}
|
|
355
|
+
</ComposedChart>
|
|
356
|
+
</ChartFrame>
|
|
357
|
+
<Popover
|
|
358
|
+
key={activeEvent?.index}
|
|
359
|
+
open={shownEvent !== undefined}
|
|
360
|
+
onOpenChange={(open) => !open && setActiveEvent(undefined)}
|
|
361
|
+
>
|
|
362
|
+
<PopoverAnchor asChild>
|
|
363
|
+
<span
|
|
364
|
+
aria-hidden="true"
|
|
365
|
+
className="pointer-events-none absolute size-0"
|
|
366
|
+
style={{ left: activeEvent?.cx ?? 0, top: activeEvent?.cy ?? 0 }}
|
|
367
|
+
/>
|
|
368
|
+
</PopoverAnchor>
|
|
369
|
+
{shownEvent ? (
|
|
370
|
+
<ForecastEventCard
|
|
371
|
+
event={shownEvent}
|
|
372
|
+
id={cardId}
|
|
373
|
+
{...(onEventSelect ? { onSelect: onEventSelect } : {})}
|
|
374
|
+
onEnter={cancelClose}
|
|
375
|
+
onLeave={closeSoon}
|
|
376
|
+
onBlur={closeUnlessInside}
|
|
377
|
+
/>
|
|
378
|
+
) : null}
|
|
379
|
+
</Popover>
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
);
|
|
383
|
+
}
|