@sveltia/cms 0.84.0 → 0.85.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 -8
- package/dist/sveltia-cms.js +216 -216
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +210 -210
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
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, 230+ issues, or
|
|
133
|
+
- So far, 230+ issues, or 470+ 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 💪
|
|
@@ -395,7 +395,7 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
395
395
|
|
|
396
396
|
### Better widgets
|
|
397
397
|
|
|
398
|
-
Sveltia CMS supports all [built-in widgets](https://decapcms.org/docs/widgets/) available in Netlify/Decap
|
|
398
|
+
Sveltia CMS supports all [built-in widgets](https://decapcms.org/docs/widgets/) available in Netlify/Decap. We have made significant improvements to these widgets while adding some new ones. Support for [custom widgets](https://decapcms.org/docs/custom-widgets/) will be added before the 1.0 release.
|
|
399
399
|
|
|
400
400
|
Note: The Date widget has been deprecated in Netlify CMS and removed from both Decap CMS and Sveltia CMS in favour of the DateTime widget, as noted in the [Compatibility](#compatibility) section.
|
|
401
401
|
|
|
@@ -433,6 +433,11 @@ Note: The Date widget has been deprecated in Netlify CMS and removed from both D
|
|
|
433
433
|
- Users can preview variable types without having to register a preview template.[^42]
|
|
434
434
|
- It’s possible to omit `fields` in a variable type object.[^163] In that case, only the `typeKey` (default: `type`) is saved in the output.
|
|
435
435
|
- A collapsed List field will not display a programmatic summary like `List [ Map { "key": "value" } ]` if the `summary` option is not set.[^183]
|
|
436
|
+
- Map
|
|
437
|
+
- A search bar enables users to quickly locate a specific place on a map.[^252]
|
|
438
|
+
- With the [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), it’s possible to use the user’s current location.
|
|
439
|
+
- The value can be cleared if the field is optional.
|
|
440
|
+
- The map’s zoom level is adjusted more intuitively using pinch gestures.
|
|
436
441
|
- Markdown
|
|
437
442
|
- 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,[^235] including fatal application crashes,[^71][^72][^73][^111] lost formatting when pasting,[^124] an extra line break when pasting,[^169] extra HTML comments when pasting,[^229] backslash injections,[^53] dropdown visibility,[^70] and text input difficulties with IME.[^54]
|
|
438
443
|
- 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.
|
|
@@ -597,7 +602,7 @@ These Netlify/Decap CMS features are not yet implemented in Sveltia CMS. We are
|
|
|
597
602
|
- [Forgejo backend](https://decapcms.org/docs/gitea-backend/) ([#381](https://github.com/sveltia/sveltia-cms/issues/381))
|
|
598
603
|
- [Cloudinary](https://decapcms.org/docs/cloudinary/) and [Uploadcare](https://decapcms.org/docs/uploadcare/) media libraries ([#4](https://github.com/sveltia/sveltia-cms/discussions/4))
|
|
599
604
|
- Field-specific media folders (beta) for the [File](https://decapcms.org/docs/widgets/#file) and [Image](https://decapcms.org/docs/widgets/#image) widgets
|
|
600
|
-
- [Map](https://decapcms.org/docs/widgets/#map) widget
|
|
605
|
+
- LineSting and Polygon types for the [Map](https://decapcms.org/docs/widgets/#map) widget
|
|
601
606
|
- [Custom widgets](https://decapcms.org/docs/custom-widgets/)
|
|
602
607
|
- [Custom editor components](https://decapcms.org/docs/custom-widgets/#registereditorcomponent): Support for preview, Object/List widgets, and the `default` field option
|
|
603
608
|
- [Custom previews](https://decapcms.org/docs/customization/) ([#51](https://github.com/sveltia/sveltia-cms/issues/51))
|
|
@@ -887,13 +892,14 @@ collections:
|
|
|
887
892
|
fields: # Fields for regular entries
|
|
888
893
|
...
|
|
889
894
|
index_file:
|
|
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
|
|
893
895
|
fields: # Fields for the index file. If omitted, regular entry fields are used
|
|
894
896
|
...
|
|
895
|
-
|
|
896
|
-
|
|
897
|
+
# All of the following options are optional
|
|
898
|
+
name: _index # File name without a locale or extension. Default: _index
|
|
899
|
+
label: Index File # Human-readable file label. Default: Index File
|
|
900
|
+
icon: home # Material Symbols icon name. Default: home
|
|
901
|
+
editor:
|
|
902
|
+
preview: false # Hide the preview pane if needed. Default: true
|
|
897
903
|
```
|
|
898
904
|
|
|
899
905
|
Note that the special index file is placed right under the `folder`, regardless of the collection’s [`path` option](https://decapcms.org/docs/collection-folder/#folder-collections-path). For example, if the `path` is `{{year}}/{{slug}}`, a regular entry would be saved as `content/posts/2025/title.md`, but the index file remains at `content/posts/_index.md`.
|
|
@@ -1303,6 +1309,15 @@ Then, add the following origins depending on your Git backend and enabled integr
|
|
|
1303
1309
|
```
|
|
1304
1310
|
https://gitea.com
|
|
1305
1311
|
```
|
|
1312
|
+
- OpenStreetMap (built-in Map widget)
|
|
1313
|
+
- `img-src`
|
|
1314
|
+
```
|
|
1315
|
+
https://*.openstreetmap.org
|
|
1316
|
+
```
|
|
1317
|
+
- `connect-src`
|
|
1318
|
+
```
|
|
1319
|
+
https://*.openstreetmap.org
|
|
1320
|
+
```
|
|
1306
1321
|
- Pexels:
|
|
1307
1322
|
- `img-src`
|
|
1308
1323
|
```
|
|
@@ -1950,3 +1965,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1950
1965
|
[^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
1966
|
|
|
1952
1967
|
[^251]: Netlify/Decap CMS [#6965](https://github.com/decaporg/decap-cms/issues/6965), [#7445](https://github.com/decaporg/decap-cms/issues/7445)
|
|
1968
|
+
|
|
1969
|
+
[^252]: Netlify/Decap CMS [#6629](https://github.com/decaporg/decap-cms/issues/6629)
|