@ethora/chat-component 26.10.5 → 26.10.6
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/README.md +18 -1
- package/dist/{ChatProfileModal-Dw7pPDv8.js → ChatProfileModal-OJCKwdNp.js} +3 -3
- package/dist/{FilePreviewModal-CEcb5HZ2.js → FilePreviewModal-DwNUEHei.js} +1 -1
- package/dist/{ManageDataModal-Qma0dQja.js → ManageDataModal-CaQ2VBPn.js} +2 -2
- package/dist/{MarkdownBody-DiVdEIJH.js → MarkdownBody-BeoG2cpo.js} +1 -1
- package/dist/{MessageSearchModal-DVJTW9WM.js → MessageSearchModal-DMw9o49-.js} +2 -2
- package/dist/{PublicChatsModal-CX1qZbEc.js → PublicChatsModal-CWdYILv_.js} +2 -2
- package/dist/{SideDrawer-BzfNGNbq.js → SideDrawer-Cl-vbuIG.js} +1 -1
- package/dist/{UserProfileModal-DdW_nEsM.js → UserProfileModal-B8KtGnwZ.js} +3 -3
- package/dist/{UserSettingsModal-DdbURRR3.js → UserSettingsModal-DgCAHmNh.js} +2 -2
- package/dist/{VideoCallOverlay-D1lGzbw3.js → VideoCallOverlay-Cq2cECWj.js} +1 -1
- package/dist/{VisibilityModal-yGZ0eOJx.js → VisibilityModal-D7vqGbrA.js} +2 -2
- package/dist/components/styled/SendInput.d.ts +3 -2
- package/dist/{handleCopyClick-C-w304_U.js → handleCopyClick-Crn2jEEu.js} +1 -1
- package/dist/{main-Cdwk7Rjj.js → main-36gqdbJ8.js} +6547 -6523
- package/dist/main.js +1 -1
- package/dist/types/models/config.model.d.ts +35 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bs as a, bt as r, bu as b, bv as o, bw as t, bx as u, by as i, bz as p, bA as h, bB as n, bC as d, i as l, bD as y, S as I, bE as T, bF as f, bG as m, bH as R, bI as g, bJ as c, bK as C, bL as A, bM as E, aq as F, ar as M, bN as Q, bO as k } from "./main-
|
|
1
|
+
import { bs as a, bt as r, bu as b, bv as o, bw as t, bx as u, by as i, bz as p, bA as h, bB as n, bC as d, i as l, bD as y, S as I, bE as T, bF as f, bG as m, bH as R, bI as g, bJ as c, bK as C, bL as A, bM as E, aq as F, ar as M, bN as Q, bO as k } from "./main-36gqdbJ8.js";
|
|
2
2
|
export {
|
|
3
3
|
a as AuthTestIds,
|
|
4
4
|
r as Chat,
|
|
@@ -215,6 +215,27 @@ export interface IConfig {
|
|
|
215
215
|
maxFileSizeMb?: number;
|
|
216
216
|
/** `accept` attribute handed to the file picker. Omit to allow anything. */
|
|
217
217
|
accept?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Where the text typed with the files goes. Default `'separate'`: the media
|
|
220
|
+
* message is sent without the caption, and the caption follows as a normal
|
|
221
|
+
* text message once the media send settles (the same wire shape as 26.9.8,
|
|
222
|
+
* so readers that do not know `<data caption>` still show it). `'inline'`
|
|
223
|
+
* carries the caption on the media message itself (`<data caption>`,
|
|
224
|
+
* `captionMentions`), one message per send, but readers that predate it
|
|
225
|
+
* (older web builds, React Native, server push) show no text for it.
|
|
226
|
+
*/
|
|
227
|
+
captionMode?: 'inline' | 'separate';
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Which upload route chat attachments use. Default `'auto'`: try
|
|
231
|
+
* `POST /v2/files/secure` and fall back to `POST /v1/files/` if the backend
|
|
232
|
+
* rejects it. `'legacy'` posts straight to `/v1/files/` and never calls the
|
|
233
|
+
* secure route; use it on a backend whose secure-files URLs cannot be read
|
|
234
|
+
* yet. `'secure'` uses the secure route only and reports its errors without
|
|
235
|
+
* falling back.
|
|
236
|
+
*/
|
|
237
|
+
uploads?: {
|
|
238
|
+
endpoint?: 'auto' | 'secure' | 'legacy';
|
|
218
239
|
};
|
|
219
240
|
/** First-page PDF thumbnails inside message bubbles. */
|
|
220
241
|
pdfPreview?: {
|
|
@@ -368,6 +389,20 @@ export interface IConfig {
|
|
|
368
389
|
* the backend predates the /v1/chats/blocked route).
|
|
369
390
|
*/
|
|
370
391
|
disableUserBlock?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Opt-in backend features. Each flag turns on client code that calls a route
|
|
394
|
+
* not every backend deployment serves yet, so the default keeps the control
|
|
395
|
+
* hidden rather than showing an action that fails.
|
|
396
|
+
*/
|
|
397
|
+
features?: {
|
|
398
|
+
/**
|
|
399
|
+
* Show the "Block user" item in a 1-1 chat's menu and enable the
|
|
400
|
+
* /v1/chats/blocked calls behind it. Default false: the production backend
|
|
401
|
+
* does not serve that route yet. `disableUserBlock: true` still hides the
|
|
402
|
+
* item when this is true.
|
|
403
|
+
*/
|
|
404
|
+
userBlock?: boolean;
|
|
405
|
+
};
|
|
371
406
|
defaultRooms?: ConfigRoom[];
|
|
372
407
|
/**
|
|
373
408
|
* The "Files" tab shown in the sidebar alongside "Chats". Backed by
|