Content · Components
ContentGovernancePanel
No summary has been written for ContentGovernancePanel. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.Public export
typescript
import { ContentGovernancePanel } from '@happyvertical/smrt-content/svelte';- Import path
@happyvertical/smrt-content/svelte- Props
- 16
- Props described
- 16 of 16
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
apiBaseUrlstringNoBase URL for API requests to load facts, reviews, and governance state.contentIdstringNoIdentifier of the content, or 'new' if creating.draftTypestring | nullNoType of the draft content (e.g., article, post).draftVariantstring | nullNoVariant of the draft content within its type.selectedFactIdsstring[]NoIDs of facts currently linked to the content.selectedFactsFactData[]NoFact objects corresponding to selectedFactIds.defaultRelationshipstringNoDefault relationship type when adding facts (e.g., supports, contradicts).reviewProfileKeystringNoKey of the profile used to render reviews and requirements.customReviewLabelstringNoLabel for the custom review workflow button.customReviewInstructionsstringNoInstructions or guidance shown for custom review.customReviewPolicyKeystringNoPolicy key used for custom review submissions.showFactCatalogbooleanNoShow the searchable fact catalog browser in the panel.onFactsChange(factIds: string[], facts: FactData[]) => voidNoFired when facts are linked or unlinked from the content.onGovernanceStateChange(state: ContentGovernanceStateData | null) => voidNoFired when governance state is loaded or changes.onFactAuditChange(state: FactAuditStateData | null) => voidNoFired when fact audit state is loaded or changes.hiddenSectionsContentGovernancePanelSection[]NoPanel sections to hide from the user interface.Bindable state
This component has no bindable public state.
Callback events
onFactsChange(factIds: string[], facts: FactData[]) => voidonGovernanceStateChange(state: ContentGovernanceStateData | null) => voidonFactAuditChange(state: FactAuditStateData | null) => void