@sveltia/cms 0.35.0 → 0.35.1
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/README.md +2 -2
- package/dist/sveltia-cms.js +151 -151
- package/dist/sveltia-cms.mjs +151 -151
- package/package.json +14 -5
package/README.md
CHANGED
|
@@ -230,7 +230,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
230
230
|
- Object
|
|
231
231
|
- Sveltia CMS offers two ways to have conditional fields in a collection[^30]:
|
|
232
232
|
- You can use [variable types](https://decapcms.org/docs/variable-type-widgets/) (the `types` option) with the Object widget just like the List widget.
|
|
233
|
-
- An optional Object field (`required: false`) can be manually added or removed with a checkbox[^88]. If unadded or removed, the required subfields won’t trigger validation errors[^16]
|
|
233
|
+
- An optional Object field (`required: false`) can be manually added or removed with a checkbox[^88]. If unadded or removed, the required subfields won’t trigger validation errors[^16], and the field will be saved as `null`.
|
|
234
234
|
- Relation
|
|
235
235
|
- Field options are displayed with no additional API requests[^14]. The confusing `options_length` option, which defaults to 20, is therefore ignored[^76].
|
|
236
236
|
- `slug` can be used for `value_field` to show all available options instead of just one in some situations[^91].
|
|
@@ -268,7 +268,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
268
268
|
|
|
269
269
|
- Compute
|
|
270
270
|
- The experimental `compute` widget allows to reference the value of other fields in the same collection, similar to the `summary` property for the List and Object widgets[^104]. Use the `value` property to define the value template, e.g. `posts-{{fields.slug}}` ([example](https://github.com/sveltia/sveltia-cms/issues/111)).
|
|
271
|
-
- The `value` property also supports `{{index}}`, which can hold the index of a list item ([example](https://github.com/sveltia/sveltia-cms/issues/172)).
|
|
271
|
+
- The `value` property also supports a value of `{{index}}`, which can hold the index of a list item ([example](https://github.com/sveltia/sveltia-cms/issues/172)).
|
|
272
272
|
- UUID
|
|
273
273
|
- In addition to [generating UUIDs for entry slugs](#using-a-random-id-for-an-entry-slug), Sveltia CMS also supports the proposed `uuid` widget with the following properties[^12]:
|
|
274
274
|
- `prefix`: A string to be prepended to the value. Default: an empty string.
|