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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-mux-input",
3
- "version": "2.19.0",
3
+ "version": "3.0.0",
4
4
  "description": "An input component that integrates Sanity Studio with Mux video encoding/hosting service.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -56,7 +56,7 @@
56
56
  "@mux/upchunk": "^3.4.0",
57
57
  "@sanity/icons": "^3.0.0",
58
58
  "@sanity/incompatible-plugin": "^1.0.4",
59
- "@sanity/ui": "^2.1.11",
59
+ "@sanity/ui": "^3.2.0",
60
60
  "@sanity/uuid": "^3.0.2",
61
61
  "iso-639-1": "^3.1.2",
62
62
  "jsonwebtoken-esm": "^1.0.5",
@@ -74,7 +74,7 @@
74
74
  "@sanity/pkg-utils": "^8.1.29",
75
75
  "@sanity/plugin-kit": "^4.0.20",
76
76
  "@sanity/semantic-release-preset": "^5.0.0",
77
- "@sanity/vision": "^3.99.0",
77
+ "@sanity/vision": "^6.0.0",
78
78
  "@types/lodash": "^4.17.15",
79
79
  "@types/react": "^19.0.10",
80
80
  "@types/react-is": "^19.0.0",
@@ -96,7 +96,7 @@
96
96
  "react": "^19.0.0",
97
97
  "react-dom": "^19.0.0",
98
98
  "react-is": "^19.0.0",
99
- "sanity": "^3.99.0",
99
+ "sanity": "^6.0.0",
100
100
  "semantic-release": "^24.2.3",
101
101
  "styled-components": "^6.1.15",
102
102
  "typescript": "5.9.3"
@@ -104,7 +104,7 @@
104
104
  "peerDependencies": {
105
105
  "react": "^18.3 || ^19",
106
106
  "react-is": "^18.3 || ^19",
107
- "sanity": "^3.42.0 || ^4.0.0-0 || ^5.0.0",
107
+ "sanity": "^4.0.0 || ^5.0.0 || ^6.0.0",
108
108
  "styled-components": "^5 || ^6"
109
109
  },
110
110
  "engines": {
@@ -46,7 +46,7 @@ export default function TextTracksEditor({
46
46
  }) {
47
47
  const track = tracks[0]
48
48
  return (
49
- <FormField title="Auto-generated subtitle or caption">
49
+ <FormField title="Auto-generated subtitle or caption" path={[]}>
50
50
  <Stack space={2}>
51
51
  <Flex align="center">
52
52
  <Checkbox
@@ -349,6 +349,7 @@ export default function UploadConfiguration({
349
349
  {!disableUploadConfig && (
350
350
  <Stack space={3} paddingBottom={2}>
351
351
  <FormField
352
+ path={[]}
352
353
  title="Video Quality Level"
353
354
  description={
354
355
  <>
@@ -392,7 +393,7 @@ export default function UploadConfiguration({
392
393
 
393
394
  {!basicConfig && (
394
395
  <>
395
- <FormField title="Additional Configuration">
396
+ <FormField title="Additional Configuration" path={[]}>
396
397
  <Stack space={3}>
397
398
  <PlaybackPolicy id={id} config={config} secrets={secrets} dispatch={dispatch} />
398
399
  {maxSupportedResolution > 0 && (
@@ -567,6 +568,7 @@ function WatermarkSection({
567
568
  if (videoAssetMetadata?.isAudioOnly !== false) return null
568
569
  return (
569
570
  <FormField
571
+ path={[]}
570
572
  title="Watermark"
571
573
  description={
572
574
  <>
@@ -24,6 +24,7 @@ export const ResolutionTierSelector = ({
24
24
  }) => {
25
25
  return (
26
26
  <FormField
27
+ path={[]}
27
28
  title="Resolution Tier"
28
29
  description={
29
30
  <>
@@ -75,6 +75,7 @@ export const StaticRenditionSelector = ({
75
75
  return (
76
76
  <Stack space={3}>
77
77
  <FormField
78
+ path={[]}
78
79
  title="Static Renditions"
79
80
  description="Generate downloadable MP4 or M4A files. Note: Mux will not upscale to produce MP4 renditions - renditions that would cause upscaling are skipped."
80
81
  >
@@ -2,8 +2,10 @@ import {useReducer} from 'react'
2
2
 
3
3
  import type {Secrets} from '../util/types'
4
4
 
5
- export interface State
6
- extends Pick<Secrets, 'token' | 'secretKey' | 'enableSignedUrls' | 'drmConfigId'> {
5
+ export interface State extends Pick<
6
+ Secrets,
7
+ 'token' | 'secretKey' | 'enableSignedUrls' | 'drmConfigId'
8
+ > {
7
9
  submitting: boolean
8
10
  error: string | null
9
11
  }
package/src/util/types.ts CHANGED
@@ -313,8 +313,10 @@ export interface MuxOverlaySettings {
313
313
  opacity?: string // percentage string (e.g., "90%")
314
314
  }
315
315
 
316
- export interface UploadConfig
317
- extends Pick<MuxInputConfig, 'max_resolution_tier' | 'normalize_audio' | 'video_quality'> {
316
+ export interface UploadConfig extends Pick<
317
+ MuxInputConfig,
318
+ 'max_resolution_tier' | 'normalize_audio' | 'video_quality'
319
+ > {
318
320
  static_renditions: StaticRenditionResolution[]
319
321
  text_tracks: UploadTextTrack[]
320
322
  signed_policy: boolean
@@ -327,8 +329,10 @@ export interface UploadConfig
327
329
  * Data sent to Mux to create a new asset.
328
330
  * @docs {@link https://docs.mux.com/api-reference#video/operation/create-direct-upload}
329
331
  */
330
- export interface MuxNewAssetSettings
331
- extends Pick<MuxInputConfig, 'max_resolution_tier' | 'normalize_audio' | 'video_quality'> {
332
+ export interface MuxNewAssetSettings extends Pick<
333
+ MuxInputConfig,
334
+ 'max_resolution_tier' | 'normalize_audio' | 'video_quality'
335
+ > {
332
336
  /** Static renditions configuration for downloadable files */
333
337
  static_renditions?: {resolution: StaticRenditionResolution}[]
334
338
  /** An array of objects that each describe an input file to be used to create the asset.*/