@sveltia/cms 0.26.1 → 0.26.3
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 +6 -5
- package/dist/sveltia-cms.js +150 -150
- package/dist/sveltia-cms.mjs +150 -150
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ While we are fixing reported bugs as fast as we can, usually within 24 hours, th
|
|
|
30
30
|
- Tackling as many [issues reported to Netlify/Decap CMS](https://github.com/decaporg/decap-cms/issues) as possible (so far 75+ of them have been effectively solved in Sveltia CMS, with the goal of reaching 100 by GA)
|
|
31
31
|
- Implementing our own enhancement ideas
|
|
32
32
|
|
|
33
|
-
At this point, **we are
|
|
33
|
+
At this point, **we are on track to ship version 1.0 in Q3 2024**. Check our [release notes](https://github.com/sveltia/sveltia-cms/releases) for updates.
|
|
34
34
|
|
|
35
35
|
## Features
|
|
36
36
|
|
|
@@ -137,7 +137,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
137
137
|
- You can hide the preview of a specific field with `preview: false`.
|
|
138
138
|
- Fields with validation errors are automatically expanded if they are part of nested, collapsed objects[^40].
|
|
139
139
|
- When you click on a field in the Preview pane, the corresponding field in the Editor pane is highlighted. It will be automatically expanded if collapsed[^41].
|
|
140
|
-
- You can use a full regular expression, including flags, for the widget `pattern` option[^82]. For example, if you want to allow 280 characters or less in
|
|
140
|
+
- You can use a full regular expression, including flags, for the widget `pattern` option[^82]. For example, if you want to allow 280 characters or less in a multiline text field, you could write `/^.{0,280}$/s`.
|
|
141
141
|
- A long validation error message is displayed in full, without being hidden behind the field label[^59].
|
|
142
142
|
|
|
143
143
|
### Better data output
|
|
@@ -163,8 +163,9 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
163
163
|
- The rich text editor is built with [Lexical](https://github.com/facebook/lexical) instead of [Slate](https://github.com/ianstormtaylor/slate), which solves various problems found in Netlify/Decap CMS, including fatal application crashes[^53][^70][^71][^72][^73].
|
|
164
164
|
- You can set the default editor mode by changing the order of the `modes` option[^58]. If you want to use the plain text editor by default, add `modes: [raw, rich_text]` to the field configuration.
|
|
165
165
|
- Object
|
|
166
|
-
-
|
|
167
|
-
|
|
166
|
+
- Sveltia CMS offers two ways to have conditional fields in a collection[^30]:
|
|
167
|
+
- You can use [variable types](https://decapcms.org/docs/variable-type-widgets/) (the `types` option) with the Object widget just like the List widget.
|
|
168
|
+
- An optional Object field (`required: false`) can be manually added or removed with a checkbox. If unadded or removed, the required subfields won’t trigger validation errors[^16].
|
|
168
169
|
- Relation
|
|
169
170
|
- Field options are displayed with no additional API requests[^14]. The confusing `options_length` option, which defaults to 20, is therefore ignored[^76].
|
|
170
171
|
- The redundant `search_fields` option is not required in Sveltia CMS, as it defaults to `display_fields` (and `value_field`).
|
|
@@ -458,7 +459,7 @@ With this configuration, an entry is saved with localized filenames, while the d
|
|
|
458
459
|
translationKey: my-trip-to-new-york
|
|
459
460
|
```
|
|
460
461
|
|
|
461
|
-
You can customize the property name and value for a different framework or i18n library by adding the `canonical_slug` option to your top-level or per-collection `i18n` configuration. The example below is for [`@astrolicious/i18n`](https://github.com/astrolicious/i18n)
|
|
462
|
+
You can customize the property name and value for a different framework or i18n library by adding the `canonical_slug` option to your top-level or per-collection `i18n` configuration. The example below is for [`@astrolicious/i18n`](https://github.com/astrolicious/i18n), which requires a locale prefix in the value ([discussion](https://github.com/sveltia/sveltia-cms/issues/137)):
|
|
462
463
|
|
|
463
464
|
```yaml
|
|
464
465
|
i18n:
|