← All packages

API reference

@searsuite/sear-domain-doc-schema

The dependency-free JSON protocol shared by standalone and embedded rich documents.

3 exportsderived from source

interfaceNodeSchemasource ↗
interface NodeSchema

Persisted rich-document node schema shared by document runtime, commands, and OT.

propertyattrs
attrs?: Record<string, any>

Node attributes for styles, formatting, and feature-owned metadata.

propertycontent
content?: Schema[]

Child rich-document nodes.

propertyid
id?: string

Stable structural identity for layout, retained render nodes, and collaboration mapping.

propertytext
text?: string

Optional text content for leaf text nodes.

propertytype
type: string

Domain node type identifier.

interfaceTextSchemasource ↗
interface TextSchema extends NodeSchema

Persisted text-bearing rich-document node schema.

propertytext
text: string

Optional text content for leaf text nodes.

Inherited members 4

Inherited from NodeSchema.

typeSchemasource ↗
type Schema = NodeSchema | TextSchema

Persisted rich-document schema node.