@sveltia/cms 0.26.5 → 0.27.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 -3
- package/dist/sveltia-cms.js +153 -153
- package/dist/sveltia-cms.mjs +156 -156
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -174,10 +174,10 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
174
174
|
- String
|
|
175
175
|
- When a YouTube video URL is entered in a String field, it appears as an embedded video in the preview pane.
|
|
176
176
|
- Check your site’s [CSP](#setting-up-content-security-policy) if the preview doesn’t work.
|
|
177
|
-
- Supports the `type`
|
|
178
|
-
- Supports the `prefix` and `suffix` string
|
|
177
|
+
- Supports the `type` option that accepts `url` or `email` as a value, which will validate the value as a URL or email.
|
|
178
|
+
- Supports the `prefix` and `suffix` string options, which automatically prepend and/or append the developer-defined value to the user-input value.
|
|
179
179
|
- Boolean, Number and String
|
|
180
|
-
- Supports the `before_input` and `after_input` string
|
|
180
|
+
- Supports the `before_input` and `after_input` string options, which allow developers to display custom labels before and/or after the input UI[^28]. Markdown is supported in the value.
|
|
181
181
|
- File and Image
|
|
182
182
|
- Provides a reimagined all-in-one asset selection dialog for File and Image fields.
|
|
183
183
|
- [Collection-specific assets](#using-a-custom-media-folder-for-a-collection) are listed for easy selection, while all assets are displayed in a separate tab[^19].
|
|
@@ -190,6 +190,8 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
190
190
|
- A required field containing only spaces or line breaks will result in a validation error, as if no characters were entered.
|
|
191
191
|
- Relation and Select
|
|
192
192
|
- When there are 5 or fewer options, the UI switches from a dropdown list to radio buttons (single-select) or checkboxes (multi-select) for faster data entry[^61].
|
|
193
|
+
- String and Text
|
|
194
|
+
- Supports the `minlength` and `maxlength` options, which allow developers to specify the minimum and maximum number of characters required for input without having to write a custom regular expression with the `pattern` option. A character counter is available when one of the options is given, and a user-friendly validation error is displayed if the condition is not met.
|
|
193
195
|
|
|
194
196
|
#### New widgets
|
|
195
197
|
|