@cometchat/calls-sdk-react-native 5.0.0-beta.4 → 5.0.0-beta.5
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/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zustand1 from "zustand";
|
|
3
3
|
import * as zustand_middleware0 from "zustand/middleware";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import JitsiMeetJS from "lib-jitsi-meet";
|
|
@@ -369,7 +369,7 @@ type Actions$5 = {
|
|
|
369
369
|
isMobileSDK: () => boolean;
|
|
370
370
|
isMobile: () => boolean;
|
|
371
371
|
};
|
|
372
|
-
declare const useBaseStore:
|
|
372
|
+
declare const useBaseStore: zustand1.UseBoundStore<Omit<Omit<zustand1.StoreApi<BaseState & Actions$5>, "subscribe"> & {
|
|
373
373
|
subscribe: {
|
|
374
374
|
(listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
|
|
375
375
|
<U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -449,7 +449,7 @@ type Actions$4 = {
|
|
|
449
449
|
endConference: () => Promise<void>;
|
|
450
450
|
stopRecording: () => Promise<void>;
|
|
451
451
|
};
|
|
452
|
-
declare const useConferenceStore:
|
|
452
|
+
declare const useConferenceStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
|
|
453
453
|
subscribe: {
|
|
454
454
|
(listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
|
|
455
455
|
<U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -525,7 +525,7 @@ type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & Co
|
|
|
525
525
|
type Actions$3 = {
|
|
526
526
|
reset: () => void;
|
|
527
527
|
};
|
|
528
|
-
declare const useConfigStore:
|
|
528
|
+
declare const useConfigStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
|
|
529
529
|
subscribe: {
|
|
530
530
|
(listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
|
|
531
531
|
<U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -677,7 +677,7 @@ type Actions$2 = {
|
|
|
677
677
|
disconnect: () => Promise<void>;
|
|
678
678
|
reset: () => void;
|
|
679
679
|
};
|
|
680
|
-
declare const useConnectionStore:
|
|
680
|
+
declare const useConnectionStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
|
|
681
681
|
subscribe: {
|
|
682
682
|
(listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
|
|
683
683
|
<U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -728,7 +728,7 @@ type Actions$1 = {
|
|
|
728
728
|
getParticipantById: (pid: string) => HumanParticipant | undefined;
|
|
729
729
|
reset: () => void;
|
|
730
730
|
};
|
|
731
|
-
declare const useParticipantStore:
|
|
731
|
+
declare const useParticipantStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
|
|
732
732
|
subscribe: {
|
|
733
733
|
(listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
|
|
734
734
|
<U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -774,7 +774,7 @@ type Actions = {
|
|
|
774
774
|
updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
|
|
775
775
|
updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
|
|
776
776
|
};
|
|
777
|
-
declare const useTracksStore:
|
|
777
|
+
declare const useTracksStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<TracksState & Actions>, "subscribe"> & {
|
|
778
778
|
subscribe: {
|
|
779
779
|
(listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
|
|
780
780
|
<U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1260,7 +1260,7 @@ interface TranslationState {
|
|
|
1260
1260
|
translations: Record<string, typeof __json_default_export>;
|
|
1261
1261
|
currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
|
|
1262
1262
|
}
|
|
1263
|
-
declare const useTranslationStore:
|
|
1263
|
+
declare const useTranslationStore: zustand1.UseBoundStore<Omit<zustand1.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
|
|
1264
1264
|
reset: () => void;
|
|
1265
1265
|
setLocale: (locale: CometChatSupportedLocale) => void;
|
|
1266
1266
|
}>, "subscribe"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as zustand0 from "zustand";
|
|
2
2
|
import * as zustand_middleware0 from "zustand/middleware";
|
|
3
3
|
import { AppStateStatus } from "react-native";
|
|
4
4
|
import JitsiMeetJS from "lib-jitsi-meet";
|
|
@@ -369,7 +369,7 @@ type Actions$5 = {
|
|
|
369
369
|
isMobileSDK: () => boolean;
|
|
370
370
|
isMobile: () => boolean;
|
|
371
371
|
};
|
|
372
|
-
declare const useBaseStore:
|
|
372
|
+
declare const useBaseStore: zustand0.UseBoundStore<Omit<Omit<zustand0.StoreApi<BaseState & Actions$5>, "subscribe"> & {
|
|
373
373
|
subscribe: {
|
|
374
374
|
(listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
|
|
375
375
|
<U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -449,7 +449,7 @@ type Actions$4 = {
|
|
|
449
449
|
endConference: () => Promise<void>;
|
|
450
450
|
stopRecording: () => Promise<void>;
|
|
451
451
|
};
|
|
452
|
-
declare const useConferenceStore:
|
|
452
|
+
declare const useConferenceStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
|
|
453
453
|
subscribe: {
|
|
454
454
|
(listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
|
|
455
455
|
<U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -525,7 +525,7 @@ type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & Co
|
|
|
525
525
|
type Actions$3 = {
|
|
526
526
|
reset: () => void;
|
|
527
527
|
};
|
|
528
|
-
declare const useConfigStore:
|
|
528
|
+
declare const useConfigStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
|
|
529
529
|
subscribe: {
|
|
530
530
|
(listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
|
|
531
531
|
<U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -677,7 +677,7 @@ type Actions$2 = {
|
|
|
677
677
|
disconnect: () => Promise<void>;
|
|
678
678
|
reset: () => void;
|
|
679
679
|
};
|
|
680
|
-
declare const useConnectionStore:
|
|
680
|
+
declare const useConnectionStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
|
|
681
681
|
subscribe: {
|
|
682
682
|
(listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
|
|
683
683
|
<U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -728,7 +728,7 @@ type Actions$1 = {
|
|
|
728
728
|
getParticipantById: (pid: string) => HumanParticipant | undefined;
|
|
729
729
|
reset: () => void;
|
|
730
730
|
};
|
|
731
|
-
declare const useParticipantStore:
|
|
731
|
+
declare const useParticipantStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
|
|
732
732
|
subscribe: {
|
|
733
733
|
(listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
|
|
734
734
|
<U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -774,7 +774,7 @@ type Actions = {
|
|
|
774
774
|
updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
|
|
775
775
|
updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
|
|
776
776
|
};
|
|
777
|
-
declare const useTracksStore:
|
|
777
|
+
declare const useTracksStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<TracksState & Actions>, "subscribe"> & {
|
|
778
778
|
subscribe: {
|
|
779
779
|
(listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
|
|
780
780
|
<U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1260,7 +1260,7 @@ interface TranslationState {
|
|
|
1260
1260
|
translations: Record<string, typeof __json_default_export>;
|
|
1261
1261
|
currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
|
|
1262
1262
|
}
|
|
1263
|
-
declare const useTranslationStore:
|
|
1263
|
+
declare const useTranslationStore: zustand0.UseBoundStore<Omit<zustand0.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
|
|
1264
1264
|
reset: () => void;
|
|
1265
1265
|
setLocale: (locale: CometChatSupportedLocale) => void;
|
|
1266
1266
|
}>, "subscribe"> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/calls-sdk-react-native",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.5",
|
|
4
4
|
"description": "CometChat Calls SDK for React Native provides voice and video calling capabilities for React Native applications.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,9 +13,7 @@
|
|
|
13
13
|
"cometchat-calls-sdk-react-native.podspec"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"devDependencies": {},
|
|
18
|
-
"peerDependencies": {
|
|
16
|
+
"dependencies": {
|
|
19
17
|
"@xmldom/xmldom": "^0.8.11",
|
|
20
18
|
"abab": "^2.0.6",
|
|
21
19
|
"clsx": "^2.1.1",
|
|
@@ -24,6 +22,8 @@
|
|
|
24
22
|
"valibot": "^1.2.0",
|
|
25
23
|
"lib-jitsi-meet": "https://github.com/jitsi/lib-jitsi-meet/releases/download/v1790.0.0+311766e3/lib-jitsi-meet.tgz"
|
|
26
24
|
},
|
|
25
|
+
"devDependencies": {},
|
|
26
|
+
"peerDependencies": {},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=18"
|
|
29
29
|
},
|