@ethora/chat-component 26.10.3 → 26.10.4

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/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { br as a, bs as r, bt as b, bu as o, bv as t, bw as u, bx as i, by as p, bz as h, bA as n, bB as d, i as l, bC as y, S as I, bD as T, bE as f, bF as m, bG as R, bH as g, bI as c, bJ as C, bK as A, bL as E, aq as F, ar as M, bM as Q, bN as k } from "./main-CghdNDlB.js";
1
+ import { br as a, bs as r, bt as b, bu as o, bv as t, bw as u, bx as i, by as p, bz as h, bA as n, bB as d, i as l, bC as y, S as I, bD as T, bE as f, bF as m, bG as R, bH as g, bI as c, bJ as C, bK as A, bL as E, aq as F, ar as M, bM as Q, bN as k } from "./main-DbepSYi_.js";
2
2
  export {
3
3
  a as AuthTestIds,
4
4
  r as Chat,
@@ -14,6 +14,27 @@ export declare function unmuteRoom(chatName: string): Promise<{
14
14
  chatName: string;
15
15
  muted: boolean;
16
16
  } | undefined>;
17
+ export declare function leaveRoom(chatName: string): Promise<{
18
+ chatName: string;
19
+ left: boolean;
20
+ } | undefined>;
21
+ export declare function blockUser(peer: string): Promise<{
22
+ user: string;
23
+ blocked: boolean;
24
+ } | undefined>;
25
+ export declare function unblockUser(peer: string): Promise<{
26
+ user: string;
27
+ blocked: boolean;
28
+ } | undefined>;
29
+ export interface BlockedUser {
30
+ _id: string;
31
+ firstName?: string;
32
+ lastName?: string;
33
+ profileImage?: string;
34
+ xmppUsername?: string;
35
+ createdAt?: string;
36
+ }
37
+ export declare function getBlockedUsers(): Promise<BlockedUser[]>;
17
38
  export declare function postRoom(data: PostRoom): Promise<any>;
18
39
  export declare function postPrivateRoom(username: string, e2ee?: boolean): Promise<ApiRoom>;
19
40
  export declare function postReportRoom(data: PostReportRoom): Promise<any>;
@@ -361,6 +361,13 @@ export interface IConfig {
361
361
  * outright even then, e.g. because it renders its own mute control.
362
362
  */
363
363
  disableRoomMute?: boolean;
364
+ /**
365
+ * Hide the "Block user" action from a 1-1 private chat's header menu. Block
366
+ * is only ever offered for private rooms with a resolvable peer; this flag
367
+ * lets a host hide it outright (e.g. it renders its own block control, or
368
+ * the backend predates the /v1/chats/blocked route).
369
+ */
370
+ disableUserBlock?: boolean;
364
371
  defaultRooms?: ConfigRoom[];
365
372
  /**
366
373
  * The "Files" tab shown in the sidebar alongside "Chats". Backed by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethora/chat-component",
3
- "version": "26.10.3",
3
+ "version": "26.10.4",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",