@ethora/chat-component 26.5.10 → 26.5.11
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/components/MainComponents/ProfileImagePlaceholder.d.ts +2 -0
- package/dist/components/Notification/NotificationPermissionBanner.d.ts +16 -0
- package/dist/helpers/callLogMessage.d.ts +8 -0
- package/dist/hooks/useRoomPresence.d.ts +10 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +12817 -12495
- package/dist/main.js.map +1 -1
- package/dist/roomStore/callSlice.d.ts +1 -0
- package/dist/roomStore/roomsSlice.d.ts +8 -1
- package/dist/types/models/config.model.d.ts +40 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export interface CallState {
|
|
|
13
13
|
token: string | null;
|
|
14
14
|
error: string | null;
|
|
15
15
|
startedAt: number | null;
|
|
16
|
+
connectedAt: number | null;
|
|
16
17
|
}
|
|
17
18
|
export declare const startOutgoingCall: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
18
19
|
roomJid: string;
|
|
@@ -9,6 +9,7 @@ interface RoomMessagesState {
|
|
|
9
9
|
editAction?: EditAction;
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
usersSet: Record<string, RoomMember>;
|
|
12
|
+
presenceByRoom: Record<string, string[]>;
|
|
12
13
|
reportRoom: {
|
|
13
14
|
isOpen: boolean;
|
|
14
15
|
};
|
|
@@ -67,7 +68,13 @@ export declare const addRoom: import('@reduxjs/toolkit').ActionCreatorWithOption
|
|
|
67
68
|
chatJID?: string;
|
|
68
69
|
}, "roomMessages/setRoomNoMessages">, setCurrentRoom: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
69
70
|
roomJID: string | null;
|
|
70
|
-
}, "roomMessages/setCurrentRoom">,
|
|
71
|
+
}, "roomMessages/setCurrentRoom">, setMemberOnline: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
72
|
+
roomJID: string;
|
|
73
|
+
xmppUsername: string;
|
|
74
|
+
}, "roomMessages/setMemberOnline">, setMemberOffline: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
75
|
+
roomJID: string;
|
|
76
|
+
xmppUsername: string;
|
|
77
|
+
}, "roomMessages/setMemberOffline">, setChatUiVisible: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean, "roomMessages/setChatUiVisible">, setRoomRole: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
71
78
|
chatJID: string;
|
|
72
79
|
role: string;
|
|
73
80
|
}, "roomMessages/setRoomRole">, setReactions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<ReactionAction, "roomMessages/setReactions">, setLogoutState: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomMessages/setLogoutState">, setActiveMessage: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<{
|
|
@@ -361,6 +361,46 @@ export interface IConfig {
|
|
|
361
361
|
iconPath?: string;
|
|
362
362
|
badgePath?: string;
|
|
363
363
|
softAsk?: boolean;
|
|
364
|
+
/**
|
|
365
|
+
* In-app banner that nudges the user to turn on browser notifications.
|
|
366
|
+
* Off by default. The banner renders one of two states automatically from
|
|
367
|
+
* the current `Notification.permission`:
|
|
368
|
+
* - "default" (never asked) → an "Enable notifications" card with a button
|
|
369
|
+
* that triggers the browser permission prompt;
|
|
370
|
+
* - "denied" (blocked) → a "Notifications are blocked" card explaining how
|
|
371
|
+
* to re-allow it from the browser's site settings.
|
|
372
|
+
* It hides itself entirely once permission is "granted", when the browser
|
|
373
|
+
* has no Notification API, or when `pushNotifications.enabled` is not true.
|
|
374
|
+
* Every label is overridable so it can be localised.
|
|
375
|
+
*/
|
|
376
|
+
permissionBanner?: {
|
|
377
|
+
/** Master switch for the banner. Default false (opt-in). */
|
|
378
|
+
enabled?: boolean;
|
|
379
|
+
/** Show the prompt while permission is "default". Default true. */
|
|
380
|
+
showWhenDefault?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Show the notice while permission is "denied". Default false: a blocked
|
|
383
|
+
* state can only be fixed by hand in the browser's site settings, so by
|
|
384
|
+
* default we don't nag. Set true to opt back into the reminder.
|
|
385
|
+
*/
|
|
386
|
+
showWhenBlocked?: boolean;
|
|
387
|
+
/** Render a dismiss (×) control. Default true. Dismissal lasts the tab session. */
|
|
388
|
+
dismissible?: boolean;
|
|
389
|
+
/** Where the fixed banner is anchored. Default "bottom-right". */
|
|
390
|
+
position?: 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
|
|
391
|
+
/** Title for the "enable" state. Default "Enable notifications". */
|
|
392
|
+
enableTitle?: string;
|
|
393
|
+
/** Description for the "enable" state. */
|
|
394
|
+
enableDescription?: string;
|
|
395
|
+
/** Button label for the "enable" state. Default "Enable notifications". */
|
|
396
|
+
enableButtonLabel?: string;
|
|
397
|
+
/** Title for the "blocked" state. Default "Notifications are blocked". */
|
|
398
|
+
blockedTitle?: string;
|
|
399
|
+
/** Description for the "blocked" state. */
|
|
400
|
+
blockedDescription?: string;
|
|
401
|
+
/** Inline style overrides merged onto the banner container. */
|
|
402
|
+
style?: React.CSSProperties;
|
|
403
|
+
};
|
|
364
404
|
onClick?: (params: {
|
|
365
405
|
roomJID?: string;
|
|
366
406
|
messageId?: string;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.
|
|
1
|
+
export declare const ETHORA_CHAT_COMPONENT_VERSION = "26.5.11";
|