@livekit/components-js-docs 0.1.7 → 0.1.9

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 (101) hide show
  1. package/generated-docs/core/captureoptionsbysource.md +4 -4
  2. package/generated-docs/core/chatmessage.id.md +13 -0
  3. package/generated-docs/core/chatmessage.md +1 -0
  4. package/generated-docs/core/chatoptions.md +1 -0
  5. package/generated-docs/core/createmediadeviceobserver.md +1 -1
  6. package/generated-docs/core/datatopic.md +1 -0
  7. package/generated-docs/core/defaultuserchoices.md +16 -0
  8. package/generated-docs/core/index.md +5 -4
  9. package/generated-docs/core/localuserchoices.md +0 -2
  10. package/generated-docs/core/participanttrackevents.md +16 -0
  11. package/generated-docs/core/participanttrackidentifier.md +23 -0
  12. package/generated-docs/core/participanttracksobservable.md +19 -0
  13. package/generated-docs/core/receivedchatmessage.edittimestamp.md +13 -0
  14. package/generated-docs/core/receivedchatmessage.md +4 -3
  15. package/generated-docs/core/sendmessage.md +1 -2
  16. package/generated-docs/core/setupchat.md +2 -1
  17. package/generated-docs/core/setupdatamessagehandler.md +2 -2
  18. package/generated-docs/react/audiotrackprops.md +0 -4
  19. package/generated-docs/react/audiovisualizerprops.md +3 -4
  20. package/generated-docs/react/chatmessage.id.md +13 -0
  21. package/generated-docs/react/chatmessage.md +1 -0
  22. package/generated-docs/react/component/audiotrack.md +0 -36
  23. package/generated-docs/react/component/audiovisualizer.md +0 -9
  24. package/generated-docs/react/component/focuslayout.md +0 -9
  25. package/generated-docs/react/component/focuslayoutcontainer.md +0 -20
  26. package/generated-docs/react/component/focustoggle.md +0 -18
  27. package/generated-docs/react/component/participantaudiotile.md +0 -27
  28. package/generated-docs/react/component/participanttile.md +0 -27
  29. package/generated-docs/react/component/prejoin.md +0 -9
  30. package/generated-docs/react/component/trackmutedindicator.md +2 -22
  31. package/generated-docs/react/component/videotrack.md +0 -36
  32. package/generated-docs/react/focuslayoutcontainerprops.md +0 -7
  33. package/generated-docs/react/focuslayoutprops.md +0 -1
  34. package/generated-docs/react/focustoggleprops.md +3 -5
  35. package/generated-docs/react/hook/usechat.md +4 -3
  36. package/generated-docs/react/hook/usefocustoggle.md +0 -14
  37. package/generated-docs/react/hook/usemediadevices.md +2 -1
  38. package/generated-docs/react/hook/useparticipanttile.md +0 -21
  39. package/generated-docs/react/hook/useparticipanttracks.md +34 -0
  40. package/generated-docs/react/hook/usepreviewtracks.md +1 -1
  41. package/generated-docs/react/hook/usetrackbyname.md +5 -9
  42. package/generated-docs/react/index.md +76 -88
  43. package/generated-docs/react/localuserchoices.md +0 -2
  44. package/generated-docs/react/meta-data.json +1 -1
  45. package/generated-docs/react/participanttileprops.md +0 -3
  46. package/generated-docs/react/prejoinprops.md +0 -1
  47. package/generated-docs/react/receivedchatmessage.edittimestamp.md +13 -0
  48. package/generated-docs/react/receivedchatmessage.md +4 -3
  49. package/generated-docs/react/trackmutedindicatorprops.md +4 -6
  50. package/generated-docs/react/trackmutedindicatorprops.trackref.md +1 -1
  51. package/generated-docs/react/usefocustoggleprops.md +4 -6
  52. package/generated-docs/react/useparticipanttileprops.md +0 -3
  53. package/generated-docs/react/usetrackshookreturntype.md +2 -2
  54. package/generated-docs/react/videotrackprops.md +0 -4
  55. package/package.json +2 -2
  56. package/generated-docs/core/datasendoptions.md +0 -19
  57. package/generated-docs/core/isparticipantsourcepinned.md +0 -32
  58. package/generated-docs/core/trackidentifier.md +0 -24
  59. package/generated-docs/react/audiotrackprops.name.md +0 -23
  60. package/generated-docs/react/audiotrackprops.participant.md +0 -23
  61. package/generated-docs/react/audiotrackprops.publication.md +0 -23
  62. package/generated-docs/react/audiotrackprops.source.md +0 -23
  63. package/generated-docs/react/audiovisualizerprops.participant.md +0 -23
  64. package/generated-docs/react/carouselview.md +0 -26
  65. package/generated-docs/react/focuslayoutcontainerprops.focustrack.md +0 -23
  66. package/generated-docs/react/focuslayoutcontainerprops.participants.md +0 -23
  67. package/generated-docs/react/focuslayoutprops.track.md +0 -23
  68. package/generated-docs/react/focustoggleprops.participant.md +0 -23
  69. package/generated-docs/react/focustoggleprops.tracksource.md +0 -23
  70. package/generated-docs/react/hook/useensuretrackreference.md +0 -39
  71. package/generated-docs/react/hook/useismuted_1.md +0 -40
  72. package/generated-docs/react/hook/usemaybetrackcontext.md +0 -34
  73. package/generated-docs/react/hook/usemediatrack.md +0 -49
  74. package/generated-docs/react/hook/usemediatrackbyname.md +0 -49
  75. package/generated-docs/react/hook/usetrack.md +0 -38
  76. package/generated-docs/react/hook/usetrackcontext.md +0 -34
  77. package/generated-docs/react/hook/usetrackmutedindicator_1.md +0 -40
  78. package/generated-docs/react/participanttileprops.participant.md +0 -23
  79. package/generated-docs/react/participanttileprops.publication.md +0 -23
  80. package/generated-docs/react/participanttileprops.source.md +0 -23
  81. package/generated-docs/react/prejoinprops.showe2eeoptions.md +0 -23
  82. package/generated-docs/react/trackcontext.md +0 -26
  83. package/generated-docs/react/trackmutedindicatorprops.participant.md +0 -23
  84. package/generated-docs/react/trackmutedindicatorprops.source.md +0 -23
  85. package/generated-docs/react/usefocustoggleprops.participant.md +0 -23
  86. package/generated-docs/react/usefocustoggleprops.tracksource.md +0 -23
  87. package/generated-docs/react/usemediatrackoptions.element.md +0 -13
  88. package/generated-docs/react/usemediatrackoptions.md +0 -25
  89. package/generated-docs/react/usemediatrackoptions.props.md +0 -13
  90. package/generated-docs/react/useparticipanttileprops.participant.md +0 -23
  91. package/generated-docs/react/useparticipanttileprops.publication.md +0 -23
  92. package/generated-docs/react/useparticipanttileprops.source.md +0 -23
  93. package/generated-docs/react/usetrackmutedindicatoroptions.md +0 -24
  94. package/generated-docs/react/usetrackmutedindicatoroptions.participant.md +0 -23
  95. package/generated-docs/react/usetrackoptions.element.md +0 -13
  96. package/generated-docs/react/usetrackoptions.md +0 -25
  97. package/generated-docs/react/usetrackoptions.props.md +0 -13
  98. package/generated-docs/react/videotrackprops.name.md +0 -23
  99. package/generated-docs/react/videotrackprops.participant.md +0 -23
  100. package/generated-docs/react/videotrackprops.publication.md +0 -23
  101. package/generated-docs/react/videotrackprops.source.md +0 -23
