@atlaskit/adf-schema 28.1.1 → 28.1.3

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