@mobilon-dev/chotto 0.3.119 → 0.3.120

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 o from "./Feed.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9221fdb9"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-db0a32f8"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as Te, ref as S, computed as l, provide as A, inject as G, unref as o, watch as B, nextTick as F, onMounted as De, createElementBlock as y, openBlock as i, createVNode as p, createBlock as f, createCommentVNode as c, normalizeStyle as H, renderSlot as J, withDirectives as we, createElementVNode as C, vShow as Ke, Transition as T, withCtx as D, Fragment as xe, renderList as Oe, isMemoSame as $e, resolveDynamicComponent as Ne, mergeProps as je, toDisplayString as Le, Teleport as Q } from "vue";
2
- import Ue from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
1
+ import { defineComponent as Te, ref as S, computed as l, provide as A, inject as G, unref as o, watch as B, nextTick as F, onMounted as De, createElementBlock as y, openBlock as i, createVNode as p, createBlock as f, createCommentVNode as c, normalizeStyle as H, renderSlot as J, withDirectives as we, createElementVNode as C, vShow as Ke, Transition as T, withCtx as D, Fragment as xe, renderList as Oe, isMemoSame as $e, resolveDynamicComponent as Ne, mergeProps as Le, toDisplayString as Ue, Teleport as Q } from "vue";
2
+ import je from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
3
3
  import qe from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
4
4
  import Ee from "../../2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
5
5
  import Pe from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
@@ -169,7 +169,7 @@ const dt = {
169
169
  } = _e({
170
170
  objectsRef: l(() => n.objects),
171
171
  feedRef: u
172
- }), b = G("chatAppId"), N = G("selectedChat", void 0), j = l(() => {
172
+ }), b = G("chatAppId"), N = G("selectedChat", void 0), L = l(() => {
173
173
  if (N)
174
174
  return o(N);
175
175
  });
@@ -184,13 +184,13 @@ const dt = {
184
184
  const s = (e = t.reactions) == null ? void 0 : e.items;
185
185
  return s != null && s.length ? s.map((r) => `${r.key}:${r.userId}`).join(",") : "";
186
186
  }
187
- function L(t) {
187
+ function U(t) {
188
188
  var m, d, k;
189
189
  const s = t, e = s.channelId || ((m = s.channel) == null ? void 0 : m.channelId) || ((d = s.meta) == null ? void 0 : d.channelId);
190
190
  if (e) return String(e);
191
- if (!s.dialogId || !((k = j.value) != null && k.dialogs))
191
+ if (!s.dialogId || !((k = L.value) != null && k.dialogs))
192
192
  return;
193
- const r = j.value.dialogs.find((I) => I.dialogId === s.dialogId);
193
+ const r = L.value.dialogs.find((I) => I.dialogId === s.dialogId);
194
194
  return r == null ? void 0 : r.channelId;
195
195
  }
196
196
  function le(t) {
@@ -198,7 +198,7 @@ const dt = {
198
198
  }
199
199
  const g = X, {
200
200
  checkScrollPosition: de,
201
- startScrollWatch: U,
201
+ startScrollWatch: j,
202
202
  stopScrollWatch: q,
203
203
  resetAllowFlags: ce
204
204
  } = Ye({
@@ -215,7 +215,7 @@ const dt = {
215
215
  } = tt({
216
216
  enableDoubleClickReply: n.enableDoubleClickReply,
217
217
  emit: g,
218
- isReplyAllowed: (t) => !it(t, L(t))
218
+ isReplyAllowed: (t) => !it(t, U(t))
219
219
  });
220
220
  function pe(t) {
221
221
  g("smsInvite", t);
@@ -313,7 +313,7 @@ const dt = {
313
313
  style: H({ backgroundImage: `url(${P.value})` }),
314
314
  onScroll: s[2] || (s[2] = (e) => o(Be)()),
315
315
  onMousedown: s[3] || (s[3] = //@ts-ignore
316
- (...e) => o(U) && o(U)(...e)),
316
+ (...e) => o(j) && o(j)(...e)),
317
317
  onMouseup: s[4] || (s[4] = //@ts-ignore
318
318
  (...e) => o(q) && o(q)(...e))
319
319
  }, [
@@ -329,7 +329,7 @@ const dt = {
329
329
  ]),
330
330
  p(T, null, {
331
331
  default: D(() => [
332
- o(Me) && !a.isLoadingMore ? (i(), f(Ue, {
332
+ o(Me) && !a.isLoadingMore ? (i(), f(je, {
333
333
  key: 0,
334
334
  class: "message-feed__sticky-date",
335
335
  text: o(Re)
@@ -338,7 +338,7 @@ const dt = {
338
338
  _: 1
339
339
  }),
340
340
  (i(!0), y(xe, null, Oe(o(se), (e, r, m, d) => {
341
- const k = [e.messageId, e.text, e.status, e.reply, o($)[o(h) + r], ie(e)];
341
+ const k = [e.messageId, e.text, e.status, e.reply, e.deleted, o($)[o(h) + r], ie(e)];
342
342
  if (d && d.key === M(e, r) && $e(d, k)) return d;
343
343
  const I = (i(), y("div", {
344
344
  id: "msg-" + M(e, r),
@@ -349,7 +349,7 @@ const dt = {
349
349
  class: "tracking-message",
350
350
  onDblclick: (z) => o(fe)(z, e)
351
351
  }, [
352
- (i(), f(Ne(o(ee)(e)), je({
352
+ (i(), f(Ne(o(ee)(e)), Le({
353
353
  key: M(e, r),
354
354
  class: "message-feed__message",
355
355
  message: e,
@@ -360,7 +360,7 @@ const dt = {
360
360
  "current-user-id": x.value,
361
361
  "reaction-user-names": O.value,
362
362
  "subtext-tooltip-data": a.subtextTooltipData,
363
- channel: L(e)
363
+ channel: U(e)
364
364
  }, { ref_for: !0 }, le(e), {
365
365
  onAction: o(ue),
366
366
  onReply: o(me),
@@ -416,7 +416,7 @@ const dt = {
416
416
  class: "message-feed__button-down",
417
417
  onClick: Fe
418
418
  }, [
419
- a.buttonParams ? (i(), y("div", ft, Le(a.buttonParams.unreadAmount), 1)) : c("", !0),
419
+ a.buttonParams ? (i(), y("div", ft, Ue(a.buttonParams.unreadAmount), 1)) : c("", !0),
420
420
  s[5] || (s[5] = C("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
421
421
  ])) : c("", !0)
422
422
  ]),
@@ -24,6 +24,8 @@ export interface IFeedObject {
24
24
  callDuration?: string;
25
25
  isMissedCall?: boolean;
26
26
  reply?: Reply;
27
+ /** Soft-delete: tombstone вместо контента */
28
+ deleted?: boolean;
27
29
  linkPreview?: ILinkPreview;
28
30
  keyboard?: IKeyBoard[];
29
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilon-dev/chotto",
3
- "version": "0.3.119",
3
+ "version": "0.3.120",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",