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

@mux/mux-player-react

Package Overview
Dependencies
Maintainers
2
Versions
562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mux/mux-player-react - npm Package Compare versions

Comparing version 0.1.0-canary.11-9d18f40 to 0.1.0-canary.12-8d8e47b

2

dist/index.js

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

var $=Object.create;var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var b=e=>c(e,"__esModule",{value:!0});var ee=(e,t)=>{b(e);for(var n in t)c(e,n,{get:t[n],enumerable:!0})},te=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!B.call(e,a)&&a!=="default"&&c(e,a,{get:()=>t[a],enumerable:!(n=G(t,a))||n.enumerable});return e},u=e=>te(b(c(e!=null?$(X(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);ee(exports,{ControlListTokens:()=>f.ControlListTokens,MediaError:()=>f.MediaError,default:()=>Pe});var i=u(require("react")),f=u(require("@mux/mux-player"));var P={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay"},ne=e=>e==null,re=(e,t)=>ne(t)?!1:e in t,ae=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),oe=(e,t)=>{if(!(typeof t=="boolean"&&!t)){if(re(e,P))return P[e];if(typeof t!=null)return/[A-Z]/.test(e)?ae(e):e}};var se=(e,t)=>typeof e=="boolean"?"":e,E=(e={})=>Object.entries(e).reduce((t,[n,a])=>{let o=oe(n,a);if(!o)return t;let s=se(a,n);return t[o]=s,t},{});var R=u(require("react"));var p=u(require("react")),T=(...e)=>{let t=(0,p.useRef)(null);return(0,p.useEffect)(()=>{e.forEach(n=>{!n||(typeof n=="function"?n(t.current):n.current=t.current)})},[e]),t};var v=u(require("react")),ie=Object.prototype.hasOwnProperty,le=(e,t)=>{if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.some((o,s)=>t[s]===o);let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!ie.call(t,n[o])||!Object.is(e[n[o]],t[n[o]]))return!1;return!0},g=(e,t,n)=>!le(t,e[n]),ue=(e,t,n)=>{e[n]=t},ye=(e,t,n,a=ue,o=g)=>(0,v.useEffect)(()=>{let s=n==null?void 0:n.current;!s||!o(s,t,e)||a(s,t,e)},[n==null?void 0:n.current,t]),y=ye;var de=()=>{try{return"0.1.0-canary.11-9d18f40"}catch{}return"UNKNOWN"},ce=de(),x=()=>ce;var pe=i.default.forwardRef(({children:e,...t},n)=>i.default.createElement("mux-player",E({...t,ref:n}),e)),r=(e,t,n)=>(0,i.useEffect)(()=>{let a=t==null?void 0:t.current;if(!(!a||!n))return a.addEventListener(e,n),()=>{a.removeEventListener(e,n)}},[t==null?void 0:t.current,n]),fe=(e,t)=>{let{onAbort:n,onCanPlay:a,onCanPlayThrough:o,onEmptied:s,onLoadStart:m,onLoadedData:k,onLoadedMetadata:L,onProgress:O,onDurationChange:h,onVolumeChange:M,onRateChange:S,onResize:C,onWaiting:w,onPlay:A,onPlaying:V,onTimeUpdate:N,onPause:I,onSeeking:D,onSeeked:K,onStalled:j,onSuspend:U,onEnded:F,onError:H,onPlayerReady:z,metadata:W,tokens:Z,paused:_,playbackId:q,...J}=t;return y("metadata",W,e),y("tokens",Z,e),y("playbackId",q,e),y("paused",_,e,(l,d)=>{d!=null&&(d?l.pause():l.play())},(l,d,Y)=>l.hasAttribute("autoplay")&&!l.hasPlayed?!1:g(l,d,Y)),r("abort",e,n),r("canplay",e,a),r("canplaythrough",e,o),r("emptied",e,s),r("loadstart",e,m),r("loadeddata",e,k),r("loadedmetadata",e,L),r("progress",e,O),r("durationchange",e,h),r("volumechange",e,M),r("ratechange",e,S),r("resize",e,C),r("waiting",e,w),r("play",e,A),r("playing",e,V),r("timeupdate",e,N),r("pause",e,I),r("seeking",e,D),r("seeked",e,K),r("stalled",e,j),r("suspend",e,U),r("ended",e,F),r("error",e,H),r("playerready",e,z),[J]},me=x(),ge="mux-player-react",be=i.default.forwardRef((e,t)=>{let{forwardSeekOffset:n=10,backwardSeekOffset:a=10}=e,o=(0,R.useRef)(null),s=T(o,t),[m]=fe(o,e);return i.default.createElement(pe,{ref:s,playerSoftwareName:ge,playerSoftwareVersion:me,forwardSeekOffset:n,backwardSeekOffset:a,...m})}),Pe=be;
var $=Object.create;var c=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var b=e=>c(e,"__esModule",{value:!0});var ee=(e,t)=>{b(e);for(var n in t)c(e,n,{get:t[n],enumerable:!0})},te=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Q(t))!B.call(e,a)&&a!=="default"&&c(e,a,{get:()=>t[a],enumerable:!(n=G(t,a))||n.enumerable});return e},u=e=>te(b(c(e!=null?$(X(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);ee(exports,{ControlListTokens:()=>f.ControlListTokens,MediaError:()=>f.MediaError,default:()=>Pe});var i=u(require("react")),f=u(require("@mux/mux-player"));var P={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay"},ne=e=>e==null,re=(e,t)=>ne(t)?!1:e in t,ae=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),oe=(e,t)=>{if(!(typeof t=="boolean"&&!t)){if(re(e,P))return P[e];if(typeof t!=null)return/[A-Z]/.test(e)?ae(e):e}};var se=(e,t)=>typeof e=="boolean"?"":e,E=(e={})=>Object.entries(e).reduce((t,[n,a])=>{let o=oe(n,a);if(!o)return t;let s=se(a,n);return t[o]=s,t},{});var R=u(require("react"));var p=u(require("react")),T=(...e)=>{let t=(0,p.useRef)(null);return(0,p.useEffect)(()=>{e.forEach(n=>{!n||(typeof n=="function"?n(t.current):n.current=t.current)})},[e]),t};var v=u(require("react")),ie=Object.prototype.hasOwnProperty,le=(e,t)=>{if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:e.some((o,s)=>t[s]===o);let n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!ie.call(t,n[o])||!Object.is(e[n[o]],t[n[o]]))return!1;return!0},g=(e,t,n)=>!le(t,e[n]),ue=(e,t,n)=>{e[n]=t},ye=(e,t,n,a=ue,o=g)=>(0,v.useEffect)(()=>{let s=n==null?void 0:n.current;!s||!o(s,t,e)||a(s,t,e)},[n==null?void 0:n.current,t]),y=ye;var de=()=>{try{return"0.1.0-canary.12-8d8e47b"}catch{}return"UNKNOWN"},ce=de(),x=()=>ce;var pe=i.default.forwardRef(({children:e,...t},n)=>i.default.createElement("mux-player",E({...t,ref:n}),e)),r=(e,t,n)=>(0,i.useEffect)(()=>{let a=t==null?void 0:t.current;if(!(!a||!n))return a.addEventListener(e,n),()=>{a.removeEventListener(e,n)}},[t==null?void 0:t.current,n]),fe=(e,t)=>{let{onAbort:n,onCanPlay:a,onCanPlayThrough:o,onEmptied:s,onLoadStart:m,onLoadedData:k,onLoadedMetadata:L,onProgress:O,onDurationChange:h,onVolumeChange:M,onRateChange:S,onResize:C,onWaiting:w,onPlay:A,onPlaying:V,onTimeUpdate:N,onPause:I,onSeeking:D,onSeeked:K,onStalled:j,onSuspend:U,onEnded:F,onError:H,onPlayerReady:z,metadata:W,tokens:Z,paused:_,playbackId:q,...J}=t;return y("metadata",W,e),y("tokens",Z,e),y("playbackId",q,e),y("paused",_,e,(l,d)=>{d!=null&&(d?l.pause():l.play())},(l,d,Y)=>l.hasAttribute("autoplay")&&!l.hasPlayed?!1:g(l,d,Y)),r("abort",e,n),r("canplay",e,a),r("canplaythrough",e,o),r("emptied",e,s),r("loadstart",e,m),r("loadeddata",e,k),r("loadedmetadata",e,L),r("progress",e,O),r("durationchange",e,h),r("volumechange",e,M),r("ratechange",e,S),r("resize",e,C),r("waiting",e,w),r("play",e,A),r("playing",e,V),r("timeupdate",e,N),r("pause",e,I),r("seeking",e,D),r("seeked",e,K),r("stalled",e,j),r("suspend",e,U),r("ended",e,F),r("error",e,H),r("playerready",e,z),[J]},me=x(),ge="mux-player-react",be=i.default.forwardRef((e,t)=>{let{forwardSeekOffset:n=10,backwardSeekOffset:a=10}=e,o=(0,R.useRef)(null),s=T(o,t),[m]=fe(o,e);return i.default.createElement(pe,{ref:s,playerSoftwareName:ge,playerSoftwareVersion:me,forwardSeekOffset:n,backwardSeekOffset:a,...m})}),Pe=be;
//# sourceMappingURL=index.js.map
{
"name": "@mux/mux-player-react",
"version": "0.1.0-canary.11-9d18f40",
"version": "0.1.0-canary.12-8d8e47b",
"description": "An open source Mux player for React that Just Works™",

@@ -48,9 +48,8 @@ "main": "dist/index.js",

"dependencies": {
"@mux/mux-audio": "0.6.3-canary.11-9d18f40",
"@mux/mux-audio-react": "0.4.2-canary.11-9d18f40",
"@mux/mux-elements-codemod": "1.1.2-canary.11-9d18f40",
"@mux/mux-player": "0.1.0-canary.11-9d18f40",
"@mux/mux-video": "0.8.5-canary.8-9d18f40",
"@mux/mux-video-react": "0.5.2-canary.11-9d18f40",
"@mux/playback-core": "0.9.1-canary.11-9d18f40",
"@mux/mux-audio-react": "0.4.2-canary.12-8d8e47b",
"@mux/mux-elements-codemod": "1.1.2-canary.12-8d8e47b",
"@mux/mux-player": "0.1.0-canary.12-8d8e47b",
"@mux/mux-video": "0.8.5-canary.9-8d8e47b",
"@mux/mux-video-react": "0.5.2-canary.12-8d8e47b",
"@mux/playback-core": "0.9.1-canary.12-8d8e47b",
"prop-types": "^15.7.2"

@@ -57,0 +56,0 @@ },

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