astronaut-cms 1.0.0 → 1.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.
Files changed (85) hide show
  1. package/dist/admin/THIRD_PARTY_LICENSES.md +88 -40
  2. package/dist/admin/assets/assistant-DTlSNidc.js +235 -0
  3. package/dist/admin/assets/badge-BfN73-be.js +1 -0
  4. package/dist/admin/assets/changes-h1lmD7AA.js +1 -0
  5. package/dist/admin/assets/client-B4PWCmC4.js +5 -0
  6. package/dist/admin/assets/{collapsible-item-UaoJaaPw.js → collapsible-item-zlnNAUdM.js} +1 -1
  7. package/dist/admin/assets/{collapsible-B6P_J0Bg.js → collapsible-mcJ6G3X4.js} +1 -1
  8. package/dist/admin/assets/{collections._collection-BE1enDCq.js → collections._collection-D-rC9E9v.js} +1 -1
  9. package/dist/admin/assets/{collections._collection._entry-D3UksnCo.js → collections._collection._entry-UD8hLmC1.js} +33 -33
  10. package/dist/admin/assets/collections._collection.index-Cgc93hCD.js +1 -0
  11. package/dist/admin/assets/component-lookup-8lVQh8pl.js +4 -0
  12. package/dist/admin/assets/{copy-DezZzPMV.js → copy-DxuErr3x.js} +1 -1
  13. package/dist/admin/assets/{dist-UbA1s2kM.js → dist-DVv3ALC7.js} +1 -1
  14. package/dist/admin/assets/{dist-DzkcSBZl.js → dist-Dpyc1riS.js} +1 -1
  15. package/dist/admin/assets/editor-BauN0yXd.js +2 -0
  16. package/dist/admin/assets/{empty-DSBYiI_7.js → empty-DAOUBpWb.js} +1 -1
  17. package/dist/admin/assets/{entry-link-CQLN2Zpf.js → entry-link-DhcL6M5c.js} +19 -19
  18. package/dist/admin/assets/{error-banner-yskeRXe8.js → error-banner-CNWZU5u_.js} +93 -91
  19. package/dist/admin/assets/{field-BDK5tt3J.js → field-CbbZZGxO.js} +2 -2
  20. package/dist/admin/assets/{file-text-BzBif8ui.js → file-text-Ciz5Mr4S.js} +1 -1
  21. package/dist/admin/assets/{highlighted-body-JLMTFACH-CIQujGv2.js → highlighted-body-JLMTFACH-D1bycIV3.js} +1 -1
  22. package/dist/admin/assets/{lib-CMURo-7A.js → lib-CC_S4yjQ.js} +9 -9
  23. package/dist/admin/assets/{library-Cr3f75Es.js → library-Da82FNwp.js} +1 -1
  24. package/dist/admin/assets/{list-skeleton-BdTNfVXs.js → list-skeleton-BXLP4Fak.js} +1 -1
  25. package/dist/admin/assets/matchContext-BjW1F-Cq.js +2 -0
  26. package/dist/admin/assets/media-browser-DeKpWCUD.js +1 -0
  27. package/dist/admin/assets/media._library-DGnXJc0I.js +1 -0
  28. package/dist/admin/assets/mermaid-WFAXDIZX-CqFnahFh.js +1 -0
  29. package/dist/admin/assets/page-header-C2Uwa_yv.js +1 -0
  30. package/dist/admin/assets/pdf-BSEX-sd8.js +106 -0
  31. package/dist/admin/assets/{react-kbcsfQYH.js → react-CXnqG51l.js} +1 -1
  32. package/dist/admin/assets/{routes-CBt04sNR.js → routes-Bx9rPcHA.js} +1 -1
  33. package/dist/admin/assets/save-actions-DrVgh3KH.js +32 -0
  34. package/dist/admin/assets/{select-Bv2EoLhN.js → select-CMV39q80.js} +1 -1
  35. package/dist/admin/assets/separator-C9bNKNSU.js +3 -0
  36. package/dist/admin/assets/{skeleton-CKiqTaRh.js → skeleton-DTwTUSqm.js} +1 -1
  37. package/dist/admin/assets/syntax-DDPd1mQn.js +8 -0
  38. package/dist/admin/assets/{toggle-Y2UpJZyU.js → toggle-B6ASf-kL.js} +1 -1
  39. package/dist/admin/assets/{ui.module.css-WaO_77ml.js → ui.module.css-BdAmwQeM.js} +29 -29
  40. package/dist/admin/assets/{use-entries-B2lsaiK9.js → use-entries-CrNqaMfa.js} +1 -1
  41. package/dist/admin/assets/useSelector-Cs39W18m.js +1 -0
  42. package/dist/admin/bootstrap.js +1 -1
  43. package/dist/admin/editor.d.ts +1009 -1
  44. package/dist/admin/editor.js +1 -1
  45. package/dist/server/THIRD_PARTY_LICENSES.md +49 -0
  46. package/dist/server/assets.d.ts +28 -0
  47. package/dist/server/chunks/config-BsOYly9a.d.ts +1210 -0
  48. package/dist/server/chunks/{digest-BYzWNJea.js → digest-tkKu_Wj5.js} +3 -3
  49. package/dist/server/chunks/{entry-checks-CKMag1G4.js → entry-checks-3SxhoHwH.js} +1 -1
  50. package/dist/server/chunks/{types-DOR5XaJO.js → types-DkkewFTT.js} +32 -11
  51. package/dist/server/chunks/{types-DwA-C6Br.d.ts → types-Jew_-Qpp.d.ts} +8 -1
  52. package/dist/server/chunks/{user-config-DoypbpQf.js → user-config-CqNK-Ebs.js} +13 -4
  53. package/dist/server/config.d.ts +3 -3
  54. package/dist/server/config.js +5 -1
  55. package/dist/server/content.d.ts +10 -0
  56. package/dist/server/content.js +2 -8
  57. package/dist/server/endpoint.d.ts +5 -0
  58. package/dist/server/endpoint.js +28 -14
  59. package/dist/server/integration.d.ts +2 -2
  60. package/dist/server/integration.js +29 -16
  61. package/dist/server/internal.d.ts +39 -4
  62. package/dist/server/internal.js +2 -2
  63. package/dist/server/server-local.d.ts +1 -1
  64. package/dist/server/server-local.js +2 -2
  65. package/dist/styles/THIRD_PARTY_LICENSES.md +2 -2
  66. package/dist/styles/styles.css +2 -2
  67. package/package.json +4 -4
  68. package/dist/admin/assets/assistant-DkS355co.js +0 -201
  69. package/dist/admin/assets/badge-BXsOvOPX.js +0 -1
  70. package/dist/admin/assets/changes-Ba0G_GN1.js +0 -1
  71. package/dist/admin/assets/client-VKp75fDU.js +0 -5
  72. package/dist/admin/assets/collections._collection.index-BN5d8UIY.js +0 -1
  73. package/dist/admin/assets/component-lookup-CUCiK8Xh.js +0 -4
  74. package/dist/admin/assets/editor-FGqMznBK.js +0 -2
  75. package/dist/admin/assets/matchContext-Bq5Es9aD.js +0 -2
  76. package/dist/admin/assets/media-browser-9-CPTCks.js +0 -1
  77. package/dist/admin/assets/media._library-BfFaEZLR.js +0 -1
  78. package/dist/admin/assets/mermaid-WFAXDIZX-CJ3hhA0i.js +0 -1
  79. package/dist/admin/assets/page-header-B4nvAsVA.js +0 -1
  80. package/dist/admin/assets/pdf-DgessaF0.js +0 -106
  81. package/dist/admin/assets/save-actions-Cz0TkpcP.js +0 -32
  82. package/dist/admin/assets/separator-DlYj_PoQ.js +0 -3
  83. package/dist/admin/assets/syntax-BAXqRKRO.js +0 -8
  84. package/dist/admin/assets/useSelector-CWr3iU9K.js +0 -1
  85. package/dist/server/chunks/config-WQqG4mNH.d.ts +0 -193
