Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/rare-flowers-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@livekit/components-core': patch
---

Update all livekit-client to not use internal exports
8 changes: 4 additions & 4 deletions packages/core/etc/components-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ import loglevel from 'loglevel';
import { Observable } from 'rxjs';
import { Participant } from 'livekit-client';
import { ParticipantEvent } from 'livekit-client';
import type { ParticipantEventCallbacks } from 'livekit-client/dist/src/room/participant/Participant';
import { ParticipantEventCallbacks } from 'livekit-client';
import type { ParticipantKind } from 'livekit-client';
import type { ParticipantPermission } from '@livekit/protocol';
import type { PublicationEventCallbacks } from 'livekit-client/dist/src/room/track/TrackPublication';
import type { PublicationEventCallbacks } from 'livekit-client';
import { RemoteParticipant } from 'livekit-client';
import { Room } from 'livekit-client';
import { RoomEvent } from 'livekit-client';
import type { RoomEventCallbacks } from 'livekit-client/dist/src/room/Room';
import { RoomEventCallbacks } from 'livekit-client';
import type { ScreenShareCaptureOptions } from 'livekit-client';
import { SendTextOptions } from 'livekit-client';
import { setLogLevel as setLogLevel_2 } from 'livekit-client';
import type { TextStreamInfo } from 'livekit-client/dist/src/room/types';
import { TextStreamInfo } from 'livekit-client';
import { Track } from 'livekit-client';
import { TrackEvent as TrackEvent_2 } from 'livekit-client';
import { TrackPublication } from 'livekit-client';
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/components/textStream.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RoomEvent, type Room } from 'livekit-client';
import type { TextStreamInfo } from 'livekit-client/dist/src/room/types';
import { RoomEvent, type Room, type TextStreamInfo } from 'livekit-client';
import { from, scan, Subject, type Observable } from 'rxjs';
import { share, tap } from 'rxjs/operators';
import { ParticipantAgentAttributes } from '../helper';
Expand Down
14 changes: 10 additions & 4 deletions packages/core/src/observables/participant.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import type { ParticipantPermission } from '@livekit/protocol';
import { Participant, RemoteParticipant, Room, TrackPublication } from 'livekit-client';
import { ParticipantEvent, RoomEvent, Track } from 'livekit-client';
// @ts-ignore some module resolutions (other than 'node') choke on this
import type { ParticipantEventCallbacks } from 'livekit-client/dist/src/room/participant/Participant';
import {
Participant,
RemoteParticipant,
Room,
TrackPublication,
ParticipantEvent,
RoomEvent,
Track,
type ParticipantEventCallbacks,
} from 'livekit-client';
import type { Subscriber } from 'rxjs';
import { Observable, map, startWith, switchMap } from 'rxjs';
import { getTrackByIdentifier } from '../components/mediaTrack';
Expand Down
13 changes: 9 additions & 4 deletions packages/core/src/observables/room.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import type { Participant, TrackPublication } from 'livekit-client';
import { LocalParticipant, Room, RoomEvent, Track } from 'livekit-client';
import {
LocalParticipant,
Room,
RoomEvent,
Track,
type Participant,
type TrackPublication,
type RoomEventCallbacks,
} from 'livekit-client';
import type { Subscriber, Subscription } from 'rxjs';
import { concat, filter, map, Observable, startWith } from 'rxjs';
// @ts-ignore some module resolutions (other than 'node') choke on this
import type { RoomEventCallbacks } from 'livekit-client/dist/src/room/Room';
import { log } from '../logger';
export function observeRoomEvents(room: Room, ...events: RoomEvent[]): Observable<Room> {
const observable = new Observable<Room>((subscribe) => {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/observables/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type {
Room,
Track,
TrackPublication,
PublicationEventCallbacks,
} from 'livekit-client';
import { RoomEvent, TrackEvent } from 'livekit-client';
import { map, Observable, startWith } from 'rxjs';
Expand All @@ -14,8 +15,6 @@ import type { TrackReference } from '../track-reference';
import { observeRoomEvents } from './room';
import type { ParticipantTrackIdentifier } from '../types';
import { observeParticipantEvents } from './participant';
// @ts-ignore some module resolutions (other than 'node') choke on this
import type { PublicationEventCallbacks } from 'livekit-client/dist/src/room/track/TrackPublication';

export function trackObservable(track: TrackPublication) {
const trackObserver = observeTrackEvents(
Expand Down
Loading