@ethora/chat-component 25.3.8 → 25.3.10
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/Modals/ChatProfileModal/DeleteChatModal.d.ts +5 -1
- package/dist/components/Modals/NewChatModal/ModalContent.d.ts +30 -0
- package/dist/components/Modals/NewChatModal/UpdNewChatModal.d.ts +4 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Toast/Toast.d.ts +11 -0
- package/dist/components/Toast/index.d.ts +2 -3
- package/dist/context/ToastContext.d.ts +11 -0
- package/dist/hooks/useGetNewArchRoom.d.ts +2 -0
- package/dist/hooks/useLogout.d.ts +5 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6249 -6141
- package/dist/main.js.map +1 -1
- package/dist/networking/xmppClient.d.ts +1 -0
- package/dist/types/types.d.ts +10 -0
- package/package.json +1 -1
- package/dist/context/toastProvider.d.ts +0 -0
|
@@ -16,6 +16,7 @@ export declare class XmppClient implements XmppClientInterface {
|
|
|
16
16
|
checkOnline(): boolean;
|
|
17
17
|
constructor(username: string, password: string, xmppSettings?: xmppSettingsInterface);
|
|
18
18
|
initializeClient(): Promise<void>;
|
|
19
|
+
disconnect(): Promise<void>;
|
|
19
20
|
attachEventListeners(): void;
|
|
20
21
|
reconnect(): Promise<void>;
|
|
21
22
|
close(): Promise<void>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -264,6 +264,8 @@ export interface IConfig {
|
|
|
264
264
|
disableSentLogic?: boolean;
|
|
265
265
|
initBeforeLoad?: boolean;
|
|
266
266
|
newArch?: boolean;
|
|
267
|
+
logoutCallback?: () => Promise<void>;
|
|
268
|
+
qrUrl?: string;
|
|
267
269
|
}
|
|
268
270
|
type PartialRoomWithMandatoryKeys = Partial<IRoom> & Pick<IRoom, 'jid' | 'title'>;
|
|
269
271
|
export interface xmppSettingsInterface {
|
|
@@ -379,6 +381,7 @@ export interface XmppClientInterface {
|
|
|
379
381
|
createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
|
|
380
382
|
sendMessageReactionStanza(messageId: string, roomJid: string, reactionsList: string[], reactionSymbol?: any): void;
|
|
381
383
|
getRoomsPagedStanza(maxResults: number, after: string | null): void;
|
|
384
|
+
disconnect?(): void;
|
|
382
385
|
}
|
|
383
386
|
export type Iso639_1Codes = 'en' | 'es' | 'pt' | 'ht' | 'zh';
|
|
384
387
|
export interface Language {
|
|
@@ -403,4 +406,11 @@ export interface LastMessage extends Omit<Partial<IMessage>, 'date'> {
|
|
|
403
406
|
mimetype?: string;
|
|
404
407
|
originalName?: string;
|
|
405
408
|
}
|
|
409
|
+
export type ChatAccessOption = {
|
|
410
|
+
name: 'Public';
|
|
411
|
+
id: 'public';
|
|
412
|
+
} | {
|
|
413
|
+
name: 'Members-only';
|
|
414
|
+
id: 'group';
|
|
415
|
+
};
|
|
406
416
|
export {};
|
package/package.json
CHANGED
|
File without changes
|