Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
export interface BlockRendererProps {
node: BlockJSON
}
export type NodeRendererProps = BlockRendererProps | InlineRendererProps
export type TextPlugin = Plugin &
Rule & {
// FIXME: This type should exist in slate somewhere...
// eslint-disable-next-line @typescript-eslint/no-explicit-any
commands?: { [key: string]: (editor: Editor, ...args: any[]) => Editor }
}
export { isValueEmpty } from './factory'
const textState = scalar(emptyDocument)
export type TextState = typeof textState
export interface TextConfig {
placeholder: string
plugins: ((pluginClosure: SlatePluginClosure) => TextPlugin)[]
registry: {
name: string
title?: string
description?: string
}[]
theme: {
backgroundColor: string
color: string
hoverColor: string
active: {
backgroundColor: string
color: string