@cloudcannon/configuration-types 0.0.53 → 0.0.54
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-collections.schema.json +956 -2187
- package/dist/cloudcannon-config.documentation.schema.json +487 -488
- package/dist/cloudcannon-config.latest.schema.json +248 -248
- package/dist/cloudcannon-config.legacy-eleventy.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-hugo.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-jekyll.schema.json +312 -315
- package/dist/cloudcannon-config.legacy-reader.schema.json +313 -316
- package/dist/cloudcannon-editables.schema.json +196 -332
- package/dist/cloudcannon-initial-site-settings.documentation.schema.json +15 -15
- package/dist/cloudcannon-initial-site-settings.schema.json +9 -9
- package/dist/cloudcannon-inputs.schema.json +177 -179
- package/dist/cloudcannon-routing.documentation.schema.json +23 -23
- package/dist/cloudcannon-routing.schema.json +13 -13
- package/dist/cloudcannon-schemas.schema.json +173 -173
- package/dist/cloudcannon-snippets-definitions.schema.json +21 -21
- package/dist/cloudcannon-snippets-imports.schema.json +55 -55
- package/dist/cloudcannon-snippets.schema.json +177 -177
- package/dist/cloudcannon-structure-value.schema.json +534 -533
- package/dist/cloudcannon-structures.schema.json +177 -179
- package/dist/documentation.json +10 -7
- package/package.json +4 -4
- package/src/inputs.ts +1 -4
package/dist/documentation.json
CHANGED
|
@@ -30862,21 +30862,21 @@
|
|
|
30862
30862
|
"type._inputs.*.(rich-text-input).options.allow_resize": {
|
|
30863
30863
|
"gid": "type._inputs.*.(rich-text-input).options.allow_resize",
|
|
30864
30864
|
"title": "",
|
|
30865
|
-
"description": "
|
|
30865
|
+
"description": "This key toggles whether CloudCannon will show the resize handler to vertically resize the input.\n\nSetting this key to `false` will hide the resize handler.\n\nBy default, this key is `true` (i.e., the resize handler is shown).",
|
|
30866
30866
|
"deprecated": true,
|
|
30867
|
+
"deprecated_description": "This key is deprecated. Use `preview_resize` instead.",
|
|
30867
30868
|
"type": "boolean",
|
|
30868
30869
|
"documentation": {
|
|
30869
30870
|
"gid": "type._inputs.*.(rich-text-input).options.allow_resize",
|
|
30870
30871
|
"url": "/configuration-file/types/_inputs/*/(rich-text-input)/options/allow_resize/",
|
|
30871
30872
|
"title": "",
|
|
30872
30873
|
"deprecated": true,
|
|
30873
|
-
"
|
|
30874
|
+
"deprecated_description": "This key is deprecated. Use `preview_resize` instead.",
|
|
30875
|
+
"description": "This key toggles whether CloudCannon will show the resize handler to vertically resize the input.\n\nSetting this key to `false` will hide the resize handler.\n\nBy default, this key is `true` (i.e., the resize handler is shown).",
|
|
30874
30876
|
"examples": [],
|
|
30875
30877
|
"show_in_navigation": false
|
|
30876
30878
|
},
|
|
30877
|
-
"developer_documentation": {
|
|
30878
|
-
"description": "**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead."
|
|
30879
|
-
},
|
|
30879
|
+
"developer_documentation": {},
|
|
30880
30880
|
"url": "/configuration-file/types/_inputs/*/(rich-text-input)/options/allow_resize/",
|
|
30881
30881
|
"required": false,
|
|
30882
30882
|
"key": "allow_resize",
|
|
@@ -34722,8 +34722,9 @@
|
|
|
34722
34722
|
"type._inputs.*.options.allow_empty": {
|
|
34723
34723
|
"gid": "type._inputs.*.options.allow_empty",
|
|
34724
34724
|
"title": "",
|
|
34725
|
-
"description": "
|
|
34725
|
+
"description": "This key toggles whether CloudCannon will accept empty values, and pre-select the first option if opened with an empty value.\n\nSetting this key to `true` will allow CloudCannon to accept empty values.",
|
|
34726
34726
|
"deprecated": true,
|
|
34727
|
+
"deprecated_description": "This key is deprecated. If you want to prevent empty values, we recommend setting `_inputs.*.options.required` to `true` instead.",
|
|
34727
34728
|
"examples": [
|
|
34728
34729
|
{
|
|
34729
34730
|
"description": "In this example, CloudCannon will accept empty values for a *Select Input*.",
|
|
@@ -34738,7 +34739,9 @@
|
|
|
34738
34739
|
"gid": "type._inputs.*.options.allow_empty",
|
|
34739
34740
|
"url": "/configuration-file/types/_inputs/*/options/allow_empty/",
|
|
34740
34741
|
"title": "",
|
|
34741
|
-
"
|
|
34742
|
+
"deprecated": true,
|
|
34743
|
+
"deprecated_description": "This key is deprecated. If you want to prevent empty values, we recommend setting `_inputs.*.options.required` to `true` instead.",
|
|
34744
|
+
"description": "This key toggles whether CloudCannon will accept empty values, and pre-select the first option if opened with an empty value.\n\nSetting this key to `true` will allow CloudCannon to accept empty values.",
|
|
34742
34745
|
"examples": [
|
|
34743
34746
|
{
|
|
34744
34747
|
"description": "In this example, CloudCannon will accept empty values for a *Select Input*.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcannon/configuration-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
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>",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"dist/**/*"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"zod": "^4.
|
|
48
|
+
"zod": "^4.3.6"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@biomejs/biome": "2.
|
|
51
|
+
"@biomejs/biome": "2.4.6",
|
|
52
52
|
"@types/js-yaml": "^4.0.9",
|
|
53
|
-
"@types/node": "^
|
|
53
|
+
"@types/node": "^25.4.0",
|
|
54
54
|
"http-server": "^14.1.1",
|
|
55
55
|
"js-yaml": "^4.1.1",
|
|
56
56
|
"tsx": "^4.21.0",
|
package/src/inputs.ts
CHANGED
|
@@ -538,10 +538,7 @@ export const RichTextInputOptionsSchema = z
|
|
|
538
538
|
...TextValidationSchema.shape,
|
|
539
539
|
...RequiredValidationSchema.shape,
|
|
540
540
|
empty_type: EmptyTypeTextSchema.optional(),
|
|
541
|
-
allow_resize: z.boolean().optional().meta({
|
|
542
|
-
deprecated: true,
|
|
543
|
-
description: '**⚠️ DEPRECATED:** This key is deprecated. Use `preview_resize` instead.',
|
|
544
|
-
}),
|
|
541
|
+
allow_resize: z.boolean().optional().meta({ deprecated: true }),
|
|
545
542
|
prevent_resize: z.boolean().default(false).optional().meta({
|
|
546
543
|
description: 'Hides the resize handler to vertically resize the input.',
|
|
547
544
|
}),
|