@livekit/components-js-docs 0.0.3 → 0.0.5
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/generated-docs/core/encryptionstatusobservable.md +12 -0
- package/generated-docs/core/gettrackreferenceid.md +1 -1
- package/generated-docs/core/gettrackreferencesource.md +1 -1
- package/generated-docs/core/index.md +1 -0
- package/generated-docs/core/ismobilebrowser.md +1 -1
- package/generated-docs/core/isparticipantsourcepinned.md +1 -1
- package/generated-docs/core/istrackreferencepinned.md +1 -1
- package/generated-docs/core/sendmessage.md +1 -1
- package/generated-docs/core/setloglevel.md +1 -1
- package/generated-docs/core/sortparticipants.md +1 -1
- package/generated-docs/core/sorttrackreferences.md +1 -1
- package/generated-docs/core/supportsscreensharing.md +1 -1
- package/generated-docs/core/trackidentifier.md +1 -1
- package/generated-docs/core/updatepages.md +1 -1
- package/generated-docs/react/allowaudioplaybackprops.md +1 -1
- package/generated-docs/react/audioconferenceprops.md +1 -1
- package/generated-docs/react/audiotrackprops.md +1 -1
- package/generated-docs/react/audiotrackprops.volume.md +1 -1
- package/generated-docs/react/audiovisualizerprops.md +1 -1
- package/generated-docs/react/carouselviewprops.md +1 -1
- package/generated-docs/react/carouselviewprops.orientation.md +1 -1
- package/generated-docs/react/chatentryprops.entry.md +1 -1
- package/generated-docs/react/chatentryprops.hidename.md +1 -1
- package/generated-docs/react/chatentryprops.hidetimestamp.md +1 -1
- package/generated-docs/react/chatentryprops.md +1 -1
- package/generated-docs/react/chatentryprops.messageformatter.md +1 -1
- package/generated-docs/react/chatprops.md +1 -1
- package/generated-docs/react/chattoggleprops.md +1 -1
- package/generated-docs/react/clearpinbuttonprops.md +1 -1
- package/generated-docs/react/component/audioconference.md +1 -1
- package/generated-docs/react/component/audiotrack.md +1 -1
- package/generated-docs/react/component/audiovisualizer.md +1 -1
- package/generated-docs/react/component/carouselview.md +1 -1
- package/generated-docs/react/component/chat.md +1 -1
- package/generated-docs/react/component/chatentry.md +1 -1
- package/generated-docs/react/component/chattoggle.md +1 -1
- package/generated-docs/react/component/clearpinbutton.md +1 -1
- package/generated-docs/react/component/connectionqualityindicator.md +1 -1
- package/generated-docs/react/component/connectionstate.md +1 -1
- package/generated-docs/react/component/connectionstatetoast.md +1 -1
- package/generated-docs/react/component/controlbar.md +1 -1
- package/generated-docs/react/component/disconnectbutton.md +1 -1
- package/generated-docs/react/component/focuslayout.md +1 -1
- package/generated-docs/react/component/focuslayoutcontainer.md +1 -1
- package/generated-docs/react/component/focustoggle.md +1 -1
- package/generated-docs/react/component/gridlayout.md +1 -1
- package/generated-docs/react/component/livekitroom.md +1 -1
- package/generated-docs/react/component/mediadevicemenu.md +1 -1
- package/generated-docs/react/component/mediadeviceselect.md +1 -1
- package/generated-docs/react/component/participantaudiotile.md +1 -1
- package/generated-docs/react/component/participantcontextifneeded.md +1 -1
- package/generated-docs/react/component/participantloop.md +1 -1
- package/generated-docs/react/component/participantname.md +1 -1
- package/generated-docs/react/component/participanttile.md +1 -1
- package/generated-docs/react/component/prejoin.md +1 -1
- package/generated-docs/react/component/roomaudiorenderer.md +1 -1
- package/generated-docs/react/component/roomname.md +1 -1
- package/generated-docs/react/component/startaudio.md +1 -1
- package/generated-docs/react/component/toast.md +1 -1
- package/generated-docs/react/component/trackloop.md +1 -1
- package/generated-docs/react/component/trackmutedindicator.md +1 -1
- package/generated-docs/react/component/tracktoggle.md +1 -1
- package/generated-docs/react/component/videoconference.md +1 -1
- package/generated-docs/react/component/videotrack.md +1 -1
- package/generated-docs/react/connectionqualityindicatoroptions.md +1 -1
- package/generated-docs/react/connectionqualityindicatorprops.md +1 -1
- package/generated-docs/react/connectionstatetoastprops.md +1 -1
- package/generated-docs/react/connectionstatusprops.md +1 -1
- package/generated-docs/react/connectionstatusprops.room.md +1 -1
- package/generated-docs/react/controlbarcontrols.md +1 -1
- package/generated-docs/react/controlbarprops.md +1 -1
- package/generated-docs/react/disconnectbuttonprops.md +1 -1
- package/generated-docs/react/focuslayoutcontainerprops.md +1 -1
- package/generated-docs/react/focuslayoutprops.md +1 -1
- package/generated-docs/react/focustoggleprops.md +1 -1
- package/generated-docs/react/formatchatmessagelinks.md +11 -0
- package/generated-docs/react/gridlayoutprops.md +1 -1
- package/generated-docs/react/hook/usechat.md +8 -2
- package/generated-docs/react/hook/usechattoggle.md +11 -2
- package/generated-docs/react/hook/useclearpinbutton.md +10 -2
- package/generated-docs/react/hook/useconnectionqualityindicator.md +64 -2
- package/generated-docs/react/hook/useconnectionstate.md +4 -2
- package/generated-docs/react/hook/usecreatelayoutcontext.md +4 -2
- package/generated-docs/react/hook/usedatachannel.md +4 -2
- package/generated-docs/react/hook/usedatachannel_1.md +4 -2
- package/generated-docs/react/hook/usedisconnectbutton.md +10 -2
- package/generated-docs/react/hook/useensurecreatelayoutcontext.md +4 -2
- package/generated-docs/react/hook/useensurelayoutcontext.md +4 -2
- package/generated-docs/react/hook/useensureparticipant.md +4 -2
- package/generated-docs/react/hook/useensureroom.md +4 -2
- package/generated-docs/react/hook/useensuretrackreference.md +4 -2
- package/generated-docs/react/hook/usefocustoggle.md +10 -2
- package/generated-docs/react/hook/usegridlayout.md +6 -2
- package/generated-docs/react/hook/useismuted.md +4 -2
- package/generated-docs/react/hook/useisspeaking.md +4 -2
- package/generated-docs/react/hook/uselayoutcontext.md +4 -2
- package/generated-docs/react/hook/uselivekitroom.md +7 -2
- package/generated-docs/react/hook/uselocalparticipant.md +13 -2
- package/generated-docs/react/hook/uselocalparticipantpermissions.md +4 -2
- package/generated-docs/react/hook/usemaybelayoutcontext.md +4 -2
- package/generated-docs/react/hook/usemaybeparticipantcontext.md +4 -2
- package/generated-docs/react/hook/usemayberoomcontext.md +4 -2
- package/generated-docs/react/hook/usemaybetrackcontext.md +4 -2
- package/generated-docs/react/hook/usemediadevices.md +4 -2
- package/generated-docs/react/hook/usemediadeviceselect.md +9 -2
- package/generated-docs/react/hook/usemediatrack.md +10 -2
- package/generated-docs/react/hook/usemediatrackbyname.md +10 -2
- package/generated-docs/react/hook/useparticipantcontext.md +4 -2
- package/generated-docs/react/hook/useparticipantinfo.md +8 -2
- package/generated-docs/react/hook/useparticipantpermissions.md +4 -2
- package/generated-docs/react/hook/useparticipants.md +4 -2
- package/generated-docs/react/hook/useparticipanttile.md +6 -2
- package/generated-docs/react/hook/usepinnedtracks.md +4 -2
- package/generated-docs/react/hook/usepreviewdevice.md +8 -2
- package/generated-docs/react/hook/useremoteparticipant.md +4 -2
- package/generated-docs/react/hook/useremoteparticipants.md +4 -2
- package/generated-docs/react/hook/useroomcontext.md +4 -2
- package/generated-docs/react/hook/useroominfo.md +7 -2
- package/generated-docs/react/hook/usesortedparticipants.md +4 -2
- package/generated-docs/react/hook/usespeakingparticipants.md +4 -2
- package/generated-docs/react/hook/usetoken.md +4 -2
- package/generated-docs/react/hook/usetrackcontext.md +4 -2
- package/generated-docs/react/hook/usetrackmutedindicator.md +7 -2
- package/generated-docs/react/hook/usetracks.md +4 -2
- package/generated-docs/react/hook/usetracktoggle.md +10 -2
- package/generated-docs/react/hook/usevisualstableupdate.md +4 -2
- package/generated-docs/react/index.md +1 -1
- package/generated-docs/react/layoutcontext.md +1 -1
- package/generated-docs/react/layoutcontexttype.md +1 -1
- package/generated-docs/react/livekitroomprops.audio.md +1 -1
- package/generated-docs/react/livekitroomprops.connect.md +1 -1
- package/generated-docs/react/livekitroomprops.connectoptions.md +1 -1
- package/generated-docs/react/livekitroomprops.md +1 -1
- package/generated-docs/react/livekitroomprops.options.md +1 -1
- package/generated-docs/react/livekitroomprops.room.md +1 -1
- package/generated-docs/react/livekitroomprops.screen.md +1 -1
- package/generated-docs/react/livekitroomprops.serverurl.md +1 -1
- package/generated-docs/react/livekitroomprops.token.md +1 -1
- package/generated-docs/react/livekitroomprops.video.md +1 -1
- package/generated-docs/react/localuserchoices.md +1 -1
- package/generated-docs/react/mediadevicemenuprops.md +1 -1
- package/generated-docs/react/mediadevicemenuprops.requestpermissions.md +1 -1
- package/generated-docs/react/mediadeviceselectprops.exactmatch.md +1 -1
- package/generated-docs/react/mediadeviceselectprops.md +1 -1
- package/generated-docs/react/mediadeviceselectprops.requestpermissions.md +1 -1
- package/generated-docs/react/messagedecoder.md +1 -1
- package/generated-docs/react/messageencoder.md +1 -1
- package/generated-docs/react/messageformatter.md +1 -1
- package/generated-docs/react/meta-data.json +1 -0
- package/generated-docs/react/participantcontext.md +1 -1
- package/generated-docs/react/participantloopprops.children.md +1 -1
- package/generated-docs/react/participantloopprops.md +1 -1
- package/generated-docs/react/participantloopprops.participants.md +1 -1
- package/generated-docs/react/participantnameprops.md +1 -1
- package/generated-docs/react/participanttileprops.md +1 -1
- package/generated-docs/react/prejoinprops.debug.md +1 -1
- package/generated-docs/react/prejoinprops.defaults.md +1 -1
- package/generated-docs/react/prejoinprops.md +12 -12
- package/generated-docs/react/prejoinprops.onsubmit.md +1 -1
- package/generated-docs/react/prejoinprops.onvalidate.md +1 -1
- package/generated-docs/react/{hook/prejoinprops.userlabel.md → prejoinprops.userlabel.md} +2 -2
- package/generated-docs/react/roomcontext.md +1 -1
- package/generated-docs/react/roomnameprops.md +1 -1
- package/generated-docs/react/trackcontext.md +1 -1
- package/generated-docs/react/trackloopprops.children.md +1 -1
- package/generated-docs/react/trackloopprops.md +1 -1
- package/generated-docs/react/trackloopprops.tracks.md +1 -1
- package/generated-docs/react/trackmutedindicatorprops.md +1 -1
- package/generated-docs/react/tracktoggleprops.md +1 -1
- package/generated-docs/react/usechattoggleprops.md +1 -1
- package/generated-docs/react/usefocustoggleprops.md +1 -1
- package/generated-docs/react/useismutedoptions.md +1 -1
- package/generated-docs/react/uselocalparticipantoptions.md +1 -1
- package/generated-docs/react/uselocalparticipantoptions.room.md +1 -1
- package/generated-docs/react/usemediadeviceselectprops.md +1 -1
- package/generated-docs/react/usemediadeviceselectprops.requestpermissions.md +1 -1
- package/generated-docs/react/usemediatrackoptions.md +1 -1
- package/generated-docs/react/useparticipantinfooptions.md +1 -1
- package/generated-docs/react/useparticipantpermissionsoptions.md +1 -1
- package/generated-docs/react/useparticipantsoptions.md +1 -1
- package/generated-docs/react/useparticipantsoptions.room.md +1 -1
- package/generated-docs/react/useparticipantsoptions.updateonlyon.md +1 -1
- package/generated-docs/react/useparticipanttileprops.md +1 -1
- package/generated-docs/react/useremoteparticipantoptions.md +1 -1
- package/generated-docs/react/useremoteparticipantsoptions.md +1 -1
- package/generated-docs/react/useremoteparticipantsoptions.room.md +1 -1
- package/generated-docs/react/useremoteparticipantsoptions.updateonlyon.md +1 -1
- package/generated-docs/react/userinfo.md +1 -1
- package/generated-docs/react/useroominfooptions.md +1 -1
- package/generated-docs/react/usetokenoptions.md +4 -4
- package/generated-docs/react/{hook/usetokenoptions.userinfo.md → usetokenoptions.userinfo.md} +2 -2
- package/generated-docs/react/usetrackmutedindicatoroptions.md +1 -1
- package/generated-docs/react/usetrackshookreturntype.md +1 -1
- package/generated-docs/react/usetracksoptions.md +1 -1
- package/generated-docs/react/usetracktoggleprops.md +1 -1
- package/generated-docs/react/usevisualstableupdateoptions.customsortfunction.md +1 -1
- package/generated-docs/react/usevisualstableupdateoptions.md +1 -1
- package/generated-docs/react/videoconferenceprops.md +1 -1
- package/generated-docs/react/videotrackprops.md +1 -1
- package/package.json +1 -1
- package/generated-docs/react/component/formatchatmessagelinks.md +0 -11
- package/meta-data.json +0 -78
|
@@ -10,7 +10,7 @@ export interface ControlBarProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.HTMLAttributes<HTMLDivElement>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ export interface DisconnectButtonProps extends React.ButtonHTMLAttributes<HTMLBu
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ export interface FocusLayoutContainerProps extends React.HTMLAttributes<HTMLDivE
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.HTMLAttributes<HTMLDivElement>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ export interface FocusLayoutProps extends React.HTMLAttributes<HTMLElement>
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.HTMLAttributes<HTMLElement>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ export interface FocusToggleProps extends React.ButtonHTMLAttributes<HTMLButtonE
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
# formatChatMessageLinks
|
|
4
|
+
|
|
5
|
+
**Signature:**
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
export declare function formatChatMessageLinks(message: string): React.ReactNode;
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -10,7 +10,7 @@ export interface GridLayoutProps extends React.HTMLAttributes<HTMLDivElement>, P
|
|
|
10
10
|
|
|
11
11
|
**Extends:** React.HTMLAttributes<HTMLDivElement>, Pick<[UseParticipantsOptions](./react/useparticipantsoptions.md)<!-- -->, 'updateOnlyOn'>
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useChat } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -20,4 +20,10 @@ import { useChat } from '@livekit/components-react';
|
|
|
20
20
|
|
|
21
21
|
## Returns
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
```typescript
|
|
24
|
+
{
|
|
25
|
+
send: ((message: string) => Promise<void>) | undefined;
|
|
26
|
+
chatMessages: ReceivedChatMessage[];
|
|
27
|
+
isSending: boolean;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useChatToggle } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,13 @@ import { useChatToggle } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
23
|
+
className: string;
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
'aria-pressed': string;
|
|
26
|
+
'data-lk-unread-msgs': string;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useClearPinButton } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,12 @@ import { useClearPinButton } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
buttonProps: ClearPinButtonProps & {
|
|
23
|
+
className: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useConnectionQualityIndicator } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,66 @@ import { useConnectionQualityIndicator } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
className: 'lk-rotate' |
|
|
23
|
+
'lk-audio-conference' |
|
|
24
|
+
'lk-audio-conference-stage' |
|
|
25
|
+
'lk-audio-container' |
|
|
26
|
+
'lk-button' |
|
|
27
|
+
'lk-button-group' |
|
|
28
|
+
'lk-button-group-container' |
|
|
29
|
+
'lk-camera-off-note' |
|
|
30
|
+
'lk-chat' |
|
|
31
|
+
'lk-chat-entry' |
|
|
32
|
+
'lk-chat-form' |
|
|
33
|
+
'lk-chat-form-input' |
|
|
34
|
+
'lk-chat-messages' |
|
|
35
|
+
'lk-control-bar' |
|
|
36
|
+
'lk-focus-layout-wrapper' |
|
|
37
|
+
'lk-form-control' |
|
|
38
|
+
'lk-grid-layout-wrapper' |
|
|
39
|
+
'lk-join-button' |
|
|
40
|
+
'lk-list' |
|
|
41
|
+
'lk-message-body' |
|
|
42
|
+
'lk-meta-data' |
|
|
43
|
+
'lk-participant-name' |
|
|
44
|
+
'lk-prejoin' |
|
|
45
|
+
'lk-timestamp' |
|
|
46
|
+
'lk-username-container' |
|
|
47
|
+
'lk-video-conference' |
|
|
48
|
+
'lk-video-conference-inner' |
|
|
49
|
+
'lk-video-container' |
|
|
50
|
+
'lk-audio-visualizer' |
|
|
51
|
+
'lk-button-group-menu' |
|
|
52
|
+
'lk-button-menu' |
|
|
53
|
+
'lk-carousel' |
|
|
54
|
+
'lk-chat-toggle' |
|
|
55
|
+
'lk-connection-quality' |
|
|
56
|
+
'lk-device-menu' |
|
|
57
|
+
'lk-device-menu-heading' |
|
|
58
|
+
'lk-disconnect-button' |
|
|
59
|
+
'lk-focus-layout' |
|
|
60
|
+
'lk-focus-toggle-button' |
|
|
61
|
+
'lk-focused-participant' |
|
|
62
|
+
'lk-grid-layout' |
|
|
63
|
+
'lk-media-device-select' |
|
|
64
|
+
'lk-pagination-control' |
|
|
65
|
+
'lk-pagination-count' |
|
|
66
|
+
'lk-pagination-indicator' |
|
|
67
|
+
'lk-participant-media-audio' |
|
|
68
|
+
'lk-participant-media-video' |
|
|
69
|
+
'lk-participant-metadata' |
|
|
70
|
+
'lk-participant-metadata-item' |
|
|
71
|
+
'lk-participant-placeholder' |
|
|
72
|
+
'lk-participant-tile' |
|
|
73
|
+
'lk-pip-track' |
|
|
74
|
+
'lk-room-container' |
|
|
75
|
+
'lk-spinner' |
|
|
76
|
+
'lk-start-audio-button' |
|
|
77
|
+
'lk-toast' |
|
|
78
|
+
'lk-track-muted-indicator-camera' |
|
|
79
|
+
'lk-track-muted-indicator-microphone';
|
|
80
|
+
quality: ConnectionQuality;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
@@ -16,7 +16,7 @@ import { useConnectionState } from '@livekit/components-react';
|
|
|
16
16
|
const connectionState = useConnectionState(room);
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
{% partial file="p_usage.md" /%}
|
|
19
|
+
{% partial file="p_usage.md" variables={exampleCount: 1} /%}
|
|
20
20
|
|
|
21
21
|
## Parameters
|
|
22
22
|
|
|
@@ -25,4 +25,6 @@ const connectionState = useConnectionState(room);
|
|
|
25
25
|
|
|
26
26
|
## Returns
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
```typescript
|
|
29
|
+
import('livekit-client').ConnectionState;
|
|
30
|
+
```
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
import { useCreateLayoutContext } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Returns
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
```typescript
|
|
16
|
+
LayoutContextType;
|
|
17
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useDataChannel } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -20,4 +20,6 @@ import { useDataChannel } from '@livekit/components-react';
|
|
|
20
20
|
|
|
21
21
|
## Returns
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
```typescript
|
|
24
|
+
UseDataChannelReturnType<T>;
|
|
25
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useDataChannel } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,6 @@ import { useDataChannel } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
UseDataChannelReturnType;
|
|
22
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useDisconnectButton } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,12 @@ import { useDisconnectButton } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
buttonProps: DisconnectButtonProps & {
|
|
23
|
+
className: string;
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useEnsureCreateLayoutContext } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,6 @@ import { useEnsureCreateLayoutContext } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
LayoutContextType;
|
|
22
|
+
```
|
|
@@ -10,7 +10,7 @@ Ensures that a layout context is provided, either via context or explicitly as a
|
|
|
10
10
|
import { useEnsureLayoutContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -19,4 +19,6 @@ import { useEnsureLayoutContext } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
LayoutContextType;
|
|
24
|
+
```
|
|
@@ -10,7 +10,7 @@ Ensures that a participant is provided, either via context or explicitly as a pa
|
|
|
10
10
|
import { useEnsureParticipant } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -19,4 +19,6 @@ import { useEnsureParticipant } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
Participant;
|
|
24
|
+
```
|
|
@@ -10,7 +10,7 @@ Ensures that a room is provided, either via context or explicitly as a parameter
|
|
|
10
10
|
import { useEnsureRoom } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -19,4 +19,6 @@ import { useEnsureRoom } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
Room;
|
|
24
|
+
```
|
|
@@ -10,7 +10,7 @@ Ensures that a track reference is provided, either via context or explicitly as
|
|
|
10
10
|
import { useEnsureTrackReference } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -19,4 +19,6 @@ import { useEnsureTrackReference } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
TrackReferenceOrPlaceholder;
|
|
24
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useFocusToggle } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,12 @@ import { useFocusToggle } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
mergedProps: React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
23
|
+
className: string;
|
|
24
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
25
|
+
};
|
|
26
|
+
inFocus: boolean;
|
|
27
|
+
}
|
|
28
|
+
```
|
|
@@ -10,7 +10,7 @@ The useGridLayout hook tries to select the best layout to fit all tiles. If the
|
|
|
10
10
|
import { useGridLayout } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -22,4 +22,8 @@ import { useGridLayout } from '@livekit/components-react';
|
|
|
22
22
|
|
|
23
23
|
## Returns
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
```typescript
|
|
26
|
+
{
|
|
27
|
+
layout: GridLayoutDefinition;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useIsMuted } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -20,4 +20,6 @@ import { useIsMuted } from '@livekit/components-react';
|
|
|
20
20
|
|
|
21
21
|
## Returns
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
```typescript
|
|
24
|
+
boolean;
|
|
25
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useIsSpeaking } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,6 @@ import { useIsSpeaking } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
boolean;
|
|
22
|
+
```
|
|
@@ -10,8 +10,10 @@ Ensures that a layout context is provided via context. If no layout context is p
|
|
|
10
10
|
import { useLayoutContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```typescript
|
|
18
|
+
LayoutContextType;
|
|
19
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useLiveKitRoom } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,9 @@ import { useLiveKitRoom } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
room: Room | undefined;
|
|
23
|
+
htmlProps: HTMLAttributes<T>;
|
|
24
|
+
}
|
|
25
|
+
```
|
|
@@ -10,7 +10,7 @@ The useLocalParticipant hook the state of the local participant.
|
|
|
10
10
|
import { useLocalParticipant } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
@@ -19,4 +19,15 @@ import { useLocalParticipant } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
{
|
|
24
|
+
isMicrophoneEnabled: boolean;
|
|
25
|
+
isScreenShareEnabled: boolean;
|
|
26
|
+
isCameraEnabled: boolean;
|
|
27
|
+
microphoneTrack: TrackPublication | undefined;
|
|
28
|
+
cameraTrack: TrackPublication | undefined;
|
|
29
|
+
lastMicrophoneError: Error | undefined;
|
|
30
|
+
lastCameraError: Error | undefined;
|
|
31
|
+
localParticipant: LocalParticipant;
|
|
32
|
+
}
|
|
33
|
+
```
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
import { useLocalParticipantPermissions } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Returns
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
```typescript
|
|
16
|
+
import('livekit-client/dist/src/proto/livekit_models_pb').ParticipantPermission | undefined;
|
|
17
|
+
```
|
|
@@ -10,8 +10,10 @@ Returns a layout context from the `LayoutContext` if it exists, otherwise `undef
|
|
|
10
10
|
import { useMaybeLayoutContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```typescript
|
|
18
|
+
LayoutContextType | undefined;
|
|
19
|
+
```
|
|
@@ -10,8 +10,10 @@ Returns a participant from the `ParticipantContext` if it exists, otherwise `und
|
|
|
10
10
|
import { useMaybeParticipantContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```typescript
|
|
18
|
+
Participant | undefined;
|
|
19
|
+
```
|
|
@@ -10,8 +10,10 @@ Returns the room context if it exists, otherwise undefined.
|
|
|
10
10
|
import { useMaybeRoomContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```typescript
|
|
18
|
+
Room | undefined;
|
|
19
|
+
```
|
|
@@ -10,8 +10,10 @@ Returns a track reference from the `TrackContext` if it exists, otherwise `undef
|
|
|
10
10
|
import { useMaybeTrackContext } from '@livekit/components-react';
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
{% partial file="p_usage.md" /%}
|
|
13
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
14
14
|
|
|
15
15
|
## Returns
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
```typescript
|
|
18
|
+
TrackReferenceOrPlaceholder | undefined;
|
|
19
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useMediaDevices } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -19,4 +19,6 @@ import { useMediaDevices } from '@livekit/components-react';
|
|
|
19
19
|
|
|
20
20
|
## Returns
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
```typescript
|
|
23
|
+
MediaDeviceInfo[]
|
|
24
|
+
```
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { useMediaDeviceSelect } from '@livekit/components-react';
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
{% partial file="p_usage.md" /%}
|
|
11
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -17,4 +17,11 @@ import { useMediaDeviceSelect } from '@livekit/components-react';
|
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
```typescript
|
|
21
|
+
{
|
|
22
|
+
devices: MediaDeviceInfo[];
|
|
23
|
+
className: string;
|
|
24
|
+
activeDeviceId: string;
|
|
25
|
+
setActiveMediaDevice: (id: string, options?: import("@livekit/components-core").SetMediaDeviceOptions | undefined) => Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
```
|