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.8.0 to 2.8.1

dist/-QQRQ2C7K.mjs

6

dist/esm.lazy.json

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

{
"path": "dist/-63OHMAHV.mjs",
"path": "dist/-QQRQ2C7K.mjs",
"kind": "dynamic-import"

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

},
"dist/-63OHMAHV.mjs.map": {
"dist/-QQRQ2C7K.mjs.map": {
"imports": [],

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

},
"dist/-63OHMAHV.mjs": {
"dist/-QQRQ2C7K.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.8.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.8.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.8.0",
"version": "2.8.1",
"description": "An open source Mux player for React that Just Works™",

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

"dependencies": {
"@mux/mux-player": "2.8.0",
"@mux/mux-player": "2.8.1",
"@mux/playback-core": "0.25.0",

@@ -118,3 +118,3 @@ "prop-types": "^15.7.2"

},
"gitHead": "1e6972805459a0bb3a18b5b5a6d0bbf32c900b17"
"gitHead": "6b83bbc7228988f965a8dba55100416aeb24009e"
}

@@ -40,3 +40,2 @@ <p align="center">

}}
streamType="on-demand"
/>;

@@ -60,3 +59,2 @@ ```

}}
streamType="on-demand"
/>;

@@ -63,0 +61,0 @@ ```

Sorry, the diff of this file is not supported yet

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