@mrksbnc/livekit-vue 0.0.2 → 1.0.0

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.
Files changed (514) hide show
  1. package/README.md +46 -30
  2. package/dist/background/BackgroundEffectSelect.vue.d.cts +55 -0
  3. package/dist/background/BackgroundEffectSelect.vue.d.mts +55 -0
  4. package/dist/background/index.d.cts +3 -0
  5. package/dist/background/index.d.mts +3 -0
  6. package/dist/background.cjs +2 -0
  7. package/dist/background.cjs.map +1 -0
  8. package/dist/background.js +239 -0
  9. package/dist/background.js.map +1 -0
  10. package/dist/components/chat/ChatEntry.vue.d.cts +16 -0
  11. package/dist/components/chat/ChatEntry.vue.d.mts +16 -0
  12. package/dist/components/chat/chat.utils.d.cts +3 -0
  13. package/dist/components/chat/chat.utils.d.mts +3 -0
  14. package/dist/components/chat/index.d.cts +3 -0
  15. package/dist/components/chat/index.d.mts +3 -0
  16. package/dist/components/chat/render-node.d.cts +8 -0
  17. package/dist/components/chat/render-node.d.mts +8 -0
  18. package/dist/components/context/ParticipantContextProvider.vue.d.cts +16 -0
  19. package/dist/components/context/ParticipantContextProvider.vue.d.mts +16 -0
  20. package/dist/components/context/RoomContextProvider.vue.d.cts +16 -0
  21. package/dist/components/context/RoomContextProvider.vue.d.mts +16 -0
  22. package/dist/components/context/SessionProvider.vue.d.cts +16 -0
  23. package/dist/components/context/SessionProvider.vue.d.mts +16 -0
  24. package/dist/components/context/TrackRefContextProvider.vue.d.cts +16 -0
  25. package/dist/components/context/TrackRefContextProvider.vue.d.mts +16 -0
  26. package/dist/components/context/index.d.cts +4 -0
  27. package/dist/components/context/index.d.mts +4 -0
  28. package/dist/components/controls/ChatToggle.vue.d.cts +17 -0
  29. package/dist/components/controls/ChatToggle.vue.d.mts +17 -0
  30. package/dist/components/controls/ClearPinButton.vue.d.cts +22 -0
  31. package/dist/components/controls/ClearPinButton.vue.d.mts +22 -0
  32. package/dist/components/controls/DisconnectButton.vue.d.cts +18 -0
  33. package/dist/components/controls/DisconnectButton.vue.d.mts +18 -0
  34. package/dist/components/controls/FocusToggle.vue.d.cts +19 -0
  35. package/dist/components/controls/FocusToggle.vue.d.mts +19 -0
  36. package/dist/components/controls/MediaDeviceSelect.vue.d.cts +45 -0
  37. package/dist/components/controls/MediaDeviceSelect.vue.d.mts +45 -0
  38. package/dist/components/controls/PaginationControl.vue.d.cts +18 -0
  39. package/dist/components/controls/PaginationControl.vue.d.mts +18 -0
  40. package/dist/components/controls/PaginationIndicator.vue.d.cts +8 -0
  41. package/dist/components/controls/PaginationIndicator.vue.d.mts +8 -0
  42. package/dist/components/controls/SettingsMenuToggle.vue.d.cts +16 -0
  43. package/dist/components/controls/SettingsMenuToggle.vue.d.mts +16 -0
  44. package/dist/components/controls/StartAudio.vue.d.cts +21 -0
  45. package/dist/components/controls/StartAudio.vue.d.mts +21 -0
  46. package/dist/components/controls/StartMediaButton.vue.d.cts +24 -0
  47. package/dist/components/controls/StartMediaButton.vue.d.mts +24 -0
  48. package/dist/components/controls/TrackToggle.vue.d.cts +43 -0
  49. package/dist/components/controls/TrackToggle.vue.d.mts +43 -0
  50. package/dist/components/controls/VideoQualitySelect.vue.d.cts +33 -0
  51. package/dist/components/controls/VideoQualitySelect.vue.d.mts +33 -0
  52. package/dist/components/controls/index.d.cts +24 -0
  53. package/dist/components/controls/index.d.mts +24 -0
  54. package/dist/components/icons/CameraDisabledIcon.vue.d.cts +3 -0
  55. package/dist/components/icons/CameraDisabledIcon.vue.d.mts +3 -0
  56. package/dist/components/icons/CameraIcon.vue.d.cts +3 -0
  57. package/dist/components/icons/CameraIcon.vue.d.mts +3 -0
  58. package/dist/components/icons/ChatCloseIcon.vue.d.cts +3 -0
  59. package/dist/components/icons/ChatCloseIcon.vue.d.mts +3 -0
  60. package/dist/components/icons/ChatIcon.vue.d.cts +3 -0
  61. package/dist/components/icons/ChatIcon.vue.d.mts +3 -0
  62. package/dist/components/icons/ChevronIcon.vue.d.cts +3 -0
  63. package/dist/components/icons/ChevronIcon.vue.d.mts +3 -0
  64. package/dist/components/icons/FocusToggleIcon.vue.d.cts +3 -0
  65. package/dist/components/icons/FocusToggleIcon.vue.d.mts +3 -0
  66. package/dist/components/icons/GearIcon.vue.d.cts +3 -0
  67. package/dist/components/icons/GearIcon.vue.d.mts +3 -0
  68. package/dist/components/icons/LeaveIcon.vue.d.cts +3 -0
  69. package/dist/components/icons/LeaveIcon.vue.d.mts +3 -0
  70. package/dist/components/icons/LockLockedIcon.vue.d.cts +3 -0
  71. package/dist/components/icons/LockLockedIcon.vue.d.mts +3 -0
  72. package/dist/components/icons/MicDisabledIcon.vue.d.cts +3 -0
  73. package/dist/components/icons/MicDisabledIcon.vue.d.mts +3 -0
  74. package/dist/components/icons/MicIcon.vue.d.cts +3 -0
  75. package/dist/components/icons/MicIcon.vue.d.mts +3 -0
  76. package/dist/components/icons/ParticipantPlaceholder.vue.d.cts +3 -0
  77. package/dist/components/icons/ParticipantPlaceholder.vue.d.mts +3 -0
  78. package/dist/components/icons/QualityExcellentIcon.vue.d.cts +3 -0
  79. package/dist/components/icons/QualityExcellentIcon.vue.d.mts +3 -0
  80. package/dist/components/icons/QualityGoodIcon.vue.d.cts +3 -0
  81. package/dist/components/icons/QualityGoodIcon.vue.d.mts +3 -0
  82. package/dist/components/icons/QualityPoorIcon.vue.d.cts +3 -0
  83. package/dist/components/icons/QualityPoorIcon.vue.d.mts +3 -0
  84. package/dist/components/icons/QualityUnknownIcon.vue.d.cts +3 -0
  85. package/dist/components/icons/QualityUnknownIcon.vue.d.mts +3 -0
  86. package/dist/components/icons/ScreenShareIcon.vue.d.cts +3 -0
  87. package/dist/components/icons/ScreenShareIcon.vue.d.mts +3 -0
  88. package/dist/components/icons/ScreenShareStopIcon.vue.d.cts +3 -0
  89. package/dist/components/icons/ScreenShareStopIcon.vue.d.mts +3 -0
  90. package/dist/components/icons/SpinnerIcon.vue.d.cts +3 -0
  91. package/dist/components/icons/SpinnerIcon.vue.d.mts +3 -0
  92. package/dist/components/icons/UnfocusToggleIcon.vue.d.cts +3 -0
  93. package/dist/components/icons/UnfocusToggleIcon.vue.d.mts +3 -0
  94. package/dist/components/icons/index.d.cts +21 -0
  95. package/dist/components/icons/index.d.mts +21 -0
  96. package/dist/components/icons/utils.d.cts +4 -0
  97. package/dist/components/icons/utils.d.mts +4 -0
  98. package/dist/components/index.d.cts +9 -0
  99. package/dist/components/index.d.mts +9 -0
  100. package/dist/components/layout/CarouselLayout.vue.d.cts +24 -0
  101. package/dist/components/layout/CarouselLayout.vue.d.mts +24 -0
  102. package/dist/components/layout/FocusLayout.vue.d.cts +16 -0
  103. package/dist/components/layout/FocusLayout.vue.d.mts +16 -0
  104. package/dist/components/layout/FocusLayoutContainer.vue.d.cts +14 -0
  105. package/dist/components/layout/FocusLayoutContainer.vue.d.mts +14 -0
  106. package/dist/components/layout/GridLayout.vue.d.cts +24 -0
  107. package/dist/components/layout/GridLayout.vue.d.mts +24 -0
  108. package/dist/components/layout/LayoutContextProvider.vue.d.cts +27 -0
  109. package/dist/components/layout/LayoutContextProvider.vue.d.mts +27 -0
  110. package/dist/components/layout/index.d.cts +10 -0
  111. package/dist/components/layout/index.d.mts +10 -0
  112. package/dist/components/participant/AudioTrack.vue.d.cts +17 -0
  113. package/dist/components/participant/AudioTrack.vue.d.mts +17 -0
  114. package/dist/components/participant/AudioVisualizer.vue.d.cts +10 -0
  115. package/dist/components/participant/AudioVisualizer.vue.d.mts +10 -0
  116. package/dist/components/participant/BarVisualizer.vue.d.cts +46 -0
  117. package/dist/components/participant/BarVisualizer.vue.d.mts +46 -0
  118. package/dist/components/participant/ConnectionQualityIndicator.vue.d.cts +19 -0
  119. package/dist/components/participant/ConnectionQualityIndicator.vue.d.mts +19 -0
  120. package/dist/components/participant/ParticipantAudioTile.vue.d.cts +23 -0
  121. package/dist/components/participant/ParticipantAudioTile.vue.d.mts +23 -0
  122. package/dist/components/participant/ParticipantAvatar.vue.d.cts +10 -0
  123. package/dist/components/participant/ParticipantAvatar.vue.d.mts +10 -0
  124. package/dist/components/participant/ParticipantName.vue.d.cts +17 -0
  125. package/dist/components/participant/ParticipantName.vue.d.mts +17 -0
  126. package/dist/components/participant/ParticipantTile.vue.d.cts +27 -0
  127. package/dist/components/participant/ParticipantTile.vue.d.mts +27 -0
  128. package/dist/components/participant/TrackMutedIndicator.vue.d.cts +22 -0
  129. package/dist/components/participant/TrackMutedIndicator.vue.d.mts +22 -0
  130. package/dist/components/participant/VideoTrack.vue.d.cts +17 -0
  131. package/dist/components/participant/VideoTrack.vue.d.mts +17 -0
  132. package/dist/components/participant/index.d.cts +19 -0
  133. package/dist/components/participant/index.d.mts +19 -0
  134. package/dist/components/prefabs/AudioConference.vue.d.cts +26 -0
  135. package/dist/components/prefabs/AudioConference.vue.d.mts +26 -0
  136. package/dist/components/prefabs/Chat.vue.d.cts +36 -0
  137. package/dist/components/prefabs/Chat.vue.d.mts +36 -0
  138. package/dist/components/prefabs/ControlBar.vue.d.cts +52 -0
  139. package/dist/components/prefabs/ControlBar.vue.d.mts +52 -0
  140. package/dist/components/prefabs/MediaDeviceMenu.vue.d.cts +46 -0
  141. package/dist/components/prefabs/MediaDeviceMenu.vue.d.mts +46 -0
  142. package/dist/components/prefabs/PreJoin.vue.d.cts +45 -0
  143. package/dist/components/prefabs/PreJoin.vue.d.mts +45 -0
  144. package/dist/components/prefabs/VideoConference.vue.d.cts +28 -0
  145. package/dist/components/prefabs/VideoConference.vue.d.mts +28 -0
  146. package/dist/components/prefabs/VoiceAssistantControlBar.vue.d.cts +33 -0
  147. package/dist/components/prefabs/VoiceAssistantControlBar.vue.d.mts +33 -0
  148. package/dist/components/prefabs/index.d.cts +14 -0
  149. package/dist/components/prefabs/index.d.mts +14 -0
  150. package/dist/components/room/ConnectionStateToast.vue.d.cts +8 -0
  151. package/dist/components/room/ConnectionStateToast.vue.d.mts +8 -0
  152. package/dist/components/room/ConnectionStatus.vue.d.cts +19 -0
  153. package/dist/components/room/ConnectionStatus.vue.d.mts +19 -0
  154. package/dist/components/room/LiveKitRoom.vue.d.cts +47 -0
  155. package/dist/components/room/LiveKitRoom.vue.d.mts +47 -0
  156. package/dist/components/room/ParticipantLoop.vue.d.cts +18 -0
  157. package/dist/components/room/ParticipantLoop.vue.d.mts +18 -0
  158. package/dist/components/room/RoomAudioRenderer.vue.d.cts +13 -0
  159. package/dist/components/room/RoomAudioRenderer.vue.d.mts +13 -0
  160. package/dist/components/room/RoomName.vue.d.cts +20 -0
  161. package/dist/components/room/RoomName.vue.d.mts +20 -0
  162. package/dist/components/room/Toast.vue.d.cts +14 -0
  163. package/dist/components/room/Toast.vue.d.mts +14 -0
  164. package/dist/components/room/TrackLoop.vue.d.cts +18 -0
  165. package/dist/components/room/TrackLoop.vue.d.mts +18 -0
  166. package/dist/components/room/index.d.cts +16 -0
  167. package/dist/components/room/index.d.mts +16 -0
  168. package/dist/components/style.d.cts +11 -0
  169. package/dist/components/style.d.mts +11 -0
  170. package/dist/composables/index.d.cts +66 -0
  171. package/dist/composables/index.d.mts +66 -0
  172. package/dist/composables/useAgent.d.cts +67 -0
  173. package/dist/composables/useAgent.d.mts +67 -0
  174. package/dist/composables/useAgentExpression.d.cts +20 -0
  175. package/dist/composables/useAgentExpression.d.mts +20 -0
  176. package/dist/composables/useAudioPlayback.d.cts +10 -0
  177. package/dist/composables/useAudioPlayback.d.mts +10 -0
  178. package/dist/composables/useBackgroundEffect.d.cts +43 -0
  179. package/dist/composables/useBackgroundEffect.d.mts +43 -0
  180. package/dist/composables/useBarAnimator.d.cts +11 -0
  181. package/dist/composables/useBarAnimator.d.mts +11 -0
  182. package/dist/composables/useChat.d.cts +13 -0
  183. package/dist/composables/useChat.d.mts +13 -0
  184. package/dist/composables/useChatToggle.d.cts +13 -0
  185. package/dist/composables/useChatToggle.d.mts +13 -0
  186. package/dist/composables/useClearPinButton.d.cts +14 -0
  187. package/dist/composables/useClearPinButton.d.mts +14 -0
  188. package/dist/composables/useConnectionQualityIndicator.d.cts +9 -0
  189. package/dist/composables/useConnectionQualityIndicator.d.mts +9 -0
  190. package/dist/composables/useConnectionState.d.cts +13 -0
  191. package/dist/composables/useConnectionState.d.mts +13 -0
  192. package/dist/composables/useConnectionStatus.d.cts +16 -0
  193. package/dist/composables/useConnectionStatus.d.mts +16 -0
  194. package/dist/composables/useDataChannel.d.cts +14 -0
  195. package/dist/composables/useDataChannel.d.mts +14 -0
  196. package/dist/composables/useDisconnectButton.d.cts +9 -0
  197. package/dist/composables/useDisconnectButton.d.mts +9 -0
  198. package/dist/composables/useEvents.d.cts +15 -0
  199. package/dist/composables/useEvents.d.mts +15 -0
  200. package/dist/composables/useFacingMode.d.cts +17 -0
  201. package/dist/composables/useFacingMode.d.mts +17 -0
  202. package/dist/composables/useFocusToggle.d.cts +14 -0
  203. package/dist/composables/useFocusToggle.d.mts +14 -0
  204. package/dist/composables/useGridLayout.d.cts +13 -0
  205. package/dist/composables/useGridLayout.d.mts +13 -0
  206. package/dist/composables/useIsEncrypted.d.cts +10 -0
  207. package/dist/composables/useIsEncrypted.d.mts +10 -0
  208. package/dist/composables/useIsMuted.d.cts +11 -0
  209. package/dist/composables/useIsMuted.d.mts +11 -0
  210. package/dist/composables/useIsRecording.d.cts +9 -0
  211. package/dist/composables/useIsRecording.d.mts +9 -0
  212. package/dist/composables/useIsSpeaking.d.cts +9 -0
  213. package/dist/composables/useIsSpeaking.d.mts +9 -0
  214. package/dist/composables/useKrispNoiseFilter.d.cts +16 -0
  215. package/dist/composables/useKrispNoiseFilter.d.mts +16 -0
  216. package/dist/composables/useLiveKitRoom.d.cts +15 -0
  217. package/dist/composables/useLiveKitRoom.d.mts +15 -0
  218. package/dist/composables/useLocalParticipant.d.cts +16 -0
  219. package/dist/composables/useLocalParticipant.d.mts +16 -0
  220. package/dist/composables/useLocalParticipantPermissions.d.cts +13 -0
  221. package/dist/composables/useLocalParticipantPermissions.d.mts +13 -0
  222. package/dist/composables/useMediaDeviceSelect.d.cts +16 -0
  223. package/dist/composables/useMediaDeviceSelect.d.mts +16 -0
  224. package/dist/composables/useMediaDevices.d.cts +12 -0
  225. package/dist/composables/useMediaDevices.d.mts +12 -0
  226. package/dist/composables/useMediaTrackBySourceOrName.d.cts +30 -0
  227. package/dist/composables/useMediaTrackBySourceOrName.d.mts +30 -0
  228. package/dist/composables/usePagination.d.cts +26 -0
  229. package/dist/composables/usePagination.d.mts +26 -0
  230. package/dist/composables/useParticipantAttributes.d.cts +14 -0
  231. package/dist/composables/useParticipantAttributes.d.mts +14 -0
  232. package/dist/composables/useParticipantAvatar.d.cts +17 -0
  233. package/dist/composables/useParticipantAvatar.d.mts +17 -0
  234. package/dist/composables/useParticipantInfo.d.cts +14 -0
  235. package/dist/composables/useParticipantInfo.d.mts +14 -0
  236. package/dist/composables/useParticipantPermissions.d.cts +10 -0
  237. package/dist/composables/useParticipantPermissions.d.mts +10 -0
  238. package/dist/composables/useParticipantTile.d.cts +22 -0
  239. package/dist/composables/useParticipantTile.d.mts +22 -0
  240. package/dist/composables/useParticipantTracks.d.cts +12 -0
  241. package/dist/composables/useParticipantTracks.d.mts +12 -0
  242. package/dist/composables/useParticipants.d.cts +11 -0
  243. package/dist/composables/useParticipants.d.mts +11 -0
  244. package/dist/composables/usePersistentUserChoices.d.cts +16 -0
  245. package/dist/composables/usePersistentUserChoices.d.mts +16 -0
  246. package/dist/composables/usePinnedTracks.d.cts +10 -0
  247. package/dist/composables/usePinnedTracks.d.mts +10 -0
  248. package/dist/composables/usePreviewTracks.d.cts +15 -0
  249. package/dist/composables/usePreviewTracks.d.mts +15 -0
  250. package/dist/composables/useRemoteParticipant.d.cts +14 -0
  251. package/dist/composables/useRemoteParticipant.d.mts +14 -0
  252. package/dist/composables/useRemoteParticipants.d.cts +10 -0
  253. package/dist/composables/useRemoteParticipants.d.mts +10 -0
  254. package/dist/composables/useRoomInfo.d.cts +13 -0
  255. package/dist/composables/useRoomInfo.d.mts +13 -0
  256. package/dist/composables/useRpc.d.cts +18 -0
  257. package/dist/composables/useRpc.d.mts +18 -0
  258. package/dist/composables/useSequentialRoomConnectDisconnect.d.cts +10 -0
  259. package/dist/composables/useSequentialRoomConnectDisconnect.d.mts +10 -0
  260. package/dist/composables/useSession.d.cts +83 -0
  261. package/dist/composables/useSession.d.mts +83 -0
  262. package/dist/composables/useSessionMessages.d.cts +22 -0
  263. package/dist/composables/useSessionMessages.d.mts +22 -0
  264. package/dist/composables/useSettingsToggle.d.cts +10 -0
  265. package/dist/composables/useSettingsToggle.d.mts +10 -0
  266. package/dist/composables/useSortedParticipants.d.cts +9 -0
  267. package/dist/composables/useSortedParticipants.d.mts +9 -0
  268. package/dist/composables/useSpeakingParticipants.d.cts +6 -0
  269. package/dist/composables/useSpeakingParticipants.d.mts +6 -0
  270. package/dist/composables/useStartAudio.d.cts +10 -0
  271. package/dist/composables/useStartAudio.d.mts +10 -0
  272. package/dist/composables/useStartVideo.d.cts +10 -0
  273. package/dist/composables/useStartVideo.d.mts +10 -0
  274. package/dist/composables/useSwipe.d.cts +16 -0
  275. package/dist/composables/useSwipe.d.mts +16 -0
  276. package/dist/composables/useTextStream.d.cts +27 -0
  277. package/dist/composables/useTextStream.d.mts +27 -0
  278. package/dist/composables/useToast.d.cts +9 -0
  279. package/dist/composables/useToast.d.mts +9 -0
  280. package/dist/composables/useToken.d.cts +23 -0
  281. package/dist/composables/useToken.d.mts +23 -0
  282. package/dist/composables/useTrack.d.cts +12 -0
  283. package/dist/composables/useTrack.d.mts +12 -0
  284. package/dist/composables/useTrackByName.d.cts +11 -0
  285. package/dist/composables/useTrackByName.d.mts +11 -0
  286. package/dist/composables/useTrackMutedIndicator.d.cts +9 -0
  287. package/dist/composables/useTrackMutedIndicator.d.mts +9 -0
  288. package/dist/composables/useTrackRefBySource.d.cts +9 -0
  289. package/dist/composables/useTrackRefBySource.d.mts +9 -0
  290. package/dist/composables/useTrackRefBySourceOrName.d.cts +7 -0
  291. package/dist/composables/useTrackRefBySourceOrName.d.mts +7 -0
  292. package/dist/composables/useTrackSyncTime.d.cts +13 -0
  293. package/dist/composables/useTrackSyncTime.d.mts +13 -0
  294. package/dist/composables/useTrackToggle.d.cts +28 -0
  295. package/dist/composables/useTrackToggle.d.mts +28 -0
  296. package/dist/composables/useTrackTranscription.d.cts +15 -0
  297. package/dist/composables/useTrackTranscription.d.mts +15 -0
  298. package/dist/composables/useTrackVolume.d.cts +39 -0
  299. package/dist/composables/useTrackVolume.d.mts +39 -0
  300. package/dist/composables/useTracks.d.cts +18 -0
  301. package/dist/composables/useTracks.d.mts +18 -0
  302. package/dist/composables/useTranscriptions.d.cts +12 -0
  303. package/dist/composables/useTranscriptions.d.mts +12 -0
  304. package/dist/composables/useVideoQuality.d.cts +29 -0
  305. package/dist/composables/useVideoQuality.d.mts +29 -0
  306. package/dist/composables/useVisualStableUpdate.d.cts +13 -0
  307. package/dist/composables/useVisualStableUpdate.d.mts +13 -0
  308. package/dist/composables/useVoiceAssistant.d.cts +16 -0
  309. package/dist/composables/useVoiceAssistant.d.mts +16 -0
  310. package/dist/context/connection-state.context.d.cts +18 -0
  311. package/dist/context/connection-state.context.d.mts +18 -0
  312. package/dist/context/error.d.cts +3 -0
  313. package/dist/context/error.d.mts +3 -0
  314. package/dist/context/feature.context.d.cts +8 -0
  315. package/dist/context/feature.context.d.mts +8 -0
  316. package/dist/context/index.d.cts +9 -0
  317. package/dist/context/index.d.mts +9 -0
  318. package/dist/context/layout.context.d.cts +15 -0
  319. package/dist/context/layout.context.d.mts +15 -0
  320. package/dist/context/participant.context.d.cts +8 -0
  321. package/dist/context/participant.context.d.mts +8 -0
  322. package/dist/context/pin.context.d.cts +21 -0
  323. package/dist/context/pin.context.d.mts +21 -0
  324. package/dist/context/room.context.d.cts +8 -0
  325. package/dist/context/room.context.d.mts +8 -0
  326. package/dist/context/session.context.d.cts +8 -0
  327. package/dist/context/session.context.d.mts +8 -0
  328. package/dist/context/toast.context.d.cts +17 -0
  329. package/dist/context/toast.context.d.mts +17 -0
  330. package/dist/context/track-reference.context.d.cts +8 -0
  331. package/dist/context/track-reference.context.d.mts +8 -0
  332. package/dist/context/widget.context.d.cts +21 -0
  333. package/dist/context/widget.context.d.mts +21 -0
  334. package/dist/index.d.cts +6 -0
  335. package/dist/index.d.mts +6 -0
  336. package/dist/internal/emitter.d.cts +17 -0
  337. package/dist/internal/emitter.d.mts +17 -0
  338. package/dist/internal/index.d.cts +4 -0
  339. package/dist/internal/index.d.mts +4 -0
  340. package/dist/internal/observable.d.cts +3 -0
  341. package/dist/internal/observable.d.mts +3 -0
  342. package/dist/internal/permissions.d.cts +4 -0
  343. package/dist/internal/permissions.d.mts +4 -0
  344. package/dist/internal/refs.d.cts +1 -0
  345. package/dist/internal/refs.d.mts +1 -0
  346. package/dist/krisp/index.d.cts +1 -0
  347. package/dist/krisp/index.d.mts +1 -0
  348. package/dist/krisp.cjs +2 -0
  349. package/dist/krisp.cjs.map +1 -0
  350. package/dist/krisp.js +62 -0
  351. package/dist/krisp.js.map +1 -0
  352. package/dist/livekit-vue.cjs +2 -0
  353. package/dist/livekit-vue.cjs.map +1 -0
  354. package/dist/livekit-vue.js +5101 -20542
  355. package/dist/livekit-vue.js.map +1 -0
  356. package/dist/livekit-vue.umd.js +4 -0
  357. package/dist/livekit-vue.umd.js.map +1 -0
  358. package/dist/style-CDggj9VO.js +14 -0
  359. package/dist/style-CDggj9VO.js.map +1 -0
  360. package/dist/style-CkQyDSsh.cjs +2 -0
  361. package/dist/style-CkQyDSsh.cjs.map +1 -0
  362. package/dist/styles.css +2 -0
  363. package/dist/types/agent.types.d.cts +2 -0
  364. package/dist/types/agent.types.d.mts +2 -0
  365. package/dist/types/index.d.cts +3 -0
  366. package/dist/types/index.d.mts +3 -0
  367. package/dist/types/livekit-room.types.d.cts +19 -0
  368. package/dist/types/livekit-room.types.d.mts +19 -0
  369. package/dist/types/participant.types.d.cts +2 -0
  370. package/dist/types/participant.types.d.mts +2 -0
  371. package/dist/useLocalParticipant-ByBAgL8i.js +50 -0
  372. package/dist/useLocalParticipant-ByBAgL8i.js.map +1 -0
  373. package/dist/useLocalParticipant-Dn5NE_KM.cjs +2 -0
  374. package/dist/useLocalParticipant-Dn5NE_KM.cjs.map +1 -0
  375. package/dist/utils/media-choices.utils.d.cts +7 -0
  376. package/dist/utils/media-choices.utils.d.mts +7 -0
  377. package/dist/{src/utils/room.utils.d.ts → utils/room.utils.d.cts} +1 -1
  378. package/dist/utils/room.utils.d.mts +1 -0
  379. package/package.json +103 -66
  380. package/dist/favicon.ico +0 -0
  381. package/dist/index.css +0 -1
  382. package/dist/livekit-vue.umd.cjs +0 -62
  383. package/dist/src/assets/index.d.ts +0 -0
  384. package/dist/src/components/controls/TrackToggle.vue.d.ts +0 -15
  385. package/dist/src/components/controls/buttons.d.ts +0 -4
  386. package/dist/src/components/controls/index.d.ts +0 -3
  387. package/dist/src/components/controls/track_toggle.d.ts +0 -12
  388. package/dist/src/components/icons/ParticipantPlaceholderIcon.vue.d.ts +0 -2
  389. package/dist/src/components/icons/TrackIcon.vue.d.ts +0 -7
  390. package/dist/src/components/index.d.ts +0 -3
  391. package/dist/src/components/participant/audio_track.d.ts +0 -7
  392. package/dist/src/composables/index.d.ts +0 -37
  393. package/dist/src/composables/private/useObservableState.d.ts +0 -8
  394. package/dist/src/composables/useAudioPlayback.d.ts +0 -11
  395. package/dist/src/composables/useClearPinButton.d.ts +0 -5
  396. package/dist/src/composables/useConnectionQualityIndicator.d.ts +0 -10
  397. package/dist/src/composables/useConnectionState.d.ts +0 -3
  398. package/dist/src/composables/useDataChannel.d.ts +0 -15
  399. package/dist/src/composables/useDisconnectButton.d.ts +0 -5
  400. package/dist/src/composables/useFacingMode.d.ts +0 -10
  401. package/dist/src/composables/useFocusToggle.d.ts +0 -11
  402. package/dist/src/composables/useGridLayout.d.ts +0 -10
  403. package/dist/src/composables/useIsEncrypted.d.ts +0 -8
  404. package/dist/src/composables/useIsMuted.d.ts +0 -7
  405. package/dist/src/composables/useIsRecording.d.ts +0 -5
  406. package/dist/src/composables/useIsSpeaking.d.ts +0 -5
  407. package/dist/src/composables/useLiveKitRoom.d.ts +0 -8
  408. package/dist/src/composables/useLocalParticipant.d.ts +0 -16
  409. package/dist/src/composables/useParticipantTile.d.ts +0 -11
  410. package/dist/src/composables/useParticipantTracks.d.ts +0 -4
  411. package/dist/src/composables/useParticipants.d.ts +0 -7
  412. package/dist/src/composables/usePersistentUserChoices.d.ts +0 -16
  413. package/dist/src/composables/usePinnedTracks.d.ts +0 -4
  414. package/dist/src/composables/useRemoteParticipant.d.ts +0 -7
  415. package/dist/src/composables/useRemoteParticipants.d.ts +0 -7
  416. package/dist/src/composables/useRoomInfo.d.ts +0 -13
  417. package/dist/src/composables/useSortedParticipants.d.ts +0 -3
  418. package/dist/src/composables/useSpeakingParticipants.d.ts +0 -3
  419. package/dist/src/composables/useStartAudio.d.ts +0 -11
  420. package/dist/src/composables/useStartVideo.d.ts +0 -11
  421. package/dist/src/composables/useToken.d.ts +0 -10
  422. package/dist/src/composables/useTrack.d.ts +0 -3
  423. package/dist/src/composables/useTrackByName.d.ts +0 -3
  424. package/dist/src/composables/useTrackMutedIndicator.d.ts +0 -6
  425. package/dist/src/composables/useTrackRefBySourceOrName.d.ts +0 -4
  426. package/dist/src/composables/useTrackSyncTime.d.ts +0 -6
  427. package/dist/src/composables/useTrackToggle.d.ts +0 -21
  428. package/dist/src/composables/useTrackVolume.d.ts +0 -28
  429. package/dist/src/composables/useTracks.d.ts +0 -10
  430. package/dist/src/composables/useVisualStableUpdate.d.ts +0 -8
  431. package/dist/src/context/index.d.ts +0 -6
  432. package/dist/src/context/layout.context.d.ts +0 -28
  433. package/dist/src/context/participant.context.d.ts +0 -9
  434. package/dist/src/context/pin.context.d.ts +0 -26
  435. package/dist/src/context/room.context.d.ts +0 -9
  436. package/dist/src/context/track_reference.context.d.ts +0 -6
  437. package/dist/src/context/widget.context.d.ts +0 -7
  438. package/dist/src/index.d.ts +0 -3
  439. package/dist/src/types/livekit_room.types.d.ts +0 -68
  440. package/src/assets/icons/chevron-down.svg +0 -4
  441. package/src/assets/icons/chevron-up.svg +0 -4
  442. package/src/assets/icons/frown.svg +0 -7
  443. package/src/assets/icons/heart.svg +0 -6
  444. package/src/assets/icons/mic-off.svg +0 -8
  445. package/src/assets/icons/mic.svg +0 -7
  446. package/src/assets/icons/phone-hang-up.svg +0 -9
  447. package/src/assets/icons/share-screen-off.svg +0 -6
  448. package/src/assets/icons/share-screen.svg +0 -7
  449. package/src/assets/icons/smile.svg +0 -7
  450. package/src/assets/icons/thumbs-down.svg +0 -6
  451. package/src/assets/icons/thumbs-up.svg +0 -6
  452. package/src/assets/icons/video-off.svg +0 -5
  453. package/src/assets/icons/video.svg +0 -5
  454. package/src/assets/index.ts +0 -1
  455. package/src/assets/placeholders/participant.svg +0 -8
  456. package/src/components/controls/TrackToggle.vue +0 -27
  457. package/src/components/controls/buttons.ts +0 -5
  458. package/src/components/controls/index.ts +0 -3
  459. package/src/components/controls/track_toggle.ts +0 -13
  460. package/src/components/icons/ParticipantPlaceholderIcon.vue +0 -7
  461. package/src/components/icons/TrackIcon.vue +0 -55
  462. package/src/components/index.ts +0 -3
  463. package/src/components/participant/AudioTrack.vue +0 -17
  464. package/src/components/participant/audio_track.ts +0 -8
  465. package/src/composables/index.ts +0 -89
  466. package/src/composables/private/useObservableState.ts +0 -44
  467. package/src/composables/useAudioPlayback.ts +0 -42
  468. package/src/composables/useClearPinButton.ts +0 -41
  469. package/src/composables/useConnectionQualityIndicator.ts +0 -39
  470. package/src/composables/useConnectionState.ts +0 -21
  471. package/src/composables/useDataChannel.ts +0 -56
  472. package/src/composables/useDisconnectButton.ts +0 -28
  473. package/src/composables/useFacingMode.ts +0 -28
  474. package/src/composables/useFocusToggle.ts +0 -38
  475. package/src/composables/useGridLayout.ts +0 -44
  476. package/src/composables/useIsEncrypted.ts +0 -34
  477. package/src/composables/useIsMuted.ts +0 -56
  478. package/src/composables/useIsRecording.ts +0 -30
  479. package/src/composables/useIsSpeaking.ts +0 -23
  480. package/src/composables/useLiveKitRoom.ts +0 -219
  481. package/src/composables/useLocalParticipant.ts +0 -64
  482. package/src/composables/useParticipantTile.ts +0 -68
  483. package/src/composables/useParticipantTracks.ts +0 -36
  484. package/src/composables/useParticipants.ts +0 -25
  485. package/src/composables/usePersistentUserChoices.ts +0 -64
  486. package/src/composables/usePinnedTracks.ts +0 -16
  487. package/src/composables/useRemoteParticipant.ts +0 -42
  488. package/src/composables/useRemoteParticipants.ts +0 -27
  489. package/src/composables/useRoomInfo.ts +0 -42
  490. package/src/composables/useSortedParticipants.ts +0 -21
  491. package/src/composables/useSpeakingParticipants.ts +0 -22
  492. package/src/composables/useStartAudio.ts +0 -53
  493. package/src/composables/useStartVideo.ts +0 -53
  494. package/src/composables/useToken.ts +0 -40
  495. package/src/composables/useTrack.ts +0 -11
  496. package/src/composables/useTrackByName.ts +0 -11
  497. package/src/composables/useTrackMutedIndicator.ts +0 -34
  498. package/src/composables/useTrackRefBySourceOrName.ts +0 -39
  499. package/src/composables/useTrackSyncTime.ts +0 -32
  500. package/src/composables/useTrackToggle.ts +0 -113
  501. package/src/composables/useTrackVolume.ts +0 -268
  502. package/src/composables/useTracks.ts +0 -122
  503. package/src/composables/useVisualStableUpdate.ts +0 -57
  504. package/src/context/index.ts +0 -6
  505. package/src/context/layout.context.ts +0 -46
  506. package/src/context/participant.context.ts +0 -33
  507. package/src/context/pin.context.ts +0 -50
  508. package/src/context/room.context.ts +0 -31
  509. package/src/context/track_reference.context.ts +0 -29
  510. package/src/context/widget.context.ts +0 -17
  511. package/src/index.css +0 -1
  512. package/src/index.ts +0 -5
  513. package/src/types/livekit_room.types.ts +0 -78
  514. package/src/utils/room.utils.ts +0 -9
