github sveltia/sveltia-cms v0.226.0

latest releases: v0.266.0, v0.265.2, v0.265.1...
one month ago
  • A custom field type that stores an object or array value now keeps the value in place when an entry is saved, with the properties in the order the control gave them. Previously, the value was moved to the end of the data and its properties were sorted alphabetically. As a result, the first save of an existing entry with such a field may reorder these lines in the file.
  • Custom field type controls now receive the getAsset prop, just like previews, so a control can display a file stored in its value. This is also available in Netlify/Decap CMS, though undocumented.
  • The getAsset function given to custom preview templates and custom field types now:
    • Accepts the temporary blob: URL a field holds for a file that hasn’t been saved yet, so a newly uploaded image appears in the preview before the entry is saved.
    • Causes the component to render again once the file has been retrieved, so the url property points to the file instead of its public path.
  • Bug fixes and improvements.

Full Changelog: v0.225.0...v0.226.0

Don't miss a new sveltia-cms release

NewReleases is sending notifications on new releases.