@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.
@@ -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-DbepSYi_.js";
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 R, aR as D, aS as z } from "./main-DbepSYi_.js";
4
- import { S as I, D as C, a as $, b as k, e as S, f as p } from "./SideDrawer-BQ413Bso.js";
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 } = R(
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);
@@ -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` and is sent inside that
10
- * same media message, so it can never land as a separate bubble.
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;
@@ -1,4 +1,4 @@
1
- import { E as e, G as t } from "./main-DbepSYi_.js";
1
+ import { E as e, G as t } from "./main-36gqdbJ8.js";
2
2
  const i = e.div`
3
3
  display: flex;
4
4
  flex-direction: column;