@mux/mux-player-react
Advanced tools
Comparing version 3.1.0-canary.0-27b6858 to 3.1.0-canary.0-2fbb2c1
{ | ||
"inputs": { | ||
"src/common/utils.ts": { | ||
"bytes": 2048, | ||
"bytes": 2055, | ||
"imports": [], | ||
@@ -131,3 +131,3 @@ "format": "esm" | ||
"inputs": {}, | ||
"bytes": 22627 | ||
"bytes": 22647 | ||
}, | ||
@@ -174,3 +174,3 @@ "dist/index.cjs.js": { | ||
"src/common/utils.ts": { | ||
"bytesInOutput": 532 | ||
"bytesInOutput": 539 | ||
}, | ||
@@ -187,3 +187,3 @@ "src/useCombinedRefs.ts": { | ||
}, | ||
"bytes": 4214 | ||
"bytes": 4221 | ||
}, | ||
@@ -190,0 +190,0 @@ "dist/themes/classic.cjs.js.map": { |
{ | ||
"inputs": { | ||
"src/common/utils.ts": { | ||
"bytes": 2048, | ||
"bytes": 2055, | ||
"imports": [], | ||
@@ -131,3 +131,3 @@ "format": "esm" | ||
"inputs": {}, | ||
"bytes": 22565 | ||
"bytes": 22585 | ||
}, | ||
@@ -182,3 +182,3 @@ "dist/index.mjs": { | ||
"src/common/utils.ts": { | ||
"bytesInOutput": 524 | ||
"bytesInOutput": 531 | ||
}, | ||
@@ -195,3 +195,3 @@ "src/useCombinedRefs.ts": { | ||
}, | ||
"bytes": 3579 | ||
"bytes": 3586 | ||
}, | ||
@@ -198,0 +198,0 @@ "dist/themes/classic.mjs.map": { |
@@ -37,3 +37,3 @@ { | ||
"src/common/utils.ts": { | ||
"bytes": 2048, | ||
"bytes": 2055, | ||
"imports": [], | ||
@@ -177,3 +177,3 @@ "format": "esm" | ||
{ | ||
"path": "dist/-6C2FGIUL.mjs", | ||
"path": "dist/-B4EOSVSF.mjs", | ||
"kind": "dynamic-import" | ||
@@ -202,9 +202,9 @@ } | ||
}, | ||
"dist/-6C2FGIUL.mjs.map": { | ||
"dist/-B4EOSVSF.mjs.map": { | ||
"imports": [], | ||
"exports": [], | ||
"inputs": {}, | ||
"bytes": 22565 | ||
"bytes": 22585 | ||
}, | ||
"dist/-6C2FGIUL.mjs": { | ||
"dist/-B4EOSVSF.mjs": { | ||
"imports": [ | ||
@@ -257,3 +257,3 @@ { | ||
"src/common/utils.ts": { | ||
"bytesInOutput": 524 | ||
"bytesInOutput": 531 | ||
}, | ||
@@ -270,5 +270,5 @@ "src/useCombinedRefs.ts": { | ||
}, | ||
"bytes": 3583 | ||
"bytes": 3590 | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
"use strict";"use client";var oe=Object.create;var d=Object.defineProperty;var ie=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var ye=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},E=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of se(n))!ue.call(e,r)&&r!==t&&d(e,r,{get:()=>n[r],enumerable:!(o=ie(n,r))||o.enumerable});return e};var ce=(e,n,t)=>(t=e!=null?oe(le(e)):{},E(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),de=e=>E(d({},"__esModule",{value:!0}),e);var Le={};ye(Le,{MaxResolution:()=>c.MaxResolution,MediaError:()=>v.MediaError,MinResolution:()=>c.MinResolution,RenditionOrder:()=>c.RenditionOrder,default:()=>ke,playerSoftwareName:()=>T,playerSoftwareVersion:()=>h});module.exports=de(Le);var y=ce(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"},pe=e=>e==null,me=(e,n)=>pe(n)?!1:e in n,Ee=e=>e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),ge=(e,n)=>{if(!(typeof n=="boolean"&&!n)){if(me(e,g))return g[e];if(typeof n!=null)return/[A-Z]/.test(e)?Ee(e):e}};var Me=(e,n)=>typeof e=="boolean"?"":e,M=(e={})=>Object.entries(e).reduce((n,[t,o])=>{let r=ge(t,o);if(!r)return n;let s=Me(o,t);return n[r]=s,n},{});var x=require("react");var p=require("react"),f=(...e)=>{let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{e.forEach(t=>{t&&(typeof t=="function"?t(n.current):t.current=n.current)})},[e]),n};var P=require("react"),fe=Object.prototype.hasOwnProperty,Pe=(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(!fe.call(n,t[r])||!Object.is(e[t[r]],n[t[r]]))return!1;return!0},m=(e,n,t)=>!Pe(n,e[t]),be=(e,n,t)=>{e[t]=n},ve=(e,n,t,o=be,r=m)=>(0,P.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=ve;var xe=()=>{try{return"3.1.0"}catch{}return"UNKNOWN"},he=xe(),b=()=>he;var Te=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]),Re=(e,n)=>{let{onAbort:t,onCanPlay:o,onCanPlayThrough:r,onEmptied:s,onLoadStart:R,onLoadedData:C,onLoadedMetadata:k,onProgress:L,onDurationChange:O,onVolumeChange:S,onRateChange:G,onResize:w,onWaiting:V,onPlay:A,onPlaying:N,onTimeUpdate:D,onPause:I,onSeeking:K,onSeeked:U,onStalled:_,onSuspend:H,onEnded:j,onError:z,onCuePointChange:F,onCuePointsChange:W,onChapterChange:Z,metadata:q,tokens:J,paused:Y,playbackId:$,playbackRates:Q,currentTime:X,themeProps:B,extraSourceParams:ee,castCustomData:ne,_hlsConfig:te,...ae}=n;return i("playbackRates",Q,e),i("metadata",q,e),i("extraSourceParams",ee,e),i("_hlsConfig",te,e),i("themeProps",B,e),i("tokens",J,e),i("playbackId",$,e),i("castCustomData",ne,e),i("paused",Y,e,(l,u)=>{u!=null&&(u?l.pause():l.play())},(l,u,re)=>l.hasAttribute("autoplay")&&!l.hasPlayed?!1:m(l,u,re)),i("currentTime",X,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,R),a("loadeddata",e,C),a("loadedmetadata",e,k),a("progress",e,L),a("durationchange",e,O),a("volumechange",e,S),a("ratechange",e,G),a("resize",e,w),a("waiting",e,V),a("play",e,A),a("playing",e,N),a("timeupdate",e,D),a("pause",e,I),a("seeking",e,K),a("seeked",e,U),a("stalled",e,_),a("suspend",e,H),a("ended",e,j),a("error",e,z),a("cuepointchange",e,F),a("cuepointschange",e,W),a("chapterchange",e,Z),[ae]},h=b(),T="mux-player-react",Ce=y.default.forwardRef((e,n)=>{let t=(0,x.useRef)(null),o=f(t,n),[r]=Re(t,e);return y.default.createElement(Te,{ref:o,playerSoftwareName:T,playerSoftwareVersion:h,...r})}),ke=Ce; | ||
"use strict";"use client";var oe=Object.create;var d=Object.defineProperty;var ie=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var ye=(e,n)=>{for(var t in n)d(e,t,{get:n[t],enumerable:!0})},E=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of se(n))!ue.call(e,r)&&r!==t&&d(e,r,{get:()=>n[r],enumerable:!(o=ie(n,r))||o.enumerable});return e};var ce=(e,n,t)=>(t=e!=null?oe(le(e)):{},E(n||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e)),de=e=>E(d({},"__esModule",{value:!0}),e);var Le={};ye(Le,{MaxResolution:()=>c.MaxResolution,MediaError:()=>v.MediaError,MinResolution:()=>c.MinResolution,RenditionOrder:()=>c.RenditionOrder,default:()=>ke,playerSoftwareName:()=>T,playerSoftwareVersion:()=>h});module.exports=de(Le);var y=ce(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"},pe=e=>e==null,me=(e,n)=>pe(n)?!1:e in n,Ee=e=>e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),ge=(e,n)=>{if(!(typeof n=="boolean"&&!n)){if(me(e,g))return g[e];if(typeof n!="undefined")return/[A-Z]/.test(e)?Ee(e):e}};var Me=(e,n)=>typeof e=="boolean"?"":e,M=(e={})=>Object.entries(e).reduce((n,[t,o])=>{let r=ge(t,o);if(!r)return n;let s=Me(o,t);return n[r]=s,n},{});var x=require("react");var p=require("react"),f=(...e)=>{let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{e.forEach(t=>{t&&(typeof t=="function"?t(n.current):t.current=n.current)})},[e]),n};var P=require("react"),fe=Object.prototype.hasOwnProperty,Pe=(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(!fe.call(n,t[r])||!Object.is(e[t[r]],n[t[r]]))return!1;return!0},m=(e,n,t)=>!Pe(n,e[t]),be=(e,n,t)=>{e[t]=n},ve=(e,n,t,o=be,r=m)=>(0,P.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=ve;var xe=()=>{try{return"3.1.0"}catch{}return"UNKNOWN"},he=xe(),b=()=>he;var Te=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]),Re=(e,n)=>{let{onAbort:t,onCanPlay:o,onCanPlayThrough:r,onEmptied:s,onLoadStart:R,onLoadedData:C,onLoadedMetadata:k,onProgress:L,onDurationChange:O,onVolumeChange:S,onRateChange:G,onResize:w,onWaiting:V,onPlay:A,onPlaying:N,onTimeUpdate:D,onPause:I,onSeeking:K,onSeeked:_,onStalled:U,onSuspend:j,onEnded:H,onError:z,onCuePointChange:F,onCuePointsChange:W,onChapterChange:Z,metadata:q,tokens:J,paused:Y,playbackId:$,playbackRates:Q,currentTime:X,themeProps:B,extraSourceParams:ee,castCustomData:ne,_hlsConfig:te,...ae}=n;return i("playbackRates",Q,e),i("metadata",q,e),i("extraSourceParams",ee,e),i("_hlsConfig",te,e),i("themeProps",B,e),i("tokens",J,e),i("playbackId",$,e),i("castCustomData",ne,e),i("paused",Y,e,(l,u)=>{u!=null&&(u?l.pause():l.play())},(l,u,re)=>l.hasAttribute("autoplay")&&!l.hasPlayed?!1:m(l,u,re)),i("currentTime",X,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,R),a("loadeddata",e,C),a("loadedmetadata",e,k),a("progress",e,L),a("durationchange",e,O),a("volumechange",e,S),a("ratechange",e,G),a("resize",e,w),a("waiting",e,V),a("play",e,A),a("playing",e,N),a("timeupdate",e,D),a("pause",e,I),a("seeking",e,K),a("seeked",e,_),a("stalled",e,U),a("suspend",e,j),a("ended",e,H),a("error",e,z),a("cuepointchange",e,F),a("cuepointschange",e,W),a("chapterchange",e,Z),[ae]},h=b(),T="mux-player-react",Ce=y.default.forwardRef((e,n)=>{let t=(0,x.useRef)(null),o=f(t,n),[r]=Re(t,e);return y.default.createElement(Te,{ref:o,playerSoftwareName:T,playerSoftwareVersion:h,...r})}),ke=Ce; | ||
//# sourceMappingURL=index.cjs.js.map |
type KeyTypes = string | number | symbol; | ||
type Maybe<T> = T | null | undefined; | ||
export declare const isNil: (x: unknown) => x is null | undefined; | ||
export declare const isKeyOf: <T extends {} = any>(k: KeyTypes, o: Maybe<T>) => k is keyof T; | ||
export declare const isKeyOf: <T extends object = any>(k: KeyTypes, o: Maybe<T>) => k is keyof T; | ||
export declare const toNativeAttrName: (propName: string, propValue: any) => string | undefined; | ||
export declare const toStyleAttr: <T>(x: T) => T; | ||
export declare const toNativeAttrValue: (propValue: any, propName: string) => any; | ||
export declare const toNativeAttrValue: (propValue: any, _propName: string) => any; | ||
export declare const toNativeProps: (props?: {}) => { | ||
@@ -9,0 +9,0 @@ [k: string]: string; |
type KeyTypes = string | number | symbol; | ||
type Maybe<T> = T | null | undefined; | ||
export declare const isNil: (x: unknown) => x is null | undefined; | ||
export declare const isKeyOf: <T extends {} = any>(k: KeyTypes, o: Maybe<T>) => k is keyof T; | ||
export declare const isKeyOf: <T extends object = any>(k: KeyTypes, o: Maybe<T>) => k is keyof T; | ||
export declare const toNativeAttrName: (propName: string, propValue: any) => string | undefined; | ||
export declare const toStyleAttr: <T>(x: T) => T; | ||
export declare const toNativeAttrValue: (propValue: any, propName: string) => any; | ||
export declare const toNativeAttrValue: (propValue: any, _propName: string) => any; | ||
export declare const toNativeProps: (props?: {}) => { | ||
@@ -9,0 +9,0 @@ [k: string]: string; |
{ | ||
"name": "@mux/mux-player-react", | ||
"version": "3.1.0-canary.0-27b6858", | ||
"version": "3.1.0-canary.0-2fbb2c1", | ||
"description": "An open source Mux player for React that Just Works™", | ||
@@ -43,11 +43,11 @@ "homepage": "https://mux.com/player", | ||
"require": "./dist/index.cjs.js", | ||
"default": "./dist/index.cjs.js", | ||
"types@<4.3.5": "./dist/types-ts3.4/index.d.ts", | ||
"types": "./dist/types/index.d.ts" | ||
"types": "./dist/types/index.d.ts", | ||
"default": "./dist/index.cjs.js" | ||
}, | ||
"./lazy": { | ||
"import": "./dist/lazy.mjs", | ||
"default": "./dist/lazy.mjs", | ||
"types@<4.3.5": "./dist/types-ts3.4/lazy.d.ts", | ||
"types": "./dist/types/lazy.d.ts" | ||
"types": "./dist/types/lazy.d.ts", | ||
"default": "./dist/lazy.mjs" | ||
}, | ||
@@ -57,5 +57,5 @@ "./themes/*": { | ||
"require": "./dist/themes/*.cjs.js", | ||
"default": "./dist/themes/*.cjs.js", | ||
"types@<4.3.5": "./dist/types-ts3.4/themes/*.d.ts", | ||
"types": "./dist/types/themes/*.d.ts" | ||
"types": "./dist/types/themes/*.d.ts", | ||
"default": "./dist/themes/*.cjs.js" | ||
} | ||
@@ -103,4 +103,4 @@ }, | ||
"dependencies": { | ||
"@mux/mux-player": "3.1.0-canary.0-27b6858", | ||
"@mux/playback-core": "0.27.0-canary.0-27b6858", | ||
"@mux/mux-player": "3.1.0-canary.0-2fbb2c1", | ||
"@mux/playback-core": "0.27.0-canary.0-2fbb2c1", | ||
"prop-types": "^15.7.2" | ||
@@ -107,0 +107,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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
195463
+ Added@mux/mux-player@3.1.0-canary.0-2fbb2c1(transitive)
+ Added@mux/mux-video@0.22.0-canary.0-2fbb2c1(transitive)
+ Added@mux/playback-core@0.27.0-canary.0-2fbb2c1(transitive)
+ Added@types/react@19.0.8(transitive)
+ Addedmedia-chrome@4.3.1(transitive)
+ Addedmux-embed@5.6.0(transitive)
- Removed@mux/mux-player@3.1.0-canary.0-27b6858(transitive)
- Removed@mux/mux-video@0.22.0-canary.0-27b6858(transitive)
- Removed@mux/playback-core@0.27.0-canary.0-27b6858(transitive)
- Removed@types/react@19.0.10(transitive)
- Removedcustom-media-element@1.3.3(transitive)
- Removedmedia-chrome@4.2.3(transitive)
- Removedmux-embed@5.7.0(transitive)