@ethora/chat-component 26.3.3 → 26.3.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.
|
@@ -15,6 +15,7 @@ declare const onGetRoomInfo: (stanza: Element) => void;
|
|
|
15
15
|
declare const onGetLastMessageArchive: (stanza: Element) => void;
|
|
16
16
|
declare const onNewRoomCreated: (stanza: Element, xmpp: any) => void;
|
|
17
17
|
declare const onGetChatRooms: (stanza: Element, xmpp: any) => void;
|
|
18
|
+
declare const onRoomMembershipChange: (stanza: Element) => void;
|
|
18
19
|
declare const onRoomKicked: (stanza: Element) => Promise<void>;
|
|
19
20
|
declare const onMessageError: (stanza: Element, client: XmppClient) => Promise<void>;
|
|
20
21
|
export type XMPPErrorInfo = {
|
|
@@ -29,4 +30,4 @@ export type XMPPErrorInfo = {
|
|
|
29
30
|
export declare const handleErrorMessageStanza: (stanza: Element) => XMPPErrorInfo | null;
|
|
30
31
|
declare const onUserUpdate: (stanza: Element) => Promise<void>;
|
|
31
32
|
declare const onChatUpdate: (stanza: Element) => Promise<void>;
|
|
32
|
-
export { onRealtimeMessage, onMessageHistory, onPresenceInRoom, onReactionHistory, onGetLastMessageArchive, handleComposing, onGetChatRooms, onNewRoomCreated, onGetMembers, onGetRoomInfo, onDeleteMessage, onEditMessage, onReactionMessage, onChatInvite, onRoomKicked, onMessageError, onUserUpdate, onChatUpdate, };
|
|
33
|
+
export { onRealtimeMessage, onMessageHistory, onPresenceInRoom, onReactionHistory, onGetLastMessageArchive, handleComposing, onGetChatRooms, onNewRoomCreated, onGetMembers, onGetRoomInfo, onDeleteMessage, onEditMessage, onReactionMessage, onChatInvite, onRoomKicked, onRoomMembershipChange, onMessageError, onUserUpdate, onChatUpdate, };
|
|
@@ -142,6 +142,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
142
142
|
createRoomStanza(title: string, description: string): Promise<string>;
|
|
143
143
|
inviteRoomRequestStanza(to: string, roomJid: string): Promise<void>;
|
|
144
144
|
leaveTheRoomStanza: (roomJID: string) => void;
|
|
145
|
+
private isValidMucRoomJid;
|
|
145
146
|
private ensureRoomPresence;
|
|
146
147
|
presenceInRoomStanza: (roomJID: string, settleDelay?: number, timeoutMs?: number, waitForJoin?: boolean) => Promise<boolean>;
|
|
147
148
|
prioritizeRoomPresence: (roomJID: string) => Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethora/chat-component",
|
|
3
|
-
"version": "26.3.
|
|
3
|
+
"version": "26.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
"vite": "^7.0.0",
|
|
70
70
|
"vite-plugin-dts": "^4.5.4"
|
|
71
71
|
},
|
|
72
|
+
"overrides": {
|
|
73
|
+
"csstype": "3.1.3"
|
|
74
|
+
},
|
|
72
75
|
"description": "1. npm create vite@latest 2. select name of project, select type (react/js) 3. cd project-name 4. npm i 5. npm i @ethora/chat-component 6. go to file src/App.tsx and replace it with this code",
|
|
73
76
|
"directories": {
|
|
74
77
|
"lib": "lib"
|