sanity-plugin-mux-input 3.0.4 → 4.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/README.md +0 -2
- package/dist/index.d.ts +134 -193
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2893 -4417
- package/dist/index.js.map +1 -1
- package/package.json +33 -43
- package/dist/index.cjs +0 -7270
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -347
- package/sanity.json +0 -8
- package/src/_exports/index.ts +0 -73
- package/src/actions/assets.ts +0 -152
- package/src/actions/secrets.ts +0 -111
- package/src/actions/upload.ts +0 -310
- package/src/clients/upChunkObservable.ts +0 -54
- package/src/components/AddCaptionDialog.tsx +0 -440
- package/src/components/CaptionsDialog.tsx +0 -23
- package/src/components/ConfigureApi.styled.tsx +0 -19
- package/src/components/ConfigureApi.tsx +0 -296
- package/src/components/DraggableWatermark.tsx +0 -877
- package/src/components/EditCaptionDialog.tsx +0 -510
- package/src/components/EditThumbnailDialog.tsx +0 -122
- package/src/components/ErrorBoundaryCard.tsx +0 -96
- package/src/components/FileInputButton.tsx +0 -54
- package/src/components/FileInputMenuItem.styled.tsx +0 -36
- package/src/components/FileInputMenuItem.tsx +0 -85
- package/src/components/FormField.tsx +0 -38
- package/src/components/IconInfo.tsx +0 -22
- package/src/components/ImportVideosFromMux.tsx +0 -342
- package/src/components/Input.styled.tsx +0 -22
- package/src/components/Input.tsx +0 -78
- package/src/components/InputBrowser.tsx +0 -41
- package/src/components/InputError.tsx +0 -17
- package/src/components/MuxLogo.tsx +0 -42
- package/src/components/Onboard.tsx +0 -65
- package/src/components/PageSelector.tsx +0 -54
- package/src/components/Player.styled.tsx +0 -55
- package/src/components/Player.tsx +0 -117
- package/src/components/PlayerActionsMenu.tsx +0 -190
- package/src/components/ResyncMetadata.tsx +0 -280
- package/src/components/SelectAsset.tsx +0 -39
- package/src/components/SelectSortOptions.tsx +0 -45
- package/src/components/SpinnerBox.tsx +0 -16
- package/src/components/StudioTool.tsx +0 -24
- package/src/components/TextTracksEditor.tsx +0 -117
- package/src/components/TextTracksManager.tsx +0 -737
- package/src/components/UploadConfiguration.tsx +0 -694
- package/src/components/UploadPlaceholder.tsx +0 -88
- package/src/components/UploadProgress.tsx +0 -80
- package/src/components/Uploader.styled.tsx +0 -66
- package/src/components/Uploader.tsx +0 -498
- package/src/components/VideoDetails/DeleteDialog.tsx +0 -147
- package/src/components/VideoDetails/VideoDetails.tsx +0 -358
- package/src/components/VideoDetails/VideoReferences.tsx +0 -63
- package/src/components/VideoDetails/useVideoDetails.ts +0 -103
- package/src/components/VideoInBrowser.tsx +0 -245
- package/src/components/VideoMetadata.tsx +0 -45
- package/src/components/VideoPlayer.tsx +0 -235
- package/src/components/VideoThumbnail.tsx +0 -138
- package/src/components/VideosBrowser.tsx +0 -100
- package/src/components/documentPreview/DocumentPreview.tsx +0 -83
- package/src/components/documentPreview/DraftStatus.tsx +0 -34
- package/src/components/documentPreview/MissingSchemaType.tsx +0 -32
- package/src/components/documentPreview/PaneItemPreview.tsx +0 -74
- package/src/components/documentPreview/PublishedStatus.tsx +0 -35
- package/src/components/documentPreview/TimeAgo.tsx +0 -12
- package/src/components/documentPreview/paneItemTypes.ts +0 -7
- package/src/components/icons/Audio.tsx +0 -13
- package/src/components/icons/Resolution.tsx +0 -12
- package/src/components/icons/StopWatch.tsx +0 -20
- package/src/components/icons/ToolIcon.tsx +0 -19
- package/src/components/uploadConfiguration/PlaybackPolicy.tsx +0 -133
- package/src/components/uploadConfiguration/PlaybackPolicyOption.tsx +0 -76
- package/src/components/uploadConfiguration/PlaybackPolicyWarning.tsx +0 -29
- package/src/components/uploadConfiguration/ResolutionTierSelector.tsx +0 -72
- package/src/components/uploadConfiguration/StaticRenditionSelector.tsx +0 -180
- package/src/components/withFocusRing/helpers.ts +0 -24
- package/src/components/withFocusRing/index.ts +0 -1
- package/src/components/withFocusRing/withFocusRing.ts +0 -30
- package/src/context/DialogStateContext.tsx +0 -36
- package/src/context/DrmPlaybackWarningContext.tsx +0 -93
- package/src/hooks/useAccessControl.ts +0 -13
- package/src/hooks/useAssetDocumentValues.ts +0 -11
- package/src/hooks/useAssets.ts +0 -68
- package/src/hooks/useCancelUpload.ts +0 -22
- package/src/hooks/useClient.ts +0 -8
- package/src/hooks/useDialogState.ts +0 -11
- package/src/hooks/useDocReferences.ts +0 -21
- package/src/hooks/useFetchFileSize.ts +0 -54
- package/src/hooks/useImportMuxAssets.ts +0 -132
- package/src/hooks/useInView.ts +0 -42
- package/src/hooks/useMediaMetadata.ts +0 -103
- package/src/hooks/useMuxAssets.ts +0 -179
- package/src/hooks/useMuxPolling.ts +0 -49
- package/src/hooks/useResyncAsset.ts +0 -110
- package/src/hooks/useResyncMuxMetadata.ts +0 -176
- package/src/hooks/useSaveSecrets.ts +0 -78
- package/src/hooks/useSecretsDocumentValues.ts +0 -38
- package/src/hooks/useSecretsFormState.ts +0 -47
- package/src/plugin.tsx +0 -31
- package/src/sanity-ui.d.ts +0 -5
- package/src/schema.ts +0 -196
- package/src/util/addKeysToMuxData.ts +0 -30
- package/src/util/areSecretsSignable.ts +0 -5
- package/src/util/asserters.ts +0 -36
- package/src/util/assetTitlePlaceholder.ts +0 -31
- package/src/util/constants.ts +0 -15
- package/src/util/convertWatermarkToMux.ts +0 -160
- package/src/util/createSearchFilter.ts +0 -76
- package/src/util/createUrlParamsObject.ts +0 -29
- package/src/util/extractFiles.ts +0 -67
- package/src/util/formatBytes.ts +0 -32
- package/src/util/formatDriveShareLink.ts +0 -64
- package/src/util/formatSeconds.ts +0 -49
- package/src/util/generateJwt.ts +0 -57
- package/src/util/getAnimatedPosterSrc.ts +0 -26
- package/src/util/getPlaybackPolicy.ts +0 -69
- package/src/util/getPosterSrc.ts +0 -28
- package/src/util/getStoryboardSrc.ts +0 -27
- package/src/util/getVideoMetadata.ts +0 -23
- package/src/util/getVideoSrc.ts +0 -23
- package/src/util/isSigned.ts +0 -20
- package/src/util/parsers.ts +0 -5
- package/src/util/pluginVersion.ts +0 -1
- package/src/util/readSecrets.ts +0 -38
- package/src/util/roundPxString.ts +0 -16
- package/src/util/textTracks.ts +0 -222
- package/src/util/tryWithSuspend.ts +0 -22
- package/src/util/types.ts +0 -596
- package/v2-incompatible.js +0 -11
package/package.json
CHANGED
|
@@ -1,63 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sanity-plugin-mux-input",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "An input component that integrates Sanity Studio with Mux video encoding/hosting service.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"sanity",
|
|
7
|
-
"video",
|
|
8
|
-
"mux",
|
|
9
6
|
"input",
|
|
7
|
+
"media",
|
|
8
|
+
"mux",
|
|
10
9
|
"plugin",
|
|
10
|
+
"sanity",
|
|
11
11
|
"sanity-plugin",
|
|
12
|
-
"
|
|
12
|
+
"video"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://github.com/sanity-io/plugins/tree/main/plugins/sanity-plugin-mux-input#readme",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/sanity-io/plugins/issues"
|
|
17
17
|
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Sanity.io <hello@sanity.io>",
|
|
18
20
|
"repository": {
|
|
19
21
|
"type": "git",
|
|
20
22
|
"url": "git+ssh://git@github.com/sanity-io/plugins.git",
|
|
21
23
|
"directory": "plugins/sanity-plugin-mux-input"
|
|
22
24
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
26
28
|
"type": "module",
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
27
31
|
"exports": {
|
|
28
|
-
".":
|
|
29
|
-
"source": "./src/_exports/index.ts",
|
|
30
|
-
"import": "./dist/index.js",
|
|
31
|
-
"require": "./dist/index.cjs",
|
|
32
|
-
"default": "./dist/index.js"
|
|
33
|
-
},
|
|
32
|
+
".": "./dist/index.js",
|
|
34
33
|
"./package.json": "./package.json"
|
|
35
34
|
},
|
|
36
|
-
"main": "./dist/index.cjs",
|
|
37
|
-
"types": "./dist/index.d.ts",
|
|
38
|
-
"files": [
|
|
39
|
-
"src",
|
|
40
|
-
"dist",
|
|
41
|
-
"sanity.json",
|
|
42
|
-
"v2-incompatible.js"
|
|
43
|
-
],
|
|
44
35
|
"dependencies": {
|
|
45
|
-
"@mux/mux-player": "^3.
|
|
46
|
-
"@mux/mux-player-react": "^3.
|
|
47
|
-
"@mux/upchunk": "^3.
|
|
36
|
+
"@mux/mux-player": "^3.13.0",
|
|
37
|
+
"@mux/mux-player-react": "^3.13.0",
|
|
38
|
+
"@mux/upchunk": "^3.5.0",
|
|
48
39
|
"@sanity/icons": "^3.7.4",
|
|
49
|
-
"@sanity/incompatible-plugin": "^1.0.4",
|
|
50
40
|
"@sanity/ui": "^3.2.0",
|
|
51
|
-
"@sanity/uuid": "^3.0.
|
|
52
|
-
"iso-639-1": "^3.1.
|
|
41
|
+
"@sanity/uuid": "^3.0.3",
|
|
42
|
+
"iso-639-1": "^3.1.5",
|
|
53
43
|
"jsonwebtoken-esm": "^1.0.5",
|
|
54
44
|
"lodash": "^4.17.21",
|
|
55
45
|
"react-rx": "^4.2.2",
|
|
56
46
|
"rxjs": "^7.8.2",
|
|
57
47
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
58
48
|
"suspend-react": "^0.1.3",
|
|
59
|
-
"swr": "^2.
|
|
60
|
-
"type-fest": "^4.
|
|
49
|
+
"swr": "^2.4.1",
|
|
50
|
+
"type-fest": "^4.41.0",
|
|
61
51
|
"use-device-pixel-ratio": "^1.1.2",
|
|
62
52
|
"use-error-boundary": "^2.0.6"
|
|
63
53
|
},
|
|
@@ -66,32 +56,32 @@
|
|
|
66
56
|
"@sanity/pkg-utils": "^10.5.7",
|
|
67
57
|
"@types/lodash": "^4.17.24",
|
|
68
58
|
"@types/node": "^24.13.2",
|
|
69
|
-
"@types/react": "^19.
|
|
70
|
-
"@types/react-is": "^19.
|
|
71
|
-
"
|
|
72
|
-
"react
|
|
73
|
-
"react-
|
|
59
|
+
"@types/react": "^19.2.17",
|
|
60
|
+
"@types/react-is": "^19.2.0",
|
|
61
|
+
"babel-plugin-styled-components": "^2.3.0",
|
|
62
|
+
"react": "^19.2.7",
|
|
63
|
+
"react-dom": "^19.2.7",
|
|
64
|
+
"react-is": "^19.2.7",
|
|
74
65
|
"sanity": "^6.1.0",
|
|
75
|
-
"styled-components": "^6.
|
|
66
|
+
"styled-components": "^6.4.2",
|
|
76
67
|
"typescript": "5.9.3",
|
|
77
|
-
"@
|
|
68
|
+
"@repo/package.config": "0.0.0",
|
|
69
|
+
"@repo/tsconfig": "0.0.0",
|
|
70
|
+
"@sanity/plugin-kit": "6.0.0"
|
|
78
71
|
},
|
|
79
72
|
"peerDependencies": {
|
|
80
73
|
"react": "^18.3 || ^19",
|
|
81
74
|
"react-is": "^18.3 || ^19",
|
|
82
|
-
"sanity": "^
|
|
75
|
+
"sanity": "^5 || ^6.0.0-0",
|
|
83
76
|
"styled-components": "^5 || ^6"
|
|
84
77
|
},
|
|
85
78
|
"engines": {
|
|
86
79
|
"node": ">=20.19 <22 || >=22.12"
|
|
87
80
|
},
|
|
88
|
-
"publishConfig": {
|
|
89
|
-
"access": "public"
|
|
90
|
-
},
|
|
91
|
-
"sanityExchangeUrl": "https://www.sanity.io/plugins/sanity-plugin-mux-input",
|
|
92
|
-
"browserslist": "extends @sanity/browserslist-config",
|
|
93
81
|
"sanityPlugin": {
|
|
94
82
|
"verifyPackage": {
|
|
83
|
+
"tsc": false,
|
|
84
|
+
"tsconfig": false,
|
|
95
85
|
"srcIndex": false,
|
|
96
86
|
"scripts": false,
|
|
97
87
|
"eslintImports": false
|