@sveltia/cms 0.28.0 → 0.29.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 -7
- package/dist/sveltia-cms.js +179 -153
- package/dist/sveltia-cms.mjs +180 -154
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ While we are fixing reported bugs as fast as we can, usually within 24 hours, th
|
|
|
31
31
|
- Responding to user feedback
|
|
32
32
|
- Implementing our own enhancement ideas
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Sveltia CMS **version 1.0 is expected to ship in Q3 2024**. Check our [release notes](https://github.com/sveltia/sveltia-cms/releases) for updates.
|
|
35
35
|
|
|
36
36
|
## Features
|
|
37
37
|
|
|
@@ -68,7 +68,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
68
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.
|
|
69
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].
|
|
70
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].
|
|
71
|
+
- A local backup of an entry draft is automatically created without interruption by a confirmation dialog. It can then be reliably restored without unexpected overwriting[^85].
|
|
72
72
|
- Click once (the Save button) instead of twice (Publish > Publish now) to save an entry.
|
|
73
73
|
- The editor closes automatically when an entry is saved.
|
|
74
74
|
- You can upload multiple assets at once[^5].
|
|
@@ -122,6 +122,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
122
122
|
- Solves problems with Chinese, Japanese and Korean (CJK) [IME](https://en.wikipedia.org/wiki/Input_method) text input in the rich text editor for the Markdown widget[^54].
|
|
123
123
|
- You can use the `{{locale}}` template tag in the [`preview_path`](https://decapcms.org/docs/configuration-options/#preview_path) collection option to provide site preview links for each language[^63].
|
|
124
124
|
- You can [localize entry slugs](#localizing-entry-slugs) while linking the localized files[^80], thanks to the support for Hugo’s `translationKey`[^81].
|
|
125
|
+
- Supports multiple files/folders i18n structure for file collections[^87]. To enable this, simply use the `{{locale}}` template tag in the `file` path option, e.g. `content/pages/{{locale}}/about.json`. The global `structure` option is only used for folder collections.
|
|
125
126
|
|
|
126
127
|
### Better collections
|
|
127
128
|
|
|
@@ -147,7 +148,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
147
148
|
|
|
148
149
|
### Better data output
|
|
149
150
|
|
|
150
|
-
-
|
|
151
|
+
- Keys in generated JSON/TOML/YAML content are always sorted according to the order of configured fields, making Git commits clean and consistent[^86].
|
|
151
152
|
- 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.
|
|
152
153
|
- Leading and trailing spaces in text-type field values are automatically removed when you save an entry[^37].
|
|
153
154
|
- 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].
|
|
@@ -273,7 +274,7 @@ If we have missed any other features, let us know by [filing an issue](https://g
|
|
|
273
274
|
### Before the 1.0 release
|
|
274
275
|
|
|
275
276
|
- Enhanced compatibility with Netlify/Decap CMS (see above for the status)
|
|
276
|
-
-
|
|
277
|
+
- Broad automation test coverage (Vitest + Playwright)
|
|
277
278
|
- [Svelte 5](https://svelte.dev/blog/svelte-5-release-candidate) migration
|
|
278
279
|
- Localization
|
|
279
280
|
- Documentation
|
|
@@ -414,14 +415,14 @@ You can have an icon for each collection for easy identification in the collecti
|
|
|
414
415
|
|
|
415
416
|
### Adding dividers to the collection list
|
|
416
417
|
|
|
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
|
|
418
|
+
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 along with a random `name`. 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 an empty `files` as well:
|
|
418
419
|
|
|
419
420
|
```yaml
|
|
420
421
|
collections:
|
|
421
422
|
- name: products
|
|
422
423
|
...
|
|
423
424
|
- divider: true
|
|
424
|
-
name: d1 # d2, d3, etc.
|
|
425
|
+
name: d1 # d2, d3, etc. Should be unique for each divider
|
|
425
426
|
files: []
|
|
426
427
|
- name: pages
|
|
427
428
|
...
|
|
@@ -776,7 +777,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
776
777
|
[^75]: Netlify/Decap CMS [#5472](https://github.com/decaporg/decap-cms/issues/5472)
|
|
777
778
|
[^76]: Netlify/Decap CMS [#4738](https://github.com/decaporg/decap-cms/issues/4738)
|
|
778
779
|
[^77]: Netlify/Decap CMS [#6565](https://github.com/decaporg/decap-cms/issues/6565)
|
|
779
|
-
[^78]: Netlify/Decap CMS [#3046](https://github.com/decaporg/decap-cms/issues/3046)
|
|
780
|
+
[^78]: Netlify/Decap CMS [#3046](https://github.com/decaporg/decap-cms/issues/3046), [#4363](https://github.com/decaporg/decap-cms/issues/4363)
|
|
780
781
|
[^79]: Netlify/Decap CMS [#5726](https://github.com/decaporg/decap-cms/issues/5726)
|
|
781
782
|
[^80]: Netlify/Decap CMS [#5493](https://github.com/decaporg/decap-cms/issues/5493), [#6600](https://github.com/decaporg/decap-cms/issues/6600)
|
|
782
783
|
[^81]: Netlify/Decap CMS [#4645](https://github.com/decaporg/decap-cms/issues/4645)
|
|
@@ -785,4 +786,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
785
786
|
[^84]: Netlify/Decap CMS [#7142](https://github.com/decaporg/decap-cms/issues/7142)
|
|
786
787
|
[^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
788
|
[^86]: Netlify/Decap CMS [#6759](https://github.com/decaporg/decap-cms/issues/6759), [#6901](https://github.com/decaporg/decap-cms/issues/6901)
|
|
789
|
+
[^87]: Netlify/Decap CMS [#5280](https://github.com/decaporg/decap-cms/issues/5280)
|
|
788
790
|
[^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).
|