@blockslides/ai-context 0.1.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/LICENSE.md +36 -0
- package/README.md +268 -0
- package/dist/index.cjs +806 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +704 -0
- package/dist/index.d.ts +704 -0
- package/dist/index.js +781 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
- package/src/bundles/v1/all.ts +26 -0
- package/src/bundles/v1/allContexts.ts +32 -0
- package/src/bundles/v1/allSchemas.ts +20 -0
- package/src/bundles/v1/imageEditing.ts +5 -0
- package/src/bundles/v1/index.ts +6 -0
- package/src/bundles/v1/minimalCreate.ts +5 -0
- package/src/contexts/v1/blockquote.ts +14 -0
- package/src/contexts/v1/bulletList.ts +15 -0
- package/src/contexts/v1/codeBlock.ts +15 -0
- package/src/contexts/v1/column.ts +15 -0
- package/src/contexts/v1/core.ts +17 -0
- package/src/contexts/v1/editingRules.ts +9 -0
- package/src/contexts/v1/hardBreak.ts +14 -0
- package/src/contexts/v1/heading.ts +15 -0
- package/src/contexts/v1/horizontalRule.ts +14 -0
- package/src/contexts/v1/image.ts +17 -0
- package/src/contexts/v1/imageBlock.ts +27 -0
- package/src/contexts/v1/index.ts +19 -0
- package/src/contexts/v1/output.fullDocument.ts +8 -0
- package/src/contexts/v1/paragraph.ts +14 -0
- package/src/contexts/v1/row.ts +17 -0
- package/src/contexts/v1/sizing.ts +8 -0
- package/src/contexts/v1/slide.ts +16 -0
- package/src/contexts/v1/style.ts +8 -0
- package/src/contexts/v1/youtube.ts +18 -0
- package/src/examples/v1/flyers.ts +30 -0
- package/src/examples/v1/index.ts +4 -0
- package/src/examples/v1/slides.ts +31 -0
- package/src/index.ts +7 -0
- package/src/recipes/v1/addTwoColumns.ts +13 -0
- package/src/recipes/v1/createSlide.ts +29 -0
- package/src/recipes/v1/editImageToCover.ts +13 -0
- package/src/recipes/v1/index.ts +5 -0
- package/src/schemas/v1/blockquote.schema.json +16 -0
- package/src/schemas/v1/bulletList.schema.json +16 -0
- package/src/schemas/v1/codeBlock.schema.json +19 -0
- package/src/schemas/v1/column.schema.json +23 -0
- package/src/schemas/v1/hardBreak.schema.json +16 -0
- package/src/schemas/v1/heading.schema.json +23 -0
- package/src/schemas/v1/horizontalRule.schema.json +16 -0
- package/src/schemas/v1/image.schema.json +23 -0
- package/src/schemas/v1/imageBlock.schema.json +31 -0
- package/src/schemas/v1/index.ts +14 -0
- package/src/schemas/v1/paragraph.schema.json +16 -0
- package/src/schemas/v1/row.schema.json +22 -0
- package/src/schemas/v1/slide.schema.json +32 -0
- package/src/schemas/v1/youtube.schema.json +22 -0
- package/src/types/v1.ts +55 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
declare const core: string;
|
|
2
|
+
|
|
3
|
+
declare const fullDocument: string;
|
|
4
|
+
|
|
5
|
+
declare const imageBlock: string;
|
|
6
|
+
|
|
7
|
+
declare const row: string;
|
|
8
|
+
|
|
9
|
+
declare const column: string;
|
|
10
|
+
|
|
11
|
+
declare const slide: string;
|
|
12
|
+
|
|
13
|
+
declare const style: string;
|
|
14
|
+
|
|
15
|
+
declare const editingRules: string;
|
|
16
|
+
|
|
17
|
+
declare const sizing: string;
|
|
18
|
+
|
|
19
|
+
declare const blockquote: string;
|
|
20
|
+
|
|
21
|
+
declare const bulletList: string;
|
|
22
|
+
|
|
23
|
+
declare const codeBlock: string;
|
|
24
|
+
|
|
25
|
+
declare const hardBreak: string;
|
|
26
|
+
|
|
27
|
+
declare const horizontalRule: string;
|
|
28
|
+
|
|
29
|
+
declare const image: string;
|
|
30
|
+
|
|
31
|
+
declare const heading: string;
|
|
32
|
+
|
|
33
|
+
declare const paragraph: string;
|
|
34
|
+
|
|
35
|
+
declare const youtube: string;
|
|
36
|
+
|
|
37
|
+
declare const index$4_blockquote: typeof blockquote;
|
|
38
|
+
declare const index$4_bulletList: typeof bulletList;
|
|
39
|
+
declare const index$4_codeBlock: typeof codeBlock;
|
|
40
|
+
declare const index$4_column: typeof column;
|
|
41
|
+
declare const index$4_core: typeof core;
|
|
42
|
+
declare const index$4_editingRules: typeof editingRules;
|
|
43
|
+
declare const index$4_fullDocument: typeof fullDocument;
|
|
44
|
+
declare const index$4_hardBreak: typeof hardBreak;
|
|
45
|
+
declare const index$4_heading: typeof heading;
|
|
46
|
+
declare const index$4_horizontalRule: typeof horizontalRule;
|
|
47
|
+
declare const index$4_image: typeof image;
|
|
48
|
+
declare const index$4_imageBlock: typeof imageBlock;
|
|
49
|
+
declare const index$4_paragraph: typeof paragraph;
|
|
50
|
+
declare const index$4_row: typeof row;
|
|
51
|
+
declare const index$4_sizing: typeof sizing;
|
|
52
|
+
declare const index$4_slide: typeof slide;
|
|
53
|
+
declare const index$4_style: typeof style;
|
|
54
|
+
declare const index$4_youtube: typeof youtube;
|
|
55
|
+
declare namespace index$4 {
|
|
56
|
+
export { index$4_blockquote as blockquote, index$4_bulletList as bulletList, index$4_codeBlock as codeBlock, index$4_column as column, index$4_core as core, index$4_editingRules as editingRules, index$4_fullDocument as fullDocument, index$4_hardBreak as hardBreak, index$4_heading as heading, index$4_horizontalRule as horizontalRule, index$4_image as image, index$4_imageBlock as imageBlock, index$4_paragraph as paragraph, index$4_row as row, index$4_sizing as sizing, index$4_slide as slide, index$4_style as style, index$4_youtube as youtube };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const slides: string;
|
|
60
|
+
|
|
61
|
+
declare const flyers: string;
|
|
62
|
+
|
|
63
|
+
declare const index$3_flyers: typeof flyers;
|
|
64
|
+
declare const index$3_slides: typeof slides;
|
|
65
|
+
declare namespace index$3 {
|
|
66
|
+
export { index$3_flyers as flyers, index$3_slides as slides };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare const minimalCreate: string;
|
|
70
|
+
|
|
71
|
+
declare const imageEditing: string;
|
|
72
|
+
|
|
73
|
+
declare const all: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Human- and AI-readable bundle of all v1 JSON Schemas.
|
|
77
|
+
*
|
|
78
|
+
* This is intended for:
|
|
79
|
+
* - LLMs that want to see the exact JSON Schema contracts
|
|
80
|
+
* - Tools that want a single text blob containing every schema
|
|
81
|
+
*
|
|
82
|
+
* Each schema is pretty-printed and prefixed with its key name.
|
|
83
|
+
*/
|
|
84
|
+
declare const allSchemas: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* All v1 context atoms concatenated into a single string.
|
|
88
|
+
*
|
|
89
|
+
* Intended for:
|
|
90
|
+
* - LLMs that should know about every supported node type and layout primitive
|
|
91
|
+
* - Power users who want a “maximal” context (structure + nodes + editing rules + sizing)
|
|
92
|
+
*/
|
|
93
|
+
declare const allContexts: string;
|
|
94
|
+
|
|
95
|
+
declare const index$2_all: typeof all;
|
|
96
|
+
declare const index$2_allContexts: typeof allContexts;
|
|
97
|
+
declare const index$2_allSchemas: typeof allSchemas;
|
|
98
|
+
declare const index$2_imageEditing: typeof imageEditing;
|
|
99
|
+
declare const index$2_minimalCreate: typeof minimalCreate;
|
|
100
|
+
declare namespace index$2 {
|
|
101
|
+
export { index$2_all as all, index$2_allContexts as allContexts, index$2_allSchemas as allSchemas, index$2_imageEditing as imageEditing, index$2_minimalCreate as minimalCreate };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare const createSlide: string;
|
|
105
|
+
|
|
106
|
+
declare const addTwoColumns: string;
|
|
107
|
+
|
|
108
|
+
declare const editImageToCover: string;
|
|
109
|
+
|
|
110
|
+
declare const index$1_addTwoColumns: typeof addTwoColumns;
|
|
111
|
+
declare const index$1_createSlide: typeof createSlide;
|
|
112
|
+
declare const index$1_editImageToCover: typeof editImageToCover;
|
|
113
|
+
declare namespace index$1 {
|
|
114
|
+
export { index$1_addTwoColumns as addTwoColumns, index$1_createSlide as createSlide, index$1_editImageToCover as editImageToCover };
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
var $schema$c = "https://json-schema.org/draft/2020-12/schema";
|
|
118
|
+
var title$c = "imageBlock";
|
|
119
|
+
var type$c = "object";
|
|
120
|
+
var properties$c = {
|
|
121
|
+
type: {
|
|
122
|
+
"const": "imageBlock"
|
|
123
|
+
},
|
|
124
|
+
attrs: {
|
|
125
|
+
type: "object",
|
|
126
|
+
properties: {
|
|
127
|
+
src: {
|
|
128
|
+
type: "string",
|
|
129
|
+
minLength: 1
|
|
130
|
+
},
|
|
131
|
+
alt: {
|
|
132
|
+
type: "string"
|
|
133
|
+
},
|
|
134
|
+
caption: {
|
|
135
|
+
type: "string"
|
|
136
|
+
},
|
|
137
|
+
credit: {
|
|
138
|
+
type: "string"
|
|
139
|
+
},
|
|
140
|
+
layout: {
|
|
141
|
+
"enum": [
|
|
142
|
+
"cover",
|
|
143
|
+
"contain",
|
|
144
|
+
"fill",
|
|
145
|
+
"focus",
|
|
146
|
+
"pattern",
|
|
147
|
+
null
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
align: {
|
|
151
|
+
"enum": [
|
|
152
|
+
"left",
|
|
153
|
+
"center",
|
|
154
|
+
"right",
|
|
155
|
+
"stretch",
|
|
156
|
+
null
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
width: {
|
|
160
|
+
type: [
|
|
161
|
+
"number",
|
|
162
|
+
"string",
|
|
163
|
+
"null"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
height: {
|
|
167
|
+
type: [
|
|
168
|
+
"number",
|
|
169
|
+
"string",
|
|
170
|
+
"null"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
fullBleed: {
|
|
174
|
+
type: "boolean"
|
|
175
|
+
},
|
|
176
|
+
assetId: {
|
|
177
|
+
type: [
|
|
178
|
+
"string",
|
|
179
|
+
"null"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
focalX: {
|
|
183
|
+
type: [
|
|
184
|
+
"number",
|
|
185
|
+
"null"
|
|
186
|
+
],
|
|
187
|
+
minimum: 0,
|
|
188
|
+
maximum: 100
|
|
189
|
+
},
|
|
190
|
+
focalY: {
|
|
191
|
+
type: [
|
|
192
|
+
"number",
|
|
193
|
+
"null"
|
|
194
|
+
],
|
|
195
|
+
minimum: 0,
|
|
196
|
+
maximum: 100
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
required: [
|
|
200
|
+
"src"
|
|
201
|
+
],
|
|
202
|
+
additionalProperties: false
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
var required$c = [
|
|
206
|
+
"type"
|
|
207
|
+
];
|
|
208
|
+
var additionalProperties$c = false;
|
|
209
|
+
var imageBlock_schema = {
|
|
210
|
+
$schema: $schema$c,
|
|
211
|
+
title: title$c,
|
|
212
|
+
type: type$c,
|
|
213
|
+
properties: properties$c,
|
|
214
|
+
required: required$c,
|
|
215
|
+
additionalProperties: additionalProperties$c
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
var $schema$b = "https://json-schema.org/draft/2020-12/schema";
|
|
219
|
+
var title$b = "row";
|
|
220
|
+
var type$b = "object";
|
|
221
|
+
var properties$b = {
|
|
222
|
+
type: {
|
|
223
|
+
"const": "row"
|
|
224
|
+
},
|
|
225
|
+
attrs: {
|
|
226
|
+
type: "object",
|
|
227
|
+
properties: {
|
|
228
|
+
layout: {
|
|
229
|
+
"enum": [
|
|
230
|
+
"",
|
|
231
|
+
"1",
|
|
232
|
+
"1-1",
|
|
233
|
+
"2-1",
|
|
234
|
+
"1-2",
|
|
235
|
+
"1-1-1",
|
|
236
|
+
"2-1-1",
|
|
237
|
+
"1-2-1",
|
|
238
|
+
"1-1-2",
|
|
239
|
+
"1-1-1-1",
|
|
240
|
+
null
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
className: {
|
|
244
|
+
type: [
|
|
245
|
+
"string",
|
|
246
|
+
"null"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
additionalProperties: true
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
var required$b = [
|
|
254
|
+
"type"
|
|
255
|
+
];
|
|
256
|
+
var additionalProperties$b = false;
|
|
257
|
+
var row_schema = {
|
|
258
|
+
$schema: $schema$b,
|
|
259
|
+
title: title$b,
|
|
260
|
+
type: type$b,
|
|
261
|
+
properties: properties$b,
|
|
262
|
+
required: required$b,
|
|
263
|
+
additionalProperties: additionalProperties$b
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
var $schema$a = "https://json-schema.org/draft/2020-12/schema";
|
|
267
|
+
var title$a = "column";
|
|
268
|
+
var type$a = "object";
|
|
269
|
+
var properties$a = {
|
|
270
|
+
type: {
|
|
271
|
+
"const": "column"
|
|
272
|
+
},
|
|
273
|
+
attrs: {
|
|
274
|
+
type: "object",
|
|
275
|
+
properties: {
|
|
276
|
+
className: {
|
|
277
|
+
type: [
|
|
278
|
+
"string",
|
|
279
|
+
"null"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
contentMode: {
|
|
283
|
+
"enum": [
|
|
284
|
+
"default",
|
|
285
|
+
null
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
verticalAlign: {
|
|
289
|
+
"enum": [
|
|
290
|
+
"top",
|
|
291
|
+
"center",
|
|
292
|
+
"bottom",
|
|
293
|
+
null
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
horizontalAlign: {
|
|
297
|
+
"enum": [
|
|
298
|
+
"left",
|
|
299
|
+
"center",
|
|
300
|
+
"right",
|
|
301
|
+
"stretch",
|
|
302
|
+
null
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
padding: {
|
|
306
|
+
"enum": [
|
|
307
|
+
"none",
|
|
308
|
+
null
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
additionalProperties: true
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
var required$a = [
|
|
316
|
+
"type"
|
|
317
|
+
];
|
|
318
|
+
var additionalProperties$a = false;
|
|
319
|
+
var column_schema = {
|
|
320
|
+
$schema: $schema$a,
|
|
321
|
+
title: title$a,
|
|
322
|
+
type: type$a,
|
|
323
|
+
properties: properties$a,
|
|
324
|
+
required: required$a,
|
|
325
|
+
additionalProperties: additionalProperties$a
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
var $schema$9 = "https://json-schema.org/draft/2020-12/schema";
|
|
329
|
+
var title$9 = "slide";
|
|
330
|
+
var type$9 = "object";
|
|
331
|
+
var properties$9 = {
|
|
332
|
+
type: {
|
|
333
|
+
"const": "slide"
|
|
334
|
+
},
|
|
335
|
+
attrs: {
|
|
336
|
+
type: "object",
|
|
337
|
+
properties: {
|
|
338
|
+
id: {
|
|
339
|
+
type: [
|
|
340
|
+
"string",
|
|
341
|
+
"null"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
className: {
|
|
345
|
+
type: [
|
|
346
|
+
"string",
|
|
347
|
+
"null"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
size: {
|
|
351
|
+
"enum": [
|
|
352
|
+
"16x9",
|
|
353
|
+
"4x3",
|
|
354
|
+
"a4-portrait",
|
|
355
|
+
"a4-landscape",
|
|
356
|
+
"letter-portrait",
|
|
357
|
+
"letter-landscape",
|
|
358
|
+
"linkedin-banner",
|
|
359
|
+
null
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
additionalProperties: true
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
var required$9 = [
|
|
367
|
+
"type"
|
|
368
|
+
];
|
|
369
|
+
var additionalProperties$9 = false;
|
|
370
|
+
var slide_schema = {
|
|
371
|
+
$schema: $schema$9,
|
|
372
|
+
title: title$9,
|
|
373
|
+
type: type$9,
|
|
374
|
+
properties: properties$9,
|
|
375
|
+
required: required$9,
|
|
376
|
+
additionalProperties: additionalProperties$9
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
var $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
380
|
+
var title$8 = "blockquote";
|
|
381
|
+
var type$8 = "object";
|
|
382
|
+
var properties$8 = {
|
|
383
|
+
type: {
|
|
384
|
+
"const": "blockquote"
|
|
385
|
+
},
|
|
386
|
+
attrs: {
|
|
387
|
+
type: "object",
|
|
388
|
+
additionalProperties: true
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
var required$8 = [
|
|
392
|
+
"type"
|
|
393
|
+
];
|
|
394
|
+
var additionalProperties$8 = false;
|
|
395
|
+
var blockquote_schema = {
|
|
396
|
+
$schema: $schema$8,
|
|
397
|
+
title: title$8,
|
|
398
|
+
type: type$8,
|
|
399
|
+
properties: properties$8,
|
|
400
|
+
required: required$8,
|
|
401
|
+
additionalProperties: additionalProperties$8
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
var $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
405
|
+
var title$7 = "bulletList";
|
|
406
|
+
var type$7 = "object";
|
|
407
|
+
var properties$7 = {
|
|
408
|
+
type: {
|
|
409
|
+
"const": "bulletList"
|
|
410
|
+
},
|
|
411
|
+
attrs: {
|
|
412
|
+
type: "object",
|
|
413
|
+
additionalProperties: true
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
var required$7 = [
|
|
417
|
+
"type"
|
|
418
|
+
];
|
|
419
|
+
var additionalProperties$7 = false;
|
|
420
|
+
var bulletList_schema = {
|
|
421
|
+
$schema: $schema$7,
|
|
422
|
+
title: title$7,
|
|
423
|
+
type: type$7,
|
|
424
|
+
properties: properties$7,
|
|
425
|
+
required: required$7,
|
|
426
|
+
additionalProperties: additionalProperties$7
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
var $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
430
|
+
var title$6 = "codeBlock";
|
|
431
|
+
var type$6 = "object";
|
|
432
|
+
var properties$6 = {
|
|
433
|
+
type: {
|
|
434
|
+
"const": "codeBlock"
|
|
435
|
+
},
|
|
436
|
+
attrs: {
|
|
437
|
+
type: "object",
|
|
438
|
+
properties: {
|
|
439
|
+
language: {
|
|
440
|
+
type: [
|
|
441
|
+
"string",
|
|
442
|
+
"null"
|
|
443
|
+
]
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
additionalProperties: true
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
var required$6 = [
|
|
450
|
+
"type"
|
|
451
|
+
];
|
|
452
|
+
var additionalProperties$6 = false;
|
|
453
|
+
var codeBlock_schema = {
|
|
454
|
+
$schema: $schema$6,
|
|
455
|
+
title: title$6,
|
|
456
|
+
type: type$6,
|
|
457
|
+
properties: properties$6,
|
|
458
|
+
required: required$6,
|
|
459
|
+
additionalProperties: additionalProperties$6
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
var $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
463
|
+
var title$5 = "hardBreak";
|
|
464
|
+
var type$5 = "object";
|
|
465
|
+
var properties$5 = {
|
|
466
|
+
type: {
|
|
467
|
+
"const": "hardBreak"
|
|
468
|
+
},
|
|
469
|
+
attrs: {
|
|
470
|
+
type: "object",
|
|
471
|
+
additionalProperties: true
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
var required$5 = [
|
|
475
|
+
"type"
|
|
476
|
+
];
|
|
477
|
+
var additionalProperties$5 = false;
|
|
478
|
+
var hardBreak_schema = {
|
|
479
|
+
$schema: $schema$5,
|
|
480
|
+
title: title$5,
|
|
481
|
+
type: type$5,
|
|
482
|
+
properties: properties$5,
|
|
483
|
+
required: required$5,
|
|
484
|
+
additionalProperties: additionalProperties$5
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
var $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
488
|
+
var title$4 = "horizontalRule";
|
|
489
|
+
var type$4 = "object";
|
|
490
|
+
var properties$4 = {
|
|
491
|
+
type: {
|
|
492
|
+
"const": "horizontalRule"
|
|
493
|
+
},
|
|
494
|
+
attrs: {
|
|
495
|
+
type: "object",
|
|
496
|
+
additionalProperties: true
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
var required$4 = [
|
|
500
|
+
"type"
|
|
501
|
+
];
|
|
502
|
+
var additionalProperties$4 = false;
|
|
503
|
+
var horizontalRule_schema = {
|
|
504
|
+
$schema: $schema$4,
|
|
505
|
+
title: title$4,
|
|
506
|
+
type: type$4,
|
|
507
|
+
properties: properties$4,
|
|
508
|
+
required: required$4,
|
|
509
|
+
additionalProperties: additionalProperties$4
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
var $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
513
|
+
var title$3 = "image";
|
|
514
|
+
var type$3 = "object";
|
|
515
|
+
var properties$3 = {
|
|
516
|
+
type: {
|
|
517
|
+
"const": "image"
|
|
518
|
+
},
|
|
519
|
+
attrs: {
|
|
520
|
+
type: "object",
|
|
521
|
+
properties: {
|
|
522
|
+
src: {
|
|
523
|
+
type: [
|
|
524
|
+
"string",
|
|
525
|
+
"null"
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
alt: {
|
|
529
|
+
type: [
|
|
530
|
+
"string",
|
|
531
|
+
"null"
|
|
532
|
+
]
|
|
533
|
+
},
|
|
534
|
+
title: {
|
|
535
|
+
type: [
|
|
536
|
+
"string",
|
|
537
|
+
"null"
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
width: {
|
|
541
|
+
type: [
|
|
542
|
+
"number",
|
|
543
|
+
"null"
|
|
544
|
+
]
|
|
545
|
+
},
|
|
546
|
+
height: {
|
|
547
|
+
type: [
|
|
548
|
+
"number",
|
|
549
|
+
"null"
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
additionalProperties: true
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
var required$3 = [
|
|
557
|
+
"type"
|
|
558
|
+
];
|
|
559
|
+
var additionalProperties$3 = false;
|
|
560
|
+
var image_schema = {
|
|
561
|
+
$schema: $schema$3,
|
|
562
|
+
title: title$3,
|
|
563
|
+
type: type$3,
|
|
564
|
+
properties: properties$3,
|
|
565
|
+
required: required$3,
|
|
566
|
+
additionalProperties: additionalProperties$3
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
var $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
570
|
+
var title$2 = "heading";
|
|
571
|
+
var type$2 = "object";
|
|
572
|
+
var properties$2 = {
|
|
573
|
+
type: {
|
|
574
|
+
"const": "heading"
|
|
575
|
+
},
|
|
576
|
+
attrs: {
|
|
577
|
+
type: "object",
|
|
578
|
+
properties: {
|
|
579
|
+
level: {
|
|
580
|
+
type: "integer",
|
|
581
|
+
minimum: 1,
|
|
582
|
+
maximum: 6
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
additionalProperties: true
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
var required$2 = [
|
|
589
|
+
"type"
|
|
590
|
+
];
|
|
591
|
+
var additionalProperties$2 = false;
|
|
592
|
+
var heading_schema = {
|
|
593
|
+
$schema: $schema$2,
|
|
594
|
+
title: title$2,
|
|
595
|
+
type: type$2,
|
|
596
|
+
properties: properties$2,
|
|
597
|
+
required: required$2,
|
|
598
|
+
additionalProperties: additionalProperties$2
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
var $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
602
|
+
var title$1 = "paragraph";
|
|
603
|
+
var type$1 = "object";
|
|
604
|
+
var properties$1 = {
|
|
605
|
+
type: {
|
|
606
|
+
"const": "paragraph"
|
|
607
|
+
},
|
|
608
|
+
attrs: {
|
|
609
|
+
type: "object",
|
|
610
|
+
additionalProperties: true
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
var required$1 = [
|
|
614
|
+
"type"
|
|
615
|
+
];
|
|
616
|
+
var additionalProperties$1 = false;
|
|
617
|
+
var paragraph_schema = {
|
|
618
|
+
$schema: $schema$1,
|
|
619
|
+
title: title$1,
|
|
620
|
+
type: type$1,
|
|
621
|
+
properties: properties$1,
|
|
622
|
+
required: required$1,
|
|
623
|
+
additionalProperties: additionalProperties$1
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
var $schema = "https://json-schema.org/draft/2020-12/schema";
|
|
627
|
+
var title = "youtube";
|
|
628
|
+
var type = "object";
|
|
629
|
+
var properties = {
|
|
630
|
+
type: {
|
|
631
|
+
"const": "youtube"
|
|
632
|
+
},
|
|
633
|
+
attrs: {
|
|
634
|
+
type: "object",
|
|
635
|
+
properties: {
|
|
636
|
+
src: {
|
|
637
|
+
type: [
|
|
638
|
+
"string",
|
|
639
|
+
"null"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
start: {
|
|
643
|
+
type: "number"
|
|
644
|
+
},
|
|
645
|
+
width: {
|
|
646
|
+
type: "number"
|
|
647
|
+
},
|
|
648
|
+
height: {
|
|
649
|
+
type: "number"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
additionalProperties: true
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
var required = [
|
|
656
|
+
"type"
|
|
657
|
+
];
|
|
658
|
+
var additionalProperties = false;
|
|
659
|
+
var youtube_schema = {
|
|
660
|
+
$schema: $schema,
|
|
661
|
+
title: title,
|
|
662
|
+
type: type,
|
|
663
|
+
properties: properties,
|
|
664
|
+
required: required,
|
|
665
|
+
additionalProperties: additionalProperties
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
declare namespace index {
|
|
669
|
+
export { blockquote_schema as blockquote, bulletList_schema as bulletList, codeBlock_schema as codeBlock, column_schema as column, hardBreak_schema as hardBreak, heading_schema as heading, horizontalRule_schema as horizontalRule, image_schema as image, imageBlock_schema as imageBlock, paragraph_schema as paragraph, row_schema as row, slide_schema as slide, youtube_schema as youtube };
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
type SizeKey = "16x9" | "4x3" | "a4-portrait" | "a4-landscape" | "letter-portrait" | "letter-landscape" | "linkedin-banner";
|
|
673
|
+
interface SlideAttrs {
|
|
674
|
+
id?: string | null;
|
|
675
|
+
className?: string | null;
|
|
676
|
+
size?: SizeKey | null;
|
|
677
|
+
}
|
|
678
|
+
interface RowAttrs {
|
|
679
|
+
layout?: "" | "1" | "1-1" | "2-1" | "1-2" | "1-1-1" | "2-1-1" | "1-2-1" | "1-1-2" | "1-1-1-1" | null;
|
|
680
|
+
className?: string | null;
|
|
681
|
+
}
|
|
682
|
+
interface ColumnAttrs {
|
|
683
|
+
className?: string | null;
|
|
684
|
+
contentMode?: "default";
|
|
685
|
+
verticalAlign?: "top" | "center" | "bottom";
|
|
686
|
+
horizontalAlign?: "left" | "center" | "right" | "stretch";
|
|
687
|
+
padding?: "none";
|
|
688
|
+
}
|
|
689
|
+
interface ImageBlockAttrs {
|
|
690
|
+
src: string;
|
|
691
|
+
assetId?: string | null;
|
|
692
|
+
alt?: string;
|
|
693
|
+
caption?: string;
|
|
694
|
+
credit?: string;
|
|
695
|
+
layout?: "cover" | "contain" | "fill" | "focus" | "pattern" | null;
|
|
696
|
+
align?: "left" | "center" | "right" | "stretch" | null;
|
|
697
|
+
width?: string | number | null;
|
|
698
|
+
height?: string | number | null;
|
|
699
|
+
fullBleed?: boolean;
|
|
700
|
+
focalX?: number | null;
|
|
701
|
+
focalY?: number | null;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export { type ColumnAttrs, type ImageBlockAttrs, type RowAttrs, type SizeKey, type SlideAttrs, index$2 as bundlesV1, index$4 as contextsV1, index$3 as examplesV1, index$1 as recipesV1, index as schemasV1 };
|