@sveltia/cms 0.12.3 → 0.13.0
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 +5 -1
- package/dist/sveltia-cms.js +152 -152
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,7 +97,10 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
97
97
|
|
|
98
98
|
- Required fields, not optional fields, are clearly marked for efficient data entry.
|
|
99
99
|
- You can revert changes to all fields or a specific field.
|
|
100
|
-
-
|
|
100
|
+
- You can hide the preview of a specific field with `preview: false`.
|
|
101
|
+
- The String widget supports the `type` property that accepts `url` or `email` as a value, which will validate the value as a URL or email.
|
|
102
|
+
- The String widget supports the `prefix` and `suffix` string properties, which will be automatically prepended/appended to the user-input value.
|
|
103
|
+
- The Boolean, Number and String widgets support the `before_input` and `after_input` string properties, which allow developers to display custom labels before and/or after the input UI[^28].
|
|
101
104
|
- Relation field options are displayed with no additional API requests[^14]. The `options_length` property is therefore ignored.
|
|
102
105
|
- The `summary` for the List and Object widgets is displayed correctly when it refers to a Relation field[^36].
|
|
103
106
|
- Provides a reimagined all-in-one asset selection dialog for File and Image fields.
|
|
@@ -111,6 +114,7 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
111
114
|
- `prefix`: A string to be prepended to the value. Default: an empty string.
|
|
112
115
|
- `use_b32_encoding`: Whether to encode the value with Base32. Default: `false`.
|
|
113
116
|
- `read_only`: Whether to make the field read-only. Default: `true`.
|
|
117
|
+
- 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. Use the `value` property to define the value template, e.g. `posts-{{fields.slug}}` ([example](https://github.com/sveltia/sveltia-cms/issues/111)).
|
|
114
118
|
|
|
115
119
|
### Better asset management
|
|
116
120
|
|