@cometchat/calls-sdk-react-native 5.0.0-beta.14 → 5.0.0-beta.15
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 +9 -9
- package/dist/index.js +1 -11402
- package/dist/index.mjs +1 -11370
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zustand3 from "zustand";
|
|
3
3
|
import * as zustand_middleware0 from "zustand/middleware";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import JitsiMeetJS from "@cometchat/calls-lib-webrtc";
|
|
@@ -375,7 +375,7 @@ type Actions$5 = {
|
|
|
375
375
|
isMobileSDK: () => boolean;
|
|
376
376
|
isMobile: () => boolean;
|
|
377
377
|
};
|
|
378
|
-
declare const useBaseStore:
|
|
378
|
+
declare const useBaseStore: zustand3.UseBoundStore<Omit<Omit<zustand3.StoreApi<BaseState & Actions$5>, "subscribe"> & {
|
|
379
379
|
subscribe: {
|
|
380
380
|
(listener: (selectedState: BaseState & Actions$5, previousSelectedState: BaseState & Actions$5) => void): () => void;
|
|
381
381
|
<U>(selector: (state: BaseState & Actions$5) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -455,7 +455,7 @@ type Actions$4 = {
|
|
|
455
455
|
endConference: () => Promise<void>;
|
|
456
456
|
stopRecording: () => Promise<void>;
|
|
457
457
|
};
|
|
458
|
-
declare const useConferenceStore:
|
|
458
|
+
declare const useConferenceStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<ConferenceState & Actions$4>, "subscribe"> & {
|
|
459
459
|
subscribe: {
|
|
460
460
|
(listener: (selectedState: ConferenceState & Actions$4, previousSelectedState: ConferenceState & Actions$4) => void): () => void;
|
|
461
461
|
<U>(selector: (state: ConferenceState & Actions$4) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -540,7 +540,7 @@ type ConfigState = ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & Co
|
|
|
540
540
|
type Actions$3 = {
|
|
541
541
|
reset: () => void;
|
|
542
542
|
};
|
|
543
|
-
declare const useConfigStore:
|
|
543
|
+
declare const useConfigStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3>, "subscribe"> & {
|
|
544
544
|
subscribe: {
|
|
545
545
|
(listener: (selectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3, previousSelectedState: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => void): () => void;
|
|
546
546
|
<U>(selector: (state: ConfigStateInternal & ConfigStateMobile & ConfigStateWeb & ConfigStateBoth & Actions$3) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -692,7 +692,7 @@ type Actions$2 = {
|
|
|
692
692
|
disconnect: () => Promise<void>;
|
|
693
693
|
reset: () => void;
|
|
694
694
|
};
|
|
695
|
-
declare const useConnectionStore:
|
|
695
|
+
declare const useConnectionStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<ConnectionState & Actions$2>, "subscribe"> & {
|
|
696
696
|
subscribe: {
|
|
697
697
|
(listener: (selectedState: ConnectionState & Actions$2, previousSelectedState: ConnectionState & Actions$2) => void): () => void;
|
|
698
698
|
<U>(selector: (state: ConnectionState & Actions$2) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -743,7 +743,7 @@ type Actions$1 = {
|
|
|
743
743
|
getParticipantById: (pid: string) => HumanParticipant | undefined;
|
|
744
744
|
reset: () => void;
|
|
745
745
|
};
|
|
746
|
-
declare const useParticipantStore:
|
|
746
|
+
declare const useParticipantStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<ParticipantsState & Actions$1>, "subscribe"> & {
|
|
747
747
|
subscribe: {
|
|
748
748
|
(listener: (selectedState: ParticipantsState & Actions$1, previousSelectedState: ParticipantsState & Actions$1) => void): () => void;
|
|
749
749
|
<U>(selector: (state: ParticipantsState & Actions$1) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -788,7 +788,7 @@ interface ToastActions {
|
|
|
788
788
|
clearAll: () => void;
|
|
789
789
|
reset: () => void;
|
|
790
790
|
}
|
|
791
|
-
declare const useToastStore:
|
|
791
|
+
declare const useToastStore: zustand3.UseBoundStore<zustand3.StoreApi<ToastState & ToastActions>>;
|
|
792
792
|
declare function showToast(params: {
|
|
793
793
|
message: string;
|
|
794
794
|
type?: NotificationType;
|
|
@@ -821,7 +821,7 @@ type Actions = {
|
|
|
821
821
|
updateTrack: (originalTrack: any, updatedTrack: Partial<Track>) => void;
|
|
822
822
|
updateLocalTrack: (mediaType: MediaType, updatedTrack: Partial<Track>) => void;
|
|
823
823
|
};
|
|
824
|
-
declare const useTracksStore:
|
|
824
|
+
declare const useTracksStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<TracksState & Actions>, "subscribe"> & {
|
|
825
825
|
subscribe: {
|
|
826
826
|
(listener: (selectedState: TracksState & Actions, previousSelectedState: TracksState & Actions) => void): () => void;
|
|
827
827
|
<U>(selector: (state: TracksState & Actions) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1312,7 +1312,7 @@ interface TranslationState {
|
|
|
1312
1312
|
translations: Record<string, typeof __json_default_export>;
|
|
1313
1313
|
currentLocale: CometChatSupportedLocale | Omit<string, CometChatSupportedLocale>;
|
|
1314
1314
|
}
|
|
1315
|
-
declare const useTranslationStore:
|
|
1315
|
+
declare const useTranslationStore: zustand3.UseBoundStore<Omit<zustand3.StoreApi<Omit<TranslationState, "reset" | "setLocale"> & {
|
|
1316
1316
|
reset: () => void;
|
|
1317
1317
|
setLocale: (locale: CometChatSupportedLocale) => void;
|
|
1318
1318
|
}>, "subscribe"> & {
|