1 | import { MarkSpec, Mark } from 'prosemirror-model';
|
2 | export 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 | }
|
13 | export interface LinkAttributes {
|
14 | |
15 |
|
16 |
|
17 | href: string;
|
18 | title?: string;
|
19 | id?: string;
|
20 | collection?: string;
|
21 | occurrenceKey?: string;
|
22 | __confluenceMetadata?: ConfluenceLinkMetadata;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 | export interface LinkDefinition {
|
28 | type: 'link';
|
29 | attrs: LinkAttributes;
|
30 | }
|
31 | export declare const link: MarkSpec;
|
32 | export declare const toJSON: (mark: Mark) => {
|
33 | type: string;
|
34 | attrs: Record<string, string>;
|
35 | };
|