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