@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.
@@ -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>;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.03.08",
3
+ "version": "25.03.10",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
File without changes