pretext-pdf 2.0.2 → 2.0.13
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 +227 -0
- package/dist/assets/loaders/images.d.ts.map +1 -1
- package/dist/assets/loaders/images.js +4 -1
- package/dist/assets/loaders/images.js.map +1 -1
- package/dist/assets/security/path-allowlist.d.ts.map +1 -1
- package/dist/assets/security/path-allowlist.js +10 -1
- package/dist/assets/security/path-allowlist.js.map +1 -1
- package/dist/assets/svg/resolve-content.d.ts.map +1 -1
- package/dist/assets/svg/resolve-content.js +4 -1
- package/dist/assets/svg/resolve-content.js.map +1 -1
- package/dist/builder.js +1 -1
- package/dist/builder.js.map +1 -1
- package/dist/compat/normalize.d.ts +13 -0
- package/dist/compat/normalize.d.ts.map +1 -0
- package/dist/compat/normalize.js +146 -0
- package/dist/compat/normalize.js.map +1 -0
- package/dist/compat/pdfmake-types.d.ts +91 -0
- package/dist/compat/pdfmake-types.d.ts.map +1 -0
- package/dist/compat/pdfmake-types.js +8 -0
- package/dist/compat/pdfmake-types.js.map +1 -0
- package/dist/compat/translate.d.ts +7 -0
- package/dist/compat/translate.d.ts.map +1 -0
- package/dist/compat/translate.js +205 -0
- package/dist/compat/translate.js.map +1 -0
- package/dist/compat.d.ts +6 -161
- package/dist/compat.d.ts.map +1 -1
- package/dist/compat.js +13 -404
- package/dist/compat.js.map +1 -1
- package/dist/fonts/bundled-paths.d.ts +13 -0
- package/dist/fonts/bundled-paths.d.ts.map +1 -0
- package/dist/fonts/bundled-paths.js +43 -0
- package/dist/fonts/bundled-paths.js.map +1 -0
- package/dist/fonts/collect-needed.d.ts +10 -0
- package/dist/fonts/collect-needed.d.ts.map +1 -0
- package/dist/fonts/collect-needed.js +85 -0
- package/dist/fonts/collect-needed.js.map +1 -0
- package/dist/fonts/collect-text.d.ts +9 -0
- package/dist/fonts/collect-text.d.ts.map +1 -0
- package/dist/fonts/collect-text.js +162 -0
- package/dist/fonts/collect-text.js.map +1 -0
- package/dist/fonts/load-bytes.d.ts +10 -0
- package/dist/fonts/load-bytes.d.ts.map +1 -0
- package/dist/fonts/load-bytes.js +56 -0
- package/dist/fonts/load-bytes.js.map +1 -0
- package/dist/fonts.d.ts +11 -10
- package/dist/fonts.d.ts.map +1 -1
- package/dist/fonts.js +17 -421
- package/dist/fonts.js.map +1 -1
- package/dist/pipeline-footnotes.d.ts +2 -2
- package/dist/pipeline-footnotes.d.ts.map +1 -1
- package/dist/pipeline-footnotes.js +5 -2
- package/dist/pipeline-footnotes.js.map +1 -1
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +9 -5
- package/dist/pipeline.js.map +1 -1
- package/dist/render-utils.d.ts +1 -7
- package/dist/render-utils.d.ts.map +1 -1
- package/dist/render-utils.js +9 -30
- package/dist/render-utils.js.map +1 -1
- package/dist/schema/document.d.ts +2115 -0
- package/dist/schema/document.d.ts.map +1 -0
- package/dist/schema/document.js +275 -0
- package/dist/schema/document.js.map +1 -0
- package/dist/schema/elements-block.d.ts +481 -0
- package/dist/schema/elements-block.d.ts.map +1 -0
- package/dist/schema/elements-block.js +155 -0
- package/dist/schema/elements-block.js.map +1 -0
- package/dist/schema/elements-media.d.ts +282 -0
- package/dist/schema/elements-media.d.ts.map +1 -0
- package/dist/schema/elements-media.js +83 -0
- package/dist/schema/elements-media.js.map +1 -0
- package/dist/schema/elements-table.d.ts +134 -0
- package/dist/schema/elements-table.d.ts.map +1 -0
- package/dist/schema/elements-table.js +60 -0
- package/dist/schema/elements-table.js.map +1 -0
- package/dist/schema/elements-text.d.ts +782 -0
- package/dist/schema/elements-text.d.ts.map +1 -0
- package/dist/schema/elements-text.js +260 -0
- package/dist/schema/elements-text.js.map +1 -0
- package/dist/schema/shared.d.ts +84 -0
- package/dist/schema/shared.d.ts.map +1 -0
- package/dist/schema/shared.js +29 -0
- package/dist/schema/shared.js.map +1 -0
- package/dist/schema.d.ts +10 -2116
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +10 -852
- package/dist/schema.js.map +1 -1
- package/dist/types-public/document.d.ts +99 -101
- package/dist/types-public/document.d.ts.map +1 -1
- package/dist/validate/document.d.ts.map +1 -1
- package/dist/validate/document.js +5 -1
- package/dist/validate/document.js.map +1 -1
- package/dist/validate/elements/media.d.ts.map +1 -1
- package/dist/validate/elements/media.js +14 -0
- package/dist/validate/elements/media.js.map +1 -1
- package/dist/validate/helpers.d.ts +6 -6
- package/dist/validate/helpers.d.ts.map +1 -1
- package/dist/validate/helpers.js +7 -7
- package/dist/validate/helpers.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
export declare const paragraphSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly required: readonly ["type", "text"];
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly type: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
readonly const: "paragraph";
|
|
8
|
+
};
|
|
9
|
+
readonly text: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
};
|
|
12
|
+
readonly dir: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
15
|
+
};
|
|
16
|
+
readonly fontSize: {
|
|
17
|
+
readonly type: "number";
|
|
18
|
+
};
|
|
19
|
+
readonly lineHeight: {
|
|
20
|
+
readonly type: "number";
|
|
21
|
+
};
|
|
22
|
+
readonly fontFamily: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
};
|
|
25
|
+
readonly fontWeight: {
|
|
26
|
+
readonly type: "number";
|
|
27
|
+
readonly enum: readonly [400, 700];
|
|
28
|
+
};
|
|
29
|
+
readonly color: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
32
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
33
|
+
};
|
|
34
|
+
readonly align: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly enum: readonly ["left", "center", "right", "justify"];
|
|
37
|
+
};
|
|
38
|
+
readonly bgColor: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
41
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
42
|
+
};
|
|
43
|
+
readonly spaceAfter: {
|
|
44
|
+
readonly type: "number";
|
|
45
|
+
readonly description: "Space in points (pt)";
|
|
46
|
+
};
|
|
47
|
+
readonly spaceBefore: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
readonly description: "Space in points (pt)";
|
|
50
|
+
};
|
|
51
|
+
readonly keepTogether: {
|
|
52
|
+
readonly type: "boolean";
|
|
53
|
+
};
|
|
54
|
+
readonly underline: {
|
|
55
|
+
readonly type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
readonly strikethrough: {
|
|
58
|
+
readonly type: "boolean";
|
|
59
|
+
};
|
|
60
|
+
readonly url: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly format: "uri";
|
|
63
|
+
};
|
|
64
|
+
readonly letterSpacing: {
|
|
65
|
+
readonly type: "number";
|
|
66
|
+
};
|
|
67
|
+
readonly smallCaps: {
|
|
68
|
+
readonly type: "boolean";
|
|
69
|
+
};
|
|
70
|
+
readonly tabularNumbers: {
|
|
71
|
+
readonly type: "boolean";
|
|
72
|
+
readonly description: "Render digits at fixed slot width for aligned numeric columns.";
|
|
73
|
+
};
|
|
74
|
+
readonly columns: {
|
|
75
|
+
readonly type: "number";
|
|
76
|
+
readonly description: "Number of columns for multi-column layout. Default: 1";
|
|
77
|
+
};
|
|
78
|
+
readonly columnGap: {
|
|
79
|
+
readonly type: "number";
|
|
80
|
+
readonly description: "Gap between columns in pt. Default: 24";
|
|
81
|
+
};
|
|
82
|
+
readonly hyphenate: {
|
|
83
|
+
readonly type: "boolean";
|
|
84
|
+
readonly const: false;
|
|
85
|
+
readonly description: "Set to false to disable hyphenation for this element.";
|
|
86
|
+
};
|
|
87
|
+
readonly annotation: {
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly required: readonly ["contents"];
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly contents: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
};
|
|
94
|
+
readonly author: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
readonly color: {
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
100
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
101
|
+
};
|
|
102
|
+
readonly open: {
|
|
103
|
+
readonly type: "boolean";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export declare const headingSchema: {
|
|
110
|
+
readonly type: "object";
|
|
111
|
+
readonly required: readonly ["type", "level", "text"];
|
|
112
|
+
readonly properties: {
|
|
113
|
+
readonly type: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
readonly const: "heading";
|
|
116
|
+
};
|
|
117
|
+
readonly level: {
|
|
118
|
+
readonly type: "number";
|
|
119
|
+
readonly enum: readonly [1, 2, 3, 4];
|
|
120
|
+
};
|
|
121
|
+
readonly text: {
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
};
|
|
124
|
+
readonly dir: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
127
|
+
};
|
|
128
|
+
readonly fontFamily: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
};
|
|
131
|
+
readonly fontWeight: {
|
|
132
|
+
readonly type: "number";
|
|
133
|
+
readonly enum: readonly [400, 700];
|
|
134
|
+
};
|
|
135
|
+
readonly fontSize: {
|
|
136
|
+
readonly type: "number";
|
|
137
|
+
};
|
|
138
|
+
readonly lineHeight: {
|
|
139
|
+
readonly type: "number";
|
|
140
|
+
};
|
|
141
|
+
readonly align: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
readonly enum: readonly ["left", "center", "right", "justify"];
|
|
144
|
+
};
|
|
145
|
+
readonly color: {
|
|
146
|
+
readonly type: "string";
|
|
147
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
148
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
149
|
+
};
|
|
150
|
+
readonly bgColor: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
153
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
154
|
+
};
|
|
155
|
+
readonly spaceBefore: {
|
|
156
|
+
readonly type: "number";
|
|
157
|
+
readonly description: "Space in points (pt)";
|
|
158
|
+
};
|
|
159
|
+
readonly spaceAfter: {
|
|
160
|
+
readonly type: "number";
|
|
161
|
+
readonly description: "Space in points (pt)";
|
|
162
|
+
};
|
|
163
|
+
readonly keepTogether: {
|
|
164
|
+
readonly type: "boolean";
|
|
165
|
+
};
|
|
166
|
+
readonly underline: {
|
|
167
|
+
readonly type: "boolean";
|
|
168
|
+
};
|
|
169
|
+
readonly strikethrough: {
|
|
170
|
+
readonly type: "boolean";
|
|
171
|
+
};
|
|
172
|
+
readonly bookmark: {
|
|
173
|
+
readonly type: "boolean";
|
|
174
|
+
readonly const: false;
|
|
175
|
+
};
|
|
176
|
+
readonly anchor: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
};
|
|
179
|
+
readonly url: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
readonly format: "uri";
|
|
182
|
+
};
|
|
183
|
+
readonly letterSpacing: {
|
|
184
|
+
readonly type: "number";
|
|
185
|
+
};
|
|
186
|
+
readonly smallCaps: {
|
|
187
|
+
readonly type: "boolean";
|
|
188
|
+
};
|
|
189
|
+
readonly tabularNumbers: {
|
|
190
|
+
readonly type: "boolean";
|
|
191
|
+
readonly description: "Render digits at fixed slot width for aligned numeric columns.";
|
|
192
|
+
};
|
|
193
|
+
readonly hyphenate: {
|
|
194
|
+
readonly type: "boolean";
|
|
195
|
+
readonly const: false;
|
|
196
|
+
readonly description: "Set to false to disable hyphenation for this element.";
|
|
197
|
+
};
|
|
198
|
+
readonly annotation: {
|
|
199
|
+
readonly type: "object";
|
|
200
|
+
readonly required: readonly ["contents"];
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly contents: {
|
|
203
|
+
readonly type: "string";
|
|
204
|
+
};
|
|
205
|
+
readonly author: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
};
|
|
208
|
+
readonly color: {
|
|
209
|
+
readonly type: "string";
|
|
210
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
211
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
212
|
+
};
|
|
213
|
+
readonly open: {
|
|
214
|
+
readonly type: "boolean";
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
export declare const blockquoteSchema: {
|
|
221
|
+
readonly type: "object";
|
|
222
|
+
readonly required: readonly ["type", "text"];
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly type: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly const: "blockquote";
|
|
227
|
+
};
|
|
228
|
+
readonly text: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
};
|
|
231
|
+
readonly dir: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
234
|
+
};
|
|
235
|
+
readonly borderColor: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
238
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
239
|
+
};
|
|
240
|
+
readonly borderWidth: {
|
|
241
|
+
readonly type: "number";
|
|
242
|
+
};
|
|
243
|
+
readonly bgColor: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
246
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
247
|
+
};
|
|
248
|
+
readonly color: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
251
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
252
|
+
};
|
|
253
|
+
readonly fontFamily: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
};
|
|
256
|
+
readonly fontWeight: {
|
|
257
|
+
readonly type: "number";
|
|
258
|
+
readonly enum: readonly [400, 700];
|
|
259
|
+
};
|
|
260
|
+
readonly fontStyle: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
readonly enum: readonly ["normal", "italic"];
|
|
263
|
+
};
|
|
264
|
+
readonly fontSize: {
|
|
265
|
+
readonly type: "number";
|
|
266
|
+
};
|
|
267
|
+
readonly lineHeight: {
|
|
268
|
+
readonly type: "number";
|
|
269
|
+
};
|
|
270
|
+
readonly padding: {
|
|
271
|
+
readonly type: "number";
|
|
272
|
+
readonly description: "Shorthand for paddingH and paddingV.";
|
|
273
|
+
};
|
|
274
|
+
readonly paddingH: {
|
|
275
|
+
readonly type: "number";
|
|
276
|
+
readonly description: "Horizontal padding inside box in pt. Default: 16";
|
|
277
|
+
};
|
|
278
|
+
readonly paddingV: {
|
|
279
|
+
readonly type: "number";
|
|
280
|
+
readonly description: "Vertical padding inside box in pt. Default: 10";
|
|
281
|
+
};
|
|
282
|
+
readonly align: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly enum: readonly ["left", "center", "right", "justify"];
|
|
285
|
+
};
|
|
286
|
+
readonly spaceBefore: {
|
|
287
|
+
readonly type: "number";
|
|
288
|
+
readonly description: "Space in points (pt)";
|
|
289
|
+
};
|
|
290
|
+
readonly spaceAfter: {
|
|
291
|
+
readonly type: "number";
|
|
292
|
+
readonly description: "Space in points (pt)";
|
|
293
|
+
};
|
|
294
|
+
readonly keepTogether: {
|
|
295
|
+
readonly type: "boolean";
|
|
296
|
+
};
|
|
297
|
+
readonly underline: {
|
|
298
|
+
readonly type: "boolean";
|
|
299
|
+
};
|
|
300
|
+
readonly strikethrough: {
|
|
301
|
+
readonly type: "boolean";
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
export declare const codeSchema: {
|
|
306
|
+
readonly type: "object";
|
|
307
|
+
readonly required: readonly ["type", "text", "fontFamily"];
|
|
308
|
+
readonly properties: {
|
|
309
|
+
readonly type: {
|
|
310
|
+
readonly type: "string";
|
|
311
|
+
readonly const: "code";
|
|
312
|
+
};
|
|
313
|
+
readonly text: {
|
|
314
|
+
readonly type: "string";
|
|
315
|
+
};
|
|
316
|
+
readonly fontFamily: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly description: "Monospace font family (must be loaded in doc.fonts)";
|
|
319
|
+
};
|
|
320
|
+
readonly fontSize: {
|
|
321
|
+
readonly type: "number";
|
|
322
|
+
};
|
|
323
|
+
readonly lineHeight: {
|
|
324
|
+
readonly type: "number";
|
|
325
|
+
};
|
|
326
|
+
readonly bgColor: {
|
|
327
|
+
readonly type: "string";
|
|
328
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
329
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
330
|
+
};
|
|
331
|
+
readonly color: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
334
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
335
|
+
};
|
|
336
|
+
readonly padding: {
|
|
337
|
+
readonly type: "number";
|
|
338
|
+
};
|
|
339
|
+
readonly spaceAfter: {
|
|
340
|
+
readonly type: "number";
|
|
341
|
+
readonly description: "Space in points (pt)";
|
|
342
|
+
};
|
|
343
|
+
readonly spaceBefore: {
|
|
344
|
+
readonly type: "number";
|
|
345
|
+
readonly description: "Space in points (pt)";
|
|
346
|
+
};
|
|
347
|
+
readonly keepTogether: {
|
|
348
|
+
readonly type: "boolean";
|
|
349
|
+
};
|
|
350
|
+
readonly language: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly description: "e.g. 'javascript', 'typescript', 'python'";
|
|
353
|
+
};
|
|
354
|
+
readonly dir: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
357
|
+
};
|
|
358
|
+
readonly highlightTheme: {
|
|
359
|
+
readonly type: "object";
|
|
360
|
+
readonly description: "Custom syntax highlight colors (6-digit hex). Overrides default GitHub-light theme.";
|
|
361
|
+
readonly properties: {
|
|
362
|
+
readonly keyword: {
|
|
363
|
+
readonly type: "string";
|
|
364
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
365
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
366
|
+
};
|
|
367
|
+
readonly string: {
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
370
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
371
|
+
};
|
|
372
|
+
readonly comment: {
|
|
373
|
+
readonly type: "string";
|
|
374
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
375
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
376
|
+
};
|
|
377
|
+
readonly number: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
380
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
381
|
+
};
|
|
382
|
+
readonly function: {
|
|
383
|
+
readonly type: "string";
|
|
384
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
385
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
386
|
+
};
|
|
387
|
+
readonly punctuation: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
390
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
391
|
+
};
|
|
392
|
+
readonly type: {
|
|
393
|
+
readonly type: "string";
|
|
394
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
395
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
396
|
+
};
|
|
397
|
+
readonly built_in: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
400
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
401
|
+
};
|
|
402
|
+
readonly literal: {
|
|
403
|
+
readonly type: "string";
|
|
404
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
405
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
export declare const calloutSchema: {
|
|
412
|
+
readonly type: "object";
|
|
413
|
+
readonly required: readonly ["type", "content"];
|
|
414
|
+
readonly properties: {
|
|
415
|
+
readonly type: {
|
|
416
|
+
readonly type: "string";
|
|
417
|
+
readonly const: "callout";
|
|
418
|
+
};
|
|
419
|
+
readonly content: {
|
|
420
|
+
readonly type: "string";
|
|
421
|
+
};
|
|
422
|
+
readonly style: {
|
|
423
|
+
readonly type: "string";
|
|
424
|
+
readonly enum: readonly ["info", "warning", "tip", "note"];
|
|
425
|
+
};
|
|
426
|
+
readonly title: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
};
|
|
429
|
+
readonly backgroundColor: {
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
432
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
433
|
+
};
|
|
434
|
+
readonly borderColor: {
|
|
435
|
+
readonly type: "string";
|
|
436
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
437
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
438
|
+
};
|
|
439
|
+
readonly color: {
|
|
440
|
+
readonly type: "string";
|
|
441
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
442
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
443
|
+
};
|
|
444
|
+
readonly titleColor: {
|
|
445
|
+
readonly type: "string";
|
|
446
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
447
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
448
|
+
};
|
|
449
|
+
readonly fontFamily: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
};
|
|
452
|
+
readonly fontWeight: {
|
|
453
|
+
readonly type: "number";
|
|
454
|
+
readonly enum: readonly [400, 700];
|
|
455
|
+
};
|
|
456
|
+
readonly fontSize: {
|
|
457
|
+
readonly type: "number";
|
|
458
|
+
};
|
|
459
|
+
readonly lineHeight: {
|
|
460
|
+
readonly type: "number";
|
|
461
|
+
};
|
|
462
|
+
readonly padding: {
|
|
463
|
+
readonly type: "number";
|
|
464
|
+
readonly description: "Shorthand for paddingH and paddingV. Default: 12";
|
|
465
|
+
};
|
|
466
|
+
readonly paddingH: {
|
|
467
|
+
readonly type: "number";
|
|
468
|
+
readonly description: "Horizontal padding inside box in pt. Default: 16";
|
|
469
|
+
};
|
|
470
|
+
readonly paddingV: {
|
|
471
|
+
readonly type: "number";
|
|
472
|
+
readonly description: "Vertical padding inside box in pt. Default: 10";
|
|
473
|
+
};
|
|
474
|
+
readonly spaceBefore: {
|
|
475
|
+
readonly type: "number";
|
|
476
|
+
readonly description: "Space in points (pt)";
|
|
477
|
+
};
|
|
478
|
+
readonly spaceAfter: {
|
|
479
|
+
readonly type: "number";
|
|
480
|
+
readonly description: "Space in points (pt)";
|
|
481
|
+
};
|
|
482
|
+
readonly keepTogether: {
|
|
483
|
+
readonly type: "boolean";
|
|
484
|
+
};
|
|
485
|
+
readonly dir: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
export declare const richParagraphSchema: {
|
|
492
|
+
readonly type: "object";
|
|
493
|
+
readonly required: readonly ["type", "spans"];
|
|
494
|
+
readonly properties: {
|
|
495
|
+
readonly type: {
|
|
496
|
+
readonly type: "string";
|
|
497
|
+
readonly const: "rich-paragraph";
|
|
498
|
+
};
|
|
499
|
+
readonly spans: {
|
|
500
|
+
readonly type: "array";
|
|
501
|
+
readonly items: {
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
readonly required: readonly ["text"];
|
|
504
|
+
readonly properties: {
|
|
505
|
+
readonly text: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
};
|
|
508
|
+
readonly dir: {
|
|
509
|
+
readonly type: "string";
|
|
510
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
511
|
+
};
|
|
512
|
+
readonly fontFamily: {
|
|
513
|
+
readonly type: "string";
|
|
514
|
+
};
|
|
515
|
+
readonly fontWeight: {
|
|
516
|
+
readonly type: "number";
|
|
517
|
+
readonly enum: readonly [400, 700];
|
|
518
|
+
};
|
|
519
|
+
readonly fontStyle: {
|
|
520
|
+
readonly type: "string";
|
|
521
|
+
readonly enum: readonly ["normal", "italic"];
|
|
522
|
+
};
|
|
523
|
+
readonly color: {
|
|
524
|
+
readonly type: "string";
|
|
525
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
526
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
527
|
+
};
|
|
528
|
+
readonly fontSize: {
|
|
529
|
+
readonly type: "number";
|
|
530
|
+
};
|
|
531
|
+
readonly underline: {
|
|
532
|
+
readonly type: "boolean";
|
|
533
|
+
};
|
|
534
|
+
readonly strikethrough: {
|
|
535
|
+
readonly type: "boolean";
|
|
536
|
+
};
|
|
537
|
+
readonly url: {
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
};
|
|
540
|
+
readonly href: {
|
|
541
|
+
readonly type: "string";
|
|
542
|
+
};
|
|
543
|
+
readonly verticalAlign: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly enum: readonly ["superscript", "subscript"];
|
|
546
|
+
};
|
|
547
|
+
readonly smallCaps: {
|
|
548
|
+
readonly type: "boolean";
|
|
549
|
+
};
|
|
550
|
+
readonly letterSpacing: {
|
|
551
|
+
readonly type: "number";
|
|
552
|
+
};
|
|
553
|
+
readonly footnoteRef: {
|
|
554
|
+
readonly type: "string";
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
readonly dir: {
|
|
560
|
+
readonly type: "string";
|
|
561
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
562
|
+
};
|
|
563
|
+
readonly fontSize: {
|
|
564
|
+
readonly type: "number";
|
|
565
|
+
};
|
|
566
|
+
readonly lineHeight: {
|
|
567
|
+
readonly type: "number";
|
|
568
|
+
};
|
|
569
|
+
readonly align: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly enum: readonly ["left", "center", "right", "justify"];
|
|
572
|
+
};
|
|
573
|
+
readonly bgColor: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
576
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
577
|
+
};
|
|
578
|
+
readonly spaceBefore: {
|
|
579
|
+
readonly type: "number";
|
|
580
|
+
readonly description: "Space in points (pt)";
|
|
581
|
+
};
|
|
582
|
+
readonly spaceAfter: {
|
|
583
|
+
readonly type: "number";
|
|
584
|
+
readonly description: "Space in points (pt)";
|
|
585
|
+
};
|
|
586
|
+
readonly keepTogether: {
|
|
587
|
+
readonly type: "boolean";
|
|
588
|
+
};
|
|
589
|
+
readonly letterSpacing: {
|
|
590
|
+
readonly type: "number";
|
|
591
|
+
};
|
|
592
|
+
readonly smallCaps: {
|
|
593
|
+
readonly type: "boolean";
|
|
594
|
+
};
|
|
595
|
+
readonly tabularNumbers: {
|
|
596
|
+
readonly type: "boolean";
|
|
597
|
+
readonly description: "Render digits at fixed slot width for aligned numeric columns.";
|
|
598
|
+
};
|
|
599
|
+
readonly columns: {
|
|
600
|
+
readonly type: "number";
|
|
601
|
+
readonly description: "Number of columns for multi-column layout. Default: 1";
|
|
602
|
+
};
|
|
603
|
+
readonly columnGap: {
|
|
604
|
+
readonly type: "number";
|
|
605
|
+
readonly description: "Gap between columns in pt. Default: 24";
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
export declare const listSchema: {
|
|
610
|
+
readonly type: "object";
|
|
611
|
+
readonly required: readonly ["type", "style", "items"];
|
|
612
|
+
readonly properties: {
|
|
613
|
+
readonly type: {
|
|
614
|
+
readonly type: "string";
|
|
615
|
+
readonly const: "list";
|
|
616
|
+
};
|
|
617
|
+
readonly style: {
|
|
618
|
+
readonly type: "string";
|
|
619
|
+
readonly enum: readonly ["ordered", "unordered"];
|
|
620
|
+
};
|
|
621
|
+
readonly items: {
|
|
622
|
+
readonly type: "array";
|
|
623
|
+
readonly items: {
|
|
624
|
+
readonly type: "object";
|
|
625
|
+
readonly required: readonly ["text"];
|
|
626
|
+
readonly properties: {
|
|
627
|
+
readonly text: {
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
};
|
|
630
|
+
readonly dir: {
|
|
631
|
+
readonly type: "string";
|
|
632
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
633
|
+
};
|
|
634
|
+
readonly fontWeight: {
|
|
635
|
+
readonly type: "number";
|
|
636
|
+
readonly enum: readonly [400, 700];
|
|
637
|
+
};
|
|
638
|
+
readonly items: {
|
|
639
|
+
readonly type: "array";
|
|
640
|
+
readonly description: "Nested list items (up to 2 levels)";
|
|
641
|
+
readonly items: {
|
|
642
|
+
readonly type: "object";
|
|
643
|
+
readonly required: readonly ["text"];
|
|
644
|
+
readonly properties: {
|
|
645
|
+
readonly text: {
|
|
646
|
+
readonly type: "string";
|
|
647
|
+
};
|
|
648
|
+
readonly dir: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
readonly enum: readonly ["ltr", "rtl", "auto"];
|
|
651
|
+
};
|
|
652
|
+
readonly fontWeight: {
|
|
653
|
+
readonly type: "number";
|
|
654
|
+
readonly enum: readonly [400, 700];
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly marker: {
|
|
663
|
+
readonly type: "string";
|
|
664
|
+
};
|
|
665
|
+
readonly indent: {
|
|
666
|
+
readonly type: "number";
|
|
667
|
+
};
|
|
668
|
+
readonly markerWidth: {
|
|
669
|
+
readonly type: "number";
|
|
670
|
+
readonly description: "Width reserved for marker column in pt. Default: 20";
|
|
671
|
+
};
|
|
672
|
+
readonly fontSize: {
|
|
673
|
+
readonly type: "number";
|
|
674
|
+
};
|
|
675
|
+
readonly lineHeight: {
|
|
676
|
+
readonly type: "number";
|
|
677
|
+
};
|
|
678
|
+
readonly itemSpaceAfter: {
|
|
679
|
+
readonly type: "number";
|
|
680
|
+
readonly description: "Space between list items in pt. Default: 4";
|
|
681
|
+
};
|
|
682
|
+
readonly nestedNumberingStyle: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
readonly enum: readonly ["continue", "restart"];
|
|
685
|
+
readonly description: "How nested ordered counters behave. Default: continue";
|
|
686
|
+
};
|
|
687
|
+
readonly color: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
readonly pattern: "^#[0-9A-Fa-f]{6}$";
|
|
690
|
+
readonly description: "6-digit hex color e.g. #FF0000";
|
|
691
|
+
};
|
|
692
|
+
readonly spaceAfter: {
|
|
693
|
+
readonly type: "number";
|
|
694
|
+
readonly description: "Space in points (pt)";
|
|
695
|
+
};
|
|
696
|
+
readonly spaceBefore: {
|
|
697
|
+
readonly type: "number";
|
|
698
|
+
readonly description: "Space in points (pt)";
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
export declare const tocSchema: {
|
|
703
|
+
readonly type: "object";
|
|
704
|
+
readonly required: readonly ["type"];
|
|
705
|
+
readonly properties: {
|
|
706
|
+
readonly type: {
|
|
707
|
+
readonly type: "string";
|
|
708
|
+
readonly const: "toc";
|
|
709
|
+
};
|
|
710
|
+
readonly title: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
};
|
|
713
|
+
readonly showTitle: {
|
|
714
|
+
readonly type: "boolean";
|
|
715
|
+
};
|
|
716
|
+
readonly minLevel: {
|
|
717
|
+
readonly type: "number";
|
|
718
|
+
readonly enum: readonly [1, 2, 3, 4];
|
|
719
|
+
};
|
|
720
|
+
readonly maxLevel: {
|
|
721
|
+
readonly type: "number";
|
|
722
|
+
readonly enum: readonly [1, 2, 3, 4];
|
|
723
|
+
};
|
|
724
|
+
readonly fontSize: {
|
|
725
|
+
readonly type: "number";
|
|
726
|
+
};
|
|
727
|
+
readonly titleFontSize: {
|
|
728
|
+
readonly type: "number";
|
|
729
|
+
readonly description: "Font size for TOC title. Default: fontSize + 4";
|
|
730
|
+
};
|
|
731
|
+
readonly levelIndent: {
|
|
732
|
+
readonly type: "number";
|
|
733
|
+
readonly description: "Indentation per level in pt. Default: 16";
|
|
734
|
+
};
|
|
735
|
+
readonly leader: {
|
|
736
|
+
readonly type: "string";
|
|
737
|
+
readonly description: "Leader character between entry and page number. Default: .";
|
|
738
|
+
};
|
|
739
|
+
readonly entrySpacing: {
|
|
740
|
+
readonly type: "number";
|
|
741
|
+
readonly description: "Space after each entry line in pt. Default: 4";
|
|
742
|
+
};
|
|
743
|
+
readonly fontFamily: {
|
|
744
|
+
readonly type: "string";
|
|
745
|
+
};
|
|
746
|
+
readonly spaceBefore: {
|
|
747
|
+
readonly type: "number";
|
|
748
|
+
readonly description: "Space in points (pt)";
|
|
749
|
+
};
|
|
750
|
+
readonly spaceAfter: {
|
|
751
|
+
readonly type: "number";
|
|
752
|
+
readonly description: "Space in points (pt)";
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
export declare const footnoteDefSchema: {
|
|
757
|
+
readonly type: "object";
|
|
758
|
+
readonly required: readonly ["type", "id", "text"];
|
|
759
|
+
readonly properties: {
|
|
760
|
+
readonly type: {
|
|
761
|
+
readonly type: "string";
|
|
762
|
+
readonly const: "footnote-def";
|
|
763
|
+
};
|
|
764
|
+
readonly id: {
|
|
765
|
+
readonly type: "string";
|
|
766
|
+
};
|
|
767
|
+
readonly text: {
|
|
768
|
+
readonly type: "string";
|
|
769
|
+
};
|
|
770
|
+
readonly fontSize: {
|
|
771
|
+
readonly type: "number";
|
|
772
|
+
};
|
|
773
|
+
readonly fontFamily: {
|
|
774
|
+
readonly type: "string";
|
|
775
|
+
};
|
|
776
|
+
readonly spaceAfter: {
|
|
777
|
+
readonly type: "number";
|
|
778
|
+
readonly description: "Space in points (pt)";
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
//# sourceMappingURL=elements-text.d.ts.map
|