@@ -21,9 +21,7 @@ export interface TrackMutedIndicatorProps extends React.HTMLAttributes<HTMLDivEl
21
21
 
22
22
  ## Properties
23
23
 
24
- | Property | Type | Description |
25
- | --------------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
26
- | [participant?](./react/trackmutedindicatorprops.participant.md) | Participant | _(Optional)_ |
27
- | [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
28
- | [source?](./react/trackmutedindicatorprops.source.md) | Track.Source | _(Optional)_ |
29
- | [trackRef?](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
24
+ | Property | Type | Description |
25
+ | -------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
26
+ | [show?](./react/trackmutedindicatorprops.show.md) | 'always' \| 'muted' \| 'unmuted' | _(Optional)_ |
27
+ | [trackRef](./react/trackmutedindicatorprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | |
@@ -9,5 +9,5 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- trackRef?: TrackReferenceOrPlaceholder;
12
+ trackRef: TrackReferenceOrPlaceholder;
13
13
  ```
@@ -19,9 +19,7 @@ export interface UseFocusToggleProps
19
19
 
20
20
  ## Properties
21
21
 
22
- | Property | Type | Description |
23
- | ---------------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
24
- | [participant?](./react/usefocustoggleprops.participant.md) | Participant | _(Optional)_ |
25
- | [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt; | |
26
- | [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
27
- | [trackSource?](./react/usefocustoggleprops.tracksource.md) | Track.Source | _(Optional)_ |
22
+ | Property | Type | Description |
23
+ | ---------------------------------------------------- | --------------------------------------------------------------------- | ------------ |
24
+ | [props](./react/usefocustoggleprops.props.md) | React.ButtonHTMLAttributes&lt;HTMLButtonElement&gt; | |
25
+ | [trackRef?](./react/usefocustoggleprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ |
@@ -26,7 +26,4 @@ export interface UseParticipantTileProps<T extends HTMLElement> extends React.HT
26
26
  | [disableSpeakingIndicator?](./react/useparticipanttileprops.disablespeakingindicator.md) | boolean | _(Optional)_ |
27
27
  | [htmlProps](./react/useparticipanttileprops.htmlprops.md) | React.HTMLAttributes&lt;T&gt; | |
28
28
  | [onParticipantClick?](./react/useparticipanttileprops.onparticipantclick.md) | (event: ParticipantClickEvent) =&gt; 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
29
  | [trackRef?](./react/useparticipanttileprops.trackref.md) | [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md) | _(Optional)_ The track reference to display. |
@@ -15,8 +15,8 @@
15
15
  export type UseTracksHookReturnType<T> = T extends Track.Source[]
16
16
  ? TrackReference[]
17
17
  : T extends TrackSourceWithOptions[]
18
- ? TrackReferenceOrPlaceholder[]
19
- : never;
18
+ ? TrackReferenceOrPlaceholder[]
19
+ : never;
20
20
  ```
21
21
 
22
22
  **References:** [TrackReference](./react/trackreference.md)<!-- -->, [TrackReferenceOrPlaceholder](./react/trackreferenceorplaceholder.md)
@@ -24,10 +24,6 @@ export interface VideoTrackProps extends React.VideoHTMLAttributes<HTMLVideoElem
24
24
  | Property | Type | Description |
25
25
  | -------------------------------------------------------------------------------------- | ------------------------------------------- | -------------------------------------------------------- |
26
26
  | [manageSubscription?](./react/videotrackprops.managesubscription.md) | boolean | _(Optional)_ |
27
- | [name?](./react/videotrackprops.name.md) | string | _(Optional)_ |
28
27
  | [onSubscriptionStatusChanged?](./react/videotrackprops.onsubscriptionstatuschanged.md) | (subscribed: boolean) =&gt; void | _(Optional)_ |
29
28
  | [onTrackClick?](./react/videotrackprops.ontrackclick.md) | (evt: ParticipantClickEvent) =&gt; 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
29
  | [trackRef?](./react/videotrackprops.trackref.md) | [TrackReference](./react/trackreference.md) | _(Optional)_ The track reference of the track to render. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/components-js-docs",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Automatically generated documentation pages for LiveKit Components JS. Intended to be consumed by the documentation page.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  "directory": "/docs/beta-docs"
9
9
  },
10
10
  "dependencies": {
11
- "@livekit/components-react": "1.5.2"
11
+ "@livekit/components-react": "2.0.0"
12
12
  },
13
13
  "author": "",
14
14
  "license": "Apache-2.0",
@@ -1,19 +0,0 @@
1
- ---
2
- {
3
- "title": "DataSendOptions type",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/observables/dataChannel.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # DataSendOptions type
11
-
12
- **Signature:**
13
-
14
- ```typescript
15
- export type DataSendOptions = {
16
- kind?: DataPacket_Kind;
17
- destination?: string[];
18
- };
19
- ```
@@ -1,32 +0,0 @@
1
- ---
2
- {
3
- "title": "isParticipantSourcePinned",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/utils.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # isParticipantSourcePinned
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- Use [isParticipantTrackReferencePinned()](./core/isparticipanttrackreferencepinned.md) instead.
17
-
18
- {% /callout %}
19
-
20
- Check if the participant track source is pinned.
21
-
22
- **Signature:**
23
-
24
- ```typescript
25
- export declare function isParticipantSourcePinned(
26
- participant: Participant,
27
- source: Track.Source,
28
- pinState: PinState | undefined
29
- ): boolean;
30
- ```
31
-
32
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,24 +0,0 @@
1
- ---
2
- {
3
- "title": "TrackIdentifier type",
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
- # TrackIdentifier type
11
-
12
- The TrackIdentifier type is used to select Tracks either based on - Track.Source and/or name of the track, e.g. `{source: Track.Source.Camera}` or `{name: "my-track"}` - TrackReference (participant and publication)
13
-
14
- **Signature:**
15
-
16
- ```typescript
17
- export type TrackIdentifier<T extends Track.Source = Track.Source> =
18
- | TrackSource<T>
19
- | TrackReference;
20
- ```
21
-
22
- **References:** [TrackSource](./core/tracksource.md)<!-- -->, [TrackReference](./core/trackreference.md)
23
-
24
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "AudioTrackProps.name property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # AudioTrackProps.name property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- name?: string;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "AudioTrackProps.participant property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # AudioTrackProps.participant property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- participant?: Participant;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "AudioTrackProps.publication property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # AudioTrackProps.publication property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- publication?: TrackPublication;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "AudioTrackProps.source property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # AudioTrackProps.source property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- source?: Track.Source;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "AudioVisualizerProps.participant property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # AudioVisualizerProps.participant property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- this property will be removed in a future version, use `trackRef` instead
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- participant?: Participant;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,26 +0,0 @@
1
- ---
2
- {
3
- "title": "CarouselView variable",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/components/layout/CarouselLayout.tsx"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # CarouselView variable
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- Renamed to \[\[CarouselLayout\]\]
17
-
18
- {% /callout %}
19
-
20
- **Signature:**
21
-
22
- ```typescript
23
- CarouselView: typeof CarouselLayout;
24
- ```
25
-
26
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "FocusLayoutContainerProps.focusTrack property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # FocusLayoutContainerProps.focusTrack property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property has no effect and will be removed in a future version.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- focusTrack?: TrackReference;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "FocusLayoutContainerProps.participants property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # FocusLayoutContainerProps.participants property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property has no effect and will be removed in a future version.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- participants?: Array<Participant>;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "FocusLayoutProps.track property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # FocusLayoutProps.track property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This property will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- track?: TrackReferenceOrPlaceholder;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "FocusToggleProps.participant property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # FocusToggleProps.participant property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This parameter will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- participant?: Participant;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,23 +0,0 @@
1
- ---
2
- { "title": "FocusToggleProps.trackSource property" }
3
- ---
4
-
5
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
6
-
7
- # FocusToggleProps.trackSource property
8
-
9
- {% callout type="caution" variation="normal" %}
10
-
11
- This API is deprecated:
12
-
13
- This parameter will be removed in a future version use `trackRef` instead.
14
-
15
- {% /callout %}
16
-
17
- **Signature:**
18
-
19
- ```typescript
20
- trackSource?: Track.Source;
21
- ```
22
-
23
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
@@ -1,39 +0,0 @@
1
- ---
2
- {
3
- "title": "useEnsureTrackReference",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/track-reference-context.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # useEnsureTrackReference
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- `useEnsureTrackReference` has been renamed to `useEnsureTrackRef`<!-- -->, use this as a drop in replacement.
17
-
18
- {% /callout %}
19
-
20
- Ensures that a track reference is provided, either via context or explicitly as a parameter. If not inside a `TrackContext` and no track reference is provided, an error is thrown.
21
-
22
- ## Import
23
-
24
- ```typescript
25
- import { useEnsureTrackReference } from "@livekit/components-react";
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
29
-
30
- ## Properties
31
-
32
- {% parameter name="track" type="TrackReferenceOrPlaceholder" optional=true %}
33
- {% /parameter %}
34
-
35
- ## Returns
36
-
37
- ```typescript
38
- TrackReferenceOrPlaceholder;
39
- ```
@@ -1,40 +0,0 @@
1
- ---
2
- {
3
- "title": "useIsMuted",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useIsMuted.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # useIsMuted
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- This overload will be removed in a future version, pass in trackRef instead.
17
-
18
- {% /callout %}
19
-
20
- ## Import
21
-
22
- ```typescript
23
- import { useIsMuted } from "@livekit/components-react";
24
- ```
25
-
26
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
27
-
28
- ## Properties
29
-
30
- {% parameter name="source" type="Track.Source" optional=false %}
31
- {% /parameter %}
32
-
33
- {% parameter name="options" type="UseIsMutedOptions" optional=true %}
34
- {% /parameter %}
35
-
36
- ## Returns
37
-
38
- ```typescript
39
- boolean;
40
- ```
@@ -1,34 +0,0 @@
1
- ---
2
- {
3
- "title": "useMaybeTrackContext",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/context/track-reference-context.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # useMaybeTrackContext
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- `useMaybeTrackContext` has been renamed to `useMaybeTrackRefContext`<!-- -->, use this as a drop in replacement.
17
-
18
- {% /callout %}
19
-
20
- Returns a track reference from the `TrackContext` if it exists, otherwise `undefined`<!-- -->.
21
-
22
- ## Import
23
-
24
- ```typescript
25
- import { useMaybeTrackContext } from "@livekit/components-react";
26
- ```
27
-
28
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
29
-
30
- ## Returns
31
-
32
- ```typescript
33
- TrackReferenceOrPlaceholder | undefined;
34
- ```
@@ -1,49 +0,0 @@
1
- ---
2
- {
3
- "title": "useMediaTrack",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useMediaTrack.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # useMediaTrack
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- use `useTrack` instead
17
-
18
- {% /callout %}
19
-
20
- ## Import
21
-
22
- ```typescript
23
- import { useMediaTrack } from "@livekit/components-react";
24
- ```
25
-
26
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
27
-
28
- ## Properties
29
-
30
- {% parameter name="source" type="VideoSource | AudioSource" optional=false %}
31
- {% /parameter %}
32
-
33
- {% parameter name="options" type="UseMediaTrackOptions" optional=true %}
34
- {% /parameter %}
35
-
36
- {% parameter name="participant" type="Participant" optional=true %}
37
- {% /parameter %}
38
-
39
- ## Returns
40
-
41
- ```typescript
42
- {
43
- publication: import("livekit-client").TrackPublication | undefined;
44
- isMuted: boolean | undefined;
45
- isSubscribed: boolean | undefined;
46
- track: import("livekit-client").Track | undefined;
47
- elementProps: React.HTMLAttributes<HTMLElement>;
48
- }
49
- ```
@@ -1,49 +0,0 @@
1
- ---
2
- {
3
- "title": "useMediaTrackByName",
4
- "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/react/src/hooks/useMediaTrackByName.ts"
5
- }
6
- ---
7
-
8
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
-
10
- # useMediaTrackByName
11
-
12
- {% callout type="caution" variation="normal" %}
13
-
14
- This API is deprecated:
15
-
16
- This function will be removed in a future version, use `useTrackByName` instead.
17
-
18
- {% /callout %}
19
-
20
- ## Import
21
-
22
- ```typescript
23
- import { useMediaTrackByName } from "@livekit/components-react";
24
- ```
25
-
26
- {% partial file="p_usage.md" variables={exampleCount: 0} /%}
27
-
28
- ## Properties
29
-
30
- {% parameter name="name" type="string" optional=false %}
31
- {% /parameter %}
32
-
33
- {% parameter name="options" type="UseMediaTrackOptions" optional=true %}
34
- {% /parameter %}
35
-
36
- {% parameter name="participant" type="Participant" optional=true %}
37
- {% /parameter %}
38
-
39
- ## Returns
40
-
41
- ```typescript
42
- {
43
- publication: import("livekit-client").TrackPublication | undefined;
44
- isMuted: boolean | undefined;
45
- isSubscribed: boolean | undefined;
46
- track: import("livekit-client").Track | undefined;
47
- elementProps: import("react").HTMLAttributes<HTMLElement>;
48
- }
49
- ```