@livekit/components-js-docs 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/generated-docs/core/chatmessage.md +2 -0
- package/generated-docs/core/chatoptions.md +24 -0
- package/generated-docs/core/createmediadeviceobserver.md +2 -1
- package/generated-docs/core/createurlregexp.md +4 -4
- package/generated-docs/core/index.md +8 -4
- package/generated-docs/core/loaduserchoices.md +27 -0
- package/generated-docs/core/localuserchoices.md +28 -0
- package/generated-docs/core/pinstate.md +2 -0
- package/generated-docs/core/receivedchatmessage.md +2 -0
- package/generated-docs/core/roomvideoplaybackallowedobservable.md +18 -0
- package/generated-docs/core/saveuserchoices.md +20 -0
- package/generated-docs/core/setupchat.md +1 -5
- package/generated-docs/core/setupstartvideo.md +20 -0
- package/generated-docs/core/trackreference.md +2 -0
- package/generated-docs/core/trackreferenceorplaceholder.md +2 -0
- package/generated-docs/core/trackreferenceplaceholder.md +2 -0
- package/generated-docs/core/widgetstate.md +2 -0
- package/generated-docs/react/audiotrackprops.md +12 -11
- package/generated-docs/react/audiotrackprops.muted.md +21 -0
- package/generated-docs/react/audiotrackprops.volume.md +1 -1
- package/generated-docs/react/audiovisualizerprops.md +4 -4
- package/generated-docs/react/carousellayoutprops.md +5 -5
- package/generated-docs/react/chatentryprops.md +6 -6
- package/generated-docs/react/chatmessage.md +25 -0
- package/generated-docs/{core/participantclickevent.track.md → react/chatmessage.message.md} +3 -3
- package/generated-docs/react/{chatprops.messageencoder.md → chatmessage.timestamp.md} +3 -3
- package/generated-docs/react/chatprops.md +2 -4
- package/generated-docs/react/component/audiotrack.md +6 -1
- package/generated-docs/react/component/chat.md +0 -10
- package/generated-docs/react/component/controlbar.md +5 -0
- package/generated-docs/react/component/layoutcontextprovider.md +35 -0
- package/generated-docs/react/component/livekitroom.md +5 -0
- package/generated-docs/react/component/mediadeviceselect.md +5 -0
- package/generated-docs/react/component/prejoin.md +12 -3
- package/generated-docs/react/component/roomaudiorenderer.md +12 -0
- package/generated-docs/react/controlbarprops.md +5 -4
- package/generated-docs/react/controlbarprops.saveuserchoices.md +17 -0
- package/generated-docs/react/focuslayoutcontainerprops.md +4 -4
- package/generated-docs/react/focuslayoutprops.md +5 -5
- package/generated-docs/react/focustoggleprops.md +5 -5
- package/generated-docs/react/gridlayoutprops.md +4 -4
- package/generated-docs/react/hook/useaudioplayback.md +34 -0
- package/generated-docs/react/hook/usechat.md +2 -5
- package/generated-docs/react/hook/usefacingmode.md +35 -0
- package/generated-docs/react/hook/useisencrypted.md +29 -0
- package/generated-docs/react/hook/uselivekitroom.md +3 -0
- package/generated-docs/react/hook/usemediadeviceselect.md +5 -0
- package/generated-docs/react/hook/usepagination.md +52 -0
- package/generated-docs/react/hook/usepersistentuserchoices.md +38 -0
- package/generated-docs/react/hook/usepreviewtracks.md +32 -0
- package/generated-docs/react/hook/usestartaudio.md +43 -0
- package/generated-docs/react/hook/usestartvideo.md +43 -0
- package/generated-docs/react/hook/useswipe.md +44 -0
- package/generated-docs/react/index.md +188 -163
- package/generated-docs/react/layoutcontextproviderprops.md +26 -0
- package/generated-docs/react/layoutcontextproviderprops.onpinchange.md +13 -0
- package/generated-docs/react/layoutcontextproviderprops.onwidgetchange.md +13 -0
- package/generated-docs/react/layoutcontextproviderprops.value.md +13 -0
- package/generated-docs/react/livekitroomprops.md +1 -0
- package/generated-docs/react/livekitroomprops.onencryptionerror.md +13 -0
- package/generated-docs/react/localuserchoices.md +4 -2
- package/generated-docs/react/mediadeviceselectprops.md +3 -2
- package/generated-docs/react/mediadeviceselectprops.onerror.md +13 -0
- package/generated-docs/react/messagedecoder.md +20 -0
- package/generated-docs/react/messageencoder.md +20 -0
- package/generated-docs/react/meta-data.json +1 -1
- package/generated-docs/react/participanttileprops.md +8 -8
- package/generated-docs/react/pinstate.md +20 -0
- package/generated-docs/react/prejoinprops.md +15 -12
- package/generated-docs/react/prejoinprops.persistuserchoices.md +17 -0
- package/generated-docs/react/prejoinprops.showe2eeoptions.md +10 -0
- package/generated-docs/react/{chatprops.messagedecoder.md → receivedchatmessage.from.md} +3 -3
- package/generated-docs/react/receivedchatmessage.md +26 -0
- package/generated-docs/react/roomaudiorendererprops.md +25 -0
- package/generated-docs/react/roomaudiorendererprops.muted.md +21 -0
- package/generated-docs/react/roomaudiorendererprops.volume.md +17 -0
- package/generated-docs/react/setloglevel.md +20 -0
- package/generated-docs/react/trackloopprops.md +4 -4
- package/generated-docs/react/trackmutedindicatorprops.md +6 -6
- package/generated-docs/react/trackreference.md +22 -0
- package/generated-docs/react/trackreferenceorplaceholder.md +20 -0
- package/generated-docs/react/tracktoggleprops.md +7 -7
- package/generated-docs/react/usefocustoggleprops.md +6 -6
- package/generated-docs/react/usemediadeviceselectprops.md +1 -0
- package/generated-docs/react/usemediadeviceselectprops.onerror.md +17 -0
- package/generated-docs/react/useparticipanttileprops.md +9 -9
- package/generated-docs/react/usepersistentuserchoicesoptions.defaults.md +17 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.md +28 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventload.md +17 -0
- package/generated-docs/react/usepersistentuserchoicesoptions.preventsave.md +17 -0
- package/generated-docs/react/usestartaudioprops.md +25 -0
- package/generated-docs/react/usestartaudioprops.props.md +13 -0
- package/generated-docs/react/usestartaudioprops.room.md +13 -0
- package/generated-docs/react/usestartvideoprops.md +25 -0
- package/generated-docs/react/usestartvideoprops.props.md +13 -0
- package/generated-docs/react/usestartvideoprops.room.md +13 -0
- package/generated-docs/react/useswipeoptions.md +22 -0
- package/generated-docs/react/usetrackshookreturntype.md +1 -1
- package/generated-docs/react/usevisualstableupdateoptions.md +3 -3
- package/generated-docs/react/videoconferenceprops.md +2 -2
- package/generated-docs/react/videotrackprops.md +12 -12
- package/generated-docs/react/widgetstate.md +21 -0
- package/package.json +5 -6
- package/generated-docs/core/istrackreference.md +0 -16
- package/generated-docs/core/participantclickevent.md +0 -23
- package/generated-docs/core/participantclickevent.participant.md +0 -13
|
@@ -19,9 +19,9 @@ export interface UseFocusToggleProps
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property | Type
|
|
23
|
-
| ---------------------------------------------------------- |
|
|
24
|
-
| [participant?](./react/usefocustoggleprops.participant.md) | Participant
|
|
25
|
-
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
26
|
-
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
27
|
-
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| ---------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
|
|
24
|
+
| [participant?](./react/usefocustoggleprops.participant.md) | Participant | _(Optional)_ |
|
|
25
|
+
| [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
26
|
+
| [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
|
|
27
|
+
| [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source | _(Optional)_ |
|
|
@@ -22,6 +22,7 @@ export interface UseMediaDeviceSelectProps
|
|
|
22
22
|
| Property | Type | Description |
|
|
23
23
|
| ------------------------------------------------------------------------------ | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
24
|
| [kind](./react/usemediadeviceselectprops.kind.md) | MediaDeviceKind | |
|
|
25
|
+
| [onError?](./react/usemediadeviceselectprops.onerror.md) | (e: Error) => void | _(Optional)_ this callback gets called if an error is thrown when failing to select a device and also if a user denied permissions, eventhough the <code>requestPermissions</code> option is set to <code>true</code>. Most commonly this will emit a MediaDeviceError |
|
|
25
26
|
| [requestPermissions?](./react/usemediadeviceselectprops.requestpermissions.md) | boolean | _(Optional)_ this will call getUserMedia if the permissions are not yet given to enumerate the devices with device labels. in some browsers multiple calls to getUserMedia result in multiple permission prompts. It's generally advised only flip this to true, once a (preview) track has been acquired successfully with the appropriate permissions. |
|
|
26
27
|
| [room?](./react/usemediadeviceselectprops.room.md) | Room | _(Optional)_ |
|
|
27
28
|
| [track?](./react/usemediadeviceselectprops.track.md) | LocalAudioTrack \| LocalVideoTrack | _(Optional)_ |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UseMediaDeviceSelectProps.onError property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UseMediaDeviceSelectProps.onError property
|
|
8
|
+
|
|
9
|
+
this callback gets called if an error is thrown when failing to select a device and also if a user denied permissions, eventhough the `requestPermissions` option is set to `true`<!-- -->. Most commonly this will emit a MediaDeviceError
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
onError?: (e: Error) => void;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -21,12 +21,12 @@ export interface UseParticipantTileProps<T extends HTMLElement> extends React.HT
|
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| ---------------------------------------------------------------------------------------- |
|
|
26
|
-
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean
|
|
27
|
-
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T>
|
|
28
|
-
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event:
|
|
29
|
-
| [participant?](./react/useparticipanttileprops.participant.md) | Participant
|
|
30
|
-
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication
|
|
31
|
-
| [source?](./react/useparticipanttileprops.source.md) | Track.Source
|
|
32
|
-
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------------------------------------------- |
|
|
26
|
+
| [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
|
|
27
|
+
| [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes<T> | |
|
|
28
|
+
| [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) => void | _(Optional)_ |
|
|
29
|
+
| [participant?](./react/useparticipanttileprops.participant.md) | Participant | _(Optional)_ |
|
|
30
|
+
| [publication?](./react/useparticipanttileprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
31
|
+
| [source?](./react/useparticipanttileprops.source.md) | Track.Source | _(Optional)_ |
|
|
32
|
+
| [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UsePersistentUserChoicesOptions.defaults property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UsePersistentUserChoicesOptions.defaults property
|
|
8
|
+
|
|
9
|
+
The default value to use if reading from local storage returns no results or fails.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
defaults?: Partial<LocalUserChoices>;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "UsePersistentUserChoicesOptions interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/usePersistentUserChoices.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# UsePersistentUserChoicesOptions interface
|
|
11
|
+
|
|
12
|
+
Options for the `usePersistentDeviceSettings` hook.
|
|
13
|
+
|
|
14
|
+
**Signature:**
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
export interface UsePersistentUserChoicesOptions
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
|
26
|
+
| [defaults?](./react/usepersistentuserchoicesoptions.defaults.md) | Partial<[LocalUserChoices](./react/localuserchoices.md)<!-- -->> | _(Optional)_ The default value to use if reading from local storage returns no results or fails. |
|
|
27
|
+
| [preventLoad?](./react/usepersistentuserchoicesoptions.preventload.md) | boolean | _(Optional)_ Whether to prevent loading user choices from persistent storage and use <code>defaults</code> instead. |
|
|
28
|
+
| [preventSave?](./react/usepersistentuserchoicesoptions.preventsave.md) | boolean | _(Optional)_ Whether to prevent saving to persistent storage. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UsePersistentUserChoicesOptions.preventLoad property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UsePersistentUserChoicesOptions.preventLoad property
|
|
8
|
+
|
|
9
|
+
Whether to prevent loading user choices from persistent storage and use `defaults` instead.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
preventLoad?: boolean;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UsePersistentUserChoicesOptions.preventSave property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UsePersistentUserChoicesOptions.preventSave property
|
|
8
|
+
|
|
9
|
+
Whether to prevent saving to persistent storage.
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
preventSave?: boolean;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "UseStartAudioProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useStartAudio.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# UseStartAudioProps interface
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface UseStartAudioProps
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| -------------------------------------------- | --------------------------------------------------- | ------------ |
|
|
24
|
+
| [props](./react/usestartaudioprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
25
|
+
| [room?](./react/usestartaudioprops.room.md) | Room | _(Optional)_ |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UseStartAudioProps.props property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UseStartAudioProps.props property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
props: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
13
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "UseStartVideoProps interface",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useStartVideo.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# UseStartVideoProps interface
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export interface UseStartVideoProps
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
19
|
+
|
|
20
|
+
## Properties
|
|
21
|
+
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| -------------------------------------------- | --------------------------------------------------- | ------------ |
|
|
24
|
+
| [props](./react/usestartvideoprops.props.md) | React.ButtonHTMLAttributes<HTMLButtonElement> | |
|
|
25
|
+
| [room?](./react/usestartvideoprops.room.md) | Room | _(Optional)_ |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
{ "title": "UseStartVideoProps.props property" }
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
+
|
|
7
|
+
# UseStartVideoProps.props property
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
props: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
13
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "UseSwipeOptions type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useSwipe.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# UseSwipeOptions type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type UseSwipeOptions = {
|
|
16
|
+
minSwipeDistance?: number;
|
|
17
|
+
onLeftSwipe?: () => void;
|
|
18
|
+
onRightSwipe?: () => void;
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -19,6 +19,6 @@ export type UseTracksHookReturnType<T> = T extends Track.Source[]
|
|
|
19
19
|
: never;
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
**References:** [TrackReference](./
|
|
22
|
+
**References:** [TrackReference](./react/trackreference.md)<!-- -->, [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)
|
|
23
23
|
|
|
24
24
|
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
@@ -19,6 +19,6 @@ export interface UseVisualStableUpdateOptions
|
|
|
19
19
|
|
|
20
20
|
## Properties
|
|
21
21
|
|
|
22
|
-
| Property | Type
|
|
23
|
-
| --------------------------------------------------------------------------------- |
|
|
24
|
-
| [customSortFunction?](./react/usevisualstableupdateoptions.customsortfunction.md) | (trackReferences: [TrackReferenceOrPlaceholder](./
|
|
22
|
+
| Property | Type | Description |
|
|
23
|
+
| --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
|
|
24
|
+
| [customSortFunction?](./react/usevisualstableupdateoptions.customsortfunction.md) | (trackReferences: [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)<!-- -->\[\]) => [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)<!-- -->\[\] | _(Optional)_ Overwrites the default sort function. |
|
|
@@ -23,6 +23,6 @@ export interface VideoConferenceProps extends React.HTMLAttributes<HTMLDivElemen
|
|
|
23
23
|
|
|
24
24
|
| Property | Type | Description |
|
|
25
25
|
| ----------------------------------------------------------------------------- | ----------------------------------------------- | ------------ |
|
|
26
|
-
| [chatMessageDecoder?](./react/videoconferenceprops.chatmessagedecoder.md) | [MessageDecoder](./
|
|
27
|
-
| [chatMessageEncoder?](./react/videoconferenceprops.chatmessageencoder.md) | [MessageEncoder](./
|
|
26
|
+
| [chatMessageDecoder?](./react/videoconferenceprops.chatmessagedecoder.md) | [MessageDecoder](./react/messagedecoder.md) | _(Optional)_ |
|
|
27
|
+
| [chatMessageEncoder?](./react/videoconferenceprops.chatmessageencoder.md) | [MessageEncoder](./react/messageencoder.md) | _(Optional)_ |
|
|
28
28
|
| [chatMessageFormatter?](./react/videoconferenceprops.chatmessageformatter.md) | [MessageFormatter](./react/messageformatter.md) | _(Optional)_ |
|
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
export interface VideoTrackProps extends React.
|
|
15
|
+
export interface VideoTrackProps extends React.VideoHTMLAttributes<HTMLVideoElement>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
**Extends:** React.
|
|
18
|
+
**Extends:** React.VideoHTMLAttributes<HTMLVideoElement>
|
|
19
19
|
|
|
20
20
|
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
|
21
21
|
|
|
22
22
|
## Properties
|
|
23
23
|
|
|
24
|
-
| Property | Type
|
|
25
|
-
| -------------------------------------------------------------------------------------- |
|
|
26
|
-
| [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean
|
|
27
|
-
| [name?](./react/videotrackprops.name.md) | string
|
|
28
|
-
| [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void
|
|
29
|
-
| [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt:
|
|
30
|
-
| [participant?](./react/videotrackprops.participant.md) | Participant
|
|
31
|
-
| [publication?](./react/videotrackprops.publication.md) | TrackPublication
|
|
32
|
-
| [source?](./react/videotrackprops.source.md) | Track.Source
|
|
33
|
-
| [trackRef?](./react/videotrackprops.trackref.md) | [TrackReference](./
|
|
24
|
+
| Property | Type | Description |
|
|
25
|
+
| -------------------------------------------------------------------------------------- | ------------------------------------------- | -------------------------------------------------------- |
|
|
26
|
+
| [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean | _(Optional)_ |
|
|
27
|
+
| [name?](./react/videotrackprops.name.md) | string | _(Optional)_ |
|
|
28
|
+
| [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) => void | _(Optional)_ |
|
|
29
|
+
| [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt: ParticipantClickEvent) => void | _(Optional)_ |
|
|
30
|
+
| [participant?](./react/videotrackprops.participant.md) | Participant | _(Optional)_ |
|
|
31
|
+
| [publication?](./react/videotrackprops.publication.md) | TrackPublication | _(Optional)_ |
|
|
32
|
+
| [source?](./react/videotrackprops.source.md) | Track.Source | _(Optional)_ |
|
|
33
|
+
| [trackRef?](./react/videotrackprops.trackref.md) | [TrackReference](./react/trackreference.md) | _(Optional)_ The track reference of the track to render. |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
{
|
|
3
|
+
"title": "WidgetState type",
|
|
4
|
+
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/../core/src/types.ts"
|
|
5
|
+
}
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
+
|
|
10
|
+
# WidgetState type
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type WidgetState = {
|
|
16
|
+
showChat: boolean;
|
|
17
|
+
unreadMessages: number;
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
{% partial file="p_usage.md" variables={exampleCount: 0} /%}
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/components-js-docs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Automatically generated documentation pages for LiveKit Components JS. Intended to be consumed by the documentation page.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"yalc:publish": "yalc publish --private --push --replace",
|
|
7
|
-
"yalc:publish:watch": "nodemon --delay 1 --watch \"generated-docs/**/*\" -e md -x \"yarn yalc:publish\""
|
|
8
|
-
},
|
|
9
5
|
"repository": {
|
|
10
6
|
"type": "git",
|
|
11
7
|
"url": "git+https://github.com/livekit/components-js.git",
|
|
12
8
|
"directory": "/docs/beta-docs"
|
|
13
9
|
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@livekit/components-react": "1.4.1"
|
|
12
|
+
},
|
|
14
13
|
"author": "",
|
|
15
14
|
"license": "Apache-2.0",
|
|
16
15
|
"bugs": {
|
|
@@ -24,4 +23,4 @@
|
|
|
24
23
|
"publishConfig": {
|
|
25
24
|
"access": "restricted"
|
|
26
25
|
}
|
|
27
|
-
}
|
|
26
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "isTrackReference",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/track-reference/track-reference.types.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# isTrackReference
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
export declare function isTrackReference(trackReference: unknown): trackReference is TrackReference;
|
|
16
|
-
```
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{
|
|
3
|
-
"title": "ParticipantClickEvent interface",
|
|
4
|
-
"linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/types.ts"
|
|
5
|
-
}
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
9
|
-
|
|
10
|
-
# ParticipantClickEvent interface
|
|
11
|
-
|
|
12
|
-
**Signature:**
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
export interface ParticipantClickEvent
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Properties
|
|
19
|
-
|
|
20
|
-
| Property | Type | Description |
|
|
21
|
-
| ---------------------------------------------------------- | ---------------- | ------------ |
|
|
22
|
-
| [participant](./core/participantclickevent.participant.md) | Participant | |
|
|
23
|
-
| [track?](./core/participantclickevent.track.md) | TrackPublication | _(Optional)_ |
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
{ "title": "ParticipantClickEvent.participant property" }
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
6
|
-
|
|
7
|
-
# ParticipantClickEvent.participant property
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
participant: Participant;
|
|
13
|
-
```
|