@sveltia/cms 0.19.4 → 0.19.6
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 +21 -10
- package/dist/sveltia-cms.js +187 -187
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,12 +48,10 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
|
|
|
48
48
|
- A list of repository files is cached locally for faster startup and bandwidth savings.
|
|
49
49
|
- Thumbnails of assets, including PDF files, are generated and cached for faster rendering of the Asset Library and other parts of the CMS[^39].
|
|
50
50
|
- Using caching and lazy loading techniques to improve performance.
|
|
51
|
-
- You can [disable automatic deployments](#disable-automatic-deployments) by default or on demand to save costs and resources associated with CI/CD and to publish multiple changes at once[^24].
|
|
52
51
|
|
|
53
52
|
### Better productivity
|
|
54
53
|
|
|
55
54
|
- You can [work with a local Git repository](#work-with-a-local-git-repository) without running a proxy server on your machine, bypassing the 30 MB file size limit[^26].
|
|
56
|
-
- The Git branch name is automatically set to the repository’s default branch (`main`, `master` or whatever) if not specified in the configuration file, preventing data loading errors due to a hardcoded fallback to `master`[^27].
|
|
57
55
|
- Never miss out on the latest features and bug fixes by being notified when an update to the CMS is available[^31].
|
|
58
56
|
- The Entry Editor closes automatically when an entry is saved.
|
|
59
57
|
- You can delete multiple entries and assets at once.
|
|
@@ -77,6 +75,12 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
|
|
|
77
75
|
- We have documented how to [set up a Content Security Policy](#set-up-content-security-policy) for the CMS.
|
|
78
76
|
- The `unsafe-eval` or `unsafe-inline` keywords are not needed in the `script-src` CSP directive[^33].
|
|
79
77
|
|
|
78
|
+
### Better backend support
|
|
79
|
+
|
|
80
|
+
- Uses the GraphQL API where possible for better performance, as mentioned above. You don’t need to set the `use_graphql` option.
|
|
81
|
+
- The Git branch name is automatically set to the repository’s default branch (`main`, `master` or whatever) if not specified in the configuration file, preventing data loading errors due to a hardcoded fallback to `master`[^27].
|
|
82
|
+
- You can [disable automatic deployments](#disable-automatic-deployments) by default or on demand to save costs and resources associated with CI/CD and to publish multiple changes at once[^24].
|
|
83
|
+
|
|
80
84
|
### Better i18n support
|
|
81
85
|
|
|
82
86
|
- It’s now easier to switch between locales while editing with just a click on a button instead of a dropdown list.
|
|
@@ -107,8 +111,13 @@ We are working hard to create a **much better alternative to Netlify CMS** and D
|
|
|
107
111
|
|
|
108
112
|
### Better widgets
|
|
109
113
|
|
|
114
|
+
- Boolean
|
|
115
|
+
- A required field with no default value is saved as `false` by default, without raising a validation error[^45].
|
|
116
|
+
- An optional field with no default value is saved as `false` by default, rather than nothing[^46].
|
|
110
117
|
- List
|
|
111
|
-
-
|
|
118
|
+
- A required field with no subfield or value is marked as invalid[^43].
|
|
119
|
+
- An optional field with no subfield or value is saved as an empty array[^44].
|
|
120
|
+
- You can preview variable types without having to register a preview template[^42].
|
|
112
121
|
- Object
|
|
113
122
|
- Supports [variable types](https://decapcms.org/docs/variable-type-widgets/) just like the List widget. This allows you to have dependent fields in a collection[^30].
|
|
114
123
|
- Optional Object fields (`required: false`) can be manually added or removed. If unadded or removed, the required subfields won’t trigger validation errors[^16].
|
|
@@ -157,11 +166,10 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
|
|
|
157
166
|
| Feature | Status in Sveltia CMS |
|
|
158
167
|
| --- | --- |
|
|
159
168
|
| Installation | Installing with `npm` is not supported yet. |
|
|
160
|
-
| Backends |
|
|
161
|
-
| Netlify Integration | Identity Widget is not supported yet. We will not support Git Gateway due to the poor performance; we may implement an alternative using GraphQL later. |
|
|
169
|
+
| Backends | Only the GitHub and GitLab backends are available, with GraphQL enabled by default. We’ll add the Test backend for our demo site, but Azure, Bitbucket and Gitea are unlikely to be supported due to performance limitations. Git Gateway will not be supported for the same reason; we may implement a performant alternative sometime later. |
|
|
162
170
|
| Local Git Repository | Supported using a different approach. [See below](#work-with-a-local-git-repository) for details. |
|
|
163
171
|
| UI Locales | Only English and Japanese are available at this time. No registration is required. The locale is selected automatically and can be changed in the Settings. |
|
|
164
|
-
| Media Libraries | External media storage services are not supported yet. We will add support for Cloudinary and Uploadcare
|
|
172
|
+
| Media Libraries | External media storage services are not supported yet. We will add support for Cloudinary and Uploadcare using the APIs instead of pre-built widgets. No support for deprecated Netlify Large Media. |
|
|
165
173
|
| Editorial Workflow | Not supported yet. |
|
|
166
174
|
| Open Authoring | Not supported yet. |
|
|
167
175
|
| Collections | Nested collections are not supported yet. |
|
|
@@ -173,7 +181,6 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
|
|
|
173
181
|
| Widget | Status in Sveltia CMS |
|
|
174
182
|
| --- | --- |
|
|
175
183
|
| Code | Not supported yet. |
|
|
176
|
-
| Color | The `enableAlpha` option is not supported yet. |
|
|
177
184
|
| Date | Sveltia CMS has dropped the support for it following Decap CMS 3.0. Use the DateTime widget instead. |
|
|
178
185
|
| DateTime | The `date_format` and `time_format` options with Moment.js tokens are not supported yet. Note: Decap CMS 3.1 has replaced Moment.js with [Day.js](https://day.js.org/); we’ll follow the change soon. |
|
|
179
186
|
| File/Image | Field-specific media folders and media library options are not supported yet other than `media_library.config.max_file_size` for the default media library. |
|
|
@@ -396,14 +403,14 @@ img-src 'self' blob: data:;
|
|
|
396
403
|
media-src blob:;
|
|
397
404
|
frame-src blob:;
|
|
398
405
|
script-src 'self' https://unpkg.com;
|
|
399
|
-
connect-src 'self' blob: data
|
|
406
|
+
connect-src 'self' blob: data: https://unpkg.com;
|
|
400
407
|
```
|
|
401
408
|
|
|
402
409
|
And combine the following policies depending on your Git backend and enabled integrations.
|
|
403
410
|
|
|
404
411
|
- GitHub: (If you’re running GitHub Enterprise Server, you’ll also need to add the origin to these directives.)
|
|
405
412
|
```csp
|
|
406
|
-
img-src https://*.githubusercontent.com
|
|
413
|
+
img-src https://*.githubusercontent.com;
|
|
407
414
|
connect-src https://api.github.com https://www.githubstatus.com;
|
|
408
415
|
```
|
|
409
416
|
- GitLab: (If you’re running a self-hosted instance, you’ll also need to add the origin to these directives.)
|
|
@@ -495,7 +502,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
495
502
|
[^8]: Netlify/Decap CMS [#2579](https://github.com/decaporg/decap-cms/issues/2579)
|
|
496
503
|
[^9]: Netlify/Decap CMS [#3505](https://github.com/decaporg/decap-cms/issues/3505)
|
|
497
504
|
[^10]: Netlify/Decap CMS [#341](https://github.com/decaporg/decap-cms/issues/341), [#1167](https://github.com/decaporg/decap-cms/issues/1167)
|
|
498
|
-
[^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#
|
|
505
|
+
[^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#2370](https://github.com/decaporg/decap-cms/issues/2370), [#5569](https://github.com/decaporg/decap-cms/issues/5569), [#5596](https://github.com/decaporg/decap-cms/issues/5596), [#5752](https://github.com/decaporg/decap-cms/issues/5752), [#6994](https://github.com/decaporg/decap-cms/issues/6994) and more. We’ll be updating this list after reviewing their issue list.
|
|
499
506
|
[^12]: Netlify/Decap CMS [#1975](https://github.com/decaporg/decap-cms/issues/1975)
|
|
500
507
|
[^13]: Netlify/Decap CMS [#5112](https://github.com/decaporg/decap-cms/issues/5112), [#5653](https://github.com/decaporg/decap-cms/issues/5653)
|
|
501
508
|
[^14]: Netlify/Decap CMS [#4635](https://github.com/decaporg/decap-cms/issues/4635), [#4738](https://github.com/decaporg/decap-cms/issues/4738), [#5920](https://github.com/decaporg/decap-cms/issues/5920), [#6410](https://github.com/decaporg/decap-cms/issues/6410)
|
|
@@ -527,3 +534,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
527
534
|
[^40]: Netlify/Decap CMS [#5630](https://github.com/decaporg/decap-cms/issues/5630)
|
|
528
535
|
[^41]: Netlify/Decap CMS [#7011](https://github.com/decaporg/decap-cms/issues/7011)
|
|
529
536
|
[^42]: Netlify/Decap CMS [#2307](https://github.com/decaporg/decap-cms/issues/2307)
|
|
537
|
+
[^43]: Netlify/Decap CMS [#5381](https://github.com/decaporg/decap-cms/issues/5381)
|
|
538
|
+
[^44]: Netlify/Decap CMS [#2613](https://github.com/decaporg/decap-cms/issues/2613)
|
|
539
|
+
[^45]: Netlify/Decap CMS [#1424](https://github.com/decaporg/decap-cms/issues/1424)
|
|
540
|
+
[^46]: Netlify/Decap CMS [#4726](https://github.com/decaporg/decap-cms/issues/4726)
|