@ethora/chat-component 26.9.3 → 26.9.5
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/{ChatProfileModal-wdMf1tVj.js → ChatProfileModal-Pr4--RdW.js} +3 -3
- package/dist/{FilePreviewModal-BifoD54Z.js → FilePreviewModal-CYHlKzRc.js} +1 -1
- package/dist/{ManageDataModal-BGdihBMC.js → ManageDataModal-BE1eGlYh.js} +2 -2
- package/dist/{MarkdownBody-Db6gZcuF.js → MarkdownBody-G0_J0NL6.js} +1 -1
- package/dist/{SideDrawer-CnVgnZIX.js → SideDrawer-BG2m7Bcm.js} +1 -1
- package/dist/{UserProfileModal-DVytNCrY.js → UserProfileModal-B2Hp5bAF.js} +3 -3
- package/dist/{UserSettingsModal-UM53d5E1.js → UserSettingsModal-D871FDAT.js} +2 -2
- package/dist/{VideoCallOverlay-ClWTSpa_.js → VideoCallOverlay-Br0ji0nZ.js} +1 -1
- package/dist/{VisibilityModal-udrXrQIY.js → VisibilityModal-DdFBV1_g.js} +2 -2
- package/dist/components/styled/StyledComponents.d.ts +25 -0
- package/dist/{handleCopyClick-CmDA5eIr.js → handleCopyClick-DPjxMoJn.js} +1 -1
- package/dist/{main-RnS3xaV2.js → main-BRIZ98KV.js} +1008 -1001
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as E, jsxs as j, Fragment as gt } from "react/jsx-runtime";
|
|
2
2
|
import ke, { useRef as yt, useState as ee, useMemo as se } from "react";
|
|
3
|
-
import { S as bt, f as qt, b as Tt, D as he, a as pe, e as Ft, g as zt, h as Fe, i as Qt, j as Ht, k as Yt, l as ze } from "./SideDrawer-
|
|
4
|
-
import { h as Wt, P as Gt, a as Kt, c as Xt, D as Jt, d as Vt, e as Qe, f as He } from "./handleCopyClick-
|
|
5
|
-
import { o as Zt, b as Et, p as de, a4 as er, B as te, x as W, a as Ne, u as fe, a5 as $e, F as Ct, y as wt, a6 as Rt, a7 as Pt, a8 as xt, a9 as tr, aa as Be, ab as rr, ac as nr, a2 as or, J as _t, Z as ar, ad as ir, ae as Ie, af as sr, ag as ye, ah as St, P as Mt, W as At, w as lr, ai as ur, aj as cr, ak as fr, al as dr, am as hr, q as Ye, an as pr, ao as vr, ap as mr, aq as gr, ar as yr, as as We, at as br, au as Tr, X as Er, av as Cr, aw as wr, M as Rr, K as Pr, ax as Ge } from "./main-
|
|
3
|
+
import { S as bt, f as qt, b as Tt, D as he, a as pe, e as Ft, g as zt, h as Fe, i as Qt, j as Ht, k as Yt, l as ze } from "./SideDrawer-BG2m7Bcm.js";
|
|
4
|
+
import { h as Wt, P as Gt, a as Kt, c as Xt, D as Jt, d as Vt, e as Qe, f as He } from "./handleCopyClick-DPjxMoJn.js";
|
|
5
|
+
import { o as Zt, b as Et, p as de, a4 as er, B as te, x as W, a as Ne, u as fe, a5 as $e, F as Ct, y as wt, a6 as Rt, a7 as Pt, a8 as xt, a9 as tr, aa as Be, ab as rr, ac as nr, a2 as or, J as _t, Z as ar, ad as ir, ae as Ie, af as sr, ag as ye, ah as St, P as Mt, W as At, w as lr, ai as ur, aj as cr, ak as fr, al as dr, am as hr, q as Ye, an as pr, ao as vr, ap as mr, aq as gr, ar as yr, as as We, at as br, au as Tr, X as Er, av as Cr, aw as wr, M as Rr, K as Pr, ax as Ge } from "./main-BRIZ98KV.js";
|
|
6
6
|
var le = {}, ve = { exports: {} }, me = { exports: {} }, k = {};
|
|
7
7
|
var Ke;
|
|
8
8
|
function xr() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as B } from "react/jsx-runtime";
|
|
2
2
|
import te, { useState as H, useRef as z, useEffect as O, useMemo as $, useCallback as k } from "react";
|
|
3
|
-
import { p as le, b as pe, aN as we, ae as ve, x as X, B as V, aO as xe, aP as be, ay as ye, aQ as Ee, aR as Le, aS as ue, aT as ne, a as Ce, aJ as Re, u as q, a5 as Me, aU as re, as as Pe, ao as J, aV as ke, aW as Se, aX as Te, aY as Ae, aZ as Ie, a_ as Xe, a$ as Ye, b0 as ze, b1 as Oe, az as De, b2 as Fe, b3 as Ne, ax as Be, b4 as He, w as Ue } from "./main-
|
|
3
|
+
import { p as le, b as pe, aN as we, ae as ve, x as X, B as V, aO as xe, aP as be, ay as ye, aQ as Ee, aR as Le, aS as ue, aT as ne, a as Ce, aJ as Re, u as q, a5 as Me, aU as re, as as Pe, ao as J, aV as ke, aW as Se, aX as Te, aY as Ae, aZ as Ie, a_ as Xe, a$ as Ye, b0 as ze, b1 as Oe, az as De, b2 as Fe, b3 as Ne, ax as Be, b4 as He, w as Ue } from "./main-BRIZ98KV.js";
|
|
4
4
|
function oe(t, i) {
|
|
5
5
|
let o;
|
|
6
6
|
return (...E) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, Fragment as T, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useCallback as M } from "react";
|
|
3
|
-
import { ay as B, x as t, az as I, aA as w, B as j, u as z, p as E, J as F, aB as R, L as U, w as x, aC as A, aD as $, aE as O, aF as H } from "./main-
|
|
4
|
-
import { S as J, D as f, a as u, b as D, e as v, f as b } from "./SideDrawer-
|
|
3
|
+
import { ay as B, x as t, az as I, aA as w, B as j, u as z, p as E, J as F, aB as R, L as U, w as x, aC as A, aD as $, aE as O, aF as H } from "./main-BRIZ98KV.js";
|
|
4
|
+
import { S as J, D as f, a as u, b as D, e as v, f as b } from "./SideDrawer-BG2m7Bcm.js";
|
|
5
5
|
t(I)`
|
|
6
6
|
display: flex;
|
|
7
7
|
box-sizing: border-box;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as fs, jsx as ie, Fragment as hs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { o as ei } from "./main-
|
|
3
|
+
import { o as ei } from "./main-BRIZ98KV.js";
|
|
4
4
|
function zr(e) {
|
|
5
5
|
const t = [], n = String(e || "");
|
|
6
6
|
let r = n.indexOf(","), u = 0, i = !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useId as f, useRef as v } from "react";
|
|
3
|
-
import { p as u, y as g, aI as m, aJ as w, B as b, aK as y, x as e, aL as D, aM as k } from "./main-
|
|
3
|
+
import { p as u, y as g, aI as m, aJ as w, B as b, aK as y, x as e, aL as D, aM as k } from "./main-BRIZ98KV.js";
|
|
4
4
|
const c = 767, R = `${c}px`, z = e.div`
|
|
5
5
|
position: relative;
|
|
6
6
|
pointer-events: auto;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as $, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ge, useState as I, useCallback as y, useImperativeHandle as ve, useRef as ae, useMemo as M } from "react";
|
|
3
|
-
import { a as be, p as J, t as ye, v as xe, w as we, P as re, I as H, x as D, y as Ce, z as Se, C as Ie, D as te, E as De, F as Ne, G as ke, J as Ue, u as Q, K as Fe, L as Pe, N as Ae, O as Re, Q as Y, q as Z, R as ze, S as je, T as Be, s as $e, B as X, U as Ee, W as Oe, X as Te, Y as ee, Z as R, _ as Le, $ as Me, V as He, A as Xe, a0 as We, a1 as Je, a2 as Ke, a3 as Ve } from "./main-
|
|
4
|
-
import { D as E, a as W, b as Ge, e as qe, f as _e, S as Qe } from "./SideDrawer-
|
|
5
|
-
import { P as ne, a as Ye, D as Ze, b as eo, h as oo } from "./handleCopyClick-
|
|
3
|
+
import { a as be, p as J, t as ye, v as xe, w as we, P as re, I as H, x as D, y as Ce, z as Se, C as Ie, D as te, E as De, F as Ne, G as ke, J as Ue, u as Q, K as Fe, L as Pe, N as Ae, O as Re, Q as Y, q as Z, R as ze, S as je, T as Be, s as $e, B as X, U as Ee, W as Oe, X as Te, Y as ee, Z as R, _ as Le, $ as Me, V as He, A as Xe, a0 as We, a1 as Je, a2 as Ke, a3 as Ve } from "./main-BRIZ98KV.js";
|
|
4
|
+
import { D as E, a as W, b as Ge, e as qe, f as _e, S as Qe } from "./SideDrawer-BG2m7Bcm.js";
|
|
5
|
+
import { P as ne, a as Ye, D as Ze, b as eo, h as oo } from "./handleCopyClick-DPjxMoJn.js";
|
|
6
6
|
const ao = (c, i) => {
|
|
7
7
|
const l = atob(c.split(",")[1]), g = new ArrayBuffer(l.length), e = new Uint8Array(g);
|
|
8
8
|
for (let r = 0; r < l.length; r++)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import m, { useCallback as D, useMemo as h } from "react";
|
|
3
|
-
import { p, a as g, q as w, M as l } from "./main-
|
|
4
|
-
import { S as b, D as u, a as k, b as y, c as S, d as f } from "./SideDrawer-
|
|
3
|
+
import { p, a as g, q as w, M as l } from "./main-BRIZ98KV.js";
|
|
4
|
+
import { S as b, D as u, a as k, b as y, c as S, d as f } from "./SideDrawer-BG2m7Bcm.js";
|
|
5
5
|
const T = ({
|
|
6
6
|
handleCloseModal: n
|
|
7
7
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as K, jsx as x, Fragment as Hr } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
3
|
import { useState as Yt, useRef as ke, useEffect as be, useMemo as Wt, useCallback as mi } from "react";
|
|
4
|
-
import { u as Xi, P as Kn, H as xi, a as Hd, b as zd, c as Kd, d as Gd, s as po, e as Jd, f as Yd, g as fo, h as $d, i as Xd, j as mo, k as Qd, l as Zd, r as go, m as eu, n as tu, A as vo, V as bo, B as nu } from "./main-
|
|
4
|
+
import { u as Xi, P as Kn, H as xi, a as Hd, b as zd, c as Kd, d as Gd, s as po, e as Jd, f as Yd, g as fo, h as $d, i as Xd, j as mo, k as Qd, l as Zd, r as go, m as eu, n as tu, A as vo, V as bo, B as nu } from "./main-BRIZ98KV.js";
|
|
5
5
|
function iu(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 { x as o, a as L, p as P, u as z, aG as D, aH as I } from "./main-
|
|
4
|
-
import { S as N, D as C, a as $, b as k, e as w, f as p } from "./SideDrawer-
|
|
3
|
+
import { x as o, a as L, p as P, u as z, aG as D, aH as I } from "./main-BRIZ98KV.js";
|
|
4
|
+
import { S as N, D as C, a as $, b as k, e as w, f as p } from "./SideDrawer-BG2m7Bcm.js";
|
|
5
5
|
o.div``;
|
|
6
6
|
o.div`
|
|
7
7
|
font-size: 16px;
|
|
@@ -7,6 +7,31 @@ export declare const NonRoomChat: import('styled-components/dist/types').IStyled
|
|
|
7
7
|
export declare const MessagesScroll: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
8
|
color?: string;
|
|
9
9
|
}>> & string;
|
|
10
|
+
/**
|
|
11
|
+
* Bottom anchoring for the real transcript, as two nested wrappers inside
|
|
12
|
+
* MessagesScroll.
|
|
13
|
+
*
|
|
14
|
+
* A conversation shorter than the viewport used to hang from the TOP of the
|
|
15
|
+
* pane, leaving a wall of empty space under it, while the opening preview
|
|
16
|
+
* (ChatRoomOpeningPreview) that stands in for it a moment earlier sits at
|
|
17
|
+
* the BOTTOM, like every messenger. So a room with one message showed it
|
|
18
|
+
* low while loading and then jumped it to the top the instant history
|
|
19
|
+
* arrived - and which of the two you saw depended on the room.
|
|
20
|
+
*
|
|
21
|
+
* MessagesAnchor grows to at least the viewport and pushes its single child
|
|
22
|
+
* to the bottom. It is NOT the scroller (MessagesScroll still is), so
|
|
23
|
+
* justify-content: flex-end is safe here: the anchor is exactly as tall as
|
|
24
|
+
* its content once that overflows, and the top of a long list stays
|
|
25
|
+
* reachable.
|
|
26
|
+
*
|
|
27
|
+
* MessagesFlow is the reason there are two wrappers, and it is easy to
|
|
28
|
+
* "simplify" away: the messages must stay in ordinary block flow. Made
|
|
29
|
+
* direct flex items they lose margin collapsing, which measurably added
|
|
30
|
+
* 110-150px to a real conversation and changed the gaps between bubbles.
|
|
31
|
+
* One flex item containing all of them keeps the old spacing exactly.
|
|
32
|
+
*/
|
|
33
|
+
export declare const MessagesAnchor: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
34
|
+
export declare const MessagesFlow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
35
|
export declare const MessagesList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
36
|
export declare const MessageTimestamp: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
37
|
export declare const Message: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|