@cometchat/calls-sdk-react-native 5.0.0-beta.8 → 5.0.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/android/src/main/java/com/callingv5/MyAppPackage.java +0 -1
- package/dist/index.d.mts +26 -13
- package/dist/index.d.ts +26 -13
- package/dist/index.js +1 -11401
- package/dist/index.mjs +1 -11369
- package/package.json +2 -2
- package/android/src/main/java/com/callingv5/ToastModule.java +0 -29
|
@@ -23,7 +23,6 @@ public class MyAppPackage implements ReactPackage {
|
|
|
23
23
|
|
|
24
24
|
modules.add(new AudioModeModule(reactContext));
|
|
25
25
|
modules.add(new KeepAwakeModule(reactContext));
|
|
26
|
-
modules.add(new ToastModule(reactContext));
|
|
27
26
|
|
|
28
27
|
if (AudioModeModule.useConnectionService()) {
|
|
29
28
|
modules.add(new RNConnectionService(reactContext));
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zustand0 from "zustand";
|
|
3
3
|
import * as zustand_middleware0 from "zustand/middleware";
|
|
4
4
|
import React from "react";
|
|
5
|
-
import JitsiMeetJS from "lib-
|
|
5
|
+
import JitsiMeetJS from "@cometchat/calls-lib-webrtc";
|
|
6
6
|
import { AppStateStatus } from "react-native";
|
|
7
7
|
|
|
8
8
|
//#region calls-sdk-core/event-listeners/onTrack.d.ts
|
|
@@ -89,6 +89,7 @@ declare const VIDEO_PAUSE_AUTHORITY: {
|
|
|
89
89
|
};
|
|
90
90
|
declare const CONFERENCE_COMMANDS: {
|
|
91
91
|
userInfo: string;
|
|
92
|
+
initialConfig: string;
|
|
92
93
|
};
|
|
93
94
|
declare const VIDEO_QUALITY_LEVELS: {
|
|
94
95
|
ULTRA: number;
|
|
@@ -338,7 +339,8 @@ type BaseState = {
|
|
|
338
339
|
chatButtonUnreadCount: number;
|
|
339
340
|
enableNoiseReduction: boolean;
|
|
340
341
|
sdkPlatform: SDKPlatform;
|
|
341
|
-
|
|
342
|
+
platformVersion?: string | number;
|
|
343
|
+
userAgent?: string;
|
|
342
344
|
previewVideoTrack?: any;
|
|
343
345
|
isMobileBrowser: boolean;
|
|
344
346
|
mainAreaDimension: {
|
|
@@ -373,7 +375,7 @@ type Actions$5 = {
|
|
|
373
375
|
isMobileSDK: () => boolean;
|
|
374
376
|
isMobile: () => boolean;
|
|
375
377
|
};
|
|
376
|
-
declare const useBaseStore:
|
|
378
|
+
declare const useBaseStore: zustand0.UseBoundStore<Omit<Omit<zustand0.StoreApi<BaseState & Actions$5>, "subscribe"> & {
|
|
377
379
|
subscribe: {
|
|
378
380
|
(listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
|
|
379
381
|
<U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -453,7 +455,7 @@ type Actions$4 = {
|
|
|
453
455
|
endConference: () => Promise<void>;
|
|
454
456
|
stopRecording: () => Promise<void>;
|
|
455
457
|
};
|
|
456
|
-
declare const useConferenceStore:
|
|
458
|
+
declare const useConferenceStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
|
|
457
459
|
subscribe: {
|
|
458
460
|
(listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
|
|
459
461
|
<U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -491,7 +493,16 @@ type ConfigStateWeb = {
|
|
|
491
493
|
audioInputDeviceId?: string;
|
|
492
494
|
audioOutputDeviceId?: string;
|
|
493
495
|
videoInputDeviceId?: string;
|
|
496
|
+
hideScreenSharingButton: boolean;
|
|
494
497
|
hideVirtualBackgroundButton: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* @unstable This API may change or be removed in a future release.
|
|
500
|
+
* When enabled, the SDK renders only remote audio elements without any
|
|
501
|
+
* visual UI (no video tiles, controls, or overlays). This allows the
|
|
502
|
+
* host app to provide its own custom UI while the SDK handles the
|
|
503
|
+
* underlying call connection and audio playback.
|
|
504
|
+
*/
|
|
505
|
+
unstable_renderAudioOnly: boolean;
|
|
495
506
|
};
|
|
496
507
|
type ConfigStateBoth = {
|
|
497
508
|
sessionType: SessionType;
|
|
@@ -509,7 +520,6 @@ type ConfigStateBoth = {
|
|
|
509
520
|
hideToggleVideoButton: boolean;
|
|
510
521
|
hideParticipantListButton: boolean;
|
|
511
522
|
hideChatButton: boolean;
|
|
512
|
-
hideScreenSharingButton: boolean;
|
|
513
523
|
hideSessionTimer: boolean;
|
|
514
524
|
hideNetworkIndicator: boolean;
|
|
515
525
|
hideRecordingStatusIndicator: boolean;
|
|
@@ -524,12 +534,13 @@ type ConfigStateBoth = {
|
|
|
524
534
|
enableSpotlightDrag: boolean;
|
|
525
535
|
enableSpotlightSwap: boolean;
|
|
526
536
|
isPeerCall: boolean;
|
|
537
|
+
enableNotifications: boolean;
|
|
527
538
|
};
|
|
528
539
|
type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth;
|
|
529
540
|
type Actions$3 = {
|
|
530
541
|
reset: () => void;
|
|
531
542
|
};
|
|
532
|
-
declare const useConfigStore:
|
|
543
|
+
declare const useConfigStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
|
|
533
544
|
subscribe: {
|
|
534
545
|
(listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
|
|
535
546
|
<U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -681,7 +692,7 @@ type Actions$2 = {
|
|
|
681
692
|
disconnect: () => Promise<void>;
|
|
682
693
|
reset: () => void;
|
|
683
694
|
};
|
|
684
|
-
declare const useConnectionStore:
|
|
695
|
+
declare const useConnectionStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
|
|
685
696
|
subscribe: {
|
|
686
697
|
(listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
|
|
687
698
|
<U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -732,7 +743,7 @@ type Actions$1 = {
|
|
|
732
743
|
getParticipantById: (pid: string) => HumanParticipant | undefined;
|
|
733
744
|
reset: () => void;
|
|
734
745
|
};
|
|
735
|
-
declare const useParticipantStore:
|
|
746
|
+
declare const useParticipantStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
|
|
736
747
|
subscribe: {
|
|
737
748
|
(listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
|
|
738
749
|
<U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -777,7 +788,7 @@ interface ToastActions {
|
|
|
777
788
|
clearAll: () => void;
|
|
778
789
|
reset: () => void;
|
|
779
790
|
}
|
|
780
|
-
declare const useToastStore:
|
|
791
|
+
declare const useToastStore: zustand0.UseBoundStore<zustand0.StoreApi<ToastState & ToastActions>>;
|
|
781
792
|
declare function showToast(params: {
|
|
782
793
|
message: string;
|
|
783
794
|
type?: NotificationType;
|
|
@@ -810,7 +821,7 @@ type Actions = {
|
|
|
810
821
|
updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
|
|
811
822
|
updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
|
|
812
823
|
};
|
|
813
|
-
declare const useTracksStore:
|
|
824
|
+
declare const useTracksStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<TracksState & Actions>, "subscribe"> & {
|
|
814
825
|
subscribe: {
|
|
815
826
|
(listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
|
|
816
827
|
<U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -857,6 +868,9 @@ declare const useIsAudioInputSelectionSupported: () => boolean;
|
|
|
857
868
|
declare const useIsVideoInputSelectionSupported: () => boolean;
|
|
858
869
|
declare const useShouldMirrorLocalVideo: () => boolean;
|
|
859
870
|
//#endregion
|
|
871
|
+
//#region calls-sdk-core/store/utils/reset.d.ts
|
|
872
|
+
declare function resetAllStores(): void;
|
|
873
|
+
//#endregion
|
|
860
874
|
//#region calls-sdk-core/store/utils/switch-camera.d.ts
|
|
861
875
|
declare const switchCamera: () => void;
|
|
862
876
|
//#endregion
|
|
@@ -1020,7 +1034,6 @@ type ValueOf<T> = T[keyof T];
|
|
|
1020
1034
|
type ParticipantRole = ValueOf<typeof PARTICIPANT_ROLE>;
|
|
1021
1035
|
type NotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
1022
1036
|
type SDKPlatform = ValueOf<typeof SDK_PLATFORM>;
|
|
1023
|
-
type WebOSName = 'android' | 'ios' | 'macos' | 'windows' | 'linux' | 'unknown';
|
|
1024
1037
|
interface ITrackOptions {
|
|
1025
1038
|
cameraDeviceId?: string | null;
|
|
1026
1039
|
constraints?: {
|
|
@@ -1302,7 +1315,7 @@ interface TranslationState {
|
|
|
1302
1315
|
translations: Record<string, typeof __json_default_export>;
|
|
1303
1316
|
currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
|
|
1304
1317
|
}
|
|
1305
|
-
declare const useTranslationStore:
|
|
1318
|
+
declare const useTranslationStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
|
|
1306
1319
|
reset: () => void;
|
|
1307
1320
|
setLocale: (locale: CometChatSupportedLocale) => void;
|
|
1308
1321
|
}>, "subscribe"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as zustand1 from "zustand";
|
|
2
2
|
import * as zustand_middleware0 from "zustand/middleware";
|
|
3
3
|
import { AppStateStatus } from "react-native";
|
|
4
|
-
import JitsiMeetJS from "lib-
|
|
4
|
+
import JitsiMeetJS from "@cometchat/calls-lib-webrtc";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
import React from "react";
|
|
7
7
|
|
|
@@ -89,6 +89,7 @@ declare const VIDEO_PAUSE_AUTHORITY: {
|
|
|
89
89
|
};
|
|
90
90
|
declare const CONFERENCE_COMMANDS: {
|
|
91
91
|
userInfo: string;
|
|
92
|
+
initialConfig: string;
|
|
92
93
|
};
|
|
93
94
|
declare const VIDEO_QUALITY_LEVELS: {
|
|
94
95
|
ULTRA: number;
|
|
@@ -338,7 +339,8 @@ type BaseState = {
|
|
|
338
339
|
chatButtonUnreadCount: number;
|
|
339
340
|
enableNoiseReduction: boolean;
|
|
340
341
|
sdkPlatform: SDKPlatform;
|
|
341
|
-
|
|
342
|
+
platformVersion?: string | number;
|
|
343
|
+
userAgent?: string;
|
|
342
344
|
previewVideoTrack?: any;
|
|
343
345
|
isMobileBrowser: boolean;
|
|
344
346
|
mainAreaDimension: {
|
|
@@ -373,7 +375,7 @@ type Actions$5 = {
|
|
|
373
375
|
isMobileSDK: () => boolean;
|
|
374
376
|
isMobile: () => boolean;
|
|
375
377
|
};
|
|
376
|
-
declare const useBaseStore:
|
|
378
|
+
declare const useBaseStore: zustand1.UseBoundStore<Omit<Omit<zustand1.StoreApi<BaseState & Actions$5>, "subscribe"> & {
|
|
377
379
|
subscribe: {
|
|
378
380
|
(listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
|
|
379
381
|
<U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -453,7 +455,7 @@ type Actions$4 = {
|
|
|
453
455
|
endConference: () => Promise<void>;
|
|
454
456
|
stopRecording: () => Promise<void>;
|
|
455
457
|
};
|
|
456
|
-
declare const useConferenceStore:
|
|
458
|
+
declare const useConferenceStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
|
|
457
459
|
subscribe: {
|
|
458
460
|
(listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
|
|
459
461
|
<U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -491,7 +493,16 @@ type ConfigStateWeb = {
|
|
|
491
493
|
audioInputDeviceId?: string;
|
|
492
494
|
audioOutputDeviceId?: string;
|
|
493
495
|
videoInputDeviceId?: string;
|
|
496
|
+
hideScreenSharingButton: boolean;
|
|
494
497
|
hideVirtualBackgroundButton: boolean;
|
|
498
|
+
/**
|
|
499
|
+
* @unstable This API may change or be removed in a future release.
|
|
500
|
+
* When enabled, the SDK renders only remote audio elements without any
|
|
501
|
+
* visual UI (no video tiles, controls, or overlays). This allows the
|
|
502
|
+
* host app to provide its own custom UI while the SDK handles the
|
|
503
|
+
* underlying call connection and audio playback.
|
|
504
|
+
*/
|
|
505
|
+
unstable_renderAudioOnly: boolean;
|
|
495
506
|
};
|
|
496
507
|
type ConfigStateBoth = {
|
|
497
508
|
sessionType: SessionType;
|
|
@@ -509,7 +520,6 @@ type ConfigStateBoth = {
|
|
|
509
520
|
hideToggleVideoButton: boolean;
|
|
510
521
|
hideParticipantListButton: boolean;
|
|
511
522
|
hideChatButton: boolean;
|
|
512
|
-
hideScreenSharingButton: boolean;
|
|
513
523
|
hideSessionTimer: boolean;
|
|
514
524
|
hideNetworkIndicator: boolean;
|
|
515
525
|
hideRecordingStatusIndicator: boolean;
|
|
@@ -524,12 +534,13 @@ type ConfigStateBoth = {
|
|
|
524
534
|
enableSpotlightDrag: boolean;
|
|
525
535
|
enableSpotlightSwap: boolean;
|
|
526
536
|
isPeerCall: boolean;
|
|
537
|
+
enableNotifications: boolean;
|
|
527
538
|
};
|
|
528
539
|
type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth;
|
|
529
540
|
type Actions$3 = {
|
|
530
541
|
reset: () => void;
|
|
531
542
|
};
|
|
532
|
-
declare const useConfigStore:
|
|
543
|
+
declare const useConfigStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
|
|
533
544
|
subscribe: {
|
|
534
545
|
(listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
|
|
535
546
|
<U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -681,7 +692,7 @@ type Actions$2 = {
|
|
|
681
692
|
disconnect: () => Promise<void>;
|
|
682
693
|
reset: () => void;
|
|
683
694
|
};
|
|
684
|
-
declare const useConnectionStore:
|
|
695
|
+
declare const useConnectionStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
|
|
685
696
|
subscribe: {
|
|
686
697
|
(listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
|
|
687
698
|
<U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -732,7 +743,7 @@ type Actions$1 = {
|
|
|
732
743
|
getParticipantById: (pid: string) => HumanParticipant | undefined;
|
|
733
744
|
reset: () => void;
|
|
734
745
|
};
|
|
735
|
-
declare const useParticipantStore:
|
|
746
|
+
declare const useParticipantStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
|
|
736
747
|
subscribe: {
|
|
737
748
|
(listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
|
|
738
749
|
<U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -777,7 +788,7 @@ interface ToastActions {
|
|
|
777
788
|
clearAll: () => void;
|
|
778
789
|
reset: () => void;
|
|
779
790
|
}
|
|
780
|
-
declare const useToastStore:
|
|
791
|
+
declare const useToastStore: zustand1.UseBoundStore<zustand1.StoreApi<ToastState & ToastActions>>;
|
|
781
792
|
declare function showToast(params: {
|
|
782
793
|
message: string;
|
|
783
794
|
type?: NotificationType;
|
|
@@ -810,7 +821,7 @@ type Actions = {
|
|
|
810
821
|
updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
|
|
811
822
|
updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
|
|
812
823
|
};
|
|
813
|
-
declare const useTracksStore:
|
|
824
|
+
declare const useTracksStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<TracksState & Actions>, "subscribe"> & {
|
|
814
825
|
subscribe: {
|
|
815
826
|
(listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
|
|
816
827
|
<U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -857,6 +868,9 @@ declare const useIsAudioInputSelectionSupported: () => boolean;
|
|
|
857
868
|
declare const useIsVideoInputSelectionSupported: () => boolean;
|
|
858
869
|
declare const useShouldMirrorLocalVideo: () => boolean;
|
|
859
870
|
//#endregion
|
|
871
|
+
//#region calls-sdk-core/store/utils/reset.d.ts
|
|
872
|
+
declare function resetAllStores(): void;
|
|
873
|
+
//#endregion
|
|
860
874
|
//#region calls-sdk-core/store/utils/switch-camera.d.ts
|
|
861
875
|
declare const switchCamera: () => void;
|
|
862
876
|
//#endregion
|
|
@@ -1020,7 +1034,6 @@ type ValueOf<T> = T[keyof T];
|
|
|
1020
1034
|
type ParticipantRole = ValueOf<typeof PARTICIPANT_ROLE>;
|
|
1021
1035
|
type NotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
1022
1036
|
type SDKPlatform = ValueOf<typeof SDK_PLATFORM>;
|
|
1023
|
-
type WebOSName = 'android' | 'ios' | 'macos' | 'windows' | 'linux' | 'unknown';
|
|
1024
1037
|
interface ITrackOptions {
|
|
1025
1038
|
cameraDeviceId?: string | null;
|
|
1026
1039
|
constraints?: {
|
|
@@ -1302,7 +1315,7 @@ interface TranslationState {
|
|
|
1302
1315
|
translations: Record<string, typeof __json_default_export>;
|
|
1303
1316
|
currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
|
|
1304
1317
|
}
|
|
1305
|
-
declare const useTranslationStore:
|
|
1318
|
+
declare const useTranslationStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
|
|
1306
1319
|
reset: () => void;
|
|
1307
1320
|
setLocale: (locale: CometChatSupportedLocale) => void;
|
|
1308
1321
|
}>, "subscribe"> & {
|