@atlaskit/adf-schema 49.0.6 → 50.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +132 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +140 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
- package/dist/cjs/next-schema/nodes/caption.js +7 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
- package/dist/cjs/next-schema/nodes/date.js +5 -0
- package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
- package/dist/cjs/next-schema/nodes/emoji.js +5 -0
- package/dist/cjs/next-schema/nodes/expand.js +5 -0
- package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
- package/dist/cjs/next-schema/nodes/list.js +20 -1
- package/dist/cjs/next-schema/nodes/media.js +10 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
- package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/cjs/next-schema/nodes/panel.js +5 -0
- package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
- package/dist/cjs/next-schema/nodes/rule.js +9 -1
- package/dist/cjs/next-schema/nodes/tableNodes.js +17 -0
- package/dist/cjs/schema/index.js +138 -0
- package/dist/cjs/schema/nodes/block-card.js +48 -1
- package/dist/cjs/schema/nodes/blockquote.js +20 -2
- package/dist/cjs/schema/nodes/bullet-list.js +20 -1
- package/dist/cjs/schema/nodes/caption.js +20 -1
- package/dist/cjs/schema/nodes/code-block.js +72 -2
- package/dist/cjs/schema/nodes/date.js +22 -1
- package/dist/cjs/schema/nodes/embed-card.js +36 -1
- package/dist/cjs/schema/nodes/emoji.js +73 -1
- package/dist/cjs/schema/nodes/expand.js +56 -1
- package/dist/cjs/schema/nodes/hard-break.js +18 -1
- package/dist/cjs/schema/nodes/index.js +138 -0
- package/dist/cjs/schema/nodes/inline-card.js +46 -1
- package/dist/cjs/schema/nodes/layout-column.js +37 -1
- package/dist/cjs/schema/nodes/layout-section.js +31 -1
- package/dist/cjs/schema/nodes/list-item.js +34 -1
- package/dist/cjs/schema/nodes/media-inline.js +12 -2
- package/dist/cjs/schema/nodes/media-single.js +22 -2
- package/dist/cjs/schema/nodes/media.js +21 -4
- package/dist/cjs/schema/nodes/nested-expand.js +34 -7
- package/dist/cjs/schema/nodes/ordered-list.js +54 -3
- package/dist/cjs/schema/nodes/panel.js +13 -5
- package/dist/cjs/schema/nodes/placeholder.js +24 -1
- package/dist/cjs/schema/nodes/rule.js +18 -1
- package/dist/cjs/schema/nodes/tableNodes.js +69 -6
- package/dist/cjs/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +140 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
- package/dist/es2019/next-schema/nodes/caption.js +7 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
- package/dist/es2019/next-schema/nodes/date.js +5 -0
- package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
- package/dist/es2019/next-schema/nodes/emoji.js +5 -0
- package/dist/es2019/next-schema/nodes/expand.js +5 -0
- package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
- package/dist/es2019/next-schema/nodes/list.js +20 -1
- package/dist/es2019/next-schema/nodes/media.js +10 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
- package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/es2019/next-schema/nodes/panel.js +5 -0
- package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
- package/dist/es2019/next-schema/nodes/rule.js +9 -1
- package/dist/es2019/next-schema/nodes/tableNodes.js +17 -0
- package/dist/es2019/schema/default-schema.js +1 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/block-card.js +50 -0
- package/dist/es2019/schema/nodes/blockquote.js +19 -1
- package/dist/es2019/schema/nodes/bullet-list.js +19 -0
- package/dist/es2019/schema/nodes/caption.js +19 -0
- package/dist/es2019/schema/nodes/code-block.js +68 -0
- package/dist/es2019/schema/nodes/date.js +19 -0
- package/dist/es2019/schema/nodes/embed-card.js +34 -0
- package/dist/es2019/schema/nodes/emoji.js +71 -0
- package/dist/es2019/schema/nodes/expand.js +59 -0
- package/dist/es2019/schema/nodes/hard-break.js +15 -0
- package/dist/es2019/schema/nodes/index.js +20 -20
- package/dist/es2019/schema/nodes/inline-card.js +45 -0
- package/dist/es2019/schema/nodes/layout-column.js +38 -0
- package/dist/es2019/schema/nodes/layout-section.js +32 -0
- package/dist/es2019/schema/nodes/list-item.js +29 -0
- package/dist/es2019/schema/nodes/media-inline.js +8 -1
- package/dist/es2019/schema/nodes/media-single.js +20 -1
- package/dist/es2019/schema/nodes/media.js +17 -4
- package/dist/es2019/schema/nodes/nested-expand.js +21 -6
- package/dist/es2019/schema/nodes/ordered-list.js +51 -2
- package/dist/es2019/schema/nodes/panel.js +11 -5
- package/dist/es2019/schema/nodes/placeholder.js +23 -0
- package/dist/es2019/schema/nodes/rule.js +15 -0
- package/dist/es2019/schema/nodes/tableNodes.js +59 -3
- package/dist/es2019/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +140 -1
- package/dist/esm/next-schema/nodes/blockCard.js +15 -0
- package/dist/esm/next-schema/nodes/blockquote.js +16 -2
- package/dist/esm/next-schema/nodes/caption.js +7 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
- package/dist/esm/next-schema/nodes/date.js +5 -0
- package/dist/esm/next-schema/nodes/embedCard.js +5 -0
- package/dist/esm/next-schema/nodes/emoji.js +5 -0
- package/dist/esm/next-schema/nodes/expand.js +5 -0
- package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
- package/dist/esm/next-schema/nodes/list.js +20 -1
- package/dist/esm/next-schema/nodes/media.js +10 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
- package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/esm/next-schema/nodes/panel.js +5 -0
- package/dist/esm/next-schema/nodes/placeholder.js +5 -0
- package/dist/esm/next-schema/nodes/rule.js +9 -1
- package/dist/esm/next-schema/nodes/tableNodes.js +17 -0
- package/dist/esm/schema/default-schema.js +1 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/block-card.js +47 -0
- package/dist/esm/schema/nodes/blockquote.js +19 -1
- package/dist/esm/schema/nodes/bullet-list.js +19 -0
- package/dist/esm/schema/nodes/caption.js +19 -0
- package/dist/esm/schema/nodes/code-block.js +71 -1
- package/dist/esm/schema/nodes/date.js +21 -0
- package/dist/esm/schema/nodes/embed-card.js +35 -0
- package/dist/esm/schema/nodes/emoji.js +71 -0
- package/dist/esm/schema/nodes/expand.js +55 -0
- package/dist/esm/schema/nodes/hard-break.js +17 -0
- package/dist/esm/schema/nodes/index.js +20 -20
- package/dist/esm/schema/nodes/inline-card.js +45 -0
- package/dist/esm/schema/nodes/layout-column.js +36 -0
- package/dist/esm/schema/nodes/layout-section.js +30 -0
- package/dist/esm/schema/nodes/list-item.js +33 -0
- package/dist/esm/schema/nodes/media-inline.js +10 -1
- package/dist/esm/schema/nodes/media-single.js +21 -1
- package/dist/esm/schema/nodes/media.js +19 -3
- package/dist/esm/schema/nodes/nested-expand.js +32 -6
- package/dist/esm/schema/nodes/ordered-list.js +53 -2
- package/dist/esm/schema/nodes/panel.js +12 -4
- package/dist/esm/schema/nodes/placeholder.js +23 -0
- package/dist/esm/schema/nodes/rule.js +17 -0
- package/dist/esm/schema/nodes/tableNodes.js +68 -5
- package/dist/esm/validator-schema/generated/validatorSpec.js +159 -0
- package/dist/json-schema/v1/full.json +140 -2
- package/dist/json-schema/v1/stage-0.json +152 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +72 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/block-card.d.ts +4 -0
- package/dist/types/schema/nodes/blockquote.d.ts +4 -0
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
- package/dist/types/schema/nodes/caption.d.ts +4 -0
- package/dist/types/schema/nodes/code-block.d.ts +2 -0
- package/dist/types/schema/nodes/date.d.ts +2 -0
- package/dist/types/schema/nodes/embed-card.d.ts +2 -0
- package/dist/types/schema/nodes/emoji.d.ts +2 -0
- package/dist/types/schema/nodes/expand.d.ts +2 -0
- package/dist/types/schema/nodes/hard-break.d.ts +2 -0
- package/dist/types/schema/nodes/index.d.ts +20 -20
- package/dist/types/schema/nodes/inline-card.d.ts +1 -0
- package/dist/types/schema/nodes/layout-column.d.ts +2 -0
- package/dist/types/schema/nodes/layout-section.d.ts +4 -0
- package/dist/types/schema/nodes/list-item.d.ts +2 -0
- package/dist/types/schema/nodes/media-inline.d.ts +1 -0
- package/dist/types/schema/nodes/media-single.d.ts +3 -1
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
- package/dist/types/schema/nodes/panel.d.ts +2 -0
- package/dist/types/schema/nodes/placeholder.d.ts +2 -0
- package/dist/types/schema/nodes/rule.d.ts +4 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +6 -0
- package/dist/types/schema/nodes/types/list.d.ts +7 -0
- package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +159 -0
- package/json-schema/v1/full.json +140 -2
- package/json-schema/v1/stage-0.json +152 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -7,6 +7,7 @@ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
7
|
import { InlineDefinition, BlockDefinition, BlockRootOnlyDefinition } from './nodeGroupTypes';
|
8
8
|
import { AlignmentMark, AnnotationMark, BackgroundColorMark, BorderMark, BreakoutMark, CodeMark, ConfluenceInlineCommentMark, DataConsumerMark, EmMark, FragmentMark, IndentationMark, LinkMark, StrikeMark, StrongMark, SubsupMark, TextColorMark, TypeAheadQueryMark, UnderlineMark, UnsupportedMarkMark, UnsupportedNodeAttributeMark } from './markTypes';
|
9
9
|
export interface BlockCardNodeAttributes0 {
|
10
|
+
localId?: string;
|
10
11
|
url?: string;
|
11
12
|
datasource: Record<string, unknown>;
|
12
13
|
width?: number;
|
@@ -14,9 +15,11 @@ export interface BlockCardNodeAttributes0 {
|
|
14
15
|
}
|
15
16
|
export interface BlockCardNodeAttributes1 {
|
16
17
|
url: string;
|
18
|
+
localId?: string;
|
17
19
|
}
|
18
20
|
export interface BlockCardNodeAttributes2 {
|
19
21
|
data: Record<string, unknown>;
|
22
|
+
localId?: string;
|
20
23
|
}
|
21
24
|
export interface BlockCardDefinition {
|
22
25
|
type: 'blockCard';
|
@@ -29,6 +32,9 @@ export interface BlockquoteDefinition {
|
|
29
32
|
type: 'blockquote';
|
30
33
|
content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
31
34
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
35
|
+
attrs: {
|
36
|
+
localId?: string;
|
37
|
+
};
|
32
38
|
}
|
33
39
|
export type BlockquoteNode = PMNode & BlockquoteDefinition;
|
34
40
|
export declare const blockquote: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteNode>) => import("prosemirror-model").NodeSpec;
|
@@ -36,6 +42,9 @@ export interface BlockquoteLegacyDefinition {
|
|
36
42
|
type: 'blockquote';
|
37
43
|
content: Array<ParagraphDefinition | UnsupportedBlockDefinition>;
|
38
44
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
45
|
+
attrs: {
|
46
|
+
localId?: string;
|
47
|
+
};
|
39
48
|
}
|
40
49
|
export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
|
41
50
|
export declare const blockquoteLegacy: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteLegacyNode>) => import("prosemirror-model").NodeSpec;
|
@@ -72,6 +81,9 @@ export interface BulletListDefinition {
|
|
72
81
|
type: 'bulletList';
|
73
82
|
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
|
74
83
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
84
|
+
attrs: {
|
85
|
+
localId?: string;
|
86
|
+
};
|
75
87
|
}
|
76
88
|
export type BulletListNode = PMNode & BulletListDefinition;
|
77
89
|
export declare const bulletList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BulletListNode>) => import("prosemirror-model").NodeSpec;
|
@@ -79,6 +91,9 @@ export interface CaptionDefinition {
|
|
79
91
|
type: 'caption';
|
80
92
|
content: Array<DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | TextCodeInlineDefinition | TextFormattedDefinition | UnsupportedInlineDefinition>;
|
81
93
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
94
|
+
attrs: {
|
95
|
+
localId?: string;
|
96
|
+
};
|
82
97
|
}
|
83
98
|
export type CaptionNode = PMNode & CaptionDefinition;
|
84
99
|
export declare const caption: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<CaptionNode>) => import("prosemirror-model").NodeSpec;
|
@@ -88,6 +103,7 @@ export interface CodeBlockDefinition {
|
|
88
103
|
attrs: {
|
89
104
|
language?: string;
|
90
105
|
uniqueId?: string;
|
106
|
+
localId?: string;
|
91
107
|
};
|
92
108
|
}
|
93
109
|
export type CodeBlockNode = PMNode & CodeBlockDefinition;
|
@@ -99,6 +115,7 @@ export interface CodeBlockRootOnlyDefinition {
|
|
99
115
|
attrs: {
|
100
116
|
language?: string;
|
101
117
|
uniqueId?: string;
|
118
|
+
localId?: string;
|
102
119
|
};
|
103
120
|
}
|
104
121
|
export type CodeBlockRootOnlyNode = PMNode & CodeBlockRootOnlyDefinition;
|
@@ -136,6 +153,7 @@ export interface DateDefinition {
|
|
136
153
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
137
154
|
attrs: {
|
138
155
|
timestamp: string;
|
156
|
+
localId?: string;
|
139
157
|
};
|
140
158
|
}
|
141
159
|
export type DateNode = PMNode & DateDefinition;
|
@@ -145,6 +163,7 @@ export interface DateStage0Definition {
|
|
145
163
|
marks: Array<AnnotationMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
146
164
|
attrs: {
|
147
165
|
timestamp: string;
|
166
|
+
localId?: string;
|
148
167
|
};
|
149
168
|
}
|
150
169
|
export type DateStage0Node = PMNode & DateStage0Definition;
|
@@ -185,6 +204,7 @@ export interface EmbedCardDefinition {
|
|
185
204
|
width?: number;
|
186
205
|
originalHeight?: number;
|
187
206
|
originalWidth?: number;
|
207
|
+
localId?: string;
|
188
208
|
};
|
189
209
|
}
|
190
210
|
export type EmbedCardNode = PMNode & EmbedCardDefinition;
|
@@ -196,6 +216,7 @@ export interface EmojiDefinition {
|
|
196
216
|
shortName: string;
|
197
217
|
id?: string;
|
198
218
|
text?: string;
|
219
|
+
localId?: string;
|
199
220
|
};
|
200
221
|
}
|
201
222
|
export type EmojiNode = PMNode & EmojiDefinition;
|
@@ -207,6 +228,7 @@ export interface EmojiStage0Definition {
|
|
207
228
|
shortName: string;
|
208
229
|
id?: string;
|
209
230
|
text?: string;
|
231
|
+
localId?: string;
|
210
232
|
};
|
211
233
|
}
|
212
234
|
export type EmojiStage0Node = PMNode & EmojiStage0Definition;
|
@@ -217,6 +239,7 @@ export interface ExpandDefinition {
|
|
217
239
|
attrs: {
|
218
240
|
title?: string;
|
219
241
|
__expanded?: boolean;
|
242
|
+
localId?: string;
|
220
243
|
};
|
221
244
|
}
|
222
245
|
export type ExpandNode = PMNode & ExpandDefinition;
|
@@ -228,6 +251,7 @@ export interface ExpandRootOnlyDefinition {
|
|
228
251
|
attrs: {
|
229
252
|
title?: string;
|
230
253
|
__expanded?: boolean;
|
254
|
+
localId?: string;
|
231
255
|
};
|
232
256
|
}
|
233
257
|
export type ExpandRootOnlyNode = PMNode & ExpandRootOnlyDefinition;
|
@@ -272,6 +296,7 @@ export interface HardBreakDefinition {
|
|
272
296
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
273
297
|
attrs: {
|
274
298
|
text?: '\n';
|
299
|
+
localId?: string;
|
275
300
|
};
|
276
301
|
}
|
277
302
|
export type HardBreakNode = PMNode & HardBreakDefinition;
|
@@ -328,9 +353,11 @@ export type ImageNode = PMNode & ImageDefinition;
|
|
328
353
|
export declare const image: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ImageNode>) => import("prosemirror-model").NodeSpec;
|
329
354
|
export interface InlineCardNodeAttributes0 {
|
330
355
|
url: string;
|
356
|
+
localId?: string;
|
331
357
|
}
|
332
358
|
export interface InlineCardNodeAttributes1 {
|
333
359
|
data: Record<string, unknown>;
|
360
|
+
localId?: string;
|
334
361
|
}
|
335
362
|
export interface InlineCardDefinition {
|
336
363
|
type: 'inlineCard';
|
@@ -341,9 +368,11 @@ export type InlineCardNode = PMNode & InlineCardDefinition;
|
|
341
368
|
export declare const inlineCard: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<InlineCardNode>) => import("prosemirror-model").NodeSpec;
|
342
369
|
export interface InlineCardStage0NodeAttributes0 {
|
343
370
|
url: string;
|
371
|
+
localId?: string;
|
344
372
|
}
|
345
373
|
export interface InlineCardStage0NodeAttributes1 {
|
346
374
|
data: Record<string, unknown>;
|
375
|
+
localId?: string;
|
347
376
|
}
|
348
377
|
export interface InlineCardStage0Definition {
|
349
378
|
type: 'inlineCard';
|
@@ -384,6 +413,7 @@ export interface LayoutColumnDefinition {
|
|
384
413
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
385
414
|
attrs: {
|
386
415
|
width: number;
|
416
|
+
localId?: string;
|
387
417
|
};
|
388
418
|
}
|
389
419
|
export type LayoutColumnNode = PMNode & LayoutColumnDefinition;
|
@@ -392,6 +422,9 @@ export interface LayoutSectionDefinition {
|
|
392
422
|
type: 'layoutSection';
|
393
423
|
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
394
424
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
425
|
+
attrs: {
|
426
|
+
localId?: string;
|
427
|
+
};
|
395
428
|
}
|
396
429
|
export type LayoutSectionNode = PMNode & LayoutSectionDefinition;
|
397
430
|
export declare const layoutSection: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<LayoutSectionNode>) => import("prosemirror-model").NodeSpec;
|
@@ -399,6 +432,9 @@ export interface LayoutSectionFullDefinition {
|
|
399
432
|
type: 'layoutSection';
|
400
433
|
content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
|
401
434
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
435
|
+
attrs: {
|
436
|
+
localId?: string;
|
437
|
+
};
|
402
438
|
}
|
403
439
|
export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
|
404
440
|
export declare const layoutSectionFull: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<LayoutSectionFullNode>) => import("prosemirror-model").NodeSpec;
|
@@ -408,6 +444,7 @@ export interface LayoutSectionWithSingleColumnStage0Definition {
|
|
408
444
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
409
445
|
attrs: {
|
410
446
|
columnRuleStyle?: 'solid';
|
447
|
+
localId?: string;
|
411
448
|
};
|
412
449
|
}
|
413
450
|
export type LayoutSectionWithSingleColumnStage0Node = PMNode & LayoutSectionWithSingleColumnStage0Definition;
|
@@ -416,6 +453,9 @@ export interface ListItemDefinition {
|
|
416
453
|
type: 'listItem';
|
417
454
|
content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
418
455
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
456
|
+
attrs: {
|
457
|
+
localId?: string;
|
458
|
+
};
|
419
459
|
}
|
420
460
|
export type ListItemNode = PMNode & ListItemDefinition;
|
421
461
|
export declare const listItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemNode>) => import("prosemirror-model").NodeSpec;
|
@@ -423,11 +463,15 @@ export interface ListItemWithNestedDecisionStage0Definition {
|
|
423
463
|
type: 'listItem';
|
424
464
|
content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | DecisionListDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
425
465
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
466
|
+
attrs: {
|
467
|
+
localId?: string;
|
468
|
+
};
|
426
469
|
}
|
427
470
|
export type ListItemWithNestedDecisionStage0Node = PMNode & ListItemWithNestedDecisionStage0Definition;
|
428
471
|
export declare const listItemWithNestedDecisionStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithNestedDecisionStage0Node>) => import("prosemirror-model").NodeSpec;
|
429
472
|
export interface MediaNodeAttributes0 {
|
430
473
|
type: 'link' | 'file';
|
474
|
+
localId?: string;
|
431
475
|
id: string;
|
432
476
|
alt?: string;
|
433
477
|
collection: string;
|
@@ -444,6 +488,7 @@ export interface MediaNodeAttributes0 {
|
|
444
488
|
}
|
445
489
|
export interface MediaNodeAttributes1 {
|
446
490
|
type: 'external';
|
491
|
+
localId?: string;
|
447
492
|
alt?: string;
|
448
493
|
height?: number;
|
449
494
|
width?: number;
|
@@ -469,6 +514,7 @@ export interface MediaInlineDefinition {
|
|
469
514
|
marks: Array<AnnotationMark | BorderMark | LinkMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
470
515
|
attrs: {
|
471
516
|
type?: 'link' | 'file' | 'image';
|
517
|
+
localId?: string;
|
472
518
|
url?: string;
|
473
519
|
id: string;
|
474
520
|
alt?: string;
|
@@ -489,11 +535,13 @@ export interface MediaInlineDefinition {
|
|
489
535
|
export type MediaInlineNode = PMNode & MediaInlineDefinition;
|
490
536
|
export declare const mediaInline: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaInlineNode>) => import("prosemirror-model").NodeSpec;
|
491
537
|
export interface MediaSingleNodeAttributes0 {
|
538
|
+
localId?: string;
|
492
539
|
width?: number;
|
493
540
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
494
541
|
widthType?: 'percentage';
|
495
542
|
}
|
496
543
|
export interface MediaSingleNodeAttributes1 {
|
544
|
+
localId?: string;
|
497
545
|
width: number;
|
498
546
|
widthType: 'pixel';
|
499
547
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
@@ -506,11 +554,13 @@ export interface MediaSingleDefinition {
|
|
506
554
|
export type MediaSingleNode = PMNode & MediaSingleDefinition;
|
507
555
|
export declare const mediaSingle: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaSingleNode>) => import("prosemirror-model").NodeSpec;
|
508
556
|
export interface MediaSingleCaptionNodeAttributes0 {
|
557
|
+
localId?: string;
|
509
558
|
width?: number;
|
510
559
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
511
560
|
widthType?: 'percentage';
|
512
561
|
}
|
513
562
|
export interface MediaSingleCaptionNodeAttributes1 {
|
563
|
+
localId?: string;
|
514
564
|
width: number;
|
515
565
|
widthType: 'pixel';
|
516
566
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
@@ -523,11 +573,13 @@ export interface MediaSingleCaptionDefinition {
|
|
523
573
|
export type MediaSingleCaptionNode = PMNode & MediaSingleCaptionDefinition;
|
524
574
|
export declare const mediaSingleCaption: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaSingleCaptionNode>) => import("prosemirror-model").NodeSpec;
|
525
575
|
export interface MediaSingleFullNodeAttributes0 {
|
576
|
+
localId?: string;
|
526
577
|
width?: number;
|
527
578
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
528
579
|
widthType?: 'percentage';
|
529
580
|
}
|
530
581
|
export interface MediaSingleFullNodeAttributes1 {
|
582
|
+
localId?: string;
|
531
583
|
width: number;
|
532
584
|
widthType: 'pixel';
|
533
585
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
@@ -540,11 +592,13 @@ export interface MediaSingleFullDefinition {
|
|
540
592
|
export type MediaSingleFullNode = PMNode & MediaSingleFullDefinition;
|
541
593
|
export declare const mediaSingleFull: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<MediaSingleFullNode>) => import("prosemirror-model").NodeSpec;
|
542
594
|
export interface MediaSingleWidthTypeNodeAttributes0 {
|
595
|
+
localId?: string;
|
543
596
|
width?: number;
|
544
597
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
545
598
|
widthType?: 'percentage';
|
546
599
|
}
|
547
600
|
export interface MediaSingleWidthTypeNodeAttributes1 {
|
601
|
+
localId?: string;
|
548
602
|
width: number;
|
549
603
|
widthType: 'pixel';
|
550
604
|
layout: 'wide' | 'full-width' | 'center' | 'wrap-right' | 'wrap-left' | 'align-end' | 'align-start';
|
@@ -604,6 +658,7 @@ export interface NestedExpandDefinition {
|
|
604
658
|
attrs: {
|
605
659
|
title?: string;
|
606
660
|
__expanded?: boolean;
|
661
|
+
localId?: string;
|
607
662
|
};
|
608
663
|
}
|
609
664
|
export type NestedExpandNode = PMNode & NestedExpandDefinition;
|
@@ -613,6 +668,7 @@ export interface NestedExpandWithNoMarksDefinition {
|
|
613
668
|
attrs: {
|
614
669
|
title?: string;
|
615
670
|
__expanded?: boolean;
|
671
|
+
localId?: string;
|
616
672
|
};
|
617
673
|
}
|
618
674
|
export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefinition;
|
@@ -623,6 +679,7 @@ export interface OrderedListDefinition {
|
|
623
679
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
624
680
|
attrs: {
|
625
681
|
order?: number;
|
682
|
+
localId?: string;
|
626
683
|
};
|
627
684
|
}
|
628
685
|
export type OrderedListNode = PMNode & OrderedListDefinition;
|
@@ -637,6 +694,7 @@ export interface PanelDefinition {
|
|
637
694
|
panelIconId?: string;
|
638
695
|
panelIconText?: string;
|
639
696
|
panelColor?: string;
|
697
|
+
localId?: string;
|
640
698
|
};
|
641
699
|
}
|
642
700
|
export type PanelNode = PMNode & PanelDefinition;
|
@@ -682,12 +740,16 @@ export interface PlaceholderDefinition {
|
|
682
740
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
683
741
|
attrs: {
|
684
742
|
text: string;
|
743
|
+
localId?: string;
|
685
744
|
};
|
686
745
|
}
|
687
746
|
export type PlaceholderNode = PMNode & PlaceholderDefinition;
|
688
747
|
export declare const placeholder: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<PlaceholderNode>) => import("prosemirror-model").NodeSpec;
|
689
748
|
export interface RuleDefinition {
|
690
749
|
type: 'rule';
|
750
|
+
attrs: {
|
751
|
+
localId?: string;
|
752
|
+
};
|
691
753
|
}
|
692
754
|
export type RuleNode = PMNode & RuleDefinition;
|
693
755
|
export declare const rule: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<RuleNode>) => import("prosemirror-model").NodeSpec;
|
@@ -754,6 +816,7 @@ export interface TableCellDefinition {
|
|
754
816
|
rowspan?: number;
|
755
817
|
colwidth?: Array<number>;
|
756
818
|
background?: string;
|
819
|
+
localId?: string;
|
757
820
|
};
|
758
821
|
}
|
759
822
|
export type TableCellNode = PMNode & TableCellDefinition;
|
@@ -767,6 +830,7 @@ export interface TableCellWithNestedTableDefinition {
|
|
767
830
|
rowspan?: number;
|
768
831
|
colwidth?: Array<number>;
|
769
832
|
background?: string;
|
833
|
+
localId?: string;
|
770
834
|
};
|
771
835
|
}
|
772
836
|
export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefinition;
|
@@ -780,6 +844,7 @@ export interface TableHeaderDefinition {
|
|
780
844
|
rowspan?: number;
|
781
845
|
colwidth?: Array<number>;
|
782
846
|
background?: string;
|
847
|
+
localId?: string;
|
783
848
|
};
|
784
849
|
}
|
785
850
|
export type TableHeaderNode = PMNode & TableHeaderDefinition;
|
@@ -793,6 +858,7 @@ export interface TableHeaderWithNestedTableDefinition {
|
|
793
858
|
rowspan?: number;
|
794
859
|
colwidth?: Array<number>;
|
795
860
|
background?: string;
|
861
|
+
localId?: string;
|
796
862
|
};
|
797
863
|
}
|
798
864
|
export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTableDefinition;
|
@@ -801,6 +867,9 @@ export interface TableRowDefinition {
|
|
801
867
|
type: 'tableRow';
|
802
868
|
content: Array<TableCellDefinition | TableHeaderDefinition>;
|
803
869
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
870
|
+
attrs: {
|
871
|
+
localId?: string;
|
872
|
+
};
|
804
873
|
}
|
805
874
|
export type TableRowNode = PMNode & TableRowDefinition;
|
806
875
|
export declare const tableRow: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableRowNode>) => import("prosemirror-model").NodeSpec;
|
@@ -808,6 +877,9 @@ export interface TableRowWithNestedTableDefinition {
|
|
808
877
|
type: 'tableRow';
|
809
878
|
content: Array<TableCellWithNestedTableDefinition | TableHeaderWithNestedTableDefinition>;
|
810
879
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
880
|
+
attrs: {
|
881
|
+
localId?: string;
|
882
|
+
};
|
811
883
|
}
|
812
884
|
export type TableRowWithNestedTableNode = PMNode & TableRowWithNestedTableDefinition;
|
813
885
|
export declare const tableRowWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableRowWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
|
@@ -5,6 +5,13 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
5
5
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
6
6
|
ignore: ("json-schema" | "validator-spec")[];
|
7
7
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
8
|
+
attrs: {
|
9
|
+
localId: {
|
10
|
+
type: "string";
|
11
|
+
default: any;
|
12
|
+
optional: true;
|
13
|
+
};
|
14
|
+
};
|
8
15
|
}>)[];
|
9
16
|
/**
|
10
17
|
* @DSLCompatibilityException
|
@@ -59,6 +59,13 @@ export declare const tableCellContentNodes: (import("@atlaskit/adf-schema-genera
|
|
59
59
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
60
60
|
ignore: ("json-schema" | "validator-spec")[];
|
61
61
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
62
|
+
attrs: {
|
63
|
+
localId: {
|
64
|
+
type: "string";
|
65
|
+
default: any;
|
66
|
+
optional: true;
|
67
|
+
};
|
68
|
+
};
|
62
69
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
63
70
|
ignore: "pm-spec"[];
|
64
71
|
} & {
|
@@ -1,4 +1,11 @@
|
|
1
1
|
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
ignore: ("json-schema" | "validator-spec")[];
|
3
3
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
4
|
+
attrs: {
|
5
|
+
localId: {
|
6
|
+
type: "string";
|
7
|
+
default: any;
|
8
|
+
optional: true;
|
9
|
+
};
|
10
|
+
};
|
4
11
|
}>;
|
@@ -9,6 +9,11 @@ export declare const layoutSection: import("@atlaskit/adf-schema-generator/dist/
|
|
9
9
|
default: any;
|
10
10
|
optional: true;
|
11
11
|
};
|
12
|
+
localId: {
|
13
|
+
type: "string";
|
14
|
+
default: any;
|
15
|
+
optional: true;
|
16
|
+
};
|
12
17
|
};
|
13
18
|
} & {
|
14
19
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, extendedBlockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './nodes';
|
1
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, hardBreakWithLocalId, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -4,12 +4,14 @@ export interface UrlType {
|
|
4
4
|
* @validatorFn safeUrl
|
5
5
|
*/
|
6
6
|
url: string;
|
7
|
+
localId?: string;
|
7
8
|
}
|
8
9
|
export interface DataType {
|
9
10
|
/**
|
10
11
|
* @additionalProperties true
|
11
12
|
*/
|
12
13
|
data: object;
|
14
|
+
localId?: string;
|
13
15
|
}
|
14
16
|
export interface DatasourceAttributeProperties {
|
15
17
|
id: string;
|
@@ -28,6 +30,7 @@ export interface DatasourceAttributes extends OptionalRichMediaAttributes {
|
|
28
30
|
*/
|
29
31
|
url?: string;
|
30
32
|
datasource: DatasourceAttributeProperties;
|
33
|
+
localId?: string;
|
31
34
|
}
|
32
35
|
export type CardAttributes = UrlType | DataType;
|
33
36
|
/**
|
@@ -38,3 +41,4 @@ export interface BlockCardDefinition {
|
|
38
41
|
attrs: DatasourceAttributes | CardAttributes;
|
39
42
|
}
|
40
43
|
export declare const blockCard: import("prosemirror-model").NodeSpec;
|
44
|
+
export declare const blockCardWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -15,6 +15,9 @@ export interface BlockQuoteDefinition {
|
|
15
15
|
* @allowUnsupportedBlock true
|
16
16
|
*/
|
17
17
|
content: Array<Paragraph | OrderedList | BulletList | CodeBlock | MediaGroup | MediaSingle | Extension>;
|
18
|
+
attrs?: {
|
19
|
+
localId?: string;
|
20
|
+
};
|
18
21
|
}
|
19
22
|
export declare const blockquote: import("prosemirror-model").NodeSpec;
|
20
23
|
/**
|
@@ -22,3 +25,4 @@ export declare const blockquote: import("prosemirror-model").NodeSpec;
|
|
22
25
|
* @description the block quote node with nested code block, media, and extension
|
23
26
|
*/
|
24
27
|
export declare const extendedBlockquote: import("prosemirror-model").NodeSpec;
|
28
|
+
export declare const extendedBlockquoteWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -16,5 +16,9 @@ export interface CaptionDefinition {
|
|
16
16
|
* @allowUnsupportedInline true
|
17
17
|
*/
|
18
18
|
content: Array<InlineFormattedText | InlineCode | HardBreak | Mention | Emoji | Date | Placeholder | InlineCard | Status>;
|
19
|
+
attrs?: {
|
20
|
+
localId?: string;
|
21
|
+
};
|
19
22
|
}
|
20
23
|
export declare const caption: import("prosemirror-model").NodeSpec;
|
24
|
+
export declare const captionWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -14,6 +14,7 @@ export type CodeBlockBaseDefinition = {
|
|
14
14
|
export type CodeBlockAttrs = {
|
15
15
|
language?: string;
|
16
16
|
uniqueId?: string;
|
17
|
+
localId?: string;
|
17
18
|
};
|
18
19
|
/**
|
19
20
|
* @name codeBlock_with_no_marks_node
|
@@ -27,3 +28,4 @@ export declare const codeBlock: import("prosemirror-model").NodeSpec;
|
|
27
28
|
export declare const toJSON: (node: PMNode) => {
|
28
29
|
attrs: Record<string, any>;
|
29
30
|
};
|
31
|
+
export declare const codeBlockWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -9,6 +9,7 @@ export interface DateDefinition {
|
|
9
9
|
* @minLength 1
|
10
10
|
*/
|
11
11
|
timestamp: string;
|
12
|
+
localId?: string;
|
12
13
|
};
|
13
14
|
/**
|
14
15
|
* @stage 0
|
@@ -16,3 +17,4 @@ export interface DateDefinition {
|
|
16
17
|
marks?: Array<AnnotationMarkDefinition>;
|
17
18
|
}
|
18
19
|
export declare const date: import("prosemirror-model").NodeSpec;
|
20
|
+
export declare const dateWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -6,6 +6,7 @@ export interface EmbedCardAttributes extends RichMediaAttributes {
|
|
6
6
|
* @validatorFn safeUrl
|
7
7
|
*/
|
8
8
|
url: string;
|
9
|
+
localId?: string;
|
9
10
|
}
|
10
11
|
/**
|
11
12
|
* @name embedCard_node
|
@@ -15,3 +16,4 @@ export interface EmbedCardDefinition {
|
|
15
16
|
attrs: EmbedCardAttributes;
|
16
17
|
}
|
17
18
|
export declare const embedCard: import("prosemirror-model").NodeSpec;
|
19
|
+
export declare const embedCardWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -14,5 +14,7 @@ export interface EmojiAttributes {
|
|
14
14
|
id?: string;
|
15
15
|
shortName: string;
|
16
16
|
text?: string;
|
17
|
+
localId?: string;
|
17
18
|
}
|
18
19
|
export declare const emoji: import("prosemirror-model").NodeSpec;
|
20
|
+
export declare const emojiWithLocalId: import("prosemirror-model").NodeSpec;
|
@@ -11,6 +11,7 @@ export interface ExpandBaseDefinition {
|
|
11
11
|
attrs: {
|
12
12
|
title?: string;
|
13
13
|
__expanded?: boolean;
|
14
|
+
localId?: string;
|
14
15
|
};
|
15
16
|
/**
|
16
17
|
* @minItems 1
|
@@ -27,6 +28,7 @@ export type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
|
27
28
|
*/
|
28
29
|
export type ExpandRootOnlyDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
|
29
30
|
export declare const expandWithNestedExpand: import("prosemirror-model").NodeSpec;
|
31
|
+
export declare const expandWithNestedExpandLocalId: import("prosemirror-model").NodeSpec;
|
30
32
|
export declare const toJSON: (node: PMNode) => {
|
31
33
|
attrs: import("prosemirror-model").Attrs;
|
32
34
|
};
|
@@ -5,6 +5,8 @@ export interface HardBreakDefinition {
|
|
5
5
|
type: 'hardBreak';
|
6
6
|
attrs?: {
|
7
7
|
text?: '\n';
|
8
|
+
localId?: string;
|
8
9
|
};
|
9
10
|
}
|
10
11
|
export declare const hardBreak: import("prosemirror-model").NodeSpec;
|
12
|
+
export declare const hardBreakWithLocalId: import("prosemirror-model").NodeSpec;
|