sanity-plugin-mux-input 2.19.1 → 3.0.1

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.1",
3
+ "version": "3.0.1",
4
4
  "description": "An input component that integrates Sanity Studio with Mux video encoding/hosting service.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -11,13 +11,14 @@
11
11
  "sanity-plugin",
12
12
  "media"
13
13
  ],
14
- "homepage": "https://github.com/sanity-io/sanity-plugin-mux-input#readme",
14
+ "homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/sanity-plugin-mux-input#readme",
15
15
  "bugs": {
16
- "url": "https://github.com/sanity-io/sanity-plugin-mux-input/issues"
16
+ "url": "https://github.com/sanity-io/plugins/issues"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git@github.com:sanity-io/sanity-plugin-mux-input.git"
20
+ "url": "git+ssh://git@github.com/sanity-io/plugins.git",
21
+ "directory": "plugins/sanity-plugin-mux-input"
21
22
  },
22
23
  "license": "MIT",
23
24
  "author": "Sanity.io <hello@sanity.io>",
@@ -39,24 +40,13 @@
39
40
  "sanity.json",
40
41
  "v2-incompatible.js"
41
42
  ],
42
- "scripts": {
43
- "build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
44
- "dev": "sanity dev",
45
- "format": "prettier --write --cache --ignore-unknown .",
46
- "link-watch": "plugin-kit link-watch",
47
- "lint": "eslint .",
48
- "prepare": "husky install || true",
49
- "prepublishOnly": "npm run build",
50
- "test": "npm run lint && npm run type-check && npm run build",
51
- "type-check": "tsc --noEmit",
52
- "watch": "pkg-utils watch --strict"
53
- },
54
43
  "dependencies": {
44
+ "@mux/mux-player": "^3.8.0",
55
45
  "@mux/mux-player-react": "^3.8.0",
56
46
  "@mux/upchunk": "^3.4.0",
57
47
  "@sanity/icons": "^3.0.0",
58
48
  "@sanity/incompatible-plugin": "^1.0.4",
59
- "@sanity/ui": "^2.1.11",
49
+ "@sanity/ui": "^3.2.0",
60
50
  "@sanity/uuid": "^3.0.2",
61
51
  "iso-639-1": "^3.1.2",
62
52
  "jsonwebtoken-esm": "^1.0.5",
@@ -67,44 +57,28 @@
67
57
  "suspend-react": "^0.1.3",
68
58
  "swr": "^2.2.5",
69
59
  "type-fest": "^4.18.2",
60
+ "use-device-pixel-ratio": "^1.1.2",
70
61
  "use-error-boundary": "^2.0.6"
71
62
  },
72
63
  "devDependencies": {
73
64
  "@sanity/client": "^7.12.1",
74
65
  "@sanity/pkg-utils": "^8.1.29",
75
66
  "@sanity/plugin-kit": "^4.0.20",
76
- "@sanity/semantic-release-preset": "^5.0.0",
77
- "@sanity/vision": "^3.99.0",
78
67
  "@types/lodash": "^4.17.15",
68
+ "@types/node": "^24.13.2",
79
69
  "@types/react": "^19.0.10",
80
70
  "@types/react-is": "^19.0.0",
81
- "@typescript-eslint/eslint-plugin": "^7.18.0",
82
- "@typescript-eslint/parser": "^7.18.0",
83
- "eslint": "^8.57.1",
84
- "eslint-config-prettier": "^9.1.0",
85
- "eslint-config-react-app": "^7.0.1",
86
- "eslint-config-sanity": "^7.1.4",
87
- "eslint-plugin-import": "^2.31.0",
88
- "eslint-plugin-prettier": "^5.2.3",
89
- "eslint-plugin-react-hooks": "^5.1.0",
90
- "eslint-plugin-simple-import-sort": "^12.1.1",
91
- "husky": "^9.0.11",
92
- "lint-staged": "^15.2.2",
93
- "npm-run-all2": "^6.2.6",
94
- "prettier": "^3.5.2",
95
- "prettier-plugin-packagejson": "^2.5.9",
96
71
  "react": "^19.0.0",
97
72
  "react-dom": "^19.0.0",
98
73
  "react-is": "^19.0.0",
99
- "sanity": "^3.99.0",
100
- "semantic-release": "^24.2.3",
74
+ "sanity": "^6.1.0",
101
75
  "styled-components": "^6.1.15",
102
76
  "typescript": "5.9.3"
103
77
  },
104
78
  "peerDependencies": {
105
79
  "react": "^18.3 || ^19",
106
80
  "react-is": "^18.3 || ^19",
107
- "sanity": "^3.42.0 || ^4.0.0-0 || ^5.0.0 || ^6.0.0",
81
+ "sanity": "^4.0.0 || ^5.0.0 || ^6.0.0",
108
82
  "styled-components": "^5 || ^6"
109
83
  },
110
84
  "engines": {
@@ -117,7 +91,12 @@
117
91
  "browserslist": "extends @sanity/browserslist-config",
118
92
  "sanityPlugin": {
119
93
  "verifyPackage": {
120
- "srcIndex": false
94
+ "srcIndex": false,
95
+ "scripts": false,
96
+ "eslintImports": false
121
97
  }
98
+ },
99
+ "scripts": {
100
+ "build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean"
122
101
  }
123
- }
102
+ }
@@ -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.*/