@realtimexsco/live-chat 1.4.19 → 1.5.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/dist/firebase-messaging-sw.js +9 -3
- package/dist/index.cjs +289 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +290 -136
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2013,6 +2013,10 @@ interface CallHistoryResponse {
|
|
|
2013
2013
|
};
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
+
interface CallPeer {
|
|
2017
|
+
name?: string;
|
|
2018
|
+
avatar?: string | null;
|
|
2019
|
+
}
|
|
2016
2020
|
interface CallState {
|
|
2017
2021
|
uiStatus: CallUiStatus;
|
|
2018
2022
|
callId: string | null;
|
|
@@ -2023,8 +2027,12 @@ interface CallState {
|
|
|
2023
2027
|
caller: CallParticipantSummary | null;
|
|
2024
2028
|
participants: string[];
|
|
2025
2029
|
error: string | null;
|
|
2030
|
+
/** Caller side only — the channel being called, for the "Calling {name}" screen. */
|
|
2031
|
+
callee: CallPeer | null;
|
|
2032
|
+
/** Set on transition to in-call. Display-only (duration timer), not billing-accurate. */
|
|
2033
|
+
callStartedAt: number | null;
|
|
2026
2034
|
/** Caller: create the room and start ringing everyone else. */
|
|
2027
|
-
startCall: (conversationId: string, mode: CallMode) => Promise<void>;
|
|
2035
|
+
startCall: (conversationId: string, mode: CallMode, callee?: CallPeer) => Promise<void>;
|
|
2028
2036
|
/** Caller: stop ringing before anyone accepted. */
|
|
2029
2037
|
cancelCall: () => void;
|
|
2030
2038
|
/** Callee: accept the ringing call and fetch a join token. */
|
|
@@ -2041,7 +2049,7 @@ interface CallState {
|
|
|
2041
2049
|
_receiveCancelled: (payload: CallCancelledPayload) => void;
|
|
2042
2050
|
_receiveEnded: (payload: CallEndedPayload) => void;
|
|
2043
2051
|
_receiveBusy: (payload: CallBusyPayload) => void;
|
|
2044
|
-
_receiveMissed: () => void;
|
|
2052
|
+
_receiveMissed: (payload: CallSummary) => void;
|
|
2045
2053
|
}
|
|
2046
2054
|
declare const useCallStore: zustand.UseBoundStore<zustand.StoreApi<CallState>>;
|
|
2047
2055
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2013,6 +2013,10 @@ interface CallHistoryResponse {
|
|
|
2013
2013
|
};
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
|
+
interface CallPeer {
|
|
2017
|
+
name?: string;
|
|
2018
|
+
avatar?: string | null;
|
|
2019
|
+
}
|
|
2016
2020
|
interface CallState {
|
|
2017
2021
|
uiStatus: CallUiStatus;
|
|
2018
2022
|
callId: string | null;
|
|
@@ -2023,8 +2027,12 @@ interface CallState {
|
|
|
2023
2027
|
caller: CallParticipantSummary | null;
|
|
2024
2028
|
participants: string[];
|
|
2025
2029
|
error: string | null;
|
|
2030
|
+
/** Caller side only — the channel being called, for the "Calling {name}" screen. */
|
|
2031
|
+
callee: CallPeer | null;
|
|
2032
|
+
/** Set on transition to in-call. Display-only (duration timer), not billing-accurate. */
|
|
2033
|
+
callStartedAt: number | null;
|
|
2026
2034
|
/** Caller: create the room and start ringing everyone else. */
|
|
2027
|
-
startCall: (conversationId: string, mode: CallMode) => Promise<void>;
|
|
2035
|
+
startCall: (conversationId: string, mode: CallMode, callee?: CallPeer) => Promise<void>;
|
|
2028
2036
|
/** Caller: stop ringing before anyone accepted. */
|
|
2029
2037
|
cancelCall: () => void;
|
|
2030
2038
|
/** Callee: accept the ringing call and fetch a join token. */
|
|
@@ -2041,7 +2049,7 @@ interface CallState {
|
|
|
2041
2049
|
_receiveCancelled: (payload: CallCancelledPayload) => void;
|
|
2042
2050
|
_receiveEnded: (payload: CallEndedPayload) => void;
|
|
2043
2051
|
_receiveBusy: (payload: CallBusyPayload) => void;
|
|
2044
|
-
_receiveMissed: () => void;
|
|
2052
|
+
_receiveMissed: (payload: CallSummary) => void;
|
|
2045
2053
|
}
|
|
2046
2054
|
declare const useCallStore: zustand.UseBoundStore<zustand.StoreApi<CallState>>;
|
|
2047
2055
|
|