@sveltia/cms 0.21.2 → 0.21.4

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 CHANGED
@@ -30,7 +30,7 @@ While we are fixing reported bugs as fast as we can, usually within 48 hours, th
30
30
  - Tackling as many [issues reported to Netlify/Decap CMS](https://github.com/decaporg/decap-cms/issues) as possible (so far 75+ of them have been effectively solved in Sveltia CMS, with the goal of reaching 100 by GA)
31
31
  - Implementing our own enhancement ideas
32
32
 
33
- At this point **we hope to ship version 1.0 in Q3 2024**. Check our [release notes](https://github.com/sveltia/sveltia-cms/releases) for updates.
33
+ At this point, **we are aiming to ship version 1.0 in Q3 2024**. Check our [release notes](https://github.com/sveltia/sveltia-cms/releases) for updates.
34
34
 
35
35
  ## Features
36
36
 
@@ -174,14 +174,18 @@ We are working hard to create a **significantly better alternative to Netlify CM
174
174
  - Integration with Pexels, Pixabay and Unsplash makes it easy to select and insert a free stock photo[^8]. More services will be added later.
175
175
  - List and Object
176
176
  - The `summary` is displayed correctly when it refers to a Relation field[^36].
177
- - String, Text and Markdown
177
+ - Markdown, String and Text
178
178
  - A required field containing only spaces or line breaks will result in a validation error, as if no characters were entered.
179
- - New widgets
179
+
180
+ #### New widgets
181
+
182
+ - Compute
183
+ - The experimental `compute` widget allows to reference the value of other fields in the same collection, similar to the `summary` property for the List and Object widgets. Use the `value` property to define the value template, e.g. `posts-{{fields.slug}}` ([example](https://github.com/sveltia/sveltia-cms/issues/111)).
184
+ - UUID
180
185
  - In addition to [generating UUIDs for entry slugs](#using-a-random-id-for-an-entry-slug), Sveltia CMS also supports the proposed `uuid` widget with the following properties[^12]:
181
186
  - `prefix`: A string to be prepended to the value. Default: an empty string.
182
187
  - `use_b32_encoding`: Whether to encode the value with Base32. Default: `false`.
183
188
  - `read_only`: Whether to make the field read-only. Default: `true`.
184
- - The experimental `compute` widget allows to reference the value of other fields in the same collection, similar to the `summary` property for the List and Object widgets. Use the `value` property to define the value template, e.g. `posts-{{fields.slug}}` ([example](https://github.com/sveltia/sveltia-cms/issues/111)).
185
189
 
186
190
  ### Better asset management
187
191
 
@@ -233,10 +237,10 @@ The table below shows the current limitations of Sveltia CMS, that are expected
233
237
 
234
238
  - The deprecated client-side implicit grant for the GitLab backend will not be supported, as it has already been [removed from GitLab 15.0](https://gitlab.com/gitlab-org/gitlab/-/issues/344609). Use the client-side PKCE authorization instead.
235
239
  - The Bitbucket, Gitea/Forgejo and Git Gateway backends will not be supported due to performance limitations. We may implement a performant Git Gateway alternative in the future.
236
- - The Netlify Identity Widget will not be supported as it’s not useful without Git Gateway.
240
+ - The Netlify Identity Widget will not be supported, as it’s not useful without Git Gateway.
237
241
  - The deprecated Netlify Large Media service will not be supported. Consider other storage providers.
238
242
  - Sveltia CMS has dropped the support for the deprecated Date widget following Decap CMS 3.0. Use the DateTime widget instead.
239
- - Remark plugins will not be supported as they are not compatible with our Lexical-based rich text editor.
243
+ - Remark plugins will not be supported, as they are not compatible with our Lexical-based rich text editor.
240
244
 
241
245
  ## Roadmap
242
246
 
@@ -306,10 +310,18 @@ If you’ve chosen to install with npm, updating the package is your responsibil
306
310
 
307
311
  ## Tips & tricks
308
312
 
313
+ ### Migrating from Git Gateway backend
314
+
315
+ Sveltia CMS does not support the Git Gateway backend (and Netlify Identity) due to performance limitations. If you don’t care about user management, you can easily migrate to the [GitHub backend](https://decapcms.org/docs/github-backend/) or [GitLab backend](https://decapcms.org/docs/gitlab-backend/). Make sure **you install an OAuth client** on GitHub or GitLab in addition to updating your configuration file. As noted in the document, Netlify still facilitates the auth flow.
316
+
309
317
  ### Moving your site from Netlify to another hosting service
310
318
 
311
319
  You can host your Sveltia CMS-managed site anywhere, such as [Cloudflare Pages](https://pages.cloudflare.com/) or [GitHub Pages](https://pages.github.com/). But moving away from Netlify means you can no longer sign in with GitHub or GitLab via Netlify. Instead, you can use [our own OAuth client](https://github.com/sveltia/sveltia-cms-auth), which can be easily deployed to Cloudflare Workers, or [any other 3rd party client](https://decapcms.org/docs/external-oauth-clients/) made for Netlify/Decap CMS.
312
320
 
321
+ ### Working around authentication error
322
+
323
+ If you get an “Authentication Aborted” error when trying to sign in to GitHub or GitLab using the authorization code flow, you may need to check your site’s [`Cross-Origin-Opener-Policy`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy). The COOP header is not widely used, but it breaks the OAuth flow with a popup window. If that’s your case, changing `same-origin` to `same-origin-allow-popups` solves the problem. ([Discussion](https://github.com/sveltia/sveltia-cms/issues/131))
324
+
313
325
  ### Working with a local Git repository
314
326
 
315
327
  You can use Sveltia CMS with a local Git repository like [Netlify/Decap CMS](https://decapcms.org/docs/working-with-a-local-git-repository/), but Sveltia CMS has simplified the workflow by removing the need for additional configuration (the `local_backend` property) and a proxy server, thanks to the [File System Access API](https://developer.chrome.com/articles/file-system-access/) available in [some modern browsers](https://developer.mozilla.org/en-US/docs/web/api/window/showopenfilepicker#browser_compatibility).