@docen/extensions 0.0.8
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/LICENSE +21 -0
- package/README.md +315 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +72 -0
- package/dist/index.d.mts +72 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.mjs +1 -0
- package/dist/shared/extensions.BED3A2H3.d.ts +1793 -0
- package/dist/shared/extensions.BQfevE5S.d.cts +1793 -0
- package/dist/shared/extensions.CcSIv21B.cjs +72 -0
- package/dist/shared/extensions.Chtjfo3m.mjs +72 -0
- package/dist/shared/extensions.DAZn2HEU.d.mts +1793 -0
- package/dist/shared/extensions.SlCx0Bmn.d.cts +6596 -0
- package/dist/shared/extensions.SlCx0Bmn.d.mts +6596 -0
- package/dist/shared/extensions.SlCx0Bmn.d.ts +6596 -0
- package/dist/tiptap.cjs +1 -0
- package/dist/tiptap.d.cts +3 -0
- package/dist/tiptap.d.mts +3 -0
- package/dist/tiptap.d.ts +3 -0
- package/dist/tiptap.mjs +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +385 -0
- package/dist/types.d.mts +385 -0
- package/dist/types.d.ts +385 -0
- package/dist/types.mjs +1 -0
- package/package.json +92 -0
package/dist/tiptap.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const index=require("./shared/extensions.CcSIv21B.cjs"),extensionMathematics=require("@tiptap/extension-mathematics");exports.BackgroundColor=index.BackgroundColor,exports.Blockquote=index.Blockquote,exports.Bold=index.Bold,exports.BulletList=index.BulletList,exports.Code=index.Code,exports.CodeBlockLowlight=index.CodeBlockLowlight,exports.Color=index.Color,exports.Details=index.Details,exports.DetailsContent=index.DetailsContent,exports.DetailsSummary=index.DetailsSummary,exports.Document=index.Document,exports.Emoji=index.Emoji,exports.FontFamily=index.FontFamily,exports.FontSize=index.FontSize,exports.HardBreak=index.HardBreak,exports.Heading=index.Heading,exports.Highlight=index.Highlight,exports.HorizontalRule=index.HorizontalRule,exports.Image=index.Image,exports.Italic=index.Italic,exports.LineHeight=index.LineHeight,exports.Link=index.Link,exports.ListItem=index.ListItem,exports.Mention=index.Mention,exports.OrderedList=index.OrderedList,exports.Paragraph=index.Paragraph,exports.Strike=index.Strike,exports.Subscript=index.Subscript,exports.Superscript=index.Superscript,exports.Table=index.Table,exports.TableCell=index.TableCell,exports.TableHeader=index.TableHeader,exports.TableRow=index.TableRow,exports.TaskItem=index.TaskItem,exports.TaskList=index.TaskList,exports.Text=index.Text,exports.TextStyle=index.TextStyle,exports.Underline=index.Underline,exports.Mathematics=extensionMathematics.Mathematics;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { v as BackgroundColor, B as Blockquote, m as Bold, c as BulletList, o as Code, C as CodeBlockLowlight, u as Color, j as Details, l as DetailsContent, k as DetailsSummary, D as Document, E as Emoji, F as FontFamily, w as FontSize, i as HardBreak, z as Heading, q as Highlight, b as HorizontalRule, G as Image, n as Italic, x as LineHeight, p as Link, L as ListItem, M as Mention, O as OrderedList, y as Paragraph, S as Strike, r as Subscript, s as Superscript, f as Table, g as TableCell, h as TableHeader, A as TableRow, e as TaskItem, d as TaskList, a as Text, t as TextStyle, U as Underline } from './shared/extensions.BQfevE5S.cjs';
|
|
2
|
+
export { Mathematics } from '@tiptap/extension-mathematics';
|
|
3
|
+
import './shared/extensions.SlCx0Bmn.cjs';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { v as BackgroundColor, B as Blockquote, m as Bold, c as BulletList, o as Code, C as CodeBlockLowlight, u as Color, j as Details, l as DetailsContent, k as DetailsSummary, D as Document, E as Emoji, F as FontFamily, w as FontSize, i as HardBreak, z as Heading, q as Highlight, b as HorizontalRule, G as Image, n as Italic, x as LineHeight, p as Link, L as ListItem, M as Mention, O as OrderedList, y as Paragraph, S as Strike, r as Subscript, s as Superscript, f as Table, g as TableCell, h as TableHeader, A as TableRow, e as TaskItem, d as TaskList, a as Text, t as TextStyle, U as Underline } from './shared/extensions.DAZn2HEU.mjs';
|
|
2
|
+
export { Mathematics } from '@tiptap/extension-mathematics';
|
|
3
|
+
import './shared/extensions.SlCx0Bmn.mjs';
|
package/dist/tiptap.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { v as BackgroundColor, B as Blockquote, m as Bold, c as BulletList, o as Code, C as CodeBlockLowlight, u as Color, j as Details, l as DetailsContent, k as DetailsSummary, D as Document, E as Emoji, F as FontFamily, w as FontSize, i as HardBreak, z as Heading, q as Highlight, b as HorizontalRule, G as Image, n as Italic, x as LineHeight, p as Link, L as ListItem, M as Mention, O as OrderedList, y as Paragraph, S as Strike, r as Subscript, s as Superscript, f as Table, g as TableCell, h as TableHeader, A as TableRow, e as TaskItem, d as TaskList, a as Text, t as TextStyle, U as Underline } from './shared/extensions.BED3A2H3.js';
|
|
2
|
+
export { Mathematics } from '@tiptap/extension-mathematics';
|
|
3
|
+
import './shared/extensions.SlCx0Bmn.js';
|
package/dist/tiptap.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{v as BackgroundColor,B as Blockquote,m as Bold,b as BulletList,o as Code,C as CodeBlockLowlight,u as Color,j as Details,l as DetailsContent,k as DetailsSummary,D as Document,E as Emoji,F as FontFamily,w as FontSize,i as HardBreak,H as Heading,q as Highlight,a as HorizontalRule,I as Image,n as Italic,x as LineHeight,p as Link,L as ListItem,M as Mention,O as OrderedList,P as Paragraph,S as Strike,r as Subscript,s as Superscript,e as Table,g as TableCell,h as TableHeader,f as TableRow,d as TaskItem,c as TaskList,T as Text,t as TextStyle,U as Underline}from"./shared/extensions.Chtjfo3m.mjs";export{Mathematics}from"@tiptap/extension-mathematics";
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { J as JSONContent } from './shared/extensions.SlCx0Bmn.cjs';
|
|
3
|
+
|
|
4
|
+
declare const CompoundLine: {
|
|
5
|
+
readonly SINGLE: "sng";
|
|
6
|
+
readonly DOUBLE: "dbl";
|
|
7
|
+
readonly THICK_THIN: "thickThin";
|
|
8
|
+
readonly THIN_THICK: "thinThick";
|
|
9
|
+
readonly TRI: "tri";
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
declare type CoreImageOptions = {
|
|
13
|
+
readonly transformation: IMediaTransformation;
|
|
14
|
+
readonly floating?: IFloating;
|
|
15
|
+
readonly altText?: DocPropertiesOptions;
|
|
16
|
+
readonly outline?: OutlineOptions;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
declare type DocPropertiesOptions = {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly description?: string;
|
|
22
|
+
readonly title?: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
declare const HorizontalPositionAlign: {
|
|
26
|
+
readonly CENTER: "center";
|
|
27
|
+
readonly INSIDE: "inside";
|
|
28
|
+
readonly LEFT: "left";
|
|
29
|
+
readonly OUTSIDE: "outside";
|
|
30
|
+
readonly RIGHT: "right";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
34
|
+
readonly CHARACTER: "character";
|
|
35
|
+
readonly COLUMN: "column";
|
|
36
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
37
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
38
|
+
readonly MARGIN: "margin";
|
|
39
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
40
|
+
readonly PAGE: "page";
|
|
41
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
declare type IDistance = {
|
|
45
|
+
readonly distT?: number;
|
|
46
|
+
readonly distB?: number;
|
|
47
|
+
readonly distL?: number;
|
|
48
|
+
readonly distR?: number;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare type IFloating = {
|
|
52
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
53
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
54
|
+
readonly allowOverlap?: boolean;
|
|
55
|
+
readonly lockAnchor?: boolean;
|
|
56
|
+
readonly behindDocument?: boolean;
|
|
57
|
+
readonly layoutInCell?: boolean;
|
|
58
|
+
readonly margins?: IMargins;
|
|
59
|
+
readonly wrap?: ITextWrapping;
|
|
60
|
+
readonly zIndex?: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare type IHorizontalPositionOptions = {
|
|
64
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
65
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
66
|
+
readonly offset?: number;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
70
|
+
|
|
71
|
+
declare type IMargins = {
|
|
72
|
+
readonly left?: number;
|
|
73
|
+
readonly bottom?: number;
|
|
74
|
+
readonly top?: number;
|
|
75
|
+
readonly right?: number;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
declare type IMediaTransformation = {
|
|
79
|
+
readonly width: number;
|
|
80
|
+
readonly height: number;
|
|
81
|
+
readonly flip?: {
|
|
82
|
+
readonly vertical?: boolean;
|
|
83
|
+
readonly horizontal?: boolean;
|
|
84
|
+
};
|
|
85
|
+
readonly rotation?: number;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
declare type ITextWrapping = {
|
|
89
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
90
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
91
|
+
readonly margins?: IDistance;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
declare type IVerticalPositionOptions = {
|
|
95
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
96
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
97
|
+
readonly offset?: number;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
declare const LineCap: {
|
|
101
|
+
readonly ROUND: "rnd";
|
|
102
|
+
readonly SQUARE: "sq";
|
|
103
|
+
readonly FLAT: "flat";
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
declare type OutlineAttributes = {
|
|
107
|
+
readonly width?: number;
|
|
108
|
+
readonly cap?: keyof typeof LineCap;
|
|
109
|
+
readonly compoundLine?: keyof typeof CompoundLine;
|
|
110
|
+
readonly align?: keyof typeof PenAlignment;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
114
|
+
|
|
115
|
+
declare type OutlineNoFill = {
|
|
116
|
+
readonly type: "noFill";
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
declare type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
120
|
+
|
|
121
|
+
declare type OutlineRgbSolidFill = {
|
|
122
|
+
readonly type: "solidFill";
|
|
123
|
+
readonly solidFillType: "rgb";
|
|
124
|
+
readonly value: string;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
declare type OutlineSchemeSolidFill = {
|
|
128
|
+
readonly type: "solidFill";
|
|
129
|
+
readonly solidFillType: "scheme";
|
|
130
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
declare type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
|
|
134
|
+
|
|
135
|
+
declare const PenAlignment: {
|
|
136
|
+
readonly CENTER: "ctr";
|
|
137
|
+
readonly INSET: "in";
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare type RegularImageOptions = {
|
|
141
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
142
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
declare const SchemeColor: {
|
|
146
|
+
readonly BG1: "bg1";
|
|
147
|
+
readonly TX1: "tx1";
|
|
148
|
+
readonly BG2: "bg2";
|
|
149
|
+
readonly TX2: "tx2";
|
|
150
|
+
readonly ACCENT1: "accent1";
|
|
151
|
+
readonly ACCENT2: "accent2";
|
|
152
|
+
readonly ACCENT3: "accent3";
|
|
153
|
+
readonly ACCENT4: "accent4";
|
|
154
|
+
readonly ACCENT5: "accent5";
|
|
155
|
+
readonly ACCENT6: "accent6";
|
|
156
|
+
readonly HLINK: "hlink";
|
|
157
|
+
readonly FOLHLINK: "folHlink";
|
|
158
|
+
readonly DK1: "dk1";
|
|
159
|
+
readonly LT1: "lt1";
|
|
160
|
+
readonly DK2: "dk2";
|
|
161
|
+
readonly LT2: "lt2";
|
|
162
|
+
readonly PHCLR: "phClr";
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
declare type SvgMediaOptions = {
|
|
166
|
+
readonly type: "svg";
|
|
167
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
168
|
+
readonly fallback: RegularImageOptions;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
declare const TextWrappingSide: {
|
|
172
|
+
readonly BOTH_SIDES: "bothSides";
|
|
173
|
+
readonly LEFT: "left";
|
|
174
|
+
readonly RIGHT: "right";
|
|
175
|
+
readonly LARGEST: "largest";
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
declare const TextWrappingType: {
|
|
179
|
+
readonly NONE: 0;
|
|
180
|
+
readonly SQUARE: 1;
|
|
181
|
+
readonly TIGHT: 2;
|
|
182
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
declare const VerticalPositionAlign: {
|
|
186
|
+
readonly BOTTOM: "bottom";
|
|
187
|
+
readonly CENTER: "center";
|
|
188
|
+
readonly INSIDE: "inside";
|
|
189
|
+
readonly OUTSIDE: "outside";
|
|
190
|
+
readonly TOP: "top";
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
declare const VerticalPositionRelativeFrom: {
|
|
194
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
195
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
196
|
+
readonly LINE: "line";
|
|
197
|
+
readonly MARGIN: "margin";
|
|
198
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
199
|
+
readonly PAGE: "page";
|
|
200
|
+
readonly PARAGRAPH: "paragraph";
|
|
201
|
+
readonly TOP_MARGIN: "topMargin";
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
type ImageFloatingOptions = {
|
|
205
|
+
horizontalPosition: IHorizontalPositionOptions;
|
|
206
|
+
verticalPosition: IVerticalPositionOptions;
|
|
207
|
+
} & Partial<Omit<IFloating, "horizontalPosition" | "verticalPosition">>;
|
|
208
|
+
type ImageOutlineOptions = IImageOptions["outline"];
|
|
209
|
+
interface TextNode {
|
|
210
|
+
type: "text";
|
|
211
|
+
text: string;
|
|
212
|
+
marks?: Array<Mark>;
|
|
213
|
+
}
|
|
214
|
+
interface HardBreakNode {
|
|
215
|
+
type: "hardBreak";
|
|
216
|
+
marks?: Array<Mark>;
|
|
217
|
+
}
|
|
218
|
+
interface Mark {
|
|
219
|
+
type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
|
|
220
|
+
attrs?: {
|
|
221
|
+
color?: string;
|
|
222
|
+
backgroundColor?: string;
|
|
223
|
+
fontSize?: string;
|
|
224
|
+
fontFamily?: string;
|
|
225
|
+
lineHeight?: string;
|
|
226
|
+
href?: string;
|
|
227
|
+
target?: string;
|
|
228
|
+
rel?: string;
|
|
229
|
+
class?: string | null;
|
|
230
|
+
[key: string]: unknown;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
interface DocumentNode extends JSONContent {
|
|
234
|
+
type: "doc";
|
|
235
|
+
content?: Array<BlockNode>;
|
|
236
|
+
}
|
|
237
|
+
interface ParagraphNode extends JSONContent {
|
|
238
|
+
type: "paragraph";
|
|
239
|
+
attrs?: {
|
|
240
|
+
textAlign?: "left" | "center" | "right" | "justify";
|
|
241
|
+
indentLeft?: string;
|
|
242
|
+
indentRight?: string;
|
|
243
|
+
indentFirstLine?: string;
|
|
244
|
+
spacingBefore?: string;
|
|
245
|
+
spacingAfter?: string;
|
|
246
|
+
};
|
|
247
|
+
content?: Array<TextNode | HardBreakNode | ImageNode>;
|
|
248
|
+
}
|
|
249
|
+
interface HeadingNode extends JSONContent {
|
|
250
|
+
type: "heading";
|
|
251
|
+
attrs: {
|
|
252
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
253
|
+
indentLeft?: string;
|
|
254
|
+
indentRight?: string;
|
|
255
|
+
indentFirstLine?: string;
|
|
256
|
+
spacingBefore?: string;
|
|
257
|
+
spacingAfter?: string;
|
|
258
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
259
|
+
};
|
|
260
|
+
content?: Array<TextNode | HardBreakNode>;
|
|
261
|
+
}
|
|
262
|
+
interface BlockquoteNode extends JSONContent {
|
|
263
|
+
type: "blockquote";
|
|
264
|
+
content?: Array<ParagraphNode>;
|
|
265
|
+
}
|
|
266
|
+
interface CodeBlockNode extends JSONContent {
|
|
267
|
+
type: "codeBlock";
|
|
268
|
+
attrs?: {
|
|
269
|
+
language?: string;
|
|
270
|
+
};
|
|
271
|
+
content?: Array<TextNode>;
|
|
272
|
+
}
|
|
273
|
+
interface HorizontalRuleNode extends JSONContent {
|
|
274
|
+
type: "horizontalRule";
|
|
275
|
+
}
|
|
276
|
+
interface BulletListNode extends JSONContent {
|
|
277
|
+
type: "bulletList";
|
|
278
|
+
content?: Array<ListItemNode>;
|
|
279
|
+
}
|
|
280
|
+
interface OrderedListNode extends JSONContent {
|
|
281
|
+
type: "orderedList";
|
|
282
|
+
attrs?: {
|
|
283
|
+
start?: number;
|
|
284
|
+
order?: number;
|
|
285
|
+
type?: string | null;
|
|
286
|
+
};
|
|
287
|
+
content?: Array<ListItemNode>;
|
|
288
|
+
}
|
|
289
|
+
interface TaskListNode extends JSONContent {
|
|
290
|
+
type: "taskList";
|
|
291
|
+
content?: Array<TaskItemNode>;
|
|
292
|
+
}
|
|
293
|
+
interface ListItemNode extends JSONContent {
|
|
294
|
+
type: "listItem";
|
|
295
|
+
content?: Array<ParagraphNode>;
|
|
296
|
+
}
|
|
297
|
+
interface TaskItemNode extends JSONContent {
|
|
298
|
+
type: "taskItem";
|
|
299
|
+
attrs?: {
|
|
300
|
+
checked?: boolean;
|
|
301
|
+
};
|
|
302
|
+
content?: Array<ParagraphNode>;
|
|
303
|
+
}
|
|
304
|
+
interface TableCellBorder {
|
|
305
|
+
color?: string;
|
|
306
|
+
width?: number;
|
|
307
|
+
style?: "solid" | "dashed" | "dotted" | "double" | "none";
|
|
308
|
+
}
|
|
309
|
+
interface TableNode extends JSONContent {
|
|
310
|
+
type: "table";
|
|
311
|
+
attrs?: {
|
|
312
|
+
marginTop?: number | null;
|
|
313
|
+
marginBottom?: number | null;
|
|
314
|
+
marginLeft?: number | null;
|
|
315
|
+
marginRight?: number | null;
|
|
316
|
+
};
|
|
317
|
+
content?: Array<TableRowNode>;
|
|
318
|
+
}
|
|
319
|
+
interface TableRowNode extends JSONContent {
|
|
320
|
+
type: "tableRow";
|
|
321
|
+
attrs?: {
|
|
322
|
+
rowHeight?: string | null;
|
|
323
|
+
};
|
|
324
|
+
content?: Array<TableCellNode | TableHeaderNode>;
|
|
325
|
+
}
|
|
326
|
+
interface TableCellNode extends JSONContent {
|
|
327
|
+
type: "tableCell";
|
|
328
|
+
attrs?: {
|
|
329
|
+
colSpan?: number;
|
|
330
|
+
rowSpan?: number;
|
|
331
|
+
colWidth?: number[] | null;
|
|
332
|
+
backgroundColor?: string | null;
|
|
333
|
+
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
334
|
+
borderTop?: TableCellBorder | null;
|
|
335
|
+
borderBottom?: TableCellBorder | null;
|
|
336
|
+
borderLeft?: TableCellBorder | null;
|
|
337
|
+
borderRight?: TableCellBorder | null;
|
|
338
|
+
};
|
|
339
|
+
content?: Array<ParagraphNode>;
|
|
340
|
+
}
|
|
341
|
+
interface TableHeaderNode extends JSONContent {
|
|
342
|
+
type: "tableHeader";
|
|
343
|
+
attrs?: {
|
|
344
|
+
colSpan?: number;
|
|
345
|
+
rowSpan?: number;
|
|
346
|
+
colWidth?: number[] | null;
|
|
347
|
+
backgroundColor?: string | null;
|
|
348
|
+
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
349
|
+
borderTop?: TableCellBorder | null;
|
|
350
|
+
borderBottom?: TableCellBorder | null;
|
|
351
|
+
borderLeft?: TableCellBorder | null;
|
|
352
|
+
borderRight?: TableCellBorder | null;
|
|
353
|
+
};
|
|
354
|
+
content?: Array<ParagraphNode>;
|
|
355
|
+
}
|
|
356
|
+
interface ImageNode extends JSONContent {
|
|
357
|
+
type: "image";
|
|
358
|
+
attrs?: {
|
|
359
|
+
src: string;
|
|
360
|
+
alt?: string | null;
|
|
361
|
+
title?: string | null;
|
|
362
|
+
width?: number | null;
|
|
363
|
+
height?: number | null;
|
|
364
|
+
rotation?: number;
|
|
365
|
+
floating?: ImageFloatingOptions;
|
|
366
|
+
outline?: ImageOutlineOptions;
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
interface DetailsNode extends JSONContent {
|
|
370
|
+
type: "details";
|
|
371
|
+
content?: Array<DetailsSummaryNode | DetailsContentNode>;
|
|
372
|
+
}
|
|
373
|
+
interface DetailsSummaryNode extends JSONContent {
|
|
374
|
+
type: "detailsSummary";
|
|
375
|
+
content?: Array<TextNode | HardBreakNode>;
|
|
376
|
+
}
|
|
377
|
+
interface DetailsContentNode extends JSONContent {
|
|
378
|
+
type: "detailsContent";
|
|
379
|
+
content?: Array<BlockNode>;
|
|
380
|
+
}
|
|
381
|
+
type TextContent = TextNode | HardBreakNode;
|
|
382
|
+
type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
|
|
383
|
+
|
|
384
|
+
export { JSONContent };
|
|
385
|
+
export type { BlockNode, BlockquoteNode, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageFloatingOptions, ImageNode, ImageOutlineOptions, ListItemNode, Mark, OrderedListNode, ParagraphNode, TableCellBorder, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
|