@sveltia/cms 0.27.3 → 0.28.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 CHANGED
@@ -28,6 +28,7 @@ While we are fixing reported bugs as fast as we can, usually within 24 hours, th
28
28
 
29
29
  - Ensuring maximum compatibility with existing versions of Netlify/Decap CMS
30
30
  - Tackling as many [issues reported to Netlify/Decap CMS](https://github.com/decaporg/decap-cms/issues) as possible (so far 80+ of them have been effectively solved in Sveltia CMS, with the goal of reaching 100 by GA)
31
+ - Responding to user feedback
31
32
  - Implementing our own enhancement ideas
32
33
 
33
34
  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.
@@ -67,6 +68,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
67
68
  - In addition to a streamlined workflow, it offers great performance by loading files natively through the browser rather than using a slow, ad hoc REST API.
68
69
  - It also avoids a number of issues, including the 30 MB file size limit[^51], an unknown error with `publish_mode`[^75], and an unused `logo_url`[^49].
69
70
  - Eliminates some workflow disruptions in the Content Editor:
71
+ - A backup of an entry draft is automatically created without interruption by a confirmation dialog. It can then be reliably restored without unexpected overwriting[^85].
70
72
  - Click once (the Save button) instead of twice (Publish > Publish now) to save an entry.
71
73
  - The editor closes automatically when an entry is saved.
72
74
  - You can upload multiple assets at once[^5].
@@ -77,6 +79,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
77
79
  - Search for entries and assets: `Ctrl+F` (Windows/Linux) or `Command+F` (macOS)
78
80
  - Create a new entry: `Ctrl+E` (Windows/Linux) or `Command+E` (macOS)
79
81
  - Save an entry: `Ctrl+S` (Windows/Linux) or `Command+S` (macOS)
82
+ - Cancel entry editing: `Escape`
80
83
  - Never miss out on the latest features and bug fixes by being notified when an update to the CMS is available[^31]. Then update to the latest version with a single click[^66].
81
84
 
82
85
  ### Better accessibility
@@ -124,6 +127,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
124
127
 
125
128
  - Supports a [JSON configuration file](#providing-a-json-configuration-file) that can be generated for bulk or complex collections[^60].
126
129
  - You can choose a [custom icon for each collection](#using-a-custom-icon-for-a-collection)[^3].
130
+ - You can [add dividers to the collection list](#adding-dividers-to-the-collection-list).
127
131
  - Assets stored in a [per-collection media folder](#using-a-custom-media-folder-for-a-collection) can be displayed next to the entries.
128
132
  - Entry slug template tags support [filter transformations](https://decapcms.org/docs/summary-strings/) just like summary string template tags[^29].
129
133
  - You can set the maximum number of characters for an entry slug with the new `slug_length` collection option[^25].
@@ -143,6 +147,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
143
147
 
144
148
  ### Better data output
145
149
 
150
+ - The keys in generated JSON/TOML/YAML content are always sorted according to the order of configured fields, making Git commits clean and consistent[^86].
146
151
  - For data consistency, Boolean, List (see below) and other fields are always saved as a proper value, such as an empty string or an empty array, rather than nothing, even if it’s optional or empty.
147
152
  - Leading and trailing spaces in text-type field values are automatically removed when you save an entry[^37].
148
153
  - JSON/TOML/YAML data is saved with a new line at the end of the file to prevent unnecessary changes being made to the file[^11][^69].
@@ -239,7 +244,6 @@ These limitations are expected to be resolved before GA:
239
244
  | Configuration | The application UI locales are only available in English and Japanese. Comprehensive config validation is not yet implemented. |
240
245
  | Media Libraries | Cloudinary and Uploadcare are not yet supported. |
241
246
  | Workflow | Editorial Workflow and Open Authoring are not yet supported. |
242
- | Content Editor | Auto-saving a draft entry is not yet implemented. |
243
247
  | Collections | Nested collections are not yet supported. |
244
248
  | Widgets | Custom widgets are not yet supported. See the table below for other limitations. |
245
249
  | Customizations | Custom previews, custom formatters and event subscriptions are not yet supported. |
@@ -250,7 +254,7 @@ These limitations are expected to be resolved before GA:
250
254
  | DateTime | The `date_format` and `time_format` options with Moment.js tokens are not yet supported. Note: Decap CMS 3.1 has replaced Moment.js with [Day.js](https://day.js.org/); we’ll follow the change soon. |
251
255
  | File/Image | Field-specific media folders and media library options are not yet supported other than `media_library.config.max_file_size` for the default media library. |
252
256
  | Map | Not yet supported. |
253
- | Markdown | Editor components are not yet supported. |
257
+ | Markdown | Editor components, including built-in `image` and `code-block` as well as custom components, are not yet supported. |
254
258
 
255
259
  If we have missed any other features, let us know by [filing an issue](https://github.com/sveltia/sveltia-cms/issues).
256
260
 
@@ -279,6 +283,7 @@ If we have missed any other features, let us know by [filing an issue](https://g
279
283
 
280
284
  ### After the 1.0 release
281
285
 
286
+ - Compatibility with Static CMS, a community fork of Netlify CMS
282
287
  - Roles[^23]
283
288
  - Config editor[^10]
284
289
  - Mobile support[^18]
@@ -407,6 +412,21 @@ You can have an icon for each collection for easy identification in the collecti
407
412
  folder: data/tags/
408
413
  ```
409
414
 
415
+ ### Adding dividers to the collection list
416
+
417
+ Sveltia CMS allows developers to add dividers to the collection list to distinguish different types of collections. To do this, insert a fake collection with the `divider: true` option. In VS Code, you may get a validation error if `config.yml` is treated as a “Netlify YAML config” file. You can work around this by adding a random `name` and an empty `files`:
418
+
419
+ ```yaml
420
+ collections:
421
+ - name: products
422
+ ...
423
+ - divider: true
424
+ name: d1 # d2, d3, etc.
425
+ files: []
426
+ - name: pages
427
+ ...
428
+ ```
429
+
410
430
  ### Using a custom media folder for a collection
411
431
 
412
432
  This is actually not new in Sveltia CMS but rather an _undocumented_ feature in Netlify/Decap CMS[^4]. You can specify media and public folders for each collection that override the [global media folder](https://decapcms.org/docs/configuration-options/#media-and-public-folders). Well, it’s [documented](https://decapcms.org/docs/collection-folder/#media-and-public-folder), but that’s probably not what you want.
@@ -763,4 +783,6 @@ This software is provided “as is” without any express or implied warranty. W
763
783
  [^82]: Netlify/Decap CMS [#6500](https://github.com/decaporg/decap-cms/issues/6500)
764
784
  [^83]: Netlify/Decap CMS [#6508](https://github.com/decaporg/decap-cms/issues/6508)
765
785
  [^84]: Netlify/Decap CMS [#7142](https://github.com/decaporg/decap-cms/issues/7142)
786
+ [^85]: Netlify/Decap CMS [#5055](https://github.com/decaporg/decap-cms/issues/5055), [#5470](https://github.com/decaporg/decap-cms/issues/5470), [#6989](https://github.com/decaporg/decap-cms/issues/6989)
787
+ [^86]: Netlify/Decap CMS [#6759](https://github.com/decaporg/decap-cms/issues/6759), [#6901](https://github.com/decaporg/decap-cms/issues/6901)
766
788
  [^100]: Netlify/Decap CMS [#5656](https://github.com/decaporg/decap-cms/issues/5656), [#5837](https://github.com/decaporg/decap-cms/issues/5837), [#5972](https://github.com/decaporg/decap-cms/issues/5972), [#6476](https://github.com/decaporg/decap-cms/issues/6476), [#6516](https://github.com/decaporg/decap-cms/issues/6516), [#6930](https://github.com/decaporg/decap-cms/issues/6930), [#6965](https://github.com/decaporg/decap-cms/issues/6965), [#7080](https://github.com/decaporg/decap-cms/issues/7080), [#7105](https://github.com/decaporg/decap-cms/issues/7105), [#7106](https://github.com/decaporg/decap-cms/issues/7106), [#7119](https://github.com/decaporg/decap-cms/issues/7119), [#7176](https://github.com/decaporg/decap-cms/issues/7176), [#7194](https://github.com/decaporg/decap-cms/issues/7194) — These `removeChild` crashes are common in React apps and seem to be caused by a [browser extension](https://github.com/facebook/react/issues/17256) or [Google Translate](https://github.com/facebook/react/issues/11538).