@sveltia/cms 0.8.3 → 0.8.5

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.
Files changed (3) hide show
  1. package/README.md +29 -16
  2. package/dist/sveltia-cms.js +174 -173
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Sveltia CMS is a Git-based lightweight headless CMS under active development as a modern, quick replacement for [Netlify/Decap CMS](https://decapcms.org/). You can use it with your favourite static site generator like SvelteKit, Eleventy, Next.js and Hugo to manage content as static files in a Git repository. The free open source alternative to Netlify/Decap CMS is now in public beta — with more features to come.
4
4
 
5
- ![Screenshot: Git-based Headless CMS with Dark Mode](docs/screenshot-20231120-1.webp)<br>
5
+ ![Screenshot: Git-based Headless CMS with Dark Mode](docs/screenshot-1-20231124.webp)<br>
6
6
 
7
- ![Screenshot: Instant Entry Listing, Searching and Saving](docs/screenshot-20231120-2.webp)<br>
7
+ ![Screenshot: Instant Entry Listing, Searching, Saving](docs/screenshot-2-20231124.webp)<br>
8
8
 
9
- ![Screenshot: Stock Photo Integration with Pexels, Pixabay and Unsplash](docs/screenshot-20231120-3.webp)<br>
9
+ ![Screenshot: Stock Photo Integration with Pexels, Pixabay and Unsplash](docs/screenshot-3-20231124.webp)<br>
10
10
 
11
- ![Screenshot: All-New Asset Library; Full Internationalization Support with DeepL](docs/screenshot-20231120-4.webp)<br>
11
+ ![Screenshot: All-New Asset Library; Full Internationalization Support with DeepL](docs/screenshot-4-20231124.webp)<br>
12
12
 
13
- ![Screenshot: Single-Line Migration from Netlify/Decap CMS (depending on your current setup)](docs/screenshot-20231120-5.webp)<br>
13
+ ![Screenshot: Easy Local Workflow; Single-Line Migration from Netlify/Decap CMS (depending on your current setup); Sveltia CMS](docs/screenshot-5-20231124.webp)<br>
14
14
 
15
15
  ## Motivation
16
16
 
@@ -69,27 +69,33 @@ Here are some highlights mainly compared to Netlify/Decap CMS:
69
69
  - [Integrates DeepL](#use-deepl-to-translate-entry-fields) to allow translation of text fields from another locale with one click.
70
70
  - You can [disable non-default locale content](#disable-non-default-locale-content)[^15].
71
71
  - You can [use a random UUID for an entry slug](#use-a-random-id-for-an-entry-slug), which is a good option for locales that write in non-Latin characters[^12].
72
- - Resolves limitations in the Netlify/Decap CMS [list and object widgets](https://decapcms.org/docs/beta-features/#i18n-support) so that changes made with these widgets will be duplicated between locales as expected when using the `i18n: duplicate` field configuration[^7].
72
+ - Resolves the [limitations in the list and object widgets](https://decapcms.org/docs/beta-features/#i18n-support) so that changes made with these widgets will be duplicated between locales as expected when using the `i18n: duplicate` field configuration[^7].
73
+ - [Entry-relative media folders](https://decapcms.org/docs/beta-features/#folder-collections-media-and-public-folder) can be used in conjunction with the `multiple_folder` i18n structure[^21].
73
74
 
74
75
  ### Collection enhancements
75
76
 
76
77
  - You can choose a [custom icon for each collection](#use-a-custom-icon-for-a-collection)[^3].
77
78
  - A [per-collection media folder](#use-a-custom-media-folder-for-a-collection) will appear next to the entries.
78
79
  - String values in YAML files can be quoted with the new `yaml_quote: true` option for a collection, mainly for framework compatibility[^9].
80
+ - Assets stored in an entry-relative media folder are automatically deleted when the associated entry is deleted[^22].
79
81
 
80
82
  ### Field enhancements
81
83
 
82
84
  - Required fields, not optional fields, are clearly marked for efficient data entry.
83
- - Integration with Pexels, Pixabay and Unsplash makes it easy to insert free stock photos into image fields[^8].
85
+ - Provides a reimagined all-in-one asset selection dialog for file and image fields.
86
+ - [Collection-specific assets](#use-a-custom-media-folder-for-a-collection) will be listed first for easy selection, while all assets can also be displayed in a separate tab[^19].
87
+ - New assets can be uploaded by dragging & dropping them into the dialog[^20].
88
+ - A file/image URL can also be entered in the dialog.
89
+ - Integration with Pexels, Pixabay and Unsplash makes it easy to select and insert free stock photos[^8].
84
90
  - Optional object fields (`widget: object` with `required: false`) can be manually added or removed. If removed, the required subfields will no longer trigger validation errors[^16].
85
91
  - You can revert changes to all fields or a specific field.
86
92
 
87
- ### Asset Library enhancements
93
+ ### Asset management enhancements
88
94
 
89
- - A completely new Asset Library, built separately from the image selection dialog, makes it easy to manage all of your files, including images and documents.
95
+ - A completely new Asset Library, built separately from the image selection dialog, makes it easy to manage all of your files, including images, videos and documents.
90
96
  - You can sort or filter assets by name or file type and view asset details, including size, dimensions, and a list of entries that use the selected asset.
91
97
  - You can upload multiple assets at once, including files in nested folders, by browsing or dragging & dropping them into the media library[^5].
92
- - You can navigate between the global media folder and a per-collection media folder[^6].
98
+ - You can navigate between the global media folder and per-collection media folders[^6].
93
99
 
94
100
  ## Compatibility
95
101
 
@@ -157,12 +163,13 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
157
163
 
158
164
  - [Svelte 5](https://svelte.dev/blog/runes) migration
159
165
  - Further Netlify/Decap CMS compatibility, including Editorial Workflow
160
- - Config editor[^10]
161
- - Mobile support[^18]
166
+ - [Localization](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md)
162
167
  - Documentation
163
168
  - Marketing site
164
169
  - Demo site
165
170
  - Starter templates
171
+ - Config editor[^10]
172
+ - Mobile support[^18]
166
173
 
167
174
  ## Getting started
168
175
 
@@ -205,9 +212,11 @@ You can use Sveltia CMS with a local Git repository, like the [beta feature](htt
205
212
  1. Click “Work with Local Repository” and select the project’s root directory once prompted.
206
213
  1. Make some changes to your content on Sveltia CMS.
207
214
  1. See if the produced changes look good using `git diff` or a GUI like [GitHub Desktop](https://desktop.github.com/).
208
- 1. Open the dev site at `http://localhost:[port]/` to check the rendered results.
215
+ 1. Open the dev site at `http://localhost:[port]/` to check the rendered pages.
209
216
  1. Commit and push the changes if satisfied, or discard them if you’re just testing.
210
217
 
218
+ Remember that the local repository support doesn’t do any Git operation. You have to pull, commit and push all changes manually with a Git client. Also, at this point, you have to reload the CMS to see the latest content after fetching remote updates (this will be unnecessary once browsers support the proposed `FileSystemObserver` API).
219
+
211
220
  ### Use a custom icon for a collection
212
221
 
213
222
  You can have an icon for each collection for easy identification in the collection list.
@@ -349,11 +358,11 @@ Importing the CMS as an npm package is not supported yet.
349
358
 
350
359
  Visit the [Discussions](https://github.com/sveltia/sveltia-cms/discussions) page on this GitHub repository and start a new discussion. Tell us about your use cases!
351
360
 
352
- Want to build a website with Sveltia CMS? [@kyoshino](https://github.com/kyoshino) is available for hire depending on your requirements.
361
+ Want to build a website with Sveltia CMS? Maintainer [@kyoshino](https://github.com/kyoshino) is available for hire depending on your requirements.
353
362
 
354
363
  ## Contributions
355
364
 
356
- Sveltia CMS is still in early beta, so we do expect various problems. Please [report any bugs to us](https://github.com/sveltia/sveltia-cms/issues/new). Feel free to submit feature requests as well. Meanwhile, pull requests may not be accepted for the time being due to limited review resources. As we get closer to the 1.0 release, we’ll be welcoming localizers.
365
+ Sveltia CMS is still in early beta, so we do expect various problems. Please [report any bugs to us](https://github.com/sveltia/sveltia-cms/issues/new). Feel free to submit feature requests as well. Meanwhile, pull requests may not be accepted for the time being due to limited review resources. As we get closer to the 1.0 release, we’ll be welcoming [localizers](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md).
357
366
 
358
367
  ## Related Links
359
368
 
@@ -373,7 +382,7 @@ This software is provided “as is” without any express or implied warranty. T
373
382
  [^8]: [Netlify/Decap CMS #2579](https://github.com/decaporg/decap-cms/issues/2579)
374
383
  [^9]: [Netlify/Decap CMS #3505](https://github.com/decaporg/decap-cms/issues/3505)
375
384
  [^10]: [Netlify/Decap CMS #341](https://github.com/decaporg/decap-cms/issues/341)
376
- [^11]: [Netlify/Decap CMS #1382](https://github.com/decaporg/decap-cms/issues/1382) and many more. We’ll be updating this list after reviewing their issue list.
385
+ [^11]: [Netlify/Decap CMS #1382](https://github.com/decaporg/decap-cms/issues/1382), [Netlify/Decap CMS #5596](https://github.com/decaporg/decap-cms/issues/5596) and many more. We’ll be updating this list after reviewing their issue list.
377
386
  [^12]: [Netlify/Decap CMS #1975](https://github.com/decaporg/decap-cms/issues/1975)
378
387
  [^13]: [Netlify/Decap CMS #5112](https://github.com/decaporg/decap-cms/issues/5112)
379
388
  [^14]: [Netlify/Decap CMS #4635](https://github.com/decaporg/decap-cms/issues/4635), [Netlify/Decap CMS #5920](https://github.com/decaporg/decap-cms/issues/5920), [Netlify/Decap CMS #6410](https://github.com/decaporg/decap-cms/issues/6410)
@@ -381,3 +390,7 @@ This software is provided “as is” without any express or implied warranty. T
381
390
  [^16]: [Netlify/Decap CMS #2103](https://github.com/decaporg/decap-cms/issues/2103)
382
391
  [^17]: [Netlify/Decap CMS #1333](https://github.com/decaporg/decap-cms/issues/1333)
383
392
  [^18]: [Netlify/Decap CMS #441](https://github.com/decaporg/decap-cms/issues/441)
393
+ [^19]: [Netlify/Decap CMS #5910](https://github.com/decaporg/decap-cms/issues/5910)
394
+ [^20]: [Netlify/Decap CMS #4563](https://github.com/decaporg/decap-cms/issues/4563)
395
+ [^21]: [Netlify/Decap CMS #4781](https://github.com/decaporg/decap-cms/issues/4781)
396
+ [^22]: [Netlify/Decap CMS #6642](https://github.com/decaporg/decap-cms/issues/6642)