UNPKG

@atlaskit/adf-schema

Version:

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

25 lines (24 loc) 1.01 kB
import type { InlineFormattedText, InlineCode } from './types/inline-content'; import type { HardBreakDefinition as HardBreak } from './hard-break'; import type { MentionDefinition as Mention } from './mention'; import type { EmojiDefinition as Emoji } from './emoji'; import type { DateDefinition as Date } from './date'; import type { PlaceholderDefinition as Placeholder } from './placeholder'; import type { InlineCardDefinition as InlineCard } from './inline-card'; import type { StatusDefinition as Status } from './status'; /** * @name caption_node */ export interface CaptionDefinition { attrs?: { localId?: string; }; /** * @minItems 0 * @allowUnsupportedInline true */ content: Array<InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | Date | Placeholder | InlineCard | Status>; type: 'caption'; } export declare const caption: import("prosemirror-model").NodeSpec; export declare const captionWithLocalId: import("prosemirror-model").NodeSpec;