@sveltia/cms 0.84.0 → 0.86.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 +28 -9
- package/dist/sveltia-cms.js +249 -247
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +249 -247
- 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 CMS
|
|
398
|
+
Sveltia CMS supports all [built-in widgets](https://decapcms.org/docs/widgets/) available in Netlify/Decap CMS. 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,12 @@ 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 the map.[^252]
|
|
438
|
+
- With the [Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API), it’s possible to use the 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.
|
|
441
|
+
- The map looks good in dark mode.
|
|
436
442
|
- Markdown
|
|
437
443
|
- 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
444
|
- 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.
|
|
@@ -525,6 +531,7 @@ Note: The Date widget has been deprecated in Netlify CMS and removed from both D
|
|
|
525
531
|
- Upload multiple assets at once, including files in nested folders, by browsing or dragging and dropping them into the library.
|
|
526
532
|
- Sort or filter assets by name or file type.
|
|
527
533
|
- View asset details, including size, dimensions, commit author/date and a list of entries that use the selected asset.
|
|
534
|
+
- View some Exif metadata if available, including the creation date and GPS coordinates displayed on a map.
|
|
528
535
|
- Enhancements to media libraries:
|
|
529
536
|
- Supports multiple media libraries with the [new `media_libraries` option](#configuring-multiple-media-libraries).[^195]
|
|
530
537
|
- Default media library
|
|
@@ -597,7 +604,7 @@ These Netlify/Decap CMS features are not yet implemented in Sveltia CMS. We are
|
|
|
597
604
|
- [Forgejo backend](https://decapcms.org/docs/gitea-backend/) ([#381](https://github.com/sveltia/sveltia-cms/issues/381))
|
|
598
605
|
- [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
606
|
- 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
|
|
607
|
+
- LineString and Polygon types for the [Map](https://decapcms.org/docs/widgets/#map) widget
|
|
601
608
|
- [Custom widgets](https://decapcms.org/docs/custom-widgets/)
|
|
602
609
|
- [Custom editor components](https://decapcms.org/docs/custom-widgets/#registereditorcomponent): Support for preview, Object/List widgets, and the `default` field option
|
|
603
610
|
- [Custom previews](https://decapcms.org/docs/customization/) ([#51](https://github.com/sveltia/sveltia-cms/issues/51))
|
|
@@ -887,13 +894,14 @@ collections:
|
|
|
887
894
|
fields: # Fields for regular entries
|
|
888
895
|
...
|
|
889
896
|
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
897
|
fields: # Fields for the index file. If omitted, regular entry fields are used
|
|
894
898
|
...
|
|
895
|
-
|
|
896
|
-
|
|
899
|
+
# All of the following options are optional
|
|
900
|
+
name: _index # File name without a locale or extension. Default: _index
|
|
901
|
+
label: Index File # Human-readable file label. Default: Index File
|
|
902
|
+
icon: home # Material Symbols icon name. Default: home
|
|
903
|
+
editor:
|
|
904
|
+
preview: false # Hide the preview pane if needed. Default: true
|
|
897
905
|
```
|
|
898
906
|
|
|
899
907
|
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 +1311,15 @@ Then, add the following origins depending on your Git backend and enabled integr
|
|
|
1303
1311
|
```
|
|
1304
1312
|
https://gitea.com
|
|
1305
1313
|
```
|
|
1314
|
+
- OpenStreetMap (built-in Map widget)
|
|
1315
|
+
- `img-src`
|
|
1316
|
+
```
|
|
1317
|
+
https://*.openstreetmap.org
|
|
1318
|
+
```
|
|
1319
|
+
- `connect-src`
|
|
1320
|
+
```
|
|
1321
|
+
https://*.openstreetmap.org
|
|
1322
|
+
```
|
|
1306
1323
|
- Pexels:
|
|
1307
1324
|
- `img-src`
|
|
1308
1325
|
```
|
|
@@ -1419,7 +1436,7 @@ Due Q4 2025
|
|
|
1419
1436
|
### Future
|
|
1420
1437
|
|
|
1421
1438
|
- Tackling many of the remaining Netlify/Decap CMS issues, including MDX support,[^122] [manual entry sorting](https://github.com/sveltia/sveltia-cms/issues/214),[^125] config editor,[^10] offline support,[^238] and other [top-voted features](https://github.com/decaporg/decap-cms/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc) (some of them may be included in v2.0)
|
|
1422
|
-
-
|
|
1439
|
+
- **Sveltia CMS Additions**: edge functions providing features that require server-side implementation, including user management (Netlify Identity alternative), roles,[^23] commits without a Git service account (Git Gateway alternative), API key management, post locking (like [WordPress](https://codex.wordpress.org/Post_Locking))[^166] and scheduled posts[^167]
|
|
1423
1440
|
- More integration options: stock photos, stock videos, cloud storage providers, translation services, maps, analytics tools, etc.
|
|
1424
1441
|
- AI integrations for image generation, content writing, translation, etc.
|
|
1425
1442
|
- Search enhancements
|
|
@@ -1950,3 +1967,5 @@ This software is provided “as is” without any express or implied warranty. W
|
|
|
1950
1967
|
[^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
1968
|
|
|
1952
1969
|
[^251]: Netlify/Decap CMS [#6965](https://github.com/decaporg/decap-cms/issues/6965), [#7445](https://github.com/decaporg/decap-cms/issues/7445)
|
|
1970
|
+
|
|
1971
|
+
[^252]: Netlify/Decap CMS [#6629](https://github.com/decaporg/decap-cms/issues/6629)
|