@@ -0,0 +1,11 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { Participant, Track } from 'livekit-client';
3
+ import { Ref } from 'vue';
4
+ export interface UseIsMutedProps {
5
+ readonly participant?: Participant;
6
+ readonly sourceOrTrackRef: TrackReferenceOrPlaceholder | Track.Source;
7
+ }
8
+ export interface UseIsMuted {
9
+ readonly isMuted: Ref<boolean>;
10
+ }
11
+ export declare function useIsMuted(props: UseIsMutedProps): UseIsMuted;
@@ -0,0 +1,9 @@
1
+ import { Room } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseIsRecording {
4
+ readonly isRecording: Ref<boolean>;
5
+ }
6
+ export interface UseIsRecordingProps {
7
+ readonly room?: Room;
8
+ }
9
+ export declare function useIsRecording(props: UseIsRecordingProps): UseIsRecording;
@@ -0,0 +1,9 @@
1
+ import { Room } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseIsRecording {
4
+ readonly isRecording: Ref<boolean>;
5
+ }
6
+ export interface UseIsRecordingProps {
7
+ readonly room?: Room;
8
+ }
9
+ export declare function useIsRecording(props: UseIsRecordingProps): UseIsRecording;
@@ -0,0 +1,9 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseIsSpeaking {
4
+ readonly isSpeaking: Ref<boolean>;
5
+ }
6
+ export interface UseIsSpeakingProps {
7
+ readonly participant: Participant;
8
+ }
9
+ export declare function useIsSpeaking(props: UseIsSpeakingProps): UseIsSpeaking;
@@ -0,0 +1,9 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseIsSpeaking {
4
+ readonly isSpeaking: Ref<boolean>;
5
+ }
6
+ export interface UseIsSpeakingProps {
7
+ readonly participant: Participant;
8
+ }
9
+ export declare function useIsSpeaking(props: UseIsSpeakingProps): UseIsSpeaking;
@@ -0,0 +1,16 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { KrispNoiseFilterProcessor, NoiseFilterOptions } from '@livekit/krisp-noise-filter';
3
+ import { Room } from 'livekit-client';
4
+ import { MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
5
+ export interface UseKrispNoiseFilterProps {
6
+ readonly room?: Room;
7
+ readonly trackRef?: MaybeRefOrGetter<TrackReferenceOrPlaceholder | undefined>;
8
+ readonly filterOptions?: NoiseFilterOptions;
9
+ }
10
+ export interface UseKrispNoiseFilter {
11
+ readonly setNoiseFilterEnabled: (enable: boolean) => Promise<void>;
12
+ readonly isNoiseFilterEnabled: Readonly<Ref<boolean>>;
13
+ readonly isNoiseFilterPending: Readonly<Ref<boolean>>;
14
+ readonly processor: Readonly<ShallowRef<KrispNoiseFilterProcessor | undefined>>;
15
+ }
16
+ export declare function useKrispNoiseFilter(props?: UseKrispNoiseFilterProps): UseKrispNoiseFilter;
@@ -0,0 +1,16 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { KrispNoiseFilterProcessor, NoiseFilterOptions } from '@livekit/krisp-noise-filter';
3
+ import { Room } from 'livekit-client';
4
+ import { MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
5
+ export interface UseKrispNoiseFilterProps {
6
+ readonly room?: Room;
7
+ readonly trackRef?: MaybeRefOrGetter<TrackReferenceOrPlaceholder | undefined>;
8
+ readonly filterOptions?: NoiseFilterOptions;
9
+ }
10
+ export interface UseKrispNoiseFilter {
11
+ readonly setNoiseFilterEnabled: (enable: boolean) => Promise<void>;
12
+ readonly isNoiseFilterEnabled: Readonly<Ref<boolean>>;
13
+ readonly isNoiseFilterPending: Readonly<Ref<boolean>>;
14
+ readonly processor: Readonly<ShallowRef<KrispNoiseFilterProcessor | undefined>>;
15
+ }
16
+ export declare function useKrispNoiseFilter(props?: UseKrispNoiseFilterProps): UseKrispNoiseFilter;
@@ -0,0 +1,15 @@
1
+ import { Room } from 'livekit-client';
2
+ import { Ref, ShallowRef } from 'vue';
3
+ import { LiveKitRoomProps } from '../types/livekit-room.types.cjs';
4
+ export type RoomConnectionState = (typeof ROOM_CONNECTION_STATE)[keyof typeof ROOM_CONNECTION_STATE];
5
+ export interface UseLiveKitRoom {
6
+ readonly room: ShallowRef<Room | undefined>;
7
+ readonly connectionState: Ref<RoomConnectionState>;
8
+ }
9
+ export declare const ROOM_CONNECTION_STATE: {
10
+ readonly DISCONNECTED: "disconnected";
11
+ readonly CONNECTING: "connecting";
12
+ readonly CONNECTED: "connected";
13
+ readonly FAILED: "failed";
14
+ };
15
+ export declare function useLiveKitRoom(props: LiveKitRoomProps): UseLiveKitRoom;
@@ -0,0 +1,15 @@
1
+ import { Room } from 'livekit-client';
2
+ import { Ref, ShallowRef } from 'vue';
3
+ import { LiveKitRoomProps } from '../types/livekit-room.types.mjs';
4
+ export type RoomConnectionState = (typeof ROOM_CONNECTION_STATE)[keyof typeof ROOM_CONNECTION_STATE];
5
+ export interface UseLiveKitRoom {
6
+ readonly room: ShallowRef<Room | undefined>;
7
+ readonly connectionState: Ref<RoomConnectionState>;
8
+ }
9
+ export declare const ROOM_CONNECTION_STATE: {
10
+ readonly DISCONNECTED: "disconnected";
11
+ readonly CONNECTING: "connecting";
12
+ readonly CONNECTED: "connected";
13
+ readonly FAILED: "failed";
14
+ };
15
+ export declare function useLiveKitRoom(props: LiveKitRoomProps): UseLiveKitRoom;
@@ -0,0 +1,16 @@
1
+ import { LocalParticipant, Room, TrackPublication } from 'livekit-client';
2
+ import { Ref, ShallowRef } from 'vue';
3
+ export interface UseLocalParticipantProps {
4
+ readonly room?: Room;
5
+ }
6
+ export interface UseLocalParticipant {
7
+ readonly isMicrophoneEnabled: Ref<boolean>;
8
+ readonly isScreenShareEnabled: Ref<boolean>;
9
+ readonly isCameraEnabled: Ref<boolean>;
10
+ readonly microphoneTrack: ShallowRef<TrackPublication | undefined>;
11
+ readonly cameraTrack: ShallowRef<TrackPublication | undefined>;
12
+ readonly lastMicrophoneError: Ref<Error | undefined>;
13
+ readonly lastCameraError: Ref<Error | undefined>;
14
+ readonly localParticipant: ShallowRef<LocalParticipant | undefined>;
15
+ }
16
+ export declare function useLocalParticipant(props?: UseLocalParticipantProps): UseLocalParticipant;
@@ -0,0 +1,16 @@
1
+ import { LocalParticipant, Room, TrackPublication } from 'livekit-client';
2
+ import { Ref, ShallowRef } from 'vue';
3
+ export interface UseLocalParticipantProps {
4
+ readonly room?: Room;
5
+ }
6
+ export interface UseLocalParticipant {
7
+ readonly isMicrophoneEnabled: Ref<boolean>;
8
+ readonly isScreenShareEnabled: Ref<boolean>;
9
+ readonly isCameraEnabled: Ref<boolean>;
10
+ readonly microphoneTrack: ShallowRef<TrackPublication | undefined>;
11
+ readonly cameraTrack: ShallowRef<TrackPublication | undefined>;
12
+ readonly lastMicrophoneError: Ref<Error | undefined>;
13
+ readonly lastCameraError: Ref<Error | undefined>;
14
+ readonly localParticipant: ShallowRef<LocalParticipant | undefined>;
15
+ }
16
+ export declare function useLocalParticipant(props?: UseLocalParticipantProps): UseLocalParticipant;
@@ -0,0 +1,13 @@
1
+ import { Room } from 'livekit-client';
2
+ import { ShallowRef } from 'vue';
3
+ import { ParticipantPermission } from '../types/participant.types.cjs';
4
+ export interface UseLocalParticipantPermissionsOptions {
5
+ readonly room?: Room;
6
+ }
7
+ export interface UseLocalParticipantPermissions {
8
+ readonly permissions: ShallowRef<ParticipantPermission | undefined>;
9
+ }
10
+ export interface UseLocalParticipantPermissionsProps {
11
+ readonly options: UseLocalParticipantPermissionsOptions;
12
+ }
13
+ export declare function useLocalParticipantPermissions(props: UseLocalParticipantPermissionsProps): UseLocalParticipantPermissions;
@@ -0,0 +1,13 @@
1
+ import { Room } from 'livekit-client';
2
+ import { ShallowRef } from 'vue';
3
+ import { ParticipantPermission } from '../types/participant.types.mjs';
4
+ export interface UseLocalParticipantPermissionsOptions {
5
+ readonly room?: Room;
6
+ }
7
+ export interface UseLocalParticipantPermissions {
8
+ readonly permissions: ShallowRef<ParticipantPermission | undefined>;
9
+ }
10
+ export interface UseLocalParticipantPermissionsProps {
11
+ readonly options: UseLocalParticipantPermissionsOptions;
12
+ }
13
+ export declare function useLocalParticipantPermissions(props: UseLocalParticipantPermissionsProps): UseLocalParticipantPermissions;
@@ -0,0 +1,16 @@
1
+ import { SetMediaDeviceOptions } from '@livekit/components-core';
2
+ import { Room, LocalAudioTrack, LocalVideoTrack } from 'livekit-client';
3
+ import { Ref } from 'vue';
4
+ export interface UseMediaDeviceSelectProps {
5
+ readonly kind: MediaDeviceKind;
6
+ readonly room?: Room;
7
+ readonly track?: LocalAudioTrack | LocalVideoTrack;
8
+ readonly requestPermissions?: boolean;
9
+ readonly onError?: (e: Error) => void;
10
+ }
11
+ export interface UseMediaDeviceSelect {
12
+ readonly devices: Ref<MediaDeviceInfo[]>;
13
+ readonly activeDeviceId: Ref<string | undefined>;
14
+ readonly setActiveMediaDevice: (deviceId: string, options?: SetMediaDeviceOptions) => Promise<void>;
15
+ }
16
+ export declare function useMediaDeviceSelect(props: UseMediaDeviceSelectProps): UseMediaDeviceSelect;
@@ -0,0 +1,16 @@
1
+ import { SetMediaDeviceOptions } from '@livekit/components-core';
2
+ import { Room, LocalAudioTrack, LocalVideoTrack } from 'livekit-client';
3
+ import { Ref } from 'vue';
4
+ export interface UseMediaDeviceSelectProps {
5
+ readonly kind: MediaDeviceKind;
6
+ readonly room?: Room;
7
+ readonly track?: LocalAudioTrack | LocalVideoTrack;
8
+ readonly requestPermissions?: boolean;
9
+ readonly onError?: (e: Error) => void;
10
+ }
11
+ export interface UseMediaDeviceSelect {
12
+ readonly devices: Ref<MediaDeviceInfo[]>;
13
+ readonly activeDeviceId: Ref<string | undefined>;
14
+ readonly setActiveMediaDevice: (deviceId: string, options?: SetMediaDeviceOptions) => Promise<void>;
15
+ }
16
+ export declare function useMediaDeviceSelect(props: UseMediaDeviceSelectProps): UseMediaDeviceSelect;
@@ -0,0 +1,12 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseMediaDevicesProps {
3
+ readonly kind: MediaDeviceKind;
4
+ readonly onError?: (e: Error) => void;
5
+ readonly requestPermissions?: boolean;
6
+ }
7
+ export interface UseMediaDevices {
8
+ readonly devices: Ref<MediaDeviceInfo[]>;
9
+ readonly canSelectAudioOutput: Ref<boolean>;
10
+ readonly requestPermission: (kind: 'audio' | 'video' | 'both') => Promise<boolean>;
11
+ }
12
+ export declare function useMediaDevices(props: UseMediaDevicesProps): UseMediaDevices;
@@ -0,0 +1,12 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseMediaDevicesProps {
3
+ readonly kind: MediaDeviceKind;
4
+ readonly onError?: (e: Error) => void;
5
+ readonly requestPermissions?: boolean;
6
+ }
7
+ export interface UseMediaDevices {
8
+ readonly devices: Ref<MediaDeviceInfo[]>;
9
+ readonly canSelectAudioOutput: Ref<boolean>;
10
+ readonly requestPermission: (kind: 'audio' | 'video' | 'both') => Promise<boolean>;
11
+ }
12
+ export declare function useMediaDevices(props: UseMediaDevicesProps): UseMediaDevices;
@@ -0,0 +1,30 @@
1
+ import { TrackIdentifier } from '@livekit/components-core';
2
+ import { Track, TrackPublication } from 'livekit-client';
3
+ import { HTMLAttributes, MaybeRef, Ref, ShallowRef } from 'vue';
4
+ export interface UseMediaTrackOptions {
5
+ readonly element?: MaybeRef<HTMLMediaElement | null | undefined>;
6
+ readonly props?: HTMLAttributes;
7
+ }
8
+ export declare const TRACK_ORIENTATION: {
9
+ readonly LANDSCAPE: "landscape";
10
+ readonly PORTRAIT: "portrait";
11
+ readonly UNKNOWN: "unknown";
12
+ };
13
+ export type TrackOrientation = (typeof TRACK_ORIENTATION)[keyof typeof TRACK_ORIENTATION];
14
+ export interface MediaTrackAttributes {
15
+ readonly 'data-lk-local-participant': boolean;
16
+ readonly 'data-lk-source': Track.Source;
17
+ readonly 'data-lk-orientation': TrackOrientation;
18
+ }
19
+ export interface UseMediaTrackBySourceOrName {
20
+ readonly publication: ShallowRef<TrackPublication | undefined>;
21
+ readonly isMuted: Ref<boolean>;
22
+ readonly isSubscribed: Ref<boolean>;
23
+ readonly track: ShallowRef<Track | undefined>;
24
+ readonly attributes: Ref<MediaTrackAttributes>;
25
+ }
26
+ export interface UseMediaTrackBySourceOrNameProps {
27
+ readonly observerOptions: TrackIdentifier;
28
+ readonly options: UseMediaTrackOptions;
29
+ }
30
+ export declare function useMediaTrackBySourceOrName(props: UseMediaTrackBySourceOrNameProps): UseMediaTrackBySourceOrName;
@@ -0,0 +1,30 @@
1
+ import { TrackIdentifier } from '@livekit/components-core';
2
+ import { Track, TrackPublication } from 'livekit-client';
3
+ import { HTMLAttributes, MaybeRef, Ref, ShallowRef } from 'vue';
4
+ export interface UseMediaTrackOptions {
5
+ readonly element?: MaybeRef<HTMLMediaElement | null | undefined>;
6
+ readonly props?: HTMLAttributes;
7
+ }
8
+ export declare const TRACK_ORIENTATION: {
9
+ readonly LANDSCAPE: "landscape";
10
+ readonly PORTRAIT: "portrait";
11
+ readonly UNKNOWN: "unknown";
12
+ };
13
+ export type TrackOrientation = (typeof TRACK_ORIENTATION)[keyof typeof TRACK_ORIENTATION];
14
+ export interface MediaTrackAttributes {
15
+ readonly 'data-lk-local-participant': boolean;
16
+ readonly 'data-lk-source': Track.Source;
17
+ readonly 'data-lk-orientation': TrackOrientation;
18
+ }
19
+ export interface UseMediaTrackBySourceOrName {
20
+ readonly publication: ShallowRef<TrackPublication | undefined>;
21
+ readonly isMuted: Ref<boolean>;
22
+ readonly isSubscribed: Ref<boolean>;
23
+ readonly track: ShallowRef<Track | undefined>;
24
+ readonly attributes: Ref<MediaTrackAttributes>;
25
+ }
26
+ export interface UseMediaTrackBySourceOrNameProps {
27
+ readonly observerOptions: TrackIdentifier;
28
+ readonly options: UseMediaTrackOptions;
29
+ }
30
+ export declare function useMediaTrackBySourceOrName(props: UseMediaTrackBySourceOrNameProps): UseMediaTrackBySourceOrName;
@@ -0,0 +1,26 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
3
+ import { UseVisualStableUpdateProps } from './useVisualStableUpdate.cjs';
4
+ export interface UsePaginationOptions {
5
+ readonly customSortFunction?: UseVisualStableUpdateProps['customSortFunction'];
6
+ readonly initialPage?: number;
7
+ }
8
+ export type PaginationDirection = (typeof PAGINATION_DIRECTION)[keyof typeof PAGINATION_DIRECTION];
9
+ export interface UsePagination {
10
+ readonly totalPageCount: Ref<number>;
11
+ readonly firstItemIndex: Ref<number>;
12
+ readonly lastItemIndex: Ref<number>;
13
+ readonly tracks: ComputedRef<TrackReferenceOrPlaceholder[]>;
14
+ readonly currentPage: Ref<number>;
15
+ readonly nextPage: () => void;
16
+ readonly prevPage: () => void;
17
+ readonly setPage: (num: number) => void;
18
+ readonly hasNextPage: ComputedRef<boolean>;
19
+ readonly hasPrevPage: ComputedRef<boolean>;
20
+ readonly totalItems: ComputedRef<number>;
21
+ }
22
+ export declare const PAGINATION_DIRECTION: {
23
+ readonly NEXT: "next";
24
+ readonly PREVIOUS: "previous";
25
+ };
26
+ export declare function usePagination(itemPerPage: MaybeRefOrGetter<number>, trackReferences: MaybeRefOrGetter<TrackReferenceOrPlaceholder[]>, options?: UsePaginationOptions): UsePagination;
@@ -0,0 +1,26 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
3
+ import { UseVisualStableUpdateProps } from './useVisualStableUpdate.mjs';
4
+ export interface UsePaginationOptions {
5
+ readonly customSortFunction?: UseVisualStableUpdateProps['customSortFunction'];
6
+ readonly initialPage?: number;
7
+ }
8
+ export type PaginationDirection = (typeof PAGINATION_DIRECTION)[keyof typeof PAGINATION_DIRECTION];
9
+ export interface UsePagination {
10
+ readonly totalPageCount: Ref<number>;
11
+ readonly firstItemIndex: Ref<number>;
12
+ readonly lastItemIndex: Ref<number>;
13
+ readonly tracks: ComputedRef<TrackReferenceOrPlaceholder[]>;
14
+ readonly currentPage: Ref<number>;
15
+ readonly nextPage: () => void;
16
+ readonly prevPage: () => void;
17
+ readonly setPage: (num: number) => void;
18
+ readonly hasNextPage: ComputedRef<boolean>;
19
+ readonly hasPrevPage: ComputedRef<boolean>;
20
+ readonly totalItems: ComputedRef<number>;
21
+ }
22
+ export declare const PAGINATION_DIRECTION: {
23
+ readonly NEXT: "next";
24
+ readonly PREVIOUS: "previous";
25
+ };
26
+ export declare function usePagination(itemPerPage: MaybeRefOrGetter<number>, trackReferences: MaybeRefOrGetter<TrackReferenceOrPlaceholder[]>, options?: UsePaginationOptions): UsePagination;
@@ -0,0 +1,14 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseParticipantAttributesProps {
4
+ readonly participant?: Participant;
5
+ readonly attributeKey?: string;
6
+ }
7
+ export interface UseParticipantAttribute {
8
+ readonly attribute: Ref<string | undefined>;
9
+ }
10
+ export interface UseParticipantAttributes {
11
+ readonly attributes: Ref<Readonly<Record<string, string>> | undefined>;
12
+ }
13
+ export declare function useParticipantAttribute(props?: UseParticipantAttributesProps): UseParticipantAttribute;
14
+ export declare function useParticipantAttributes(props?: UseParticipantAttributesProps): UseParticipantAttributes;
@@ -0,0 +1,14 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseParticipantAttributesProps {
4
+ readonly participant?: Participant;
5
+ readonly attributeKey?: string;
6
+ }
7
+ export interface UseParticipantAttribute {
8
+ readonly attribute: Ref<string | undefined>;
9
+ }
10
+ export interface UseParticipantAttributes {
11
+ readonly attributes: Ref<Readonly<Record<string, string>> | undefined>;
12
+ }
13
+ export declare function useParticipantAttribute(props?: UseParticipantAttributesProps): UseParticipantAttribute;
14
+ export declare function useParticipantAttributes(props?: UseParticipantAttributesProps): UseParticipantAttributes;
@@ -0,0 +1,17 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { ComputedRef } from 'vue';
3
+ export interface UseParticipantAvatarProps {
4
+ readonly participant?: Participant;
5
+ readonly src?: string;
6
+ readonly name?: string;
7
+ }
8
+ export interface UseParticipantAvatar {
9
+ readonly src: ComputedRef<string | undefined>;
10
+ readonly initials: ComputedRef<string>;
11
+ readonly hue: ComputedRef<number>;
12
+ }
13
+ export declare const PARTICIPANT_AVATAR_KEYS: readonly ["avatar", "avatarUrl", "avatar_url", "picture"];
14
+ export declare function avatarFromMetadata(metadata: string | undefined): string | undefined;
15
+ export declare function getInitials(name: string): string;
16
+ export declare function avatarHue(identity: string): number;
17
+ export declare function useParticipantAvatar(props?: UseParticipantAvatarProps): UseParticipantAvatar;
@@ -0,0 +1,17 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { ComputedRef } from 'vue';
3
+ export interface UseParticipantAvatarProps {
4
+ readonly participant?: Participant;
5
+ readonly src?: string;
6
+ readonly name?: string;
7
+ }
8
+ export interface UseParticipantAvatar {
9
+ readonly src: ComputedRef<string | undefined>;
10
+ readonly initials: ComputedRef<string>;
11
+ readonly hue: ComputedRef<number>;
12
+ }
13
+ export declare const PARTICIPANT_AVATAR_KEYS: readonly ["avatar", "avatarUrl", "avatar_url", "picture"];
14
+ export declare function avatarFromMetadata(metadata: string | undefined): string | undefined;
15
+ export declare function getInitials(name: string): string;
16
+ export declare function avatarHue(identity: string): number;
17
+ export declare function useParticipantAvatar(props?: UseParticipantAvatarProps): UseParticipantAvatar;
@@ -0,0 +1,14 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseParticipantInfoProps {
4
+ readonly participant?: Participant;
5
+ }
6
+ export interface ParticipantInfo {
7
+ readonly name: string | undefined;
8
+ readonly identity: string;
9
+ readonly metadata: string | undefined;
10
+ }
11
+ export interface UseParticipantInfo {
12
+ readonly info: Ref<ParticipantInfo | undefined>;
13
+ }
14
+ export declare function useParticipantInfo(props?: UseParticipantInfoProps): UseParticipantInfo;
@@ -0,0 +1,14 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { Ref } from 'vue';
3
+ export interface UseParticipantInfoProps {
4
+ readonly participant?: Participant;
5
+ }
6
+ export interface ParticipantInfo {
7
+ readonly name: string | undefined;
8
+ readonly identity: string;
9
+ readonly metadata: string | undefined;
10
+ }
11
+ export interface UseParticipantInfo {
12
+ readonly info: Ref<ParticipantInfo | undefined>;
13
+ }
14
+ export declare function useParticipantInfo(props?: UseParticipantInfoProps): UseParticipantInfo;
@@ -0,0 +1,10 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { ShallowRef } from 'vue';
3
+ import { ParticipantPermission } from '../types/participant.types.cjs';
4
+ export interface UseParticipantPermissionsProps {
5
+ readonly participant?: Participant;
6
+ }
7
+ export interface UseParticipantPermissions {
8
+ readonly permissions: ShallowRef<ParticipantPermission | undefined>;
9
+ }
10
+ export declare function useParticipantPermissions(props?: UseParticipantPermissionsProps): UseParticipantPermissions;
@@ -0,0 +1,10 @@
1
+ import { Participant } from 'livekit-client';
2
+ import { ShallowRef } from 'vue';
3
+ import { ParticipantPermission } from '../types/participant.types.mjs';
4
+ export interface UseParticipantPermissionsProps {
5
+ readonly participant?: Participant;
6
+ }
7
+ export interface UseParticipantPermissions {
8
+ readonly permissions: ShallowRef<ParticipantPermission | undefined>;
9
+ }
10
+ export declare function useParticipantPermissions(props?: UseParticipantPermissionsProps): UseParticipantPermissions;
@@ -0,0 +1,22 @@
1
+ import { ParticipantClickEvent, TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { Track } from 'livekit-client';
3
+ import { ComputedRef } from 'vue';
4
+ import { FacingMode } from './useFacingMode.cjs';
5
+ export interface ParticipantTileAttributes {
6
+ readonly 'data-lk-audio-muted': boolean;
7
+ readonly 'data-lk-video-muted': boolean;
8
+ readonly 'data-lk-speaking': boolean;
9
+ readonly 'data-lk-local-participant': boolean;
10
+ readonly 'data-lk-source': Track.Source;
11
+ readonly 'data-lk-facing-mode': FacingMode;
12
+ }
13
+ export interface UseParticipantTileProps {
14
+ readonly trackRef?: TrackReferenceOrPlaceholder;
15
+ readonly disableSpeakingIndicator?: boolean;
16
+ readonly onParticipantClick?: (event: ParticipantClickEvent) => void;
17
+ }
18
+ export interface UseParticipantTile {
19
+ readonly attributes: ComputedRef<ParticipantTileAttributes>;
20
+ readonly onClick: () => void;
21
+ }
22
+ export declare function useParticipantTile(props: UseParticipantTileProps): UseParticipantTile;
@@ -0,0 +1,22 @@
1
+ import { ParticipantClickEvent, TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { Track } from 'livekit-client';
3
+ import { ComputedRef } from 'vue';
4
+ import { FacingMode } from './useFacingMode.mjs';
5
+ export interface ParticipantTileAttributes {
6
+ readonly 'data-lk-audio-muted': boolean;
7
+ readonly 'data-lk-video-muted': boolean;
8
+ readonly 'data-lk-speaking': boolean;
9
+ readonly 'data-lk-local-participant': boolean;
10
+ readonly 'data-lk-source': Track.Source;
11
+ readonly 'data-lk-facing-mode': FacingMode;
12
+ }
13
+ export interface UseParticipantTileProps {
14
+ readonly trackRef?: TrackReferenceOrPlaceholder;
15
+ readonly disableSpeakingIndicator?: boolean;
16
+ readonly onParticipantClick?: (event: ParticipantClickEvent) => void;
17
+ }
18
+ export interface UseParticipantTile {
19
+ readonly attributes: ComputedRef<ParticipantTileAttributes>;
20
+ readonly onClick: () => void;
21
+ }
22
+ export declare function useParticipantTile(props: UseParticipantTileProps): UseParticipantTile;
@@ -0,0 +1,12 @@
1
+ import { TrackReference } from '@livekit/components-core';
2
+ import { Participant, Track } from 'livekit-client';
3
+ import { ShallowRef } from 'vue';
4
+ export interface UseParticipantTracksProps {
5
+ readonly sources: Track.Source[];
6
+ readonly participantIdentity?: string;
7
+ readonly participant?: Participant;
8
+ }
9
+ export interface UseParticipantTracks {
10
+ readonly trackReferences: ShallowRef<TrackReference[]>;
11
+ }
12
+ export declare function useParticipantTracks(props: UseParticipantTracksProps): UseParticipantTracks;
@@ -0,0 +1,12 @@
1
+ import { TrackReference } from '@livekit/components-core';
2
+ import { Participant, Track } from 'livekit-client';
3
+ import { ShallowRef } from 'vue';
4
+ export interface UseParticipantTracksProps {
5
+ readonly sources: Track.Source[];
6
+ readonly participantIdentity?: string;
7
+ readonly participant?: Participant;
8
+ }
9
+ export interface UseParticipantTracks {
10
+ readonly trackReferences: ShallowRef<TrackReference[]>;
11
+ }
12
+ export declare function useParticipantTracks(props: UseParticipantTracksProps): UseParticipantTracks;
@@ -0,0 +1,11 @@
1
+ import { LocalParticipant, RemoteParticipant, Room, RoomEvent } from 'livekit-client';
2
+ import { ComputedRef } from 'vue';
3
+ export interface UseParticipantsProps {
4
+ readonly updateOnlyOn?: RoomEvent[];
5
+ readonly room?: Room;
6
+ }
7
+ export type MixedParticipantArray = (RemoteParticipant | LocalParticipant)[];
8
+ export interface UseParticipants {
9
+ readonly participants: ComputedRef<MixedParticipantArray>;
10
+ }
11
+ export declare function useParticipants(props?: UseParticipantsProps): UseParticipants;
@@ -0,0 +1,11 @@
1
+ import { LocalParticipant, RemoteParticipant, Room, RoomEvent } from 'livekit-client';
2
+ import { ComputedRef } from 'vue';
3
+ export interface UseParticipantsProps {
4
+ readonly updateOnlyOn?: RoomEvent[];
5
+ readonly room?: Room;
6
+ }
7
+ export type MixedParticipantArray = (RemoteParticipant | LocalParticipant)[];
8
+ export interface UseParticipants {
9
+ readonly participants: ComputedRef<MixedParticipantArray>;
10
+ }
11
+ export declare function useParticipants(props?: UseParticipantsProps): UseParticipants;
@@ -0,0 +1,16 @@
1
+ import { LocalUserChoices } from '@livekit/components-core';
2
+ import { Ref } from 'vue';
3
+ export interface UsePersistentUserChoicesProps {
4
+ readonly defaults?: Partial<LocalUserChoices>;
5
+ readonly preventSave?: boolean;
6
+ readonly preventLoad?: boolean;
7
+ }
8
+ export interface UsePersistentUserChoices {
9
+ readonly userChoices: Ref<LocalUserChoices>;
10
+ readonly saveAudioInputEnabled: (enabled: boolean) => void;
11
+ readonly saveVideoInputEnabled: (enabled: boolean) => void;
12
+ readonly saveAudioInputDeviceId: (deviceId: string) => void;
13
+ readonly saveVideoInputDeviceId: (deviceId: string) => void;
14
+ readonly saveUsername: (username: string) => void;
15
+ }
16
+ export declare function usePersistentUserChoices(props?: UsePersistentUserChoicesProps): UsePersistentUserChoices;
@@ -0,0 +1,16 @@
1
+ import { LocalUserChoices } from '@livekit/components-core';
2
+ import { Ref } from 'vue';
3
+ export interface UsePersistentUserChoicesProps {
4
+ readonly defaults?: Partial<LocalUserChoices>;
5
+ readonly preventSave?: boolean;
6
+ readonly preventLoad?: boolean;
7
+ }
8
+ export interface UsePersistentUserChoices {
9
+ readonly userChoices: Ref<LocalUserChoices>;
10
+ readonly saveAudioInputEnabled: (enabled: boolean) => void;
11
+ readonly saveVideoInputEnabled: (enabled: boolean) => void;
12
+ readonly saveAudioInputDeviceId: (deviceId: string) => void;
13
+ readonly saveVideoInputDeviceId: (deviceId: string) => void;
14
+ readonly saveUsername: (username: string) => void;
15
+ }
16
+ export declare function usePersistentUserChoices(props?: UsePersistentUserChoicesProps): UsePersistentUserChoices;
@@ -0,0 +1,10 @@
1
+ import { TrackReferenceOrPlaceholder } from '@livekit/components-core';
2
+ import { ComputedRef } from 'vue';
3
+ import { LayoutContext } from '../context/layout.context.cjs';
4
+ export interface UsePinnedTracks {
5
+ readonly pinnedTracks: ComputedRef<TrackReferenceOrPlaceholder[]>;
6
+ }
7
+ export interface UsePinnedTracksProps {
8
+ readonly context?: LayoutContext;
9
+ }
10
+ export declare function usePinnedTracks(props: UsePinnedTracksProps): UsePinnedTracks;