@ethora/chat-component 26.10.4 → 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-Cke_6sXC.js → ChatProfileModal-OJCKwdNp.js} +580 -561
- package/dist/{FilePreviewModal-CHEI7FWU.js → FilePreviewModal-DwNUEHei.js} +40 -40
- package/dist/{ManageDataModal-9W1ZSLli.js → ManageDataModal-CaQ2VBPn.js} +8 -8
- package/dist/{MarkdownBody-DFuD11jv.js → MarkdownBody-BeoG2cpo.js} +1 -1
- package/dist/{MessageSearchModal-FlVO7fz6.js → MessageSearchModal-DMw9o49-.js} +10 -10
- package/dist/{PublicChatsModal-BWDXSdBx.js → PublicChatsModal-CWdYILv_.js} +9 -9
- package/dist/{SideDrawer-BQ413Bso.js → SideDrawer-Cl-vbuIG.js} +27 -27
- package/dist/{UserProfileModal-9aSW48jh.js → UserProfileModal-B8KtGnwZ.js} +3 -3
- package/dist/{UserSettingsModal--sdi-ypb.js → UserSettingsModal-DgCAHmNh.js} +2 -2
- package/dist/{VideoCallOverlay-DXJ_3E0D.js → VideoCallOverlay-Cq2cECWj.js} +1 -1
- package/dist/{VisibilityModal-DLi1r_OQ.js → VisibilityModal-D7vqGbrA.js} +3 -3
- package/dist/assets/icons.d.ts +1 -0
- package/dist/components/styled/SendInput.d.ts +3 -2
- package/dist/{handleCopyClick-Cja-CefH.js → handleCopyClick-Crn2jEEu.js} +1 -1
- package/dist/{main-DbepSYi_.js → main-36gqdbJ8.js} +9848 -9747
- package/dist/main.js +1 -1
- package/dist/networking/api-requests/rooms.api.d.ts +6 -0
- package/dist/types/models/config.model.d.ts +35 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as J, jsx as I, Fragment as zr } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
3
|
import { useState as $t, useRef as ye, useEffect as ae, useMemo as wt, useCallback as Un } from "react";
|
|
4
|
-
import { u as Qi, P as Yn, H as Oi, a as Gd, b as Yd, i as gr, c as vr, g as $d, s as Xd, d as mo, e as Qd, f as Zd, h as go, j as eu, k as tu, l as vo, m as nu, n as iu, o as bo, p as ru, q as su, r as yo, t as ou, v as au, A as ko, V as To, B as cu } from "./main-
|
|
4
|
+
import { u as Qi, P as Yn, H as Oi, a as Gd, b as Yd, i as gr, c as vr, g as $d, s as Xd, d as mo, e as Qd, f as Zd, h as go, j as eu, k as tu, l as vo, m as nu, n as iu, o as bo, p as ru, q as su, r as yo, t as ou, v as au, A as ko, V as To, B as cu } from "./main-36gqdbJ8.js";
|
|
5
5
|
function lu(n, e) {
|
|
6
6
|
return e.forEach(function(t) {
|
|
7
7
|
t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(i) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as b, useEffect as x } from "react";
|
|
3
|
-
import { E as o, a as L, x as P, u as
|
|
4
|
-
import { S as I, D as C, a as $, b as k, e as S, f as p } from "./SideDrawer-
|
|
3
|
+
import { E as o, a as L, x as P, u as T, aS as D, aT as z } from "./main-36gqdbJ8.js";
|
|
4
|
+
import { S as I, D as C, a as $, b as k, e as S, f as p } from "./SideDrawer-Cl-vbuIG.js";
|
|
5
5
|
o.div``;
|
|
6
6
|
o.div`
|
|
7
7
|
font-size: 16px;
|
|
@@ -42,7 +42,7 @@ const w = o.div`
|
|
|
42
42
|
`, M = ({
|
|
43
43
|
handleCloseModal: i
|
|
44
44
|
}) => {
|
|
45
|
-
const O = L(), e = P(), { user: n, config: l } =
|
|
45
|
+
const O = L(), e = P(), { user: n, config: l } = T(
|
|
46
46
|
(t) => t.chatSettingStore
|
|
47
47
|
), g = (t) => O(z(t)), [a, m] = b(n?.isProfileOpen), [c, v] = b(n?.isAssetsOpen), [f, y] = b(null), d = (t, A) => {
|
|
48
48
|
y({ message: t, type: A }), setTimeout(() => y(null), 3e3);
|
package/dist/assets/icons.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const DownloadIcon: ({ color, ...props }: any) => import("react/j
|
|
|
22
22
|
export declare const RecordIcon: ({ color, bgcolor, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export declare const PdfIcon: ({ fill, color, ...props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export declare const RemoveIcon: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const BlockIcon: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
25
26
|
export declare const SendIcon: ({ color, bgcolor, ...props }: {
|
|
26
27
|
[x: string]: any;
|
|
27
28
|
color?: string;
|
|
@@ -6,8 +6,9 @@ export interface SendInputProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* Receives a `File[]` for picked attachments (one message, N files) and a
|
|
8
8
|
* `Blob` for voice notes. Single files still arrive as a one-element array.
|
|
9
|
-
* Text typed with the files arrives as `caption
|
|
10
|
-
*
|
|
9
|
+
* Text typed with the files arrives as `caption`; whether it rides on that
|
|
10
|
+
* media message or follows it as a text message depends on
|
|
11
|
+
* `config.attachments.captionMode`.
|
|
11
12
|
*/
|
|
12
13
|
sendMedia: (data: File[] | File | Blob, type: string, caption?: CaptionInput) => void | boolean | Promise<void | boolean>;
|
|
13
14
|
isLoading: boolean;
|