@sveltia/cms 0.47.8 → 0.49.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 +9 -3
- package/dist/sveltia-cms.js +161 -161
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +164 -164
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -236,10 +236,14 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
236
236
|
- `icon`: [Choose a custom icon for each collection](#using-a-custom-icon-for-a-collection)[^3].
|
|
237
237
|
- `divider`: [Add dividers to the collection list](#adding-dividers-to-the-collection-list).
|
|
238
238
|
- `thumbnail`: Specify the field name for a thumbnail displayed on the entry list[^130]. A nested field can be specified using dot notation, e.g. `images.0.src`. If undefined, the `name` of the first image field is used.
|
|
239
|
+
- Enhancements to the entry `filter` option for folder collections:
|
|
240
|
+
- Boolean `value` works as expected[^93].
|
|
241
|
+
- `value` accepts `null` to match an undefined field value.
|
|
242
|
+
- `value` accepts an array to provide multiple possible values[^151].
|
|
243
|
+
- `pattern` can be used instead of `value` to provide a regular expression, just like the `view_filters` collection option[^153].
|
|
239
244
|
- Nested fields (dot notation) can be used in the `path` option for a folder collection, e.g. `{{fields.state.name}}/{{slug}}`[^62].
|
|
240
245
|
- Markdown is supported in the `description` collection option[^79]. Bold, italic, strikethrough, code and links are allowed.
|
|
241
246
|
- The collection `folder` can be an empty string (or `.` or `/`) if you want to store entries in the root folder. This supports a typical VitePress setup.
|
|
242
|
-
- A folder collection `filter` supports multiple possible values by using an array for the `value`[^151].
|
|
243
247
|
- Multiple [summary string transformations](https://decapcms.org/docs/summary-strings/) can be chained like `{{title | upper | truncate(20)}}`.
|
|
244
248
|
- Entry slugs
|
|
245
249
|
- It’s possible to [use a random UUID for an entry slug](#using-a-random-id-for-an-entry-slug).
|
|
@@ -252,7 +256,6 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
252
256
|
- Entry slugs are [localizable](#localizing-entry-slugs)[^80].
|
|
253
257
|
- Entry listing
|
|
254
258
|
- The collection list displays the number of items in each collection.
|
|
255
|
-
- A folder collection `filter` with a boolean value works as expected[^93].
|
|
256
259
|
- Sorting entries by a DateTime field works as expected[^110].
|
|
257
260
|
- Entry grouping and sorting can work together. For example, it’s possible to group by year and then sort by year if configured properly.
|
|
258
261
|
- Hugo’s special `_index.md` files, including localized ones like `_index.en.md`, are ignored in folder collections unless the `path` option is configured to end with `_index` and the `extension` is `md`[^120]. You can still manage these files as part of a file collection if necessary.
|
|
@@ -322,6 +325,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
322
325
|
- Users can preview variable types without having to register a preview template[^42].
|
|
323
326
|
- Markdown
|
|
324
327
|
- The rich text editor is built with the well-maintained [Lexical](https://lexical.dev/) framework, which solves various issues with a [Slate](https://github.com/ianstormtaylor/slate)-based editor in Netlify/Decap CMS, including fatal application crashes[^71][^72][^73][^111], lost formatting when pasting[^124], backslash injections[^53], dropdown visibility[^70], and text input difficulties with IME[^54].
|
|
328
|
+
- The built-in `image` component can be inserted with a single click.
|
|
325
329
|
- The default editor mode can be set 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.
|
|
326
330
|
- Line breaks are rendered as line breaks in the preview pane according to GitHub Flavored Markdown (GFM).
|
|
327
331
|
- Object
|
|
@@ -450,7 +454,7 @@ These limitations are expected to be resolved before or shortly after GA:
|
|
|
450
454
|
| [DateTime](https://decapcms.org/docs/widgets/#datetime) | The `date_format` and `time_format` options with Moment.js tokens are not yet supported. Note that [Decap CMS 3.1.1](https://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.1.1) replaced Moment.js with [Day.js](https://day.js.org/), and [Decap CMS 3.3.0](https://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.3.0) made other changes to the widget behaviour; we’ll follow these changes where it makes sense. |
|
|
451
455
|
| [File](https://decapcms.org/docs/widgets/#file) / [Image](https://decapcms.org/docs/widgets/#image) | Field-specific media folders (beta) and media library options are not yet supported other than `media_library.config.max_file_size` for the default media library. |
|
|
452
456
|
| [Map](https://decapcms.org/docs/widgets/#map) | Not yet supported. |
|
|
453
|
-
| [Markdown](https://decapcms.org/docs/widgets/#markdown) |
|
|
457
|
+
| [Markdown](https://decapcms.org/docs/widgets/#markdown) | The built-in `code-block` component and custom components are not yet supported. |
|
|
454
458
|
|
|
455
459
|
### Other notes
|
|
456
460
|
|
|
@@ -1270,3 +1274,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1270
1274
|
[^151]: Netlify/Decap CMS [#7328](https://github.com/decaporg/decap-cms/issues/7328)
|
|
1271
1275
|
|
|
1272
1276
|
[^152]: Netlify/Decap CMS [#2491](https://github.com/decaporg/decap-cms/issues/2491)
|
|
1277
|
+
|
|
1278
|
+
[^153]: Netlify/Decap CMS [#7347](https://github.com/decaporg/decap-cms/issues/7347)
|