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