@vlprojects-chat/chat 0.9.5 → 0.9.7
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/index.mjs +8 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -30499,7 +30499,7 @@ let zf = class extends er({
|
|
|
30499
30499
|
S == null || S.cleanAllMessages();
|
|
30500
30500
|
}, f = (b) => {
|
|
30501
30501
|
const { displayName: y, avatarUrl: S, userId: x, lang: w, role: E } = b;
|
|
30502
|
-
return w && +t.auth.me.id == +x && t.ui.setLang(w), E && t.auth.setMe({ ...t.auth.me, role: E }), t.chat.updateUser({ userId: x, displayName: y, avatarUrl: S, role: E });
|
|
30502
|
+
return w && +t.auth.me.id == +x && t.ui.setLang(w), E && +t.auth.me.id == +x && t.auth.setMe({ ...t.auth.me, role: E }), t.chat.updateUser({ userId: x, displayName: y, avatarUrl: S, role: E });
|
|
30503
30503
|
}, p = (b) => {
|
|
30504
30504
|
const { user: y } = b;
|
|
30505
30505
|
t.chat.addUsers([y]);
|
|
@@ -35394,7 +35394,7 @@ const qA = {
|
|
|
35394
35394
|
}, _se = () => {
|
|
35395
35395
|
const e = te.useContext(yS);
|
|
35396
35396
|
return e ? e.chatSnackbarContainer : null;
|
|
35397
|
-
}, Fse = "@vlprojects-chat/chat", Lse = "vlprojects", Vse = "0.9.
|
|
35397
|
+
}, Fse = "@vlprojects-chat/chat", Lse = "vlprojects", Vse = "0.9.7", Bse = "VLprojects chat", Use = "ISC", Wse = "dist/index.d.ts", Hse = "./dist/index.mjs", Gse = "./dist/index.mjs", qse = [
|
|
35398
35398
|
"dist"
|
|
35399
35399
|
], zse = {
|
|
35400
35400
|
type: "git",
|
|
@@ -54332,12 +54332,13 @@ const wbe = (e) => {
|
|
|
54332
54332
|
zIndex: yc.HEADER
|
|
54333
54333
|
}
|
|
54334
54334
|
}), Vbe = () => {
|
|
54335
|
+
var m, v;
|
|
54335
54336
|
const e = Ge(), { ui: t, chat: n, auth: r } = e, o = t.isMobile ? Lbe() : Fbe(), i = String(t.params.id), s = n.channels.get(i), a = s == null ? void 0 : s.lastPinnedMessage;
|
|
54336
54337
|
if (!a)
|
|
54337
54338
|
return null;
|
|
54338
54339
|
const c = a.user.current, u = new Date(a.message.createdAt), l = () => Nk(a.id), f = async () => {
|
|
54339
|
-
const
|
|
54340
|
-
|
|
54340
|
+
const g = s.findMessageIdx(a.messageId);
|
|
54341
|
+
g > -1 ? t.jumpToMessage(g) : (await Ik(e, Number(i), Number(s.sortedMessages[0].id), {
|
|
54341
54342
|
until: Number(a.messageId)
|
|
54342
54343
|
}), setTimeout(() => {
|
|
54343
54344
|
t.jumpToMessage(0);
|
|
@@ -54365,7 +54366,8 @@ const wbe = (e) => {
|
|
|
54365
54366
|
children: p
|
|
54366
54367
|
}
|
|
54367
54368
|
),
|
|
54368
|
-
/* @__PURE__ */ h.jsx(ce, { noWrap: !0, className: o.pinnedMessage, children: a.message.text })
|
|
54369
|
+
/* @__PURE__ */ h.jsx(ce, { noWrap: !0, className: o.pinnedMessage, children: a.message.text }),
|
|
54370
|
+
((m = a.message.attachments) == null ? void 0 : m.length) && /* @__PURE__ */ h.jsx(ce, { noWrap: !0, className: o.pinnedMessage, children: (v = a.message.attachments) == null ? void 0 : v[0].name })
|
|
54369
54371
|
] }),
|
|
54370
54372
|
r.me.role === od.Moderator && /* @__PURE__ */ h.jsx(Jn, { onClick: l, className: o.pinButton, children: /* @__PURE__ */ h.jsx(Ihe, {}) })
|
|
54371
54373
|
]
|
|
@@ -57176,7 +57178,7 @@ const gye = (e) => {
|
|
|
57176
57178
|
/* @__PURE__ */ h.jsx(t1e, {})
|
|
57177
57179
|
] });
|
|
57178
57180
|
};
|
|
57179
|
-
var uu = { VITE_APP_VERSION: "0.9.
|
|
57181
|
+
var uu = { VITE_APP_VERSION: "0.9.7", VITE_APP_API_BASEURL: "https://api.livedigital.chat", VITE_APP_SENTRY_DSN: "https://445426b388f045748970982694bb1520@o1158674.ingest.sentry.io/6242013", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
57180
57182
|
const zD = (e) => {
|
|
57181
57183
|
$e.error("Chat init error", { case: "handleInitError", errorInfo: e }), Do.emit(so.App, {
|
|
57182
57184
|
event: Po.ChatInitError,
|