@realtimexsco/live-chat 1.5.1 → 1.5.3
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.cjs +351 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +353 -283
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1921,7 +1921,7 @@ type AdminFeatureKey = "audioCall" | "videoCall" | "pushNotification" | "blockUs
|
|
|
1921
1921
|
*/
|
|
1922
1922
|
declare function useAdminFeatureGate(feature: AdminFeatureKey): CallFeatureGate;
|
|
1923
1923
|
|
|
1924
|
-
declare const CallOverlay: () => React__default.
|
|
1924
|
+
declare const CallOverlay: () => React__default.ReactPortal | null;
|
|
1925
1925
|
|
|
1926
1926
|
interface IncomingCallDialogProps {
|
|
1927
1927
|
/** Looped while the dialog is open. Omit for silent ringing. */
|
|
@@ -2043,6 +2043,15 @@ interface CallState {
|
|
|
2043
2043
|
endCall: () => void;
|
|
2044
2044
|
/** Drop back to idle without notifying anyone (e.g. after a fatal error). */
|
|
2045
2045
|
reset: () => void;
|
|
2046
|
+
/**
|
|
2047
|
+
* Tell the server this call is over WITHOUT touching local UI state —
|
|
2048
|
+
* for when the in-call session itself crashed (e.g. VideoSDK failed to
|
|
2049
|
+
* load) and the error needs to stay on screen. The backend already
|
|
2050
|
+
* marked this call ongoing/this user busy once accepted (CALLS_API.md
|
|
2051
|
+
* §3.3); without this, that busy lock would stick until the caller/callee
|
|
2052
|
+
* explicitly closes the error (endCall()) or the 4h Redis TTL expires.
|
|
2053
|
+
*/
|
|
2054
|
+
notifyServerCallFailed: () => void;
|
|
2046
2055
|
_receiveIncoming: (payload: CallIncomingPayload) => void;
|
|
2047
2056
|
_receiveAccepted: (payload: CallAcceptedPayload) => void;
|
|
2048
2057
|
_receiveRejected: (payload: CallRejectedPayload) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1921,7 +1921,7 @@ type AdminFeatureKey = "audioCall" | "videoCall" | "pushNotification" | "blockUs
|
|
|
1921
1921
|
*/
|
|
1922
1922
|
declare function useAdminFeatureGate(feature: AdminFeatureKey): CallFeatureGate;
|
|
1923
1923
|
|
|
1924
|
-
declare const CallOverlay: () => React__default.
|
|
1924
|
+
declare const CallOverlay: () => React__default.ReactPortal | null;
|
|
1925
1925
|
|
|
1926
1926
|
interface IncomingCallDialogProps {
|
|
1927
1927
|
/** Looped while the dialog is open. Omit for silent ringing. */
|
|
@@ -2043,6 +2043,15 @@ interface CallState {
|
|
|
2043
2043
|
endCall: () => void;
|
|
2044
2044
|
/** Drop back to idle without notifying anyone (e.g. after a fatal error). */
|
|
2045
2045
|
reset: () => void;
|
|
2046
|
+
/**
|
|
2047
|
+
* Tell the server this call is over WITHOUT touching local UI state —
|
|
2048
|
+
* for when the in-call session itself crashed (e.g. VideoSDK failed to
|
|
2049
|
+
* load) and the error needs to stay on screen. The backend already
|
|
2050
|
+
* marked this call ongoing/this user busy once accepted (CALLS_API.md
|
|
2051
|
+
* §3.3); without this, that busy lock would stick until the caller/callee
|
|
2052
|
+
* explicitly closes the error (endCall()) or the 4h Redis TTL expires.
|
|
2053
|
+
*/
|
|
2054
|
+
notifyServerCallFailed: () => void;
|
|
2046
2055
|
_receiveIncoming: (payload: CallIncomingPayload) => void;
|
|
2047
2056
|
_receiveAccepted: (payload: CallAcceptedPayload) => void;
|
|
2048
2057
|
_receiveRejected: (payload: CallRejectedPayload) => void;
|