Types
Every type Blok exports, grouped by concern. These are the export type
declarations in @useblok/core.
Config
Config
ComponentConfig<Props>
RootConfig<Props>
Category
TabConfigFields
Field // union of all field types below
FieldType // "text" | "textarea" | ... | "custom"
Fields<Props> // Record<keyof Props, Field>
BaseField
// Each field type
TextField
TextareaField
RichTextField
NumberField
BooleanField
SelectField
RadioField
AssetField
LinkField
ArrayField
ObjectField
SlotField
CustomField<Value>
CustomFieldRenderProps<Value>
OptionData
Data<RootProps?, BlockProps?>
BlockInstance<Props>
RootData<Props>Blok component
BlokProps
BlokRenderContext // passed into ComponentConfig.render as `blok`Plus the constant ROOT_ZONE.
Store
BlokState
BlokStore
CreateStoreOptions
BlokStoreProviderProps
LeftPanel
RightPanel
EditMode
Viewport // "desktop" | "tablet" | "mobile" | "fullscreen"Hooks
KeyboardShortcutHandlers
BlokActions
SeoReadinessPlugins
BlokPlugin
PluginFieldRenderer<Value>
PluginFieldRenderProps<Value>
PluginLeftPanel
PluginInitContext
PluginIcon
PluginProviderProps
MergedPluginRegistryMigrations
BlockMigration<OldProps, NewProps>
MigrationReportVersions
DocumentVersion
DocumentVersionRef
CreateVersionMeta
VersionOrigin
VersionsBinding
VersionChangeEvent
DocumentDiff
BlockDiffDetail
PropChange
VersionsProviderProps
VersionsModalPropsComments
Comment
CommentAuthor
CommentTarget
CreateCommentInput
UpdateCommentPatch
CommentsBinding
CommentChangeEvent
CommentsProviderPropsPresence
PresencePeer
PresenceFocus
PresenceEvent
PresenceBinding
PresenceIdentity
PresenceProviderProps
PresenceStackPropsAudit
AuditActor
AuditAction
AuditEvent
AuditTarget
AuditBinding
AuditAppendInput
AuditLogListOptions
AuditChangeEvent
AuditLogProviderProps
AuditLogModalPropsPublish gates
PublishGatesReport
PublishGatesConfig
GateIssue
GateResult
GateSeverity
GateContext
GateSpec
GateToggle
PublishGatesProviderPropsPermissions
BlokRole // "editor" | "reviewer" | "viewer"
BlokAction // "edit" | "publish" | "comment" | ...
PermissionsProviderPropsSettings
Settings
AiSettings
ModuleSettings
AiProviderMode
AiScopeAI
AiAction
AiFieldAction
AiFieldActionContext
AiBlockAction
AiBlockActionContext
AiCompletionProvider
AiCompletionRequest
AiProviderPropsImport example
import type {
Blok, Config, Data, ComponentConfig, Fields,
BlockInstance, BlokPlugin, BlokRole,
} from "@useblok/core";Last updated on