UNPKG

@atlaskit/adf-schema

Version:

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

36 lines (35 loc) 867 B
import { MarkSpec, Mark } from 'prosemirror-model'; export interface ConfluenceLinkMetadata { linkType: string; versionAtSave?: string | null; fileName?: string | null; spaceKey?: string | null; contentTitle?: string | null; isRenamedTitle?: boolean; anchorName?: string | null; contentId?: string | null; container?: ConfluenceLinkMetadata; } export interface LinkAttributes { /** * @validatorFn safeUrl */ href: string; title?: string; id?: string; collection?: string; occurrenceKey?: string; __confluenceMetadata?: ConfluenceLinkMetadata; } /** * @name link_mark */ export interface LinkDefinition { type: 'link'; attrs: LinkAttributes; } export declare const link: MarkSpec; export declare const toJSON: (mark: Mark) => { type: string; attrs: Record<string, string>; };