@sveltia/cms 0.26.2 → 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 +3 -2
- package/dist/sveltia-cms.js +125 -125
- package/dist/sveltia-cms.mjs +129 -129
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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`).
|