@mrksbnc/livekit-vue 0.0.1 → 0.0.2
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/index.css +1 -0
- package/dist/livekit-vue.js +20559 -0
- package/dist/livekit-vue.umd.cjs +62 -0
- package/dist/src/assets/index.d.ts +0 -0
- package/dist/src/components/controls/TrackToggle.vue.d.ts +15 -0
- package/dist/src/components/controls/buttons.d.ts +4 -0
- package/dist/src/components/controls/index.d.ts +3 -0
- package/dist/src/components/controls/track_toggle.d.ts +12 -0
- package/dist/src/components/icons/ParticipantPlaceholderIcon.vue.d.ts +2 -0
- package/dist/src/components/icons/TrackIcon.vue.d.ts +7 -0
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/participant/audio_track.d.ts +7 -0
- package/dist/src/composables/index.d.ts +37 -0
- package/dist/src/composables/private/useObservableState.d.ts +8 -0
- package/dist/src/composables/useAudioPlayback.d.ts +11 -0
- package/dist/src/composables/useClearPinButton.d.ts +5 -0
- package/dist/src/composables/useConnectionQualityIndicator.d.ts +10 -0
- package/dist/src/composables/useConnectionState.d.ts +3 -0
- package/dist/src/composables/useDataChannel.d.ts +15 -0
- package/dist/src/composables/useDisconnectButton.d.ts +5 -0
- package/dist/src/composables/useFacingMode.d.ts +10 -0
- package/dist/src/composables/useFocusToggle.d.ts +11 -0
- package/dist/src/composables/useGridLayout.d.ts +10 -0
- package/dist/src/composables/useIsEncrypted.d.ts +8 -0
- package/dist/src/composables/useIsMuted.d.ts +7 -0
- package/dist/src/composables/useIsRecording.d.ts +5 -0
- package/dist/src/composables/useIsSpeaking.d.ts +5 -0
- package/dist/src/composables/useLiveKitRoom.d.ts +8 -0
- package/dist/src/composables/useLocalParticipant.d.ts +16 -0
- package/dist/src/composables/useParticipantTile.d.ts +11 -0
- package/dist/src/composables/useParticipantTracks.d.ts +4 -0
- package/dist/src/composables/useParticipants.d.ts +7 -0
- package/dist/src/composables/usePersistentUserChoices.d.ts +16 -0
- package/dist/src/composables/usePinnedTracks.d.ts +4 -0
- package/dist/src/composables/useRemoteParticipant.d.ts +7 -0
- package/dist/src/composables/useRemoteParticipants.d.ts +7 -0
- package/dist/src/composables/useRoomInfo.d.ts +13 -0
- package/dist/src/composables/useSortedParticipants.d.ts +3 -0
- package/dist/src/composables/useSpeakingParticipants.d.ts +3 -0
- package/dist/src/composables/useStartAudio.d.ts +11 -0
- package/dist/src/composables/useStartVideo.d.ts +11 -0
- package/dist/src/composables/useToken.d.ts +10 -0
- package/dist/src/composables/useTrack.d.ts +3 -0
- package/dist/src/composables/useTrackByName.d.ts +3 -0
- package/dist/src/composables/useTrackMutedIndicator.d.ts +6 -0
- package/dist/src/composables/useTrackRefBySourceOrName.d.ts +4 -0
- package/dist/src/composables/useTrackSyncTime.d.ts +6 -0
- package/dist/src/composables/useTrackToggle.d.ts +21 -0
- package/dist/src/composables/useTrackVolume.d.ts +28 -0
- package/dist/src/composables/useTracks.d.ts +10 -0
- package/dist/src/composables/useVisualStableUpdate.d.ts +8 -0
- package/dist/src/context/index.d.ts +6 -0
- package/dist/src/context/layout.context.d.ts +28 -0
- package/dist/src/context/participant.context.d.ts +9 -0
- package/dist/src/context/pin.context.d.ts +26 -0
- package/dist/src/context/room.context.d.ts +9 -0
- package/dist/src/context/track_reference.context.d.ts +6 -0
- package/dist/src/context/widget.context.d.ts +7 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/types/livekit_room.types.d.ts +68 -0
- package/dist/src/utils/room.utils.d.ts +1 -0
- package/package.json +9 -7
- package/dist/ParticipantPlaceholderIcon.vue_vue_type_script_setup_true_lang-BIDtlT6r.cjs +0 -1
- package/dist/ParticipantPlaceholderIcon.vue_vue_type_script_setup_true_lang-CMBc-QML.js +0 -212
- package/dist/components.cjs.js +0 -1
- package/dist/components.es.js +0 -6
- package/dist/composables.cjs.js +0 -1
- package/dist/composables.es.js +0 -45
- package/dist/context.cjs.js +0 -1
- package/dist/context.es.js +0 -27
- package/dist/index.cjs +0 -1
- package/dist/index.mjs +0 -74
- package/dist/main.css +0 -1
- package/dist/track_reference.context-Bwqjk26y.cjs +0 -1
- package/dist/track_reference.context-D37W7Ir4.js +0 -145
- package/dist/useTrackToggle-DKW8l6WW.cjs +0 -1
- package/dist/useTrackToggle-bvyWWAau.js +0 -81
- package/dist/useVisualStableUpdate-BHGD1D94.js +0 -924
- package/dist/useVisualStableUpdate-BkiUTxKc.cjs +0 -1
- package/src/App.vue +0 -16
- package/src/main.ts +0 -6
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { AudioCaptureOptions, DisconnectReason, MediaDeviceFailure, Room, RoomConnectOptions, RoomOptions, ScreenShareCaptureOptions, VideoCaptureOptions } from 'livekit-client';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
export type LiveKitRoomProps = {
|
|
4
|
+
/**
|
|
5
|
+
* URL to the LiveKit server.
|
|
6
|
+
* For example: `wss://<domain>.livekit.cloud`
|
|
7
|
+
* To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string url can the connection be established.
|
|
8
|
+
*/
|
|
9
|
+
serverUrl: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* A user specific access token for a client to authenticate to the room.
|
|
12
|
+
* This token is necessary to establish a connection to the room.
|
|
13
|
+
* To simplify the implementation, `undefined` is also accepted as an intermediate value, but only with a valid string token can the connection be established.
|
|
14
|
+
*
|
|
15
|
+
* @see https://docs.livekit.io/cloud/project-management/keys-and-tokens/#generating-access-tokens
|
|
16
|
+
*/
|
|
17
|
+
token: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Publish audio immediately after connecting to your LiveKit room.
|
|
20
|
+
* @defaultValue `false`
|
|
21
|
+
* @see https://docs.livekit.io/client-sdk-js/interfaces/AudioCaptureOptions.html
|
|
22
|
+
*/
|
|
23
|
+
audio?: AudioCaptureOptions | boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Publish video immediately after connecting to your LiveKit room.
|
|
26
|
+
* @defaultValue `false`
|
|
27
|
+
* @see https://docs.livekit.io/client-sdk-js/interfaces/VideoCaptureOptions.html
|
|
28
|
+
*/
|
|
29
|
+
video?: VideoCaptureOptions | boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Publish screen share immediately after connecting to your LiveKit room.
|
|
32
|
+
* @defaultValue `false`
|
|
33
|
+
* @see https://docs.livekit.io/client-sdk-js/interfaces/ScreenShareCaptureOptions.html
|
|
34
|
+
*/
|
|
35
|
+
screen?: ScreenShareCaptureOptions | boolean;
|
|
36
|
+
/**
|
|
37
|
+
* If set to true a connection to LiveKit room is initiated.
|
|
38
|
+
* @defaultValue `true`
|
|
39
|
+
*/
|
|
40
|
+
connect?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Options for when creating a new room.
|
|
43
|
+
* When you pass your own room instance to this component, these options have no effect.
|
|
44
|
+
* Instead, set the options directly in the room instance.
|
|
45
|
+
*
|
|
46
|
+
* @see https://docs.livekit.io/client-sdk-js/interfaces/RoomOptions.html
|
|
47
|
+
*/
|
|
48
|
+
options?: RoomOptions;
|
|
49
|
+
/**
|
|
50
|
+
* Define options how to connect to the LiveKit server.
|
|
51
|
+
*
|
|
52
|
+
* @see https://docs.livekit.io/client-sdk-js/interfaces/RoomConnectOptions.html
|
|
53
|
+
*/
|
|
54
|
+
connectOptions?: RoomConnectOptions;
|
|
55
|
+
/**
|
|
56
|
+
* Optional room instance.
|
|
57
|
+
* By passing your own room instance you overwrite the `options` parameter,
|
|
58
|
+
* make sure to set the options directly on the room instance itself.
|
|
59
|
+
*/
|
|
60
|
+
room?: Room;
|
|
61
|
+
simulateParticipants?: number | undefined;
|
|
62
|
+
htmlProps?: HTMLAttributes;
|
|
63
|
+
onConnected?: () => void;
|
|
64
|
+
onDisconnected?: (reason?: DisconnectReason) => void;
|
|
65
|
+
onError?: (error: Error) => void;
|
|
66
|
+
onMediaDeviceFailure?: (failure?: MediaDeviceFailure) => void;
|
|
67
|
+
onEncryptionError?: (error: Error) => void;
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function roomOptionsStringifyReplacer(key: string, val: unknown): unknown;
|
package/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrksbnc/livekit-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"types": "./dist/src/index.d.ts",
|
|
9
|
+
"import": "./dist/livekit-vue.js",
|
|
10
|
+
"require": "./dist/livekit-vue.umd.cjs"
|
|
10
11
|
},
|
|
11
12
|
"./index.css": {
|
|
12
13
|
"import": "./dist/index.css",
|
|
13
14
|
"require": "./dist/index.css"
|
|
14
15
|
},
|
|
15
16
|
"./composables": {
|
|
16
|
-
"import": "./dist/composables.
|
|
17
|
-
"require": "./dist/composables.cjs"
|
|
17
|
+
"import": "./dist/composables.js",
|
|
18
|
+
"require": "./dist/composables.umd.cjs"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
|
-
"main": "dist/
|
|
21
|
-
"module": "dist/
|
|
21
|
+
"main": "dist/livekit-vue.umd.cjs",
|
|
22
|
+
"module": "dist/livekit-vue.js",
|
|
23
|
+
"types": "dist/src/index.d.ts",
|
|
22
24
|
"files": [
|
|
23
25
|
"dist",
|
|
24
26
|
"src"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue");require("./track_reference.context-Bwqjk26y.cjs");require("@livekit/components-core");require("rxjs");const c=require("livekit-client"),u=require("./useTrackToggle-DKW8l6WW.cjs"),d={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"mic-off",viewBox:"0 0 24 24"};function h(n,o){return e.openBlock(),e.createElementBlock("svg",d,o[0]||(o[0]=[e.createElementVNode("path",{d:"m1 1 22 22M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"},null,-1),e.createElementVNode("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23M12 19v4M8 23h8"},null,-1)]))}const p={render:h},m={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"mic",viewBox:"0 0 24 24"};function k(n,o){return e.openBlock(),e.createElementBlock("svg",m,o[0]||(o[0]=[e.createElementVNode("path",{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3"},null,-1),e.createElementVNode("path",{d:"M19 10v2a7 7 0 0 1-14 0v-2M12 19v4M8 23h8"},null,-1)]))}const v={render:k},f={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",class:"share-screen-off",viewBox:"0 0 24 24"};function w(n,o){return e.openBlock(),e.createElementBlock("svg",f,o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",d:"m9.4 15.654 2.6-2.6 2.6 2.6 1.054-1.054-2.6-2.6 2.6-2.6L14.6 8.346l-2.6 2.6-2.6-2.6L8.346 9.4l2.6 2.6-2.6 2.6zM4.308 19.5q-.758 0-1.283-.525a1.75 1.75 0 0 1-.525-1.283V6.308q0-.758.525-1.283T4.308 4.5h15.384q.758 0 1.283.525t.525 1.283v11.384q0 .758-.525 1.283t-1.283.525zm0-1.5h15.384a.3.3 0 0 0 .212-.096.3.3 0 0 0 .096-.212V6.308a.3.3 0 0 0-.096-.212.3.3 0 0 0-.212-.096H4.308a.3.3 0 0 0-.212.096.3.3 0 0 0-.096.212v11.384q0 .116.096.212a.3.3 0 0 0 .212.096"},null,-1)]))}const g={render:w},B={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",class:"share-screen",viewBox:"0 0 20 20"};function _(n,o){return e.openBlock(),e.createElementBlock("svg",B,o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M9.375 13.045h1.25V9.362l1.542 1.529.89-.891L10 6.955 6.955 10l.891.878 1.53-1.529zM3.59 16.25q-.631 0-1.069-.437a1.45 1.45 0 0 1-.437-1.07V5.256q0-.63.437-1.069A1.45 1.45 0 0 1 3.59 3.75h12.82q.632 0 1.07.438.437.437.437 1.068v9.488q0 .63-.438 1.069a1.45 1.45 0 0 1-1.069.437zm0-1.25h12.82a.24.24 0 0 0 .177-.08.24.24 0 0 0 .08-.177V5.256a.24.24 0 0 0-.08-.176.25.25 0 0 0-.177-.08H3.59a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v9.488q0 .096.08.176t.176.08"},null,-1)]))}const C={render:_},x={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"video-off",viewBox:"0 0 24 24"};function V(n,o){return e.openBlock(),e.createElementBlock("svg",x,o[0]||(o[0]=[e.createElementVNode("path",{d:"M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10M1 1l22 22"},null,-1)]))}const E={render:V},M={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",class:"video",viewBox:"0 0 24 24"};function y(n,o){return e.openBlock(),e.createElementBlock("svg",M,o[0]||(o[0]=[e.createElementVNode("path",{d:"m23 7-7 5 7 5z"},null,-1),e.createElementVNode("rect",{width:"15",height:"14",x:"1",y:"5",rx:"2",ry:"2"},null,-1)]))}const $={render:y},b={key:6,class:"track-icon__none"},i=e.defineComponent({__name:"TrackIcon",props:{source:{},enabled:{type:Boolean}},setup(n){const o=n,t=e.computed(()=>{switch(o.source){case c.Track.Source.Camera:return o.enabled?"camera":"camera-disabled";case c.Track.Source.Microphone:return o.enabled?"microphone":"microphone-disabled";case c.Track.Source.ScreenShare:return o.enabled?"screen-share":"screen-share-disabled";default:return"none"}}),r=e.computed(()=>"track-icon w-4 h-4 flex items-center justify-center");return(a,l)=>t.value==="camera"?(e.openBlock(),e.createBlock(e.unref($),{key:0,class:e.normalizeClass(r.value)},null,8,["class"])):t.value==="camera-disabled"?(e.openBlock(),e.createBlock(e.unref(E),{key:1,class:e.normalizeClass(r.value)},null,8,["class"])):t.value==="microphone"?(e.openBlock(),e.createBlock(e.unref(v),{key:2,class:e.normalizeClass(r.value)},null,8,["class"])):t.value==="microphone-disabled"?(e.openBlock(),e.createBlock(e.unref(p),{key:3,class:e.normalizeClass(r.value)},null,8,["class"])):t.value==="screen-share"?(e.openBlock(),e.createBlock(e.unref(C),{key:4,class:e.normalizeClass(r.value)},null,8,["class"])):t.value==="screen-share-disabled"?(e.openBlock(),e.createBlock(e.unref(g),{key:5,class:e.normalizeClass(r.value)},null,8,["class"])):(e.openBlock(),e.createElementBlock("span",b))}}),q={key:0},S=e.defineComponent({__name:"TrackToggle",props:{source:{},showIcon:{type:Boolean},initialState:{type:Boolean},captureOptions:{},publishOptions:{},onChange:{type:Function},onDeviceError:{type:Function},customOnClickHandler:{type:Function}},setup(n){const o=n,t=u.useTrackToggle(o),{buttonProps:r,enabled:a}=e.toRefs(t),l=e.ref(!1);return e.onMounted(()=>{l.value=!0}),(s,P)=>l.value?(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:0},e.unref(r),{class:"track-toggle"}),[s.showIcon?(e.openBlock(),e.createElementBlock("span",q,[e.createVNode(i,{enabled:e.unref(a),source:s.source},null,8,["enabled","source"])])):e.createCommentVNode("",!0)],16)):e.createCommentVNode("",!0)}}),N={xmlns:"http://www.w3.org/2000/svg",width:"auto",height:"auto",fill:"none",viewBox:"0 0 320 320"};function T(n,o){return e.openBlock(),e.createElementBlock("svg",N,o[0]||(o[0]=[e.createElementVNode("path",{fill:"currentColor",d:"M160 180c44.182 0 80-35.817 80-80s-35.818-80-80-80-80 35.817-80 80 35.817 80 80 80M97.654 194.614c5.613-2.796 12.187-2.133 17.865.527 13.506 6.325 28.581 9.859 44.48 9.859 15.9 0 30.974-3.534 44.481-9.859 5.678-2.66 12.252-3.323 17.865-.527 40.358 20.105 69.64 59.122 76.246 105.448C300.15 310.997 291.045 320 280 320H40c-11.046 0-20.15-9.003-18.591-19.938 6.605-46.326 35.888-85.342 76.245-105.448"},null,-1)]))}const z={render:T},H=e.defineComponent({__name:"ParticipantPlaceholderIcon",setup(n){return(o,t)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(z))))}});exports._sfc_main=S;exports._sfc_main$1=H;exports._sfc_main$2=i;
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as t, openBlock as o, createElementVNode as r, defineComponent as h, computed as m, createBlock as c, unref as a, normalizeClass as i, toRefs as g, ref as f, onMounted as _, createCommentVNode as w, mergeProps as k, createVNode as x, resolveDynamicComponent as M } from "vue";
|
|
2
|
-
import "./track_reference.context-D37W7Ir4.js";
|
|
3
|
-
import "@livekit/components-core";
|
|
4
|
-
import "rxjs";
|
|
5
|
-
import { Track as d } from "livekit-client";
|
|
6
|
-
import { u as y } from "./useTrackToggle-bvyWWAau.js";
|
|
7
|
-
const b = {
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
width: "auto",
|
|
10
|
-
height: "auto",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
"stroke-linecap": "round",
|
|
14
|
-
"stroke-linejoin": "round",
|
|
15
|
-
"stroke-width": "2",
|
|
16
|
-
class: "mic-off",
|
|
17
|
-
viewBox: "0 0 24 24"
|
|
18
|
-
};
|
|
19
|
-
function C(n, e) {
|
|
20
|
-
return o(), t("svg", b, e[0] || (e[0] = [
|
|
21
|
-
r("path", { d: "m1 1 22 22M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6" }, null, -1),
|
|
22
|
-
r("path", { d: "M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23M12 19v4M8 23h8" }, null, -1)
|
|
23
|
-
]));
|
|
24
|
-
}
|
|
25
|
-
const S = { render: C }, $ = {
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
width: "auto",
|
|
28
|
-
height: "auto",
|
|
29
|
-
fill: "none",
|
|
30
|
-
stroke: "currentColor",
|
|
31
|
-
"stroke-linecap": "round",
|
|
32
|
-
"stroke-linejoin": "round",
|
|
33
|
-
"stroke-width": "2",
|
|
34
|
-
class: "mic",
|
|
35
|
-
viewBox: "0 0 24 24"
|
|
36
|
-
};
|
|
37
|
-
function B(n, e) {
|
|
38
|
-
return o(), t("svg", $, e[0] || (e[0] = [
|
|
39
|
-
r("path", { d: "M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3" }, null, -1),
|
|
40
|
-
r("path", { d: "M19 10v2a7 7 0 0 1-14 0v-2M12 19v4M8 23h8" }, null, -1)
|
|
41
|
-
]));
|
|
42
|
-
}
|
|
43
|
-
const V = { render: B }, q = {
|
|
44
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
-
width: "auto",
|
|
46
|
-
height: "auto",
|
|
47
|
-
fill: "none",
|
|
48
|
-
class: "share-screen-off",
|
|
49
|
-
viewBox: "0 0 24 24"
|
|
50
|
-
};
|
|
51
|
-
function T(n, e) {
|
|
52
|
-
return o(), t("svg", q, e[0] || (e[0] = [
|
|
53
|
-
r("path", {
|
|
54
|
-
fill: "currentColor",
|
|
55
|
-
d: "m9.4 15.654 2.6-2.6 2.6 2.6 1.054-1.054-2.6-2.6 2.6-2.6L14.6 8.346l-2.6 2.6-2.6-2.6L8.346 9.4l2.6 2.6-2.6 2.6zM4.308 19.5q-.758 0-1.283-.525a1.75 1.75 0 0 1-.525-1.283V6.308q0-.758.525-1.283T4.308 4.5h15.384q.758 0 1.283.525t.525 1.283v11.384q0 .758-.525 1.283t-1.283.525zm0-1.5h15.384a.3.3 0 0 0 .212-.096.3.3 0 0 0 .096-.212V6.308a.3.3 0 0 0-.096-.212.3.3 0 0 0-.212-.096H4.308a.3.3 0 0 0-.212.096.3.3 0 0 0-.096.212v11.384q0 .116.096.212a.3.3 0 0 0 .212.096"
|
|
56
|
-
}, null, -1)
|
|
57
|
-
]));
|
|
58
|
-
}
|
|
59
|
-
const z = { render: T }, H = {
|
|
60
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
61
|
-
width: "auto",
|
|
62
|
-
height: "auto",
|
|
63
|
-
fill: "none",
|
|
64
|
-
class: "share-screen",
|
|
65
|
-
viewBox: "0 0 20 20"
|
|
66
|
-
};
|
|
67
|
-
function P(n, e) {
|
|
68
|
-
return o(), t("svg", H, e[0] || (e[0] = [
|
|
69
|
-
r("path", {
|
|
70
|
-
fill: "currentColor",
|
|
71
|
-
d: "M9.375 13.045h1.25V9.362l1.542 1.529.89-.891L10 6.955 6.955 10l.891.878 1.53-1.529zM3.59 16.25q-.631 0-1.069-.437a1.45 1.45 0 0 1-.437-1.07V5.256q0-.63.437-1.069A1.45 1.45 0 0 1 3.59 3.75h12.82q.632 0 1.07.438.437.437.437 1.068v9.488q0 .63-.438 1.069a1.45 1.45 0 0 1-1.069.437zm0-1.25h12.82a.24.24 0 0 0 .177-.08.24.24 0 0 0 .08-.177V5.256a.24.24 0 0 0-.08-.176.25.25 0 0 0-.177-.08H3.59a.25.25 0 0 0-.176.08.25.25 0 0 0-.08.176v9.488q0 .096.08.176t.176.08"
|
|
72
|
-
}, null, -1)
|
|
73
|
-
]));
|
|
74
|
-
}
|
|
75
|
-
const j = { render: P }, I = {
|
|
76
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
77
|
-
width: "auto",
|
|
78
|
-
height: "auto",
|
|
79
|
-
fill: "none",
|
|
80
|
-
stroke: "currentColor",
|
|
81
|
-
"stroke-linecap": "round",
|
|
82
|
-
"stroke-linejoin": "round",
|
|
83
|
-
"stroke-width": "2",
|
|
84
|
-
class: "video-off",
|
|
85
|
-
viewBox: "0 0 24 24"
|
|
86
|
-
};
|
|
87
|
-
function O(n, e) {
|
|
88
|
-
return o(), t("svg", I, e[0] || (e[0] = [
|
|
89
|
-
r("path", { d: "M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10M1 1l22 22" }, null, -1)
|
|
90
|
-
]));
|
|
91
|
-
}
|
|
92
|
-
const L = { render: O }, D = {
|
|
93
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
width: "auto",
|
|
95
|
-
height: "auto",
|
|
96
|
-
fill: "none",
|
|
97
|
-
stroke: "currentColor",
|
|
98
|
-
"stroke-linecap": "round",
|
|
99
|
-
"stroke-linejoin": "round",
|
|
100
|
-
"stroke-width": "2",
|
|
101
|
-
class: "video",
|
|
102
|
-
viewBox: "0 0 24 24"
|
|
103
|
-
};
|
|
104
|
-
function E(n, e) {
|
|
105
|
-
return o(), t("svg", D, e[0] || (e[0] = [
|
|
106
|
-
r("path", { d: "m23 7-7 5 7 5z" }, null, -1),
|
|
107
|
-
r("rect", {
|
|
108
|
-
width: "15",
|
|
109
|
-
height: "14",
|
|
110
|
-
x: "1",
|
|
111
|
-
y: "5",
|
|
112
|
-
rx: "2",
|
|
113
|
-
ry: "2"
|
|
114
|
-
}, null, -1)
|
|
115
|
-
]));
|
|
116
|
-
}
|
|
117
|
-
const F = { render: E }, N = {
|
|
118
|
-
key: 6,
|
|
119
|
-
class: "track-icon__none"
|
|
120
|
-
}, A = /* @__PURE__ */ h({
|
|
121
|
-
__name: "TrackIcon",
|
|
122
|
-
props: {
|
|
123
|
-
source: {},
|
|
124
|
-
enabled: { type: Boolean }
|
|
125
|
-
},
|
|
126
|
-
setup(n) {
|
|
127
|
-
const e = n, s = m(() => {
|
|
128
|
-
switch (e.source) {
|
|
129
|
-
case d.Source.Camera:
|
|
130
|
-
return e.enabled ? "camera" : "camera-disabled";
|
|
131
|
-
case d.Source.Microphone:
|
|
132
|
-
return e.enabled ? "microphone" : "microphone-disabled";
|
|
133
|
-
case d.Source.ScreenShare:
|
|
134
|
-
return e.enabled ? "screen-share" : "screen-share-disabled";
|
|
135
|
-
default:
|
|
136
|
-
return "none";
|
|
137
|
-
}
|
|
138
|
-
}), l = m(() => (
|
|
139
|
-
/*tw*/
|
|
140
|
-
"track-icon w-4 h-4 flex items-center justify-center"
|
|
141
|
-
));
|
|
142
|
-
return (p, u) => s.value === "camera" ? (o(), c(a(F), {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: i(l.value)
|
|
145
|
-
}, null, 8, ["class"])) : s.value === "camera-disabled" ? (o(), c(a(L), {
|
|
146
|
-
key: 1,
|
|
147
|
-
class: i(l.value)
|
|
148
|
-
}, null, 8, ["class"])) : s.value === "microphone" ? (o(), c(a(V), {
|
|
149
|
-
key: 2,
|
|
150
|
-
class: i(l.value)
|
|
151
|
-
}, null, 8, ["class"])) : s.value === "microphone-disabled" ? (o(), c(a(S), {
|
|
152
|
-
key: 3,
|
|
153
|
-
class: i(l.value)
|
|
154
|
-
}, null, 8, ["class"])) : s.value === "screen-share" ? (o(), c(a(j), {
|
|
155
|
-
key: 4,
|
|
156
|
-
class: i(l.value)
|
|
157
|
-
}, null, 8, ["class"])) : s.value === "screen-share-disabled" ? (o(), c(a(z), {
|
|
158
|
-
key: 5,
|
|
159
|
-
class: i(l.value)
|
|
160
|
-
}, null, 8, ["class"])) : (o(), t("span", N));
|
|
161
|
-
}
|
|
162
|
-
}), R = { key: 0 }, oe = /* @__PURE__ */ h({
|
|
163
|
-
__name: "TrackToggle",
|
|
164
|
-
props: {
|
|
165
|
-
source: {},
|
|
166
|
-
showIcon: { type: Boolean },
|
|
167
|
-
initialState: { type: Boolean },
|
|
168
|
-
captureOptions: {},
|
|
169
|
-
publishOptions: {},
|
|
170
|
-
onChange: { type: Function },
|
|
171
|
-
onDeviceError: { type: Function },
|
|
172
|
-
customOnClickHandler: { type: Function }
|
|
173
|
-
},
|
|
174
|
-
setup(n) {
|
|
175
|
-
const s = y(n), { buttonProps: l, enabled: p } = g(s), u = f(!1);
|
|
176
|
-
return _(() => {
|
|
177
|
-
u.value = !0;
|
|
178
|
-
}), (v, Q) => u.value ? (o(), t("button", k({ key: 0 }, a(l), { class: "track-toggle" }), [
|
|
179
|
-
v.showIcon ? (o(), t("span", R, [
|
|
180
|
-
x(A, {
|
|
181
|
-
enabled: a(p),
|
|
182
|
-
source: v.source
|
|
183
|
-
}, null, 8, ["enabled", "source"])
|
|
184
|
-
])) : w("", !0)
|
|
185
|
-
], 16)) : w("", !0);
|
|
186
|
-
}
|
|
187
|
-
}), G = {
|
|
188
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
189
|
-
width: "auto",
|
|
190
|
-
height: "auto",
|
|
191
|
-
fill: "none",
|
|
192
|
-
viewBox: "0 0 320 320"
|
|
193
|
-
};
|
|
194
|
-
function J(n, e) {
|
|
195
|
-
return o(), t("svg", G, e[0] || (e[0] = [
|
|
196
|
-
r("path", {
|
|
197
|
-
fill: "currentColor",
|
|
198
|
-
d: "M160 180c44.182 0 80-35.817 80-80s-35.818-80-80-80-80 35.817-80 80 35.817 80 80 80M97.654 194.614c5.613-2.796 12.187-2.133 17.865.527 13.506 6.325 28.581 9.859 44.48 9.859 15.9 0 30.974-3.534 44.481-9.859 5.678-2.66 12.252-3.323 17.865-.527 40.358 20.105 69.64 59.122 76.246 105.448C300.15 310.997 291.045 320 280 320H40c-11.046 0-20.15-9.003-18.591-19.938 6.605-46.326 35.888-85.342 76.245-105.448"
|
|
199
|
-
}, null, -1)
|
|
200
|
-
]));
|
|
201
|
-
}
|
|
202
|
-
const K = { render: J }, ne = /* @__PURE__ */ h({
|
|
203
|
-
__name: "ParticipantPlaceholderIcon",
|
|
204
|
-
setup(n) {
|
|
205
|
-
return (e, s) => (o(), c(M(a(K))));
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
export {
|
|
209
|
-
oe as _,
|
|
210
|
-
ne as a,
|
|
211
|
-
A as b
|
|
212
|
-
};
|
package/dist/components.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ParticipantPlaceholderIcon.vue_vue_type_script_setup_true_lang-BIDtlT6r.cjs");exports.ParticipantPlaceholderIcon=e._sfc_main$1;exports.TrackIcon=e._sfc_main$2;exports.TrackToggle=e._sfc_main;
|
package/dist/components.es.js
DELETED
package/dist/composables.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useVisualStableUpdate-BkiUTxKc.cjs"),s=require("./useTrackToggle-DKW8l6WW.cjs");exports.FacingMode=e.FacingMode;exports.requiredPlaceholders=e.requiredPlaceholders;exports.useAudioPlayback=e.useAudioPlayback;exports.useAudioWaveform=e.useAudioWaveform;exports.useClearPinButton=e.useClearPinButton;exports.useConnectionQualityIndicator=e.useConnectionQualityIndicator;exports.useConnectionState=e.useConnectionState;exports.useDataChannel=e.useDataChannel;exports.useDisconnectButton=e.useDisconnectButton;exports.useFacingMode=e.useFacingMode;exports.useFocusToggle=e.useFocusToggle;exports.useGridLayout=e.useGridLayout;exports.useIsEncrypted=e.useIsEncrypted;exports.useIsMuted=e.useIsMuted;exports.useIsRecording=e.useIsRecording;exports.useIsSpeaking=e.useIsSpeaking;exports.useLiveKitRoom=e.useLiveKitRoom;exports.useLocalParticipant=e.useLocalParticipant;exports.useMultibandTrackVolume=e.useMultibandTrackVolume;exports.useParticipantTile=e.useParticipantTile;exports.useParticipantTracks=e.useParticipantTracks;exports.useParticipants=e.useParticipants;exports.usePersistentUserChoices=e.usePersistentUserChoices;exports.usePinnedTracks=e.usePinnedTracks;exports.useRemoteParticipant=e.useRemoteParticipant;exports.useRemoteParticipants=e.useRemoteParticipants;exports.useRoomInfo=e.useRoomInfo;exports.useSortedParticipants=e.useSortedParticipants;exports.useSpeakingParticipants=e.useSpeakingParticipants;exports.useStartAudio=e.useStartAudio;exports.useStartVideo=e.useStartVideo;exports.useToken=e.useToken;exports.useTrack=e.useTrack;exports.useTrackByName=e.useTrackByName;exports.useTrackMutedIndicator=e.useTrackMutedIndicator;exports.useTrackRefBySourceOrName=e.useTrackRefBySourceOrName;exports.useTrackSyncTime=e.useTrackSyncTime;exports.useTrackVolume=e.useTrackVolume;exports.useTracks=e.useTracks;exports.useVisualStableUpdate=e.useVisualStableUpdate;exports.useTrackToggle=s.useTrackToggle;
|
package/dist/composables.es.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { F as e, H as u, u as t, K as i, a as o, b as r, c, d as n, e as d, f as k, g as l, h as T, i as p, j as m, k as P, l as g, m as S, n as y, L as I, p as f, q as C, o as M, r as R, s as B, t as b, v as h, w as A, x as F, y as L, z as V, A as v, B as x, C as D, D as N, E as q, G as E, J as G, M as K, I as U, N as j } from "./useVisualStableUpdate-BHGD1D94.js";
|
|
2
|
-
import { u as z } from "./useTrackToggle-bvyWWAau.js";
|
|
3
|
-
export {
|
|
4
|
-
e as FacingMode,
|
|
5
|
-
u as requiredPlaceholders,
|
|
6
|
-
t as useAudioPlayback,
|
|
7
|
-
i as useAudioWaveform,
|
|
8
|
-
o as useClearPinButton,
|
|
9
|
-
r as useConnectionQualityIndicator,
|
|
10
|
-
c as useConnectionState,
|
|
11
|
-
n as useDataChannel,
|
|
12
|
-
d as useDisconnectButton,
|
|
13
|
-
k as useFacingMode,
|
|
14
|
-
l as useFocusToggle,
|
|
15
|
-
T as useGridLayout,
|
|
16
|
-
p as useIsEncrypted,
|
|
17
|
-
m as useIsMuted,
|
|
18
|
-
P as useIsRecording,
|
|
19
|
-
g as useIsSpeaking,
|
|
20
|
-
S as useLiveKitRoom,
|
|
21
|
-
y as useLocalParticipant,
|
|
22
|
-
I as useMultibandTrackVolume,
|
|
23
|
-
f as useParticipantTile,
|
|
24
|
-
C as useParticipantTracks,
|
|
25
|
-
M as useParticipants,
|
|
26
|
-
R as usePersistentUserChoices,
|
|
27
|
-
B as usePinnedTracks,
|
|
28
|
-
b as useRemoteParticipant,
|
|
29
|
-
h as useRemoteParticipants,
|
|
30
|
-
A as useRoomInfo,
|
|
31
|
-
F as useSortedParticipants,
|
|
32
|
-
L as useSpeakingParticipants,
|
|
33
|
-
V as useStartAudio,
|
|
34
|
-
v as useStartVideo,
|
|
35
|
-
x as useToken,
|
|
36
|
-
D as useTrack,
|
|
37
|
-
N as useTrackByName,
|
|
38
|
-
q as useTrackMutedIndicator,
|
|
39
|
-
E as useTrackRefBySourceOrName,
|
|
40
|
-
G as useTrackSyncTime,
|
|
41
|
-
z as useTrackToggle,
|
|
42
|
-
K as useTrackVolume,
|
|
43
|
-
U as useTracks,
|
|
44
|
-
j as useVisualStableUpdate
|
|
45
|
-
};
|
package/dist/context.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./track_reference.context-Bwqjk26y.cjs");exports.pinReducer=e.pinReducer;exports.useCreateLayoutContext=e.useCreateLayoutContext;exports.useEnsureCreateLayoutContext=e.useEnsureCreateLayoutContext;exports.useEnsureLayoutContext=e.useEnsureLayoutContext;exports.useEnsureParticipant=e.useEnsureParticipant;exports.useEnsurePinContext=e.useEnsurePinContext;exports.useEnsureRoomContext=e.useEnsureRoomContext;exports.useEnsureTrackRef=e.useEnsureTrackRef;exports.useLayoutContext=e.useLayoutContext;exports.useMaybeLayoutContext=e.useMaybeLayoutContext;exports.useMaybeParticipantContext=e.useMaybeParticipantContext;exports.useMaybeRoomContext=e.useMaybeRoomContext;exports.useMaybeTrackRefContext=e.useMaybeTrackRefContext;exports.useParticipantContext=e.useParticipantContext;exports.usePinContext=e.usePinContext;exports.useProvideLayoutContext=e.useProvideLayoutContext;exports.useProvideParticipantContext=e.useProvideParticipantContext;exports.useProvidePinContext=e.useProvidePinContext;exports.useProvideRoomContext=e.useProvideRoomContext;exports.useProvideWidgetContext=e.useProvideWidgetContext;exports.useRoomContext=e.useRoomContext;exports.useTrackRefContext=e.useTrackRefContext;exports.useTrackRefContextProvider=e.useTrackRefContextProvider;exports.useWidgetContext=e.useWidgetContext;
|
package/dist/context.es.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { p as s, d as a, e as o, c as u, g as n, l as r, n as x, s as C, u as i, b as P, f as c, m as d, r as y, h as R, j as p, a as v, i as f, k as m, o as E, w as L, q as b, t as k, v as M, x as T } from "./track_reference.context-D37W7Ir4.js";
|
|
2
|
-
export {
|
|
3
|
-
s as pinReducer,
|
|
4
|
-
a as useCreateLayoutContext,
|
|
5
|
-
o as useEnsureCreateLayoutContext,
|
|
6
|
-
u as useEnsureLayoutContext,
|
|
7
|
-
n as useEnsureParticipant,
|
|
8
|
-
r as useEnsurePinContext,
|
|
9
|
-
x as useEnsureRoomContext,
|
|
10
|
-
C as useEnsureTrackRef,
|
|
11
|
-
i as useLayoutContext,
|
|
12
|
-
P as useMaybeLayoutContext,
|
|
13
|
-
c as useMaybeParticipantContext,
|
|
14
|
-
d as useMaybeRoomContext,
|
|
15
|
-
y as useMaybeTrackRefContext,
|
|
16
|
-
R as useParticipantContext,
|
|
17
|
-
p as usePinContext,
|
|
18
|
-
v as useProvideLayoutContext,
|
|
19
|
-
f as useProvideParticipantContext,
|
|
20
|
-
m as useProvidePinContext,
|
|
21
|
-
E as useProvideRoomContext,
|
|
22
|
-
L as useProvideWidgetContext,
|
|
23
|
-
b as useRoomContext,
|
|
24
|
-
k as useTrackRefContext,
|
|
25
|
-
M as useTrackRefContextProvider,
|
|
26
|
-
T as useWidgetContext
|
|
27
|
-
};
|
package/dist/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./ParticipantPlaceholderIcon.vue_vue_type_script_setup_true_lang-BIDtlT6r.cjs"),e=require("./useVisualStableUpdate-BkiUTxKc.cjs"),s=require("./useTrackToggle-DKW8l6WW.cjs"),t=require("./track_reference.context-Bwqjk26y.cjs");exports.ParticipantPlaceholderIcon=u._sfc_main$1;exports.TrackIcon=u._sfc_main$2;exports.TrackToggle=u._sfc_main;exports.FacingMode=e.FacingMode;exports.requiredPlaceholders=e.requiredPlaceholders;exports.useAudioPlayback=e.useAudioPlayback;exports.useAudioWaveform=e.useAudioWaveform;exports.useClearPinButton=e.useClearPinButton;exports.useConnectionQualityIndicator=e.useConnectionQualityIndicator;exports.useConnectionState=e.useConnectionState;exports.useDataChannel=e.useDataChannel;exports.useDisconnectButton=e.useDisconnectButton;exports.useFacingMode=e.useFacingMode;exports.useFocusToggle=e.useFocusToggle;exports.useGridLayout=e.useGridLayout;exports.useIsEncrypted=e.useIsEncrypted;exports.useIsMuted=e.useIsMuted;exports.useIsRecording=e.useIsRecording;exports.useIsSpeaking=e.useIsSpeaking;exports.useLiveKitRoom=e.useLiveKitRoom;exports.useLocalParticipant=e.useLocalParticipant;exports.useMultibandTrackVolume=e.useMultibandTrackVolume;exports.useParticipantTile=e.useParticipantTile;exports.useParticipantTracks=e.useParticipantTracks;exports.useParticipants=e.useParticipants;exports.usePersistentUserChoices=e.usePersistentUserChoices;exports.usePinnedTracks=e.usePinnedTracks;exports.useRemoteParticipant=e.useRemoteParticipant;exports.useRemoteParticipants=e.useRemoteParticipants;exports.useRoomInfo=e.useRoomInfo;exports.useSortedParticipants=e.useSortedParticipants;exports.useSpeakingParticipants=e.useSpeakingParticipants;exports.useStartAudio=e.useStartAudio;exports.useStartVideo=e.useStartVideo;exports.useToken=e.useToken;exports.useTrack=e.useTrack;exports.useTrackByName=e.useTrackByName;exports.useTrackMutedIndicator=e.useTrackMutedIndicator;exports.useTrackRefBySourceOrName=e.useTrackRefBySourceOrName;exports.useTrackSyncTime=e.useTrackSyncTime;exports.useTrackVolume=e.useTrackVolume;exports.useTracks=e.useTracks;exports.useVisualStableUpdate=e.useVisualStableUpdate;exports.useTrackToggle=s.useTrackToggle;exports.pinReducer=t.pinReducer;exports.useCreateLayoutContext=t.useCreateLayoutContext;exports.useEnsureCreateLayoutContext=t.useEnsureCreateLayoutContext;exports.useEnsureLayoutContext=t.useEnsureLayoutContext;exports.useEnsureParticipant=t.useEnsureParticipant;exports.useEnsurePinContext=t.useEnsurePinContext;exports.useEnsureRoomContext=t.useEnsureRoomContext;exports.useEnsureTrackRef=t.useEnsureTrackRef;exports.useLayoutContext=t.useLayoutContext;exports.useMaybeLayoutContext=t.useMaybeLayoutContext;exports.useMaybeParticipantContext=t.useMaybeParticipantContext;exports.useMaybeRoomContext=t.useMaybeRoomContext;exports.useMaybeTrackRefContext=t.useMaybeTrackRefContext;exports.useParticipantContext=t.useParticipantContext;exports.usePinContext=t.usePinContext;exports.useProvideLayoutContext=t.useProvideLayoutContext;exports.useProvideParticipantContext=t.useProvideParticipantContext;exports.useProvidePinContext=t.useProvidePinContext;exports.useProvideRoomContext=t.useProvideRoomContext;exports.useProvideWidgetContext=t.useProvideWidgetContext;exports.useRoomContext=t.useRoomContext;exports.useTrackRefContext=t.useTrackRefContext;exports.useTrackRefContextProvider=t.useTrackRefContextProvider;exports.useWidgetContext=t.useWidgetContext;
|
package/dist/index.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { a, b as t, _ as u } from "./ParticipantPlaceholderIcon.vue_vue_type_script_setup_true_lang-CMBc-QML.js";
|
|
2
|
-
import { F as n, H as r, u as i, K as c, a as d, b as C, c as P, d as x, e as p, f as k, g as T, h as l, i as m, j as y, k as g, l as R, m as f, n as b, L as v, p as I, q as L, o as M, r as S, s as E, t as h, v as B, w as A, x as F, y as V, z as q, A as D, B as N, C as W, D as j, E as w, G, J as K, M as U, I as z, N as H } from "./useVisualStableUpdate-BHGD1D94.js";
|
|
3
|
-
import { u as O } from "./useTrackToggle-bvyWWAau.js";
|
|
4
|
-
import { p as _, d as X, e as Y, c as Z, g as $, l as ee, n as se, s as ae, u as te, b as ue, f as oe, m as ne, r as re, h as ie, j as ce, a as de, i as Ce, k as Pe, o as xe, w as pe, q as ke, t as Te, v as le, x as me } from "./track_reference.context-D37W7Ir4.js";
|
|
5
|
-
export {
|
|
6
|
-
n as FacingMode,
|
|
7
|
-
a as ParticipantPlaceholderIcon,
|
|
8
|
-
t as TrackIcon,
|
|
9
|
-
u as TrackToggle,
|
|
10
|
-
_ as pinReducer,
|
|
11
|
-
r as requiredPlaceholders,
|
|
12
|
-
i as useAudioPlayback,
|
|
13
|
-
c as useAudioWaveform,
|
|
14
|
-
d as useClearPinButton,
|
|
15
|
-
C as useConnectionQualityIndicator,
|
|
16
|
-
P as useConnectionState,
|
|
17
|
-
X as useCreateLayoutContext,
|
|
18
|
-
x as useDataChannel,
|
|
19
|
-
p as useDisconnectButton,
|
|
20
|
-
Y as useEnsureCreateLayoutContext,
|
|
21
|
-
Z as useEnsureLayoutContext,
|
|
22
|
-
$ as useEnsureParticipant,
|
|
23
|
-
ee as useEnsurePinContext,
|
|
24
|
-
se as useEnsureRoomContext,
|
|
25
|
-
ae as useEnsureTrackRef,
|
|
26
|
-
k as useFacingMode,
|
|
27
|
-
T as useFocusToggle,
|
|
28
|
-
l as useGridLayout,
|
|
29
|
-
m as useIsEncrypted,
|
|
30
|
-
y as useIsMuted,
|
|
31
|
-
g as useIsRecording,
|
|
32
|
-
R as useIsSpeaking,
|
|
33
|
-
te as useLayoutContext,
|
|
34
|
-
f as useLiveKitRoom,
|
|
35
|
-
b as useLocalParticipant,
|
|
36
|
-
ue as useMaybeLayoutContext,
|
|
37
|
-
oe as useMaybeParticipantContext,
|
|
38
|
-
ne as useMaybeRoomContext,
|
|
39
|
-
re as useMaybeTrackRefContext,
|
|
40
|
-
v as useMultibandTrackVolume,
|
|
41
|
-
ie as useParticipantContext,
|
|
42
|
-
I as useParticipantTile,
|
|
43
|
-
L as useParticipantTracks,
|
|
44
|
-
M as useParticipants,
|
|
45
|
-
S as usePersistentUserChoices,
|
|
46
|
-
ce as usePinContext,
|
|
47
|
-
E as usePinnedTracks,
|
|
48
|
-
de as useProvideLayoutContext,
|
|
49
|
-
Ce as useProvideParticipantContext,
|
|
50
|
-
Pe as useProvidePinContext,
|
|
51
|
-
xe as useProvideRoomContext,
|
|
52
|
-
pe as useProvideWidgetContext,
|
|
53
|
-
h as useRemoteParticipant,
|
|
54
|
-
B as useRemoteParticipants,
|
|
55
|
-
ke as useRoomContext,
|
|
56
|
-
A as useRoomInfo,
|
|
57
|
-
F as useSortedParticipants,
|
|
58
|
-
V as useSpeakingParticipants,
|
|
59
|
-
q as useStartAudio,
|
|
60
|
-
D as useStartVideo,
|
|
61
|
-
N as useToken,
|
|
62
|
-
W as useTrack,
|
|
63
|
-
j as useTrackByName,
|
|
64
|
-
w as useTrackMutedIndicator,
|
|
65
|
-
G as useTrackRefBySourceOrName,
|
|
66
|
-
Te as useTrackRefContext,
|
|
67
|
-
le as useTrackRefContextProvider,
|
|
68
|
-
K as useTrackSyncTime,
|
|
69
|
-
O as useTrackToggle,
|
|
70
|
-
U as useTrackVolume,
|
|
71
|
-
z as useTracks,
|
|
72
|
-
H as useVisualStableUpdate,
|
|
73
|
-
me as useWidgetContext
|
|
74
|
-
};
|
package/dist/main.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.15 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-100:oklch(.967 .003 264.542);--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentColor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.block{display:block}.flex{display:flex}.h-4{height:calc(var(--spacing)*4)}.h-16{height:calc(var(--spacing)*16)}.h-full{height:100%}.h-screen{height:100vh}.w-4{width:calc(var(--spacing)*4)}.w-16{width:calc(var(--spacing)*16)}.w-full{width:100%}.w-screen{width:100vw}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-full{border-radius:3.40282e38px}.bg-gray-100{background-color:var(--color-gray-100)}.text-center{text-align:center}}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue");function v(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}const s=new WeakMap,R=(...e)=>{var t;const r=e[0],o=(t=n.getCurrentInstance())==null?void 0:t.proxy;if(o==null&&!n.hasInjectionContext())throw new Error("injectLocal must be called in setup");return o&&s.has(o)&&r in s.get(o)?s.get(o)[r]:n.inject(...e)},w=(e,t)=>{var r;const o=(r=n.getCurrentInstance())==null?void 0:r.proxy;if(o==null)throw new Error("provideLocal must be called in setup");s.has(o)||s.set(o,Object.create(null));const d=s.get(o);d[e]=t,n.provide(e,t)};function u(e,t){const r=Symbol(e.name||"InjectionState"),o=void 0;return[(...y)=>{const C=e(...y);return w(r,C),C},()=>R(r,o)]}const h=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function g(e){return Array.isArray(e)?e:[e]}function m(e){return n.getCurrentInstance()}function E(e,t=!0,r){m()?n.onMounted(e,r):t?e():n.nextTick(e)}const[L,a]=u(e=>n.shallowRef(e));function k(){return a()}function S(e){const t=e?n.shallowRef(e):a();if(!t||!t.value)throw new Error("Please call `useProvideRoomContext` on the appropriate parent component");return t}function p(e,t){return t.msg==="set_pin"?[t.trackReference]:t.msg==="clear_pin"?[]:{...e}}const[b,i]=u(e=>{const t=n.shallowRef(e);function r(o){t.value=p(t.value,o)}return{state:t,dispatch:r}}),T=e=>{const t=e?n.shallowRef(e):i();if(!t)throw Error("Tried to access PinContext context outside a PinContextProvider provider.");return t},[M,x]=u(e=>n.shallowRef(e)),[j,c]=u(e=>n.shallowRef(e));function I(){return c()}function W(e){const t=e?n.shallowRef(e):c();if(!t)throw Error("Tried to access LayoutContext context outside a LayoutContextProvider provider.");return t}function P(){return{pin:i(),widget:x()}}function O(e){return n.shallowRef(e)??P()}const[A,l]=u(e=>n.shallowRef(e));function _(){return l()}function D(e){const t=e?n.shallowRef(e):l();if(!t||!t.value)throw new Error("Please call `useProvideParticipantContext` on the appropriate parent component");return t}const[G,f]=u(e=>n.shallowRef(e));function q(){return f()}function V(e){const t=e?n.shallowRef(e):f();if(!t||!t.value)throw new Error("Please call `useTrackRefContextProvider` on the appropriate parent component");return t}exports.isClient=h;exports.pinReducer=p;exports.toArray=g;exports.tryOnMounted=E;exports.tryOnScopeDispose=v;exports.useCreateLayoutContext=P;exports.useEnsureCreateLayoutContext=O;exports.useEnsureLayoutContext=W;exports.useEnsureParticipant=D;exports.useEnsurePinContext=T;exports.useEnsureRoomContext=S;exports.useEnsureTrackRef=V;exports.useLayoutContext=c;exports.useMaybeLayoutContext=I;exports.useMaybeParticipantContext=_;exports.useMaybeRoomContext=k;exports.useMaybeTrackRefContext=q;exports.useParticipantContext=l;exports.usePinContext=i;exports.useProvideLayoutContext=j;exports.useProvideParticipantContext=A;exports.useProvidePinContext=b;exports.useProvideRoomContext=L;exports.useProvideWidgetContext=M;exports.useRoomContext=a;exports.useTrackRefContext=f;exports.useTrackRefContextProvider=G;exports.useWidgetContext=x;
|