UNPKG

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