UNPKG

@atlaskit/adf-schema

Version:

Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs

24 lines (23 loc) 676 B
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model'; import type { BreakoutMarkDefinition } from '../marks'; export interface SyncBlockAttrs { /** * An optional UUID for unique identification of the node */ localId: string; /** * The ID of the resource to be synchronized. */ resourceId: string; } /** * Represents a block node that is designed to be synchronized * with an external resource across different products. * @name syncBlock_node */ export interface SyncBlockDefinition { attrs: SyncBlockAttrs; marks?: Array<BreakoutMarkDefinition>; type: 'syncBlock'; } export declare const syncBlock: NodeSpec;