UNPKG

@atlaskit/adf-schema

Version:

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

28 lines (27 loc) 1.16 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'; import type { NodeSpec } from '@atlaskit/editor-prosemirror/model'; /** * @name caption_node */ export interface CaptionDefinition { attrs?: { localId?: string; }; /** // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @minItems 0 // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names * @allowUnsupportedInline true */ content: Array<InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | Date | Placeholder | InlineCard | Status>; type: 'caption'; } export declare const caption: NodeSpec; export declare const captionWithLocalId: NodeSpec;