@ethora/chat-component 25.3.9 → 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>;
@@ -381,6 +381,7 @@ export interface XmppClientInterface {
381
381
  createPrivateRoomStanza(title: string, description: string, to: string): Promise<string>;
382
382
  sendMessageReactionStanza(messageId: string, roomJid: string, reactionsList: string[], reactionSymbol?: any): void;
383
383
  getRoomsPagedStanza(maxResults: number, after: string | null): void;
384
+ disconnect?(): void;
384
385
  }
385
386
  export type Iso639_1Codes = 'en' | 'es' | 'pt' | 'ht' | 'zh';
386
387
  export interface Language {
@@ -405,4 +406,11 @@ export interface LastMessage extends Omit<Partial<IMessage>, 'date'> {
405
406
  mimetype?: string;
406
407
  originalName?: string;
407
408
  }
409
+ export type ChatAccessOption = {
410
+ name: 'Public';
411
+ id: 'public';
412
+ } | {
413
+ name: 'Members-only';
414
+ id: 'group';
415
+ };
408
416
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "25.03.09",
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