@sveltia/cms 0.13.0 → 0.14.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 CHANGED
@@ -96,11 +96,12 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
96
96
  ### Better fields/widgets
97
97
 
98
98
  - Required fields, not optional fields, are clearly marked for efficient data entry.
99
+ - Leading and trailing spaces in text-type field values are automatically removed when you save the entry[^37].
99
100
  - You can revert changes to all fields or a specific field.
100
101
  - You can hide the preview of a specific field with `preview: false`.
101
102
  - The String widget supports the `type` property that accepts `url` or `email` as a value, which will validate the value as a URL or email.
102
- - The String widget supports the `prefix` and `suffix` string properties, which will be automatically prepended/appended to the user-input value.
103
- - The Boolean, Number and String widgets support the `before_input` and `after_input` string properties, which allow developers to display custom labels before and/or after the input UI[^28].
103
+ - The String widget supports the `prefix` and `suffix` string properties, which automatically prepend and/or append the developer-defined value to the user-input value.
104
+ - The Boolean, Number and String widgets support the `before_input` and `after_input` string properties, which allow developers to display custom labels before and/or after the input UI[^28]. Markdown is supported in the value.
104
105
  - Relation field options are displayed with no additional API requests[^14]. The `options_length` property is therefore ignored.
105
106
  - The `summary` for the List and Object widgets is displayed correctly when it refers to a Relation field[^36].
106
107
  - Provides a reimagined all-in-one asset selection dialog for File and Image fields.
@@ -119,9 +120,14 @@ We are working hard to create a **much better alternative to Netlify/Decap CMS**
119
120
  ### Better asset management
120
121
 
121
122
  - A completely new Asset Library, built separately from the image selection dialog, makes it easy to manage all of your files, including images, videos and documents.
122
- - You can sort or filter assets by name or file type and view asset details, including size, dimensions, and a list of entries that use the selected asset.
123
- - You can upload multiple assets at once, including files in nested folders, by browsing or dragging & dropping them into the library[^5].
124
- - You can navigate between the global media folder and per-collection media folders[^6].
123
+ - Navigate between the global media folder and per-collection media folders[^6].
124
+ - Copy the public URL or file path of one or more selected assets to clipboard.
125
+ - Copy the text or image data of of a selected asset to clipboard.
126
+ - Download one or more selected assets.
127
+ - Upload multiple assets at once, including files in nested folders, by browsing or dragging and dropping them into the library[^5].
128
+ - Sort or filter assets by name or file type.
129
+ - View asset details, including size, dimensions, and a list of entries that use the selected asset.
130
+ - Preview audio, video, text and PDF files. Check your site’s [CSP](#set-up-content-security-policy) if the preview doesn’t work.
125
131
  - Assets stored in an entry-relative media folder are automatically deleted when the associated entry is deleted because these assets are not available for other entries[^22].
126
132
 
127
133
  ## Compatibility
@@ -159,7 +165,6 @@ While it’s not our goal to recreate all the features found in Netlify/Decap CM
159
165
 
160
166
  - Comprehensive config validation is not implemented yet.
161
167
  - Auto-saving a draft entry is not implemented yet.
162
- - Downloading an asset and copying the file path of an asset in the media library is not implemented yet.
163
168
  - [Backend health check](https://www.githubstatus.com/api) is not implemented yet.
164
169
 
165
170
  ## Roadmap
@@ -357,6 +362,8 @@ If your site adopts Content Security Policy (CSP), use the following policy for
357
362
  style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
358
363
  font-src 'self' https://fonts.gstatic.com;
359
364
  img-src 'self' blob: data:;
365
+ media-src blob:;
366
+ frame-src blob:;
360
367
  script-src 'self' https://unpkg.com;
361
368
  connect-src 'self' blob: data:;
362
369
  ```
@@ -447,7 +454,7 @@ This software is provided “as is” without any express or implied warranty. W
447
454
  [^8]: Netlify/Decap CMS [#2579](https://github.com/decaporg/decap-cms/issues/2579)
448
455
  [^9]: Netlify/Decap CMS [#3505](https://github.com/decaporg/decap-cms/issues/3505)
449
456
  [^10]: Netlify/Decap CMS [#341](https://github.com/decaporg/decap-cms/issues/341), [#1167](https://github.com/decaporg/decap-cms/issues/1167)
450
- [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#1424](https://github.com/decaporg/decap-cms/issues/1424), [#2370](https://github.com/decaporg/decap-cms/issues/2370), [#5596](https://github.com/decaporg/decap-cms/issues/5596), [#5752](https://github.com/decaporg/decap-cms/issues/5752), [#6994](https://github.com/decaporg/decap-cms/issues/6994) and more. We’ll be updating this list after reviewing their issue list.
457
+ [^11]: Netlify/Decap CMS [#1382](https://github.com/decaporg/decap-cms/issues/1382), [#1424](https://github.com/decaporg/decap-cms/issues/1424), [#2370](https://github.com/decaporg/decap-cms/issues/2370), [#5569](https://github.com/decaporg/decap-cms/issues/5569), [#5596](https://github.com/decaporg/decap-cms/issues/5596), [#5752](https://github.com/decaporg/decap-cms/issues/5752), [#6994](https://github.com/decaporg/decap-cms/issues/6994) and more. We’ll be updating this list after reviewing their issue list.
451
458
  [^12]: Netlify/Decap CMS [#1975](https://github.com/decaporg/decap-cms/issues/1975)
452
459
  [^13]: Netlify/Decap CMS [#5112](https://github.com/decaporg/decap-cms/issues/5112), [#5653](https://github.com/decaporg/decap-cms/issues/5653)
453
460
  [^14]: Netlify/Decap CMS [#4635](https://github.com/decaporg/decap-cms/issues/4635), [#4738](https://github.com/decaporg/decap-cms/issues/4738), [#5920](https://github.com/decaporg/decap-cms/issues/5920), [#6410](https://github.com/decaporg/decap-cms/issues/6410)
@@ -473,3 +480,4 @@ This software is provided “as is” without any express or implied warranty. W
473
480
  [^34]: Netlify/Decap CMS [#2138](https://github.com/decaporg/decap-cms/issues/2138)
474
481
  [^35]: Netlify/Decap CMS [#7086](https://github.com/decaporg/decap-cms/issues/7086)
475
482
  [^36]: Netlify/Decap CMS [#6325](https://github.com/decaporg/decap-cms/issues/6325)
483
+ [^37]: Netlify/Decap CMS [#1481](https://github.com/decaporg/decap-cms/issues/1481)