@sveltia/cms 0.83.0 → 0.84.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 +25 -20
- package/dist/sveltia-cms.js +201 -201
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +193 -193
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/types/public.d.ts +13 -2
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
130
130
|
|
|
131
131
|
- Ensuring substantial [compatibility with Netlify/Decap CMS](#compatibility)
|
|
132
132
|
- Tackling as many [Netlify/Decap CMS issues](https://github.com/decaporg/decap-cms/issues) as possible
|
|
133
|
-
- So far,
|
|
133
|
+
- So far, 230+ issues, or 465+ if including duplicates, have been effectively solved in Sveltia CMS (Yes, you read it right)
|
|
134
134
|
- Target:
|
|
135
135
|
- 200 issues, or 400 if including duplicates, by GA — We did it! 🎉
|
|
136
136
|
- 400 issues, or 800 if including duplicates, in the future 💪
|
|
@@ -144,7 +144,7 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
144
144
|
- Responding to requests from the maintainer’s clients
|
|
145
145
|
- Making the code clean and maintainable
|
|
146
146
|
|
|
147
|
-
<br>
|
|
148
148
|
|
|
149
149
|
## Differentiators
|
|
150
150
|
|
|
@@ -224,9 +224,10 @@ Note: This lengthy section compares Sveltia CMS with both Netlify CMS and Decap
|
|
|
224
224
|
### Better installation
|
|
225
225
|
|
|
226
226
|
- Sveltia CMS is built with [Svelte](https://svelte.dev/), and we only publish compiled vanilla JavaScript bundles, so there are no React compatibility issues that might prevent developers from upgrading a project for many months.[^177] We haven’t actually integrated React for custom widgets and other features yet, but anyway, no dependencies will be installed when you [install the app with npm](#installing-with-npm).
|
|
227
|
-
- Sveltia CMS also won’t cause peer dependency conflicts due to legacy third-party React UI libraries
|
|
227
|
+
- Sveltia CMS also won’t cause peer dependency conflicts mainly due to legacy third-party React UI libraries.[^175][^237] We build the app using [our own Svelte UI component library](https://github.com/sveltia/sveltia-ui) to reduce reliance on third parties.
|
|
228
228
|
- Some servers and frameworks are known to remove the trailing slash from the CMS URL (`/admin`) depending on the configuration. In such cases, the config file is loaded from a root-relative URL (`/admin/config.yml`) instead of a regular relative URL (`./config.yml` = `/config.yml`) that results in a 404 Not Found error.[^107]
|
|
229
229
|
- The [robots `meta` tag](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag) is automatically added to HTML to prevent the admin page from being indexed by search engines.[^174] Developers are still encouraged to manually add `<meta name="robots" content="noindex">` to `index.html`, as not all crawlers support dynamically added tags. However, our solution should at least work with Google in case you forget to do so.
|
|
230
|
+
- Initializing the CMS twice (due to the incorrect or missing placement of `CMS_MANUAL_INIT`) will not result in a `NotFoundError`.[^251]
|
|
230
231
|
|
|
231
232
|
### Better configuration
|
|
232
233
|
|
|
@@ -602,9 +603,9 @@ These Netlify/Decap CMS features are not yet implemented in Sveltia CMS. We are
|
|
|
602
603
|
- [Custom previews](https://decapcms.org/docs/customization/) ([#51](https://github.com/sveltia/sveltia-cms/issues/51))
|
|
603
604
|
- [Event hooks](https://decapcms.org/docs/registering-events/) ([#167](https://github.com/sveltia/sveltia-cms/issues/167))
|
|
604
605
|
|
|
605
|
-
Due to the complexity, we have decided to defer the following features to the 2.0 release. Netlify/Decap CMS has a number of open issues with
|
|
606
|
+
Due to the complexity, we have decided to defer the following features to the 2.0 release. Netlify/Decap CMS has a number of open issues with these collaboration and beta features — we want to implement them the right way.
|
|
606
607
|
|
|
607
|
-
- [Editorial Workflow](https://decapcms.org/docs/editorial-workflows/)
|
|
608
|
+
- [Editorial Workflow](https://decapcms.org/docs/editorial-workflows/) & [Deploy Preview Links](https://decapcms.org/docs/deploy-preview-links/)
|
|
608
609
|
- [Open Authoring](https://decapcms.org/docs/open-authoring/)
|
|
609
610
|
- [Nested Collections](https://decapcms.org/docs/collection-nested/) (beta)
|
|
610
611
|
|
|
@@ -709,7 +710,7 @@ You can now open `https://[hostname]/admin/` as usual to start editing. There is
|
|
|
709
710
|
|
|
710
711
|
Sveltia CMS does not support the Git Gateway backend due to performance limitations. If you don’t care about user management with Netlify Identity, you can use the [GitHub](https://decapcms.org/docs/github-backend/) or [GitLab](https://decapcms.org/docs/gitlab-backend/) backend instead. Make sure **you install an OAuth client** on GitHub or GitLab in addition to updating your configuration file. As noted in the document, Netlify is still able to facilitate the auth flow.
|
|
711
712
|
|
|
712
|
-
To allow
|
|
713
|
+
To allow other people to edit content, simply invite them to your GitHub repository with the write role assigned. Please note, however, that Sveltia CMS hasn’t implemented any mechanisms to prevent conflicts in multi-user scenarios.
|
|
713
714
|
|
|
714
715
|
Once you have migrated from the Git Gateway and Netlify Identity combo, you can remove the Netlify Identity Widget script tag from your HTML:
|
|
715
716
|
|
|
@@ -886,10 +887,12 @@ collections:
|
|
|
886
887
|
fields: # Fields for regular entries
|
|
887
888
|
...
|
|
888
889
|
index_file:
|
|
889
|
-
name: _index # File name
|
|
890
|
+
name: _index # File name without a locale or extension. Optional. Default: _index
|
|
891
|
+
label: Index File # Human-readable file label. Optional. Default: Index File
|
|
892
|
+
icon: home # Material Symbols icon name. Optional. Default: home
|
|
890
893
|
fields: # Fields for the index file. If omitted, regular entry fields are used
|
|
891
894
|
...
|
|
892
|
-
editor:
|
|
895
|
+
editor: # Optional
|
|
893
896
|
preview: false # Hide the preview pane if needed
|
|
894
897
|
```
|
|
895
898
|
|
|
@@ -903,20 +906,20 @@ To create this special file collection, add the new `singletons` option, along w
|
|
|
903
906
|
|
|
904
907
|
```yaml
|
|
905
908
|
collections:
|
|
906
|
-
#
|
|
907
|
-
- name:
|
|
908
|
-
label:
|
|
909
|
+
# A conventional file collection
|
|
910
|
+
- name: data
|
|
911
|
+
label: Data
|
|
909
912
|
files:
|
|
910
913
|
- name: home
|
|
911
914
|
label: Home Page
|
|
912
915
|
file: content/home.yaml
|
|
913
916
|
...
|
|
914
|
-
- name:
|
|
917
|
+
- name: settings
|
|
915
918
|
label: Site Settings
|
|
916
919
|
file: content/settings.yaml
|
|
917
920
|
...
|
|
918
921
|
|
|
919
|
-
#
|
|
922
|
+
# ... can be converted to the singleton collection
|
|
920
923
|
singletons:
|
|
921
924
|
- name: home
|
|
922
925
|
label: Home Page
|
|
@@ -925,7 +928,7 @@ singletons:
|
|
|
925
928
|
...
|
|
926
929
|
- name: divider-1
|
|
927
930
|
divider: true # You can also add dividers
|
|
928
|
-
- name:
|
|
931
|
+
- name: settings
|
|
929
932
|
label: Site Settings
|
|
930
933
|
file: content/settings.yaml
|
|
931
934
|
icon: settings
|
|
@@ -1389,12 +1392,12 @@ Due Q4 2025
|
|
|
1389
1392
|
|
|
1390
1393
|
- Enhanced [compatibility with Netlify/Decap CMS](#current-limitations)
|
|
1391
1394
|
- Tackling some more Netlify/Decap CMS issues:
|
|
1392
|
-
- [Directory navigation in the
|
|
1395
|
+
- [Directory navigation in the Asset Library](https://github.com/sveltia/sveltia-cms/issues/420)[^240] (#5 top-voted feature of Netlify/Decap CMS)
|
|
1393
1396
|
- [Multiple file selection with the File and Image widgets](https://github.com/sveltia/sveltia-cms/issues/10)[^239] (#14)
|
|
1394
|
-
- [Git LFS support for GitHub backend](https://github.com/sveltia/sveltia-cms/discussions/353)[^244] (#26)
|
|
1397
|
+
- [Git LFS support for the GitHub backend](https://github.com/sveltia/sveltia-cms/discussions/353)[^244] (#26)
|
|
1395
1398
|
- Advanced Relation fields[^242], including cascade updates/deletes[^243] and [reverse reference lists](https://github.com/sveltia/sveltia-cms/discussions/416)
|
|
1396
|
-
- Cloudinary and Uploadcare issues, including existing
|
|
1397
|
-
- [Automatic file renaming with templates](https://github.com/sveltia/sveltia-cms/issues/422)[^241]
|
|
1399
|
+
- Several Cloudinary and Uploadcare media library issues, including selection of existing files[^247]
|
|
1400
|
+
- [Automatic asset file renaming with templates](https://github.com/sveltia/sveltia-cms/issues/422)[^241]
|
|
1398
1401
|
- [RTL localization support](https://github.com/sveltia/sveltia-cms/issues/385)[^245]
|
|
1399
1402
|
- Thorough site config validation[^246]
|
|
1400
1403
|
- [Entry pre-validation/normalization](https://github.com/sveltia/sveltia-cms/issues/395)[^248]
|
|
@@ -1408,7 +1411,7 @@ Due Q4 2025
|
|
|
1408
1411
|
### v2.0
|
|
1409
1412
|
|
|
1410
1413
|
- Implementing [a few deferred Netlify/Decap CMS features](#current-limitations):
|
|
1411
|
-
- [Editorial Workflow](https://decapcms.org/docs/editorial-workflows/)
|
|
1414
|
+
- [Editorial Workflow](https://decapcms.org/docs/editorial-workflows/) & [Deploy Preview Links](https://decapcms.org/docs/deploy-preview-links/)
|
|
1412
1415
|
- [Open Authoring](https://decapcms.org/docs/open-authoring/)
|
|
1413
1416
|
- [Nested Collections](https://decapcms.org/docs/collection-nested/) (beta)
|
|
1414
1417
|
- End-user documentation
|
|
@@ -1670,7 +1673,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1670
1673
|
|
|
1671
1674
|
[^112]: Netlify/Decap CMS [#5815](https://github.com/decaporg/decap-cms/issues/5815), [#6522](https://github.com/decaporg/decap-cms/issues/6522), [#6532](https://github.com/decaporg/decap-cms/issues/6532), [#6588](https://github.com/decaporg/decap-cms/issues/6588), [#6617](https://github.com/decaporg/decap-cms/issues/6617), [#6640](https://github.com/decaporg/decap-cms/issues/6640), [#6663](https://github.com/decaporg/decap-cms/issues/6663), [#6695](https://github.com/decaporg/decap-cms/issues/6695), [#6697](https://github.com/decaporg/decap-cms/issues/6697), [#6764](https://github.com/decaporg/decap-cms/issues/6764), [#6765](https://github.com/decaporg/decap-cms/issues/6765), [#6835](https://github.com/decaporg/decap-cms/issues/6835), [#6983](https://github.com/decaporg/decap-cms/issues/6983), [#7205](https://github.com/decaporg/decap-cms/issues/7205), [#7450](https://github.com/decaporg/decap-cms/issues/7450), [#7453](https://github.com/decaporg/decap-cms/issues/7453)
|
|
1672
1675
|
|
|
1673
|
-
[^113]: 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), [#
|
|
1676
|
+
[^113]: 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), [#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), [#7244](https://github.com/decaporg/decap-cms/issues/7244), [#7278](https://github.com/decaporg/decap-cms/issues/7278), [#7301](https://github.com/decaporg/decap-cms/issues/7301), [#7342](https://github.com/decaporg/decap-cms/issues/7342), [#7348](https://github.com/decaporg/decap-cms/issues/7348), [#7354](https://github.com/decaporg/decap-cms/issues/7354), [#7376](https://github.com/decaporg/decap-cms/issues/7376), [#7408](https://github.com/decaporg/decap-cms/issues/7408), [#7412](https://github.com/decaporg/decap-cms/issues/7412), [#7413](https://github.com/decaporg/decap-cms/issues/7413), [#7422](https://github.com/decaporg/decap-cms/issues/7422), [#7427](https://github.com/decaporg/decap-cms/issues/7427), [#7434](https://github.com/decaporg/decap-cms/issues/7434), [#7438](https://github.com/decaporg/decap-cms/issues/7438), [#7454](https://github.com/decaporg/decap-cms/issues/7454), [#7464](https://github.com/decaporg/decap-cms/issues/7464), [#7471](https://github.com/decaporg/decap-cms/issues/7471), [#7485](https://github.com/decaporg/decap-cms/issues/7485), [#7499](https://github.com/decaporg/decap-cms/issues/7499), [#7515](https://github.com/decaporg/decap-cms/issues/7515) — These `removeChild` crashes are common in React apps, likely caused by a [browser extension](https://github.com/facebook/react/issues/17256) or [Google Translate](https://github.com/facebook/react/issues/11538).
|
|
1674
1677
|
|
|
1675
1678
|
[^114]: Netlify/Decap CMS [#5029](https://github.com/decaporg/decap-cms/issues/5029), [#5048](https://github.com/decaporg/decap-cms/issues/5048)
|
|
1676
1679
|
|
|
@@ -1945,3 +1948,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1945
1948
|
[^249]: Netlify/Decap CMS [#4208](https://github.com/decaporg/decap-cms/issues/4208)
|
|
1946
1949
|
|
|
1947
1950
|
[^250]: Netlify/Decap CMS [#6609](https://github.com/decaporg/decap-cms/issues/6609), [#6802](https://github.com/decaporg/decap-cms/issues/6802), [#6824](https://github.com/decaporg/decap-cms/issues/6824), [#6832](https://github.com/decaporg/decap-cms/issues/6832), [#6848](https://github.com/decaporg/decap-cms/issues/6848), [#6851](https://github.com/decaporg/decap-cms/issues/6851), [#7287](https://github.com/decaporg/decap-cms/issues/7287), [#7522](https://github.com/decaporg/decap-cms/issues/7522)
|
|
1951
|
+
|
|
1952
|
+
[^251]: Netlify/Decap CMS [#6965](https://github.com/decaporg/decap-cms/issues/6965), [#7445](https://github.com/decaporg/decap-cms/issues/7445)
|