@sveltia/cms 0.47.7 → 0.48.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 +9 -7
- package/dist/sveltia-cms.js +154 -154
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +161 -161
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -205,7 +205,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
205
205
|
|
|
206
206
|
- Configuration
|
|
207
207
|
- The [i18n limitations](https://decapcms.org/docs/i18n/#limitations) in Netlify/Decap CMS do not apply to Sveltia CMS:
|
|
208
|
-
- File collections support multiple files/folders i18n structures[^87]. To enable it, simply use the `{{locale}}` template tag in the `file` path option, e.g. `content/pages/about.{{locale}}.json` or `content/pages/{{locale}}/about.json`. For backward compatibility, the global `structure` option only applies to folder collections
|
|
208
|
+
- File collections support multiple files/folders i18n structures[^87]. To enable it, simply use the `{{locale}}` template tag in the `file` path option, e.g. `content/pages/about.{{locale}}.json` or `content/pages/{{locale}}/about.json`. For backward compatibility, the global `structure` option only applies to folder collections, and the default i18n structure for file collections remains single file.
|
|
209
209
|
- The List and Object widgets support the `i18n: duplicate` field configuration so that changes made with these widgets are duplicated between locales[^7][^68]. The `i18n` configuration can normally be used for the subfields.
|
|
210
210
|
- [Entry-relative media folders](https://decapcms.org/docs/collection-folder/#media-and-public-folder) can be used in conjunction with the `multiple_folders` i18n structure[^21].
|
|
211
211
|
- The `{{locale}}` template tag can be used in the [`preview_path`](https://decapcms.org/docs/configuration-options/#preview_path) collection option to provide site preview links for each language[^63].
|
|
@@ -322,6 +322,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
322
322
|
- Users can preview variable types without having to register a preview template[^42].
|
|
323
323
|
- Markdown
|
|
324
324
|
- The rich text editor is built with the well-maintained [Lexical](https://lexical.dev/) framework, which solves various issues with a [Slate](https://github.com/ianstormtaylor/slate)-based editor in Netlify/Decap CMS, including fatal application crashes[^71][^72][^73][^111], lost formatting when pasting[^124], backslash injections[^53], dropdown visibility[^70], and text input difficulties with IME[^54].
|
|
325
|
+
- The built-in `image` component can be inserted with a single click.
|
|
325
326
|
- The default editor mode can be set by changing the order of the `modes` option[^58]. If you want to use the plain text editor by default, add `modes: [raw, rich_text]` to the field configuration.
|
|
326
327
|
- Line breaks are rendered as line breaks in the preview pane according to GitHub Flavored Markdown (GFM).
|
|
327
328
|
- Object
|
|
@@ -411,7 +412,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
411
412
|
- The application UI locale is automatically selected based on the preferred language set with the browser[^132]. Users can also change the locale in the application settings. Therefore, the `locale` configuration option is ignored and `CMS.registerLocale()` is not required.
|
|
412
413
|
- The List widget’s `label` and `label_singular` are not converted to lowercase, which is especially problematic in German, where all nouns are capitalized[^98].
|
|
413
414
|
- Long menu item labels, especially in non-English locales, don’t overflow the dropdown container[^117].
|
|
414
|
-
- We
|
|
415
|
+
- We are migrating from [svelte-i18n](https://github.com/kaisermann/svelte-i18n) to the new [MessageFormat 2](https://github.com/unicode-org/message-format-wg)-based sveltia-i18n library for natural-sounding translations in every locale.
|
|
415
416
|
|
|
416
417
|
## Compatibility
|
|
417
418
|
|
|
@@ -448,13 +449,14 @@ These limitations are expected to be resolved before or shortly after GA:
|
|
|
448
449
|
| --- | --- |
|
|
449
450
|
| [Code](https://decapcms.org/docs/widgets/#code) | Not yet supported. |
|
|
450
451
|
| [DateTime](https://decapcms.org/docs/widgets/#datetime) | The `date_format` and `time_format` options with Moment.js tokens are not yet supported. Note that [Decap CMS 3.1.1](https://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.1.1) replaced Moment.js with [Day.js](https://day.js.org/), and [Decap CMS 3.3.0](https://github.com/decaporg/decap-cms/releases/tag/decap-cms%403.3.0) made other changes to the widget behaviour; we’ll follow these changes where it makes sense. |
|
|
451
|
-
| [File](https://decapcms.org/docs/widgets/#file)/[Image](https://decapcms.org/docs/widgets/#image) | Field-specific media folders (beta) and media library options are not yet supported other than `media_library.config.max_file_size` for the default media library. |
|
|
452
|
+
| [File](https://decapcms.org/docs/widgets/#file) / [Image](https://decapcms.org/docs/widgets/#image) | Field-specific media folders (beta) and media library options are not yet supported other than `media_library.config.max_file_size` for the default media library. |
|
|
452
453
|
| [Map](https://decapcms.org/docs/widgets/#map) | Not yet supported. |
|
|
453
|
-
| [Markdown](https://decapcms.org/docs/widgets/#markdown) |
|
|
454
|
+
| [Markdown](https://decapcms.org/docs/widgets/#markdown) | The built-in `code-block` component and custom components are not yet supported. |
|
|
454
455
|
|
|
455
456
|
### Other notes
|
|
456
457
|
|
|
457
|
-
-
|
|
458
|
+
- Make sure you’re using the latest stable version of a web browser. Firefox ESR and its derivatives, including Tor Browser and Mullvad Browser, are not supported, although they may still work. The [local repository workflow](#working-with-a-local-git-repository) requires Chrome, Edge or another Chromium-based browser.
|
|
459
|
+
- Sveltia CMS requires a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts), meaning it only works with HTTPS, `localhost` or `127.0.0.1` URLs. If you’re running a remote server yourself and it’s served over HTTP, get a TLS certificate from [Let’s Encrypt](https://letsencrypt.org/).
|
|
458
460
|
- The GitLab backend requires GitLab 16.3 or later.
|
|
459
461
|
- We plan to provide partial compatibility with now-discontinued Static CMS, such as the [KeyValue widget](https://staticjscms.netlify.app/docs/widget-keyvalue).
|
|
460
462
|
- Found a compatibility issue or other missing feature? [Let us know](https://github.com/sveltia/sveltia-cms/issues/new).
|
|
@@ -572,7 +574,7 @@ Keep in mind that, as with Netlify/Decap CMS, the local repository support in Sv
|
|
|
572
574
|
|
|
573
575
|
Also, at this point, you have to reload the CMS to see the latest content after retrieving remote updates. This manual work will hopefully be unnecessary once the proposed `FileSystemObserver` API, which is being [implemented in Chromium](https://issues.chromium.org/issues/40105284) behind a flag, becomes available.
|
|
574
576
|
|
|
575
|
-
If you have migrated from Netlify/Decap CMS and are happy with the local 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.
|
|
577
|
+
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.
|
|
576
578
|
|
|
577
579
|
### Enabling local development in Brave
|
|
578
580
|
|
|
@@ -933,7 +935,7 @@ See [Contributing to Sveltia CMS](https://github.com/sveltia/sveltia-cms/blob/ma
|
|
|
933
935
|
- [Svelte 5](https://svelte.dev/blog/svelte-5-is-alive) Runes migration
|
|
934
936
|
- Enhanced [compatibility with Netlify/Decap CMS](#compatibility)
|
|
935
937
|
- Partial compatibility with Static CMS, a now-discontinued community fork of Netlify CMS, specifically the [KeyValue widget](https://staticjscms.netlify.app/docs/widget-keyvalue)[^123]
|
|
936
|
-
- Localization
|
|
938
|
+
- [Localization](https://github.com/sveltia/sveltia-cms/blob/main/src/lib/locales/README.md)
|
|
937
939
|
- Accessibility audit
|
|
938
940
|
- Developer documentation (implementation guide)
|
|
939
941
|
- Marketing site
|