@atlaskit/adf-schema 26.1.0 → 26.2.1

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