sanity-plugin-r2-video 0.1.5 → 0.1.6

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.
@@ -1708,17 +1708,11 @@ var FolderSidebar = ({
1708
1708
  var QUERY_ASSETS = `*[_type == "r2Video.asset"] | order(uploadedAt desc){
1709
1709
  _id,
1710
1710
  _type,
1711
-
1712
- // Both are absent on a document the pipeline never finished, and every
1713
- // consumer of this query treats them as present
1714
1711
  "filename": coalesce(filename, ""),
1715
1712
  folder,
1716
1713
  poster,
1717
- duration,
1718
- hasAudio,
1719
-
1720
- // A document the pipeline never finished - Sanity's own create button made
1721
- // these before the reference field disabled it - has no renditions at all
1714
+ "duration": coalesce(duration, 0),
1715
+ "hasAudio": coalesce(hasAudio, false),
1722
1716
  "renditions": coalesce(renditions, []),
1723
1717
  uploadedAt,
1724
1718
  "posterUrl": poster.asset->url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-r2-video",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Video for Sanity Studio, encoded in the browser and stored in Cloudflare R2 as a ladder of plain MP4s.",
5
5
  "keywords": [
6
6
  "sanity",