@daily-co/react-native-daily-js 0.36.0 → 0.38.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daily-co/react-native-daily-js",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "description": "React Native library for making video calls using Daily",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "baseUrl": "https://github.com/daily-co/react-native-daily-js"
27
27
  },
28
28
  "dependencies": {
29
- "@daily-co/daily-js": "^0.38.0",
29
+ "@daily-co/daily-js": "^0.40.0",
30
30
  "@types/react-native-background-timer": "^2.0.0",
31
31
  "react-native-url-polyfill": "^1.1.2"
32
32
  },
@@ -64,6 +64,7 @@ export type DailyEvent =
64
64
  | 'error'
65
65
  | 'nonfatal-error'
66
66
  | 'live-streaming-started'
67
+ | 'live-streaming-updated'
67
68
  | 'live-streaming-stopped'
68
69
  | 'live-streaming-error'
69
70
  | 'remote-media-player-started'
@@ -124,6 +125,7 @@ export interface DailyBrowserInfo {
124
125
  supportsScreenShare: boolean;
125
126
  supportsSfu: boolean;
126
127
  supportsVideoProcessing: boolean;
128
+ supportsAudioProcessing: boolean;
127
129
  }
128
130
 
129
131
  export interface DailyCallOptions {
@@ -145,6 +147,10 @@ export interface DailyLoadOptions extends DailyCallOptions {
145
147
  baseUrl?: string;
146
148
  }
147
149
 
150
+ export interface DailyFactoryOptions extends DailyCallOptions {
151
+ srictMode?: boolean; // only available at constructor time
152
+ }
153
+
148
154
  export interface CamSimulcastEncoding {
149
155
  maxBitrate: number;
150
156
  maxFramerate?: number;
@@ -266,7 +272,9 @@ export interface DailyWaitingParticipant {
266
272
 
267
273
  export type DailyTrackSubscriptionState = 'staged' | boolean;
268
274
 
269
- export type DailyCustomTrackSubscriptionState = DailyTrackSubscriptionState | { [name: string]: DailyTrackSubscriptionState };
275
+ export type DailyCustomTrackSubscriptionState =
276
+ | DailyTrackSubscriptionState
277
+ | { [name: string]: DailyTrackSubscriptionState };
270
278
 
271
279
  export type DailyTrackSubscriptionOptions =
272
280
  | DailyTrackSubscriptionState
@@ -342,6 +350,7 @@ export interface DailyRoomInfo {
342
350
  enable_chat?: boolean;
343
351
  enable_knocking?: boolean;
344
352
  enable_network_ui?: boolean;
353
+ enable_noise_cancellation_ui?: boolean;
345
354
  enable_people_ui?: boolean;
346
355
  enable_pip_ui?: boolean;
347
356
  enable_hand_raising?: boolean;
@@ -376,6 +385,7 @@ export interface DailyRoomInfo {
376
385
  enable_breakout_rooms?: boolean;
377
386
  enable_emoji_reactions?: boolean;
378
387
  enable_network_ui?: boolean;
388
+ enable_noise_cancellation_ui?: boolean;
379
389
  enable_people_ui?: boolean;
380
390
  enable_pip_ui?: boolean;
381
391
  enable_hand_raising?: boolean;
@@ -584,6 +594,14 @@ export interface DailyEventObjectTrack {
584
594
  action: Extract<DailyEvent, 'track-started' | 'track-stopped'>;
585
595
  participant: DailyParticipant | null; // null if participant left meeting
586
596
  track: MediaStreamTrack;
597
+ type:
598
+ | 'video'
599
+ | 'audio'
600
+ | 'screenVideo'
601
+ | 'screenAudio'
602
+ | 'rmpVideo'
603
+ | 'rmpAudio'
604
+ | string; // string - for custom tracks
587
605
  }
588
606
 
589
607
  export interface DailyEventObjectRecordingStarted {
@@ -652,6 +670,12 @@ export interface DailyEventObjectLiveStreamingStarted {
652
670
  layout?: DailyStreamingLayoutConfig;
653
671
  instanceId?: string;
654
672
  }
673
+ export interface DailyEventObjectLiveStreamingUpdated {
674
+ action: Extract<DailyEvent, 'live-streaming-updated'>;
675
+ endpoint?: DailyStreamingEndpoint;
676
+ state: DailyStreamingState;
677
+ instanceId?: string;
678
+ }
655
679
 
656
680
  export interface DailyEventObjectLiveStreamingStopped {
657
681
  action: Extract<DailyEvent, 'live-streaming-stopped'>;
@@ -702,6 +726,12 @@ export type DailyEventObject<T extends DailyEvent = any> =
702
726
  ? DailyEventObjectGenericError
703
727
  : T extends DailyEventObjectParticipants['action']
704
728
  ? DailyEventObjectParticipants
729
+ : T extends DailyEventObjectLiveStreamingStarted['action']
730
+ ? DailyEventObjectLiveStreamingStarted
731
+ : T extends DailyEventObjectLiveStreamingUpdated['action']
732
+ ? DailyEventObjectLiveStreamingUpdated
733
+ : T extends DailyEventObjectLiveStreamingStopped['action']
734
+ ? DailyEventObjectLiveStreamingStopped
705
735
  : T extends DailyEventObjectLiveStreamingError['action']
706
736
  ? DailyEventObjectLiveStreamingError
707
737
  : T extends DailyEventObjectParticipant['action']
@@ -720,6 +750,10 @@ export type DailyEventObject<T extends DailyEvent = any> =
720
750
  ? DailyEventObjectTrack
721
751
  : T extends DailyEventObjectRecordingStarted['action']
722
752
  ? DailyEventObjectRecordingStarted
753
+ : T extends DailyEventObjectRecordingStopped['action']
754
+ ? DailyEventObjectRecordingStopped
755
+ : T extends DailyEventObjectRecordingError['action']
756
+ ? DailyEventObjectRecordingError
723
757
  : T extends DailyEventObjectRemoteMediaPlayerUpdate['action']
724
758
  ? DailyEventObjectRemoteMediaPlayerUpdate
725
759
  : T extends DailyEventObjectRemoteMediaPlayerStopped['action']
@@ -739,7 +773,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
739
773
  export type DailyNativeInCallAudioMode = 'video' | 'voice';
740
774
 
741
775
  export interface DailyCallFactory {
742
- createCallObject(properties?: DailyCallOptions): DailyCall;
776
+ createCallObject(properties?: DailyFactoryOptions): DailyCall;
777
+ getCallInstance(): DailyCall;
743
778
  }
744
779
 
745
780
  export interface DailyCallStaticUtils {
@@ -788,6 +823,8 @@ export type DailyStreamingLayoutConfig =
788
823
  | DailyStreamingPortraitLayoutConfig
789
824
  | DailyStreamingCustomLayoutConfig;
790
825
 
826
+ export type DailyStreamingState = 'connected' | 'interrupted';
827
+
791
828
  export type DailyRemoteMediaPlayerSettingPlay = 'play';
792
829
  export type DailyRemoteMediaPlayerSettingPause = 'pause';
793
830
 
@@ -877,13 +914,14 @@ export interface DailyTranscriptionDeepgramOptions {
877
914
  model?: string;
878
915
  tier?: string;
879
916
  profanity_filter?: boolean;
880
- redact?: boolean;
917
+ redact?: Array<string> | boolean;
881
918
  }
882
919
 
883
920
  export interface DailyCall {
884
921
  join(properties?: DailyCallOptions): Promise<DailyParticipantsObject | void>;
885
922
  leave(): Promise<void>;
886
923
  destroy(): Promise<void>;
924
+ isDestroyed(): boolean;
887
925
  meetingState(): DailyMeetingState;
888
926
  accessState(): DailyAccessState;
889
927
  participants(): DailyParticipantsObject;