@manta-eu/react 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -37
- package/dist/components/breadcrumbs/index.d.ts +26 -0
- package/dist/components/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/breadcrumbs/index.js +36 -0
- package/dist/components/channel-icon/index.d.ts +1 -2
- package/dist/components/channel-icon/index.d.ts.map +1 -1
- package/dist/components/channel-icon/index.js +0 -4
- package/dist/components/chip/index.d.ts +14 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +8 -0
- package/dist/components/editable-text/index.d.ts +13 -0
- package/dist/components/editable-text/index.d.ts.map +1 -0
- package/dist/components/editable-text/index.js +61 -0
- package/dist/components/explain-fact/ExplainFact.d.ts +16 -0
- package/dist/components/explain-fact/ExplainFact.d.ts.map +1 -0
- package/dist/components/{rdfox-explain/RDFoxExplain.js → explain-fact/ExplainFact.js} +12 -12
- package/dist/components/explain-fact/OutdatedFactNotice.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -1
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/input-numeric.d.ts +19 -0
- package/dist/components/input/input-numeric.d.ts.map +1 -0
- package/dist/components/input/input-numeric.js +85 -0
- package/dist/components/input/input-tags.d.ts +17 -0
- package/dist/components/input/input-tags.d.ts.map +1 -0
- package/dist/components/input/input-tags.js +46 -0
- package/dist/components/multi-select/index.d.ts +32 -0
- package/dist/components/multi-select/index.d.ts.map +1 -0
- package/dist/components/multi-select/index.js +33 -0
- package/dist/components/multi-select/toggle-value.d.ts +2 -0
- package/dist/components/multi-select/toggle-value.d.ts.map +1 -0
- package/dist/components/multi-select/toggle-value.js +3 -0
- package/dist/components/plan-row/index.d.ts +2 -1
- package/dist/components/plan-row/index.d.ts.map +1 -1
- package/dist/components/plan-row/index.js +2 -14
- package/dist/components/sidebar/index.d.ts +4 -1
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/tool-invocation-card/ExplainFactResultDisplay.d.ts +9 -0
- package/dist/components/tool-invocation-card/ExplainFactResultDisplay.d.ts.map +1 -0
- package/dist/components/tool-invocation-card/{ExplainRDFoxResultDisplay.js → ExplainFactResultDisplay.js} +3 -3
- package/dist/components/tool-invocation-card/ToolOutputRenderer.js +2 -2
- package/dist/components/tool-invocation-card/types.d.ts +4 -4
- package/dist/components/tool-invocation-card/types.d.ts.map +1 -1
- package/dist/components/tool-invocation-card/types.js +2 -2
- package/dist/components/tree-multi-select/index.d.ts +1 -1
- package/dist/components/tree-multi-select/index.d.ts.map +1 -1
- package/dist/components/tree-multi-select/index.js +1 -1
- package/dist/components/tree-multi-select/tree-multi-select-rows.d.ts +2 -1
- package/dist/components/tree-multi-select/tree-multi-select-rows.d.ts.map +1 -1
- package/dist/components/tree-multi-select/tree-multi-select-rows.js +21 -31
- package/dist/components/tree-multi-select/tree-multi-select.d.ts +2 -0
- package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
- package/dist/components/tree-multi-select/tree-multi-select.js +21 -8
- package/dist/explain-fact/DatalogCode.d.ts.map +1 -0
- package/dist/explain-fact/EntityChip.d.ts.map +1 -0
- package/dist/explain-fact/EntityChip.js +17 -0
- package/dist/explain-fact/ExplainCompactView.d.ts.map +1 -0
- package/dist/explain-fact/ExplainFactState.d.ts +7 -0
- package/dist/explain-fact/ExplainFactState.d.ts.map +1 -0
- package/dist/{rdfox-explain/RDFoxExplainState.js → explain-fact/ExplainFactState.js} +1 -1
- package/dist/explain-fact/ExplainFullView.d.ts.map +1 -0
- package/dist/explain-fact/ExplainStates.d.ts.map +1 -0
- package/dist/explain-fact/ExplainTag.d.ts.map +1 -0
- package/dist/explain-fact/FactNotice.d.ts +7 -0
- package/dist/explain-fact/FactNotice.d.ts.map +1 -0
- package/dist/explain-fact/FactNotice.js +25 -0
- package/dist/explain-fact/FactValue.d.ts.map +1 -0
- package/dist/explain-fact/NumDot.d.ts.map +1 -0
- package/dist/explain-fact/PanelLabel.d.ts.map +1 -0
- package/dist/explain-fact/ProofSubjectHeader.d.ts.map +1 -0
- package/dist/explain-fact/ProvenanceBadge.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/ProvenanceBadge.js +2 -1
- package/dist/explain-fact/RuleVariableTypes.d.ts.map +1 -0
- package/dist/explain-fact/SubstitutedFactNotice.d.ts.map +1 -0
- package/dist/explain-fact/ValuePill.d.ts.map +1 -0
- package/dist/explain-fact/conclusion/ConclusionCard.d.ts.map +1 -0
- package/dist/explain-fact/conclusion/ConclusionSubtitle.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/conclusion/ConclusionSubtitle.js +3 -1
- package/dist/explain-fact/conclusion/index.d.ts.map +1 -0
- package/dist/explain-fact/explain-styles.d.ts.map +1 -0
- package/dist/explain-fact/fact-token.d.ts.map +1 -0
- package/dist/explain-fact/formula-hues.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/index.d.ts +2 -3
- package/dist/explain-fact/index.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/index.js +2 -3
- package/dist/explain-fact/inspector/ExplainInspector.d.ts.map +1 -0
- package/dist/explain-fact/inspector/ExplainInspector.js +20 -0
- package/dist/explain-fact/inspector/InspectorBindings.d.ts.map +1 -0
- package/dist/explain-fact/inspector/InspectorFact.d.ts.map +1 -0
- package/dist/explain-fact/inspector/InspectorHeader.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/inspector/InspectorRule.d.ts +3 -0
- package/dist/explain-fact/inspector/InspectorRule.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/inspector/InspectorRule.js +4 -5
- package/dist/explain-fact/inspector/SupportsSection.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/inspector/SupportsSection.js +2 -1
- package/dist/explain-fact/inspector/index.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofFactLabel.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofRowBadge.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofRowContent.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofRowValue.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofTree.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTree.js +1 -1
- package/dist/explain-fact/proof-tree/ProofTreeFormulaFooter.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/ProofTreeNode.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/SupportsTag.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/SupportsTag.js +6 -0
- package/dist/explain-fact/proof-tree/index.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/proof-tree-navigation.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/proof-tree-root-view.d.ts.map +1 -0
- package/dist/explain-fact/proof-tree/visible-premises.d.ts.map +1 -0
- package/dist/explain-fact/rule-presentation.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/tree-model.d.ts +18 -9
- package/dist/explain-fact/tree-model.d.ts.map +1 -0
- package/dist/{rdfox-explain → explain-fact}/tree-model.js +19 -10
- package/dist/explain-fact/use-fact-measure.d.ts.map +1 -0
- package/dist/globals.css +383 -108
- package/dist/graph/nodes/AdMockupCard.js +1 -1
- package/dist/graph/nodes/CreativeMediaCard.js +1 -1
- package/dist/graph/nodes/EntityCardShell.js +1 -1
- package/dist/hooks/use-conversation-starters.d.ts +1 -1
- package/dist/hooks/useValidateActionPlan.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/ldo-ui.d.ts +1 -1
- package/dist/ldo-ui.d.ts.map +1 -1
- package/dist/ldo-ui.js +1 -1
- package/dist/lib/datastore-route-paths.d.ts +2 -2
- package/dist/lib/datastore-route-paths.d.ts.map +1 -1
- package/dist/lib/datastore-route-paths.js +2 -2
- package/dist/lib/datastore-route-table.d.ts +36 -0
- package/dist/lib/datastore-route-table.d.ts.map +1 -0
- package/dist/lib/datastore-route-table.js +43 -0
- package/dist/lib/datastore-routes.d.ts +1 -1
- package/dist/lib/datastore-routes.d.ts.map +1 -1
- package/dist/lib/datastore-routes.js +1 -1
- package/dist/lib/spa-routes.d.ts +3 -0
- package/dist/lib/spa-routes.d.ts.map +1 -0
- package/dist/lib/spa-routes.js +5 -0
- package/dist/routes/data-explorer/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/routes/data-explorer/components/Breadcrumbs.js +5 -5
- package/dist/routes/datastores/components/DatastoreFormDialog.d.ts +18 -0
- package/dist/routes/datastores/components/DatastoreFormDialog.d.ts.map +1 -0
- package/dist/routes/datastores/components/DatastoreFormDialog.js +27 -0
- package/dist/routes/datastores/components/DatastoreTableSkeleton.d.ts +2 -0
- package/dist/routes/datastores/components/DatastoreTableSkeleton.d.ts.map +1 -0
- package/dist/routes/datastores/components/DatastoreTableSkeleton.js +7 -0
- package/dist/routes/datastores/components/DatastoresToolbar.d.ts +18 -0
- package/dist/routes/datastores/components/DatastoresToolbar.d.ts.map +1 -0
- package/dist/routes/datastores/components/DatastoresToolbar.js +29 -0
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.d.ts +14 -0
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.d.ts.map +1 -0
- package/dist/routes/datastores/components/LinkUnlinkedDatastoreDialog.js +83 -0
- package/dist/routes/datastores/components/RenameDatastoreGroupDialog.d.ts +9 -0
- package/dist/routes/datastores/components/RenameDatastoreGroupDialog.d.ts.map +1 -0
- package/dist/routes/datastores/components/RenameDatastoreGroupDialog.js +21 -0
- package/dist/routes/datastores/components/StatusBadge.d.ts +21 -0
- package/dist/routes/datastores/components/StatusBadge.d.ts.map +1 -0
- package/dist/routes/datastores/components/StatusBadge.js +49 -0
- package/dist/routes/datastores/components/UnlinkedDatastoresPanel.d.ts +20 -0
- package/dist/routes/datastores/components/UnlinkedDatastoresPanel.d.ts.map +1 -0
- package/dist/routes/datastores/components/UnlinkedDatastoresPanel.js +13 -0
- package/dist/routes/datastores/flatten.d.ts +33 -0
- package/dist/routes/datastores/flatten.d.ts.map +1 -0
- package/dist/routes/datastores/flatten.js +86 -0
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts +47 -0
- package/dist/routes/datastores/hooks/useDatastoreColumns.d.ts.map +1 -0
- package/dist/routes/datastores/hooks/useDatastoreColumns.js +165 -0
- package/dist/routes/datastores/hooks/useDatastoreTable.d.ts +14 -0
- package/dist/routes/datastores/hooks/useDatastoreTable.d.ts.map +1 -0
- package/dist/routes/datastores/hooks/useDatastoreTable.js +45 -0
- package/dist/routes/datastores/index.d.ts +2 -0
- package/dist/routes/datastores/index.d.ts.map +1 -0
- package/dist/routes/datastores/index.js +467 -0
- package/dist/routes/explain/ExplainEmpty.d.ts +2 -0
- package/dist/routes/explain/ExplainEmpty.d.ts.map +1 -0
- package/dist/routes/explain/ExplainEmpty.js +8 -0
- package/dist/routes/explain/index.d.ts +2 -0
- package/dist/routes/explain/index.d.ts.map +1 -0
- package/dist/routes/explain/index.js +16 -0
- package/dist/routes/explain/url-params.d.ts +9 -0
- package/dist/routes/explain/url-params.d.ts.map +1 -0
- package/dist/routes/explain/url-params.js +21 -0
- package/dist/routes/integrations/components/ConnectionRow.d.ts.map +1 -1
- package/dist/routes/integrations/components/ConnectionRow.js +1 -1
- package/dist/routes/integrations/connection-view.d.ts.map +1 -1
- package/dist/routes/integrations/connection-view.js +17 -1
- package/dist/routes/integrations/types.d.ts +2 -1
- package/dist/routes/integrations/types.d.ts.map +1 -1
- package/dist/routes/memories/components/ChangeScopeDialog.d.ts +12 -0
- package/dist/routes/memories/components/ChangeScopeDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/ChangeScopeDialog.js +89 -0
- package/dist/routes/memories/components/ConflictMemoryCard.d.ts +13 -0
- package/dist/routes/memories/components/ConflictMemoryCard.d.ts.map +1 -0
- package/dist/routes/memories/components/ConflictMemoryCard.js +43 -0
- package/dist/routes/memories/components/ConflictTimeoutFooter.d.ts +7 -0
- package/dist/routes/memories/components/ConflictTimeoutFooter.d.ts.map +1 -0
- package/dist/routes/memories/components/ConflictTimeoutFooter.js +6 -0
- package/dist/routes/memories/components/ConsolidationReviewDialog.d.ts +61 -0
- package/dist/routes/memories/components/ConsolidationReviewDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/ConsolidationReviewDialog.js +121 -0
- package/dist/routes/memories/components/EmptyStates.d.ts +18 -0
- package/dist/routes/memories/components/EmptyStates.d.ts.map +1 -0
- package/dist/routes/memories/components/EmptyStates.js +22 -0
- package/dist/routes/memories/components/ImportanceSlider.d.ts +11 -0
- package/dist/routes/memories/components/ImportanceSlider.d.ts.map +1 -0
- package/dist/routes/memories/components/ImportanceSlider.js +31 -0
- package/dist/routes/memories/components/LiveContextTab.d.ts +6 -0
- package/dist/routes/memories/components/LiveContextTab.d.ts.map +1 -0
- package/dist/routes/memories/components/LiveContextTab.js +37 -0
- package/dist/routes/memories/components/LoadingSkeleton.d.ts +2 -0
- package/dist/routes/memories/components/LoadingSkeleton.d.ts.map +1 -0
- package/dist/routes/memories/components/LoadingSkeleton.js +7 -0
- package/dist/routes/memories/components/MemoriesFilters.d.ts +31 -0
- package/dist/routes/memories/components/MemoriesFilters.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoriesFilters.js +88 -0
- package/dist/routes/memories/components/MemoriesPanel.d.ts +6 -0
- package/dist/routes/memories/components/MemoriesPanel.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoriesPanel.js +99 -0
- package/dist/routes/memories/components/MemoriesTabPanel.d.ts +30 -0
- package/dist/routes/memories/components/MemoriesTabPanel.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoriesTabPanel.js +11 -0
- package/dist/routes/memories/components/MemoryActions.d.ts +12 -0
- package/dist/routes/memories/components/MemoryActions.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoryActions.js +24 -0
- package/dist/routes/memories/components/MemoryFields.d.ts +32 -0
- package/dist/routes/memories/components/MemoryFields.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoryFields.js +30 -0
- package/dist/routes/memories/components/MemoryFormDialog.d.ts +15 -0
- package/dist/routes/memories/components/MemoryFormDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoryFormDialog.js +299 -0
- package/dist/routes/memories/components/MemoryOnboardingWizard.d.ts +9 -0
- package/dist/routes/memories/components/MemoryOnboardingWizard.d.ts.map +1 -0
- package/dist/routes/memories/components/MemoryOnboardingWizard.js +99 -0
- package/dist/routes/memories/components/RestoreBlockedDialog.d.ts +8 -0
- package/dist/routes/memories/components/RestoreBlockedDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/RestoreBlockedDialog.js +7 -0
- package/dist/routes/memories/components/SchemasTab.d.ts +6 -0
- package/dist/routes/memories/components/SchemasTab.d.ts.map +1 -0
- package/dist/routes/memories/components/SchemasTab.js +35 -0
- package/dist/routes/memories/components/SupersessionConflictDialog.d.ts +18 -0
- package/dist/routes/memories/components/SupersessionConflictDialog.d.ts.map +1 -0
- package/dist/routes/memories/components/SupersessionConflictDialog.js +78 -0
- package/dist/routes/memories/components/TeamPicker.d.ts +8 -0
- package/dist/routes/memories/components/TeamPicker.d.ts.map +1 -0
- package/dist/routes/memories/components/TeamPicker.js +25 -0
- package/dist/routes/memories/components/badges.d.ts +50 -0
- package/dist/routes/memories/components/badges.d.ts.map +1 -0
- package/dist/routes/memories/components/badges.js +106 -0
- package/dist/routes/memories/expiry-utils.d.ts +23 -0
- package/dist/routes/memories/expiry-utils.d.ts.map +1 -0
- package/dist/routes/memories/expiry-utils.js +97 -0
- package/dist/routes/memories/hooks/useConflictCheck.d.ts +18 -0
- package/dist/routes/memories/hooks/useConflictCheck.d.ts.map +1 -0
- package/dist/routes/memories/hooks/useConflictCheck.js +35 -0
- package/dist/routes/memories/hooks/useDuplicateDetection.d.ts +11 -0
- package/dist/routes/memories/hooks/useDuplicateDetection.d.ts.map +1 -0
- package/dist/routes/memories/hooks/useDuplicateDetection.js +73 -0
- package/dist/routes/memories/hooks/useLiveContext.d.ts +23 -0
- package/dist/routes/memories/hooks/useLiveContext.d.ts.map +1 -0
- package/dist/routes/memories/hooks/useLiveContext.js +102 -0
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts +33 -0
- package/dist/routes/memories/hooks/useMemoryColumns.d.ts.map +1 -0
- package/dist/routes/memories/hooks/useMemoryColumns.js +188 -0
- package/dist/routes/memories/hooks/useMemoryTable.d.ts +33 -0
- package/dist/routes/memories/hooks/useMemoryTable.d.ts.map +1 -0
- package/dist/routes/memories/hooks/useMemoryTable.js +121 -0
- package/dist/routes/memories/index.d.ts +11 -0
- package/dist/routes/memories/index.d.ts.map +1 -0
- package/dist/routes/memories/index.js +472 -0
- package/dist/routes/memories/memory-form-validation.d.ts +8 -0
- package/dist/routes/memories/memory-form-validation.d.ts.map +1 -0
- package/dist/routes/memories/memory-form-validation.js +33 -0
- package/dist/routes/memories/memory-mutation-input.d.ts +6 -0
- package/dist/routes/memories/memory-mutation-input.d.ts.map +1 -0
- package/dist/routes/memories/memory-mutation-input.js +41 -0
- package/dist/routes/plans/components/actionPlansTableConfig.d.ts +3 -3
- package/dist/routes/rules/components/CreateRuleChatModal.d.ts +10 -0
- package/dist/routes/rules/components/CreateRuleChatModal.d.ts.map +1 -0
- package/dist/routes/rules/components/CreateRuleChatModal.js +52 -0
- package/dist/routes/rules/components/RuleActionabilityBadge.d.ts +8 -0
- package/dist/routes/rules/components/RuleActionabilityBadge.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleActionabilityBadge.js +18 -0
- package/dist/routes/rules/components/RuleAffectedActionPlansSection.d.ts +6 -0
- package/dist/routes/rules/components/RuleAffectedActionPlansSection.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleAffectedActionPlansSection.js +151 -0
- package/dist/routes/rules/components/RuleAst.d.ts +6 -0
- package/dist/routes/rules/components/RuleAst.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleAst.js +23 -0
- package/dist/routes/rules/components/RuleDependentRulesSection.d.ts +6 -0
- package/dist/routes/rules/components/RuleDependentRulesSection.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleDependentRulesSection.js +16 -0
- package/dist/routes/rules/components/RuleDetailsPage.d.ts +14 -0
- package/dist/routes/rules/components/RuleDetailsPage.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleDetailsPage.js +51 -0
- package/dist/routes/rules/components/RuleProducersSection.d.ts +7 -0
- package/dist/routes/rules/components/RuleProducersSection.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleProducersSection.js +10 -0
- package/dist/routes/rules/components/RuleSampleFactsSection.d.ts +7 -0
- package/dist/routes/rules/components/RuleSampleFactsSection.d.ts.map +1 -0
- package/dist/routes/rules/components/RuleSampleFactsSection.js +70 -0
- package/dist/routes/rules/components/RulesOverviewHeaderActions.d.ts +17 -0
- package/dist/routes/rules/components/RulesOverviewHeaderActions.d.ts.map +1 -0
- package/dist/routes/rules/components/RulesOverviewHeaderActions.js +55 -0
- package/dist/routes/rules/components/RulesOverviewPage.d.ts +13 -0
- package/dist/routes/rules/components/RulesOverviewPage.d.ts.map +1 -0
- package/dist/routes/rules/components/RulesOverviewPage.js +236 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapeDetails.d.ts +7 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapeDetails.d.ts.map +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapeDetails.js +47 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapesList.d.ts +8 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapesList.d.ts.map +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/SupportedActionShapesList.js +76 -0
- package/dist/routes/rules/components/SupportedActionShapesList/TokenList.d.ts +6 -0
- package/dist/routes/rules/components/SupportedActionShapesList/TokenList.d.ts.map +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/TokenList.js +9 -0
- package/dist/routes/rules/components/SupportedActionShapesList/index.d.ts +2 -0
- package/dist/routes/rules/components/SupportedActionShapesList/index.d.ts.map +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/index.js +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/shacl-shape.d.ts +20 -0
- package/dist/routes/rules/components/SupportedActionShapesList/shacl-shape.d.ts.map +1 -0
- package/dist/routes/rules/components/SupportedActionShapesList/shacl-shape.js +48 -0
- package/dist/routes/rules/components/datalog-editor/BindingsPreview.d.ts +9 -0
- package/dist/routes/rules/components/datalog-editor/BindingsPreview.d.ts.map +1 -0
- package/dist/routes/rules/components/datalog-editor/BindingsPreview.js +38 -0
- package/dist/routes/rules/components/datalog-editor/FactsPreview.d.ts +10 -0
- package/dist/routes/rules/components/datalog-editor/FactsPreview.d.ts.map +1 -0
- package/dist/routes/rules/components/datalog-editor/FactsPreview.js +43 -0
- package/dist/routes/rules/components/datalog-editor/PreviewPanel.d.ts +7 -0
- package/dist/routes/rules/components/datalog-editor/PreviewPanel.d.ts.map +1 -0
- package/dist/routes/rules/components/datalog-editor/PreviewPanel.js +8 -0
- package/dist/routes/rules/components/datalog-editor/QueryResults.d.ts +9 -0
- package/dist/routes/rules/components/datalog-editor/QueryResults.d.ts.map +1 -0
- package/dist/routes/rules/components/datalog-editor/QueryResults.js +22 -0
- package/dist/routes/rules/components/datalog-editor/SparqlQueryPanel.d.ts +11 -0
- package/dist/routes/rules/components/datalog-editor/SparqlQueryPanel.d.ts.map +1 -0
- package/dist/routes/rules/components/datalog-editor/SparqlQueryPanel.js +21 -0
- package/dist/routes/rules/components/rule-producers.d.ts +15 -0
- package/dist/routes/rules/components/rule-producers.d.ts.map +1 -0
- package/dist/routes/rules/components/rule-producers.js +76 -0
- package/dist/routes/rules/components/sample-facts-query.d.ts +9 -0
- package/dist/routes/rules/components/sample-facts-query.d.ts.map +1 -0
- package/dist/routes/rules/components/sample-facts-query.js +71 -0
- package/dist/routes/rules/datalog-editor.d.ts +6 -0
- package/dist/routes/rules/datalog-editor.d.ts.map +1 -0
- package/dist/routes/rules/datalog-editor.js +7 -0
- package/dist/routes/rules/hooks/useRuleFactsPreview.d.ts +53 -0
- package/dist/routes/rules/hooks/useRuleFactsPreview.d.ts.map +1 -0
- package/dist/routes/rules/hooks/useRuleFactsPreview.js +214 -0
- package/dist/routes/rules/hooks/useSparqlQueryExecution.d.ts +14 -0
- package/dist/routes/rules/hooks/useSparqlQueryExecution.d.ts.map +1 -0
- package/dist/routes/rules/hooks/useSparqlQueryExecution.js +77 -0
- package/dist/routes/rules/pages.d.ts +6 -0
- package/dist/routes/rules/pages.d.ts.map +1 -0
- package/dist/routes/rules/pages.js +7 -0
- package/dist/rules/RuleNameLink.d.ts +6 -0
- package/dist/rules/RuleNameLink.d.ts.map +1 -0
- package/dist/rules/RuleNameLink.js +8 -0
- package/package.json +64 -24
- package/src/globals.css +18 -18
- package/src/themes/manta-dark.css +1 -4
- package/src/themes/manta.css +1 -0
- package/src/themes/standard.css +12 -11
- package/dist/components/channel-icon/marketer-icon.d.ts +0 -4
- package/dist/components/channel-icon/marketer-icon.d.ts.map +0 -1
- package/dist/components/channel-icon/marketer-icon.js +0 -6
- package/dist/components/rdfox-explain/OutdatedFactNotice.d.ts.map +0 -1
- package/dist/components/rdfox-explain/RDFoxExplain.d.ts +0 -16
- package/dist/components/rdfox-explain/RDFoxExplain.d.ts.map +0 -1
- package/dist/components/tool-invocation-card/ExplainRDFoxResultDisplay.d.ts +0 -9
- package/dist/components/tool-invocation-card/ExplainRDFoxResultDisplay.d.ts.map +0 -1
- package/dist/lib/test-utils.d.ts +0 -4
- package/dist/lib/test-utils.d.ts.map +0 -1
- package/dist/lib/test-utils.js +0 -16
- package/dist/rdfox-explain/AbsentFactNotice.d.ts +0 -5
- package/dist/rdfox-explain/AbsentFactNotice.d.ts.map +0 -1
- package/dist/rdfox-explain/AbsentFactNotice.js +0 -6
- package/dist/rdfox-explain/DatalogCode.d.ts.map +0 -1
- package/dist/rdfox-explain/EntityChip.d.ts.map +0 -1
- package/dist/rdfox-explain/EntityChip.js +0 -9
- package/dist/rdfox-explain/ExplainCompactView.d.ts.map +0 -1
- package/dist/rdfox-explain/ExplainFullView.d.ts.map +0 -1
- package/dist/rdfox-explain/ExplainStates.d.ts.map +0 -1
- package/dist/rdfox-explain/ExplainTag.d.ts.map +0 -1
- package/dist/rdfox-explain/FactValue.d.ts.map +0 -1
- package/dist/rdfox-explain/NumDot.d.ts.map +0 -1
- package/dist/rdfox-explain/PanelLabel.d.ts.map +0 -1
- package/dist/rdfox-explain/ProofSubjectHeader.d.ts.map +0 -1
- package/dist/rdfox-explain/ProvenanceBadge.d.ts.map +0 -1
- package/dist/rdfox-explain/RDFoxExplainState.d.ts +0 -7
- package/dist/rdfox-explain/RDFoxExplainState.d.ts.map +0 -1
- package/dist/rdfox-explain/RuleVariableTypes.d.ts.map +0 -1
- package/dist/rdfox-explain/StoredFactNotice.d.ts +0 -5
- package/dist/rdfox-explain/StoredFactNotice.d.ts.map +0 -1
- package/dist/rdfox-explain/StoredFactNotice.js +0 -6
- package/dist/rdfox-explain/SubstitutedFactNotice.d.ts.map +0 -1
- package/dist/rdfox-explain/ValuePill.d.ts.map +0 -1
- package/dist/rdfox-explain/busy-aggregate-fixture.d.ts +0 -7
- package/dist/rdfox-explain/busy-aggregate-fixture.d.ts.map +0 -1
- package/dist/rdfox-explain/busy-aggregate-fixture.js +0 -6
- package/dist/rdfox-explain/conclusion/ConclusionCard.d.ts.map +0 -1
- package/dist/rdfox-explain/conclusion/ConclusionSubtitle.d.ts.map +0 -1
- package/dist/rdfox-explain/conclusion/index.d.ts.map +0 -1
- package/dist/rdfox-explain/explain-styles.d.ts.map +0 -1
- package/dist/rdfox-explain/fact-token.d.ts.map +0 -1
- package/dist/rdfox-explain/formula-hues.d.ts.map +0 -1
- package/dist/rdfox-explain/index.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/ExplainInspector.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/ExplainInspector.js +0 -22
- package/dist/rdfox-explain/inspector/InspectorBindings.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/InspectorFact.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/InspectorHeader.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/InspectorRule.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/SupportsSection.d.ts.map +0 -1
- package/dist/rdfox-explain/inspector/index.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofFactLabel.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofRowBadge.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofRowContent.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofRowValue.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofTree.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofTreeFormulaFooter.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/ProofTreeNode.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/SupportsTag.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/SupportsTag.js +0 -6
- package/dist/rdfox-explain/proof-tree/index.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/proof-tree-navigation.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/proof-tree-root-view.d.ts.map +0 -1
- package/dist/rdfox-explain/proof-tree/visible-premises.d.ts.map +0 -1
- package/dist/rdfox-explain/rule-presentation.d.ts.map +0 -1
- package/dist/rdfox-explain/tree-model.d.ts.map +0 -1
- package/dist/rdfox-explain/use-fact-measure.d.ts.map +0 -1
- package/dist/test-support.d.ts +0 -9
- package/dist/test-support.d.ts.map +0 -1
- package/dist/test-support.js +0 -18
- package/src/themes/marketer-dark.css +0 -70
- /package/dist/components/{rdfox-explain → explain-fact}/OutdatedFactNotice.d.ts +0 -0
- /package/dist/components/{rdfox-explain → explain-fact}/OutdatedFactNotice.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/DatalogCode.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/DatalogCode.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/EntityChip.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainCompactView.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainCompactView.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainFullView.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainFullView.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainStates.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainStates.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainTag.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ExplainTag.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/FactValue.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/FactValue.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/NumDot.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/NumDot.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/PanelLabel.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/PanelLabel.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ProofSubjectHeader.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ProofSubjectHeader.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ProvenanceBadge.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/RuleVariableTypes.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/RuleVariableTypes.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/SubstitutedFactNotice.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/SubstitutedFactNotice.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ValuePill.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/ValuePill.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/conclusion/ConclusionCard.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/conclusion/ConclusionCard.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/conclusion/ConclusionSubtitle.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/conclusion/index.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/conclusion/index.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/explain-styles.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/explain-styles.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/fact-token.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/fact-token.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/formula-hues.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/formula-hues.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/ExplainInspector.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorBindings.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorBindings.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorFact.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorFact.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorHeader.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/InspectorHeader.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/SupportsSection.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/index.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/inspector/index.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofFactLabel.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofFactLabel.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowBadge.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowBadge.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowContent.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowContent.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowValue.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofRowValue.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTree.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTreeFormulaFooter.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTreeFormulaFooter.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTreeNode.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/ProofTreeNode.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/SupportsTag.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/index.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/index.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/proof-tree-navigation.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/proof-tree-navigation.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/proof-tree-root-view.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/proof-tree-root-view.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/visible-premises.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/proof-tree/visible-premises.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/rule-presentation.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/rule-presentation.js +0 -0
- /package/dist/{rdfox-explain → explain-fact}/use-fact-measure.d.ts +0 -0
- /package/dist/{rdfox-explain → explain-fact}/use-fact-measure.js +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
3
|
+
import { ChatContextKind } from "@manta-eu/client/shared/agent-types";
|
|
4
|
+
import { generateRuleDraftIri } from "@manta-eu/client/shared/chat-context";
|
|
5
|
+
import { parseError } from "@manta-eu/client/shared/error-utils";
|
|
6
|
+
import { createUserMessage } from "@manta-eu/client/shared/message-utils";
|
|
7
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
8
|
+
import { ArrowRight, FileCode2 } from "lucide-react";
|
|
9
|
+
import { useId } from "react";
|
|
10
|
+
import { useForm } from "react-hook-form";
|
|
11
|
+
import { toast } from "sonner";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { Button } from "#components/button/index";
|
|
14
|
+
import { Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "#components/modal/index";
|
|
15
|
+
import { Textarea } from "#components/textarea/Textarea";
|
|
16
|
+
import { useChatManagerConnection } from "#providers/ChatManagerProvider";
|
|
17
|
+
import { useChatPanel } from "#providers/ChatPanelContext";
|
|
18
|
+
const createRuleChatFormSchema = z.object({
|
|
19
|
+
intent: z.string().trim().min(1, "Describe the rule you want"),
|
|
20
|
+
});
|
|
21
|
+
export function CreateRuleChatModal(props) {
|
|
22
|
+
const { open, onOpenChange, onStartFromBlankRule, model, ruleSuggestions } = props;
|
|
23
|
+
const { startContextConversation } = useChatManagerConnection();
|
|
24
|
+
const { open: openChat } = useChatPanel();
|
|
25
|
+
const formId = useId();
|
|
26
|
+
const form = useForm({
|
|
27
|
+
resolver: zodResolver(createRuleChatFormSchema),
|
|
28
|
+
defaultValues: { intent: "" },
|
|
29
|
+
mode: "onChange",
|
|
30
|
+
});
|
|
31
|
+
async function handleDraft(values) {
|
|
32
|
+
try {
|
|
33
|
+
const conversation = await startContextConversation({ kind: ChatContextKind.RuleCreate, draftIri: generateRuleDraftIri() }, createUserMessage({ text: values.intent, model }));
|
|
34
|
+
if (!conversation)
|
|
35
|
+
return;
|
|
36
|
+
openChat();
|
|
37
|
+
form.reset();
|
|
38
|
+
onOpenChange(false);
|
|
39
|
+
}
|
|
40
|
+
catch (err) {
|
|
41
|
+
const errorInfo = parseError(err, "Couldn't start drafting the rule");
|
|
42
|
+
toast.error(errorInfo.message, { description: errorInfo.description });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { className: "max-w-2xl", onPointerDownOutside: (event) => {
|
|
46
|
+
if (form.formState.isDirty)
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
}, onEscapeKeyDown: (event) => {
|
|
49
|
+
if (form.formState.isDirty)
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
}, children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { text: "Create a rule" }), _jsx(DialogDescription, { children: "Describe it in your words \u2014 Manta drafts the rule for your review." })] }), _jsxs(DialogBody, { className: "space-y-4", children: [_jsxs("form", { id: formId, onSubmit: form.handleSubmit(handleDraft), children: [_jsx(Textarea, { placeholder: "e.g. Pause underperforming ads when their CTR stays below the account average for a week\u2026", className: "min-h-32 border rounded border-default-border bg-base-background", autoFocus: true, ...form.register("intent") }), form.formState.errors.intent && (_jsx("div", { className: "typography-small text-error-foreground mt-2", role: "alert", children: form.formState.errors.intent.message }))] }), isPresent(ruleSuggestions) && (_jsx("div", { className: "flex flex-col gap-1", children: ruleSuggestions.map((suggestion, index) => (_jsx("button", { type: "button", onClick: () => form.setValue("intent", suggestion, { shouldValidate: true, shouldDirty: true }), className: "flex w-full cursor-pointer items-center gap-3 rounded-md-v4 px-3 py-2.5 text-left transition-colors hover:bg-muted", title: suggestion, children: _jsx("span", { className: "typography-small text-default-foreground", children: suggestion }) }, `${suggestion}-${index}`))) }))] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "secondary", icon: FileCode2, className: "mr-auto", onClick: onStartFromBlankRule, children: "Start from blank rule" }), _jsx(Button, { type: "button", variant: "ghost", disabled: !form.formState.isDirty, onClick: () => form.reset(), children: "Clear" }), _jsx(Button, { type: "submit", form: formId, icon: ArrowRight, disabled: !form.formState.isValid || form.formState.isSubmitting, children: form.formState.isSubmitting ? "Starting…" : "Draft rule" })] })] }) }));
|
|
52
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { RuleActionabilityAnalysis } from "./rule-actionability.js";
|
|
3
|
+
type RuleActionabilityBadgeProps = ComponentProps<"span"> & {
|
|
4
|
+
analysis?: RuleActionabilityAnalysis;
|
|
5
|
+
};
|
|
6
|
+
export declare function RuleActionabilityBadge(props: RuleActionabilityBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=RuleActionabilityBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleActionabilityBadge.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleActionabilityBadge.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAGtE,KAAK,2BAA2B,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAC1D,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,kDAuBxE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { compactUri } from "@manta-eu/client/shared/rdf-namespaces";
|
|
3
|
+
import { humanList } from "@manta-eu/lib/humanize";
|
|
4
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
5
|
+
import { SparklesIcon } from "lucide-react";
|
|
6
|
+
import { InlineMeta } from "./InlineMeta.js";
|
|
7
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "#components/tooltip/index";
|
|
8
|
+
export function RuleActionabilityBadge(props) {
|
|
9
|
+
const { analysis, className, ...restProps } = props;
|
|
10
|
+
if (!analysis?.isAutomaticallyActionable) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
const supportedShapes = analysis.supportedActionShapeIris.map(compactUri);
|
|
14
|
+
const title = analysis.hasSupportedActionShape && isPresent(supportedShapes)
|
|
15
|
+
? `Outputs supported action shape: ${humanList(supportedShapes)}`
|
|
16
|
+
: "Automatically applied by the knowledge graph when the inputs change";
|
|
17
|
+
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(InlineMeta, { icon: _jsx(SparklesIcon, { className: "size-3.5" }), className: className, ...restProps, children: "Automatic" }) }), _jsx(TooltipContent, { className: "max-w-xs typography-small", children: title })] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type RuleAffectedActionPlansSectionProps = {
|
|
2
|
+
graphs: readonly string[];
|
|
3
|
+
};
|
|
4
|
+
export declare function RuleAffectedActionPlansSection(props: RuleAffectedActionPlansSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=RuleAffectedActionPlansSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleAffectedActionPlansSection.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleAffectedActionPlansSection.tsx"],"names":[],"mappings":"AAqCA,KAAK,mCAAmC,GAAG;IACzC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AAeF,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,mCAAmC,2CA2OxF"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { buildPlanHref, extractPlanName } from "@manta-eu/client/shared/agent-mode";
|
|
3
|
+
import { compactUri } from "@manta-eu/client/shared/rdf-namespaces";
|
|
4
|
+
import { formatDateTime } from "@manta-eu/lib/date";
|
|
5
|
+
import { humanCount, humanList } from "@manta-eu/lib/humanize";
|
|
6
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
7
|
+
import { useReactTable } from "@tanstack/react-table";
|
|
8
|
+
import { ArrowRight, ChevronDown, Layers } from "lucide-react";
|
|
9
|
+
import { useMemo, useState } from "react";
|
|
10
|
+
import { Link } from "react-router";
|
|
11
|
+
import { InlineMeta } from "./InlineMeta.js";
|
|
12
|
+
import { Badge } from "#components/badge/index";
|
|
13
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "#components/collapsible/index";
|
|
14
|
+
import { PaginationBlock } from "#components/pagination/index";
|
|
15
|
+
import { formatIntegration, IntegrationIcon, planStateVariant, statusLabel, } from "#components/planning/plan-detail-utils";
|
|
16
|
+
import { Skeleton } from "#components/skeleton/index";
|
|
17
|
+
import { createTableConfig, DataTable } from "#components/table/index";
|
|
18
|
+
import { useActionPlans } from "#hooks/useActionPlans";
|
|
19
|
+
import { cn } from "#lib/utils";
|
|
20
|
+
import { useMantaClient } from "#providers/index";
|
|
21
|
+
const pageSize = 10;
|
|
22
|
+
function actionsLabel(plan) {
|
|
23
|
+
return plan.completedActionCount > 0 ? `${plan.completedActionCount} / ${plan.actionCount}` : `${plan.actionCount}`;
|
|
24
|
+
}
|
|
25
|
+
function actionsBreakdown(plan) {
|
|
26
|
+
if (!isPresent(plan.actionCountByType))
|
|
27
|
+
return undefined;
|
|
28
|
+
return humanList(plan.actionCountByType.map(({ typeName, count }) => `${count} ${typeName}`));
|
|
29
|
+
}
|
|
30
|
+
function planRowName(row) {
|
|
31
|
+
return extractPlanName(row.graph) || compactUri(row.graph);
|
|
32
|
+
}
|
|
33
|
+
function MissingValue() {
|
|
34
|
+
return _jsx("span", { className: "text-muted-foreground", children: "\u2014" });
|
|
35
|
+
}
|
|
36
|
+
export function RuleAffectedActionPlansSection(props) {
|
|
37
|
+
const { graphs } = props;
|
|
38
|
+
const [open, setOpen] = useState(false);
|
|
39
|
+
const [page, setPage] = useState(0);
|
|
40
|
+
const { mantaClient } = useMantaClient();
|
|
41
|
+
const planCount = graphs.length;
|
|
42
|
+
const planCountLabel = humanCount(planCount, "plan");
|
|
43
|
+
const hasPlans = planCount > 0;
|
|
44
|
+
const totalPages = Math.max(1, Math.ceil(planCount / pageSize));
|
|
45
|
+
const safePage = Math.min(page, totalPages - 1);
|
|
46
|
+
const pageGraphs = useMemo(() => graphs.slice(safePage * pageSize, safePage * pageSize + pageSize), [graphs, safePage]);
|
|
47
|
+
const { plans, isLoading, isPlaceholderData, error } = useActionPlans(mantaClient, { graphIris: pageGraphs, availability: "ALL", limit: pageSize }, { enabled: open && hasPlans, refetchInterval: false });
|
|
48
|
+
const rows = useMemo(() => pageGraphs.map((graph) => ({
|
|
49
|
+
graph,
|
|
50
|
+
plan: plans.find((candidate) => candidate.iri === graph),
|
|
51
|
+
})), [pageGraphs, plans]);
|
|
52
|
+
const columns = useMemo(() => [
|
|
53
|
+
{
|
|
54
|
+
id: "plan",
|
|
55
|
+
accessorFn: planRowName,
|
|
56
|
+
enableSorting: false,
|
|
57
|
+
header: "Plan",
|
|
58
|
+
cell: ({ row }) => {
|
|
59
|
+
const { graph, plan } = row.original;
|
|
60
|
+
const name = planRowName(row.original);
|
|
61
|
+
const href = buildPlanHref(graph);
|
|
62
|
+
if (!plan) {
|
|
63
|
+
return _jsx("span", { title: graph, children: compactUri(graph) });
|
|
64
|
+
}
|
|
65
|
+
return (_jsxs("div", { className: "flex min-w-0 flex-col gap-1 text-left", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(Link, { to: href, className: "min-w-0 truncate hover:text-primary", title: graph, children: name }), !plan.hasCurrentFacts && (_jsx(Badge, { variant: "copy", size: "sm", className: "shrink-0", children: "History only" }))] }), plan.description && _jsx("span", { className: "truncate text-muted-foreground", children: plan.description })] }));
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "status",
|
|
70
|
+
accessorFn: (row) => row.plan?.state ?? "",
|
|
71
|
+
enableSorting: false,
|
|
72
|
+
header: "Status",
|
|
73
|
+
cell: ({ row }) => {
|
|
74
|
+
const { plan } = row.original;
|
|
75
|
+
if (!plan)
|
|
76
|
+
return _jsx(MissingValue, {});
|
|
77
|
+
return (_jsx(Badge, { variant: planStateVariant(plan.state), size: "sm", children: statusLabel(plan.state) }));
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: "channel",
|
|
82
|
+
accessorFn: (row) => row.plan?.primaryIntegration ?? "",
|
|
83
|
+
enableSorting: false,
|
|
84
|
+
header: "Channel",
|
|
85
|
+
cell: ({ row }) => {
|
|
86
|
+
const { plan } = row.original;
|
|
87
|
+
if (!plan?.primaryIntegration)
|
|
88
|
+
return _jsx(MissingValue, {});
|
|
89
|
+
return (_jsx(InlineMeta, { icon: _jsx(IntegrationIcon, { integration: plan.primaryIntegration }), children: formatIntegration(plan.primaryIntegration) }));
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "actions",
|
|
94
|
+
accessorFn: (row) => row.plan?.actionCount ?? -1,
|
|
95
|
+
enableSorting: false,
|
|
96
|
+
header: "Actions",
|
|
97
|
+
meta: { type: "number" },
|
|
98
|
+
cell: ({ row }) => {
|
|
99
|
+
const { plan } = row.original;
|
|
100
|
+
return plan ? _jsx("span", { title: actionsBreakdown(plan), children: actionsLabel(plan) }) : _jsx(MissingValue, {});
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "lastRun",
|
|
105
|
+
accessorFn: (row) => row.plan?.lastRunAt ?? "",
|
|
106
|
+
enableSorting: false,
|
|
107
|
+
header: "Last run",
|
|
108
|
+
cell: ({ row }) => {
|
|
109
|
+
const { plan } = row.original;
|
|
110
|
+
return plan?.lastRunAt ? _jsx("span", { children: formatDateTime(plan.lastRunAt) }) : _jsx(MissingValue, {});
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "updated",
|
|
115
|
+
accessorFn: (row) => row.plan?.updatedAt ?? "",
|
|
116
|
+
enableSorting: false,
|
|
117
|
+
header: "Updated",
|
|
118
|
+
cell: ({ row }) => {
|
|
119
|
+
const { plan } = row.original;
|
|
120
|
+
return plan?.updatedAt ? _jsx("span", { children: formatDateTime(plan.updatedAt) }) : _jsx(MissingValue, {});
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: "open",
|
|
125
|
+
enableSorting: false,
|
|
126
|
+
cell: ({ row }) => {
|
|
127
|
+
const { graph, plan } = row.original;
|
|
128
|
+
if (!plan)
|
|
129
|
+
return null;
|
|
130
|
+
const name = planRowName(row.original);
|
|
131
|
+
const href = buildPlanHref(graph);
|
|
132
|
+
return (_jsx(Link, { to: href, "aria-label": `Open ${name}`, className: "inline-flex hover:text-primary", children: _jsx(ArrowRight, { className: "size-4" }) }));
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
], []);
|
|
136
|
+
const table = useReactTable(createTableConfig({
|
|
137
|
+
data: rows,
|
|
138
|
+
columns,
|
|
139
|
+
pagination: { pageIndex: 0, pageSize },
|
|
140
|
+
}));
|
|
141
|
+
function renderBody() {
|
|
142
|
+
if (error) {
|
|
143
|
+
return (_jsx("div", { className: "border-t border-muted-border px-4 py-6 typography-small text-error-foreground", children: error }));
|
|
144
|
+
}
|
|
145
|
+
if (isLoading) {
|
|
146
|
+
return (_jsx("div", { className: "border-t border-muted-border", children: Array.from({ length: 3 }, (_, rowIndex) => (_jsxs("div", { className: "flex items-center gap-4 border-b border-muted-border px-4 py-3 last:border-b-0", children: [_jsx(Skeleton, { className: "h-4 w-40 rounded-md" }), _jsx(Skeleton, { className: "h-5 w-16 rounded-full" }), _jsx(Skeleton, { className: "h-4 w-24 rounded-md" }), _jsx(Skeleton, { className: "h-4 w-12 rounded-md" }), _jsx(Skeleton, { className: "h-4 w-20 rounded-md" })] }, `rule-affected-plans-skeleton-${rowIndex}`))) }));
|
|
147
|
+
}
|
|
148
|
+
return (_jsxs(_Fragment, { children: [_jsx(DataTable, { table: table, isRefetching: isPlaceholderData, className: "border-t border-muted-border" }), totalPages > 1 && (_jsx("div", { className: "flex justify-end border-t border-muted-border px-4 py-2", children: _jsx(PaginationBlock, { currentPageIndex: safePage, totalPages: totalPages, onPageChange: setPage, totalCount: planCount }) }))] }));
|
|
149
|
+
}
|
|
150
|
+
return (_jsx(Collapsible, { open: hasPlans && open, onOpenChange: setOpen, children: _jsxs("section", { className: "overflow-hidden rounded-xl border border-muted-border bg-card", children: [_jsx(CollapsibleTrigger, { asChild: true, children: _jsxs("button", { type: "button", disabled: !hasPlans, className: "flex w-full flex-wrap items-center gap-x-2 gap-y-1 px-4 py-3 text-left transition-colors enabled:cursor-pointer enabled:hover:bg-faint disabled:cursor-default", children: [_jsx(Layers, { className: "size-4 shrink-0 text-muted-foreground" }), _jsx("h2", { className: "typography-small-medium text-default-foreground", children: "Affected action plans" }), _jsxs("span", { className: "typography-caption text-muted-foreground", children: [planCountLabel, " ", planCount === 1 ? "uses" : "use", " this rule"] }), _jsxs("span", { className: "ml-auto flex shrink-0 items-center gap-2", children: [hasPlans && (_jsx(Badge, { variant: "secondary", size: "sm", children: planCountLabel })), _jsx(ChevronDown, { className: cn("size-4 text-muted-foreground transition-transform", open ? "rotate-180" : "rotate-0", !hasPlans && "opacity-0") })] })] }) }), _jsx(CollapsibleContent, { children: renderBody() })] }) }));
|
|
151
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type RuleAstProps = ComponentProps<"div"> & {
|
|
3
|
+
rule: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const RuleAst: import("react").ForwardRefExoticComponent<Omit<RuleAstProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//# sourceMappingURL=RuleAst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleAst.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleAst.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,OAAO,sHAgClB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
3
|
+
import { forwardRef, useMemo } from "react";
|
|
4
|
+
import { DatalogAst, parseDatalogRuleCached } from "#ldo-ui";
|
|
5
|
+
import { cn } from "#lib/utils";
|
|
6
|
+
export const RuleAst = forwardRef(function RuleAst(props, ref) {
|
|
7
|
+
const { rule, className, ...restProps } = props;
|
|
8
|
+
const isEmpty = !isPresent(rule);
|
|
9
|
+
const { ast, error } = useMemo(() => {
|
|
10
|
+
if (isEmpty)
|
|
11
|
+
return { ast: null, error: null };
|
|
12
|
+
return parseDatalogRuleCached(rule);
|
|
13
|
+
}, [rule, isEmpty]);
|
|
14
|
+
if (isEmpty) {
|
|
15
|
+
return (_jsx("div", { ref: ref, className: cn("typography-small text-muted-foreground", className), ...restProps, children: "No rule to display" }));
|
|
16
|
+
}
|
|
17
|
+
if (error) {
|
|
18
|
+
return (_jsx("div", { ref: ref, className: cn("bg-error", className), ...restProps, children: _jsxs("p", { className: "typography-small text-error-foreground", children: ["Parse error: ", error] }) }));
|
|
19
|
+
}
|
|
20
|
+
if (!ast)
|
|
21
|
+
return null;
|
|
22
|
+
return (_jsx("div", { ref: ref, className: cn(className), ...restProps, children: _jsx(DatalogAst, { rule: rule }) }));
|
|
23
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type RuleDependentRulesSectionProps = {
|
|
2
|
+
dependentRuleIris: readonly string[];
|
|
3
|
+
};
|
|
4
|
+
export declare function RuleDependentRulesSection(props: RuleDependentRulesSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=RuleDependentRulesSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleDependentRulesSection.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleDependentRulesSection.tsx"],"names":[],"mappings":"AAQA,KAAK,8BAA8B,GAAG;IACpC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,2CA2C9E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { compactUri } from "@manta-eu/client/shared/rdf-namespaces";
|
|
3
|
+
import { humanCount } from "@manta-eu/lib/humanize";
|
|
4
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
5
|
+
import { ArrowRight, GitBranch } from "lucide-react";
|
|
6
|
+
import { Link } from "react-router";
|
|
7
|
+
import { getRuleDisplayName, getRuleHref } from "./rules.utils.js";
|
|
8
|
+
import { Badge } from "#components/badge/index";
|
|
9
|
+
export function RuleDependentRulesSection(props) {
|
|
10
|
+
const { dependentRuleIris } = props;
|
|
11
|
+
return (_jsxs("section", { className: "overflow-hidden rounded-xl border border-muted-border bg-card", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2 border-b border-muted-border px-4 py-3", children: [_jsx(GitBranch, { className: "size-4 shrink-0 text-muted-foreground" }), _jsx("h2", { className: "typography-small-medium text-default-foreground", children: "Dependent rules" }), _jsx(Badge, { variant: "secondary", size: "sm", className: "ml-auto", children: humanCount(dependentRuleIris.length, "rule") })] }), !isPresent(dependentRuleIris) ? (_jsx("p", { className: "px-4 py-5 typography-small text-muted-foreground", children: "No other rules build on this rule. It is a top-level rule." })) : (_jsx("div", { className: "max-h-80 overflow-y-auto", children: dependentRuleIris.map((ruleIri) => {
|
|
12
|
+
const label = getRuleDisplayName(ruleIri);
|
|
13
|
+
const href = getRuleHref({ ruleIri });
|
|
14
|
+
return (_jsxs(Link, { to: href, className: "flex items-center gap-3 border-b border-muted-border px-4 py-3 transition-colors last:border-b-0 hover:bg-faint", children: [_jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [_jsx("span", { className: "truncate typography-small-medium text-default-foreground", children: label }), _jsx("span", { className: "truncate font-mono typography-tiny text-muted-foreground", title: ruleIri, children: compactUri(ruleIri) })] }), _jsx(ArrowRight, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" })] }, ruleIri));
|
|
15
|
+
}) }))] }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { GQLRule } from "@manta-eu/client";
|
|
2
|
+
import { type SupportedActionShapeRef } from "./rule-actionability.js";
|
|
3
|
+
import { type RuleHandlers } from "./rules.utils.js";
|
|
4
|
+
export type RuleDetailsPageProps = Pick<RuleHandlers, "onEditRule"> & {
|
|
5
|
+
rule: GQLRule | null;
|
|
6
|
+
allRules?: readonly GQLRule[];
|
|
7
|
+
supportedActionShapes?: readonly SupportedActionShapeRef[];
|
|
8
|
+
isActionShapesLoading?: boolean;
|
|
9
|
+
ownerNameByUserId?: ReadonlyMap<string, string>;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
error?: string | null;
|
|
12
|
+
};
|
|
13
|
+
export declare function RuleDetailsPage(props: RuleDetailsPageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=RuleDetailsPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleDetailsPage.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleDetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOhD,OAAO,EAA4B,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAO9F,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAYvB,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IACpE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC9B,qBAAqB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC3D,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAgJ1D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { compactUri } from "@manta-eu/client/shared/rdf-namespaces";
|
|
3
|
+
import { humanCount } from "@manta-eu/lib/humanize";
|
|
4
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
5
|
+
import { FileCode2, Layers } from "lucide-react";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { InlineMeta } from "./InlineMeta.js";
|
|
8
|
+
import { analyzeRuleActionability } from "./rule-actionability.js";
|
|
9
|
+
import { buildRuleProducerIndex, lookupRuleProducers } from "./rule-producers.js";
|
|
10
|
+
import { RuleActionabilityBadge } from "./RuleActionabilityBadge.js";
|
|
11
|
+
import { RuleAffectedActionPlansSection } from "./RuleAffectedActionPlansSection.js";
|
|
12
|
+
import { RuleDependentRulesSection } from "./RuleDependentRulesSection.js";
|
|
13
|
+
import { RuleOwnershipBadge } from "./RuleOwnershipBadge.js";
|
|
14
|
+
import { RuleProducersSection } from "./RuleProducersSection.js";
|
|
15
|
+
import { getRuleDisplayName, getRuleDisplayText, getExternalDependentRuleIris, getRuleOwnerName, getRuleStatus, } from "./rules.utils.js";
|
|
16
|
+
import { RuleSampleFactsSection } from "./RuleSampleFactsSection.js";
|
|
17
|
+
import { RuleSetup } from "./RuleSetup.js";
|
|
18
|
+
import { RuleStatusBadge } from "./RuleStatusBadge.js";
|
|
19
|
+
import { Banner } from "#components/banner/index";
|
|
20
|
+
import { EmptyState } from "#components/empty-state/index";
|
|
21
|
+
import { PageBody } from "#components/layouts/page/index";
|
|
22
|
+
import { Loader } from "#components/loader/index";
|
|
23
|
+
import { RunHistoryTable } from "#components/planning/RunHistoryTable";
|
|
24
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "#components/tabs/index";
|
|
25
|
+
export function RuleDetailsPage(props) {
|
|
26
|
+
const { rule, allRules, supportedActionShapes, isActionShapesLoading = false, ownerNameByUserId, isLoading = false, error, onEditRule, } = props;
|
|
27
|
+
const actionability = useMemo(() => {
|
|
28
|
+
return rule
|
|
29
|
+
? analyzeRuleActionability(getRuleDisplayText(rule), supportedActionShapes ?? [], rule.namedGraphs)
|
|
30
|
+
: undefined;
|
|
31
|
+
}, [rule, supportedActionShapes]);
|
|
32
|
+
const renderTermProducers = useMemo(() => {
|
|
33
|
+
if (!allRules || !rule)
|
|
34
|
+
return undefined;
|
|
35
|
+
const producerIndex = buildRuleProducerIndex(allRules, rule.ruleIri);
|
|
36
|
+
return (term, graph) => {
|
|
37
|
+
const producers = lookupRuleProducers(producerIndex, term, graph);
|
|
38
|
+
return isPresent(producers) ? _jsx(RuleProducersSection, { producers: producers }) : null;
|
|
39
|
+
};
|
|
40
|
+
}, [allRules, rule]);
|
|
41
|
+
const ownerName = rule ? getRuleOwnerName(rule, ownerNameByUserId) : null;
|
|
42
|
+
const status = rule ? getRuleStatus(rule) : null;
|
|
43
|
+
const planGraphs = rule?.namedGraphs ?? [];
|
|
44
|
+
const planCount = planGraphs.length;
|
|
45
|
+
const hasPlans = isPresent(planGraphs);
|
|
46
|
+
const ruleDisplayName = rule ? getRuleDisplayName(rule.ruleIri) : "";
|
|
47
|
+
const displayRuleText = rule ? getRuleDisplayText(rule) : "";
|
|
48
|
+
const dependentRuleIris = rule ? getExternalDependentRuleIris(rule) : [];
|
|
49
|
+
return (_jsx(PageBody, { children: _jsxs("div", { className: "mx-auto flex w-full max-w-6xl flex-col gap-4", children: [error && _jsx(Banner, { label: error }), isLoading ? (_jsx("div", { className: "flex min-h-64 items-center justify-center", children: _jsx(Loader, { className: "size-8" }) })) : rule ? (_jsxs(_Fragment, { children: [_jsxs("section", { className: "flex min-w-0 gap-4 px-1 py-2", children: [_jsx("div", { className: "flex size-11 shrink-0 items-center justify-center rounded-lg bg-faint text-muted-foreground", children: _jsx(FileCode2, { className: "size-5" }) }), _jsxs("div", { className: "min-w-0 flex-1 space-y-3", children: [_jsx("h2", { className: "truncate typography-large-body-semibold", title: compactUri(rule.ruleIri), children: ruleDisplayName }), _jsxs("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [status && _jsx(RuleStatusBadge, { status: status, appearance: "inline" }), !isActionShapesLoading &&
|
|
50
|
+
(actionability?.isAutomaticallyActionable ? (_jsx(RuleActionabilityBadge, { analysis: actionability })) : (_jsx(InlineMeta, { icon: _jsx(FileCode2, { className: "size-3.5" }), children: "Manual" }))), _jsx(RuleOwnershipBadge, { ownership: rule.ownedBy ?? null, ownerName: ownerName, appearance: "inline" }), _jsx(InlineMeta, { icon: _jsx(Layers, { className: "size-3.5" }), children: humanCount(planCount, "plan") })] }), isPresent(rule.mentionedTypes) && (_jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: rule.mentionedTypes.map((type) => (_jsx("span", { className: "font-mono typography-caption text-muted-foreground", title: type, children: compactUri(type) }, type))) }))] })] }), _jsxs(Tabs, { defaultValue: "overview", className: "gap-4", children: [_jsxs(TabsList, { children: [_jsx(TabsTrigger, { value: "overview", children: "Overview" }), _jsx(TabsTrigger, { value: "history", children: "Run history" })] }), _jsxs(TabsContent, { value: "overview", forceMount: true, className: "flex flex-col gap-4 data-[state=inactive]:hidden", children: [_jsxs("section", { className: "flex flex-col gap-3 rounded-xl border border-muted-border bg-card p-5", children: [_jsx("h2", { className: "typography-small-medium text-default-foreground", children: "Rule setup" }), _jsx(RuleSetup, { ruleText: displayRuleText, onStageChange: onEditRule ? (newRuleText) => onEditRule(rule.ruleIri, newRuleText) : undefined, renderTermProducers: renderTermProducers }), rule.isModified && rule.committedRule && (_jsxs("details", { className: "rounded-lg border border-warning/20 bg-warning/5 p-3", children: [_jsx("summary", { className: "cursor-pointer typography-small text-warning-foreground", children: "View original committed version" }), _jsx("div", { className: "mt-3", children: _jsx(RuleSetup, { ruleText: rule.committedRule, renderTermProducers: renderTermProducers }) })] }))] }), _jsx(RuleAffectedActionPlansSection, { graphs: planGraphs }, rule.ruleIri), _jsx(RuleDependentRulesSection, { dependentRuleIris: dependentRuleIris }), _jsx(RuleSampleFactsSection, { rule: rule })] }), _jsx(TabsContent, { value: "history", className: "flex flex-col gap-3", children: hasPlans ? (_jsxs(_Fragment, { children: [_jsx("p", { className: "typography-caption text-muted-foreground", children: "Rules are not executed on their own \u2014 they derive data continuously as soon as it changes. This list shows runs of the action plans this rule contributes to." }), _jsx(RunHistoryTable, { planIris: planGraphs, showPlanColumn: true, emptyDescription: "None of this rule's action plans have been executed yet. Runs will appear here once one does." }, rule.ruleIri)] })) : (_jsx(EmptyState, { icon: Layers, title: "No action plans", description: "This rule does not contribute to an action plan, so there is no run history to show." })) })] })] })) : (_jsx(EmptyState, { icon: FileCode2, title: "Rule not found", description: "The selected rule is not available." }))] }) }));
|
|
51
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuleProducer } from "./rule-producers.js";
|
|
2
|
+
type RuleProducersSectionProps = {
|
|
3
|
+
producers: readonly RuleProducer[];
|
|
4
|
+
};
|
|
5
|
+
export declare function RuleProducersSection(props: RuleProducersSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=RuleProducersSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleProducersSection.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleProducersSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIrD,KAAK,yBAAyB,GAAG;IAC/B,SAAS,EAAE,SAAS,YAAY,EAAE,CAAC;CACpC,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAyBpE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { humanPlural } from "@manta-eu/lib/humanize";
|
|
3
|
+
import { ArrowRight } from "lucide-react";
|
|
4
|
+
import { Link } from "react-router";
|
|
5
|
+
import { getRuleDisplayName, getRuleHref } from "./rules.utils.js";
|
|
6
|
+
import { Badge } from "#components/badge/index";
|
|
7
|
+
export function RuleProducersSection(props) {
|
|
8
|
+
const { producers } = props;
|
|
9
|
+
return (_jsxs("div", { className: "mt-1.5 border-t border-muted-foreground/30 pt-1.5", children: [_jsxs("p", { className: "typography-tiny text-muted-foreground", children: ["Derived by ", humanPlural("rule", producers.length)] }), _jsx("div", { className: "mt-0.5 flex max-h-40 flex-col overflow-y-auto", children: producers.map((producer) => (_jsxs(Link, { to: getRuleHref(producer), className: "group flex items-center gap-1.5 py-0.5 typography-small-medium hover:underline", children: [_jsx("span", { className: "min-w-0 truncate", children: getRuleDisplayName(producer.ruleIri) }), producer.isStaged && (_jsx(Badge, { variant: "warning", size: "sm", children: "Staged" })), _jsx(ArrowRight, { className: "size-3.5 shrink-0 opacity-60 group-hover:opacity-100", "aria-hidden": "true" })] }, producer.ruleIri))) })] }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GQLRule } from "@manta-eu/client";
|
|
2
|
+
type RuleSampleFactsSectionProps = {
|
|
3
|
+
rule: GQLRule;
|
|
4
|
+
};
|
|
5
|
+
export declare function RuleSampleFactsSection(props: RuleSampleFactsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=RuleSampleFactsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleSampleFactsSection.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RuleSampleFactsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAwBhD,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAUF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,2CAmDxE"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { humanizeEntityName } from "@manta-eu/client/shared/agent-mode";
|
|
3
|
+
import { iriLocalName } from "@manta-eu/client/shared/rdf-namespaces";
|
|
4
|
+
import { isPresent } from "@manta-eu/lib/present";
|
|
5
|
+
import { ExternalLink, FlaskConical } from "lucide-react";
|
|
6
|
+
import { useMemo } from "react";
|
|
7
|
+
import { Link } from "react-router";
|
|
8
|
+
import { getRuleDisplayText } from "./rules.utils.js";
|
|
9
|
+
import { buildSampleFactsQuery } from "./sample-facts-query.js";
|
|
10
|
+
import { Banner } from "#components/banner/index";
|
|
11
|
+
import { Button } from "#components/button/index";
|
|
12
|
+
import { Skeleton } from "#components/skeleton/index";
|
|
13
|
+
import { bindingLiteralDatatype, bindingValue, buildExplainPath, MaskedValue, maskText, ontologyTermIri, OntologyTermText, usePersonalDataResolutionFor, useSparqlSelect, } from "#ldo-ui";
|
|
14
|
+
export function RuleSampleFactsSection(props) {
|
|
15
|
+
const { rule } = props;
|
|
16
|
+
const queryState = useMemo(() => {
|
|
17
|
+
try {
|
|
18
|
+
return { query: buildSampleFactsQuery(getRuleDisplayText(rule)), error: null };
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
return { query: "", error: error instanceof Error ? error.message : "Failed to build sample fact query" };
|
|
22
|
+
}
|
|
23
|
+
}, [rule]);
|
|
24
|
+
const queryResult = useSparqlSelect({
|
|
25
|
+
query: queryState.query,
|
|
26
|
+
queryKey: ["rule-sample-facts", rule.ruleIri, queryState.query],
|
|
27
|
+
enabled: !!queryState.query,
|
|
28
|
+
});
|
|
29
|
+
const samples = useMemo(() => (queryResult.data ?? [])
|
|
30
|
+
.map((binding) => {
|
|
31
|
+
const subject = bindingValue(binding, "S");
|
|
32
|
+
const predicate = bindingValue(binding, "P");
|
|
33
|
+
const object = bindingValue(binding, "O");
|
|
34
|
+
const graph = bindingValue(binding, "G");
|
|
35
|
+
const objectDatatype = bindingLiteralDatatype(binding, "O");
|
|
36
|
+
if (!subject || !predicate || !object)
|
|
37
|
+
return null;
|
|
38
|
+
return { subject, predicate, object, graph, objectDatatype };
|
|
39
|
+
})
|
|
40
|
+
.filter((sample) => sample !== null), [queryResult.data]);
|
|
41
|
+
if (queryState.error) {
|
|
42
|
+
return (_jsx(Banner, { type: "error", label: "Could not build sample facts query", description: queryState.error, size: "loose" }));
|
|
43
|
+
}
|
|
44
|
+
return (_jsxs("section", { className: "flex flex-col gap-3 rounded-xl border border-muted-border bg-card p-4", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx(FlaskConical, { className: "size-4 text-muted-foreground" }), _jsx("h2", { className: "typography-small-medium text-default-foreground", children: "Sample inferred facts" })] }), _jsx(RuleSampleFactsBody, { isLoading: queryResult.isLoading, error: queryResult.error, samples: samples })] }));
|
|
45
|
+
}
|
|
46
|
+
function RuleSampleFactsBody(props) {
|
|
47
|
+
const { isLoading, error, samples } = props;
|
|
48
|
+
const personalDataResolutions = usePersonalDataResolutionFor(samples.map((sample) => sample.predicate));
|
|
49
|
+
if (isLoading) {
|
|
50
|
+
return (_jsx("div", { className: "overflow-hidden rounded-md border border-muted-border bg-card/70", children: Array.from({ length: 3 }, (_, index) => (_jsxs("div", { className: "flex w-full items-center gap-3 border-b border-muted-border px-3 py-2 last:border-b-0", children: [_jsx(Skeleton, { className: "h-4 flex-1 rounded-md" }), _jsx(Skeleton, { className: "h-6 w-24 rounded-full" })] }, `rule-sample-facts-skeleton-${index}`))) }));
|
|
51
|
+
}
|
|
52
|
+
if (error) {
|
|
53
|
+
return (_jsx(Banner, { type: "error", label: "Could not load sample facts", description: error instanceof Error ? error.message : "SPARQL query failed", size: "loose" }));
|
|
54
|
+
}
|
|
55
|
+
if (!isPresent(samples)) {
|
|
56
|
+
return _jsx("p", { className: "typography-small text-muted-foreground", children: "No inferred facts found for this rule." });
|
|
57
|
+
}
|
|
58
|
+
return (_jsx("div", { className: "overflow-hidden rounded-md border border-muted-border bg-card/70", children: samples.map((sample) => {
|
|
59
|
+
const key = sampleKey(sample);
|
|
60
|
+
const resolution = personalDataResolutions.get(sample.predicate);
|
|
61
|
+
const personalDataCategories = resolution?.status === "resolved" && isPresent(resolution.categories) ? resolution.categories : undefined;
|
|
62
|
+
const isEntityObject = isPresent(ontologyTermIri(sample.object));
|
|
63
|
+
const maskObject = isPresent(personalDataCategories) && !isEntityObject;
|
|
64
|
+
const maskedWhilePending = resolution !== undefined && resolution.status !== "resolved" && !isEntityObject;
|
|
65
|
+
return (_jsxs("div", { className: "flex w-full items-center gap-3 border-b border-muted-border px-3 py-2 transition-colors last:border-b-0 hover:bg-muted/50", children: [_jsxs("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-1.5 gap-y-0.5 typography-tiny", children: [_jsx(OntologyTermText, { term: sample.subject, fallbackLabel: humanizeEntityName(iriLocalName(sample.subject)) }), _jsx(OntologyTermText, { term: sample.predicate, className: "whitespace-nowrap text-muted-foreground" }), maskedWhilePending ? (_jsx("span", { className: "tracking-wider text-muted-foreground", children: maskText })) : maskObject && personalDataCategories ? (_jsx(MaskedValue, { value: sample.object, categories: personalDataCategories })) : (_jsx(OntologyTermText, { term: sample.object, fallbackLabel: humanizeEntityName(iriLocalName(sample.object)) }))] }), _jsx(Button, { asChild: true, variant: "tertiary", size: "xs", icon: ExternalLink, children: _jsx(Link, { to: buildExplainPath({ ...sample, namedGraph: sample.graph }), children: "Open in /explain" }) })] }, key));
|
|
66
|
+
}) }));
|
|
67
|
+
}
|
|
68
|
+
function sampleKey(sample) {
|
|
69
|
+
return `${sample.subject}|${sample.predicate}|${sample.object}|${sample.graph ?? ""}|${sample.objectDatatype ?? ""}`;
|
|
70
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Awaitable } from "@manta-eu/lib/types";
|
|
2
|
+
export type RulesOverviewHeaderActionsProps = {
|
|
3
|
+
activeTab: "rules" | "actionShapes";
|
|
4
|
+
hasStagedRules: boolean;
|
|
5
|
+
isRefreshing: boolean;
|
|
6
|
+
isClearStagedPending: boolean;
|
|
7
|
+
isValidatePending: boolean;
|
|
8
|
+
isCommitPending: boolean;
|
|
9
|
+
onRefresh: () => void;
|
|
10
|
+
onShowDependencyGraph: () => void;
|
|
11
|
+
onClearStaged: () => Awaitable<void>;
|
|
12
|
+
onValidate: () => Awaitable<void>;
|
|
13
|
+
onCommit: () => Awaitable<void>;
|
|
14
|
+
onCreateRule: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare function RulesOverviewHeaderActions(props: RulesOverviewHeaderActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=RulesOverviewHeaderActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RulesOverviewHeaderActions.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RulesOverviewHeaderActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,SAAS,EAAE,OAAO,GAAG,cAAc,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IAClC,QAAQ,EAAE,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;IAChC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,2CAuEhF"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CheckCircle, GitCommit, Plus, RefreshCcw, Trash } from "lucide-react";
|
|
3
|
+
import { PageHeaderActions } from "#components/layouts/page/index";
|
|
4
|
+
export function RulesOverviewHeaderActions(props) {
|
|
5
|
+
const { activeTab, hasStagedRules, isRefreshing, isClearStagedPending, isValidatePending, isCommitPending, onRefresh,
|
|
6
|
+
//onShowDependencyGraph,
|
|
7
|
+
onClearStaged, onValidate, onCommit, onCreateRule, } = props;
|
|
8
|
+
const actions = [
|
|
9
|
+
{
|
|
10
|
+
key: "refresh",
|
|
11
|
+
label: "Refresh",
|
|
12
|
+
onClick: onRefresh,
|
|
13
|
+
icon: RefreshCcw,
|
|
14
|
+
variant: "tertiary",
|
|
15
|
+
disabled: isRefreshing,
|
|
16
|
+
iconOnly: true,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
if (activeTab === "rules") {
|
|
20
|
+
// hiding until performance issues fixed
|
|
21
|
+
// actions.push({
|
|
22
|
+
// key: "show-graph",
|
|
23
|
+
// label: "Show Graph",
|
|
24
|
+
// onClick: onShowDependencyGraph,
|
|
25
|
+
// icon: Network,
|
|
26
|
+
// variant: "secondary",
|
|
27
|
+
// disabled: true,
|
|
28
|
+
// });
|
|
29
|
+
if (hasStagedRules) {
|
|
30
|
+
actions.push({
|
|
31
|
+
key: "clear-staged",
|
|
32
|
+
label: "Clear Staged",
|
|
33
|
+
onClick: () => void onClearStaged(),
|
|
34
|
+
icon: Trash,
|
|
35
|
+
variant: "secondary",
|
|
36
|
+
disabled: isClearStagedPending,
|
|
37
|
+
}, {
|
|
38
|
+
key: "validate",
|
|
39
|
+
label: "Validate",
|
|
40
|
+
onClick: () => void onValidate(),
|
|
41
|
+
icon: CheckCircle,
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
disabled: isValidatePending,
|
|
44
|
+
}, {
|
|
45
|
+
key: "commit",
|
|
46
|
+
label: "Commit Changes",
|
|
47
|
+
onClick: () => void onCommit(),
|
|
48
|
+
icon: GitCommit,
|
|
49
|
+
disabled: isCommitPending,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
actions.push({ key: "new-rule", label: "New Rule", onClick: onCreateRule, icon: Plus });
|
|
53
|
+
}
|
|
54
|
+
return _jsx(PageHeaderActions, { actions: actions });
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { GQLRule } from "@manta-eu/client";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type SupportedActionShapeRef } from "./rule-actionability.js";
|
|
4
|
+
export type RulesOverviewPageProps = {
|
|
5
|
+
rules: GQLRule[];
|
|
6
|
+
supportedActionShapes?: readonly SupportedActionShapeRef[];
|
|
7
|
+
ownerNameByUserId?: ReadonlyMap<string, string>;
|
|
8
|
+
tabs?: ReactNode;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
error?: string | null;
|
|
11
|
+
};
|
|
12
|
+
export declare function RulesOverviewPage(props: RulesOverviewPageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=RulesOverviewPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RulesOverviewPage.d.ts","sourceRoot":"","sources":["../../../../src/routes/rules/components/RulesOverviewPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAOhD,OAAO,EAAmC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,sBAAsB,CAAC;AAmE9B,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,qBAAqB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC3D,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAoEF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CA2W9D"}
|