@mux/mux-player-react
Advanced tools
Comparing version 3.2.3-canary.1 to 3.2.3
@@ -182,3 +182,3 @@ { | ||
{ | ||
"path": "dist/-HAETQ6JR.mjs", | ||
"path": "dist/-XIFKRW4S.mjs", | ||
"kind": "dynamic-import" | ||
@@ -207,3 +207,3 @@ } | ||
}, | ||
"dist/-HAETQ6JR.mjs.map": { | ||
"dist/-XIFKRW4S.mjs.map": { | ||
"imports": [], | ||
@@ -214,3 +214,3 @@ "exports": [], | ||
}, | ||
"dist/-HAETQ6JR.mjs": { | ||
"dist/-XIFKRW4S.mjs": { | ||
"imports": [ | ||
@@ -217,0 +217,0 @@ { |
@@ -1,2 +0,2 @@ | ||
"use strict";"use client";var le=Object.create;var d=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var de=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},g=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of ye(n))!pe.call(e,r)&&r!==t&&d(e,r,{get:()=>n[r],enumerable:!(o=ue(n,r))||o.enumerable});return e};var M=(e,n,t)=>(t=e!=null?le(ce(e)):{},g(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),me=e=>g(d({},"__esModule",{value:!0}),e);var Oe={};de(Oe,{MaxResolution:()=>u.MaxResolution,MediaError:()=>R.MediaError,MinResolution:()=>u.MinResolution,RenditionOrder:()=>u.RenditionOrder,default:()=>Se,generatePlayerInitTime:()=>u.generatePlayerInitTime,playerSoftwareName:()=>L,playerSoftwareVersion:()=>k});module.exports=me(Oe);var l=M(require("react")),u=require("@mux/playback-core"),R=require("@mux/mux-player");var P=M(require("react")),b=parseInt(P.default.version)>=19,f={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},Ee=e=>e==null,ge=(e,n)=>Ee(n)?!1:e in n,Me=e=>e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),fe=(e,n)=>{if(!(!b&&typeof n=="boolean"&&!n)){if(ge(e,f))return f[e];if(typeof n!="undefined")return/[A-Z]/.test(e)?Me(e):e}};var Pe=(e,n)=>!b&&typeof e=="boolean"?"":e,v=(e={})=>Object.entries(e).reduce((n,[t,o])=>{let r=fe(t,o);if(!r)return n;let i=Pe(o,t);return n[r]=i,n},{});var C=require("react");var m=require("react"),x=(...e)=>{let n=(0,m.useRef)(null);return(0,m.useEffect)(()=>{e.forEach(t=>{t&&(typeof t=="function"?t(n.current):t.current=n.current)})},[e]),n};var T=require("react"),be=Object.prototype.hasOwnProperty,ve=(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,i)=>n[i]===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(!be.call(n,t[r])||!Object.is(e[t[r]],n[t[r]]))return!1;return!0},E=(e,n,t)=>!ve(n,e[t]),xe=(e,n,t)=>{e[t]=n},Te=(e,n,t,o=xe,r=E)=>(0,T.useEffect)(()=>{let i=t==null?void 0:t.current;i&&r(i,n,e)&&o(i,n,e)},[t==null?void 0:t.current,n]),s=Te;var he=()=>{try{return"3.2.2"}catch{}return"UNKNOWN"},Re=he(),h=()=>Re;var Ce=l.default.forwardRef(({children:e,...n},t)=>l.default.createElement("mux-player",v({...n,ref:t}),e)),a=(e,n,t)=>(0,l.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]),ke=(e,n)=>{let{onAbort:t,onCanPlay:o,onCanPlayThrough:r,onEmptied:i,onLoadStart:p,onLoadedData:S,onLoadedMetadata:O,onProgress:G,onDurationChange:w,onVolumeChange:V,onRateChange:I,onResize:A,onWaiting:N,onPlay:D,onPlaying:_,onTimeUpdate:K,onPause:U,onSeeking:j,onSeeked:H,onStalled:W,onSuspend:z,onEnded:F,onError:Z,onCuePointChange:q,onCuePointsChange:J,onChapterChange:Y,metadata:$,tokens:Q,paused:X,playbackId:B,playbackRates:ee,currentTime:ne,themeProps:te,extraSourceParams:ae,castCustomData:re,_hlsConfig:oe,...ie}=n;return s("playbackRates",ee,e),s("metadata",$,e),s("extraSourceParams",ae,e),s("_hlsConfig",oe,e),s("themeProps",te,e),s("tokens",Q,e),s("playbackId",B,e),s("castCustomData",re,e),s("paused",X,e,(y,c)=>{c!=null&&(c?y.pause():y.play())},(y,c,se)=>y.hasAttribute("autoplay")&&!y.hasPlayed?!1:E(y,c,se)),s("currentTime",ne,e,(y,c)=>{c!=null&&(y.currentTime=c)}),a("abort",e,t),a("canplay",e,o),a("canplaythrough",e,r),a("emptied",e,i),a("loadstart",e,p),a("loadeddata",e,S),a("loadedmetadata",e,O),a("progress",e,G),a("durationchange",e,w),a("volumechange",e,V),a("ratechange",e,I),a("resize",e,A),a("waiting",e,N),a("play",e,D),a("playing",e,_),a("timeupdate",e,K),a("pause",e,U),a("seeking",e,j),a("seeked",e,H),a("stalled",e,W),a("suspend",e,z),a("ended",e,F),a("error",e,Z),a("cuepointchange",e,q),a("cuepointschange",e,J),a("chapterchange",e,Y),[ie]},k=h(),L="mux-player-react",Le=l.default.forwardRef((e,n)=>{var p;let t=(0,C.useRef)(null),o=x(t,n),[r]=ke(t,e),[i]=(0,l.useState)((p=e.playerInitTime)!=null?p:(0,u.generatePlayerInitTime)());return l.default.createElement(Ce,{ref:o,playerSoftwareName:L,playerSoftwareVersion:k,playerInitTime:i,...r})}),Se=Le; | ||
"use strict";"use client";var le=Object.create;var d=Object.defineProperty;var ue=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty;var de=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},g=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of ye(n))!pe.call(e,r)&&r!==t&&d(e,r,{get:()=>n[r],enumerable:!(o=ue(n,r))||o.enumerable});return e};var M=(e,n,t)=>(t=e!=null?le(ce(e)):{},g(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),me=e=>g(d({},"__esModule",{value:!0}),e);var Oe={};de(Oe,{MaxResolution:()=>u.MaxResolution,MediaError:()=>R.MediaError,MinResolution:()=>u.MinResolution,RenditionOrder:()=>u.RenditionOrder,default:()=>Se,generatePlayerInitTime:()=>u.generatePlayerInitTime,playerSoftwareName:()=>L,playerSoftwareVersion:()=>k});module.exports=me(Oe);var l=M(require("react")),u=require("@mux/playback-core"),R=require("@mux/mux-player");var P=M(require("react")),b=parseInt(P.default.version)>=19,f={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},Ee=e=>e==null,ge=(e,n)=>Ee(n)?!1:e in n,Me=e=>e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),fe=(e,n)=>{if(!(!b&&typeof n=="boolean"&&!n)){if(ge(e,f))return f[e];if(typeof n!="undefined")return/[A-Z]/.test(e)?Me(e):e}};var Pe=(e,n)=>!b&&typeof e=="boolean"?"":e,v=(e={})=>Object.entries(e).reduce((n,[t,o])=>{let r=fe(t,o);if(!r)return n;let i=Pe(o,t);return n[r]=i,n},{});var C=require("react");var m=require("react"),x=(...e)=>{let n=(0,m.useRef)(null);return(0,m.useEffect)(()=>{e.forEach(t=>{t&&(typeof t=="function"?t(n.current):t.current=n.current)})},[e]),n};var T=require("react"),be=Object.prototype.hasOwnProperty,ve=(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,i)=>n[i]===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(!be.call(n,t[r])||!Object.is(e[t[r]],n[t[r]]))return!1;return!0},E=(e,n,t)=>!ve(n,e[t]),xe=(e,n,t)=>{e[t]=n},Te=(e,n,t,o=xe,r=E)=>(0,T.useEffect)(()=>{let i=t==null?void 0:t.current;i&&r(i,n,e)&&o(i,n,e)},[t==null?void 0:t.current,n]),s=Te;var he=()=>{try{return"3.2.3"}catch{}return"UNKNOWN"},Re=he(),h=()=>Re;var Ce=l.default.forwardRef(({children:e,...n},t)=>l.default.createElement("mux-player",v({...n,ref:t}),e)),a=(e,n,t)=>(0,l.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]),ke=(e,n)=>{let{onAbort:t,onCanPlay:o,onCanPlayThrough:r,onEmptied:i,onLoadStart:p,onLoadedData:S,onLoadedMetadata:O,onProgress:G,onDurationChange:w,onVolumeChange:V,onRateChange:I,onResize:A,onWaiting:N,onPlay:D,onPlaying:_,onTimeUpdate:K,onPause:U,onSeeking:j,onSeeked:H,onStalled:W,onSuspend:z,onEnded:F,onError:Z,onCuePointChange:q,onCuePointsChange:J,onChapterChange:Y,metadata:$,tokens:Q,paused:X,playbackId:B,playbackRates:ee,currentTime:ne,themeProps:te,extraSourceParams:ae,castCustomData:re,_hlsConfig:oe,...ie}=n;return s("playbackRates",ee,e),s("metadata",$,e),s("extraSourceParams",ae,e),s("_hlsConfig",oe,e),s("themeProps",te,e),s("tokens",Q,e),s("playbackId",B,e),s("castCustomData",re,e),s("paused",X,e,(y,c)=>{c!=null&&(c?y.pause():y.play())},(y,c,se)=>y.hasAttribute("autoplay")&&!y.hasPlayed?!1:E(y,c,se)),s("currentTime",ne,e,(y,c)=>{c!=null&&(y.currentTime=c)}),a("abort",e,t),a("canplay",e,o),a("canplaythrough",e,r),a("emptied",e,i),a("loadstart",e,p),a("loadeddata",e,S),a("loadedmetadata",e,O),a("progress",e,G),a("durationchange",e,w),a("volumechange",e,V),a("ratechange",e,I),a("resize",e,A),a("waiting",e,N),a("play",e,D),a("playing",e,_),a("timeupdate",e,K),a("pause",e,U),a("seeking",e,j),a("seeked",e,H),a("stalled",e,W),a("suspend",e,z),a("ended",e,F),a("error",e,Z),a("cuepointchange",e,q),a("cuepointschange",e,J),a("chapterchange",e,Y),[ie]},k=h(),L="mux-player-react",Le=l.default.forwardRef((e,n)=>{var p;let t=(0,C.useRef)(null),o=x(t,n),[r]=ke(t,e),[i]=(0,l.useState)((p=e.playerInitTime)!=null?p:(0,u.generatePlayerInitTime)());return l.default.createElement(Ce,{ref:o,playerSoftwareName:L,playerSoftwareVersion:k,playerInitTime:i,...r})}),Se=Le; | ||
//# sourceMappingURL=index.cjs.js.map |
{ | ||
"name": "@mux/mux-player-react", | ||
"version": "3.2.3-canary.1", | ||
"version": "3.2.3", | ||
"description": "An open source Mux player for React that Just Works™", | ||
@@ -99,3 +99,3 @@ "homepage": "https://mux.com/player", | ||
"dependencies": { | ||
"@mux/mux-player": "3.2.2", | ||
"@mux/mux-player": "3.2.3", | ||
"@mux/playback-core": "0.28.1", | ||
@@ -102,0 +102,0 @@ "prop-types": "^15.7.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5
156715
+ Added@mux/mux-player@3.2.3(transitive)
+ Added@mux/mux-video@0.24.1(transitive)
- Removed@mux/mux-player@3.2.2(transitive)
- Removed@mux/mux-video@0.24.0(transitive)
Updated@mux/mux-player@3.2.3