@cloudcannon/configuration-types 0.0.42 → 0.0.44

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 (35) hide show
  1. package/dist/cloudcannon-collections.schema.json +9677 -0
  2. package/dist/cloudcannon-config.documentation.schema.json +11087 -0
  3. package/dist/cloudcannon-config.latest.schema.json +3640 -2288
  4. package/dist/cloudcannon-config.legacy-eleventy.schema.json +11018 -9663
  5. package/dist/cloudcannon-config.legacy-hugo.schema.json +3482 -2127
  6. package/dist/cloudcannon-config.legacy-jekyll.schema.json +11018 -9663
  7. package/dist/cloudcannon-config.legacy-reader.schema.json +6664 -5314
  8. package/dist/cloudcannon-editables.schema.json +767 -0
  9. package/dist/cloudcannon-inputs.schema.json +8713 -0
  10. package/dist/cloudcannon-schemas.schema.json +9341 -0
  11. package/dist/cloudcannon-snippets-definitions.schema.json +9 -0
  12. package/dist/cloudcannon-snippets-imports.schema.json +340 -0
  13. package/dist/cloudcannon-snippets.schema.json +9960 -0
  14. package/dist/cloudcannon-structure-value.schema.json +8715 -0
  15. package/dist/cloudcannon-structures.schema.json +8713 -0
  16. package/dist/documentation.json +59120 -0
  17. package/package.json +14 -12
  18. package/src/build-coupled.ts +3 -6
  19. package/src/cascade.ts +9 -6
  20. package/src/collections.ts +262 -0
  21. package/src/configuration.ts +53 -369
  22. package/src/documentation.ts +1 -1
  23. package/src/editables.ts +12 -2
  24. package/src/icon.ts +1 -1
  25. package/src/index.ts +17 -16
  26. package/src/inputs.ts +117 -50
  27. package/src/markdown.ts +69 -68
  28. package/src/paths.ts +11 -36
  29. package/src/preview.ts +51 -116
  30. package/src/select-values.ts +5 -8
  31. package/src/snippets.ts +218 -49
  32. package/src/source-editor.ts +25 -52
  33. package/src/structures.ts +17 -8
  34. package/src/syntax.ts +0 -103
  35. package/src/timezone.ts +1 -5
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-snippets-definitions.schema.json",
4
+ "type": "object",
5
+ "propertyNames": {
6
+ "type": "string"
7
+ },
8
+ "additionalProperties": {}
9
+ }
@@ -0,0 +1,340 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Snippets Imports",
4
+ "$id": "https://github.com/cloudcannon/configuration-types/releases/latest/download/cloudcannon-snippets-imports.schema.json",
5
+ "allOf": [
6
+ {
7
+ "$ref": "#/definitions/type._snippets_imports"
8
+ }
9
+ ],
10
+ "definitions": {
11
+ "type._snippets_imports": {
12
+ "id": "type._snippets_imports",
13
+ "title": "Snippets Imports",
14
+ "type": "object",
15
+ "properties": {
16
+ "hugo": {
17
+ "$ref": "#/definitions/_snippets_imports.hugo"
18
+ },
19
+ "jekyll": {
20
+ "$ref": "#/definitions/_snippets_imports.jekyll"
21
+ },
22
+ "mdx": {
23
+ "$ref": "#/definitions/_snippets_imports.mdx"
24
+ },
25
+ "eleventy_liquid": {
26
+ "$ref": "#/definitions/_snippets_imports.eleventy_liquid"
27
+ },
28
+ "eleventy_nunjucks": {
29
+ "$ref": "#/definitions/_snippets_imports.eleventy_nunjucks"
30
+ },
31
+ "markdoc": {
32
+ "$ref": "#/definitions/_snippets_imports.markdoc"
33
+ },
34
+ "python_markdown_extensions": {
35
+ "$ref": "#/definitions/_snippets_imports.python_markdown_extensions"
36
+ },
37
+ "docusaurus_mdx": {
38
+ "$ref": "#/definitions/_snippets_imports.docusaurus_mdx"
39
+ }
40
+ },
41
+ "additionalProperties": false
42
+ },
43
+ "_snippets_imports.hugo": {
44
+ "uniqueItems": true,
45
+ "anyOf": [
46
+ {
47
+ "title": "Full Import",
48
+ "type": "boolean"
49
+ },
50
+ {
51
+ "title": "Exclude List",
52
+ "type": "object",
53
+ "properties": {
54
+ "exclude": {
55
+ "$ref": "#/definitions/SnippetImportExclude"
56
+ }
57
+ },
58
+ "required": [
59
+ "exclude"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ {
64
+ "title": "Include List",
65
+ "type": "object",
66
+ "properties": {
67
+ "include": {
68
+ "$ref": "#/definitions/SnippetImportInclude"
69
+ }
70
+ },
71
+ "required": [
72
+ "include"
73
+ ],
74
+ "additionalProperties": false
75
+ }
76
+ ]
77
+ },
78
+ "SnippetImportExclude": {
79
+ "description": "The list of excluded snippets. If unset, all snippets are excluded unless defined in `include`.",
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ },
84
+ "markdownDescription": "The list of excluded snippets. If unset, all snippets are excluded unless defined in `include`."
85
+ },
86
+ "SnippetImportInclude": {
87
+ "description": "The list of included snippets. If unset, all snippets are included unless defined in `exclude`.",
88
+ "type": "array",
89
+ "items": {
90
+ "type": "string"
91
+ },
92
+ "markdownDescription": "The list of included snippets. If unset, all snippets are included unless defined in `exclude`."
93
+ },
94
+ "_snippets_imports.jekyll": {
95
+ "uniqueItems": true,
96
+ "anyOf": [
97
+ {
98
+ "title": "Full Import",
99
+ "type": "boolean"
100
+ },
101
+ {
102
+ "title": "Exclude List",
103
+ "type": "object",
104
+ "properties": {
105
+ "exclude": {
106
+ "$ref": "#/definitions/SnippetImportExclude"
107
+ }
108
+ },
109
+ "required": [
110
+ "exclude"
111
+ ],
112
+ "additionalProperties": false
113
+ },
114
+ {
115
+ "title": "Include List",
116
+ "type": "object",
117
+ "properties": {
118
+ "include": {
119
+ "$ref": "#/definitions/SnippetImportInclude"
120
+ }
121
+ },
122
+ "required": [
123
+ "include"
124
+ ],
125
+ "additionalProperties": false
126
+ }
127
+ ]
128
+ },
129
+ "_snippets_imports.mdx": {
130
+ "uniqueItems": true,
131
+ "anyOf": [
132
+ {
133
+ "title": "Full Import",
134
+ "type": "boolean"
135
+ },
136
+ {
137
+ "title": "Exclude List",
138
+ "type": "object",
139
+ "properties": {
140
+ "exclude": {
141
+ "$ref": "#/definitions/SnippetImportExclude"
142
+ }
143
+ },
144
+ "required": [
145
+ "exclude"
146
+ ],
147
+ "additionalProperties": false
148
+ },
149
+ {
150
+ "title": "Include List",
151
+ "type": "object",
152
+ "properties": {
153
+ "include": {
154
+ "$ref": "#/definitions/SnippetImportInclude"
155
+ }
156
+ },
157
+ "required": [
158
+ "include"
159
+ ],
160
+ "additionalProperties": false
161
+ }
162
+ ]
163
+ },
164
+ "_snippets_imports.eleventy_liquid": {
165
+ "uniqueItems": true,
166
+ "anyOf": [
167
+ {
168
+ "title": "Full Import",
169
+ "type": "boolean"
170
+ },
171
+ {
172
+ "title": "Exclude List",
173
+ "type": "object",
174
+ "properties": {
175
+ "exclude": {
176
+ "$ref": "#/definitions/SnippetImportExclude"
177
+ }
178
+ },
179
+ "required": [
180
+ "exclude"
181
+ ],
182
+ "additionalProperties": false
183
+ },
184
+ {
185
+ "title": "Include List",
186
+ "type": "object",
187
+ "properties": {
188
+ "include": {
189
+ "$ref": "#/definitions/SnippetImportInclude"
190
+ }
191
+ },
192
+ "required": [
193
+ "include"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ ]
198
+ },
199
+ "_snippets_imports.eleventy_nunjucks": {
200
+ "uniqueItems": true,
201
+ "anyOf": [
202
+ {
203
+ "title": "Full Import",
204
+ "type": "boolean"
205
+ },
206
+ {
207
+ "title": "Exclude List",
208
+ "type": "object",
209
+ "properties": {
210
+ "exclude": {
211
+ "$ref": "#/definitions/SnippetImportExclude"
212
+ }
213
+ },
214
+ "required": [
215
+ "exclude"
216
+ ],
217
+ "additionalProperties": false
218
+ },
219
+ {
220
+ "title": "Include List",
221
+ "type": "object",
222
+ "properties": {
223
+ "include": {
224
+ "$ref": "#/definitions/SnippetImportInclude"
225
+ }
226
+ },
227
+ "required": [
228
+ "include"
229
+ ],
230
+ "additionalProperties": false
231
+ }
232
+ ]
233
+ },
234
+ "_snippets_imports.markdoc": {
235
+ "uniqueItems": true,
236
+ "anyOf": [
237
+ {
238
+ "title": "Full Import",
239
+ "type": "boolean"
240
+ },
241
+ {
242
+ "title": "Exclude List",
243
+ "type": "object",
244
+ "properties": {
245
+ "exclude": {
246
+ "$ref": "#/definitions/SnippetImportExclude"
247
+ }
248
+ },
249
+ "required": [
250
+ "exclude"
251
+ ],
252
+ "additionalProperties": false
253
+ },
254
+ {
255
+ "title": "Include List",
256
+ "type": "object",
257
+ "properties": {
258
+ "include": {
259
+ "$ref": "#/definitions/SnippetImportInclude"
260
+ }
261
+ },
262
+ "required": [
263
+ "include"
264
+ ],
265
+ "additionalProperties": false
266
+ }
267
+ ]
268
+ },
269
+ "_snippets_imports.python_markdown_extensions": {
270
+ "uniqueItems": true,
271
+ "anyOf": [
272
+ {
273
+ "title": "Full Import",
274
+ "type": "boolean"
275
+ },
276
+ {
277
+ "title": "Exclude List",
278
+ "type": "object",
279
+ "properties": {
280
+ "exclude": {
281
+ "$ref": "#/definitions/SnippetImportExclude"
282
+ }
283
+ },
284
+ "required": [
285
+ "exclude"
286
+ ],
287
+ "additionalProperties": false
288
+ },
289
+ {
290
+ "title": "Include List",
291
+ "type": "object",
292
+ "properties": {
293
+ "include": {
294
+ "$ref": "#/definitions/SnippetImportInclude"
295
+ }
296
+ },
297
+ "required": [
298
+ "include"
299
+ ],
300
+ "additionalProperties": false
301
+ }
302
+ ]
303
+ },
304
+ "_snippets_imports.docusaurus_mdx": {
305
+ "uniqueItems": true,
306
+ "anyOf": [
307
+ {
308
+ "title": "Full Import",
309
+ "type": "boolean"
310
+ },
311
+ {
312
+ "title": "Exclude List",
313
+ "type": "object",
314
+ "properties": {
315
+ "exclude": {
316
+ "$ref": "#/definitions/SnippetImportExclude"
317
+ }
318
+ },
319
+ "required": [
320
+ "exclude"
321
+ ],
322
+ "additionalProperties": false
323
+ },
324
+ {
325
+ "title": "Include List",
326
+ "type": "object",
327
+ "properties": {
328
+ "include": {
329
+ "$ref": "#/definitions/SnippetImportInclude"
330
+ }
331
+ },
332
+ "required": [
333
+ "include"
334
+ ],
335
+ "additionalProperties": false
336
+ }
337
+ ]
338
+ }
339
+ }
340
+ }