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
1
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 2.9.0 to 2.9.1

dist/-M3QGHOZN.mjs

6

dist/esm.lazy.json

@@ -176,3 +176,3 @@ {

{
"path": "dist/-JP6GOSUG.mjs",
"path": "dist/-M3QGHOZN.mjs",
"kind": "dynamic-import"

@@ -201,3 +201,3 @@ }

},
"dist/-JP6GOSUG.mjs.map": {
"dist/-M3QGHOZN.mjs.map": {
"imports": [],

@@ -208,3 +208,3 @@ "exports": [],

},
"dist/-JP6GOSUG.mjs": {
"dist/-M3QGHOZN.mjs": {
"imports": [

@@ -211,0 +211,0 @@ {

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

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

@@ -101,4 +101,4 @@ "homepage": "https://mux.com/player",

"dependencies": {
"@mux/mux-player": "2.9.0",
"@mux/playback-core": "0.25.1",
"@mux/mux-player": "2.9.1",
"@mux/playback-core": "0.25.2",
"prop-types": "^15.7.2"

@@ -118,3 +118,3 @@ },

},
"gitHead": "31bf5057d37d4e57b630012fc09d52daedb2973a"
"gitHead": "94210d8ddb22e9d15369329ced978781eebf3402"
}

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