sanity-plugin-mux-input 5.0.2 → 5.0.4
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -370,7 +370,7 @@ function _temp$8(collated) {
|
|
|
370
370
|
function useDialogState() {
|
|
371
371
|
return useState(!1);
|
|
372
372
|
}
|
|
373
|
-
const PLUGIN_VERSION_QUERY = { sanityVersion: "5.0.
|
|
373
|
+
const PLUGIN_VERSION_QUERY = { sanityVersion: "5.0.4" };
|
|
374
374
|
function saveSecrets(client, token, secretKey, enableSignedUrls, signingKeyId, signingKeyPrivate, drmConfigId) {
|
|
375
375
|
let doc = {
|
|
376
376
|
_id: "secrets.mux",
|
|
@@ -4250,7 +4250,7 @@ function VideoPlayer({ asset, thumbnailWidth = 250, children, hlsConfig, ...prop
|
|
|
4250
4250
|
crossOrigin: "anonymous",
|
|
4251
4251
|
metadata: {
|
|
4252
4252
|
player_name: "Sanity Admin Dashboard",
|
|
4253
|
-
player_version: "5.0.
|
|
4253
|
+
player_version: "5.0.4",
|
|
4254
4254
|
page_type: "Preview Player"
|
|
4255
4255
|
},
|
|
4256
4256
|
audio: isAudio,
|
|
@@ -6135,7 +6135,7 @@ const useCancelUpload = (asset, onChange) => {
|
|
|
6135
6135
|
})
|
|
6136
6136
|
}), $[15] = t10, $[16] = t9, $[17] = t11) : t11 = $[17], t11;
|
|
6137
6137
|
}, Player = ({ asset, buttons, readOnly, onChange, config }) => {
|
|
6138
|
-
let isLoading = useMemo(() => asset?.status === "preparing" ? "Preparing the video" : asset?.status === "waiting_for_upload" ? "Waiting for upload to start" : asset?.status === "waiting" ? "Processing upload" :
|
|
6138
|
+
let isLoading = useMemo(() => asset?.status === "preparing" ? "Preparing the video" : asset?.status === "waiting_for_upload" ? "Waiting for upload to start" : asset?.status === "waiting" ? "Processing upload" : asset?.status !== "ready" && asset?.status !== void 0, [asset]), isPreparingStaticRenditions = useMemo(() => {
|
|
6139
6139
|
if (asset?.data?.static_renditions?.status && asset?.data?.static_renditions?.status !== "disabled") return !1;
|
|
6140
6140
|
let files = asset?.data?.static_renditions?.files;
|
|
6141
6141
|
return !files || files.length === 0 ? !1 : files.some((file) => file.status === "preparing");
|