@maveio/components 0.0.157 → 0.0.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-45FW5DBN.js → chunk-24TUG5TP.js} +1 -1
- package/dist/{chunk-KZOVSI7R.cjs → chunk-2UJ446RI.cjs} +13 -29
- package/dist/{chunk-Z5AM3NST.cjs → chunk-32WXLTTE.cjs} +2 -2
- package/dist/{chunk-4CDE2QCJ.js → chunk-6XR2OUZW.js} +1 -1
- package/dist/chunk-7ZRXZY5C.js +20 -0
- package/dist/{chunk-TVNAG7X4.cjs → chunk-B3QILQEE.cjs} +3 -3
- package/dist/{chunk-6MCTUE3H.js → chunk-CHHWULL2.js} +4 -4
- package/dist/chunk-DITZCOYN.cjs +379 -0
- package/dist/{chunk-MKZYI5TY.cjs → chunk-EOHKHSQ3.cjs} +1 -1
- package/dist/{chunk-KTGL4HLA.cjs → chunk-FUSQ4EZG.cjs} +2 -2
- package/dist/chunk-JHSFSCC2.cjs +1 -0
- package/dist/chunk-KA24PL7V.js +1 -0
- package/dist/{chunk-VZKW2VWI.js → chunk-KNAAIER3.js} +2 -2
- package/dist/{chunk-5KQJTT3P.cjs → chunk-KVMGCTLR.cjs} +1 -1
- package/dist/{chunk-JBRRVOTV.cjs → chunk-MLZIA6JO.cjs} +5 -5
- package/dist/chunk-MSWONVA7.cjs +20 -0
- package/dist/{chunk-4AYP3SUJ.js → chunk-NKEVN7FX.js} +1 -1
- package/dist/{chunk-PLCF3Z5Q.cjs → chunk-OTRPT6Y4.cjs} +4 -4
- package/dist/{chunk-PC26CFMJ.cjs → chunk-PHGKLFNF.cjs} +1 -1
- package/dist/{chunk-2AXZ5ZCT.js → chunk-QNX3YAVY.js} +7 -23
- package/dist/chunk-QSQE5WBN.js +35 -0
- package/dist/chunk-QZSLJNS4.js +7 -0
- package/dist/chunk-STJ6CEFZ.cjs +1468 -0
- package/dist/chunk-T2P4BAWY.js +379 -0
- package/dist/chunk-ULZI6OGL.js +1468 -0
- package/dist/{chunk-CUGRXOA2.js → chunk-XLUB3ATV.js} +1 -1
- package/dist/{chunk-6NWQAHZT.cjs → chunk-ZLS57S3I.cjs} +1 -1
- package/dist/components/audio-track-menu.cjs +1 -0
- package/dist/components/audio-track-menu.d.cts +27 -0
- package/dist/components/audio-track-menu.d.ts +27 -0
- package/dist/components/audio-track-menu.js +1 -0
- package/dist/components/clip.cjs +1 -1
- package/dist/components/clip.js +1 -1
- package/dist/components/files.cjs +1 -1
- package/dist/components/files.js +1 -1
- package/dist/components/img.cjs +1 -1
- package/dist/components/img.js +1 -1
- package/dist/components/list.cjs +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/player.cjs +1 -1
- package/dist/components/player.d.cts +8 -0
- package/dist/components/player.d.ts +8 -0
- package/dist/components/player.js +1 -1
- package/dist/components/pop.cjs +1 -1
- package/dist/components/pop.js +1 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/upload.cjs +1 -1
- package/dist/components/upload.d.cts +5 -0
- package/dist/components/upload.d.ts +5 -0
- package/dist/components/upload.js +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.js +1 -1
- package/dist/embed/api.cjs +1 -1
- package/dist/embed/api.d.cts +11 -1
- package/dist/embed/api.d.ts +11 -1
- package/dist/embed/api.js +1 -1
- package/dist/embed/caption.cjs +1 -1
- package/dist/embed/caption.js +1 -1
- package/dist/embed/controller.cjs +1 -1
- package/dist/embed/controller.js +1 -1
- package/dist/embed/socket.cjs +1 -1
- package/dist/embed/socket.d.cts +3 -5
- package/dist/embed/socket.d.ts +3 -5
- package/dist/embed/socket.js +1 -1
- package/dist/generated/locales/de.cjs +1 -1
- package/dist/generated/locales/de.js +1 -1
- package/dist/generated/locales/en.cjs +1 -1
- package/dist/generated/locales/en.js +1 -1
- package/dist/generated/locales/fr.cjs +1 -1
- package/dist/generated/locales/fr.js +1 -1
- package/dist/generated/locales/nl.cjs +1 -1
- package/dist/generated/locales/nl.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/themes/default.cjs +53 -1
- package/dist/themes/default.js +53 -1
- package/dist/themes/dolphin.cjs +1 -1
- package/dist/themes/dolphin.js +1 -1
- package/dist/themes/loader.cjs +1 -1
- package/dist/themes/loader.js +1 -1
- package/dist/themes/synthwave.cjs +1 -1
- package/dist/themes/synthwave.js +1 -1
- package/dist/utils/localization.cjs +1 -1
- package/dist/utils/localization.js +1 -1
- package/dist/utils/mave_element.cjs +1 -1
- package/dist/utils/mave_element.js +1 -1
- package/dist/utils/origin.cjs +1 -1
- package/dist/utils/origin.js +1 -1
- package/dist/utils/video_events.cjs +1 -1
- package/dist/utils/video_events.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-5IPIXU3O.js +0 -1807
- package/dist/chunk-IBTJ5OMP.js +0 -35
- package/dist/chunk-IPA5Q26W.cjs +0 -1
- package/dist/chunk-LGWESJBJ.cjs +0 -20
- package/dist/chunk-NDDFZTBA.js +0 -1
- package/dist/chunk-SRXHXTDF.js +0 -7
- package/dist/chunk-ZMMJMM4X.cjs +0 -1807
- package/dist/chunk-ZT2E4EC7.js +0 -20
- /package/dist/{chunk-NI57YLPL.cjs → chunk-BVMU4ZXD.cjs} +0 -0
- /package/dist/{chunk-EXNM5EV2.js → chunk-DFLPNNA4.js} +0 -0
- /package/dist/{chunk-4GKJNXUA.js → chunk-FRPU6QLJ.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b,c,a as a$1}from'./chunk-MMHEOMF5.js';import {g,f}from'./chunk-A4GZBQEB.js';import {a}from'./chunk-
|
|
1
|
+
import {b,c,a as a$1}from'./chunk-MMHEOMF5.js';import {g,f}from'./chunk-A4GZBQEB.js';import {a}from'./chunk-KA24PL7V.js';var De=a((xe,pe)=>{var se=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Te=Object.getOwnPropertyNames,ye=Object.prototype.hasOwnProperty,Ce=(e,t)=>{for(var s in t)se(e,s,{get:t[s],enumerable:true});},we=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Te(t))!ye.call(e,n)&&n!==s&&se(e,n,{get:()=>t[n],enumerable:!(i=ke(t,n))||i.enumerable});return e},Ae=e=>we(se({},"__esModule",{value:true}),e),ie=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},h=(e,t,s)=>(ie(e,t,"read from private field"),s?s.call(e):t.get(e)),d=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s);},p=(e,t,s,i)=>(ie(e,t,"write to private field"),t.set(e,s),s),w=(e,t,s)=>(ie(e,t,"access private method"),s),he={};Ce(he,{Metrics:()=>Pe});pe.exports=Ae(he);var H=e=>typeof e=="function"?e:function(){return e},Ee=typeof self<"u"?self:null,R=typeof window<"u"?window:null,E=Ee||R||E,$e="2.0.0",g={connecting:0,open:1,closing:2,closed:3},je=1e4,_e=1e3,m={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},v={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},z={longpoll:"longpoll",websocket:"websocket"},Re={complete:4},P=class{constructor(e,t,s,i){this.channel=e,this.event=t,this.payload=s||function(){return {}},this.receivedResp=null,this.timeout=i,this.timeoutTimer=null,this.recHooks=[],this.sent=false;}resend(e){this.timeout=e,this.reset(),this.send();}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=true,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}));}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=false;}matchReceive({status:e,response:t,_ref:s}){this.recHooks.filter(i=>i.status===e).forEach(i=>i.callback(t));}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent);}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null;}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e);}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{});},this.timeout);}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t});}},ce=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0;}reset(){this.tries=0,clearTimeout(this.timer);}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback();},this.timerCalc(this.tries+1));}},Se=class{constructor(e,t,s){this.state=m.closed,this.topic=e,this.params=H(t||{}),this.socket=s,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=false,this.joinPush=new P(this,v.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ce(()=>{this.socket.isConnected()&&this.rejoin();},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin();})),this.joinPush.receive("ok",()=>{this.state=m.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[];}),this.joinPush.receive("error",()=>{this.state=m.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=m.closed,this.socket.remove(this);}),this.onError(i=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,i),this.isJoining()&&this.joinPush.reset(),this.state=m.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new P(this,v.leave,H({}),this.timeout).send(),this.state=m.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout();}),this.on(v.reply,(i,n)=>{this.trigger(this.replyEventName(n),i);});}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=true,this.rejoin(),this.joinPush}onClose(e){this.on(v.close,e);}onError(e){return this.on(v.error,t=>e(t))}on(e,t){let s=this.bindingRef++;return this.bindings.push({event:e,ref:s,callback:t}),s}off(e,t){this.bindings=this.bindings.filter(s=>!(s.event===e&&(typeof t>"u"||t===s.ref)));}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,s=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let i=new P(this,e,function(){return t},s);return this.canPush()?i.send():(i.startTimeout(),this.pushBuffer.push(i)),i}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=m.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(v.close,"leave");},s=new P(this,v.leave,H({}),e);return s.receive("ok",()=>t()).receive("timeout",()=>t()),s.send(),this.canPush()||s.trigger("ok",{}),s}onMessage(e,t,s){return t}isMember(e,t,s,i){return this.topic!==e?false:i&&i!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:s,joinRef:i}),false):true}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=m.joining,this.joinPush.resend(e));}trigger(e,t,s,i){let n=this.onMessage(e,t,s,i);if(t&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let r=this.bindings.filter(a=>a.event===e);for(let a=0;a<r.length;a++)r[a].callback(n,s,i||this.joinRef());}replyEventName(e){return `chan_reply_${e}`}isClosed(){return this.state===m.closed}isErrored(){return this.state===m.errored}isJoined(){return this.state===m.joined}isJoining(){return this.state===m.joining}isLeaving(){return this.state===m.leaving}},x=class{static request(e,t,s,i,n,r,a){if(E.XDomainRequest){let o=new E.XDomainRequest;return this.xdomainRequest(o,e,t,i,n,r,a)}else {let o=new E.XMLHttpRequest;return this.xhrRequest(o,e,t,s,i,n,r,a)}}static xdomainRequest(e,t,s,i,n,r,a){return e.timeout=n,e.open(t,s),e.onload=()=>{let o=this.parseJSON(e.responseText);a&&a(o);},r&&(e.ontimeout=r),e.onprogress=()=>{},e.send(i),e}static xhrRequest(e,t,s,i,n,r,a,o){return e.open(t,s,true),e.timeout=r,e.setRequestHeader("Content-Type",i),e.onerror=()=>o&&o(null),e.onreadystatechange=()=>{if(e.readyState===Re.complete&&o){let l=this.parseJSON(e.responseText);o(l);}},a&&(e.ontimeout=a),e.send(n),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let s=[];for(var i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let n=t?`${t}[${i}]`:i,r=e[i];typeof r=="object"?s.push(this.serialize(r,n)):s.push(encodeURIComponent(n)+"="+encodeURIComponent(r));}return s.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let s=e.match(/\?/)?"&":"?";return `${e}${s}${this.serialize(t)}`}},Me=e=>{let t="",s=new Uint8Array(e),i=s.byteLength;for(let n=0;n<i;n++)t+=String.fromCharCode(s[n]);return btoa(t)},_=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=true,this.reqs=new Set,this.awaitingBatchAck=false,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=g.connecting,setTimeout(()=>this.poll(),0);}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+z.websocket),"$1/"+z.longpoll)}endpointURL(){return x.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,s){this.close(e,t,s),this.readyState=g.connecting;}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",false);}isActive(){return this.readyState===g.open||this.readyState===g.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:s,messages:i}=e;this.token=s;}else t=0;switch(t){case 200:i.forEach(n=>{setTimeout(()=>this.onmessage({data:n}),0);}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=g.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",false);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}});}send(e){typeof e!="string"&&(e=Me(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null;},0));}batchSend(e){this.awaitingBatchAck=true,this.ajax("POST","application/x-ndjson",e.join(`
|
|
2
2
|
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=false,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",false)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]);});}close(e,t,s){for(let n of this.reqs)n.abort();this.readyState=g.closed;let i=Object.assign({code:1e3,reason:void 0,wasClean:true},{code:e,reason:t,wasClean:s});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",i)):this.onclose(i);}ajax(e,t,s,i,n){let r,a=()=>{this.reqs.delete(r),i();};r=x.request(e,this.endpointURL(),t,s,this.timeout,a,o=>{this.reqs.delete(r),this.isActive()&&n(o);}),this.reqs.add(r);}},D={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(s))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[s,i,n,r,a]=JSON.parse(e);return t({join_ref:s,ref:i,topic:n,event:r,payload:a})}},binaryEncode(e){let{join_ref:t,ref:s,event:i,topic:n,payload:r}=e,a=this.META_LENGTH+t.length+s.length+n.length+i.length,o=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(o),f=0;l.setUint8(f++,this.KINDS.push),l.setUint8(f++,t.length),l.setUint8(f++,s.length),l.setUint8(f++,n.length),l.setUint8(f++,i.length),Array.from(t,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(s,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(n,b=>l.setUint8(f++,b.charCodeAt(0))),Array.from(i,b=>l.setUint8(f++,b.charCodeAt(0)));var T=new Uint8Array(o.byteLength+r.byteLength);return T.set(new Uint8Array(o),0),T.set(new Uint8Array(r),o.byteLength),T.buffer},binaryDecode(e){let t=new DataView(e),s=t.getUint8(0),i=new TextDecoder;switch(s){case this.KINDS.push:return this.decodePush(e,t,i);case this.KINDS.reply:return this.decodeReply(e,t,i);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,i)}},decodePush(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,o=s.decode(e.slice(a,a+i));a=a+i;let l=s.decode(e.slice(a,a+n));a=a+n;let f=s.decode(e.slice(a,a+r));a=a+r;let T=e.slice(a,e.byteLength);return {join_ref:o,ref:null,topic:l,event:f,payload:T}},decodeReply(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),a=t.getUint8(4),o=this.HEADER_LENGTH+this.META_LENGTH,l=s.decode(e.slice(o,o+i));o=o+i;let f=s.decode(e.slice(o,o+n));o=o+n;let T=s.decode(e.slice(o,o+r));o=o+r;let b=s.decode(e.slice(o,o+a));o=o+a;let ge=e.slice(o,e.byteLength),be={status:b,response:ge};return {join_ref:l,ref:f,topic:T,event:v.reply,payload:be}},decodeBroadcast(e,t,s){let i=t.getUint8(1),n=t.getUint8(2),r=this.HEADER_LENGTH+2,a=s.decode(e.slice(r,r+i));r=r+i;let o=s.decode(e.slice(r,r+n));r=r+n;let l=e.slice(r,e.byteLength);return {join_ref:null,ref:null,topic:a,event:o,payload:l}}},He=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||je,this.transport=t.transport||E.WebSocket||_,this.primaryPassedHealthCheck=false,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||E&&E.sessionStorage,this.establishedConnections=0,this.defaultEncoder=D.encode.bind(D),this.defaultDecoder=D.decode.bind(D),this.closeWasClean=false,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==_?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;R&&R.addEventListener&&(R.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),s=this.connectClock);}),R.addEventListener("pageshow",i=>{s===this.connectClock&&(s=null,this.connect());})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>t.rejoinAfterMs?t.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>t.reconnectAfterMs?t.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(i,n,r)=>{console.log(`${i}: ${n}`,r);}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=H(t.params||{}),this.endPoint=`${e}/${z.websocket}`,this.vsn=t.vsn||$e,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ce(()=>{this.teardown(()=>this.connect());},this.reconnectAfterMs);}getLongPollTransport(){return _}replaceTransport(e){this.connectClock++,this.closeWasClean=true,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e;}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=x.appendParams(x.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,s){this.connectClock++,this.closeWasClean=true,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(e,t,s);}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=H(e)),!this.conn&&(this.longPollFallbackMs&&this.transport!==_?this.connectWithFallback(_,this.longPollFallbackMs):this.transportConnect());}log(e,t,s){this.logger&&this.logger(e,t,s);}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return false;let t=this.makeRef(),s=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let i=this.onMessage(n=>{n.ref===t&&(this.off([i]),e(Date.now()-s));});return true}transportConnect(){this.connectClock++,this.closeWasClean=false,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e);}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t);}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let s=false,i=true,n,r,a=o=>{this.log("transport",`falling back to ${e.name}...`,o),this.off([n,r]),i=false,this.replaceTransport(e),this.transportConnect();};if(this.getSession(`phx:fallback:${e.name}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),r=this.onError(o=>{this.log("transport","error",o),i&&!s&&(clearTimeout(this.fallbackTimer),a(o));}),this.onOpen(()=>{if(s=true,!i)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${e.name}`,"true"),this.log("transport",`established ${e.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(o=>{this.log("transport","connected to primary after",o),this.primaryPassedHealthCheck=true,clearTimeout(this.fallbackTimer);});}),this.transportConnect();}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer);}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=false,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e());}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=false,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),_e,"heartbeat timeout"));}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs));}teardown(e,t,s){if(!this.conn)return e&&e();this.waitForBufferDone(()=>{this.conn&&(t?this.conn.close(t,s||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e();});});}waitForBufferDone(e,t=1){if(t===5||!this.conn||!this.conn.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(e,t+1);},150*t);}waitForSocketClosed(e,t=1){if(t===5||!this.conn||this.conn.readyState===g.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(e,t+1);},150*t);}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,s])=>s(e));}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,s=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(e,t,s);}),(t===this.transport||s>0)&&this.triggerChanError();}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(v.error);});}connectionState(){switch(this.conn&&this.conn.readyState){case g.connecting:return "connecting";case g.open:return "open";case g.closing:return "closing";default:return "closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e);}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([s])=>e.indexOf(s)===-1);}channel(e,t={}){let s=new Se(e,t,this);return this.channels.push(s),s}push(e){if(this.hasLogger()){let{topic:t,event:s,payload:i,ref:n,join_ref:r}=e;this.log("push",`${t} ${s} (${r}, ${n})`,i);}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)));}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs));}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[]);}onConnMessage(e){this.decode(e.data,t=>{let{topic:s,event:i,payload:n,ref:r,join_ref:a}=t;r&&r===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${s} ${i} ${r&&"("+r+")"||""}`,n);for(let o=0;o<this.channels.length;o++){let l=this.channels[o];l.isMember(s,i,n,a)&&l.trigger(i,n,r,a);}for(let o=0;o<this.stateChangeCallbacks.message.length;o++){let[,l]=this.stateChangeCallbacks.message[o];l(t);}});}leaveOpenTopic(e){let t=this.channels.find(s=>s.topic===e&&(s.isJoined()||s.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave());}};function Le(){return crypto.getRandomValues(new Uint8Array(21)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t<63?"_":"-","")}var y,S,$,O,B,j,c=class{constructor(){d(this,y,void 0),d(this,S,void 0),d(this,$,void 0),d(this,O,false),d(this,B,false),d(this,j,new Map);}static set config(e){c.instance||(c.instance=new c),p(c.instance,S,e.socketPath),p(c.instance,$,e.apiKey);}static connect(){if(c.instance||(c.instance=new c),!h(c.instance,$)&&!h(c.instance,B)&&(console.warn("[metrics]: Set apiKey using `Metrics.config = {apiKey: 'your_key'}`"),p(c.instance,B,true)),!h(c.instance,S)&&!h(c.instance,O)&&(console.warn("[metrics]: Set path using `Metrics.config = {socketPath: 'ws://localhost:3000/socket`}"),p(c.instance,O,true)),!h(c.instance,y)&&window){let e=t=>[1e3,5e3,1e4][t-1]||25e3;p(c.instance,y,new He(h(c.instance,S)||"ws://localhost:3000/socket",{params:{source_url:`${window.location.protocol}//${window.location.host}${window.location.pathname}`,key:h(c.instance,$)},reconnectAfterMs:e,rejoinAfterMs:e})),h(c.instance,y).connect();}return h(c.instance,y)}static startSession(e,t){let s=h(c.instance,j).get(e);if(s)return s;let i=h(c.instance,y).channel(`session:${Le()}`,{...t,source_url:window.location.href,key:h(c.instance,$)});return h(c.instance,j).set(e,i),i.join(),i}static stopSession(e){let t=h(c.instance,j).get(e);t&&(t.leave(),h(c.instance,j).delete(e));}},I=c;y=new WeakMap,S=new WeakMap,$=new WeakMap,O=new WeakMap,B=new WeakMap,j=new WeakMap;var ae=class{static log(e){console.log(`[mave_metrics]: ${e}`);}static error(e){console.error(`[mave_metrics]: ${e}`);}},X=(e=>(e.DURATIONCHANGE="durationchange",e.LOADEDMETADATA="loadedmetadata",e.TIMEUPDATE="timeupdate",e.LOADEDDATA="loadeddata",e.CANPLAY="canplay",e.CANPLAYTHROUGH="canplaythrough",e.SEEKING="seeking",e.SEEKED="seeked",e.RATECHANGE="ratechange",e.VOLUMECHANGE="volumechange",e.PLAYING="playing",e.ENDED="ended",e.PLAY="play",e.PAUSE="pause",e.ERROR="error",e))(X||{}),u,A,C,k,Q,M,Z,le,ee,ue,te,de,N,V,U,K,Pe=class{constructor(...e){d(this,Z),d(this,ee),d(this,te),d(this,N),d(this,U),this.VERSION="0.1.5",this.timeout=1e4,d(this,u,void 0),d(this,A,void 0),d(this,C,void 0),d(this,k,null),this.bufferTimeInterval=50,this.bufferOffset=(this.bufferTimeInterval-40)/1e3,this.fullscreen=false,d(this,Q,void 0),d(this,M,false),e.length<=1?ae.error("Metrics requires at least two arguments: a querySelectorable, hls instance or HTMLMediaElement/HTMLVideoElement and a metadata object to identify your video."):(typeof e[0]=="string"&&(this.querySelectorable=e[0],this.identifier=e[1]),e[0]instanceof HTMLVideoElement||e[0]instanceof HTMLMediaElement?p(this,u,e[0]):typeof e[0]=="object"&&(this.hls=e[0]),e.length==2&&typeof e[1]=="object"?this.metadata=e[1]:this.identifier=e[1],e[2]&&(this.metadata=e[2]),e[3]&&(this.session_data=e[3]));}static set config(e){I.config=e;}monitor(){let e=this.querySelectorable?document.querySelector(this.querySelectorable):this.hls?.media;return h(this,M)?this:(e||h(this,u)?(h(this,u)||p(this,u,e),p(this,A,w(this,Z,le).call(this,h(this,u))),w(this,ee,ue).call(this),p(this,M,true)):ae.error(`${this.querySelectorable} is not a valid reference to a HTMLVideoElement.`),this)}demonitor(){h(this,M)&&(h(this,Q)?.unobserve(h(this,u)),w(this,te,de).call(this),h(this,A)&&h(this,u)&&I.stopSession(h(this,u)));}};u=new WeakMap,A=new WeakMap,C=new WeakMap,k=new WeakMap,Q=new WeakMap,M=new WeakMap,Z=new WeakSet,le=function(e){return I.connect(),I.startSession(e,{identifier:this.identifier,metadata:this.metadata,session_data:this.session_data})},ee=new WeakSet,ue=function(){for(let e of Object.values(X))h(this,u).addEventListener(e,w(this,N,V).bind(this));},te=new WeakSet,de=function(){for(let e of Object.values(X))h(this,u).removeEventListener(e,w(this,N,V).bind(this));},N=new WeakSet,V=function(e){let t={name:e.type,duration:h(this,u)?.duration};switch(e.type){case "playing":if(h(this,k)==="play")break;h(this,A)?.push("event",{...t,name:"play",from:h(this,u)?.currentTime<1?0:w(this,U,K).call(this)},this.timeout),p(this,k,"play");break;case "pause":if(h(this,u)?.readyState===4){if(h(this,k)==="pause")break;h(this,A)?.push("event",{...t,to:w(this,U,K).call(this)},this.timeout);}p(this,k,"pause");break;case "timeupdate":if(h(this,u)?.ended){p(this,C,void 0);break}if(h(this,C)&&!h(this,u).paused&&Math.abs(h(this,u)?.currentTime-h(this,C))>.5){if(h(this,k)==="pause")break;h(this,A)?.push("event",{...t,name:"pause",to:h(this,C)},this.timeout),p(this,k,"pause");}p(this,C,h(this,u)?.currentTime);break}},U=new WeakSet,K=function(){return h(this,u)?.currentTime.toFixed(2)};});var oe=class{constructor(t,{target:s,config:i,callback:n,skipInitial:r}){this.t=new Set,this.o=false,this.i=false,this.h=t,s!==null&&this.t.add(s??t),this.o=r??this.o,this.callback=n,window.IntersectionObserver?(this.u=new IntersectionObserver(a=>{let o=this.i;this.i=false,this.o&&o||(this.handleChanges(a),this.h.requestUpdate());},i),t.addController(this)):console.warn("IntersectionController error: browser does not support IntersectionObserver.");}handleChanges(t){this.value=this.callback?.(t,this.u);}hostConnected(){for(let t of this.t)this.observe(t);}hostDisconnected(){this.disconnect();}async hostUpdated(){let t=this.u.takeRecords();t.length&&this.handleChanges(t);}observe(t){this.t.add(t),this.u.observe(t),this.i=true;}unobserve(t){this.t.delete(t),this.u.unobserve(t);}disconnect(){this.u.disconnect();}};var{I:Xe}=g;var fe=e=>e.strings===void 0;var L=(e,t)=>{let s=e._$AN;if(s===void 0)return false;for(let i of s)i._$AO?.(t,false),L(i,t);return true},W=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t;}while(s?.size===0)},me=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),Ne(t);}};function Oe(e){this._$AN!==void 0?(W(this),this._$AM=e,me(this)):this._$AM=e;}function Be(e,t=false,s=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)L(i[r],false),W(i[r]);else i!=null&&(L(i,false),W(i));else L(this,e);}var Ne=e=>{e.type==a$1.CHILD&&(e._$AP??(e._$AP=Be),e._$AQ??(e._$AQ=Oe));},q=class extends c{constructor(){super(...arguments),this._$AN=void 0;}_$AT(t,s,i){super._$AT(t,s,i),me(this),this.isConnected=t._$AU;}_$AO(t,s=true){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),s&&(L(this,t),W(this));}setValue(t){if(fe(this._$Ct))this._$Ct._$AI(t,this);else {let s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0);}}disconnected(){}reconnected(){}};var ne=new WeakMap,ot=b(class extends q{render(e){return f}update(e,[t]){let s=t!==this.Y;return s&&this.Y!==void 0&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),f}rt(e){if(typeof this.Y=="function"){let t=this.ht??globalThis,s=ne.get(t);s===void 0&&(s=new WeakMap,ne.set(t,s)),s.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),s.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e);}else this.Y.value=e;}get lt(){return typeof this.Y=="function"?ne.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}});/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
lit-html/directive-helpers.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEOHKHSQ3_cjs=require('./chunk-EOHKHSQ3.cjs'),chunk5NSCV6C2_cjs=require('./chunk-5NSCV6C2.cjs');var e=class extends chunkEOHKHSQ3_cjs.a{get poster(){return `${this.cdn_root}/${this.embedId}/poster.webp`}render(){return chunk5NSCV6C2_cjs.c`<img src=${this.poster} />`}};e.styles=chunk5NSCV6C2_cjs.h`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkDITZCOYN_cjs=require('../chunk-DITZCOYN.cjs');require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"MaveAudioTrackMenu",{enumerable:true,get:function(){return chunkDITZCOYN_cjs.P}});Object.defineProperty(exports,"MaveAudioTrackMenuButton",{enumerable:true,get:function(){return chunkDITZCOYN_cjs.Q}});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
+
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
+
|
|
4
|
+
type AudioTrackOption = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
+
#private;
|
|
12
|
+
get tracks(): AudioTrackOption[];
|
|
13
|
+
set tracks(value: AudioTrackOption[]);
|
|
14
|
+
get selected(): string | undefined;
|
|
15
|
+
set selected(id: string | undefined);
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
}
|
|
19
|
+
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
+
#private;
|
|
21
|
+
static getSlotTemplateHTML: () => string;
|
|
22
|
+
static getTooltipContentHTML: () => string;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MediaChromeMenu } from 'media-chrome/dist/menu/media-chrome-menu.js';
|
|
2
|
+
import { MediaChromeMenuButton } from 'media-chrome/dist/menu/media-chrome-menu-button.js';
|
|
3
|
+
|
|
4
|
+
type AudioTrackOption = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
language?: string;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare class MaveAudioTrackMenu extends MediaChromeMenu {
|
|
11
|
+
#private;
|
|
12
|
+
get tracks(): AudioTrackOption[];
|
|
13
|
+
set tracks(value: AudioTrackOption[]);
|
|
14
|
+
get selected(): string | undefined;
|
|
15
|
+
set selected(id: string | undefined);
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
}
|
|
19
|
+
declare class MaveAudioTrackMenuButton extends MediaChromeMenuButton {
|
|
20
|
+
#private;
|
|
21
|
+
static getSlotTemplateHTML: () => string;
|
|
22
|
+
static getTooltipContentHTML: () => string;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
get invokeTargetElement(): HTMLElement | null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { MaveAudioTrackMenu, MaveAudioTrackMenuButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as MaveAudioTrackMenu,Q as MaveAudioTrackMenuButton}from'../chunk-T2P4BAWY.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/clip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkMLZIA6JO_cjs=require('../chunk-MLZIA6JO.cjs');require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-H57FX4I6.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkMLZIA6JO_cjs.a}});
|
package/dist/components/clip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Clip}from'../chunk-
|
|
1
|
+
export{a as Clip}from'../chunk-CHHWULL2.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-3R7TX6NC.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkMSWONVA7_cjs=require('../chunk-MSWONVA7.cjs');require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkMSWONVA7_cjs.a}});
|
package/dist/components/files.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Files}from'../chunk-
|
|
1
|
+
export{a as Files}from'../chunk-7ZRXZY5C.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/img.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZLS57S3I_cjs=require('../chunk-ZLS57S3I.cjs');require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkZLS57S3I_cjs.a}});
|
package/dist/components/img.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Image}from'../chunk-
|
|
1
|
+
export{a as Image}from'../chunk-6XR2OUZW.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/list.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOTRPT6Y4_cjs=require('../chunk-OTRPT6Y4.cjs');require('../chunk-32WXLTTE.cjs'),require('../chunk-STJ6CEFZ.cjs'),require('../chunk-BVMU4ZXD.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-Q22T22LT.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkOTRPT6Y4_cjs.a}});
|
package/dist/components/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as List}from'../chunk-
|
|
1
|
+
export{a as List}from'../chunk-QZSLJNS4.js';import'../chunk-NKEVN7FX.js';import'../chunk-ULZI6OGL.js';import'../chunk-DFLPNNA4.js';import'../chunk-WE5NUDRY.js';import'../chunk-P6SBZPDR.js';import'../chunk-MS5NFI3Q.js';import'../chunk-T2P4BAWY.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkSTJ6CEFZ_cjs=require('../chunk-STJ6CEFZ.cjs');require('../chunk-BVMU4ZXD.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-Q22T22LT.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkSTJ6CEFZ_cjs.a}});
|
|
@@ -46,6 +46,14 @@ declare class Player extends MaveElement {
|
|
|
46
46
|
private _startedPlaying;
|
|
47
47
|
private _themeLoaded;
|
|
48
48
|
private _subtitlesText;
|
|
49
|
+
private _audioTrackCount;
|
|
50
|
+
private _cleanupHlsAudioTracks?;
|
|
51
|
+
private _hlsAudioTracks;
|
|
52
|
+
private _hlsAudioTrackIdMap;
|
|
53
|
+
private _pendingAudioTrackSetup?;
|
|
54
|
+
private _currentAudioTrackMenu?;
|
|
55
|
+
private _themeMutationObserver?;
|
|
56
|
+
private _themeMutationObserverRoot?;
|
|
49
57
|
static styles: lit.CSSResult;
|
|
50
58
|
private _intersectionObserver;
|
|
51
59
|
private embedController;
|
|
@@ -46,6 +46,14 @@ declare class Player extends MaveElement {
|
|
|
46
46
|
private _startedPlaying;
|
|
47
47
|
private _themeLoaded;
|
|
48
48
|
private _subtitlesText;
|
|
49
|
+
private _audioTrackCount;
|
|
50
|
+
private _cleanupHlsAudioTracks?;
|
|
51
|
+
private _hlsAudioTracks;
|
|
52
|
+
private _hlsAudioTrackIdMap;
|
|
53
|
+
private _pendingAudioTrackSetup?;
|
|
54
|
+
private _currentAudioTrackMenu?;
|
|
55
|
+
private _themeMutationObserver?;
|
|
56
|
+
private _themeMutationObserverRoot?;
|
|
49
57
|
static styles: lit.CSSResult;
|
|
50
58
|
private _intersectionObserver;
|
|
51
59
|
private embedController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Player}from'../chunk-
|
|
1
|
+
export{a as Player}from'../chunk-ULZI6OGL.js';import'../chunk-DFLPNNA4.js';import'../chunk-P6SBZPDR.js';import'../chunk-MS5NFI3Q.js';import'../chunk-T2P4BAWY.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/pop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk32WXLTTE_cjs=require('../chunk-32WXLTTE.cjs');require('../chunk-STJ6CEFZ.cjs'),require('../chunk-BVMU4ZXD.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-Q22T22LT.cjs'),require('../chunk-DITZCOYN.cjs'),require('../chunk-KVMGCTLR.cjs'),require('../chunk-SDKTBB4N.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-YT56YDUY.cjs'),require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-EOHKHSQ3.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunk32WXLTTE_cjs.a}});Object.defineProperty(exports,"checkPop",{enumerable:true,get:function(){return chunk32WXLTTE_cjs.b}});
|
package/dist/components/pop.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Pop,b as checkPop}from'../chunk-
|
|
1
|
+
export{a as Pop,b as checkPop}from'../chunk-NKEVN7FX.js';import'../chunk-ULZI6OGL.js';import'../chunk-DFLPNNA4.js';import'../chunk-WE5NUDRY.js';import'../chunk-P6SBZPDR.js';import'../chunk-MS5NFI3Q.js';import'../chunk-T2P4BAWY.js';import'../chunk-XLUB3ATV.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-24TUG5TP.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/components/text.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkB3QILQEE_cjs=require('../chunk-B3QILQEE.cjs');require('../chunk-Q22T22LT.cjs'),require('../chunk-QJHVSRHC.cjs'),require('../chunk-H57FX4I6.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunkB3QILQEE_cjs.a}});
|
package/dist/components/text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Text}from'../chunk-
|
|
1
|
+
export{a as Text}from'../chunk-QSQE5WBN.js';import'../chunk-MS5NFI3Q.js';import'../chunk-ZWTODZDA.js';import'../chunk-3R7TX6NC.js';import'../chunk-MMHEOMF5.js';import'../chunk-LCTGZL3L.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2UJ446RI_cjs=require('../chunk-2UJ446RI.cjs');require('../chunk-FUSQ4EZG.cjs'),require('../chunk-PHGKLFNF.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-Q22T22LT.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-FUBUUA7Y.cjs'),require('../chunk-5NSCV6C2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk2UJ446RI_cjs.a}});
|
|
@@ -27,10 +27,12 @@ declare class Upload extends LitElement {
|
|
|
27
27
|
_completed: boolean;
|
|
28
28
|
_dragging: boolean;
|
|
29
29
|
_error: UploadErrorDetail | null;
|
|
30
|
+
private _hasErrorSlot;
|
|
30
31
|
private embedChannel;
|
|
31
32
|
private fileInput?;
|
|
32
33
|
private playableEmitted;
|
|
33
34
|
private currentEmbed?;
|
|
35
|
+
private slotObserver?;
|
|
34
36
|
private static readonly SUPPORTED_VIDEO_EXTENSIONS;
|
|
35
37
|
private static readonly SUPPORTED_AUDIO_EXTENSIONS;
|
|
36
38
|
private languageController;
|
|
@@ -50,6 +52,7 @@ declare class Upload extends LitElement {
|
|
|
50
52
|
rendition(data: any): void;
|
|
51
53
|
error(error: ErrorMessage): void;
|
|
52
54
|
private isPlayableRendition;
|
|
55
|
+
private updateHasErrorSlot;
|
|
53
56
|
render(): lit_html.TemplateResult<1>;
|
|
54
57
|
styleOpacity(): {
|
|
55
58
|
pointerEvents: string;
|
|
@@ -67,6 +70,8 @@ declare class Upload extends LitElement {
|
|
|
67
70
|
handleActionClick(event: Event): void;
|
|
68
71
|
handleActionKeyDown(event: KeyboardEvent): void;
|
|
69
72
|
blockSubmit(event: Event): void;
|
|
73
|
+
collectFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
|
|
74
|
+
hasSupportedFiles(dataTransfer: DataTransfer): boolean;
|
|
70
75
|
handleDragEnter(event: DragEvent): void;
|
|
71
76
|
handleDragOver(event: DragEvent): void;
|
|
72
77
|
handleDragLeave(event: DragEvent): void;
|
|
@@ -27,10 +27,12 @@ declare class Upload extends LitElement {
|
|
|
27
27
|
_completed: boolean;
|
|
28
28
|
_dragging: boolean;
|
|
29
29
|
_error: UploadErrorDetail | null;
|
|
30
|
+
private _hasErrorSlot;
|
|
30
31
|
private embedChannel;
|
|
31
32
|
private fileInput?;
|
|
32
33
|
private playableEmitted;
|
|
33
34
|
private currentEmbed?;
|
|
35
|
+
private slotObserver?;
|
|
34
36
|
private static readonly SUPPORTED_VIDEO_EXTENSIONS;
|
|
35
37
|
private static readonly SUPPORTED_AUDIO_EXTENSIONS;
|
|
36
38
|
private languageController;
|
|
@@ -50,6 +52,7 @@ declare class Upload extends LitElement {
|
|
|
50
52
|
rendition(data: any): void;
|
|
51
53
|
error(error: ErrorMessage): void;
|
|
52
54
|
private isPlayableRendition;
|
|
55
|
+
private updateHasErrorSlot;
|
|
53
56
|
render(): lit_html.TemplateResult<1>;
|
|
54
57
|
styleOpacity(): {
|
|
55
58
|
pointerEvents: string;
|
|
@@ -67,6 +70,8 @@ declare class Upload extends LitElement {
|
|
|
67
70
|
handleActionClick(event: Event): void;
|
|
68
71
|
handleActionKeyDown(event: KeyboardEvent): void;
|
|
69
72
|
blockSubmit(event: Event): void;
|
|
73
|
+
collectFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
|
|
74
|
+
hasSupportedFiles(dataTransfer: DataTransfer): boolean;
|
|
70
75
|
handleDragEnter(event: DragEvent): void;
|
|
71
76
|
handleDragOver(event: DragEvent): void;
|
|
72
77
|
handleDragLeave(event: DragEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Upload}from'../chunk-
|
|
1
|
+
export{a as Upload}from'../chunk-QNX3YAVY.js';import'../chunk-KNAAIER3.js';import'../chunk-FRPU6QLJ.js';import'../chunk-WE5NUDRY.js';import'../chunk-P6SBZPDR.js';import'../chunk-MS5NFI3Q.js';import'../chunk-MMHEOMF5.js';import'../chunk-HMISRRKC.js';import'../chunk-A4GZBQEB.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/config.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-
|
|
1
|
+
'use strict';var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Config",{enumerable:true,get:function(){return chunk5STN56TL_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});
|
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Config,b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-
|
|
1
|
+
export{a as Config,b as setConfig}from'./chunk-JBV2AYRP.js';import'./chunk-KA24PL7V.js';
|
package/dist/embed/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkZODBVQLM_cjs=require('../chunk-ZODBVQLM.cjs');require('../chunk-5STN56TL.cjs'),require('../chunk-
|
|
1
|
+
'use strict';var chunkZODBVQLM_cjs=require('../chunk-ZODBVQLM.cjs');require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"baseUrl",{enumerable:true,get:function(){return chunkZODBVQLM_cjs.a}});
|
package/dist/embed/api.d.cts
CHANGED
|
@@ -55,6 +55,7 @@ type Embed = {
|
|
|
55
55
|
src: string;
|
|
56
56
|
};
|
|
57
57
|
subtitles: Subtitle[];
|
|
58
|
+
audio_tracks?: AudioTrack[];
|
|
58
59
|
metrics_key: string;
|
|
59
60
|
};
|
|
60
61
|
type Subtitle = {
|
|
@@ -62,6 +63,15 @@ type Subtitle = {
|
|
|
62
63
|
path: string;
|
|
63
64
|
label: string;
|
|
64
65
|
};
|
|
66
|
+
type AudioTrack = {
|
|
67
|
+
filename: string;
|
|
68
|
+
path: string;
|
|
69
|
+
label: string;
|
|
70
|
+
language?: string | null;
|
|
71
|
+
default: boolean;
|
|
72
|
+
codec?: 'mp3' | 'aac' | 'wav' | 'flac' | 'ogg';
|
|
73
|
+
file_size?: number;
|
|
74
|
+
};
|
|
65
75
|
type Collection = {
|
|
66
76
|
id: string;
|
|
67
77
|
name: string;
|
|
@@ -97,4 +107,4 @@ type Caption = {
|
|
|
97
107
|
};
|
|
98
108
|
declare const baseUrl: string;
|
|
99
109
|
|
|
100
|
-
export { type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
|
|
110
|
+
export { type AudioTrack, type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
|
package/dist/embed/api.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ type Embed = {
|
|
|
55
55
|
src: string;
|
|
56
56
|
};
|
|
57
57
|
subtitles: Subtitle[];
|
|
58
|
+
audio_tracks?: AudioTrack[];
|
|
58
59
|
metrics_key: string;
|
|
59
60
|
};
|
|
60
61
|
type Subtitle = {
|
|
@@ -62,6 +63,15 @@ type Subtitle = {
|
|
|
62
63
|
path: string;
|
|
63
64
|
label: string;
|
|
64
65
|
};
|
|
66
|
+
type AudioTrack = {
|
|
67
|
+
filename: string;
|
|
68
|
+
path: string;
|
|
69
|
+
label: string;
|
|
70
|
+
language?: string | null;
|
|
71
|
+
default: boolean;
|
|
72
|
+
codec?: 'mp3' | 'aac' | 'wav' | 'flac' | 'ogg';
|
|
73
|
+
file_size?: number;
|
|
74
|
+
};
|
|
65
75
|
type Collection = {
|
|
66
76
|
id: string;
|
|
67
77
|
name: string;
|
|
@@ -97,4 +107,4 @@ type Caption = {
|
|
|
97
107
|
};
|
|
98
108
|
declare const baseUrl: string;
|
|
99
109
|
|
|
100
|
-
export { type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
|
|
110
|
+
export { type AudioTrack, type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
|
package/dist/embed/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as baseUrl}from'../chunk-F6EKAS27.js';import'../chunk-JBV2AYRP.js';import'../chunk-
|
|
1
|
+
export{a as baseUrl}from'../chunk-F6EKAS27.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/embed/caption.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkQJHVSRHC_cjs=require('../chunk-QJHVSRHC.cjs');require('../chunk-LG2O4WV2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-
|
|
1
|
+
'use strict';var chunkQJHVSRHC_cjs=require('../chunk-QJHVSRHC.cjs');require('../chunk-LG2O4WV2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"CaptionController",{enumerable:true,get:function(){return chunkQJHVSRHC_cjs.a}});
|
package/dist/embed/caption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CaptionController}from'../chunk-ZWTODZDA.js';import'../chunk-LCTGZL3L.js';import'../chunk-JBV2AYRP.js';import'../chunk-
|
|
1
|
+
export{a as CaptionController}from'../chunk-ZWTODZDA.js';import'../chunk-LCTGZL3L.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkYT56YDUY_cjs=require('../chunk-YT56YDUY.cjs');require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-
|
|
1
|
+
'use strict';var chunkYT56YDUY_cjs=require('../chunk-YT56YDUY.cjs');require('../chunk-ZODBVQLM.cjs'),require('../chunk-LG2O4WV2.cjs'),require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"EmbedController",{enumerable:true,get:function(){return chunkYT56YDUY_cjs.b}});Object.defineProperty(exports,"EmbedType",{enumerable:true,get:function(){return chunkYT56YDUY_cjs.a}});
|
package/dist/embed/controller.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as EmbedController,a as EmbedType}from'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-JBV2AYRP.js';import'../chunk-
|
|
1
|
+
export{b as EmbedController,a as EmbedType}from'../chunk-HX6F65VL.js';import'../chunk-F6EKAS27.js';import'../chunk-LCTGZL3L.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
package/dist/embed/socket.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkFUSQ4EZG_cjs=require('../chunk-FUSQ4EZG.cjs');require('../chunk-5STN56TL.cjs'),require('../chunk-JHSFSCC2.cjs');module.exports=chunkFUSQ4EZG_cjs.a;
|
package/dist/embed/socket.d.cts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { Channel } from 'phoenix';
|
|
1
|
+
import { Channel, Socket as Socket$1 } from 'phoenix';
|
|
2
2
|
|
|
3
3
|
interface EmbedChannel {
|
|
4
4
|
token: string;
|
|
5
5
|
channel: Channel;
|
|
6
6
|
upload_id?: string;
|
|
7
|
+
socket?: Socket$1;
|
|
7
8
|
}
|
|
8
9
|
declare class Socket {
|
|
9
|
-
private socket;
|
|
10
|
-
private channels;
|
|
11
|
-
private static instance;
|
|
12
|
-
private constructor();
|
|
13
10
|
static connect(token: string): EmbedChannel;
|
|
11
|
+
static disconnect(embedChannel?: EmbedChannel): Promise<void>;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export { Socket as default };
|
package/dist/embed/socket.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { Channel } from 'phoenix';
|
|
1
|
+
import { Channel, Socket as Socket$1 } from 'phoenix';
|
|
2
2
|
|
|
3
3
|
interface EmbedChannel {
|
|
4
4
|
token: string;
|
|
5
5
|
channel: Channel;
|
|
6
6
|
upload_id?: string;
|
|
7
|
+
socket?: Socket$1;
|
|
7
8
|
}
|
|
8
9
|
declare class Socket {
|
|
9
|
-
private socket;
|
|
10
|
-
private channels;
|
|
11
|
-
private static instance;
|
|
12
|
-
private constructor();
|
|
13
10
|
static connect(token: string): EmbedChannel;
|
|
11
|
+
static disconnect(embedChannel?: EmbedChannel): Promise<void>;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export { Socket as default };
|
package/dist/embed/socket.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../chunk-
|
|
1
|
+
export{a as default}from'../chunk-KNAAIER3.js';import'../chunk-JBV2AYRP.js';import'../chunk-KA24PL7V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s422bb6dceefc6f42:"Bitte warten...",s62a293bba74d7d29:"Upload fehlgeschlagen",s7b43d4f7b98adae3:"Video hier ablegen",s8030578146a104ba:"Erneut versuchen",sbe89d2c461986bef:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",sc5fcbf75e4030312:"Hochladen...",sdc51fb6761fd6e91:"Fertig",sf12a5103628a9670:"Bitte w\xE4hlen Sie eine Video- oder Audiodatei in einem unterst\xFCtzten Format aus.",sf81e3c69132c6256:"Oder durchsuchen Sie Ihre Dateien"};exports.templates=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-
|
|
1
|
+
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"Datei ausw\xE4hlen",s3377775e4a0566a2:"Dateityp wird nicht unterst\xFCtzt",s422bb6dceefc6f42:"Bitte warten...",s62a293bba74d7d29:"Upload fehlgeschlagen",s7b43d4f7b98adae3:"Video hier ablegen",s8030578146a104ba:"Erneut versuchen",sbe89d2c461986bef:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",sc5fcbf75e4030312:"Hochladen...",sdc51fb6761fd6e91:"Fertig",sf12a5103628a9670:"Bitte w\xE4hlen Sie eine Video- oder Audiodatei in einem unterst\xFCtzten Format aus.",sf81e3c69132c6256:"Oder durchsuchen Sie Ihre Dateien"};export{e as templates};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Select file",s3377775e4a0566a2:"Unsupported file type",s422bb6dceefc6f42:"Just a minute...",s62a293bba74d7d29:"Upload failed",s7b43d4f7b98adae3:"Drop video here",s8030578146a104ba:"Try again",sbe89d2c461986bef:"Something went wrong. Please try again.",sc5fcbf75e4030312:"Uploading...",sdc51fb6761fd6e91:"Done",sf12a5103628a9670:"Please choose a video or audio file in a supported format.",sf81e3c69132c6256:"Or browse your files"};exports.templates=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-
|
|
1
|
+
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"Select file",s3377775e4a0566a2:"Unsupported file type",s422bb6dceefc6f42:"Just a minute...",s62a293bba74d7d29:"Upload failed",s7b43d4f7b98adae3:"Drop video here",s8030578146a104ba:"Try again",sbe89d2c461986bef:"Something went wrong. Please try again.",sc5fcbf75e4030312:"Uploading...",sdc51fb6761fd6e91:"Done",sf12a5103628a9670:"Please choose a video or audio file in a supported format.",sf81e3c69132c6256:"Or browse your files"};export{e as templates};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"S\xE9lectionner un fichier",s3377775e4a0566a2:"Type de fichier non pris en charge",s422bb6dceefc6f42:"Un instant...",s62a293bba74d7d29:"\xC9chec du t\xE9l\xE9versement",s7b43d4f7b98adae3:"D\xE9posez la vid\xE9o ici",s8030578146a104ba:"R\xE9essayer",sbe89d2c461986bef:"Une erreur est survenue. Veuillez r\xE9essayer.",sc5fcbf75e4030312:"T\xE9l\xE9versement en cours...",sdc51fb6761fd6e91:"Termin\xE9",sf12a5103628a9670:"Veuillez choisir un fichier vid\xE9o ou audio dans un format pris en charge.",sf81e3c69132c6256:"Ou parcourez vos fichiers"};exports.templates=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-
|
|
1
|
+
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"S\xE9lectionner un fichier",s3377775e4a0566a2:"Type de fichier non pris en charge",s422bb6dceefc6f42:"Un instant...",s62a293bba74d7d29:"\xC9chec du t\xE9l\xE9versement",s7b43d4f7b98adae3:"D\xE9posez la vid\xE9o ici",s8030578146a104ba:"R\xE9essayer",sbe89d2c461986bef:"Une erreur est survenue. Veuillez r\xE9essayer.",sc5fcbf75e4030312:"T\xE9l\xE9versement en cours...",sdc51fb6761fd6e91:"Termin\xE9",sf12a5103628a9670:"Veuillez choisir un fichier vid\xE9o ou audio dans un format pris en charge.",sf81e3c69132c6256:"Ou parcourez vos fichiers"};export{e as templates};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-
|
|
1
|
+
'use strict';require('../../chunk-JHSFSCC2.cjs');var e={s1a2236b3e9a624e9:"Selecteer bestand",s3377775e4a0566a2:"Bestandstype wordt niet ondersteund",s422bb6dceefc6f42:"Nog even geduld...",s62a293bba74d7d29:"Upload mislukt",s7b43d4f7b98adae3:"Plaats video hier",s8030578146a104ba:"Opnieuw proberen",sbe89d2c461986bef:"Er ging iets mis. Probeer het opnieuw.",sc5fcbf75e4030312:"Uploaden...",sdc51fb6761fd6e91:"Klaar",sf12a5103628a9670:"Kies een video- of audiobestand in een ondersteund formaat.",sf81e3c69132c6256:"Of blader door bestanden"};exports.templates=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-
|
|
1
|
+
import'../../chunk-KA24PL7V.js';var e={s1a2236b3e9a624e9:"Selecteer bestand",s3377775e4a0566a2:"Bestandstype wordt niet ondersteund",s422bb6dceefc6f42:"Nog even geduld...",s62a293bba74d7d29:"Upload mislukt",s7b43d4f7b98adae3:"Plaats video hier",s8030578146a104ba:"Opnieuw proberen",sbe89d2c461986bef:"Er ging iets mis. Probeer het opnieuw.",sc5fcbf75e4030312:"Uploaden...",sdc51fb6761fd6e91:"Klaar",sf12a5103628a9670:"Kies een video- of audiobestand in een ondersteund formaat.",sf81e3c69132c6256:"Of blader door bestanden"};export{e as templates};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOTRPT6Y4_cjs=require('./chunk-OTRPT6Y4.cjs'),chunk32WXLTTE_cjs=require('./chunk-32WXLTTE.cjs'),chunkSTJ6CEFZ_cjs=require('./chunk-STJ6CEFZ.cjs');require('./chunk-BVMU4ZXD.cjs');var chunkB3QILQEE_cjs=require('./chunk-B3QILQEE.cjs'),chunk2UJ446RI_cjs=require('./chunk-2UJ446RI.cjs');require('./chunk-FUSQ4EZG.cjs'),require('./chunk-PHGKLFNF.cjs'),require('./chunk-5NKBIUPL.cjs'),require('./chunk-J7OISSKU.cjs'),require('./chunk-Q22T22LT.cjs'),require('./chunk-QJHVSRHC.cjs'),require('./chunk-DITZCOYN.cjs');var chunkMLZIA6JO_cjs=require('./chunk-MLZIA6JO.cjs');require('./chunk-KVMGCTLR.cjs'),require('./chunk-SDKTBB4N.cjs'),require('./chunk-H57FX4I6.cjs'),require('./chunk-RRCW5BBR.cjs');var chunkMSWONVA7_cjs=require('./chunk-MSWONVA7.cjs');require('./chunk-YT56YDUY.cjs'),require('./chunk-ZODBVQLM.cjs'),require('./chunk-LG2O4WV2.cjs');var chunkZLS57S3I_cjs=require('./chunk-ZLS57S3I.cjs');require('./chunk-EOHKHSQ3.cjs'),require('./chunk-FUBUUA7Y.cjs'),require('./chunk-5NSCV6C2.cjs');var chunk5STN56TL_cjs=require('./chunk-5STN56TL.cjs');require('./chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"List",{enumerable:true,get:function(){return chunkOTRPT6Y4_cjs.a}});Object.defineProperty(exports,"Pop",{enumerable:true,get:function(){return chunk32WXLTTE_cjs.a}});Object.defineProperty(exports,"Player",{enumerable:true,get:function(){return chunkSTJ6CEFZ_cjs.a}});Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunkB3QILQEE_cjs.a}});Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk2UJ446RI_cjs.a}});Object.defineProperty(exports,"Clip",{enumerable:true,get:function(){return chunkMLZIA6JO_cjs.a}});Object.defineProperty(exports,"Files",{enumerable:true,get:function(){return chunkMSWONVA7_cjs.a}});Object.defineProperty(exports,"Image",{enumerable:true,get:function(){return chunkZLS57S3I_cjs.a}});Object.defineProperty(exports,"setConfig",{enumerable:true,get:function(){return chunk5STN56TL_cjs.b}});
|