@sveltia/cms 0.92.4 → 0.93.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 +8 -7
- package/dist/sveltia-cms.js +220 -220
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +227 -227
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +5 -0
- package/types/public.d.ts +5 -0
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ While we fix reported bugs as quickly as possible, usually within 24 hours, our
|
|
|
134
134
|
|
|
135
135
|
- Ensuring substantial [compatibility with Netlify/Decap CMS](#compatibility)
|
|
136
136
|
- Tackling as many [Netlify/Decap CMS issues](https://github.com/decaporg/decap-cms/issues) as possible
|
|
137
|
-
- So far, 240+ issues, or
|
|
137
|
+
- So far, 240+ issues, or 500+ if including duplicates, have been effectively solved in Sveltia CMS (Yes, you read it right)
|
|
138
138
|
- Target:
|
|
139
139
|
- 250 issues, or 500 if including duplicates, by GA — Almost there!
|
|
140
140
|
- 400 issues, or 800 if including duplicates, in the future 💪
|
|
@@ -339,6 +339,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
339
339
|
- If a collection only has the Markdown `body` field, an entry slug will be generated from a header in the `body`, if exists. This supports a typical VitePress setup.
|
|
340
340
|
- Entry slug template tags support [transformations](https://decapcms.org/docs/summary-strings/) just like summary string template tags.[^29]
|
|
341
341
|
- Single quotes (apostrophes) in a slug will be replaced with `sanitize_replacement` (default: hyphen) rather than being removed.[^52]
|
|
342
|
+
- The [global `slug` option](https://decapcms.org/docs/configuration-options/#slug-type) accepts the `trim` option to remove leading and trailing replacement characters, such as hyphens, from an entry slug. The default value is `true`. Set to `false` to keep them.
|
|
342
343
|
- The maximum number of characters for an entry slug can be set with the new `slug_length` collection option to avoid deployment errors with Netlify or other platforms.[^25]
|
|
343
344
|
- Setting the collection `path` doesn’t affect the entry slugs stored with the Relation widget.[^137]
|
|
344
345
|
- Entry slugs are [localizable](#localizing-entry-slugs).[^80]
|
|
@@ -722,7 +723,7 @@ From Decap CMS:
|
|
|
722
723
|
|
|
723
724
|
Next, let’s [test Sveltia CMS on your local machine](#working-with-a-local-git-repository). If everything looks good, push the change to your repository.
|
|
724
725
|
|
|
725
|
-
You can now open `https://[hostname]/admin/` as usual to start editing. There is even no authentication process if you’re already signed in with
|
|
726
|
+
You can now open `https://[hostname]/admin/` as usual to start editing. There is even no authentication process if you’re already signed in with a backend on Netlify/Decap CMS because Sveltia CMS uses your auth token stored in the browser. Simple enough!
|
|
726
727
|
|
|
727
728
|
#### Editing the configuration file
|
|
728
729
|
|
|
@@ -740,7 +741,7 @@ Once you have migrated from the Git Gateway and Netlify Identity combo, you can
|
|
|
740
741
|
-<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
741
742
|
```
|
|
742
743
|
|
|
743
|
-
If you want to stay with Netlify Identity, unfortunately you can’t migrate to Sveltia CMS right now. We plan to develop an alternative
|
|
744
|
+
If you want to stay with Git Gateway and Netlify Identity, unfortunately you can’t migrate to Sveltia CMS right now. We plan to develop an alternative solution [in the future](#roadmap).
|
|
744
745
|
|
|
745
746
|
### Installing with npm
|
|
746
747
|
|
|
@@ -838,9 +839,9 @@ Here are the workflow steps and tips:
|
|
|
838
839
|
- If you get an error saying “not a repository root directory”, make sure you’ve turned the folder into a repository with either a CUI ([`git init`](https://github.com/git-guides/git-init)) or GUI, and the hidden `.git` folder exists.
|
|
839
840
|
- If you’re using Windows Subsystem for Linux (WSL), you may get an error saying “Can’t open this folder because it contains system files.” This is due to a limitation in the browser, and you can try some workarounds mentioned in [this issue](https://github.com/coder/code-server/issues/4646) and [this thread](https://github.com/sveltia/sveltia-cms/discussions/101).
|
|
840
841
|
1. Edit your content using the CMS. All changes are made to local files.
|
|
842
|
+
1. Use `git diff` or a GUI like [GitHub Desktop](https://desktop.github.com/) to see if the produced changes look good.
|
|
841
843
|
1. Open the dev site at `http://localhost:[port]/` to check the rendered pages.
|
|
842
844
|
- Depending on your framework, you may need to manually rebuild your site to reflect the changes you have made.
|
|
843
|
-
1. Use `git diff` or a GUI like [GitHub Desktop](https://desktop.github.com/) to see if the produced changes look good.
|
|
844
845
|
1. Commit and push the changes if satisfied, or discard them if you’re just testing.
|
|
845
846
|
|
|
846
847
|
If you have migrated from Netlify/Decap CMS and are happy with the local repository workflow of Sveltia CMS, you can remove the `local_backend` property from your configuration and uninstall the proxy server. If you have configured a custom port number with the `.env` file, you can remove it as well.
|
|
@@ -1621,8 +1622,6 @@ Due late 2025
|
|
|
1621
1622
|
- Tackling some more Netlify/Decap CMS issues:
|
|
1622
1623
|
- [Directory navigation in the Asset Library](https://github.com/sveltia/sveltia-cms/issues/420)[^240]
|
|
1623
1624
|
- [Multiple file selection with the File and Image widgets](https://github.com/sveltia/sveltia-cms/issues/10)[^239]
|
|
1624
|
-
- Advanced Relation fields[^242], including cascade updates/deletes[^243]
|
|
1625
|
-
- We’ll also implement [reverse reference lists](https://github.com/sveltia/sveltia-cms/discussions/416)
|
|
1626
1625
|
- Several Cloudinary and Uploadcare media library issues, including selection of existing files[^247]
|
|
1627
1626
|
- [Automatic asset file renaming with templates](https://github.com/sveltia/sveltia-cms/issues/422)[^241]
|
|
1628
1627
|
- [RTL localization support](https://github.com/sveltia/sveltia-cms/issues/385)[^245]
|
|
@@ -1654,6 +1653,8 @@ Due early 2026
|
|
|
1654
1653
|
- [Reusable field groups](https://github.com/sveltia/sveltia-cms/discussions/463)[^263]
|
|
1655
1654
|
- Offline support[^238]
|
|
1656
1655
|
- and other [top-voted features](https://github.com/decaporg/decap-cms/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc)
|
|
1656
|
+
- Advanced Relation fields[^242], including cascade updates/deletes[^243]
|
|
1657
|
+
- We’ll also implement [reverse reference lists](https://github.com/sveltia/sveltia-cms/discussions/416)
|
|
1657
1658
|
- (some of them may be included in v2.0)
|
|
1658
1659
|
- **Sveltia CMS Additions**: edge functions for Cloudflare Workers and possibly other platforms that provide features that cannot be implemented client-side:
|
|
1659
1660
|
- User management (Netlify Identity alternative) with roles[^23]
|
|
@@ -1758,7 +1759,7 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1758
1759
|
|
|
1759
1760
|
[^32]: Netlify/Decap CMS [#302](https://github.com/decaporg/decap-cms/issues/302), [#5549](https://github.com/decaporg/decap-cms/issues/5549)
|
|
1760
1761
|
|
|
1761
|
-
[^33]: Netlify/Decap CMS [#542](https://github.com/decaporg/decap-cms/issues/542), [#4532](https://github.com/decaporg/decap-cms/issues/4532), [#6513](https://github.com/decaporg/decap-cms/issues/6513), [#7295](https://github.com/decaporg/decap-cms/issues/7295)
|
|
1762
|
+
[^33]: Netlify/Decap CMS [#542](https://github.com/decaporg/decap-cms/issues/542), [#4532](https://github.com/decaporg/decap-cms/issues/4532), [#6513](https://github.com/decaporg/decap-cms/issues/6513), [#7295](https://github.com/decaporg/decap-cms/issues/7295), [#7567](https://github.com/decaporg/decap-cms/issues/7567)
|
|
1762
1763
|
|
|
1763
1764
|
[^34]: Netlify/Decap CMS [#2138](https://github.com/decaporg/decap-cms/issues/2138), [#2343](https://github.com/decaporg/decap-cms/issues/2343), [#4367](https://github.com/decaporg/decap-cms/issues/4367), [#5932](https://github.com/decaporg/decap-cms/discussions/5932)
|
|
1764
1765
|
|