s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Content · Components

GovernedContentEditor

No summary has been written for GovernedContentEditor. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { GovernedContentEditor } from '@happyvertical/smrt-content/svelte';
Import path
@happyvertical/smrt-content/svelte
Props
20
Props described
20 of 20
Bindable state
0
Callback events
3
Verified release
0.44.0

Props

NameTypeRequiredDescription
apiBaseUrlstringNoBase URL for content and governance API requests.
contentContentDataNoExisting content to edit; omit to create new content.
contentIdstringNoID of the content being edited; defaults to 'new'.
defaultRelationshipstringNoDefault relationship type for new facts added to the content.
reviewProfileKeystringNoKey for the publication review profile to enforce.
customReviewLabelstringNoLabel shown for custom review workflow submissions.
customReviewInstructionsstringNoInstructions shown for custom review workflow submissions.
customReviewPolicyKeystringNoPolicy key applied to custom review submissions.
enforcePublishReadinessbooleanNoWhether to require publication readiness before saving.
saveDisabledbooleanNoWhether to disable the save button.
saveNoticestring | nullNoMessage displayed when save is disabled or unavailable.
agentChatEnabledbooleanNoWhether the agent chat assistant panel is available.
agentChatNoticestring | nullNoMessage displayed when agent chat is unavailable.
hideActionsbooleanNoWhether to hide the save and cancel action buttons.
hideChatbooleanNoWhether to hide the agent chat panel.
showFactCatalogbooleanNoWhether to display the fact catalog panel.
showGovernancePanelbooleanNoWhether to display the governance status panel.
onAssistantContextChangeContentEditorAssistantContextChangeNoInvoked when the assistant context changes during editing.
onSave(data: GovernedContentEditorSaveData) => voidYesInvoked when the user saves the content.
onCancel() => voidYesInvoked when the user cancels editing.

Bindable state

This component has no bindable public state.

Callback events

  • onAssistantContextChangeContentEditorAssistantContextChange
  • onSave(data: GovernedContentEditorSaveData) => void
  • onCancel() => void

Examples and explanation