@sveltia/cms 0.12.3 → 0.13.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 +7 -1
- package/dist/sveltia-cms.js +161 -161
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,8 +96,12 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
96
96
|
### Better fields/widgets
|
|
97
97
|
|
|
98
98
|
- Required fields, not optional fields, are clearly marked for efficient data entry.
|
|
99
|
+
- Leading and trailing spaces in text-type field values are automatically removed when you save the entry[^37].
|
|
99
100
|
- You can revert changes to all fields or a specific field.
|
|
100
|
-
-
|
|
101
|
+
- You can hide the preview of a specific field with `preview: false`.
|
|
102
|
+
- 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.
|
|
103
|
+
- The String widget supports the `prefix` and `suffix` string properties, which automatically prepend and/or append the developer-defined value to the user-input value.
|
|
104
|
+
- 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]. Markdown is supported in the value.
|
|
101
105
|
- Relation field options are displayed with no additional API requests[^14]. The `options_length` property is therefore ignored.
|
|
102
106
|
- The `summary` for the List and Object widgets is displayed correctly when it refers to a Relation field[^36].
|
|
103
107
|
- Provides a reimagined all-in-one asset selection dialog for File and Image fields.
|
|
@@ -111,6 +115,7 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
|
|
|
111
115
|
- `prefix`: A string to be prepended to the value. Default: an empty string.
|
|
112
116
|
- `use_b32_encoding`: Whether to encode the value with Base32. Default: `false`.
|
|
113
117
|
- `read_only`: Whether to make the field read-only. Default: `true`.
|
|
118
|
+
- 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
119
|
|
|
115
120
|
### Better asset management
|
|
116
121
|
|
|
@@ -469,3 +474,4 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
469
474
|
[^34]: Netlify/Decap CMS [#2138](https://github.com/decaporg/decap-cms/issues/2138)
|
|
470
475
|
[^35]: Netlify/Decap CMS [#7086](https://github.com/decaporg/decap-cms/issues/7086)
|
|
471
476
|
[^36]: Netlify/Decap CMS [#6325](https://github.com/decaporg/decap-cms/issues/6325)
|
|
477
|
+
[^37]: Netlify/Decap CMS [#1481](https://github.com/decaporg/decap-cms/issues/1481)
|