@mrksbnc/livekit-vue 0.0.1 → 0.0.3
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 +20542 -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 +3 -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/src/assets/icons/chevron-down.svg +1 -1
- package/src/assets/icons/chevron-up.svg +1 -1
- package/src/assets/icons/frown.svg +1 -1
- package/src/assets/icons/heart.svg +1 -1
- package/src/assets/icons/mic-off.svg +1 -1
- package/src/assets/icons/mic.svg +1 -1
- package/src/assets/icons/phone-hang-up.svg +1 -1
- package/src/assets/icons/share-screen-off.svg +1 -1
- package/src/assets/icons/share-screen.svg +1 -1
- package/src/assets/icons/smile.svg +1 -1
- package/src/assets/icons/thumbs-down.svg +1 -1
- package/src/assets/icons/thumbs-up.svg +1 -1
- package/src/assets/icons/video-off.svg +1 -1
- package/src/assets/icons/video.svg +1 -1
- package/src/assets/placeholders/participant.svg +1 -1
- package/src/components/controls/TrackToggle.vue +7 -14
- package/src/components/controls/track_toggle.ts +3 -3
- package/src/composables/useTrackToggle.ts +25 -28
- 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
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;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as u, hasInjectionContext as v, inject as P, provide as y, onMounted as m, nextTick as w, getCurrentScope as h, onScopeDispose as g, shallowRef as r } from "vue";
|
|
2
|
-
function M(t) {
|
|
3
|
-
return h() ? (g(t), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
const s = /* @__PURE__ */ new WeakMap(), R = (...t) => {
|
|
6
|
-
var e;
|
|
7
|
-
const o = t[0], n = (e = u()) == null ? void 0 : e.proxy;
|
|
8
|
-
if (n == null && !v())
|
|
9
|
-
throw new Error("injectLocal must be called in setup");
|
|
10
|
-
return n && s.has(n) && o in s.get(n) ? s.get(n)[o] : P(...t);
|
|
11
|
-
}, S = (t, e) => {
|
|
12
|
-
var o;
|
|
13
|
-
const n = (o = u()) == null ? void 0 : o.proxy;
|
|
14
|
-
if (n == null)
|
|
15
|
-
throw new Error("provideLocal must be called in setup");
|
|
16
|
-
s.has(n) || s.set(n, /* @__PURE__ */ Object.create(null));
|
|
17
|
-
const i = s.get(n);
|
|
18
|
-
i[t] = e, y(t, e);
|
|
19
|
-
};
|
|
20
|
-
function a(t, e) {
|
|
21
|
-
const o = Symbol(t.name || "InjectionState"), n = void 0;
|
|
22
|
-
return [(...C) => {
|
|
23
|
-
const c = t(...C);
|
|
24
|
-
return S(o, c), c;
|
|
25
|
-
}, () => R(o, n)];
|
|
26
|
-
}
|
|
27
|
-
const I = typeof window < "u" && typeof document < "u";
|
|
28
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
29
|
-
function W(t) {
|
|
30
|
-
return Array.isArray(t) ? t : [t];
|
|
31
|
-
}
|
|
32
|
-
function k(t) {
|
|
33
|
-
return u();
|
|
34
|
-
}
|
|
35
|
-
function A(t, e = !0, o) {
|
|
36
|
-
k() ? m(t, o) : e ? t() : w(t);
|
|
37
|
-
}
|
|
38
|
-
const [_, l] = a(
|
|
39
|
-
(t) => r(t)
|
|
40
|
-
);
|
|
41
|
-
function O() {
|
|
42
|
-
return l();
|
|
43
|
-
}
|
|
44
|
-
function D(t) {
|
|
45
|
-
const e = t ? r(t) : l();
|
|
46
|
-
if (!e || !e.value)
|
|
47
|
-
throw new Error("Please call `useProvideRoomContext` on the appropriate parent component");
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
function E(t, e) {
|
|
51
|
-
return e.msg === "set_pin" ? [e.trackReference] : e.msg === "clear_pin" ? [] : { ...t };
|
|
52
|
-
}
|
|
53
|
-
const [G, p] = a((t) => {
|
|
54
|
-
const e = r(t);
|
|
55
|
-
function o(n) {
|
|
56
|
-
e.value = E(e.value, n);
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
state: e,
|
|
60
|
-
dispatch: o
|
|
61
|
-
};
|
|
62
|
-
}), q = (t) => {
|
|
63
|
-
const e = t ? r(t) : p();
|
|
64
|
-
if (!e)
|
|
65
|
-
throw Error("Tried to access PinContext context outside a PinContextProvider provider.");
|
|
66
|
-
return e;
|
|
67
|
-
}, [z, L] = a(
|
|
68
|
-
(t) => r(t)
|
|
69
|
-
), [B, d] = a(
|
|
70
|
-
(t) => r(t)
|
|
71
|
-
);
|
|
72
|
-
function V() {
|
|
73
|
-
return d();
|
|
74
|
-
}
|
|
75
|
-
function F(t) {
|
|
76
|
-
const e = t ? r(t) : d();
|
|
77
|
-
if (!e)
|
|
78
|
-
throw Error("Tried to access LayoutContext context outside a LayoutContextProvider provider.");
|
|
79
|
-
return e;
|
|
80
|
-
}
|
|
81
|
-
function b() {
|
|
82
|
-
return {
|
|
83
|
-
pin: p(),
|
|
84
|
-
widget: L()
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function H(t) {
|
|
88
|
-
return r(t) ?? b();
|
|
89
|
-
}
|
|
90
|
-
const [J, f] = a(
|
|
91
|
-
(t) => r(t)
|
|
92
|
-
);
|
|
93
|
-
function K() {
|
|
94
|
-
return f();
|
|
95
|
-
}
|
|
96
|
-
function N(t) {
|
|
97
|
-
const e = t ? r(t) : f();
|
|
98
|
-
if (!e || !e.value)
|
|
99
|
-
throw new Error(
|
|
100
|
-
"Please call `useProvideParticipantContext` on the appropriate parent component"
|
|
101
|
-
);
|
|
102
|
-
return e;
|
|
103
|
-
}
|
|
104
|
-
const [Q, x] = a(
|
|
105
|
-
(t) => r(t)
|
|
106
|
-
);
|
|
107
|
-
function U() {
|
|
108
|
-
return x();
|
|
109
|
-
}
|
|
110
|
-
function X(t) {
|
|
111
|
-
const e = t ? r(t) : x();
|
|
112
|
-
if (!e || !e.value)
|
|
113
|
-
throw new Error("Please call `useTrackRefContextProvider` on the appropriate parent component");
|
|
114
|
-
return e;
|
|
115
|
-
}
|
|
116
|
-
export {
|
|
117
|
-
I as A,
|
|
118
|
-
W as B,
|
|
119
|
-
B as a,
|
|
120
|
-
V as b,
|
|
121
|
-
F as c,
|
|
122
|
-
b as d,
|
|
123
|
-
H as e,
|
|
124
|
-
K as f,
|
|
125
|
-
N as g,
|
|
126
|
-
f as h,
|
|
127
|
-
J as i,
|
|
128
|
-
p as j,
|
|
129
|
-
G as k,
|
|
130
|
-
q as l,
|
|
131
|
-
O as m,
|
|
132
|
-
D as n,
|
|
133
|
-
_ as o,
|
|
134
|
-
E as p,
|
|
135
|
-
l as q,
|
|
136
|
-
U as r,
|
|
137
|
-
X as s,
|
|
138
|
-
x as t,
|
|
139
|
-
d as u,
|
|
140
|
-
Q as v,
|
|
141
|
-
z as w,
|
|
142
|
-
L as x,
|
|
143
|
-
M as y,
|
|
144
|
-
A as z
|
|
145
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("./track_reference.context-Bwqjk26y.cjs"),h=require("@livekit/components-core"),a=require("vue");require("rxjs");function C(e,t){const r=a.ref(void 0),l=e.subscribe({next:c=>r.value=c,error:void 0});return v.tryOnScopeDispose(()=>{l.unsubscribe()}),r}function g(e){v.tryOnScopeDispose(()=>{e.unsubscribe()})}function b(e){const t=a.shallowRef(e.startWith),r=a.computed(()=>e.observable),l=a.computed(()=>e.resetWhenObservableChanges??!1);function c(){l.value&&(t.value=e.startWith),!(typeof window>"u"||!e.observable)&&r.value&&g(r.value.subscribe(o=>{t.value=o??e.startWith}))}return a.watch(r,c),a.watch(t,c),t}function m(e){var f;const t=v.useMaybeRoomContext(),r=a.ref(!1),l=a.computed(()=>{var u,n;return(n=(u=t==null?void 0:t.value)==null?void 0:u.localParticipant)==null?void 0:n.getTrackPublication(e.source)}),c=a.computed(()=>t?h.setupMediaToggle(e.source,t.value,e.captureOptions,e.publishOptions,e.onDeviceError):h.setupManualToggle()),{className:o,enabledObserver:O,pendingObserver:k,toggle:s}=a.toRefs(c.value),d=b({observable:k.value,startWith:!1}),i=b({observable:O.value,startWith:e.initialState??!!((f=l.value)!=null&&f.isEnabled)});function S(u){u.preventDefault(),u.stopPropagation(),r.value=!0,s==null||s.value().catch(()=>r.value=!1),e.customOnClickHandler&&e.customOnClickHandler(u)}return a.watch(i,u=>{var n;(n=e==null?void 0:e.onChange)==null||n.call(e,u,r.value),r.value=!1}),a.onMounted(()=>{e.initialState!==void 0&&(console.debug("forcing initial toggle state",e.source,e.initialState),s==null||s.value(e.initialState))}),{toggle:s,enabled:i,pending:d,track:l,buttonProps:{"aria-pressed":i.value,"data-lk-source":e.source,"data-lk-enabled":i.value,disabled:d.value??!1,onClick:S}}}exports.useObservable=C;exports.useObservableState=b;exports.useSubscription=g;exports.useTrackToggle=m;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { y as h, m as C } from "./track_reference.context-D37W7Ir4.js";
|
|
2
|
-
import { setupMediaToggle as S, setupManualToggle as W } from "@livekit/components-core";
|
|
3
|
-
import { ref as g, shallowRef as T, computed as i, watch as b, toRefs as M, onMounted as R } from "vue";
|
|
4
|
-
import "rxjs";
|
|
5
|
-
function p(e, a) {
|
|
6
|
-
const r = g(void 0), l = e.subscribe({
|
|
7
|
-
next: (s) => r.value = s,
|
|
8
|
-
error: void 0
|
|
9
|
-
});
|
|
10
|
-
return h(() => {
|
|
11
|
-
l.unsubscribe();
|
|
12
|
-
}), r;
|
|
13
|
-
}
|
|
14
|
-
function w(e) {
|
|
15
|
-
h(() => {
|
|
16
|
-
e.unsubscribe();
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function o(e) {
|
|
20
|
-
const a = T(e.startWith), r = i(() => e.observable), l = i(() => e.resetWhenObservableChanges ?? !1);
|
|
21
|
-
function s() {
|
|
22
|
-
l.value && (a.value = e.startWith), !(typeof window > "u" || !e.observable) && r.value && w(
|
|
23
|
-
r.value.subscribe((v) => {
|
|
24
|
-
a.value = v ?? e.startWith;
|
|
25
|
-
})
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
return b(r, s), b(a, s), a;
|
|
29
|
-
}
|
|
30
|
-
function E(e) {
|
|
31
|
-
var d;
|
|
32
|
-
const a = C(), r = g(!1), l = i(
|
|
33
|
-
() => {
|
|
34
|
-
var t, n;
|
|
35
|
-
return (n = (t = a == null ? void 0 : a.value) == null ? void 0 : t.localParticipant) == null ? void 0 : n.getTrackPublication(e.source);
|
|
36
|
-
}
|
|
37
|
-
), s = i(
|
|
38
|
-
() => a ? S(
|
|
39
|
-
e.source,
|
|
40
|
-
a.value,
|
|
41
|
-
e.captureOptions,
|
|
42
|
-
e.publishOptions,
|
|
43
|
-
e.onDeviceError
|
|
44
|
-
) : W()
|
|
45
|
-
), { className: v, enabledObserver: m, pendingObserver: O, toggle: u } = M(
|
|
46
|
-
s.value
|
|
47
|
-
), f = o({
|
|
48
|
-
observable: O.value,
|
|
49
|
-
startWith: !1
|
|
50
|
-
}), c = o({
|
|
51
|
-
observable: m.value,
|
|
52
|
-
startWith: e.initialState ?? !!((d = l.value) != null && d.isEnabled)
|
|
53
|
-
});
|
|
54
|
-
function k(t) {
|
|
55
|
-
t.preventDefault(), t.stopPropagation(), r.value = !0, u == null || u.value().catch(() => r.value = !1), e.customOnClickHandler && e.customOnClickHandler(t);
|
|
56
|
-
}
|
|
57
|
-
return b(c, (t) => {
|
|
58
|
-
var n;
|
|
59
|
-
(n = e == null ? void 0 : e.onChange) == null || n.call(e, t, r.value), r.value = !1;
|
|
60
|
-
}), R(() => {
|
|
61
|
-
e.initialState !== void 0 && (console.debug("forcing initial toggle state", e.source, e.initialState), u == null || u.value(e.initialState));
|
|
62
|
-
}), {
|
|
63
|
-
toggle: u,
|
|
64
|
-
enabled: c,
|
|
65
|
-
pending: f,
|
|
66
|
-
track: l,
|
|
67
|
-
buttonProps: {
|
|
68
|
-
"aria-pressed": c.value,
|
|
69
|
-
"data-lk-source": e.source,
|
|
70
|
-
"data-lk-enabled": c.value,
|
|
71
|
-
disabled: f.value ?? !1,
|
|
72
|
-
onClick: k
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
o as a,
|
|
78
|
-
w as b,
|
|
79
|
-
p as c,
|
|
80
|
-
E as u
|
|
81
|
-
};
|