@ztl-uwu/nuxt-content 2.13.5

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 (146) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -0
  3. package/dist/module.d.mts +1176 -0
  4. package/dist/module.json +12 -0
  5. package/dist/module.mjs +696 -0
  6. package/dist/runtime/app.vue +3 -0
  7. package/dist/runtime/app.vue.d.ts +2 -0
  8. package/dist/runtime/components/ContentDoc.vue +108 -0
  9. package/dist/runtime/components/ContentDoc.vue.d.ts +118 -0
  10. package/dist/runtime/components/ContentList.vue +59 -0
  11. package/dist/runtime/components/ContentList.vue.d.ts +59 -0
  12. package/dist/runtime/components/ContentNavigation.vue +61 -0
  13. package/dist/runtime/components/ContentNavigation.vue.d.ts +35 -0
  14. package/dist/runtime/components/ContentQuery.vue +212 -0
  15. package/dist/runtime/components/ContentQuery.vue.d.ts +0 -0
  16. package/dist/runtime/components/ContentRenderer.vue +78 -0
  17. package/dist/runtime/components/ContentRenderer.vue.d.ts +56 -0
  18. package/dist/runtime/components/ContentRendererMarkdown.vue +69 -0
  19. package/dist/runtime/components/ContentRendererMarkdown.vue.d.ts +73 -0
  20. package/dist/runtime/components/ContentSlot.vue +25 -0
  21. package/dist/runtime/components/ContentSlot.vue.d.ts +37 -0
  22. package/dist/runtime/components/DocumentDrivenEmpty.vue +18 -0
  23. package/dist/runtime/components/DocumentDrivenEmpty.vue.d.ts +17 -0
  24. package/dist/runtime/components/DocumentDrivenNotFound.vue +9 -0
  25. package/dist/runtime/components/DocumentDrivenNotFound.vue.d.ts +5 -0
  26. package/dist/runtime/components/Markdown.vue +29 -0
  27. package/dist/runtime/components/Markdown.vue.d.ts +31 -0
  28. package/dist/runtime/components/Prose/ProseCode.vue +32 -0
  29. package/dist/runtime/components/Prose/ProseCode.vue.d.ts +110 -0
  30. package/dist/runtime/components/Prose/ProseCodeInline.vue +3 -0
  31. package/dist/runtime/components/Prose/ProseCodeInline.vue.d.ts +14 -0
  32. package/dist/runtime/components/Prose/ProsePre.vue +42 -0
  33. package/dist/runtime/components/Prose/ProsePre.vue.d.ts +146 -0
  34. package/dist/runtime/composables/client-db.d.ts +14 -0
  35. package/dist/runtime/composables/client-db.js +105 -0
  36. package/dist/runtime/composables/content.d.ts +19 -0
  37. package/dist/runtime/composables/content.js +41 -0
  38. package/dist/runtime/composables/head.d.ts +4 -0
  39. package/dist/runtime/composables/head.js +94 -0
  40. package/dist/runtime/composables/helpers.d.ts +7 -0
  41. package/dist/runtime/composables/helpers.js +66 -0
  42. package/dist/runtime/composables/navigation.d.ts +2 -0
  43. package/dist/runtime/composables/navigation.js +34 -0
  44. package/dist/runtime/composables/preview.d.ts +5 -0
  45. package/dist/runtime/composables/preview.js +41 -0
  46. package/dist/runtime/composables/query.d.ts +10 -0
  47. package/dist/runtime/composables/query.js +64 -0
  48. package/dist/runtime/composables/search.d.ts +130 -0
  49. package/dist/runtime/composables/search.js +59 -0
  50. package/dist/runtime/composables/useUnwrap.d.ts +5 -0
  51. package/dist/runtime/composables/useUnwrap.js +5 -0
  52. package/dist/runtime/composables/utils.d.ts +6 -0
  53. package/dist/runtime/composables/utils.js +36 -0
  54. package/dist/runtime/composables/web-socket.d.ts +3 -0
  55. package/dist/runtime/composables/web-socket.js +65 -0
  56. package/dist/runtime/legacy/composables/client-db.d.ts +12 -0
  57. package/dist/runtime/legacy/composables/client-db.js +105 -0
  58. package/dist/runtime/legacy/composables/navigation.d.ts +2 -0
  59. package/dist/runtime/legacy/composables/navigation.js +34 -0
  60. package/dist/runtime/legacy/composables/query.d.ts +10 -0
  61. package/dist/runtime/legacy/composables/query.js +61 -0
  62. package/dist/runtime/legacy/plugins/documentDriven.d.ts +2 -0
  63. package/dist/runtime/legacy/plugins/documentDriven.js +231 -0
  64. package/dist/runtime/legacy/server.d.ts +3 -0
  65. package/dist/runtime/legacy/server.js +3 -0
  66. package/dist/runtime/legacy/types.d.ts +5 -0
  67. package/dist/runtime/pages/document-driven.vue +27 -0
  68. package/dist/runtime/pages/document-driven.vue.d.ts +2 -0
  69. package/dist/runtime/plugins/documentDriven.d.ts +2 -0
  70. package/dist/runtime/plugins/documentDriven.js +222 -0
  71. package/dist/runtime/plugins/ws.d.ts +2 -0
  72. package/dist/runtime/plugins/ws.js +7 -0
  73. package/dist/runtime/query/match/index.d.ts +6 -0
  74. package/dist/runtime/query/match/index.js +123 -0
  75. package/dist/runtime/query/match/pipeline-legacy.d.ts +2 -0
  76. package/dist/runtime/query/match/pipeline-legacy.js +22 -0
  77. package/dist/runtime/query/match/pipeline.d.ts +2 -0
  78. package/dist/runtime/query/match/pipeline.js +104 -0
  79. package/dist/runtime/query/match/utils.d.ts +35 -0
  80. package/dist/runtime/query/match/utils.js +65 -0
  81. package/dist/runtime/query/query.d.ts +12 -0
  82. package/dist/runtime/query/query.js +61 -0
  83. package/dist/runtime/server/api/cache.d.ts +7 -0
  84. package/dist/runtime/server/api/cache.js +18 -0
  85. package/dist/runtime/server/api/navigation-qid-params.d.ts +1 -0
  86. package/dist/runtime/server/api/navigation-qid-params.js +1 -0
  87. package/dist/runtime/server/api/navigation-qid.d.ts +1 -0
  88. package/dist/runtime/server/api/navigation-qid.js +1 -0
  89. package/dist/runtime/server/api/navigation.d.ts +2 -0
  90. package/dist/runtime/server/api/navigation.js +42 -0
  91. package/dist/runtime/server/api/query-qid-params.d.ts +1 -0
  92. package/dist/runtime/server/api/query-qid-params.js +1 -0
  93. package/dist/runtime/server/api/query-qid.d.ts +1 -0
  94. package/dist/runtime/server/api/query-qid.js +1 -0
  95. package/dist/runtime/server/api/query.d.ts +2 -0
  96. package/dist/runtime/server/api/query.js +32 -0
  97. package/dist/runtime/server/api/search.d.ts +8 -0
  98. package/dist/runtime/server/api/search.js +16 -0
  99. package/dist/runtime/server/content-index.d.ts +4 -0
  100. package/dist/runtime/server/content-index.js +37 -0
  101. package/dist/runtime/server/index.d.ts +1 -0
  102. package/dist/runtime/server/index.js +1 -0
  103. package/dist/runtime/server/navigation.d.ts +5 -0
  104. package/dist/runtime/server/navigation.js +96 -0
  105. package/dist/runtime/server/plugins/refresh-cache.d.ts +2 -0
  106. package/dist/runtime/server/plugins/refresh-cache.js +15 -0
  107. package/dist/runtime/server/preview.d.ts +5 -0
  108. package/dist/runtime/server/preview.js +9 -0
  109. package/dist/runtime/server/search.d.ts +14 -0
  110. package/dist/runtime/server/search.js +70 -0
  111. package/dist/runtime/server/storage.d.ts +35 -0
  112. package/dist/runtime/server/storage.js +238 -0
  113. package/dist/runtime/transformers/component-resolver.d.ts +2 -0
  114. package/dist/runtime/transformers/component-resolver.js +44 -0
  115. package/dist/runtime/transformers/csv/create-tokenizer.d.ts +39 -0
  116. package/dist/runtime/transformers/csv/create-tokenizer.js +307 -0
  117. package/dist/runtime/transformers/csv/from-csv.d.ts +13 -0
  118. package/dist/runtime/transformers/csv/from-csv.js +203 -0
  119. package/dist/runtime/transformers/csv/index.d.ts +2 -0
  120. package/dist/runtime/transformers/csv/index.js +50 -0
  121. package/dist/runtime/transformers/csv/parser.d.ts +24 -0
  122. package/dist/runtime/transformers/csv/parser.js +154 -0
  123. package/dist/runtime/transformers/index.d.ts +7 -0
  124. package/dist/runtime/transformers/index.js +50 -0
  125. package/dist/runtime/transformers/json.d.ts +2 -0
  126. package/dist/runtime/transformers/json.js +29 -0
  127. package/dist/runtime/transformers/markdown.d.ts +2 -0
  128. package/dist/runtime/transformers/markdown.js +88 -0
  129. package/dist/runtime/transformers/path-meta.d.ts +27 -0
  130. package/dist/runtime/transformers/path-meta.js +59 -0
  131. package/dist/runtime/transformers/utils.d.ts +3 -0
  132. package/dist/runtime/transformers/utils.js +12 -0
  133. package/dist/runtime/transformers/yaml.d.ts +2 -0
  134. package/dist/runtime/transformers/yaml.js +21 -0
  135. package/dist/runtime/utils/config.d.ts +4 -0
  136. package/dist/runtime/utils/config.js +7 -0
  137. package/dist/runtime/utils/html-tags.d.ts +2 -0
  138. package/dist/runtime/utils/html-tags.js +119 -0
  139. package/dist/runtime/utils/json.d.ts +10 -0
  140. package/dist/runtime/utils/json.js +20 -0
  141. package/dist/runtime/utils/query.d.ts +5 -0
  142. package/dist/runtime/utils/query.js +77 -0
  143. package/dist/runtime/virtual/transformers.d.ts +2 -0
  144. package/dist/types.d.mts +9 -0
  145. package/dist/web-types.json +572 -0
  146. package/package.json +111 -0
