@sveltia/cms 0.45.2 → 0.45.3
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 +8 -6
- package/dist/sveltia-cms.js +136 -136
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +123 -123
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -122,7 +122,7 @@ We are working hard to create a **significantly better alternative to Netlify CM
|
|
|
122
122
|
### Better UX
|
|
123
123
|
|
|
124
124
|
- Created and maintained by an [experienced UX engineer](https://github.com/kyoshino) who loves code, design and marketing. You can expect constant improvements to the user experience (UX) and developer experience (DX) across the platform.
|
|
125
|
-
- The maintainer tries to be as responsive as possible
|
|
125
|
+
- The maintainer tries to be as responsive as possible, and while there are no guarantees, reported bugs are usually fixed within 24 hours.
|
|
126
126
|
- Offers a modern, intuitive user interface, including an immersive dark mode[^2], inspired in part by the Netlify CMS v3 prototype[^1].
|
|
127
127
|
- We develop [our own UI library](https://github.com/sveltia/sveltia-ui) to ensure optimal usability without compromising accessibility.
|
|
128
128
|
- Comes with touch device support, such as larger buttons for easier tapping. While the UI is not yet optimized for small screens, it should work well with large tablets like iPad Pro or Pixel Tablet. Mobile support and other optimizations such as swipe navigation are planned shortly after the 1.0 release.
|
|
@@ -278,9 +278,11 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
278
278
|
### Better data output
|
|
279
279
|
|
|
280
280
|
- Keys in generated JSON/TOML/YAML content are always sorted by the order of configured fields, making Git commits clean and consistent[^86].
|
|
281
|
-
-
|
|
282
|
-
-
|
|
281
|
+
- Netlify/Decap CMS often, but not always, omits optional and empty fields from the output. Sveltia CMS aims at complete and consistent data output — it always saves proper values, such as an empty string or an empty array, instead of nothing (`undefined`), regardless of the `required` option[^45][^46][^44].
|
|
282
|
+
- In other words, in Sveltia CMS, `required: false` makes data input optional, but doesn’t make data output optional.
|
|
283
|
+
- Note: If you have any data validation (type definition) that expects `undefined` values, you may need to revise it or the output from Sveitia CMS may break it.
|
|
283
284
|
- JSON/TOML/YAML data is saved with a new line at the end of the file to prevent unnecessary changes being made to the file[^11][^69].
|
|
285
|
+
- Leading and trailing spaces in text-type field values are automatically removed when you save an entry[^37].
|
|
284
286
|
- String values in YAML files can be quoted with the new `yaml_quote: true` option for a collection, mainly for framework compatibility[^9].
|
|
285
287
|
- YAML string folding (maximum line width) is disabled, mainly for framework compatibility[^119].
|
|
286
288
|
- DateTime field values in ISO 8601 format are stored in native date/time format instead of quoted strings when the data output is TOML[^147].
|
|
@@ -297,9 +299,9 @@ Sveltia CMS has been built with a multilingual architecture from the very beginn
|
|
|
297
299
|
- A DateTime field doesn’t trigger a change in the content draft status when you’ve just started editing a new entry[^90].
|
|
298
300
|
- Hidden
|
|
299
301
|
- The `default` value supports the following template tags:
|
|
300
|
-
- `{{locale}}`:
|
|
301
|
-
- `{{datetime}}
|
|
302
|
-
- `{{uuid}}`, `{{uuid_short}}` and `{{uuid_shorter}}`:
|
|
302
|
+
- `{{locale}}`: The current locale code[^101].
|
|
303
|
+
- `{{datetime}}`: The current date/time in [ISO 8601 format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format)[^102].
|
|
304
|
+
- `{{uuid}}`, `{{uuid_short}}` and `{{uuid_shorter}}`: A random UUID or its shorter version, just like the [slug template tags](#using-a-random-id-for-an-entry-slug)[^12].
|
|
303
305
|
- The `default` value is saved when you create a file collection item, not just a folder collection item[^78].
|
|
304
306
|
- List
|
|
305
307
|
- It’s possible to [edit data files with a top-level list](#editing-data-files-with-a-top-level-list) using the new `root` option[^148].
|