padorixnpm 0.0.68 → 0.0.69
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/{chat-panel-D34UFlz_.js → chat-panel-CXbOkOSq.js} +5 -5
- package/dist/{chat-panel-D34UFlz_.js.map → chat-panel-CXbOkOSq.js.map} +1 -1
- package/dist/{notification-CbOXgUC2.js → notification-ChYfFRqp.js} +28 -27
- package/dist/notification-ChYfFRqp.js.map +1 -0
- package/dist/padorixnpm.js +2 -2
- package/dist/padorixnpm.umd.cjs +7 -7
- package/dist/padorixnpm.umd.cjs.map +1 -1
- package/dist/services/chat-api.d.ts.map +1 -1
- package/dist/services/socket.d.ts +1 -1
- package/dist/services/socket.d.ts.map +1 -1
- package/dist/{widget-api-B4P00FNn.js → widget-api-2bTO9wMA.js} +62 -43
- package/dist/widget-api-2bTO9wMA.js.map +1 -0
- package/package.json +1 -1
- package/dist/notification-CbOXgUC2.js.map +0 -1
- package/dist/widget-api-B4P00FNn.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, s as b, u as x, v as ee, w as S, x as C, y as w } from "./widget-api-
|
|
2
|
-
import T, { i as E, n as te, r as D, t as ne } from "./notification-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, s as b, u as x, v as ee, w as S, x as C, y as w } from "./widget-api-2bTO9wMA.js";
|
|
2
|
+
import T, { i as E, n as te, r as D, t as ne } from "./notification-ChYfFRqp.js";
|
|
3
3
|
import { useDispatch as O, useSelector as k } from "react-redux";
|
|
4
4
|
import A, { createElement as j, forwardRef as M, useState as N } from "react";
|
|
5
5
|
import { Add as P, ArrowDown2 as F, ArrowForward as re, ArrowLeft2 as ie, Copy as ae, DocumentDownload as oe, EmojiHappy as se, Global as I, Minus as ce, Send as L, Star1 as le, Trash as ue } from "iconsax-reactjs";
|
|
@@ -1791,7 +1791,7 @@ function ut({ styles: t, userType: i, ...a }) {
|
|
|
1791
1791
|
}, n = () => {
|
|
1792
1792
|
E.emit(D.subscribe_conversation, L), t();
|
|
1793
1793
|
};
|
|
1794
|
-
return E.on(D.connected, n), E.connected ? n() : (t(), ne()), () => {
|
|
1794
|
+
return E.on(D.connected, n), E.connected ? n() : (t(), ne(L.userType !== w.VISITOR)), () => {
|
|
1795
1795
|
e = !0, E.off(D.connected, n);
|
|
1796
1796
|
};
|
|
1797
1797
|
}, [L, he]);
|
|
@@ -2727,7 +2727,7 @@ function Dt(e) {
|
|
|
2727
2727
|
]), A.useEffect(() => {
|
|
2728
2728
|
if (t || !e.workspaceId) return;
|
|
2729
2729
|
let n = () => E.emit(D.subscribe_workspace, { workspaceId: e.workspaceId });
|
|
2730
|
-
return E.on(D.connected, n), ne(), n(), () => {
|
|
2730
|
+
return E.on(D.connected, n), ne(!0), n(), () => {
|
|
2731
2731
|
E.off(D.connected, n);
|
|
2732
2732
|
};
|
|
2733
2733
|
}, [t, e.workspaceId]), r?.id) return e.children;
|
|
@@ -2778,4 +2778,4 @@ function kt(e) {
|
|
|
2778
2778
|
//#endregion
|
|
2779
2779
|
export { kt as AgentChatPanel, Ot as VisitorChatPanel };
|
|
2780
2780
|
|
|
2781
|
-
//# sourceMappingURL=chat-panel-
|
|
2781
|
+
//# sourceMappingURL=chat-panel-CXbOkOSq.js.map
|