@@ -0,0 +1,77 @@
1
+ import { getQuery, createError } from "h3";
2
+ import { jsonParse, jsonStringify } from "./json.js";
3
+ const parseJSONQueryParams = (body) => {
4
+ try {
5
+ return jsonParse(body);
6
+ } catch {
7
+ throw createError({ statusCode: 400, message: "Invalid _params query" });
8
+ }
9
+ };
10
+ export const encodeQueryParams = (params) => {
11
+ let encoded = jsonStringify(params);
12
+ encoded = typeof Buffer !== "undefined" ? Buffer.from(encoded).toString("base64") : btoa(encoded);
13
+ encoded = encoded.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
14
+ const chunks = encoded.match(/.{1,100}/g) || [];
15
+ return chunks.join("/");
16
+ };
17
+ export const decodeQueryParams = (encoded) => {
18
+ encoded = encoded.replace(/\//g, "");
19
+ encoded = encoded.replace(/-/g, "+").replace(/_/g, "/");
20
+ encoded = encoded.padEnd(encoded.length + (4 - encoded.length % 4) % 4, "=");
21
+ return parseJSONQueryParams(typeof Buffer !== "undefined" ? Buffer.from(encoded, "base64").toString() : atob(encoded));
22
+ };
23
+ const memory = {};
24
+ export const getContentQuery = (event) => {
25
+ const { params } = event.context.params || {};
26
+ if (params) {
27
+ return decodeQueryParams(params.replace(/.json$/, ""));
28
+ }
29
+ const qid = event.context.params?.qid?.replace(/.json$/, "");
30
+ const query = getQuery(event) || {};
31
+ if (qid && query._params) {
32
+ memory[qid] = parseJSONQueryParams(decodeURIComponent(query._params));
33
+ if (memory[qid]?.where && !Array.isArray(memory[qid]?.where)) {
34
+ memory[qid].where = [memory[qid].where];
35
+ }
36
+ return memory[qid];
37
+ }
38
+ if (qid && memory[qid]) {
39
+ return memory[qid];
40
+ }
41
+ if (query._params) {
42
+ return parseJSONQueryParams(decodeURIComponent(query._params));
43
+ }
44
+ if (typeof query.only === "string" && query.only.includes(",")) {
45
+ query.only = query.only.split(",").map((s) => s.trim());
46
+ }
47
+ if (typeof query.without === "string" && query.without.includes(",")) {
48
+ query.without = query.without.split(",").map((s) => s.trim());
49
+ }
50
+ const where = query.where || {};
51
+ for (const key of ["draft", "partial", "empty"]) {
52
+ if (query[key] && ["true", "false"].includes(query[key])) {
53
+ where[key] = query[key] === "true";
54
+ delete query[key];
55
+ }
56
+ }
57
+ if (query.sort) {
58
+ query.sort = String(query.sort).split(",").map((s) => {
59
+ const [key, order] = s.split(":");
60
+ return [key, Number.parseInt(order || "0", 10)];
61
+ });
62
+ }
63
+ const reservedKeys = ["partial", "draft", "only", "without", "where", "sort", "limit", "skip"];
64
+ for (const key of Object.keys(query)) {
65
+ if (reservedKeys.includes(key)) {
66
+ continue;
67
+ }
68
+ query.where = query.where || {};
69
+ query.where[key] = query[key];
70
+ }
71
+ if (Object.keys(where).length > 0) {
72
+ query.where = [where];
73
+ } else {
74
+ delete query.where;
75
+ }
76
+ return query;
77
+ };
@@ -0,0 +1,2 @@
1
+ export const getParser: (extension: string) => ContentTransformer
2
+ export const getTransformers: (extension: string) => ContentTransformer[]
@@ -0,0 +1,9 @@
1
+ import type { ModuleHooks } from './module.mjs'
2
+
3
+ declare module '@nuxt/schema' {
4
+ interface NuxtHooks extends ModuleHooks {}
5
+ }
6
+
7
+ export { default } from './module.mjs'
8
+
9
+ export { type ContentContext, type ContentQueryBuilder, type ContentQueryBuilderParams, type ContentQueryBuilderWhere, type ContentQueryCountResponse, type ContentQueryFetcher, type ContentQueryFindOneResponse, type ContentQueryFindResponse, type ContentQueryResponse, type ContentQuerySortFields, type ContentQuerySortOptions, type ContentQuerySortParams, type ContentQueryWithDirConfig, type ContentQueryWithSurround, type ContentTransformer, type DatabaseFetcher, type MarkdownHtmlNode, type MarkdownNode, type MarkdownOptions, type MarkdownParsedContent, type MarkdownPlugin, type MarkdownRoot, type ModuleHooks, type ModuleOptions, type MountOptions, type NavItem, type ParsedContent, type ParsedContentInternalMeta, type ParsedContentMeta, type QueryBuilder, type QueryBuilderParams, type QueryBuilderWhere, type QueryMatchOperator, type QueryPipe, type SortFields, type SortOptions, type SortParams, type Toc, type TocLink, type TransformContentOptions } from './module.mjs'
@@ -0,0 +1,572 @@
1
+ {
2
+ "framework": "vue",
3
+ "name": "@ztl-uwu/nuxt-content",
4
+ "version": "2.13.5",
5
+ "contributions": {
6
+ "html": {
7
+ "description-markup": "markdown",
8
+ "types-syntax": "typescript",
9
+ "tags": [
10
+ {
11
+ "name": "ContentDoc",
12
+ "description": "",
13
+ "attributes": [
14
+ {
15
+ "name": "tag",
16
+ "required": false,
17
+ "description": "The tag to use for the renderer element if it is used.",
18
+ "value": {
19
+ "kind": "expression",
20
+ "type": "string"
21
+ },
22
+ "default": "'div'"
23
+ },
24
+ {
25
+ "name": "excerpt",
26
+ "description": "Whether or not to render the excerpt.",
27
+ "value": {
28
+ "kind": "expression",
29
+ "type": "boolean"
30
+ },
31
+ "default": "false"
32
+ },
33
+ {
34
+ "name": "path",
35
+ "required": false,
36
+ "description": "The path of the content to load from content source.",
37
+ "value": {
38
+ "kind": "expression",
39
+ "type": "string"
40
+ },
41
+ "default": "undefined"
42
+ },
43
+ {
44
+ "name": "query",
45
+ "required": false,
46
+ "description": "A query builder params object to be passed to <ContentQuery /> component.",
47
+ "value": {
48
+ "kind": "expression",
49
+ "type": "QueryBuilderParams"
50
+ },
51
+ "default": "undefined"
52
+ },
53
+ {
54
+ "name": "head",
55
+ "required": false,
56
+ "description": "Whether or not to map the document data to the `head` property.",
57
+ "value": {
58
+ "kind": "expression",
59
+ "type": "boolean"
60
+ },
61
+ "default": "undefined"
62
+ }
63
+ ],
64
+ "slots": [
65
+ {
66
+ "name": "not-found",
67
+ "description": "Document not found fallback"
68
+ },
69
+ {
70
+ "name": "empty",
71
+ "description": "Document empty fallback"
72
+ }
73
+ ],
74
+ "source": {
75
+ "module": "./src/runtime/components/ContentDoc.vue",
76
+ "symbol": "default"
77
+ }
78
+ },
79
+ {
80
+ "name": "ContentList",
81
+ "description": "",
82
+ "attributes": [
83
+ {
84
+ "name": "path",
85
+ "required": false,
86
+ "description": "The path of the content to load from content source.",
87
+ "value": {
88
+ "kind": "expression",
89
+ "type": "string"
90
+ },
91
+ "default": "undefined"
92
+ },
93
+ {
94
+ "name": "query",
95
+ "required": false,
96
+ "description": "A query builder params object to be passed to <ContentQuery /> component.",
97
+ "value": {
98
+ "kind": "expression",
99
+ "type": "QueryBuilderParams"
100
+ },
101
+ "default": "undefined"
102
+ }
103
+ ],
104
+ "slots": [
105
+ {
106
+ "name": "not-found",
107
+ "description": "Content not found fallback"
108
+ },
109
+ {
110
+ "name": "empty",
111
+ "description": "Content empty fallback"
112
+ }
113
+ ],
114
+ "source": {
115
+ "module": "./src/runtime/components/ContentList.vue",
116
+ "symbol": "default"
117
+ }
118
+ },
119
+ {
120
+ "name": "ContentNavigation",
121
+ "description": "",
122
+ "attributes": [
123
+ {
124
+ "name": "query",
125
+ "required": false,
126
+ "description": "A query to be passed to `fetchContentNavigation()`.",
127
+ "value": {
128
+ "kind": "expression",
129
+ "type": "QueryBuilderParams | QueryBuilder"
130
+ },
131
+ "default": "undefined"
132
+ }
133
+ ],
134
+ "slots": [
135
+ {
136
+ "name": "empty",
137
+ "description": "Navigation empty fallback"
138
+ }
139
+ ],
140
+ "source": {
141
+ "module": "./src/runtime/components/ContentNavigation.vue",
142
+ "symbol": "default"
143
+ }
144
+ },
145
+ {
146
+ "name": "ContentQuery",
147
+ "description": "",
148
+ "attributes": [
149
+ {
150
+ "name": "path",
151
+ "required": false,
152
+ "description": "The path of the content to load from content source.",
153
+ "value": {
154
+ "kind": "expression",
155
+ "type": "string"
156
+ },
157
+ "default": "undefined"
158
+ },
159
+ {
160
+ "name": "only",
161
+ "required": false,
162
+ "description": "Select a subset of fields",
163
+ "value": {
164
+ "kind": "expression",
165
+ "type": "Array<string>"
166
+ },
167
+ "default": "undefined"
168
+ },
169
+ {
170
+ "name": "without",
171
+ "required": false,
172
+ "description": "Remove a subset of fields",
173
+ "value": {
174
+ "kind": "expression",
175
+ "type": "Array<string>"
176
+ },
177
+ "default": "undefined"
178
+ },
179
+ {
180
+ "name": "where",
181
+ "required": false,
182
+ "description": "Filter results",
183
+ "value": {
184
+ "kind": "expression",
185
+ "type": "{ [key: string]: any }"
186
+ },
187
+ "default": "undefined"
188
+ },
189
+ {
190
+ "name": "sort",
191
+ "required": false,
192
+ "description": "Sort results",
193
+ "value": {
194
+ "kind": "expression",
195
+ "type": "SortParams"
196
+ },
197
+ "default": "undefined"
198
+ },
199
+ {
200
+ "name": "limit",
201
+ "required": false,
202
+ "description": "Limit number of results",
203
+ "value": {
204
+ "kind": "expression",
205
+ "type": "number"
206
+ },
207
+ "default": "undefined"
208
+ },
209
+ {
210
+ "name": "skip",
211
+ "required": false,
212
+ "description": "Skip number of results",
213
+ "value": {
214
+ "kind": "expression",
215
+ "type": "number"
216
+ },
217
+ "default": "undefined"
218
+ },
219
+ {
220
+ "name": "locale",
221
+ "required": false,
222
+ "description": "Filter contents based on locale",
223
+ "value": {
224
+ "kind": "expression",
225
+ "type": "string"
226
+ },
227
+ "default": "undefined"
228
+ },
229
+ {
230
+ "name": "find",
231
+ "required": false,
232
+ "description": "A type of query to be made.",
233
+ "value": {
234
+ "kind": "expression",
235
+ "type": "string"
236
+ },
237
+ "default": "undefined"
238
+ }
239
+ ],
240
+ "slots": [
241
+ {
242
+ "name": "not-found",
243
+ "description": "Content not found fallback"
244
+ }
245
+ ],
246
+ "source": {
247
+ "module": "./src/runtime/components/ContentQuery.vue",
248
+ "symbol": "default"
249
+ }
250
+ },
251
+ {
252
+ "name": "ContentRenderer",
253
+ "description": "",
254
+ "attributes": [
255
+ {
256
+ "name": "value",
257
+ "required": false,
258
+ "description": "The document to render.",
259
+ "value": {
260
+ "kind": "expression",
261
+ "type": "object"
262
+ },
263
+ "default": "{}"
264
+ },
265
+ {
266
+ "name": "excerpt",
267
+ "description": "Whether or not to render the excerpt.",
268
+ "value": {
269
+ "kind": "expression",
270
+ "type": "boolean"
271
+ },
272
+ "default": "false"
273
+ },
274
+ {
275
+ "name": "tag",
276
+ "description": "The tag to use for the renderer element if it is used.",
277
+ "value": {
278
+ "kind": "expression",
279
+ "type": "string"
280
+ },
281
+ "default": "'div'"
282
+ }
283
+ ],
284
+ "slots": [
285
+ {
286
+ "name": "empty",
287
+ "description": "Content empty fallback"
288
+ }
289
+ ],
290
+ "source": {
291
+ "module": "./src/runtime/components/ContentRenderer.vue",
292
+ "symbol": "default"
293
+ }
294
+ },
295
+ {
296
+ "name": "ContentRendererMarkdown",
297
+ "description": "",
298
+ "attributes": [
299
+ {
300
+ "name": "value",
301
+ "required": true,
302
+ "description": "Content to render",
303
+ "value": {
304
+ "kind": "expression",
305
+ "type": "object"
306
+ }
307
+ },
308
+ {
309
+ "name": "excerpt",
310
+ "description": "Render only the excerpt",
311
+ "value": {
312
+ "kind": "expression",
313
+ "type": "boolean"
314
+ },
315
+ "default": "false"
316
+ },
317
+ {
318
+ "name": "tag",
319
+ "description": "Root tag to use for rendering",
320
+ "value": {
321
+ "kind": "expression",
322
+ "type": "string"
323
+ },
324
+ "default": "'div'"
325
+ },
326
+ {
327
+ "name": "components",
328
+ "description": "The map of custom components to use for rendering.",
329
+ "value": {
330
+ "kind": "expression",
331
+ "type": "object"
332
+ },
333
+ "default": "{}"
334
+ },
335
+ {
336
+ "name": "data",
337
+ "value": {
338
+ "kind": "expression",
339
+ "type": "object"
340
+ },
341
+ "default": "{}"
342
+ }
343
+ ],
344
+ "source": {
345
+ "module": "./src/runtime/components/ContentRendererMarkdown.vue",
346
+ "symbol": "default"
347
+ }
348
+ },
349
+ {
350
+ "name": "ContentSlot",
351
+ "description": "",
352
+ "attributes": [
353
+ {
354
+ "name": "use",
355
+ "description": "A slot name or function",
356
+ "value": {
357
+ "kind": "expression",
358
+ "type": "func"
359
+ },
360
+ "default": "undefined"
361
+ },
362
+ {
363
+ "name": "unwrap",
364
+ "description": "Tags to unwrap separated by spaces\nExample: 'ul li'",
365
+ "value": {
366
+ "kind": "expression",
367
+ "type": "boolean|string"
368
+ },
369
+ "default": "false"
370
+ }
371
+ ],
372
+ "source": {
373
+ "module": "./src/runtime/components/ContentSlot.vue",
374
+ "symbol": "default"
375
+ }
376
+ },
377
+ {
378
+ "name": "DocumentDrivenEmpty",
379
+ "description": "Used in `src/runtime/pages/document-driven.vue`",
380
+ "attributes": [
381
+ {
382
+ "name": "value",
383
+ "required": true,
384
+ "value": {
385
+ "kind": "expression",
386
+ "type": "ParsedContent"
387
+ }
388
+ }
389
+ ],
390
+ "source": {
391
+ "module": "./src/runtime/components/DocumentDrivenEmpty.vue",
392
+ "symbol": "default"
393
+ }
394
+ },
395
+ {
396
+ "name": "DocumentDrivenNotFound",
397
+ "description": "Used in `src/runtime/pages/document-driven.vue`",
398
+ "source": {
399
+ "module": "./src/runtime/components/DocumentDrivenNotFound.vue",
400
+ "symbol": "default"
401
+ }
402
+ },
403
+ {
404
+ "name": "Markdown",
405
+ "description": "Markdown component",
406
+ "attributes": [
407
+ {
408
+ "name": "use",
409
+ "description": "A slot name or function",
410
+ "value": {
411
+ "kind": "expression",
412
+ "type": "func"
413
+ },
414
+ "default": "undefined"
415
+ },
416
+ {
417
+ "name": "unwrap",
418
+ "description": "Tags to unwrap separated by spaces\nExample: 'ul li'",
419
+ "value": {
420
+ "kind": "expression",
421
+ "type": "boolean|string"
422
+ },
423
+ "default": "false"
424
+ }
425
+ ],
426
+ "source": {
427
+ "module": "./src/runtime/components/Markdown.vue",
428
+ "symbol": "default"
429
+ }
430
+ },
431
+ {
432
+ "name": "ProseCode",
433
+ "description": "",
434
+ "attributes": [
435
+ {
436
+ "name": "code",
437
+ "value": {
438
+ "kind": "expression",
439
+ "type": "string"
440
+ },
441
+ "default": "''"
442
+ },
443
+ {
444
+ "name": "language",
445
+ "value": {
446
+ "kind": "expression",
447
+ "type": "string"
448
+ },
449
+ "default": "null"
450
+ },
451
+ {
452
+ "name": "filename",
453
+ "value": {
454
+ "kind": "expression",
455
+ "type": "string"
456
+ },
457
+ "default": "null"
458
+ },
459
+ {
460
+ "name": "highlights",
461
+ "value": {
462
+ "kind": "expression",
463
+ "type": "Array as () => number[]"
464
+ },
465
+ "default": "() => []"
466
+ },
467
+ {
468
+ "name": "meta",
469
+ "value": {
470
+ "kind": "expression",
471
+ "type": "string"
472
+ },
473
+ "default": "null"
474
+ }
475
+ ],
476
+ "slots": [
477
+ {
478
+ "name": "default"
479
+ }
480
+ ],
481
+ "source": {
482
+ "module": "./src/runtime/components/Prose/ProseCode.vue",
483
+ "symbol": "default"
484
+ }
485
+ },
486
+ {
487
+ "name": "ProseCodeInline",
488
+ "description": "",
489
+ "slots": [
490
+ {
491
+ "name": "default"
492
+ }
493
+ ],
494
+ "source": {
495
+ "module": "./src/runtime/components/Prose/ProseCodeInline.vue"
496
+ }
497
+ },
498
+ {
499
+ "name": "ProsePre",
500
+ "description": "",
501
+ "attributes": [
502
+ {
503
+ "name": "code",
504
+ "value": {
505
+ "kind": "expression",
506
+ "type": "string"
507
+ },
508
+ "default": "''"
509
+ },
510
+ {
511
+ "name": "language",
512
+ "value": {
513
+ "kind": "expression",
514
+ "type": "string"
515
+ },
516
+ "default": "null"
517
+ },
518
+ {
519
+ "name": "filename",
520
+ "value": {
521
+ "kind": "expression",
522
+ "type": "string"
523
+ },
524
+ "default": "null"
525
+ },
526
+ {
527
+ "name": "highlights",
528
+ "value": {
529
+ "kind": "expression",
530
+ "type": "Array as () => number[]"
531
+ },
532
+ "default": "() => []"
533
+ },
534
+ {
535
+ "name": "meta",
536
+ "value": {
537
+ "kind": "expression",
538
+ "type": "string"
539
+ },
540
+ "default": "null"
541
+ },
542
+ {
543
+ "name": "class",
544
+ "value": {
545
+ "kind": "expression",
546
+ "type": "string"
547
+ },
548
+ "default": "null"
549
+ },
550
+ {
551
+ "name": "style",
552
+ "value": {
553
+ "kind": "expression",
554
+ "type": "string|object"
555
+ },
556
+ "default": "null"
557
+ }
558
+ ],
559
+ "slots": [
560
+ {
561
+ "name": "default"
562
+ }
563
+ ],
564
+ "source": {
565
+ "module": "./src/runtime/components/Prose/ProsePre.vue",
566
+ "symbol": "default"
567
+ }
568
+ }
569
+ ]
570
+ }
571
+ }
572
+ }