@@ -0,0 +1,1210 @@
1
+ import { n as ResolvedImage } from "./index-CYbkNvu5.js";
2
+ import { i as CollectionSort } from "./types-Jew_-Qpp.js";
3
+ import { z } from "zod";
4
+ import { ReactElement, ReactNode } from "react";
5
+ // ## Interfaces
6
+ /**
7
+ * Info associated with nodes by the ecosystem.
8
+ *
9
+ * This space is guaranteed to never be specified by unist or specifications
10
+ * implementing unist.
11
+ * But you can use it in utilities and plugins to store data.
12
+ *
13
+ * This type can be augmented to register custom data.
14
+ * For example:
15
+ *
16
+ * ```ts
17
+ * declare module 'unist' {
18
+ * interface Data {
19
+ * // `someNode.data.myId` is typed as `number | undefined`
20
+ * myId?: number | undefined
21
+ * }
22
+ * }
23
+ * ```
24
+ */
25
+ interface Data$1 {}
26
+ /**
27
+ * One place in a source file.
28
+ */
29
+ interface Point {
30
+ /**
31
+ * Line in a source file (1-indexed integer).
32
+ */
33
+ line: number;
34
+ /**
35
+ * Column in a source file (1-indexed integer).
36
+ */
37
+ column: number;
38
+ /**
39
+ * Character in a source file (0-indexed integer).
40
+ */
41
+ offset?: number | undefined;
42
+ }
43
+ /**
44
+ * Position of a node in a source document.
45
+ *
46
+ * A position is a range between two points.
47
+ */
48
+ interface Position {
49
+ /**
50
+ * Place of the first character of the parsed source region.
51
+ */
52
+ start: Point;
53
+ /**
54
+ * Place of the first character after the parsed source region.
55
+ */
56
+ end: Point;
57
+ }
58
+ /**
59
+ * Abstract unist node.
60
+ *
61
+ * The syntactic unit in unist syntax trees are called nodes.
62
+ *
63
+ * This interface is supposed to be extended.
64
+ * If you can use {@link Literal} or {@link Parent}, you should.
65
+ * But for example in markdown, a `thematicBreak` (`***`), is neither literal
66
+ * nor parent, but still a node.
67
+ */
68
+ interface Node$1 {
69
+ /**
70
+ * Node type.
71
+ */
72
+ type: string;
73
+ /**
74
+ * Info from the ecosystem.
75
+ */
76
+ data?: Data$1 | undefined;
77
+ /**
78
+ * Position of a node in a source document.
79
+ *
80
+ * Nodes that are generated (not in the original source document) must not
81
+ * have a position.
82
+ */
83
+ position?: Position | undefined;
84
+ }
85
+ // ## Enumeration
86
+ /**
87
+ * How phrasing content is aligned
88
+ * ({@link https://drafts.csswg.org/css-text/ | [CSSTEXT]}).
89
+ *
90
+ * * `'left'`: See the
91
+ * {@link https://drafts.csswg.org/css-text/#valdef-text-align-left | left}
92
+ * value of the `text-align` CSS property
93
+ * * `'right'`: See the
94
+ * {@link https://drafts.csswg.org/css-text/#valdef-text-align-right | right}
95
+ * value of the `text-align` CSS property
96
+ * * `'center'`: See the
97
+ * {@link https://drafts.csswg.org/css-text/#valdef-text-align-center | center}
98
+ * value of the `text-align` CSS property
99
+ * * `null`: phrasing content is aligned as defined by the host environment
100
+ *
101
+ * Used in GFM tables.
102
+ */
103
+ type AlignType = "center" | "left" | "right" | null;
104
+ /**
105
+ * Explicitness of a reference.
106
+ *
107
+ * `'shortcut'`: the reference is implicit, its identifier inferred from its
108
+ * content
109
+ * `'collapsed'`: the reference is explicit, its identifier inferred from its
110
+ * content
111
+ * `'full'`: the reference is explicit, its identifier explicitly set
112
+ */
113
+ type ReferenceType = "shortcut" | "collapsed" | "full";
114
+ // ## Mixin
115
+ /**
116
+ * Node with a fallback.
117
+ */
118
+ interface Alternative {
119
+ /**
120
+ * Equivalent content for environments that cannot represent the node as
121
+ * intended.
122
+ */
123
+ alt?: string | null | undefined;
124
+ }
125
+ /**
126
+ * Internal relation from one node to another.
127
+ *
128
+ * Whether the value of `identifier` is expected to be a unique identifier or
129
+ * not depends on the type of node including the Association.
130
+ * An example of this is that they should be unique on {@link Definition},
131
+ * whereas multiple {@link LinkReference}s can be non-unique to be associated
132
+ * with one definition.
133
+ */
134
+ interface Association {
135
+ /**
136
+ * Relation of association.
137
+ *
138
+ * `identifier` is a source value: character escapes and character
139
+ * references are not parsed.
140
+ *
141
+ * It can match another node.
142
+ *
143
+ * Its value must be normalized.
144
+ * To normalize a value, collapse markdown whitespace (`[\t\n\r ]+`) to a space,
145
+ * trim the optional initial and/or final space, and perform Unicode-aware
146
+ * case-folding.
147
+ */
148
+ identifier: string;
149
+ /**
150
+ * Relation of association, in parsed form.
151
+ *
152
+ * `label` is a `string` value: it works just like `title` on {@link Link}
153
+ * or a `lang` on {@link Code}: character escapes and character references
154
+ * are parsed.
155
+ *
156
+ * It can match another node.
157
+ */
158
+ label?: string | null | undefined;
159
+ }
160
+ /**
161
+ * Marker that is associated to another node.
162
+ */
163
+ interface Reference extends Association {
164
+ /**
165
+ * Explicitness of the reference.
166
+ */
167
+ referenceType: ReferenceType;
168
+ }
169
+ /**
170
+ * Reference to resource.
171
+ */
172
+ interface Resource {
173
+ /**
174
+ * URL to the referenced resource.
175
+ */
176
+ url: string;
177
+ /**
178
+ * Advisory information for the resource, such as would be appropriate for
179
+ * a tooltip.
180
+ */
181
+ title?: string | null | undefined;
182
+ }
183
+ // ## Interfaces
184
+ /**
185
+ * Info associated with mdast nodes by the ecosystem.
186
+ *
187
+ * This space is guaranteed to never be specified by unist or mdast.
188
+ * But you can use it in utilities and plugins to store data.
189
+ *
190
+ * This type can be augmented to register custom data.
191
+ * For example:
192
+ *
193
+ * ```ts
194
+ * declare module 'mdast' {
195
+ * interface Data {
196
+ * // `someNode.data.myId` is typed as `number | undefined`
197
+ * myId?: number | undefined
198
+ * }
199
+ * }
200
+ * ```
201
+ */
202
+ interface Data extends Data$1 {}
203
+ // ## Content maps
204
+ /**
205
+ * Union of registered mdast nodes that can occur where block content is
206
+ * expected.
207
+ *
208
+ * To register custom mdast nodes, add them to {@link BlockContentMap}.
209
+ * They will be automatically added here.
210
+ */
211
+ type BlockContent = BlockContentMap[keyof BlockContentMap];
212
+ /**
213
+ * Registry of all mdast nodes that can occur where {@link BlockContent} is
214
+ * expected.
215
+ *
216
+ * This interface can be augmented to register custom node types:
217
+ *
218
+ * ```ts
219
+ * declare module 'mdast' {
220
+ * interface BlockContentMap {
221
+ * // Allow using MDX ESM nodes defined by `remark-mdx`.
222
+ * mdxjsEsm: MdxjsEsm;
223
+ * }
224
+ * }
225
+ * ```
226
+ *
227
+ * For a union of all block content, see {@link RootContent}.
228
+ */
229
+ interface BlockContentMap {
230
+ blockquote: Blockquote;
231
+ code: Code;
232
+ heading: Heading;
233
+ html: Html;
234
+ list: List;
235
+ paragraph: Paragraph;
236
+ table: Table;
237
+ thematicBreak: ThematicBreak;
238
+ }
239
+ /**
240
+ * Union of registered mdast nodes that can occur where definition content is
241
+ * expected.
242
+ *
243
+ * To register custom mdast nodes, add them to {@link DefinitionContentMap}.
244
+ * They will be automatically added here.
245
+ */
246
+ type DefinitionContent = DefinitionContentMap[keyof DefinitionContentMap];
247
+ /**
248
+ * Registry of all mdast nodes that can occur where {@link DefinitionContent}
249
+ * is expected.
250
+ *
251
+ * This interface can be augmented to register custom node types:
252
+ *
253
+ * ```ts
254
+ * declare module 'mdast' {
255
+ * interface DefinitionContentMap {
256
+ * custom: Custom;
257
+ * }
258
+ * }
259
+ * ```
260
+ *
261
+ * For a union of all definition content, see {@link RootContent}.
262
+ */
263
+ interface DefinitionContentMap {
264
+ definition: Definition;
265
+ footnoteDefinition: FootnoteDefinition;
266
+ }
267
+ /**
268
+ * Union of registered mdast nodes that can occur where list content is
269
+ * expected.
270
+ *
271
+ * To register custom mdast nodes, add them to {@link ListContentMap}.
272
+ * They will be automatically added here.
273
+ */
274
+ type ListContent = ListContentMap[keyof ListContentMap];
275
+ /**
276
+ * Registry of all mdast nodes that can occur where {@link ListContent}
277
+ * is expected.
278
+ *
279
+ * This interface can be augmented to register custom node types:
280
+ *
281
+ * ```ts
282
+ * declare module 'mdast' {
283
+ * interface ListContentMap {
284
+ * custom: Custom;
285
+ * }
286
+ * }
287
+ * ```
288
+ *
289
+ * For a union of all list content, see {@link RootContent}.
290
+ */
291
+ interface ListContentMap {
292
+ listItem: ListItem;
293
+ }
294
+ /**
295
+ * Union of registered mdast nodes that can occur where phrasing content is
296
+ * expected.
297
+ *
298
+ * To register custom mdast nodes, add them to {@link PhrasingContentMap}.
299
+ * They will be automatically added here.
300
+ */
301
+ type PhrasingContent = PhrasingContentMap[keyof PhrasingContentMap];
302
+ /**
303
+ * Registry of all mdast nodes that can occur where {@link PhrasingContent}
304
+ * is expected.
305
+ *
306
+ * This interface can be augmented to register custom node types:
307
+ *
308
+ * ```ts
309
+ * declare module 'mdast' {
310
+ * interface PhrasingContentMap {
311
+ * // Allow using MDX JSX (text) nodes defined by `remark-mdx`.
312
+ * mdxJsxTextElement: MDXJSXTextElement;
313
+ * }
314
+ * }
315
+ * ```
316
+ *
317
+ * For a union of all phrasing content, see {@link RootContent}.
318
+ */
319
+ interface PhrasingContentMap {
320
+ break: Break;
321
+ delete: Delete;
322
+ emphasis: Emphasis;
323
+ footnoteReference: FootnoteReference;
324
+ html: Html;
325
+ image: Image;
326
+ imageReference: ImageReference;
327
+ inlineCode: InlineCode;
328
+ link: Link;
329
+ linkReference: LinkReference;
330
+ strong: Strong;
331
+ text: Text;
332
+ }
333
+ /**
334
+ * Union of registered mdast nodes that can occur in {@link Root}.
335
+ *
336
+ * To register custom mdast nodes, add them to {@link RootContentMap}.
337
+ * They will be automatically added here.
338
+ */
339
+ type RootContent = RootContentMap[keyof RootContentMap];
340
+ /**
341
+ * Registry of all mdast nodes that can occur as children of {@link Root}.
342
+ *
343
+ * > **Note**: {@link Root} does not need to be an entire document.
344
+ * > it can also be a fragment.
345
+ *
346
+ * This interface can be augmented to register custom node types:
347
+ *
348
+ * ```ts
349
+ * declare module 'mdast' {
350
+ * interface RootContentMap {
351
+ * // Allow using toml nodes defined by `remark-frontmatter`.
352
+ * toml: TOML;
353
+ * }
354
+ * }
355
+ * ```
356
+ *
357
+ * For a union of all {@link Root} children, see {@link RootContent}.
358
+ */
359
+ interface RootContentMap {
360
+ blockquote: Blockquote;
361
+ break: Break;
362
+ code: Code;
363
+ definition: Definition;
364
+ delete: Delete;
365
+ emphasis: Emphasis;
366
+ footnoteDefinition: FootnoteDefinition;
367
+ footnoteReference: FootnoteReference;
368
+ heading: Heading;
369
+ html: Html;
370
+ image: Image;
371
+ imageReference: ImageReference;
372
+ inlineCode: InlineCode;
373
+ link: Link;
374
+ linkReference: LinkReference;
375
+ list: List;
376
+ listItem: ListItem;
377
+ paragraph: Paragraph;
378
+ strong: Strong;
379
+ table: Table;
380
+ tableCell: TableCell;
381
+ tableRow: TableRow;
382
+ text: Text;
383
+ thematicBreak: ThematicBreak;
384
+ yaml: Yaml;
385
+ }
386
+ /**
387
+ * Union of registered mdast nodes that can occur where row content is
388
+ * expected.
389
+ *
390
+ * To register custom mdast nodes, add them to {@link RowContentMap}.
391
+ * They will be automatically added here.
392
+ */
393
+ type RowContent = RowContentMap[keyof RowContentMap];
394
+ /**
395
+ * Registry of all mdast nodes that can occur where {@link RowContent}
396
+ * is expected.
397
+ *
398
+ * This interface can be augmented to register custom node types:
399
+ *
400
+ * ```ts
401
+ * declare module 'mdast' {
402
+ * interface RowContentMap {
403
+ * custom: Custom;
404
+ * }
405
+ * }
406
+ * ```
407
+ *
408
+ * For a union of all row content, see {@link RootContent}.
409
+ */
410
+ interface RowContentMap {
411
+ tableCell: TableCell;
412
+ }
413
+ /**
414
+ * Union of registered mdast nodes that can occur where table content is
415
+ * expected.
416
+ *
417
+ * To register custom mdast nodes, add them to {@link TableContentMap}.
418
+ * They will be automatically added here.
419
+ */
420
+ type TableContent = TableContentMap[keyof TableContentMap];
421
+ /**
422
+ * Registry of all mdast nodes that can occur where {@link TableContent}
423
+ * is expected.
424
+ *
425
+ * This interface can be augmented to register custom node types:
426
+ *
427
+ * ```ts
428
+ * declare module 'mdast' {
429
+ * interface TableContentMap {
430
+ * custom: Custom;
431
+ * }
432
+ * }
433
+ * ```
434
+ *
435
+ * For a union of all table content, see {@link RootContent}.
436
+ */
437
+ interface TableContentMap {
438
+ tableRow: TableRow;
439
+ }
440
+ // ## Abstract nodes
441
+ /**
442
+ * Abstract mdast node that contains the smallest possible value.
443
+ *
444
+ * This interface is supposed to be extended if you make custom mdast nodes.
445
+ *
446
+ * For a union of all registered mdast literals, see {@link Literals}.
447
+ */
448
+ interface Literal extends Node {
449
+ /**
450
+ * Plain-text value.
451
+ */
452
+ value: string;
453
+ }
454
+ /**
455
+ * Abstract mdast node.
456
+ *
457
+ * This interface is supposed to be extended.
458
+ * If you can use {@link Literal} or {@link Parent}, you should.
459
+ * But for example in markdown, a thematic break (`***`) is neither literal nor
460
+ * parent, but still a node.
461
+ *
462
+ * To register custom mdast nodes, add them to {@link RootContentMap} and other
463
+ * places where relevant (such as {@link ElementContentMap}).
464
+ *
465
+ * For a union of all registered mdast nodes, see {@link Nodes}.
466
+ */
467
+ interface Node extends Node$1 {
468
+ /**
469
+ * Info from the ecosystem.
470
+ */
471
+ data?: Data | undefined;
472
+ }
473
+ /**
474
+ * Abstract mdast node that contains other mdast nodes (*children*).
475
+ *
476
+ * This interface is supposed to be extended if you make custom mdast nodes.
477
+ *
478
+ * For a union of all registered mdast parents, see {@link Parents}.
479
+ */
480
+ interface Parent extends Node {
481
+ /**
482
+ * List of children.
483
+ */
484
+ children: RootContent[];
485
+ }
486
+ // ## Concrete nodes
487
+ /**
488
+ * Markdown block quote.
489
+ */
490
+ interface Blockquote extends Parent {
491
+ /**
492
+ * Node type of mdast block quote.
493
+ */
494
+ type: "blockquote";
495
+ /**
496
+ * Children of block quote.
497
+ */
498
+ children: Array<BlockContent | DefinitionContent>;
499
+ /**
500
+ * Data associated with the mdast block quote.
501
+ */
502
+ data?: BlockquoteData | undefined;
503
+ }
504
+ /**
505
+ * Info associated with mdast block quote nodes by the ecosystem.
506
+ */
507
+ interface BlockquoteData extends Data {}
508
+ /**
509
+ * Markdown break.
510
+ */
511
+ interface Break extends Node {
512
+ /**
513
+ * Node type of mdast break.
514
+ */
515
+ type: "break";
516
+ /**
517
+ * Data associated with the mdast break.
518
+ */
519
+ data?: BreakData | undefined;
520
+ }
521
+ /**
522
+ * Info associated with mdast break nodes by the ecosystem.
523
+ */
524
+ interface BreakData extends Data {}
525
+ /**
526
+ * Markdown code (flow) (block).
527
+ */
528
+ interface Code extends Literal {
529
+ /**
530
+ * Node type of mdast code (flow).
531
+ */
532
+ type: "code";
533
+ /**
534
+ * Language of computer code being marked up.
535
+ */
536
+ lang?: string | null | undefined;
537
+ /**
538
+ * Custom information relating to the node.
539
+ *
540
+ * If the lang field is present, a meta field can be present.
541
+ */
542
+ meta?: string | null | undefined;
543
+ /**
544
+ * Data associated with the mdast code (flow).
545
+ */
546
+ data?: CodeData | undefined;
547
+ }
548
+ /**
549
+ * Info associated with mdast code (flow) (block) nodes by the ecosystem.
550
+ */
551
+ interface CodeData extends Data {}
552
+ /**
553
+ * Markdown definition.
554
+ */
555
+ interface Definition extends Node, Association, Resource {
556
+ /**
557
+ * Node type of mdast definition.
558
+ */
559
+ type: "definition";
560
+ /**
561
+ * Data associated with the mdast definition.
562
+ */
563
+ data?: DefinitionData | undefined;
564
+ }
565
+ /**
566
+ * Info associated with mdast definition nodes by the ecosystem.
567
+ */
568
+ interface DefinitionData extends Data {}
569
+ /**
570
+ * Markdown GFM delete (strikethrough).
571
+ */
572
+ interface Delete extends Parent {
573
+ /**
574
+ * Node type of mdast GFM delete.
575
+ */
576
+ type: "delete";
577
+ /**
578
+ * Children of GFM delete.
579
+ */
580
+ children: PhrasingContent[];
581
+ /**
582
+ * Data associated with the mdast GFM delete.
583
+ */
584
+ data?: DeleteData | undefined;
585
+ }
586
+ /**
587
+ * Info associated with mdast GFM delete nodes by the ecosystem.
588
+ */
589
+ interface DeleteData extends Data {}
590
+ /**
591
+ * Markdown emphasis.
592
+ */
593
+ interface Emphasis extends Parent {
594
+ /**
595
+ * Node type of mdast emphasis.
596
+ */
597
+ type: "emphasis";
598
+ /**
599
+ * Children of emphasis.
600
+ */
601
+ children: PhrasingContent[];
602
+ /**
603
+ * Data associated with the mdast emphasis.
604
+ */
605
+ data?: EmphasisData | undefined;
606
+ }
607
+ /**
608
+ * Info associated with mdast emphasis nodes by the ecosystem.
609
+ */
610
+ interface EmphasisData extends Data {}
611
+ /**
612
+ * Markdown GFM footnote definition.
613
+ */
614
+ interface FootnoteDefinition extends Parent, Association {
615
+ /**
616
+ * Node type of mdast GFM footnote definition.
617
+ */
618
+ type: "footnoteDefinition";
619
+ /**
620
+ * Children of GFM footnote definition.
621
+ */
622
+ children: Array<BlockContent | DefinitionContent>;
623
+ /**
624
+ * Data associated with the mdast GFM footnote definition.
625
+ */
626
+ data?: FootnoteDefinitionData | undefined;
627
+ }
628
+ /**
629
+ * Info associated with mdast GFM footnote definition nodes by the ecosystem.
630
+ */
631
+ interface FootnoteDefinitionData extends Data {}
632
+ /**
633
+ * Markdown GFM footnote reference.
634
+ */
635
+ interface FootnoteReference extends Association, Node {
636
+ /**
637
+ * Node type of mdast GFM footnote reference.
638
+ */
639
+ type: "footnoteReference";
640
+ /**
641
+ * Data associated with the mdast GFM footnote reference.
642
+ */
643
+ data?: FootnoteReferenceData | undefined;
644
+ }
645
+ /**
646
+ * Info associated with mdast GFM footnote reference nodes by the ecosystem.
647
+ */
648
+ interface FootnoteReferenceData extends Data {}
649
+ /**
650
+ * Markdown heading.
651
+ */
652
+ interface Heading extends Parent {
653
+ /**
654
+ * Node type of mdast heading.
655
+ */
656
+ type: "heading";
657
+ /**
658
+ * Heading rank.
659
+ *
660
+ * A value of `1` is said to be the highest rank and `6` the lowest.
661
+ */
662
+ depth: 1 | 2 | 3 | 4 | 5 | 6;
663
+ /**
664
+ * Children of heading.
665
+ */
666
+ children: PhrasingContent[];
667
+ /**
668
+ * Data associated with the mdast heading.
669
+ */
670
+ data?: HeadingData | undefined;
671
+ }
672
+ /**
673
+ * Info associated with mdast heading nodes by the ecosystem.
674
+ */
675
+ interface HeadingData extends Data {}
676
+ /**
677
+ * Markdown HTML.
678
+ */
679
+ interface Html extends Literal {
680
+ /**
681
+ * Node type of mdast HTML.
682
+ */
683
+ type: "html";
684
+ /**
685
+ * Data associated with the mdast HTML.
686
+ */
687
+ data?: HtmlData | undefined;
688
+ }
689
+ /**
690
+ * Info associated with mdast HTML nodes by the ecosystem.
691
+ */
692
+ interface HtmlData extends Data {}
693
+ /**
694
+ * Markdown image.
695
+ */
696
+ interface Image extends Alternative, Node, Resource {
697
+ /**
698
+ * Node type of mdast image.
699
+ */
700
+ type: "image";
701
+ /**
702
+ * Data associated with the mdast image.
703
+ */
704
+ data?: ImageData | undefined;
705
+ }
706
+ /**
707
+ * Info associated with mdast image nodes by the ecosystem.
708
+ */
709
+ interface ImageData extends Data {}
710
+ /**
711
+ * Markdown image reference.
712
+ */
713
+ interface ImageReference extends Alternative, Node, Reference {
714
+ /**
715
+ * Node type of mdast image reference.
716
+ */
717
+ type: "imageReference";
718
+ /**
719
+ * Data associated with the mdast image reference.
720
+ */
721
+ data?: ImageReferenceData | undefined;
722
+ }
723
+ /**
724
+ * Info associated with mdast image reference nodes by the ecosystem.
725
+ */
726
+ interface ImageReferenceData extends Data {}
727
+ /**
728
+ * Markdown code (text) (inline).
729
+ */
730
+ interface InlineCode extends Literal {
731
+ /**
732
+ * Node type of mdast code (text).
733
+ */
734
+ type: "inlineCode";
735
+ /**
736
+ * Data associated with the mdast code (text).
737
+ */
738
+ data?: InlineCodeData | undefined;
739
+ }
740
+ /**
741
+ * Info associated with mdast code (text) (inline) nodes by the ecosystem.
742
+ */
743
+ interface InlineCodeData extends Data {}
744
+ /**
745
+ * Markdown link.
746
+ */
747
+ interface Link extends Parent, Resource {
748
+ /**
749
+ * Node type of mdast link.
750
+ */
751
+ type: "link";
752
+ /**
753
+ * Children of link.
754
+ */
755
+ children: PhrasingContent[];
756
+ /**
757
+ * Data associated with the mdast link.
758
+ */
759
+ data?: LinkData | undefined;
760
+ }
761
+ /**
762
+ * Info associated with mdast link nodes by the ecosystem.
763
+ */
764
+ interface LinkData extends Data {}
765
+ /**
766
+ * Markdown link reference.
767
+ */
768
+ interface LinkReference extends Parent, Reference {
769
+ /**
770
+ * Node type of mdast link reference.
771
+ */
772
+ type: "linkReference";
773
+ /**
774
+ * Children of link reference.
775
+ */
776
+ children: PhrasingContent[];
777
+ /**
778
+ * Data associated with the mdast link reference.
779
+ */
780
+ data?: LinkReferenceData | undefined;
781
+ }
782
+ /**
783
+ * Info associated with mdast link reference nodes by the ecosystem.
784
+ */
785
+ interface LinkReferenceData extends Data {}
786
+ /**
787
+ * Markdown list.
788
+ */
789
+ interface List extends Parent {
790
+ /**
791
+ * Node type of mdast list.
792
+ */
793
+ type: "list";
794
+ /**
795
+ * Whether the items have been intentionally ordered (when `true`), or that
796
+ * the order of items is not important (when `false` or not present).
797
+ */
798
+ ordered?: boolean | null | undefined;
799
+ /**
800
+ * The starting number of the list, when the `ordered` field is `true`.
801
+ */
802
+ start?: number | null | undefined;
803
+ /**
804
+ * Whether one or more of the children are separated with a blank line from
805
+ * its siblings (when `true`), or not (when `false` or not present).
806
+ */
807
+ spread?: boolean | null | undefined;
808
+ /**
809
+ * Children of list.
810
+ */
811
+ children: ListContent[];
812
+ /**
813
+ * Data associated with the mdast list.
814
+ */
815
+ data?: ListData | undefined;
816
+ }
817
+ /**
818
+ * Info associated with mdast list nodes by the ecosystem.
819
+ */
820
+ interface ListData extends Data {}
821
+ /**
822
+ * Markdown list item.
823
+ */
824
+ interface ListItem extends Parent {
825
+ /**
826
+ * Node type of mdast list item.
827
+ */
828
+ type: "listItem";
829
+ /**
830
+ * Whether the item is a tasklist item (when `boolean`).
831
+ *
832
+ * When `true`, the item is complete.
833
+ * When `false`, the item is incomplete.
834
+ */
835
+ checked?: boolean | null | undefined;
836
+ /**
837
+ * Whether one or more of the children are separated with a blank line from
838
+ * its siblings (when `true`), or not (when `false` or not present).
839
+ */
840
+ spread?: boolean | null | undefined;
841
+ /**
842
+ * Children of list item.
843
+ */
844
+ children: Array<BlockContent | DefinitionContent>;
845
+ /**
846
+ * Data associated with the mdast list item.
847
+ */
848
+ data?: ListItemData | undefined;
849
+ }
850
+ /**
851
+ * Info associated with mdast list item nodes by the ecosystem.
852
+ */
853
+ interface ListItemData extends Data {}
854
+ /**
855
+ * Markdown paragraph.
856
+ */
857
+ interface Paragraph extends Parent {
858
+ /**
859
+ * Node type of mdast paragraph.
860
+ */
861
+ type: "paragraph";
862
+ /**
863
+ * Children of paragraph.
864
+ */
865
+ children: PhrasingContent[];
866
+ /**
867
+ * Data associated with the mdast paragraph.
868
+ */
869
+ data?: ParagraphData | undefined;
870
+ }
871
+ /**
872
+ * Info associated with mdast paragraph nodes by the ecosystem.
873
+ */
874
+ interface ParagraphData extends Data {}
875
+ /**
876
+ * Markdown strong.
877
+ */
878
+ interface Strong extends Parent {
879
+ /**
880
+ * Node type of mdast strong.
881
+ */
882
+ type: "strong";
883
+ /**
884
+ * Children of strong.
885
+ */
886
+ children: PhrasingContent[];
887
+ /**
888
+ * Data associated with the mdast strong.
889
+ */
890
+ data?: StrongData | undefined;
891
+ }
892
+ /**
893
+ * Info associated with mdast strong nodes by the ecosystem.
894
+ */
895
+ interface StrongData extends Data {}
896
+ /**
897
+ * Markdown GFM table.
898
+ */
899
+ interface Table extends Parent {
900
+ /**
901
+ * Node type of mdast GFM table.
902
+ */
903
+ type: "table";
904
+ /**
905
+ * How cells in columns are aligned.
906
+ */
907
+ align?: AlignType[] | null | undefined;
908
+ /**
909
+ * Children of GFM table.
910
+ */
911
+ children: TableContent[];
912
+ /**
913
+ * Data associated with the mdast GFM table.
914
+ */
915
+ data?: TableData | undefined;
916
+ }
917
+ /**
918
+ * Info associated with mdast GFM table nodes by the ecosystem.
919
+ */
920
+ interface TableData extends Data {}
921
+ /**
922
+ * Markdown GFM table row.
923
+ */
924
+ interface TableRow extends Parent {
925
+ /**
926
+ * Node type of mdast GFM table row.
927
+ */
928
+ type: "tableRow";
929
+ /**
930
+ * Children of GFM table row.
931
+ */
932
+ children: RowContent[];
933
+ /**
934
+ * Data associated with the mdast GFM table row.
935
+ */
936
+ data?: TableRowData | undefined;
937
+ }
938
+ /**
939
+ * Info associated with mdast GFM table row nodes by the ecosystem.
940
+ */
941
+ interface TableRowData extends Data {}
942
+ /**
943
+ * Markdown GFM table cell.
944
+ */
945
+ interface TableCell extends Parent {
946
+ /**
947
+ * Node type of mdast GFM table cell.
948
+ */
949
+ type: "tableCell";
950
+ /**
951
+ * Children of GFM table cell.
952
+ */
953
+ children: PhrasingContent[];
954
+ /**
955
+ * Data associated with the mdast GFM table cell.
956
+ */
957
+ data?: TableCellData | undefined;
958
+ }
959
+ /**
960
+ * Info associated with mdast GFM table cell nodes by the ecosystem.
961
+ */
962
+ interface TableCellData extends Data {}
963
+ /**
964
+ * Markdown text.
965
+ */
966
+ interface Text extends Literal {
967
+ /**
968
+ * Node type of mdast text.
969
+ */
970
+ type: "text";
971
+ /**
972
+ * Data associated with the mdast text.
973
+ */
974
+ data?: TextData | undefined;
975
+ }
976
+ /**
977
+ * Info associated with mdast text nodes by the ecosystem.
978
+ */
979
+ interface TextData extends Data {}
980
+ /**
981
+ * Markdown thematic break (horizontal rule).
982
+ */
983
+ interface ThematicBreak extends Node {
984
+ /**
985
+ * Node type of mdast thematic break.
986
+ */
987
+ type: "thematicBreak";
988
+ /**
989
+ * Data associated with the mdast thematic break.
990
+ */
991
+ data?: ThematicBreakData | undefined;
992
+ }
993
+ /**
994
+ * Info associated with mdast thematic break nodes by the ecosystem.
995
+ */
996
+ interface ThematicBreakData extends Data {}
997
+ /**
998
+ * Markdown YAML.
999
+ */
1000
+ interface Yaml extends Literal {
1001
+ /**
1002
+ * Node type of mdast YAML.
1003
+ */
1004
+ type: "yaml";
1005
+ /**
1006
+ * Data associated with the mdast YAML.
1007
+ */
1008
+ data?: YamlData | undefined;
1009
+ }
1010
+ /**
1011
+ * Info associated with mdast YAML nodes by the ecosystem.
1012
+ */
1013
+ interface YamlData extends Data {}
1014
+ /** `name="value"`, or `name={expression}` with the expression as source text. */
1015
+ interface MdxJsxAttribute {
1016
+ type: "mdxJsxAttribute";
1017
+ name: string;
1018
+ value?: string | {
1019
+ type: "mdxJsxAttributeValueExpression";
1020
+ value: string;
1021
+ } | null;
1022
+ }
1023
+ /** `{...expression}`, as source text. */
1024
+ interface MdxJsxExpressionAttribute {
1025
+ type: "mdxJsxExpressionAttribute";
1026
+ value: string;
1027
+ }
1028
+ /** The MDX element a component is written as. */
1029
+ interface MdxJsxElement {
1030
+ type: "mdxJsxFlowElement" | "mdxJsxTextElement";
1031
+ name: string | null;
1032
+ attributes: (MdxJsxAttribute | MdxJsxExpressionAttribute)[];
1033
+ children: RootContent[];
1034
+ }
1035
+ /** The props a custom editor is rendered with. */
1036
+ interface JsxEditorProps {
1037
+ /** The element being edited. */
1038
+ mdastNode: MdxJsxElement;
1039
+ /** The component the element renders. */
1040
+ descriptor: {
1041
+ name: string | null;
1042
+ kind: "flow" | "text";
1043
+ hasChildren?: boolean;
1044
+ };
1045
+ }
1046
+ /** A component's own editor in the admin, in place of the generated form. */
1047
+ type JsxEditor = (props: JsxEditorProps) => ReactNode;
1048
+ interface NestedLexicalEditorProps {
1049
+ /** The part of the element to edit, usually its `children`. */
1050
+ getContent: (node: MdxJsxElement) => RootContent[];
1051
+ /** The element with the edited content put back. */
1052
+ getUpdatedMdastNode: (node: MdxJsxElement, content: RootContent[]) => MdxJsxElement;
1053
+ /** Whether the content is blocks (paragraphs, lists) rather than inline text. */
1054
+ block?: boolean;
1055
+ }
1056
+ /** The runtime exports of `astronaut-cms/editor`. */
1057
+ interface EditorExports {
1058
+ /** A rich-text editor for content nested inside the element, such as its children. */
1059
+ NestedLexicalEditor: (props: NestedLexicalEditorProps) => ReactElement;
1060
+ /** Merges fields into the element being edited. */
1061
+ useMdastNodeUpdater: () => (node: Partial<MdxJsxElement>) => void;
1062
+ /** Removes the element being edited from the document. */
1063
+ useLexicalNodeRemove: () => () => void;
1064
+ }
1065
+ /** What a component's `image()` prop is resolved with, `resolveImage` on the site. */
1066
+ type ImageResolver = (path: string) => Promise<ResolvedImage>;
1067
+ /**
1068
+ * A collection image field that takes a file from either media library: an
1069
+ * object-store URL as it is, or anything else through astro's own `image()`,
1070
+ * which imports a repository file as ever. Typed as what arrives, so rendering a
1071
+ * URL where only `ImageMetadata` is handled is a compile error rather than a
1072
+ * failed build. The URL is left to astro, which optimizes it as a remote image,
1073
+ * and whether it names a library file is checked when content is written.
1074
+ *
1075
+ * @example
1076
+ * ```ts
1077
+ * schema: ({ image }) => z.object({ cover: libraryImage(image) })
1078
+ * ```
1079
+ */
1080
+ declare function libraryImage<T extends z.ZodType>(image: () => T): z.ZodUnion<readonly [z.ZodURL, T]>;
1081
+ /** A Zod string naming a file in the media library, resolved to a bundled URL. */
1082
+ declare const fileMarker: () => z.ZodString;
1083
+ /**
1084
+ * A Zod string holding a URL: relative, http, https, mailto or tel. The only
1085
+ * field a URL may be written into, since plain text is refused as one. The check
1086
+ * is part of the schema itself, so the site's own content validation enforces it
1087
+ * too, not only the CMS.
1088
+ */
1089
+ declare const linkMarker: () => z.ZodString;
1090
+ /**
1091
+ * A Zod string holding an element id that the component or layout renders, such
1092
+ * as a section's `id`. Declaring it is what lets a `#id` link in the same entry
1093
+ * be checked, since the CMS cannot tell which prop ends up as an id otherwise.
1094
+ */
1095
+ declare const anchorMarker: () => z.ZodString;
1096
+ /**
1097
+ * One value per content language, such as a translated title in an otherwise
1098
+ * language-neutral entry. Stored as `{ de: "…", en: "…" }` and read with
1099
+ * `pickLocale` from `astronaut-cms/content`. The admin edits it in a tab per
1100
+ * language, and the default language is required, which the build and every
1101
+ * save check, since only the CMS knows the site's languages.
1102
+ */
1103
+ declare const localizedMarker: <T extends z.ZodType>(schema: T) => z.ZodRecord<z.ZodString, T>;
1104
+ /** A Zod string that references an entry id in another collection. */
1105
+ declare const referenceMarker: (collection: string) => z.ZodString;
1106
+ /**
1107
+ * What a component's props function is handed, mirroring the `({ image })` bag
1108
+ * astro gives a collection schema. Handing them in rather than exporting them is
1109
+ * what keeps an `image()` meant for a component prop out of a `content.config.ts`,
1110
+ * where astro's own helper is the only one that resolves.
1111
+ */
1112
+ declare function schemaHelpers(resolveImage: ImageResolver): {
1113
+ image: () => z.ZodPipe<z.ZodString, z.ZodTransform<string | import("astro").ImageMetadata, string>>;
1114
+ file: typeof fileMarker;
1115
+ link: typeof linkMarker;
1116
+ anchor: typeof anchorMarker;
1117
+ localized: typeof localizedMarker;
1118
+ reference: typeof referenceMarker;
1119
+ };
1120
+ /** An icon for the admin, such as one of `lucide-react`'s. */
1121
+ type ComponentIcon = (props: {
1122
+ className?: string;
1123
+ }) => ReactNode;
1124
+ /**
1125
+ * Filled in for each site by the types the integration generates, with the
1126
+ * collection names of its content config. Empty where those types are not loaded.
1127
+ */
1128
+ interface CollectionRegistry {}
1129
+ /** A collection of the content config, or any string before `astro sync` names them. */
1130
+ type CollectionName = CollectionRegistry extends {
1131
+ name: infer N extends string;
1132
+ } ? N : string;
1133
+ type Helpers = ReturnType<typeof schemaHelpers>;
1134
+ /**
1135
+ * The asset, link, anchor and reference helpers a component's props function
1136
+ * receives. An `image()` prop is written as a path and rendered as the image it
1137
+ * resolves to, as a collection's `image()` field arrives.
1138
+ */
1139
+ type SchemaHelpers = Omit<Helpers, "reference"> & {
1140
+ reference: (collection: CollectionName) => ReturnType<Helpers["reference"]>;
1141
+ };
1142
+ type ChildrenConfig = "markdown" | Record<string, ComponentDefinition>;
1143
+ interface ComponentDefinition<T extends z.ZodType<object> = z.ZodType<object>, C extends ChildrenConfig = ChildrenConfig> {
1144
+ /**
1145
+ * The component's props, either as a Zod object or as a function handed the
1146
+ * schema helpers, exactly like astro's collection `schema`. Reach for the
1147
+ * function form only when a prop names an asset, a link, an anchor or an entry.
1148
+ * Left out, the component takes no props.
1149
+ */
1150
+ props?: T | ((helpers: SchemaHelpers) => T);
1151
+ /**
1152
+ * The `.astro` component that renders it, imported as the site imports it,
1153
+ * such as `"@/components/Hero.astro"`, or relative to `cms.config`.
1154
+ * Every MDX body can use it by name, with the schema's defaults applied.
1155
+ */
1156
+ component: string;
1157
+ children?: C;
1158
+ kind?: "flow" | "text";
1159
+ label?: string;
1160
+ /** What the component is for, shown when inserting and editing it. */
1161
+ description?: string;
1162
+ /**
1163
+ * The collections whose entries the component renders, such as `["projects"]`.
1164
+ * Selecting it in the admin links to them, since that is where its content is edited.
1165
+ */
1166
+ collections?: CollectionName[];
1167
+ /**
1168
+ * The prop that names an instance in the admin, such as `"title"`. Defaults to
1169
+ * the first required text prop with a value, then to any text prop with one.
1170
+ */
1171
+ summary?: string;
1172
+ icon?: ComponentIcon;
1173
+ editor?: JsxEditor;
1174
+ }
1175
+ /** What `cms.config` adds to one collection of the content config. */
1176
+ interface CollectionOptions {
1177
+ /**
1178
+ * How entries are ordered, both in the admin and for the site through
1179
+ * `sortEntries` from `astronaut-cms/content` (default: `{ by: "id" }`, astro's own
1180
+ * order). `{ by: "file" }` keeps the order of a `file()` collection's file, which
1181
+ * editors can then change.
1182
+ */
1183
+ sort?: CollectionSort;
1184
+ /** What the admin calls the collection (default: its name, title-cased). */
1185
+ label?: string;
1186
+ /** What the collection is for, shown in the admin and told to agents. */
1187
+ description?: string;
1188
+ icon?: ComponentIcon;
1189
+ }
1190
+ /**
1191
+ * One entry of the `collections` export of `cms.config`, keyed like the
1192
+ * collections of `content.config`, as {@link defineComponent} is one entry of
1193
+ * `components`.
1194
+ */
1195
+ declare function defineCollection(options: CollectionOptions): CollectionOptions;
1196
+ /** A link the admin lists in its sidebar, such as the site itself or a dashboard of its own. */
1197
+ interface LinkOptions {
1198
+ label: string;
1199
+ /** A path of the site, such as `"/dashboard/"`, or a full URL, opened in place of the admin. */
1200
+ href: string;
1201
+ icon?: ComponentIcon;
1202
+ }
1203
+ /** One entry of the `links` export of `cms.config`. */
1204
+ declare function defineLink(options: LinkOptions): LinkOptions;
1205
+ /**
1206
+ * One entry of the `components` export of `cms.config`. The integration renders
1207
+ * it in MDX through a generated wrapper, which `astronaut-cms:components` exports.
1208
+ */
1209
+ declare function defineComponent<T extends z.ZodType<object> = z.ZodObject<{}>, C extends ChildrenConfig = never>(def: ComponentDefinition<T, C>): ComponentDefinition<T, C>;
1210
+ export { localizedMarker as _, ComponentDefinition as a, JsxEditor as b, SchemaHelpers as c, defineLink as d, ImageResolver as f, linkMarker as g, libraryImage as h, CollectionRegistry as i, defineCollection as l, fileMarker as m, CollectionName as n, ComponentIcon as o, anchorMarker as p, CollectionOptions as r, LinkOptions as s, ChildrenConfig as t, defineComponent as u, referenceMarker as v, JsxEditorProps as x, EditorExports as y };