sanity-plugin-mux-input 2.19.0 → 3.0.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/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/components/TextTracksEditor.tsx +1 -1
- package/src/components/UploadConfiguration.tsx +3 -1
- package/src/components/uploadConfiguration/ResolutionTierSelector.tsx +1 -0
- package/src/components/uploadConfiguration/StaticRenditionSelector.tsx +1 -0
- package/src/hooks/useSecretsFormState.ts +4 -2
- package/src/util/types.ts +8 -4
package/dist/index.js
CHANGED
|
@@ -147,7 +147,7 @@ function useAssets() {
|
|
|
147
147
|
function useDialogState() {
|
|
148
148
|
return React.useState(!1);
|
|
149
149
|
}
|
|
150
|
-
const PLUGIN_VERSION_QUERY = { sanityVersion: "
|
|
150
|
+
const PLUGIN_VERSION_QUERY = { sanityVersion: "3.0.0" };
|
|
151
151
|
function saveSecrets(client, token, secretKey, enableSignedUrls, signingKeyId, signingKeyPrivate, drmConfigId) {
|
|
152
152
|
const doc = {
|
|
153
153
|
_id: "secrets.mux",
|
|
@@ -3173,7 +3173,7 @@ function VideoPlayer({
|
|
|
3173
3173
|
crossOrigin: "anonymous",
|
|
3174
3174
|
metadata: {
|
|
3175
3175
|
player_name: "Sanity Admin Dashboard",
|
|
3176
|
-
player_version: "
|
|
3176
|
+
player_version: "3.0.0",
|
|
3177
3177
|
page_type: "Preview Player"
|
|
3178
3178
|
},
|
|
3179
3179
|
audio: isAudio,
|
|
@@ -5691,7 +5691,7 @@ function TextTracksEditor({
|
|
|
5691
5691
|
defaultLang
|
|
5692
5692
|
}) {
|
|
5693
5693
|
const track = tracks[0];
|
|
5694
|
-
return /* @__PURE__ */ jsxRuntime.jsx(sanity.FormField, { title: "Auto-generated subtitle or caption", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 2, children: [
|
|
5694
|
+
return /* @__PURE__ */ jsxRuntime.jsx(sanity.FormField, { title: "Auto-generated subtitle or caption", path: [], children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 2, children: [
|
|
5695
5695
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { align: "center", children: [
|
|
5696
5696
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5697
5697
|
ui.Checkbox,
|
|
@@ -5934,6 +5934,7 @@ const RESOLUTION_TIERS = [
|
|
|
5934
5934
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5935
5935
|
sanity.FormField,
|
|
5936
5936
|
{
|
|
5937
|
+
path: [],
|
|
5937
5938
|
title: "Resolution Tier",
|
|
5938
5939
|
description: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5939
5940
|
"The maximum",
|
|
@@ -6009,6 +6010,7 @@ const RESOLUTION_TIERS = [
|
|
|
6009
6010
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { space: 3, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6010
6011
|
sanity.FormField,
|
|
6011
6012
|
{
|
|
6013
|
+
path: [],
|
|
6012
6014
|
title: "Static Renditions",
|
|
6013
6015
|
description: "Generate downloadable MP4 or M4A files. Note: Mux will not upscale to produce MP4 renditions - renditions that would cause upscaling are skipped.",
|
|
6014
6016
|
children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 3, children: [
|
|
@@ -6277,6 +6279,7 @@ function UploadConfiguration({
|
|
|
6277
6279
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6278
6280
|
sanity.FormField,
|
|
6279
6281
|
{
|
|
6282
|
+
path: [],
|
|
6280
6283
|
title: "Video Quality Level",
|
|
6281
6284
|
description: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6282
6285
|
"The video quality level informs the cost, quality, and available platform features for the asset.",
|
|
@@ -6313,7 +6316,7 @@ function UploadConfiguration({
|
|
|
6313
6316
|
}
|
|
6314
6317
|
),
|
|
6315
6318
|
!basicConfig && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6316
|
-
/* @__PURE__ */ jsxRuntime.jsx(sanity.FormField, { title: "Additional Configuration", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 3, children: [
|
|
6319
|
+
/* @__PURE__ */ jsxRuntime.jsx(sanity.FormField, { title: "Additional Configuration", path: [], children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { space: 3, children: [
|
|
6317
6320
|
/* @__PURE__ */ jsxRuntime.jsx(PlaybackPolicy, { id, config, secrets, dispatch }),
|
|
6318
6321
|
maxSupportedResolution > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6319
6322
|
ResolutionTierSelector,
|
|
@@ -6431,6 +6434,7 @@ function WatermarkSection({
|
|
|
6431
6434
|
return videoAssetMetadata?.isAudioOnly !== !1 ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6432
6435
|
sanity.FormField,
|
|
6433
6436
|
{
|
|
6437
|
+
path: [],
|
|
6434
6438
|
title: "Watermark",
|
|
6435
6439
|
description: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6436
6440
|
"Add a watermark overlay to your video using Mux's native watermark support.",
|