sanity-plugin-mux-input 2.5.0 → 2.7.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 +2 -0
- package/dist/index.js +156 -630
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +159 -633
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/actions/secrets.ts +19 -9
- package/src/components/ConfigureApi.tsx +2 -0
- package/src/components/MuxLogo.tsx +26 -447
- package/src/components/UploadConfiguration.tsx +29 -26
- package/src/components/VideoDetails/useVideoDetails.ts +5 -5
- package/src/components/VideoThumbnail.tsx +6 -7
- package/src/components/uploadConfiguration/PlaybackPolicy.tsx +44 -0
- package/src/components/uploadConfiguration/PlaybackPolicyOption.tsx +60 -0
- package/src/components/uploadConfiguration/PlaybackPolicyWarning.tsx +29 -0
- package/src/hooks/useAssets.ts +26 -29
- package/src/hooks/useInView.ts +6 -9
- package/src/util/types.ts +3 -2
package/README.md
CHANGED
|
@@ -188,6 +188,8 @@ export default function MuxVideo({playbackId, title}: {playbackId?: string; titl
|
|
|
188
188
|
|
|
189
189
|
To enable [signed URLs](https://docs.mux.com/docs/security-signed-urls) with content uploaded to Mux, you will need to check the "Enable Signed Urls" option in the Mux Plugin configuration. This feature requires you to set the API Access Token and Secret Key (as per the [Quick start](#quick-start) section).
|
|
190
190
|
|
|
191
|
+
⚠️ **Important:** To use Signed URLs, the API Access Token must have **System permissions**. Without these permissions, the signing key cannot be created, and authentication will fail.
|
|
192
|
+
|
|
191
193
|
📌 **Note**: When the signed URL option is triggered, the plugin will cache a `signingKeyPrivate` in a private document in the dataset. This key is used by Mux to sign the uploads, and if it's incorrect your uploads will fail. If that's the case, you can delete the secrets document and try again:
|
|
192
194
|
|
|
193
195
|
```bash
|