Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mux/mux-video

Package Overview
Dependencies
Maintainers
1
Versions
589
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mux/mux-video - npm Package Compare versions

Comparing version 0.24.0 to 0.24.1-canary.0

2

dist/react.cjs.js

@@ -1,2 +0,2 @@

"use strict";"use client";var W=Object.create;var y=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var $=(t,n)=>{for(var o in n)y(t,o,{get:n[o],enumerable:!0})},M=(t,n,o,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of j(n))!Z.call(t,c)&&c!==o&&y(t,c,{get:()=>n[c],enumerable:!(s=x(n,c))||s.enumerable});return t};var A=(t,n,o)=>(o=t!=null?W(F(t)):{},M(n||!t||!t.__esModule?y(o,"default",{value:t,enumerable:!0}):o,t)),q=t=>M(y({},"__esModule",{value:!0}),t);var Q={};$(Q,{default:()=>J});module.exports=q(Q);var I=A(require(".")),N=A(require("react"));var z=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),B={className:"class",htmlFor:"for"};function D(t){return t.toLowerCase()}function G(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function H({react:t,tagName:n,elementClass:o,events:s,displayName:c,toAttributeName:S=D,toAttributeValue:O=G}){let m=Number.parseInt(t.version)>=19,w=t.forwardRef((R,p)=>{var h,E,v,L,P;let u=t.useRef(null),b=t.useRef(new Map),g={},T={},a={},l={};for(let[e,r]of Object.entries(R)){if(z.has(e)){a[e]=r;continue}let i=S((h=B[e])!=null?h:e);if(e in o.prototype&&!(e in((v=(E=globalThis.HTMLElement)==null?void 0:E.prototype)!=null?v:{}))&&!((L=o.observedAttributes)!=null&&L.some(d=>d===i))){l[e]=r;continue}if(e.startsWith("on")){g[e]=r;continue}let f=O(r);i&&f!=null&&(T[i]=String(f),m||(a[i]=f)),i&&m&&(a[i]=r)}if(typeof window!="undefined"){for(let e in g){let r=g[e],i=e.endsWith("Capture"),f=((P=s==null?void 0:s[e])!=null?P:e.slice(2).toLowerCase()).slice(0,i?-7:void 0);t.useLayoutEffect(()=>{let d=u==null?void 0:u.current;if(!(!d||typeof r!="function"))return d.addEventListener(f,r,i),()=>{d.removeEventListener(f,r,i)}},[u==null?void 0:u.current,r])}t.useLayoutEffect(()=>{if(u.current===null)return;let e=new Map;for(let r in l)k(u.current,r,l[r]),b.current.delete(r),e.set(r,l[r]);for(let[r,i]of b.current)k(u.current,r,void 0);b.current=e})}if(typeof window=="undefined"&&(o!=null&&o.getTemplateHTML)&&(o!=null&&o.shadowRootOptions)){let{mode:e,delegatesFocus:r}=o.shadowRootOptions,i=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(T)}});a.children=[i,a.children]}return t.createElement(n,{...a,ref:t.useCallback(e=>{u.current=e,typeof p=="function"?p(e):p!==null&&(p.current=e)},[p])})});return w.displayName=c!=null?c:o.name,w}function k(t,n,o){var s,c;t[n]=o,o==null&&n in((c=(s=globalThis.HTMLElement)==null?void 0:s.prototype)!=null?c:{})&&t.removeAttribute(n)}var J=H({react:N.default,tagName:"mux-video",elementClass:I.default,toAttributeName:K}),_={autoPlay:"autoplay",controlsList:"controlslist",crossOrigin:"crossorigin",playsInline:"playsinline",disablePictureInPicture:"disablepictureinpicture",disableRemotePlayback:"disableremoteplayback"};function K(t){return _[t]?_[t]:t.replace(/([A-Z])/g,"-$1").toLowerCase()}
"use strict";"use client";var W=Object.create;var y=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var $=(t,n)=>{for(var o in n)y(t,o,{get:n[o],enumerable:!0})},M=(t,n,o,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of j(n))!Z.call(t,c)&&c!==o&&y(t,c,{get:()=>n[c],enumerable:!(s=x(n,c))||s.enumerable});return t};var A=(t,n,o)=>(o=t!=null?W(F(t)):{},M(n||!t||!t.__esModule?y(o,"default",{value:t,enumerable:!0}):o,t)),q=t=>M(y({},"__esModule",{value:!0}),t);var Q={};$(Q,{default:()=>J});module.exports=q(Q);var I=A(require("@mux/mux-video")),N=A(require("react"));var z=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),B={className:"class",htmlFor:"for"};function D(t){return t.toLowerCase()}function G(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function H({react:t,tagName:n,elementClass:o,events:s,displayName:c,toAttributeName:S=D,toAttributeValue:O=G}){let m=Number.parseInt(t.version)>=19,w=t.forwardRef((R,p)=>{var h,E,v,L,P;let u=t.useRef(null),b=t.useRef(new Map),g={},T={},a={},l={};for(let[e,r]of Object.entries(R)){if(z.has(e)){a[e]=r;continue}let i=S((h=B[e])!=null?h:e);if(e in o.prototype&&!(e in((v=(E=globalThis.HTMLElement)==null?void 0:E.prototype)!=null?v:{}))&&!((L=o.observedAttributes)!=null&&L.some(d=>d===i))){l[e]=r;continue}if(e.startsWith("on")){g[e]=r;continue}let f=O(r);i&&f!=null&&(T[i]=String(f),m||(a[i]=f)),i&&m&&(a[i]=r)}if(typeof window!="undefined"){for(let e in g){let r=g[e],i=e.endsWith("Capture"),f=((P=s==null?void 0:s[e])!=null?P:e.slice(2).toLowerCase()).slice(0,i?-7:void 0);t.useLayoutEffect(()=>{let d=u==null?void 0:u.current;if(!(!d||typeof r!="function"))return d.addEventListener(f,r,i),()=>{d.removeEventListener(f,r,i)}},[u==null?void 0:u.current,r])}t.useLayoutEffect(()=>{if(u.current===null)return;let e=new Map;for(let r in l)k(u.current,r,l[r]),b.current.delete(r),e.set(r,l[r]);for(let[r,i]of b.current)k(u.current,r,void 0);b.current=e})}if(typeof window=="undefined"&&(o!=null&&o.getTemplateHTML)&&(o!=null&&o.shadowRootOptions)){let{mode:e,delegatesFocus:r}=o.shadowRootOptions,i=t.createElement("template",{shadowrootmode:e,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(T)}});a.children=[i,a.children]}return t.createElement(n,{...a,ref:t.useCallback(e=>{u.current=e,typeof p=="function"?p(e):p!==null&&(p.current=e)},[p])})});return w.displayName=c!=null?c:o.name,w}function k(t,n,o){var s,c;t[n]=o,o==null&&n in((c=(s=globalThis.HTMLElement)==null?void 0:s.prototype)!=null?c:{})&&t.removeAttribute(n)}var J=H({react:N.default,tagName:"mux-video",elementClass:I.default,toAttributeName:K}),_={autoPlay:"autoplay",controlsList:"controlslist",crossOrigin:"crossorigin",playsInline:"playsinline",disablePictureInPicture:"disablepictureinpicture",disableRemotePlayback:"disableremoteplayback"};function K(t){return _[t]?_[t]:t.replace(/([A-Z])/g,"-$1").toLowerCase()}
/*! Bundled license information:

@@ -3,0 +3,0 @@

@@ -1,4 +0,4 @@

import MuxVideoElement from '.';
import MuxVideoElement from '@mux/mux-video';
import React from 'react';
declare const _default: React.ForwardRefExoticComponent<Pick<React.HTMLAttributes<MuxVideoElement>, Exclude<keyof React.HTMLAttributes<MuxVideoElement>, "play" | "pause" | "seeking" | "error" | "ended" | "height" | "width" | "audioTracks" | "type" | "debug" | "disableCookies" | "errorTranslator" | "beaconCollectionDomain" | "muted" | "preload" | "metadata" | "src" | "seekable" | "autoplay" | "buffered" | "controls" | "crossOrigin" | "currentSrc" | "currentTime" | "defaultMuted" | "defaultPlaybackRate" | "disableRemotePlayback" | "duration" | "loop" | "mediaKeys" | "networkState" | "onencrypted" | "onwaitingforkey" | "paused" | "playbackRate" | "played" | "preservesPitch" | "readyState" | "remote" | "sinkId" | "srcObject" | "textTracks" | "volume" | "addTextTrack" | "canPlayType" | "fastSeek" | "load" | "setMediaKeys" | "setSinkId" | "NETWORK_EMPTY" | "NETWORK_IDLE" | "NETWORK_LOADING" | "NETWORK_NO_SOURCE" | "HAVE_NOTHING" | "HAVE_METADATA" | "HAVE_CURRENT_DATA" | "HAVE_FUTURE_DATA" | "HAVE_ENOUGH_DATA" | "mux" | "chapters" | "_hlsConfig" | "customDomain" | "disableTracking" | "drmToken" | "playbackToken" | "envKey" | "liveEdgeStart" | "maxResolution" | "minResolution" | "playbackId" | "playerInitTime" | "preferCmcd" | "preferPlayback" | "programStartTime" | "programEndTime" | "assetStartTime" | "assetEndTime" | "renditionOrder" | "startTime" | "streamType" | "targetLiveWindow" | "tokens" | "playerSoftwareName" | "playerSoftwareVersion" | "liveEdgeOffset" | "_hls" | "playsInline" | "poster" | "disablePictureInPicture" | "muxCastCustomData" | "castCustomData" | "addCuePoints" | "activeCuePoint" | "cuePoints" | "addChapters" | "activeChapter" | "getStartDate" | "currentPdt" | "unload" | "nativeEl" | "init" | "handleEvent" | "onenterpictureinpicture" | "onleavepictureinpicture" | "videoHeight" | "videoWidth" | "cancelVideoFrameCallback" | "getVideoPlaybackQuality" | "requestPictureInPicture" | "requestVideoFrameCallback" | "videoTracks" | "addVideoTrack" | "addAudioTrack" | "removeVideoTrack" | "removeAudioTrack" | "videoRenditions" | "audioRenditions">> & {} & Partial<Pick<MuxVideoElement, Exclude<keyof MuxVideoElement, keyof HTMLElement | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "adoptedCallback">>> & React.RefAttributes<MuxVideoElement>>;
export default _default;

@@ -1,4 +0,4 @@

import MuxVideoElement from '.';
import MuxVideoElement from '@mux/mux-video';
import React from 'react';
declare const _default: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<MuxVideoElement>, "play" | "pause" | "seeking" | "error" | "ended" | "height" | "width" | "audioTracks" | "type" | "debug" | "disableCookies" | "errorTranslator" | "beaconCollectionDomain" | "muted" | "preload" | "metadata" | "src" | "seekable" | "autoplay" | "buffered" | "controls" | "crossOrigin" | "currentSrc" | "currentTime" | "defaultMuted" | "defaultPlaybackRate" | "disableRemotePlayback" | "duration" | "loop" | "mediaKeys" | "networkState" | "onencrypted" | "onwaitingforkey" | "paused" | "playbackRate" | "played" | "preservesPitch" | "readyState" | "remote" | "sinkId" | "srcObject" | "textTracks" | "volume" | "addTextTrack" | "canPlayType" | "fastSeek" | "load" | "setMediaKeys" | "setSinkId" | "NETWORK_EMPTY" | "NETWORK_IDLE" | "NETWORK_LOADING" | "NETWORK_NO_SOURCE" | "HAVE_NOTHING" | "HAVE_METADATA" | "HAVE_CURRENT_DATA" | "HAVE_FUTURE_DATA" | "HAVE_ENOUGH_DATA" | "mux" | "chapters" | "_hlsConfig" | "customDomain" | "disableTracking" | "drmToken" | "playbackToken" | "envKey" | "liveEdgeStart" | "maxResolution" | "minResolution" | "playbackId" | "playerInitTime" | "preferCmcd" | "preferPlayback" | "programStartTime" | "programEndTime" | "assetStartTime" | "assetEndTime" | "renditionOrder" | "startTime" | "streamType" | "targetLiveWindow" | "tokens" | "playerSoftwareName" | "playerSoftwareVersion" | "liveEdgeOffset" | "_hls" | "playsInline" | "poster" | "disablePictureInPicture" | "muxCastCustomData" | "castCustomData" | "addCuePoints" | "activeCuePoint" | "cuePoints" | "addChapters" | "activeChapter" | "getStartDate" | "currentPdt" | "unload" | "nativeEl" | "init" | "handleEvent" | "onenterpictureinpicture" | "onleavepictureinpicture" | "videoHeight" | "videoWidth" | "cancelVideoFrameCallback" | "getVideoPlaybackQuality" | "requestPictureInPicture" | "requestVideoFrameCallback" | "videoTracks" | "addVideoTrack" | "addAudioTrack" | "removeVideoTrack" | "removeAudioTrack" | "videoRenditions" | "audioRenditions"> & {} & Partial<Omit<MuxVideoElement, keyof HTMLElement | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "adoptedCallback">> & React.RefAttributes<MuxVideoElement>>;
export default _default;
{
"name": "@mux/mux-video",
"version": "0.24.0",
"version": "0.24.1-canary.0",
"description": "A custom mux video element for the browser that Just Works™",

@@ -75,4 +75,4 @@ "keywords": [

"build:iife": "esbuild src/index.ts --target=es2019 --bundle --sourcemap --metafile=./dist/iife.json --format=iife --outfile=./dist/mux-video.js --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:react:cjs": "esbuild src/react.ts --target=es2019 --bundle --format=cjs --outdir=dist --out-extension:.js=.cjs.js --external:react --external:.",
"build:react:esm": "esbuild src/react.ts --target=es2019 --bundle --format=esm --outdir=dist --out-extension:.js=.mjs --external:react --external:.",
"build:react:cjs": "esbuild src/react.ts --target=es2019 --bundle --format=cjs --outdir=dist --out-extension:.js=.cjs.js --external:react --external:@mux/mux-video",
"build:react:esm": "esbuild src/react.ts --target=es2019 --bundle --format=esm --outdir=dist --out-extension:.js=.mjs --external:react --external:@mux/mux-video",
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",

@@ -79,0 +79,0 @@ "build:types": "tsc",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc