UNPKG

867 BTypeScriptView Raw
1import { MarkSpec, Mark } from 'prosemirror-model';
2export interface ConfluenceLinkMetadata {
3 linkType: string;
4 versionAtSave?: string | null;
5 fileName?: string | null;
6 spaceKey?: string | null;
7 contentTitle?: string | null;
8 isRenamedTitle?: boolean;
9 anchorName?: string | null;
10 contentId?: string | null;
11 container?: ConfluenceLinkMetadata;
12}
13export interface LinkAttributes {
14 /**
15 * @validatorFn safeUrl
16 */
17 href: string;
18 title?: string;
19 id?: string;
20 collection?: string;
21 occurrenceKey?: string;
22 __confluenceMetadata?: ConfluenceLinkMetadata;
23}
24/**
25 * @name link_mark
26 */
27export interface LinkDefinition {
28 type: 'link';
29 attrs: LinkAttributes;
30}
31export declare const link: MarkSpec;
32export declare const toJSON: (mark: Mark) => {
33 type: string;
34 attrs: Record<string, string>;
35};