|
4 | 4 |
|
5 | 5 | ```ts |
6 | 6 |
|
7 | | -import type { AudioAnalyserOptions } from 'livekit-client'; |
8 | | -import type { AudioCaptureOptions } from 'livekit-client'; |
| 7 | +import { AudioAnalyserOptions } from 'livekit-client'; |
| 8 | +import { AudioCaptureOptions } from 'livekit-client'; |
9 | 9 | import { CaptureOptionsBySource } from '@livekit/components-core'; |
10 | 10 | import { ChatMessage } from '@livekit/components-core'; |
11 | 11 | import { ChatOptions } from '@livekit/components-core'; |
12 | 12 | import { ConnectionQuality } from 'livekit-client'; |
13 | 13 | import { ConnectionState as ConnectionState_2 } from 'livekit-client'; |
14 | | -import type { CreateLocalTracksOptions } from 'livekit-client'; |
15 | | -import type { DataPublishOptions } from 'livekit-client'; |
16 | | -import type { DisconnectReason } from 'livekit-client'; |
| 14 | +import { CreateLocalTracksOptions } from 'livekit-client'; |
| 15 | +import { DataPublishOptions } from 'livekit-client'; |
| 16 | +import { default as default_2 } from 'typed-emitter'; |
| 17 | +import { DisconnectReason } from 'livekit-client'; |
17 | 18 | import { EventMap } from 'typed-emitter'; |
18 | 19 | import { GridLayoutDefinition } from '@livekit/components-core'; |
19 | | -import type { GridLayoutInfo } from '@livekit/components-core'; |
20 | | -import type { HTMLAttributes } from 'react'; |
| 20 | +import { GridLayoutInfo } from '@livekit/components-core'; |
| 21 | +import { HTMLAttributes } from 'react'; |
21 | 22 | import { isTrackReference } from '@livekit/components-core'; |
22 | | -import type { KrispNoiseFilterProcessor } from '@livekit/krisp-noise-filter'; |
| 23 | +import { KrispNoiseFilterProcessor } from '@livekit/krisp-noise-filter'; |
23 | 24 | import { LocalAudioTrack } from 'livekit-client'; |
24 | 25 | import { LocalParticipant } from 'livekit-client'; |
25 | | -import type { LocalTrack } from 'livekit-client'; |
| 26 | +import { LocalTrack } from 'livekit-client'; |
26 | 27 | import { LocalTrackPublication } from 'livekit-client'; |
27 | 28 | import { LocalUserChoices } from '@livekit/components-core'; |
28 | 29 | import { LocalVideoTrack } from 'livekit-client'; |
29 | | -import type { MediaDeviceFailure } from 'livekit-client'; |
| 30 | +import { MediaDeviceFailure } from 'livekit-client'; |
30 | 31 | import { MessageDecoder } from '@livekit/components-core'; |
31 | 32 | import { MessageEncoder } from '@livekit/components-core'; |
32 | | -import type { NoiseFilterOptions } from '@livekit/krisp-noise-filter'; |
| 33 | +import { NoiseFilterOptions } from '@livekit/krisp-noise-filter'; |
33 | 34 | import { Participant } from 'livekit-client'; |
34 | 35 | import { ParticipantClickEvent } from '@livekit/components-core'; |
35 | | -import type { ParticipantEvent } from 'livekit-client'; |
| 36 | +import { ParticipantEvent } from 'livekit-client'; |
36 | 37 | import { ParticipantIdentifier } from '@livekit/components-core'; |
37 | | -import type { ParticipantPermission } from '@livekit/protocol'; |
| 38 | +import { ParticipantPermission } from '@livekit/protocol'; |
38 | 39 | import { PinState } from '@livekit/components-core'; |
39 | 40 | import * as React_2 from 'react'; |
40 | 41 | import { ReceivedChatMessage } from '@livekit/components-core'; |
41 | | -import type { ReceivedDataMessage } from '@livekit/components-core'; |
| 42 | +import { ReceivedDataMessage } from '@livekit/components-core'; |
42 | 43 | import { ReceivedMessage } from '@livekit/components-core'; |
43 | 44 | import { ReceivedTranscriptionSegment } from '@livekit/components-core'; |
44 | | -import type { RemoteAudioTrack } from 'livekit-client'; |
| 45 | +import { RemoteAudioTrack } from 'livekit-client'; |
45 | 46 | import { RemoteParticipant } from 'livekit-client'; |
46 | 47 | import { Room } from 'livekit-client'; |
47 | 48 | import { RoomConnectOptions } from 'livekit-client'; |
48 | | -import type { RoomEvent } from 'livekit-client'; |
49 | | -import type { RoomOptions } from 'livekit-client'; |
50 | | -import type { ScreenShareCaptureOptions } from 'livekit-client'; |
| 49 | +import { RoomEvent } from 'livekit-client'; |
| 50 | +import { RoomOptions } from 'livekit-client'; |
| 51 | +import { ScreenShareCaptureOptions } from 'livekit-client'; |
51 | 52 | import { SendTextOptions } from 'livekit-client'; |
52 | 53 | import { setLogExtension } from '@livekit/components-core'; |
53 | 54 | import { setLogLevel } from '@livekit/components-core'; |
54 | 55 | import { SetMediaDeviceOptions } from '@livekit/components-core'; |
55 | | -import type { SourcesArray } from '@livekit/components-core'; |
56 | | -import type { SVGProps } from 'react'; |
| 56 | +import { SourcesArray } from '@livekit/components-core'; |
| 57 | +import { SVGProps } from 'react'; |
57 | 58 | import { TextStreamData } from '@livekit/components-core'; |
58 | | -import type { ToggleSource } from '@livekit/components-core'; |
| 59 | +import { ToggleSource } from '@livekit/components-core'; |
59 | 60 | import { TokenSourceConfigurable } from 'livekit-client'; |
60 | 61 | import { TokenSourceFetchOptions } from 'livekit-client'; |
61 | 62 | import { TokenSourceFixed } from 'livekit-client'; |
62 | 63 | import { Track } from 'livekit-client'; |
63 | | -import type { TrackProcessor } from 'livekit-client'; |
64 | | -import type { TrackPublication } from 'livekit-client'; |
| 64 | +import { TrackProcessor } from 'livekit-client'; |
| 65 | +import { TrackPublication } from 'livekit-client'; |
65 | 66 | import { TrackPublishOptions } from 'livekit-client'; |
66 | 67 | import { TrackReference } from '@livekit/components-core'; |
67 | 68 | import { TrackReferenceOrPlaceholder } from '@livekit/components-core'; |
68 | | -import type { TrackSourceWithOptions } from '@livekit/components-core'; |
69 | | -import type { TranscriptionSegment } from 'livekit-client'; |
70 | | -import TypedEventEmitter from 'typed-emitter'; |
71 | | -import type { VideoCaptureOptions } from 'livekit-client'; |
| 69 | +import { TrackSourceWithOptions } from '@livekit/components-core'; |
| 70 | +import { TranscriptionSegment } from 'livekit-client'; |
| 71 | +import { VideoCaptureOptions } from 'livekit-client'; |
72 | 72 | import { WidgetState } from '@livekit/components-core'; |
73 | 73 |
|
74 | 74 | // @public (undocumented) |
@@ -669,11 +669,6 @@ export type SessionConnectOptions = { |
669 | 669 | roomConnectOptions?: RoomConnectOptions; |
670 | 670 | }; |
671 | 671 |
|
672 | | -// Warning: (ae-internal-missing-underscore) The name "SessionContext" should be prefixed with an underscore because the declaration is marked as @internal |
673 | | -// |
674 | | -// @internal (undocumented) |
675 | | -export const SessionContext: React_2.Context<UseSessionReturn | undefined>; |
676 | | - |
677 | 672 | // @public (undocumented) |
678 | 673 | export enum SessionEvent { |
679 | 674 | // (undocumented) |
@@ -885,7 +880,7 @@ export function useEnsureSession(session?: UseSessionReturn): UseSessionReturn; |
885 | 880 | export function useEnsureTrackRef(trackRef?: TrackReferenceOrPlaceholder): TrackReferenceOrPlaceholder; |
886 | 881 |
|
887 | 882 | // @public (undocumented) |
888 | | -export function useEvents<Emitter extends TypedEventEmitter<EventMap>, EmitterEventMap extends Emitter extends TypedEventEmitter<infer EM> ? EM : never, Event extends Parameters<Emitter['on']>[0], Callback extends EmitterEventMap[Event]>(instance: Emitter | { |
| 883 | +export function useEvents<Emitter extends default_2<EventMap>, EmitterEventMap extends Emitter extends default_2<infer EM> ? EM : never, Event extends Parameters<Emitter['on']>[0], Callback extends EmitterEventMap[Event]>(instance: Emitter | { |
889 | 884 | internal: { |
890 | 885 | emitter: Emitter; |
891 | 886 | }; |
|
0 commit comments