@cloudcannon/configuration-types 0.0.40 → 0.0.42
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/dist/cloudcannon-config.latest.schema.json +43 -0
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +43 -0
- package/dist/cloudcannon-config.legacy-hugo.schema.json +43 -0
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +43 -0
- package/dist/cloudcannon-config.legacy-reader.schema.json +43 -0
- package/package.json +3 -4
- package/src/configuration.ts +23 -0
|
@@ -610,6 +610,49 @@
|
|
|
610
610
|
"additionalProperties": false,
|
|
611
611
|
"markdownDescription": "This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor"
|
|
612
612
|
},
|
|
613
|
+
"pull_request_templates": {
|
|
614
|
+
"description": "Templates for pull requests.",
|
|
615
|
+
"type": "array",
|
|
616
|
+
"items": {
|
|
617
|
+
"type": "object",
|
|
618
|
+
"properties": {
|
|
619
|
+
"label": {
|
|
620
|
+
"description": "Used to identify a pull request template when multiple pull request templates are available.",
|
|
621
|
+
"type": "string",
|
|
622
|
+
"markdownDescription": "Used to identify a pull request template when multiple pull request templates are available."
|
|
623
|
+
},
|
|
624
|
+
"title": {
|
|
625
|
+
"description": "The default value for the pull request title.",
|
|
626
|
+
"type": "string",
|
|
627
|
+
"markdownDescription": "The default value for the pull request title."
|
|
628
|
+
},
|
|
629
|
+
"body": {
|
|
630
|
+
"description": "The default value for the pull request body.",
|
|
631
|
+
"type": "string",
|
|
632
|
+
"markdownDescription": "The default value for the pull request body."
|
|
633
|
+
},
|
|
634
|
+
"template_path": {
|
|
635
|
+
"description": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.",
|
|
636
|
+
"type": "string",
|
|
637
|
+
"markdownDescription": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined."
|
|
638
|
+
},
|
|
639
|
+
"_inputs": {
|
|
640
|
+
"title": "Inputs",
|
|
641
|
+
"description": "Define inputs used for the title and body fields of the pull request.",
|
|
642
|
+
"type": "object",
|
|
643
|
+
"propertyNames": {
|
|
644
|
+
"type": "string"
|
|
645
|
+
},
|
|
646
|
+
"additionalProperties": {
|
|
647
|
+
"$ref": "#/definitions/Input"
|
|
648
|
+
},
|
|
649
|
+
"markdownDescription": "Define inputs used for the title and body fields of the pull request."
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"additionalProperties": false
|
|
653
|
+
},
|
|
654
|
+
"markdownDescription": "Templates for pull requests."
|
|
655
|
+
},
|
|
613
656
|
"commit_templates": {
|
|
614
657
|
"description": "Templates for commit messages when saving changes.",
|
|
615
658
|
"type": "array",
|
|
@@ -206,6 +206,49 @@
|
|
|
206
206
|
"additionalProperties": false,
|
|
207
207
|
"markdownDescription": "This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor"
|
|
208
208
|
},
|
|
209
|
+
"pull_request_templates": {
|
|
210
|
+
"description": "Templates for pull requests.",
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"label": {
|
|
216
|
+
"description": "Used to identify a pull request template when multiple pull request templates are available.",
|
|
217
|
+
"type": "string",
|
|
218
|
+
"markdownDescription": "Used to identify a pull request template when multiple pull request templates are available."
|
|
219
|
+
},
|
|
220
|
+
"title": {
|
|
221
|
+
"description": "The default value for the pull request title.",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"markdownDescription": "The default value for the pull request title."
|
|
224
|
+
},
|
|
225
|
+
"body": {
|
|
226
|
+
"description": "The default value for the pull request body.",
|
|
227
|
+
"type": "string",
|
|
228
|
+
"markdownDescription": "The default value for the pull request body."
|
|
229
|
+
},
|
|
230
|
+
"template_path": {
|
|
231
|
+
"description": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"markdownDescription": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined."
|
|
234
|
+
},
|
|
235
|
+
"_inputs": {
|
|
236
|
+
"title": "Inputs",
|
|
237
|
+
"description": "Define inputs used for the title and body fields of the pull request.",
|
|
238
|
+
"type": "object",
|
|
239
|
+
"propertyNames": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"additionalProperties": {
|
|
243
|
+
"$ref": "#/definitions/Input"
|
|
244
|
+
},
|
|
245
|
+
"markdownDescription": "Define inputs used for the title and body fields of the pull request."
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"additionalProperties": false
|
|
249
|
+
},
|
|
250
|
+
"markdownDescription": "Templates for pull requests."
|
|
251
|
+
},
|
|
209
252
|
"commit_templates": {
|
|
210
253
|
"description": "Templates for commit messages when saving changes.",
|
|
211
254
|
"type": "array",
|
|
@@ -616,6 +616,49 @@
|
|
|
616
616
|
"additionalProperties": false,
|
|
617
617
|
"markdownDescription": "This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor"
|
|
618
618
|
},
|
|
619
|
+
"pull_request_templates": {
|
|
620
|
+
"description": "Templates for pull requests.",
|
|
621
|
+
"type": "array",
|
|
622
|
+
"items": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"label": {
|
|
626
|
+
"description": "Used to identify a pull request template when multiple pull request templates are available.",
|
|
627
|
+
"type": "string",
|
|
628
|
+
"markdownDescription": "Used to identify a pull request template when multiple pull request templates are available."
|
|
629
|
+
},
|
|
630
|
+
"title": {
|
|
631
|
+
"description": "The default value for the pull request title.",
|
|
632
|
+
"type": "string",
|
|
633
|
+
"markdownDescription": "The default value for the pull request title."
|
|
634
|
+
},
|
|
635
|
+
"body": {
|
|
636
|
+
"description": "The default value for the pull request body.",
|
|
637
|
+
"type": "string",
|
|
638
|
+
"markdownDescription": "The default value for the pull request body."
|
|
639
|
+
},
|
|
640
|
+
"template_path": {
|
|
641
|
+
"description": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.",
|
|
642
|
+
"type": "string",
|
|
643
|
+
"markdownDescription": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined."
|
|
644
|
+
},
|
|
645
|
+
"_inputs": {
|
|
646
|
+
"title": "Inputs",
|
|
647
|
+
"description": "Define inputs used for the title and body fields of the pull request.",
|
|
648
|
+
"type": "object",
|
|
649
|
+
"propertyNames": {
|
|
650
|
+
"type": "string"
|
|
651
|
+
},
|
|
652
|
+
"additionalProperties": {
|
|
653
|
+
"$ref": "#/definitions/Input"
|
|
654
|
+
},
|
|
655
|
+
"markdownDescription": "Define inputs used for the title and body fields of the pull request."
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"additionalProperties": false
|
|
659
|
+
},
|
|
660
|
+
"markdownDescription": "Templates for pull requests."
|
|
661
|
+
},
|
|
619
662
|
"commit_templates": {
|
|
620
663
|
"description": "Templates for commit messages when saving changes.",
|
|
621
664
|
"type": "array",
|
|
@@ -206,6 +206,49 @@
|
|
|
206
206
|
"additionalProperties": false,
|
|
207
207
|
"markdownDescription": "This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor"
|
|
208
208
|
},
|
|
209
|
+
"pull_request_templates": {
|
|
210
|
+
"description": "Templates for pull requests.",
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"label": {
|
|
216
|
+
"description": "Used to identify a pull request template when multiple pull request templates are available.",
|
|
217
|
+
"type": "string",
|
|
218
|
+
"markdownDescription": "Used to identify a pull request template when multiple pull request templates are available."
|
|
219
|
+
},
|
|
220
|
+
"title": {
|
|
221
|
+
"description": "The default value for the pull request title.",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"markdownDescription": "The default value for the pull request title."
|
|
224
|
+
},
|
|
225
|
+
"body": {
|
|
226
|
+
"description": "The default value for the pull request body.",
|
|
227
|
+
"type": "string",
|
|
228
|
+
"markdownDescription": "The default value for the pull request body."
|
|
229
|
+
},
|
|
230
|
+
"template_path": {
|
|
231
|
+
"description": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"markdownDescription": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined."
|
|
234
|
+
},
|
|
235
|
+
"_inputs": {
|
|
236
|
+
"title": "Inputs",
|
|
237
|
+
"description": "Define inputs used for the title and body fields of the pull request.",
|
|
238
|
+
"type": "object",
|
|
239
|
+
"propertyNames": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"additionalProperties": {
|
|
243
|
+
"$ref": "#/definitions/Input"
|
|
244
|
+
},
|
|
245
|
+
"markdownDescription": "Define inputs used for the title and body fields of the pull request."
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"additionalProperties": false
|
|
249
|
+
},
|
|
250
|
+
"markdownDescription": "Templates for pull requests."
|
|
251
|
+
},
|
|
209
252
|
"commit_templates": {
|
|
210
253
|
"description": "Templates for commit messages when saving changes.",
|
|
211
254
|
"type": "array",
|
|
@@ -644,6 +644,49 @@
|
|
|
644
644
|
"additionalProperties": false,
|
|
645
645
|
"markdownDescription": "This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor"
|
|
646
646
|
},
|
|
647
|
+
"pull_request_templates": {
|
|
648
|
+
"description": "Templates for pull requests.",
|
|
649
|
+
"type": "array",
|
|
650
|
+
"items": {
|
|
651
|
+
"type": "object",
|
|
652
|
+
"properties": {
|
|
653
|
+
"label": {
|
|
654
|
+
"description": "Used to identify a pull request template when multiple pull request templates are available.",
|
|
655
|
+
"type": "string",
|
|
656
|
+
"markdownDescription": "Used to identify a pull request template when multiple pull request templates are available."
|
|
657
|
+
},
|
|
658
|
+
"title": {
|
|
659
|
+
"description": "The default value for the pull request title.",
|
|
660
|
+
"type": "string",
|
|
661
|
+
"markdownDescription": "The default value for the pull request title."
|
|
662
|
+
},
|
|
663
|
+
"body": {
|
|
664
|
+
"description": "The default value for the pull request body.",
|
|
665
|
+
"type": "string",
|
|
666
|
+
"markdownDescription": "The default value for the pull request body."
|
|
667
|
+
},
|
|
668
|
+
"template_path": {
|
|
669
|
+
"description": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.",
|
|
670
|
+
"type": "string",
|
|
671
|
+
"markdownDescription": "Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined."
|
|
672
|
+
},
|
|
673
|
+
"_inputs": {
|
|
674
|
+
"title": "Inputs",
|
|
675
|
+
"description": "Define inputs used for the title and body fields of the pull request.",
|
|
676
|
+
"type": "object",
|
|
677
|
+
"propertyNames": {
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
"additionalProperties": {
|
|
681
|
+
"$ref": "#/definitions/Input"
|
|
682
|
+
},
|
|
683
|
+
"markdownDescription": "Define inputs used for the title and body fields of the pull request."
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"additionalProperties": false
|
|
687
|
+
},
|
|
688
|
+
"markdownDescription": "Templates for pull requests."
|
|
689
|
+
},
|
|
647
690
|
"commit_templates": {
|
|
648
691
|
"description": "Templates for commit messages when saving changes.",
|
|
649
692
|
"type": "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcannon/configuration-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Contains TypeScript declarations and generates JSONSchema files for the CloudCannon configuration file.",
|
|
6
6
|
"author": "CloudCannon <support@cloudcannon.com>",
|
|
@@ -43,16 +43,15 @@
|
|
|
43
43
|
"dist/**/*"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cloudcannon/snippet-types": "^1.1.13",
|
|
47
46
|
"zod": "^4.0.17"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
49
|
"@biomejs/biome": "1.9.4",
|
|
51
50
|
"@types/node": "^24.2.1",
|
|
52
|
-
"@vitest/coverage-v8": "^2.
|
|
51
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
53
52
|
"http-server": "^14.1.1",
|
|
54
53
|
"tsx": "^4.20.4",
|
|
55
54
|
"typescript": "^5.9.2",
|
|
56
|
-
"vitest": "^2.
|
|
55
|
+
"vitest": "^3.2.4"
|
|
57
56
|
}
|
|
58
57
|
}
|
package/src/configuration.ts
CHANGED
|
@@ -336,6 +336,26 @@ export const CommitTemplateSchema = z
|
|
|
336
336
|
description: 'A template for commit messages when saving changes.',
|
|
337
337
|
});
|
|
338
338
|
|
|
339
|
+
export const PullRequestTemplateSchema = z.object({
|
|
340
|
+
label: z.string().optional().meta({
|
|
341
|
+
description:
|
|
342
|
+
'Used to identify a pull request template when multiple pull request templates are available.',
|
|
343
|
+
}),
|
|
344
|
+
title: z.string().optional().meta({
|
|
345
|
+
description: 'The default value for the pull request title.',
|
|
346
|
+
}),
|
|
347
|
+
body: z.string().optional().meta({
|
|
348
|
+
description: 'The default value for the pull request body.',
|
|
349
|
+
}),
|
|
350
|
+
template_path: z.string().optional().meta({
|
|
351
|
+
description: 'Used to specify a file on the Site whose contents will be used as the default value for the pull request body. This has no effect if `body` is defined.',
|
|
352
|
+
}),
|
|
353
|
+
_inputs: z.record(z.string(), InputSchema).optional().meta({
|
|
354
|
+
title: 'Inputs',
|
|
355
|
+
description: 'Define inputs used for the title and body fields of the pull request.',
|
|
356
|
+
}),
|
|
357
|
+
});
|
|
358
|
+
|
|
339
359
|
export const ConfigurationSchema = z
|
|
340
360
|
.object({
|
|
341
361
|
...CascadeSchema.shape,
|
|
@@ -383,6 +403,9 @@ https://cloudcannon.com/documentation/articles/configuration-file-reference/#sou
|
|
|
383
403
|
description:
|
|
384
404
|
'This key defines the appearance and behavior of the Source Editor. The following nested keys are available:\n\n- `tab_size`\n- `show_gutter`\n- `theme`\n\nThis key has no default.\n\nhttps://cloudcannon.com/documentation/articles/the-source-editor/#source_editor',
|
|
385
405
|
}),
|
|
406
|
+
pull_request_templates: z.array(PullRequestTemplateSchema).optional().meta({
|
|
407
|
+
description: 'Templates for pull requests.',
|
|
408
|
+
}),
|
|
386
409
|
commit_templates: z.array(CommitTemplateSchema).optional().meta({
|
|
387
410
|
description: 'Templates for commit messages when saving changes.',
|
|
388
411
|
}),
|