@daily-co/react-native-daily-js 0.82.0 → 0.84.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.82.0",
3
+ "version": "0.84.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",
@@ -30,11 +30,12 @@
30
30
  "baseUrl": "https://github.com/daily-co/react-native-daily-js"
31
31
  },
32
32
  "dependencies": {
33
- "@daily-co/daily-js": "^0.85.0",
33
+ "@daily-co/daily-js": "^0.89.0",
34
34
  "@types/react-native-background-timer": "^2.0.0",
35
35
  "base-64": "^1.0.0",
36
36
  "react-native-url-polyfill": "^1.1.2"
37
37
  },
38
+ "///": "WHEN ONE OF THESE CHANGE, PLEASE UPDATE README.md INSTALL SNIPPET ACCORDINGLY",
38
39
  "peerDependencies": {
39
40
  "@daily-co/react-native-webrtc": "^124.0.6-daily.1",
40
41
  "@react-native-async-storage/async-storage": "^1.24.0",
@@ -22,19 +22,20 @@ export type DailyLanguage =
22
22
  | 'da'
23
23
  | 'de'
24
24
  | 'en'
25
+ | 'es'
25
26
  | 'fi'
26
27
  | 'fr'
28
+ | 'it'
29
+ | 'jp'
30
+ | 'ka'
27
31
  | 'nl'
28
32
  | 'no'
29
- | 'pt'
30
33
  | 'pl'
34
+ | 'pt'
35
+ | 'pt-BR'
31
36
  | 'ru'
32
37
  | 'sv'
33
- | 'es'
34
- | 'tr'
35
- | 'it'
36
- | 'ka'
37
- | 'jp';
38
+ | 'tr';
38
39
 
39
40
  export type DailyLanguageSetting = DailyLanguage | 'user';
40
41
 
@@ -169,6 +170,11 @@ export interface DailyCallOptions {
169
170
  userData?: unknown;
170
171
  startVideoOff?: boolean;
171
172
  startAudioOff?: boolean;
173
+ /**
174
+ * Optional key-value map of client info to include in call logs (e.g. SDK name and version).
175
+ * Max 10 entries; keys max 64 chars (a-z, 0-9, _, -); values max 256 chars.
176
+ */
177
+ aboutClient?: Record<string, string>;
172
178
  }
173
179
 
174
180
  export interface DailyLoadOptions extends DailyCallOptions {
@@ -337,6 +343,8 @@ export interface DailyParticipantTracks {
337
343
  video: DailyTrackState;
338
344
  screenAudio: DailyTrackState;
339
345
  screenVideo: DailyTrackState;
346
+ rmpAudio?: DailyTrackState;
347
+ rmpVideo?: DailyTrackState;
340
348
  [customTrackKey: string]: DailyTrackState | undefined;
341
349
  }
342
350
 
@@ -609,7 +617,7 @@ export interface DailyCpuLoadStats {
609
617
  };
610
618
  }
611
619
 
612
- interface DailySendSettings {
620
+ export interface DailySendSettings {
613
621
  video?: DailyVideoSendSettings | DailyVideoSendSettingsPreset;
614
622
  customVideoDefaults?: DailyVideoSendSettings | DailyVideoSendSettingsPreset;
615
623
  [customKey: string]:
@@ -702,6 +710,7 @@ export interface DailyRoomInfo {
702
710
  webhook_meeting_end?: any;
703
711
  max_live_streams?: number;
704
712
  max_streaming_instances_per_room?: number;
713
+ max_app_message_size?: number;
705
714
  enable_breakout_rooms?: boolean;
706
715
  enable_emoji_reactions?: boolean;
707
716
  enable_network_ui?: boolean;
@@ -1227,6 +1236,14 @@ export interface DailyEventObjectDialOutWarning extends DailyEventObjectBase {
1227
1236
  actionTraceId?: string;
1228
1237
  }
1229
1238
 
1239
+ export interface DailyEventObjectDtmfEvent extends DailyEventObjectBase {
1240
+ action: Extract<DailyEvent, 'dtmf-event'>;
1241
+ tone: string;
1242
+ volume: number;
1243
+ method: string;
1244
+ sessionId?: string;
1245
+ }
1246
+
1230
1247
  export type DailyEventObject<T extends DailyEvent = any> =
1231
1248
  T extends DailyEventObjectAppMessage['action']
1232
1249
  ? DailyEventObjectAppMessage
@@ -1316,6 +1333,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
1316
1333
  ? DailyEventObjectDialOutStopped
1317
1334
  : T extends DailyEventObjectDialOutWarning['action']
1318
1335
  ? DailyEventObjectDialOutWarning
1336
+ : T extends DailyEventObjectDtmfEvent['action']
1337
+ ? DailyEventObjectDtmfEvent
1319
1338
  : T extends DailyEventObjectLocalAudioLevel['action']
1320
1339
  ? DailyEventObjectLocalAudioLevel
1321
1340
  : T extends DailyEventObjectRemoteParticipantsAudioLevel['action']
@@ -1465,9 +1484,13 @@ export interface DailyStreamingOptions<
1465
1484
  maxDuration?: number;
1466
1485
  backgroundColor?: string;
1467
1486
  instanceId?: string;
1487
+ dataOutputs?: Array<string>;
1468
1488
  layout?: Method extends 'recording'
1469
1489
  ? DailyStreamingLayoutConfig<Type>
1470
1490
  : DailyLiveStreamingLayoutConfig<Type>;
1491
+ type?: Method extends 'recording'
1492
+ ? 'cloud' | 'raw-tracks' | 'cloud-audio-only'
1493
+ : never;
1471
1494
  }
1472
1495
 
1473
1496
  export interface DailyStreamingEndpoint {
@@ -1488,7 +1511,10 @@ export interface RemoteMediaPlayerSimulcastEncoding {
1488
1511
  }
1489
1512
 
1490
1513
  export interface DailyRemoteMediaPlayerSettings {
1491
- state: DailyRemoteMediaPlayerSettingPlay | DailyRemoteMediaPlayerSettingPause;
1514
+ state?:
1515
+ | DailyRemoteMediaPlayerSettingPlay
1516
+ | DailyRemoteMediaPlayerSettingPause;
1517
+ volume?: number;
1492
1518
  simulcastEncodings?: RemoteMediaPlayerSimulcastEncoding[];
1493
1519
  }
1494
1520
 
@@ -1587,6 +1613,20 @@ export interface DailySipCallTransferOptions {
1587
1613
  waitBeforeExtensionDialSec?: number;
1588
1614
  }
1589
1615
 
1616
+ export type DTMF_METHOD_SIP_INFO = 'sip-info';
1617
+ export type DTMF_METHOD_TELEPHONE_EVENT = 'telephone-event';
1618
+ export type DTMF_METHOD_AUTO = 'auto';
1619
+
1620
+ export interface DailySendDtmfOptions {
1621
+ sessionId: string;
1622
+ tones: string;
1623
+ method?:
1624
+ | DTMF_METHOD_SIP_INFO
1625
+ | DTMF_METHOD_TELEPHONE_EVENT
1626
+ | DTMF_METHOD_AUTO;
1627
+ digitDurationMs?: number;
1628
+ }
1629
+
1590
1630
  export interface DailySipReferOptions {
1591
1631
  sessionId: string;
1592
1632
  toEndPoint: string;
@@ -1748,7 +1788,7 @@ export interface DailyCall {
1748
1788
  options: DailyStartDialoutOptions
1749
1789
  ): Promise<{ session?: DailyDialOutSession }>;
1750
1790
  stopDialOut(options: { sessionId: string }): Promise<void>;
1751
- sendDTMF(options: { sessionId: string; tones: string }): Promise<void>;
1791
+ sendDTMF(options: DailySendDtmfOptions): Promise<void>;
1752
1792
  sipCallTransfer(options: DailySipCallTransferOptions): Promise<void>;
1753
1793
  sipRefer(options: DailySipReferOptions): Promise<void>;
1754
1794
  }