@atlaskit/adf-schema 23.1.0 → 23.3.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 +22 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/json-schema/v1/full.json +9 -0
- package/dist/json-schema/v1/stage-0.json +9 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/nodes/media-inline.d.ts +1 -0
- package/dist/types/schema/nodes/types/block-content.d.ts +1 -1
- package/json-schema/v1/full.json +9 -0
- package/json-schema/v1/stage-0.json +9 -0
- package/package.json +3 -3
- package/report.api.md +1823 -0
package/report.api.md
ADDED
@@ -0,0 +1,1823 @@
|
|
1
|
+
## API Report File for "@atlaskit/adf-schema"
|
2
|
+
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
4
|
+
|
5
|
+
```ts
|
6
|
+
import { CellAttributes } from '@atlaskit/editor-tables/types';
|
7
|
+
import LinkifyIt from 'linkify-it';
|
8
|
+
import { Mark } from 'prosemirror-model';
|
9
|
+
import { MarkSpec } from 'prosemirror-model';
|
10
|
+
import { Node as Node_2 } from 'prosemirror-model';
|
11
|
+
import { NodeSpec } from 'prosemirror-model';
|
12
|
+
import { Schema } from 'prosemirror-model';
|
13
|
+
|
14
|
+
export declare function acNameToEmoji(
|
15
|
+
acName: NameToEmoji,
|
16
|
+
): {
|
17
|
+
id: string;
|
18
|
+
shortName: string;
|
19
|
+
text: string;
|
20
|
+
};
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Confluence glyphs ac:name of <ac:emoticon /> map to new emojis
|
24
|
+
* {
|
25
|
+
* [ac:name] : ['emoji-id', 'emoji-shortName', 'emoji-fallback']
|
26
|
+
* ...
|
27
|
+
* }
|
28
|
+
* Glyphs that do not map to Fabric Emoji
|
29
|
+
* will be mapped to Emoji Id '2b50' (:star:) with preserving ac:name as shortName attribute;
|
30
|
+
*/
|
31
|
+
declare const acNameToEmojiMap: {
|
32
|
+
smile: string[];
|
33
|
+
sad: string[];
|
34
|
+
cheeky: string[];
|
35
|
+
laugh: string[];
|
36
|
+
wink: string[];
|
37
|
+
information: string[];
|
38
|
+
tick: string[];
|
39
|
+
cross: string[];
|
40
|
+
warning: string[];
|
41
|
+
plus: string[];
|
42
|
+
minus: string[];
|
43
|
+
question: string[];
|
44
|
+
'thumbs-up': string[];
|
45
|
+
'thumbs-down': string[];
|
46
|
+
'light-on': string[];
|
47
|
+
'yellow-star': string[];
|
48
|
+
'light-off': string[];
|
49
|
+
'red-star': string[];
|
50
|
+
'green-star': string[];
|
51
|
+
'blue-star': string[];
|
52
|
+
heart: string[];
|
53
|
+
'broken-heart': string[];
|
54
|
+
};
|
55
|
+
|
56
|
+
export declare function acShortcutToEmoji(
|
57
|
+
hipchatEmoticonShortName: string,
|
58
|
+
): {
|
59
|
+
id: string;
|
60
|
+
shortName: string;
|
61
|
+
text: string;
|
62
|
+
};
|
63
|
+
|
64
|
+
export declare const alignment: MarkSpec;
|
65
|
+
|
66
|
+
export declare interface AlignmentAttributes {
|
67
|
+
align: 'center' | 'end';
|
68
|
+
}
|
69
|
+
|
70
|
+
/**
|
71
|
+
* @name alignment_mark
|
72
|
+
*/
|
73
|
+
export declare interface AlignmentMarkDefinition {
|
74
|
+
type: 'alignment';
|
75
|
+
attrs: AlignmentAttributes;
|
76
|
+
}
|
77
|
+
|
78
|
+
/** TODO: Flip these positions for RTL */
|
79
|
+
export declare const alignmentPositionMap: {
|
80
|
+
[key: string]: string;
|
81
|
+
};
|
82
|
+
|
83
|
+
export declare const annotation: MarkSpec;
|
84
|
+
|
85
|
+
export declare type AnnotationDataAttributes = {
|
86
|
+
'data-mark-type': string;
|
87
|
+
'data-mark-annotation-type': AnnotationTypes;
|
88
|
+
'data-id': AnnotationId;
|
89
|
+
'data-mark-annotation-state'?: AnnotationMarkStates;
|
90
|
+
};
|
91
|
+
|
92
|
+
export declare type AnnotationId = string;
|
93
|
+
|
94
|
+
export declare interface AnnotationMarkAttributes {
|
95
|
+
id: AnnotationId;
|
96
|
+
annotationType: AnnotationTypes;
|
97
|
+
}
|
98
|
+
|
99
|
+
/**
|
100
|
+
* @name annotation_mark
|
101
|
+
*/
|
102
|
+
export declare interface AnnotationMarkDefinition {
|
103
|
+
type: 'annotation';
|
104
|
+
attrs: AnnotationMarkAttributes;
|
105
|
+
}
|
106
|
+
|
107
|
+
export declare enum AnnotationMarkStates {
|
108
|
+
RESOLVED = 'resolved',
|
109
|
+
ACTIVE = 'active',
|
110
|
+
}
|
111
|
+
|
112
|
+
export declare enum AnnotationTypes {
|
113
|
+
INLINE_COMMENT = 'inlineComment',
|
114
|
+
}
|
115
|
+
|
116
|
+
export declare const B100 = '#4C9AFF';
|
117
|
+
|
118
|
+
export declare const B400 = '#0052CC';
|
119
|
+
|
120
|
+
export declare const B50 = '#DEEBFF';
|
121
|
+
|
122
|
+
export declare const B500 = '#0747A6';
|
123
|
+
|
124
|
+
export declare const B75 = '#B3D4FF';
|
125
|
+
|
126
|
+
export declare const blockCard: NodeSpec;
|
127
|
+
|
128
|
+
/**
|
129
|
+
* @name blockCard_node
|
130
|
+
*/
|
131
|
+
export declare interface BlockCardDefinition {
|
132
|
+
type: 'blockCard';
|
133
|
+
attrs: CardAttributes;
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* @name block_content
|
138
|
+
*/
|
139
|
+
export declare type BlockContent =
|
140
|
+
| PanelDefinition
|
141
|
+
| ParagraphDefinition
|
142
|
+
| ParagraphWithAlignmentDefinition
|
143
|
+
| BlockQuoteDefinition
|
144
|
+
| OrderedListDefinition
|
145
|
+
| BulletListDefinition
|
146
|
+
| RuleDefinition
|
147
|
+
| HeadingDefinition
|
148
|
+
| HeadingWithMarksDefinition
|
149
|
+
| CodeBlockDefinition
|
150
|
+
| MediaGroupDefinition
|
151
|
+
| MediaSingleDefinition
|
152
|
+
| DecisionListDefinition
|
153
|
+
| TaskListDefinition
|
154
|
+
| TableDefinition
|
155
|
+
| ExpandDefinition
|
156
|
+
| ExtensionDefinition
|
157
|
+
| BodiedExtensionDefinition
|
158
|
+
| BlockCardDefinition
|
159
|
+
| EmbedCardDefinition;
|
160
|
+
|
161
|
+
export declare const blockquote: NodeSpec;
|
162
|
+
|
163
|
+
/**
|
164
|
+
* @name blockquote_node
|
165
|
+
*/
|
166
|
+
export declare interface BlockQuoteDefinition {
|
167
|
+
type: 'blockquote';
|
168
|
+
/**
|
169
|
+
* @minItems 1
|
170
|
+
* @allowUnsupportedBlock true
|
171
|
+
*/
|
172
|
+
content: Array<ParagraphDefinition>;
|
173
|
+
}
|
174
|
+
|
175
|
+
export declare const bodiedExtension: NodeSpec;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* @name bodiedExtension_node
|
179
|
+
*/
|
180
|
+
declare interface BodiedExtensionBaseDefinition {
|
181
|
+
type: 'bodiedExtension';
|
182
|
+
attrs: ExtensionAttributes;
|
183
|
+
marks?: Array<any>;
|
184
|
+
/**
|
185
|
+
* @minItems 1
|
186
|
+
* @allowUnsupportedBlock true
|
187
|
+
*/
|
188
|
+
content: Array<NonNestableBlockContent>;
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* @name bodiedExtension_with_marks_node
|
193
|
+
*/
|
194
|
+
export declare type BodiedExtensionDefinition = BodiedExtensionBaseDefinition &
|
195
|
+
MarksObject<DataConsumerDefinition | FragmentDefinition>;
|
196
|
+
|
197
|
+
export declare const breakout: MarkSpec;
|
198
|
+
|
199
|
+
export declare type BreakoutMarkAttrs = {
|
200
|
+
mode: 'wide' | 'full-width';
|
201
|
+
};
|
202
|
+
|
203
|
+
/**
|
204
|
+
* @name breakout_mark
|
205
|
+
*/
|
206
|
+
export declare interface BreakoutMarkDefinition {
|
207
|
+
type: 'breakout';
|
208
|
+
attrs: BreakoutMarkAttrs;
|
209
|
+
}
|
210
|
+
|
211
|
+
export declare function buildAnnotationMarkDataAttributes({
|
212
|
+
id,
|
213
|
+
annotationType,
|
214
|
+
state,
|
215
|
+
}: BuildDataAttributesProps): AnnotationDataAttributes;
|
216
|
+
|
217
|
+
declare type BuildDataAttributesProps = AnnotationMarkAttributes & {
|
218
|
+
state?: AnnotationMarkStates | undefined | null;
|
219
|
+
};
|
220
|
+
|
221
|
+
export declare const bulletList: NodeSpec;
|
222
|
+
|
223
|
+
/**
|
224
|
+
* @name bulletList_node
|
225
|
+
*/
|
226
|
+
export declare interface BulletListDefinition {
|
227
|
+
type: 'bulletList';
|
228
|
+
/**
|
229
|
+
* @minItems 1
|
230
|
+
*/
|
231
|
+
content: Array<ListItemDefinition>;
|
232
|
+
}
|
233
|
+
|
234
|
+
export declare const bulletListSelector = '.ak-ul';
|
235
|
+
|
236
|
+
export declare const caption: NodeSpec;
|
237
|
+
|
238
|
+
/**
|
239
|
+
* @name caption_node
|
240
|
+
*/
|
241
|
+
export declare interface CaptionDefinition {
|
242
|
+
type: 'caption';
|
243
|
+
/**
|
244
|
+
* @minItems 0
|
245
|
+
*/
|
246
|
+
content: Array<
|
247
|
+
| InlineFormattedText
|
248
|
+
| InlineCode
|
249
|
+
| HardBreakDefinition
|
250
|
+
| MentionDefinition
|
251
|
+
| EmojiDefinition
|
252
|
+
| DateDefinition
|
253
|
+
| PlaceholderDefinition
|
254
|
+
| InlineCardDefinition
|
255
|
+
| StatusDefinition
|
256
|
+
>;
|
257
|
+
}
|
258
|
+
|
259
|
+
export declare type CardAttributes = UrlType | DataType;
|
260
|
+
|
261
|
+
export { CellAttributes };
|
262
|
+
|
263
|
+
export declare type CellDomAttrs = {
|
264
|
+
colspan?: string;
|
265
|
+
rowspan?: string;
|
266
|
+
style?: string;
|
267
|
+
colorname?: string;
|
268
|
+
'data-colwidth'?: string;
|
269
|
+
class?: string;
|
270
|
+
};
|
271
|
+
|
272
|
+
export declare const code: MarkSpec;
|
273
|
+
|
274
|
+
export declare const codeBlock: NodeSpec;
|
275
|
+
|
276
|
+
export declare type CodeBlockAttrs = {
|
277
|
+
language?: string;
|
278
|
+
};
|
279
|
+
|
280
|
+
/**
|
281
|
+
* @name codeBlock_node
|
282
|
+
*/
|
283
|
+
export declare type CodeBlockBaseDefinition = {
|
284
|
+
type: 'codeBlock';
|
285
|
+
/**
|
286
|
+
* @allowUnsupportedInline true
|
287
|
+
*/
|
288
|
+
content?: Array<TextDefinition & NoMark>;
|
289
|
+
marks?: Array<any>;
|
290
|
+
attrs?: CodeBlockAttrs;
|
291
|
+
};
|
292
|
+
|
293
|
+
/**
|
294
|
+
* @name codeBlock_with_no_marks_node
|
295
|
+
*/
|
296
|
+
export declare type CodeBlockDefinition = CodeBlockBaseDefinition & NoMark;
|
297
|
+
|
298
|
+
export declare const codeBlockToJSON: (
|
299
|
+
node: Node_2,
|
300
|
+
) => {
|
301
|
+
attrs: Record<string, any>;
|
302
|
+
};
|
303
|
+
|
304
|
+
/**
|
305
|
+
* @name codeBlock_with_marks_node
|
306
|
+
*/
|
307
|
+
export declare type CodeBlockWithMarksDefinition = CodeBlockBaseDefinition &
|
308
|
+
MarksObject<BreakoutMarkDefinition>;
|
309
|
+
|
310
|
+
/**
|
311
|
+
* @name code_mark
|
312
|
+
*/
|
313
|
+
export declare interface CodeDefinition {
|
314
|
+
type: 'code';
|
315
|
+
}
|
316
|
+
|
317
|
+
export declare const colorPalette: Map<string, TextColorKey>;
|
318
|
+
|
319
|
+
export declare const colorPaletteExtended: Map<string, TextColorKey>;
|
320
|
+
|
321
|
+
export declare const confluenceInlineComment: MarkSpec;
|
322
|
+
|
323
|
+
export declare const confluenceJiraIssue: NodeSpec;
|
324
|
+
|
325
|
+
declare interface ConfluenceLinkMetadata {
|
326
|
+
linkType: string;
|
327
|
+
versionAtSave?: string | null;
|
328
|
+
fileName?: string | null;
|
329
|
+
spaceKey?: string | null;
|
330
|
+
contentTitle?: string | null;
|
331
|
+
isRenamedTitle?: boolean;
|
332
|
+
anchorName?: string | null;
|
333
|
+
contentId?: string | null;
|
334
|
+
container?: ConfluenceLinkMetadata;
|
335
|
+
}
|
336
|
+
|
337
|
+
export declare const confluenceUnsupportedBlock: NodeSpec;
|
338
|
+
|
339
|
+
export declare const confluenceUnsupportedInline: NodeSpec;
|
340
|
+
|
341
|
+
export declare const copyPrivateMediaAttributes: (
|
342
|
+
from: Record<string, any>,
|
343
|
+
to: Record<string, any>,
|
344
|
+
map?: ((str: string) => string) | undefined,
|
345
|
+
) => void;
|
346
|
+
|
347
|
+
/**
|
348
|
+
* Creates a schema preserving order of marks and nodes.
|
349
|
+
*/
|
350
|
+
export declare function createSchema<
|
351
|
+
N extends string = string,
|
352
|
+
M extends string = string
|
353
|
+
>(config: SchemaConfig<N, M>): Schema<N, M>;
|
354
|
+
|
355
|
+
export declare const dataConsumer: MarkSpec;
|
356
|
+
|
357
|
+
export declare interface DataConsumerAttributes {
|
358
|
+
/**
|
359
|
+
* @minItems 1
|
360
|
+
*/
|
361
|
+
sources: Array<DataConsumerSource>;
|
362
|
+
}
|
363
|
+
|
364
|
+
/**
|
365
|
+
* @name dataConsumer_mark
|
366
|
+
* @description This mark is used for metadata surrounding a node consuming data
|
367
|
+
* from a given source node
|
368
|
+
*/
|
369
|
+
export declare interface DataConsumerDefinition {
|
370
|
+
type: 'dataConsumer';
|
371
|
+
attrs: DataConsumerAttributes;
|
372
|
+
}
|
373
|
+
|
374
|
+
/**
|
375
|
+
* This annotation is purely for reference, & does _nothing_ given annotating
|
376
|
+
* `minLength` on an array of strings is not supported with our schema+spec
|
377
|
+
* generator.
|
378
|
+
*
|
379
|
+
* We're keeping it to signal that data consumer `sources` shouldn't be empty
|
380
|
+
* strings
|
381
|
+
*
|
382
|
+
* // @minLength 1
|
383
|
+
*/
|
384
|
+
declare type DataConsumerSource = string;
|
385
|
+
|
386
|
+
/**
|
387
|
+
* We want to ensure any "invalid ADF" doesn't get serialised, but the entire
|
388
|
+
* mark itself is not valid without a non-empty `sources`.
|
389
|
+
*
|
390
|
+
* We _almost could_ simply return `null` if sources length is < 0 & would fit
|
391
|
+
* the type signature of prosemirror-model's `fragment` but not `mark`'s toJSON.
|
392
|
+
*
|
393
|
+
* So we'll leave any extra transformation checks in
|
394
|
+
* `editor-json-transformer`(?)
|
395
|
+
*/
|
396
|
+
export declare const dataConsumerToJSON: (
|
397
|
+
mark: Mark,
|
398
|
+
) => {
|
399
|
+
type: string;
|
400
|
+
attrs: {
|
401
|
+
[key: string]: any;
|
402
|
+
};
|
403
|
+
};
|
404
|
+
|
405
|
+
export declare interface DataType {
|
406
|
+
/**
|
407
|
+
* @additionalProperties true
|
408
|
+
*/
|
409
|
+
data: object;
|
410
|
+
}
|
411
|
+
|
412
|
+
export declare const date: NodeSpec;
|
413
|
+
|
414
|
+
/**
|
415
|
+
* @name date_node
|
416
|
+
*/
|
417
|
+
export declare interface DateDefinition {
|
418
|
+
type: 'date';
|
419
|
+
attrs: {
|
420
|
+
/**
|
421
|
+
* @minLength 1
|
422
|
+
*/
|
423
|
+
timestamp: string;
|
424
|
+
};
|
425
|
+
}
|
426
|
+
|
427
|
+
export declare const decisionItem: NodeSpec;
|
428
|
+
|
429
|
+
/**
|
430
|
+
* @name decisionItem_node
|
431
|
+
*/
|
432
|
+
export declare interface DecisionItemDefinition {
|
433
|
+
type: 'decisionItem';
|
434
|
+
/**
|
435
|
+
* @allowUnsupportedInline true
|
436
|
+
*/
|
437
|
+
content?: Array<Inline>;
|
438
|
+
attrs: {
|
439
|
+
localId: string;
|
440
|
+
state: string;
|
441
|
+
};
|
442
|
+
}
|
443
|
+
|
444
|
+
export declare const decisionList: NodeSpec;
|
445
|
+
|
446
|
+
/**
|
447
|
+
* @name decisionList_node
|
448
|
+
*/
|
449
|
+
export declare interface DecisionListDefinition {
|
450
|
+
type: 'decisionList';
|
451
|
+
/**
|
452
|
+
* @minItems 1
|
453
|
+
* @allowUnsupportedBlock true
|
454
|
+
*/
|
455
|
+
content: Array<DecisionItemDefinition>;
|
456
|
+
attrs: {
|
457
|
+
localId: string;
|
458
|
+
};
|
459
|
+
}
|
460
|
+
|
461
|
+
export declare const decisionListSelector: string;
|
462
|
+
|
463
|
+
export declare const doc: NodeSpec;
|
464
|
+
|
465
|
+
/**
|
466
|
+
* @name doc_node
|
467
|
+
*/
|
468
|
+
export declare interface DocNode {
|
469
|
+
version: 1;
|
470
|
+
type: 'doc';
|
471
|
+
/**
|
472
|
+
* @allowUnsupportedBlock true
|
473
|
+
*/
|
474
|
+
content: Array<
|
475
|
+
| BlockContent
|
476
|
+
| LayoutSectionDefinition
|
477
|
+
| CodeBlockWithMarksDefinition
|
478
|
+
| ExpandWithBreakoutDefinition
|
479
|
+
| ParagraphWithIndentationDefinition
|
480
|
+
>;
|
481
|
+
}
|
482
|
+
|
483
|
+
export declare const em: MarkSpec;
|
484
|
+
|
485
|
+
export declare const embedCard: NodeSpec;
|
486
|
+
|
487
|
+
export declare interface EmbedCardAttributes extends RichMediaAttributes {
|
488
|
+
originalWidth?: number;
|
489
|
+
originalHeight?: number;
|
490
|
+
/**
|
491
|
+
* @validatorFn safeUrl
|
492
|
+
*/
|
493
|
+
url: string;
|
494
|
+
}
|
495
|
+
|
496
|
+
/**
|
497
|
+
* @name embedCard_node
|
498
|
+
*/
|
499
|
+
export declare interface EmbedCardDefinition {
|
500
|
+
type: 'embedCard';
|
501
|
+
attrs: EmbedCardAttributes;
|
502
|
+
}
|
503
|
+
|
504
|
+
/**
|
505
|
+
* @name em_mark
|
506
|
+
*/
|
507
|
+
export declare interface EmDefinition {
|
508
|
+
type: 'em';
|
509
|
+
}
|
510
|
+
|
511
|
+
export declare const emoji: NodeSpec;
|
512
|
+
|
513
|
+
export declare interface EmojiAttributes {
|
514
|
+
id?: string;
|
515
|
+
shortName: string;
|
516
|
+
text?: string;
|
517
|
+
}
|
518
|
+
|
519
|
+
/**
|
520
|
+
* @name emoji_node
|
521
|
+
*/
|
522
|
+
export declare interface EmojiDefinition {
|
523
|
+
type: 'emoji';
|
524
|
+
attrs: EmojiAttributes;
|
525
|
+
}
|
526
|
+
|
527
|
+
export declare function emojiIdToAcName(emojiId: string): never;
|
528
|
+
|
529
|
+
export declare const expand: NodeSpec;
|
530
|
+
|
531
|
+
/**
|
532
|
+
* @name expand_node
|
533
|
+
*/
|
534
|
+
declare interface ExpandBaseDefinition {
|
535
|
+
type: 'expand';
|
536
|
+
attrs: {
|
537
|
+
title?: string;
|
538
|
+
};
|
539
|
+
/**
|
540
|
+
* @minItems 1
|
541
|
+
* @allowUnsupportedBlock true
|
542
|
+
*/
|
543
|
+
content: Array<NonNestableBlockContent>;
|
544
|
+
marks?: Array<any>;
|
545
|
+
}
|
546
|
+
|
547
|
+
/**
|
548
|
+
* @name expand_with_no_mark_node
|
549
|
+
*/
|
550
|
+
export declare type ExpandDefinition = ExpandBaseDefinition & NoMark;
|
551
|
+
|
552
|
+
export declare const expandToJSON: (
|
553
|
+
node: Node_2,
|
554
|
+
) => {
|
555
|
+
attrs: {
|
556
|
+
[key: string]: any;
|
557
|
+
};
|
558
|
+
};
|
559
|
+
|
560
|
+
/**
|
561
|
+
* @name expand_with_breakout_mark_node
|
562
|
+
*/
|
563
|
+
declare type ExpandWithBreakoutDefinition = ExpandBaseDefinition &
|
564
|
+
MarksObject<BreakoutMarkDefinition>;
|
565
|
+
|
566
|
+
export declare const extension: NodeSpec;
|
567
|
+
|
568
|
+
declare interface ExtensionAttributes {
|
569
|
+
/**
|
570
|
+
* @minLength 1
|
571
|
+
*/
|
572
|
+
extensionKey: string;
|
573
|
+
/**
|
574
|
+
* @minLength 1
|
575
|
+
*/
|
576
|
+
extensionType: string;
|
577
|
+
parameters?: object;
|
578
|
+
text?: string;
|
579
|
+
layout?: ExtensionLayout;
|
580
|
+
/**
|
581
|
+
* @minLength 1
|
582
|
+
*/
|
583
|
+
localId?: string;
|
584
|
+
}
|
585
|
+
|
586
|
+
/**
|
587
|
+
* @name extension_node
|
588
|
+
*/
|
589
|
+
declare interface ExtensionBaseDefinition {
|
590
|
+
type: 'extension';
|
591
|
+
attrs: ExtensionAttributes;
|
592
|
+
marks?: Array<any>;
|
593
|
+
}
|
594
|
+
|
595
|
+
/**
|
596
|
+
* @name extension_with_marks_node
|
597
|
+
*/
|
598
|
+
export declare type ExtensionDefinition = ExtensionBaseDefinition &
|
599
|
+
MarksObject<DataConsumerDefinition | FragmentDefinition>;
|
600
|
+
|
601
|
+
export declare type ExtensionLayout = 'default' | 'wide' | 'full-width';
|
602
|
+
|
603
|
+
export declare interface ExternalMediaAttributes {
|
604
|
+
type: 'external';
|
605
|
+
url: string;
|
606
|
+
alt?: string;
|
607
|
+
width?: number;
|
608
|
+
height?: number;
|
609
|
+
__external?: boolean;
|
610
|
+
}
|
611
|
+
|
612
|
+
export declare const fragment: MarkSpec;
|
613
|
+
|
614
|
+
export declare interface FragmentAttributes {
|
615
|
+
/**
|
616
|
+
* @minLength 1
|
617
|
+
*/
|
618
|
+
localId: LocalId;
|
619
|
+
name?: string;
|
620
|
+
}
|
621
|
+
|
622
|
+
/**
|
623
|
+
* @name fragment_mark
|
624
|
+
* @description Indicates that the elements decorated with this mark belong to a "fragment" entity, which represents a collection of ADF nodes.
|
625
|
+
* This entity can be referred to later by its `localId` attribute.
|
626
|
+
*/
|
627
|
+
export declare interface FragmentDefinition {
|
628
|
+
type: 'fragment';
|
629
|
+
attrs: FragmentAttributes;
|
630
|
+
}
|
631
|
+
|
632
|
+
export declare const fragmentToJSON: (
|
633
|
+
mark: Mark,
|
634
|
+
) => {
|
635
|
+
type: string;
|
636
|
+
attrs: {
|
637
|
+
name?: any;
|
638
|
+
localId: any;
|
639
|
+
};
|
640
|
+
};
|
641
|
+
|
642
|
+
export declare const G200 = '#57D9A3';
|
643
|
+
|
644
|
+
export declare const G300 = '#36B37E';
|
645
|
+
|
646
|
+
export declare const G400 = '#00875A';
|
647
|
+
|
648
|
+
export declare const G50 = '#E3FCEF';
|
649
|
+
|
650
|
+
export declare const G500 = '#006644';
|
651
|
+
|
652
|
+
export declare const G75 = '#ABF5D1';
|
653
|
+
|
654
|
+
export declare const generateUuid: () => string;
|
655
|
+
|
656
|
+
export declare const getCellAttrs: (
|
657
|
+
dom: HTMLElement,
|
658
|
+
defaultValues?: CellAttributes,
|
659
|
+
) => {
|
660
|
+
colspan: number;
|
661
|
+
rowspan: number;
|
662
|
+
colwidth: number[] | null;
|
663
|
+
background: string | null;
|
664
|
+
};
|
665
|
+
|
666
|
+
/**
|
667
|
+
* gets cell dom attributes based on node attributes
|
668
|
+
* @returns CellDomAttrs
|
669
|
+
*/
|
670
|
+
export declare const getCellDomAttrs: (node: Node_2) => CellDomAttrs;
|
671
|
+
|
672
|
+
export declare function getEmojiAcName({
|
673
|
+
id,
|
674
|
+
shortName,
|
675
|
+
}: {
|
676
|
+
id: string;
|
677
|
+
shortName: string;
|
678
|
+
}): string;
|
679
|
+
|
680
|
+
export declare function getLinkMatch(str?: string): Match | null;
|
681
|
+
|
682
|
+
export declare const hardBreak: NodeSpec;
|
683
|
+
|
684
|
+
/**
|
685
|
+
* @name hardBreak_node
|
686
|
+
*/
|
687
|
+
export declare interface HardBreakDefinition {
|
688
|
+
type: 'hardBreak';
|
689
|
+
attrs?: {
|
690
|
+
text?: '\n';
|
691
|
+
};
|
692
|
+
}
|
693
|
+
|
694
|
+
export declare const heading: NodeSpec;
|
695
|
+
|
696
|
+
/**
|
697
|
+
* @name heading_node
|
698
|
+
*/
|
699
|
+
export declare interface HeadingBaseDefinition {
|
700
|
+
type: 'heading';
|
701
|
+
/**
|
702
|
+
* @allowUnsupportedInline true
|
703
|
+
*/
|
704
|
+
content?: Array<Inline>;
|
705
|
+
marks?: Array<any>;
|
706
|
+
attrs: {
|
707
|
+
/**
|
708
|
+
* @minimum 1
|
709
|
+
* @maximum 6
|
710
|
+
*/
|
711
|
+
level: number;
|
712
|
+
};
|
713
|
+
}
|
714
|
+
|
715
|
+
/**
|
716
|
+
* @name heading_with_no_marks_node
|
717
|
+
*/
|
718
|
+
export declare type HeadingDefinition = HeadingBaseDefinition & NoMark;
|
719
|
+
|
720
|
+
/**
|
721
|
+
* @name heading_with_alignment_node
|
722
|
+
*/
|
723
|
+
export declare type HeadingWithAlignmentDefinition = HeadingBaseDefinition &
|
724
|
+
MarksObject<AlignmentMarkDefinition>;
|
725
|
+
|
726
|
+
/**
|
727
|
+
* @name heading_with_indentation_node
|
728
|
+
*/
|
729
|
+
export declare type HeadingWithIndentationDefinition = HeadingBaseDefinition &
|
730
|
+
MarksObject<IndentationMarkDefinition>;
|
731
|
+
|
732
|
+
export declare type HeadingWithMarksDefinition =
|
733
|
+
| HeadingWithAlignmentDefinition
|
734
|
+
| HeadingWithIndentationDefinition;
|
735
|
+
|
736
|
+
/**
|
737
|
+
* Converts hex color format to rgb.
|
738
|
+
* Works well with full hex color format and shortcut as well.
|
739
|
+
*
|
740
|
+
* @param hex - hex color string (#xxx, or #xxxxxx)
|
741
|
+
*/
|
742
|
+
export declare function hexToRgb(color: string): string | null;
|
743
|
+
|
744
|
+
/**
|
745
|
+
* Converts hex color format to rgba.
|
746
|
+
*
|
747
|
+
* @param hex - hex color string (#xxx, or #xxxxxx)
|
748
|
+
*/
|
749
|
+
export declare function hexToRgba(
|
750
|
+
rawColor: string,
|
751
|
+
alpha: number,
|
752
|
+
): string | null;
|
753
|
+
|
754
|
+
export declare const image: NodeSpec;
|
755
|
+
|
756
|
+
export declare const indentation: MarkSpec;
|
757
|
+
|
758
|
+
export declare interface IndentationMarkAttributes {
|
759
|
+
/**
|
760
|
+
* @minimum 1
|
761
|
+
* @maximum 6
|
762
|
+
*/
|
763
|
+
level: number;
|
764
|
+
}
|
765
|
+
|
766
|
+
/**
|
767
|
+
* @name indentation_mark
|
768
|
+
*/
|
769
|
+
export declare interface IndentationMarkDefinition {
|
770
|
+
type: 'indentation';
|
771
|
+
attrs: IndentationMarkAttributes;
|
772
|
+
}
|
773
|
+
|
774
|
+
/**
|
775
|
+
* @name inline_node
|
776
|
+
*/
|
777
|
+
export declare type Inline = InlineFormattedText | InlineCode | InlineAtomic;
|
778
|
+
|
779
|
+
/**
|
780
|
+
* @name atomic_inline_node
|
781
|
+
*/
|
782
|
+
export declare type InlineAtomic =
|
783
|
+
| HardBreakDefinition
|
784
|
+
| MentionDefinition
|
785
|
+
| EmojiDefinition
|
786
|
+
| InlineExtensionDefinition
|
787
|
+
| DateDefinition
|
788
|
+
| PlaceholderDefinition
|
789
|
+
| InlineCardDefinition
|
790
|
+
| StatusDefinition
|
791
|
+
| MediaInlineDefinition;
|
792
|
+
|
793
|
+
export declare const inlineCard: NodeSpec;
|
794
|
+
|
795
|
+
/**
|
796
|
+
* @name inlineCard_node
|
797
|
+
*/
|
798
|
+
export declare interface InlineCardDefinition {
|
799
|
+
type: 'inlineCard';
|
800
|
+
attrs: CardAttributes;
|
801
|
+
}
|
802
|
+
|
803
|
+
/**
|
804
|
+
* @name code_inline_node
|
805
|
+
*/
|
806
|
+
export declare type InlineCode = TextDefinition &
|
807
|
+
MarksObject<CodeDefinition | LinkDefinition | AnnotationMarkDefinition>;
|
808
|
+
|
809
|
+
export declare const inlineExtension: NodeSpec;
|
810
|
+
|
811
|
+
declare interface InlineExtensionAttributes {
|
812
|
+
/**
|
813
|
+
* @minLength 1
|
814
|
+
*/
|
815
|
+
extensionKey: string;
|
816
|
+
/**
|
817
|
+
* @minLength 1
|
818
|
+
*/
|
819
|
+
extensionType: string;
|
820
|
+
parameters?: object;
|
821
|
+
text?: string;
|
822
|
+
/**
|
823
|
+
* @minLength 1
|
824
|
+
*/
|
825
|
+
localId?: string;
|
826
|
+
}
|
827
|
+
|
828
|
+
/**
|
829
|
+
* @name inlineExtension_node
|
830
|
+
*/
|
831
|
+
declare interface InlineExtensionBaseDefinition {
|
832
|
+
type: 'inlineExtension';
|
833
|
+
attrs: InlineExtensionAttributes;
|
834
|
+
marks?: Array<any>;
|
835
|
+
}
|
836
|
+
|
837
|
+
/**
|
838
|
+
* @name inlineExtension_with_marks_node
|
839
|
+
*/
|
840
|
+
export declare type InlineExtensionDefinition = InlineExtensionBaseDefinition &
|
841
|
+
MarksObject<DataConsumerDefinition | FragmentDefinition>;
|
842
|
+
|
843
|
+
/**
|
844
|
+
* @name formatted_text_inline_node
|
845
|
+
*/
|
846
|
+
export declare type InlineFormattedText = TextDefinition &
|
847
|
+
MarksObject<
|
848
|
+
| LinkDefinition
|
849
|
+
| EmDefinition
|
850
|
+
| StrongDefinition
|
851
|
+
| StrikeDefinition
|
852
|
+
| SubSupDefinition
|
853
|
+
| UnderlineDefinition
|
854
|
+
| TextColorDefinition
|
855
|
+
| AnnotationMarkDefinition
|
856
|
+
>;
|
857
|
+
|
858
|
+
/**
|
859
|
+
* @name link_text_inline_node
|
860
|
+
*/
|
861
|
+
export declare type InlineLinkText = TextDefinition &
|
862
|
+
MarksObject<LinkDefinition>;
|
863
|
+
|
864
|
+
export declare const inlineNodes: Set<string>;
|
865
|
+
|
866
|
+
export declare function isHex(color: string): boolean;
|
867
|
+
|
868
|
+
export declare function isRgb(color: string): boolean;
|
869
|
+
|
870
|
+
/**
|
871
|
+
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
872
|
+
*/
|
873
|
+
export declare const isSafeUrl: (url: string) => boolean;
|
874
|
+
|
875
|
+
export declare const layoutColumn: NodeSpec;
|
876
|
+
|
877
|
+
/**
|
878
|
+
* @name layoutColumn_node
|
879
|
+
*/
|
880
|
+
export declare interface LayoutColumnDefinition {
|
881
|
+
type: 'layoutColumn';
|
882
|
+
attrs: {
|
883
|
+
/**
|
884
|
+
* @minimum 0
|
885
|
+
* @maximum 100
|
886
|
+
*/
|
887
|
+
width: number;
|
888
|
+
};
|
889
|
+
/**
|
890
|
+
* @minItems 1
|
891
|
+
* @allowUnsupportedBlock true
|
892
|
+
*/
|
893
|
+
content: Array<BlockContent>;
|
894
|
+
}
|
895
|
+
|
896
|
+
export declare const layoutSection: NodeSpec;
|
897
|
+
|
898
|
+
/**
|
899
|
+
* @name layoutSection_node
|
900
|
+
*/
|
901
|
+
declare type LayoutSectionBaseDefinition = {
|
902
|
+
type: 'layoutSection';
|
903
|
+
marks?: Array<BreakoutMarkDefinition>;
|
904
|
+
content: Array<LayoutColumnDefinition>;
|
905
|
+
};
|
906
|
+
|
907
|
+
export declare type LayoutSectionDefinition =
|
908
|
+
| LayoutSectionFullDefinition
|
909
|
+
| LayoutSectionWithSingleColumnDefinition;
|
910
|
+
|
911
|
+
/**
|
912
|
+
* Need duplicate `type` and `marks` to make both validator and json-schema satisfied
|
913
|
+
*/
|
914
|
+
/**
|
915
|
+
* @name layoutSection_full_node
|
916
|
+
*/
|
917
|
+
export declare type LayoutSectionFullDefinition = LayoutSectionBaseDefinition & {
|
918
|
+
type: 'layoutSection';
|
919
|
+
marks?: Array<BreakoutMarkDefinition>;
|
920
|
+
/**
|
921
|
+
* @minItems 2
|
922
|
+
* @maxItems 3
|
923
|
+
* @allowUnsupportedBlock true
|
924
|
+
*/
|
925
|
+
content: Array<LayoutColumnDefinition>;
|
926
|
+
};
|
927
|
+
|
928
|
+
/**
|
929
|
+
* @stage 0
|
930
|
+
* @name layoutSection_with_single_column_node
|
931
|
+
*/
|
932
|
+
export declare type LayoutSectionWithSingleColumnDefinition = LayoutSectionBaseDefinition & {
|
933
|
+
type: 'layoutSection';
|
934
|
+
marks?: Array<BreakoutMarkDefinition>;
|
935
|
+
/**
|
936
|
+
* @minItems 1
|
937
|
+
* @maxItems 3
|
938
|
+
* @allowUnsupportedBlock true
|
939
|
+
*/
|
940
|
+
content: Array<LayoutColumnDefinition>;
|
941
|
+
};
|
942
|
+
|
943
|
+
export declare const link: MarkSpec;
|
944
|
+
|
945
|
+
export declare interface LinkAttributes {
|
946
|
+
/**
|
947
|
+
* @validatorFn safeUrl
|
948
|
+
*/
|
949
|
+
href: string;
|
950
|
+
title?: string;
|
951
|
+
id?: string;
|
952
|
+
collection?: string;
|
953
|
+
occurrenceKey?: string;
|
954
|
+
__confluenceMetadata?: ConfluenceLinkMetadata;
|
955
|
+
}
|
956
|
+
|
957
|
+
/**
|
958
|
+
* @name link_mark
|
959
|
+
*/
|
960
|
+
export declare interface LinkDefinition {
|
961
|
+
type: 'link';
|
962
|
+
attrs: LinkAttributes;
|
963
|
+
}
|
964
|
+
|
965
|
+
export declare const linkify: LinkifyIt.LinkifyIt;
|
966
|
+
|
967
|
+
export declare const linkifyMatch: (text: string) => Match[];
|
968
|
+
|
969
|
+
export declare const linkToJSON: (
|
970
|
+
mark: Mark,
|
971
|
+
) => {
|
972
|
+
type: string;
|
973
|
+
attrs: Record<string, string>;
|
974
|
+
};
|
975
|
+
|
976
|
+
export declare const listItem: NodeSpec;
|
977
|
+
|
978
|
+
export declare interface ListItemArray
|
979
|
+
extends Array<
|
980
|
+
| ParagraphDefinition
|
981
|
+
| OrderedListDefinition
|
982
|
+
| BulletListDefinition
|
983
|
+
| MediaSingleDefinition
|
984
|
+
| CodeBlockDefinition
|
985
|
+
> {
|
986
|
+
0: ParagraphDefinition | MediaSingleDefinition | CodeBlockDefinition;
|
987
|
+
}
|
988
|
+
|
989
|
+
/**
|
990
|
+
* @name listItem_node
|
991
|
+
*/
|
992
|
+
export declare interface ListItemDefinition {
|
993
|
+
type: 'listItem';
|
994
|
+
/**
|
995
|
+
* @minItems 1
|
996
|
+
*/
|
997
|
+
content: ListItemArray;
|
998
|
+
}
|
999
|
+
|
1000
|
+
declare type LocalId = string;
|
1001
|
+
|
1002
|
+
/**
|
1003
|
+
* @additionalProperties true
|
1004
|
+
*/
|
1005
|
+
export declare interface MarksObject<T> {
|
1006
|
+
marks?: Array<T>;
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
export declare interface Match {
|
1010
|
+
schema: any;
|
1011
|
+
index: number;
|
1012
|
+
lastIndex: number;
|
1013
|
+
raw: string;
|
1014
|
+
text: string;
|
1015
|
+
url: string;
|
1016
|
+
length?: number;
|
1017
|
+
input?: string;
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
export declare const media: NodeSpec;
|
1021
|
+
|
1022
|
+
export declare type MediaADFAttrs = MediaAttributes | ExternalMediaAttributes;
|
1023
|
+
|
1024
|
+
export declare interface MediaAttributes extends MediaBaseAttributes {
|
1025
|
+
type: 'file' | 'link';
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
export declare interface MediaBaseAttributes {
|
1029
|
+
/**
|
1030
|
+
* @minLength 1
|
1031
|
+
*/
|
1032
|
+
id: string;
|
1033
|
+
collection: string;
|
1034
|
+
height?: number;
|
1035
|
+
width?: number;
|
1036
|
+
/**
|
1037
|
+
* @minLength 1
|
1038
|
+
*/
|
1039
|
+
occurrenceKey?: string;
|
1040
|
+
alt?: string;
|
1041
|
+
__fileName?: string | null;
|
1042
|
+
__fileSize?: number | null;
|
1043
|
+
__fileMimeType?: string | null;
|
1044
|
+
__displayType?: MediaDisplayType | null;
|
1045
|
+
__contextId?: string | null;
|
1046
|
+
__external?: boolean;
|
1047
|
+
}
|
1048
|
+
|
1049
|
+
/**
|
1050
|
+
* @additionalProperties true
|
1051
|
+
*/
|
1052
|
+
declare interface MediaCaptionContent {
|
1053
|
+
/**
|
1054
|
+
* @minItems 1
|
1055
|
+
* @maxItems 2
|
1056
|
+
* @allowUnsupportedBlock true
|
1057
|
+
*/
|
1058
|
+
content: [MediaDefinition, CaptionDefinition?];
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
/**
|
1062
|
+
* @name media_node
|
1063
|
+
*/
|
1064
|
+
export declare interface MediaDefinition {
|
1065
|
+
type: 'media';
|
1066
|
+
/**
|
1067
|
+
* @minItems 1
|
1068
|
+
*/
|
1069
|
+
attrs: MediaADFAttrs;
|
1070
|
+
marks?: Array<LinkDefinition>;
|
1071
|
+
}
|
1072
|
+
|
1073
|
+
export declare type MediaDisplayType = 'file' | 'thumbnail';
|
1074
|
+
|
1075
|
+
export declare const mediaGroup: NodeSpec;
|
1076
|
+
|
1077
|
+
/**
|
1078
|
+
* @name mediaGroup_node
|
1079
|
+
*/
|
1080
|
+
export declare interface MediaGroupDefinition {
|
1081
|
+
type: 'mediaGroup';
|
1082
|
+
/**
|
1083
|
+
* @minItems 1
|
1084
|
+
* @allowUnsupportedBlock true
|
1085
|
+
*/
|
1086
|
+
content: Array<MediaDefinition>;
|
1087
|
+
}
|
1088
|
+
|
1089
|
+
export declare const mediaInline: NodeSpec;
|
1090
|
+
|
1091
|
+
export declare interface MediaInlineAttributes extends MediaBaseAttributes {
|
1092
|
+
data?: object;
|
1093
|
+
type?: 'file' | 'link';
|
1094
|
+
}
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* @name mediaInline_node
|
1098
|
+
*/
|
1099
|
+
export declare interface MediaInlineDefinition {
|
1100
|
+
type: 'mediaInline';
|
1101
|
+
attrs: MediaInlineAttributes;
|
1102
|
+
marks?: Array<LinkDefinition>;
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
export declare const mediaSingle: NodeSpec;
|
1106
|
+
|
1107
|
+
/**
|
1108
|
+
* @name mediaSingle_node
|
1109
|
+
* @additionalProperties true
|
1110
|
+
*/
|
1111
|
+
declare interface MediaSingleBaseDefinition {
|
1112
|
+
type: 'mediaSingle';
|
1113
|
+
attrs?: RichMediaAttributes;
|
1114
|
+
marks?: Array<LinkDefinition>;
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
export declare type MediaSingleDefinition =
|
1118
|
+
| MediaSingleFullDefinition
|
1119
|
+
| MediaSingleWithCaptionDefinition;
|
1120
|
+
|
1121
|
+
/**
|
1122
|
+
* @additionalProperties true
|
1123
|
+
*/
|
1124
|
+
declare interface MediaSingleFullContent {
|
1125
|
+
/**
|
1126
|
+
* @minItems 1
|
1127
|
+
* @maxItems 1
|
1128
|
+
* @allowUnsupportedBlock true
|
1129
|
+
*/
|
1130
|
+
content: Array<MediaDefinition>;
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
/**
|
1134
|
+
* @name mediaSingle_full_node
|
1135
|
+
*/
|
1136
|
+
declare type MediaSingleFullDefinition = MediaSingleBaseDefinition &
|
1137
|
+
MediaSingleFullContent;
|
1138
|
+
|
1139
|
+
export declare const mediaSingleToJSON: (
|
1140
|
+
node: Node_2,
|
1141
|
+
) => {
|
1142
|
+
attrs: any;
|
1143
|
+
};
|
1144
|
+
|
1145
|
+
export declare const mediaSingleWithCaption: NodeSpec;
|
1146
|
+
|
1147
|
+
/**
|
1148
|
+
* @name mediaSingle_caption_node
|
1149
|
+
*/
|
1150
|
+
declare type MediaSingleWithCaptionDefinition = MediaSingleBaseDefinition &
|
1151
|
+
MediaCaptionContent;
|
1152
|
+
|
1153
|
+
export declare const mediaToJSON: (
|
1154
|
+
node: Node_2,
|
1155
|
+
) => {
|
1156
|
+
attrs: Record<string, any>;
|
1157
|
+
};
|
1158
|
+
|
1159
|
+
export declare type MediaType = 'file' | 'link' | 'external';
|
1160
|
+
|
1161
|
+
export declare const mention: NodeSpec;
|
1162
|
+
|
1163
|
+
export declare interface MentionAttributes {
|
1164
|
+
id: string;
|
1165
|
+
text?: string;
|
1166
|
+
userType?: MentionUserType;
|
1167
|
+
accessLevel?: string;
|
1168
|
+
}
|
1169
|
+
|
1170
|
+
/**
|
1171
|
+
* @name mention_node
|
1172
|
+
*/
|
1173
|
+
export declare interface MentionDefinition {
|
1174
|
+
type: 'mention';
|
1175
|
+
attrs: MentionAttributes;
|
1176
|
+
}
|
1177
|
+
|
1178
|
+
export declare const mentionToJSON: (
|
1179
|
+
node: Node_2,
|
1180
|
+
) => {
|
1181
|
+
attrs: {
|
1182
|
+
[key: string]: any;
|
1183
|
+
};
|
1184
|
+
};
|
1185
|
+
|
1186
|
+
export declare type MentionUserType = keyof typeof USER_TYPES;
|
1187
|
+
|
1188
|
+
export declare const N0 = '#FFFFFF';
|
1189
|
+
|
1190
|
+
export declare const N20 = '#F4F5F7';
|
1191
|
+
|
1192
|
+
export declare const N200 = '#6B778C';
|
1193
|
+
|
1194
|
+
export declare const N30 = '#EBECF0';
|
1195
|
+
|
1196
|
+
export declare const N300 = '#5E6C84';
|
1197
|
+
|
1198
|
+
export declare const N40 = '#DFE1E6';
|
1199
|
+
|
1200
|
+
export declare const N50 = '#C1C7D0';
|
1201
|
+
|
1202
|
+
export declare const N500 = '#42526E';
|
1203
|
+
|
1204
|
+
export declare const N60 = '#B3BAC5';
|
1205
|
+
|
1206
|
+
export declare const N80 = '#97A0AF';
|
1207
|
+
|
1208
|
+
export declare const N800 = '#172B4D';
|
1209
|
+
|
1210
|
+
export declare const N90 = '#8993A4';
|
1211
|
+
|
1212
|
+
export declare type NameToEmoji = keyof typeof acNameToEmojiMap;
|
1213
|
+
|
1214
|
+
export declare const nestedExpand: NodeSpec;
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* @name nestedExpand_node
|
1218
|
+
*/
|
1219
|
+
declare interface NestedExpandBaseDefinition {
|
1220
|
+
type: 'nestedExpand';
|
1221
|
+
attrs: {
|
1222
|
+
title?: string;
|
1223
|
+
};
|
1224
|
+
content: NestedExpandContent;
|
1225
|
+
}
|
1226
|
+
|
1227
|
+
/**
|
1228
|
+
* @name nestedExpand_content
|
1229
|
+
* @minItems 1
|
1230
|
+
* @allowUnsupportedBlock true
|
1231
|
+
*/
|
1232
|
+
export declare type NestedExpandContent = Array<
|
1233
|
+
| ParagraphDefinition
|
1234
|
+
| HeadingDefinition
|
1235
|
+
| MediaSingleDefinition
|
1236
|
+
| MediaGroupDefinition
|
1237
|
+
>;
|
1238
|
+
|
1239
|
+
/**
|
1240
|
+
* @name nestedExpand_with_no_marks_node
|
1241
|
+
*/
|
1242
|
+
export declare type NestedExpandDefinition = NestedExpandBaseDefinition &
|
1243
|
+
NoMark;
|
1244
|
+
|
1245
|
+
/**
|
1246
|
+
* @additionalProperties true
|
1247
|
+
*/
|
1248
|
+
export declare interface NoMark {
|
1249
|
+
/**
|
1250
|
+
* @maxItems 0
|
1251
|
+
*/
|
1252
|
+
marks?: Array<any>;
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
/**
|
1256
|
+
* @name non_nestable_block_content
|
1257
|
+
*/
|
1258
|
+
export declare type NonNestableBlockContent =
|
1259
|
+
| PanelDefinition
|
1260
|
+
| ParagraphDefinition
|
1261
|
+
| BlockQuoteDefinition
|
1262
|
+
| OrderedListDefinition
|
1263
|
+
| BulletListDefinition
|
1264
|
+
| RuleDefinition
|
1265
|
+
| HeadingDefinition
|
1266
|
+
| CodeBlockDefinition
|
1267
|
+
| MediaGroupDefinition
|
1268
|
+
| MediaSingleDefinition
|
1269
|
+
| DecisionListDefinition
|
1270
|
+
| TaskListDefinition
|
1271
|
+
| TableDefinition
|
1272
|
+
| ExtensionDefinition
|
1273
|
+
| BlockCardDefinition
|
1274
|
+
| EmbedCardDefinition;
|
1275
|
+
|
1276
|
+
/**
|
1277
|
+
* @return String with HEX-coded color
|
1278
|
+
*/
|
1279
|
+
export declare function normalizeHexColor(
|
1280
|
+
color: string | null,
|
1281
|
+
defaultColor?: string,
|
1282
|
+
): string | null;
|
1283
|
+
|
1284
|
+
/**
|
1285
|
+
* Adds protocol to url if needed.
|
1286
|
+
*/
|
1287
|
+
export declare function normalizeUrl(url?: string): string;
|
1288
|
+
|
1289
|
+
export declare const orderedList: NodeSpec;
|
1290
|
+
|
1291
|
+
/**
|
1292
|
+
* @name orderedList_node
|
1293
|
+
*/
|
1294
|
+
export declare interface OrderedListDefinition {
|
1295
|
+
type: 'orderedList';
|
1296
|
+
/**
|
1297
|
+
* @minItems 1
|
1298
|
+
*/
|
1299
|
+
content: Array<ListItemDefinition>;
|
1300
|
+
attrs?: {
|
1301
|
+
/**
|
1302
|
+
* @minimum 1
|
1303
|
+
*/
|
1304
|
+
order: number;
|
1305
|
+
};
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
export declare const orderedListSelector = '.ak-ol';
|
1309
|
+
|
1310
|
+
export declare const P100 = '#998DD9';
|
1311
|
+
|
1312
|
+
export declare const P300 = '#6554C0';
|
1313
|
+
|
1314
|
+
export declare const P400 = '#5243AA';
|
1315
|
+
|
1316
|
+
export declare const P50 = '#EAE6FF';
|
1317
|
+
|
1318
|
+
export declare const P500 = '#403294';
|
1319
|
+
|
1320
|
+
export declare const P75 = '#C0B6F2';
|
1321
|
+
|
1322
|
+
export declare const panel: (allowCustomPanel: boolean) => NodeSpec;
|
1323
|
+
|
1324
|
+
export declare interface PanelAttributes {
|
1325
|
+
panelType: PanelType;
|
1326
|
+
panelIcon?: string;
|
1327
|
+
panelIconId?: string;
|
1328
|
+
panelIconText?: string;
|
1329
|
+
panelColor?: string;
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
/**
|
1333
|
+
* @name panel_node
|
1334
|
+
*/
|
1335
|
+
export declare interface PanelDefinition {
|
1336
|
+
type: 'panel';
|
1337
|
+
attrs: PanelAttributes;
|
1338
|
+
/**
|
1339
|
+
* @minItems 1
|
1340
|
+
* @allowUnsupportedBlock true
|
1341
|
+
*/
|
1342
|
+
content: Array<
|
1343
|
+
| ParagraphDefinition
|
1344
|
+
| HeadingDefinition
|
1345
|
+
| OrderedListDefinition
|
1346
|
+
| BulletListDefinition
|
1347
|
+
| BlockCardDefinition
|
1348
|
+
>;
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
export declare enum PanelType {
|
1352
|
+
INFO = 'info',
|
1353
|
+
NOTE = 'note',
|
1354
|
+
TIP = 'tip',
|
1355
|
+
WARNING = 'warning',
|
1356
|
+
ERROR = 'error',
|
1357
|
+
SUCCESS = 'success',
|
1358
|
+
CUSTOM = 'custom',
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
export declare const paragraph: NodeSpec;
|
1362
|
+
|
1363
|
+
/**
|
1364
|
+
* @name paragraph_node
|
1365
|
+
*/
|
1366
|
+
export declare interface ParagraphBaseDefinition {
|
1367
|
+
type: 'paragraph';
|
1368
|
+
/**
|
1369
|
+
* @allowUnsupportedInline true
|
1370
|
+
*/
|
1371
|
+
content?: Array<Inline>;
|
1372
|
+
marks?: Array<any>;
|
1373
|
+
}
|
1374
|
+
|
1375
|
+
/**
|
1376
|
+
* @name paragraph_with_no_marks_node
|
1377
|
+
*/
|
1378
|
+
export declare type ParagraphDefinition = ParagraphBaseDefinition & NoMark;
|
1379
|
+
|
1380
|
+
/**
|
1381
|
+
* NOTE: Need this because TS is too smart and inline everything.
|
1382
|
+
* So we need to give them separate identity.
|
1383
|
+
* Probably there's a way to solve it but that will need time and exploration.
|
1384
|
+
* // http://bit.ly/2raXFX5
|
1385
|
+
* type T1 = X | Y
|
1386
|
+
* type T2 = A | T1 | B // T2 = A | X | Y | B
|
1387
|
+
*/
|
1388
|
+
/**
|
1389
|
+
* @name paragraph_with_alignment_node
|
1390
|
+
*/
|
1391
|
+
export declare type ParagraphWithAlignmentDefinition = ParagraphBaseDefinition &
|
1392
|
+
MarksObject<AlignmentMarkDefinition>;
|
1393
|
+
|
1394
|
+
/**
|
1395
|
+
* @name paragraph_with_indentation_node
|
1396
|
+
*/
|
1397
|
+
export declare type ParagraphWithIndentationDefinition = ParagraphBaseDefinition &
|
1398
|
+
MarksObject<IndentationMarkDefinition>;
|
1399
|
+
|
1400
|
+
export declare type ParagraphWithMarksDefinition =
|
1401
|
+
| ParagraphWithAlignmentDefinition
|
1402
|
+
| ParagraphWithIndentationDefinition;
|
1403
|
+
|
1404
|
+
export declare const placeholder: NodeSpec;
|
1405
|
+
|
1406
|
+
/**
|
1407
|
+
* @name placeholder_node
|
1408
|
+
*/
|
1409
|
+
export declare interface PlaceholderDefinition {
|
1410
|
+
type: 'placeholder';
|
1411
|
+
attrs: {
|
1412
|
+
text: string;
|
1413
|
+
};
|
1414
|
+
}
|
1415
|
+
|
1416
|
+
export declare const R100 = '#FF8F73';
|
1417
|
+
|
1418
|
+
export declare const R300 = '#FF5630';
|
1419
|
+
|
1420
|
+
export declare const R400 = '#DE350B';
|
1421
|
+
|
1422
|
+
/**
|
1423
|
+
* We're avoding importing these colors from @atlaskit/theme since we
|
1424
|
+
* do not want to have react as a dependency of this package.
|
1425
|
+
* TODO: Refactor this once tokenization by Core team is ready
|
1426
|
+
* https://product-fabric.atlassian.net/browse/CS-908
|
1427
|
+
*/
|
1428
|
+
export declare const R50 = '#FFEBE6';
|
1429
|
+
|
1430
|
+
export declare const R500 = '#BF2600';
|
1431
|
+
|
1432
|
+
export declare const R75 = '#FFBDAD';
|
1433
|
+
|
1434
|
+
export declare function rgbToHex(value: string): string | null;
|
1435
|
+
|
1436
|
+
export declare interface RichMediaAttributes {
|
1437
|
+
/**
|
1438
|
+
* @minimum 0
|
1439
|
+
* @maximum 100
|
1440
|
+
*/
|
1441
|
+
width?: number;
|
1442
|
+
layout: RichMediaLayout;
|
1443
|
+
}
|
1444
|
+
|
1445
|
+
export declare type RichMediaLayout =
|
1446
|
+
| 'wrap-right'
|
1447
|
+
| 'center'
|
1448
|
+
| 'wrap-left'
|
1449
|
+
| 'wide'
|
1450
|
+
| 'full-width'
|
1451
|
+
| 'align-end'
|
1452
|
+
| 'align-start';
|
1453
|
+
|
1454
|
+
export declare const rule: NodeSpec;
|
1455
|
+
|
1456
|
+
/**
|
1457
|
+
* @name rule_node
|
1458
|
+
*/
|
1459
|
+
export declare interface RuleDefinition {
|
1460
|
+
type: 'rule';
|
1461
|
+
}
|
1462
|
+
|
1463
|
+
export declare function sanitizeNodes(
|
1464
|
+
nodes: {
|
1465
|
+
[key: string]: NodeSpec;
|
1466
|
+
},
|
1467
|
+
supportedMarks: {
|
1468
|
+
[key: string]: MarkSpec;
|
1469
|
+
},
|
1470
|
+
): {
|
1471
|
+
[key: string]: NodeSpec;
|
1472
|
+
};
|
1473
|
+
|
1474
|
+
declare interface SchemaConfig<N = string, M = string> {
|
1475
|
+
nodes: N[];
|
1476
|
+
customNodeSpecs?: SchemaCustomNodeSpecs;
|
1477
|
+
marks?: M[];
|
1478
|
+
customMarkSpecs?: SchemaCustomMarkSpecs;
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
declare interface SchemaCustomMarkSpecs {
|
1482
|
+
[name: string]: MarkSpec;
|
1483
|
+
}
|
1484
|
+
|
1485
|
+
declare interface SchemaCustomNodeSpecs {
|
1486
|
+
[name: string]: NodeSpec;
|
1487
|
+
}
|
1488
|
+
|
1489
|
+
declare const status_2: NodeSpec;
|
1490
|
+
export { status_2 as status };
|
1491
|
+
|
1492
|
+
/**
|
1493
|
+
* @name status_node
|
1494
|
+
*/
|
1495
|
+
export declare interface StatusDefinition {
|
1496
|
+
type: 'status';
|
1497
|
+
attrs: {
|
1498
|
+
/**
|
1499
|
+
* @minLength 1
|
1500
|
+
*/
|
1501
|
+
text: string;
|
1502
|
+
color: 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
|
1503
|
+
localId?: string;
|
1504
|
+
/**
|
1505
|
+
* Supported values are bold and subtle
|
1506
|
+
*/
|
1507
|
+
style?: string;
|
1508
|
+
};
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
export declare const strike: MarkSpec;
|
1512
|
+
|
1513
|
+
/**
|
1514
|
+
* @name strike_mark
|
1515
|
+
*/
|
1516
|
+
export declare interface StrikeDefinition {
|
1517
|
+
type: 'strike';
|
1518
|
+
}
|
1519
|
+
|
1520
|
+
export declare const strong: MarkSpec;
|
1521
|
+
|
1522
|
+
/**
|
1523
|
+
* @name strong_mark
|
1524
|
+
*/
|
1525
|
+
export declare interface StrongDefinition {
|
1526
|
+
type: 'strong';
|
1527
|
+
}
|
1528
|
+
|
1529
|
+
export declare const subsup: MarkSpec;
|
1530
|
+
|
1531
|
+
export declare interface SubSupAttributes {
|
1532
|
+
type: 'sub' | 'sup';
|
1533
|
+
}
|
1534
|
+
|
1535
|
+
/**
|
1536
|
+
* @name subsup_mark
|
1537
|
+
*/
|
1538
|
+
export declare interface SubSupDefinition {
|
1539
|
+
type: 'subsup';
|
1540
|
+
attrs: SubSupAttributes;
|
1541
|
+
}
|
1542
|
+
|
1543
|
+
export declare const T100 = '#79E2F2';
|
1544
|
+
|
1545
|
+
export declare const T300 = '#00B8D9';
|
1546
|
+
|
1547
|
+
export declare const T50 = '#E6FCFF';
|
1548
|
+
|
1549
|
+
export declare const T500 = '#008DA6';
|
1550
|
+
|
1551
|
+
export declare const T75 = '#B3F5FF';
|
1552
|
+
|
1553
|
+
export declare const table: NodeSpec;
|
1554
|
+
|
1555
|
+
export declare interface TableAttributes {
|
1556
|
+
isNumberColumnEnabled?: boolean;
|
1557
|
+
layout?: TableLayout;
|
1558
|
+
__autoSize?: boolean;
|
1559
|
+
/**
|
1560
|
+
* @minLength 1
|
1561
|
+
*/
|
1562
|
+
localId?: string;
|
1563
|
+
}
|
1564
|
+
|
1565
|
+
export declare const tableBackgroundBorderColor: string;
|
1566
|
+
|
1567
|
+
export declare const tableBackgroundColorNames: Map<string, string>;
|
1568
|
+
|
1569
|
+
export declare const tableBackgroundColorPalette: Map<string, string>;
|
1570
|
+
|
1571
|
+
export declare const tableCell: NodeSpec;
|
1572
|
+
|
1573
|
+
/**
|
1574
|
+
* @name table_cell_content
|
1575
|
+
* @minItems 1
|
1576
|
+
* @allowUnsupportedBlock true
|
1577
|
+
*/
|
1578
|
+
declare type TableCellContent = Array<
|
1579
|
+
| PanelDefinition
|
1580
|
+
| ParagraphDefinition
|
1581
|
+
| ParagraphWithAlignmentDefinition
|
1582
|
+
| BlockQuoteDefinition
|
1583
|
+
| OrderedListDefinition
|
1584
|
+
| BulletListDefinition
|
1585
|
+
| RuleDefinition
|
1586
|
+
| HeadingDefinition
|
1587
|
+
| HeadingWithMarksDefinition
|
1588
|
+
| CodeBlockDefinition
|
1589
|
+
| MediaGroupDefinition
|
1590
|
+
| MediaSingleDefinition
|
1591
|
+
| DecisionListDefinition
|
1592
|
+
| TaskListDefinition
|
1593
|
+
| ExtensionDefinition
|
1594
|
+
| BlockCardDefinition
|
1595
|
+
| NestedExpandDefinition
|
1596
|
+
| EmbedCardDefinition
|
1597
|
+
>;
|
1598
|
+
|
1599
|
+
export declare const tableCellContentDomSelector: string;
|
1600
|
+
|
1601
|
+
export declare const tableCellContentWrapperSelector: string;
|
1602
|
+
|
1603
|
+
/**
|
1604
|
+
* @name table_cell_node
|
1605
|
+
*/
|
1606
|
+
export declare interface TableCellDefinition {
|
1607
|
+
type: 'tableCell';
|
1608
|
+
attrs?: CellAttributes;
|
1609
|
+
content: TableCellContent;
|
1610
|
+
}
|
1611
|
+
|
1612
|
+
export declare const tableCellSelector: string;
|
1613
|
+
|
1614
|
+
/**
|
1615
|
+
* @name table_node
|
1616
|
+
*/
|
1617
|
+
export declare interface TableDefinition {
|
1618
|
+
type: 'table';
|
1619
|
+
attrs?: TableAttributes;
|
1620
|
+
/**
|
1621
|
+
* @minItems 1
|
1622
|
+
*/
|
1623
|
+
content: Array<TableRowDefinition>;
|
1624
|
+
marks?: Array<FragmentDefinition>;
|
1625
|
+
}
|
1626
|
+
|
1627
|
+
export declare const tableHeader: NodeSpec;
|
1628
|
+
|
1629
|
+
/**
|
1630
|
+
* @name table_header_node
|
1631
|
+
*/
|
1632
|
+
export declare interface TableHeaderDefinition {
|
1633
|
+
type: 'tableHeader';
|
1634
|
+
attrs?: CellAttributes;
|
1635
|
+
content: TableCellContent;
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
export declare const tableHeaderSelector: string;
|
1639
|
+
|
1640
|
+
export declare type TableLayout = 'default' | 'full-width' | 'wide';
|
1641
|
+
|
1642
|
+
export declare const tablePrefixSelector = 'pm-table';
|
1643
|
+
|
1644
|
+
export declare const tableRow: NodeSpec;
|
1645
|
+
|
1646
|
+
/**
|
1647
|
+
* @name table_row_node
|
1648
|
+
*/
|
1649
|
+
export declare interface TableRowDefinition {
|
1650
|
+
type: 'tableRow';
|
1651
|
+
content: Array<TableHeaderDefinition | TableCellDefinition>;
|
1652
|
+
}
|
1653
|
+
|
1654
|
+
export declare const tableToJSON: (
|
1655
|
+
node: Node_2,
|
1656
|
+
) => {
|
1657
|
+
attrs: {
|
1658
|
+
[key: string]: any;
|
1659
|
+
};
|
1660
|
+
};
|
1661
|
+
|
1662
|
+
export declare const taskItem: NodeSpec;
|
1663
|
+
|
1664
|
+
/**
|
1665
|
+
* @name taskItem_node
|
1666
|
+
*/
|
1667
|
+
export declare interface TaskItemDefinition {
|
1668
|
+
type: 'taskItem';
|
1669
|
+
/**
|
1670
|
+
* @allowUnsupportedInline true
|
1671
|
+
*/
|
1672
|
+
content?: Array<Inline>;
|
1673
|
+
attrs: {
|
1674
|
+
localId: string;
|
1675
|
+
state: 'TODO' | 'DONE';
|
1676
|
+
};
|
1677
|
+
}
|
1678
|
+
|
1679
|
+
export declare const taskList: NodeSpec;
|
1680
|
+
|
1681
|
+
export declare interface TaskListContent
|
1682
|
+
extends Array<TaskItemDefinition | TaskListDefinition> {
|
1683
|
+
0: TaskItemDefinition;
|
1684
|
+
}
|
1685
|
+
|
1686
|
+
/**
|
1687
|
+
* @name taskList_node
|
1688
|
+
*/
|
1689
|
+
export declare interface TaskListDefinition {
|
1690
|
+
type: 'taskList';
|
1691
|
+
/**
|
1692
|
+
* @minItems 1
|
1693
|
+
* @allowUnsupportedBlock true
|
1694
|
+
*/
|
1695
|
+
content: TaskListContent;
|
1696
|
+
attrs: {
|
1697
|
+
localId: string;
|
1698
|
+
};
|
1699
|
+
}
|
1700
|
+
|
1701
|
+
export declare const taskListSelector: string;
|
1702
|
+
|
1703
|
+
export declare const text: NodeSpec & {
|
1704
|
+
toDebugString?: () => string;
|
1705
|
+
};
|
1706
|
+
|
1707
|
+
export declare const textColor: MarkSpec;
|
1708
|
+
|
1709
|
+
export declare interface TextColorAttributes {
|
1710
|
+
/**
|
1711
|
+
* @pattern "^#[0-9a-fA-F]{6}$"
|
1712
|
+
*/
|
1713
|
+
color: string;
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
/**
|
1717
|
+
* @name textColor_mark
|
1718
|
+
*/
|
1719
|
+
export declare interface TextColorDefinition {
|
1720
|
+
type: 'textColor';
|
1721
|
+
attrs: TextColorAttributes;
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
declare type TextColorKey =
|
1725
|
+
| 'Light gray'
|
1726
|
+
| 'Purple'
|
1727
|
+
| 'Teal'
|
1728
|
+
| 'Green'
|
1729
|
+
| 'Red'
|
1730
|
+
| 'Orange'
|
1731
|
+
| 'Dark gray'
|
1732
|
+
| 'Blue'
|
1733
|
+
| 'Yellow'
|
1734
|
+
| 'Dark blue'
|
1735
|
+
| 'Dark teal'
|
1736
|
+
| 'Dark green'
|
1737
|
+
| 'Dark red'
|
1738
|
+
| 'Dark purple'
|
1739
|
+
| 'White'
|
1740
|
+
| 'Light blue'
|
1741
|
+
| 'Light teal'
|
1742
|
+
| 'Light green'
|
1743
|
+
| 'Light yellow'
|
1744
|
+
| 'Light red'
|
1745
|
+
| 'Light purple';
|
1746
|
+
|
1747
|
+
/**
|
1748
|
+
* @name text_node
|
1749
|
+
*/
|
1750
|
+
export declare interface TextDefinition {
|
1751
|
+
type: 'text';
|
1752
|
+
/**
|
1753
|
+
* @minLength 1
|
1754
|
+
*/
|
1755
|
+
text: string;
|
1756
|
+
marks?: Array<any>;
|
1757
|
+
}
|
1758
|
+
|
1759
|
+
export declare const toJSONTableCell: (
|
1760
|
+
node: Node_2,
|
1761
|
+
) => {
|
1762
|
+
attrs: Record<string, any>;
|
1763
|
+
};
|
1764
|
+
|
1765
|
+
export declare const toJSONTableHeader: (
|
1766
|
+
node: Node_2,
|
1767
|
+
) => {
|
1768
|
+
attrs: Record<string, any>;
|
1769
|
+
};
|
1770
|
+
|
1771
|
+
export declare const typeAheadQuery: MarkSpec;
|
1772
|
+
|
1773
|
+
export declare const underline: MarkSpec;
|
1774
|
+
|
1775
|
+
/**
|
1776
|
+
* @name underline_mark
|
1777
|
+
*/
|
1778
|
+
export declare interface UnderlineDefinition {
|
1779
|
+
type: 'underline';
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
export declare const unknownBlock: NodeSpec;
|
1783
|
+
|
1784
|
+
export declare const unsupportedBlock: NodeSpec;
|
1785
|
+
|
1786
|
+
export declare const unsupportedInline: NodeSpec;
|
1787
|
+
|
1788
|
+
export declare const unsupportedMark: MarkSpec;
|
1789
|
+
|
1790
|
+
export declare const unsupportedNodeAttribute: MarkSpec;
|
1791
|
+
|
1792
|
+
export declare const unsupportedNodeTypesForMediaCards: Set<string>;
|
1793
|
+
|
1794
|
+
export declare interface UrlType {
|
1795
|
+
/**
|
1796
|
+
* @validatorFn safeUrl
|
1797
|
+
*/
|
1798
|
+
url: string;
|
1799
|
+
}
|
1800
|
+
|
1801
|
+
declare enum USER_TYPES {
|
1802
|
+
DEFAULT = 'DEFAULT',
|
1803
|
+
SPECIAL = 'SPECIAL',
|
1804
|
+
APP = 'APP',
|
1805
|
+
}
|
1806
|
+
|
1807
|
+
export declare const uuid: {
|
1808
|
+
setStatic(value: string | false): void;
|
1809
|
+
generate(): string;
|
1810
|
+
};
|
1811
|
+
|
1812
|
+
export declare const Y200 = '#FFC400';
|
1813
|
+
|
1814
|
+
export declare const Y400 = '#FF991F';
|
1815
|
+
|
1816
|
+
export declare const Y50 = '#FFFAE6';
|
1817
|
+
|
1818
|
+
export declare const Y500 = '#FF8B00';
|
1819
|
+
|
1820
|
+
export declare const Y75 = '#FFF0B3';
|
1821
|
+
|
1822
|
+
export {};
|
1823
|
+
```
|