@mobilon-dev/chotto 0.3.44 → 0.3.46

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.
Files changed (34) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
  3. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +145 -132
  4. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +24 -0
  5. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -0
  6. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +19 -0
  7. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
  8. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +94 -89
  9. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
  10. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +90 -85
  11. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
  12. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +97 -92
  13. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
  14. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +91 -86
  15. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
  16. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +70 -65
  17. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
  18. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +93 -88
  19. package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
  20. package/dist/components/3_compounds/Feed/Feed.vue2.js +167 -154
  21. package/dist/types/apps/data/chats.d.ts +73 -2
  22. package/dist/types/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.d.ts +2 -0
  23. package/dist/types/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.d.ts +2 -0
  24. package/dist/types/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.d.ts +2 -0
  25. package/dist/types/components/2_chatlist_elements/ChatItem/icons/index.d.ts +7 -0
  26. package/dist/types/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  27. package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +11 -0
  28. package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +11 -0
  29. package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +11 -0
  30. package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +11 -0
  31. package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +11 -0
  32. package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +11 -0
  33. package/dist/types/components/2_feed_elements/types/messages.d.ts +1 -0
  34. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
- import { defineComponent as ne, ref as b, computed as i, inject as ae, watch as re, nextTick as C, onMounted as ie, createElementBlock as d, openBlock as s, Fragment as D, createBlock as m, createCommentVNode as c, unref as t, normalizeStyle as I, createVNode as y, Transition as p, withCtx as k, renderList as de, resolveDynamicComponent as ce, createElementVNode as w, toDisplayString as ue, renderSlot as me, Teleport as fe } from "vue";
2
- import ye from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
3
- import ge from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
4
- import be from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
5
- import pe from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
6
- import ke from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
7
- import { useFeedButton as ve } from "./composables/useFeedButton.js";
8
- import { useFeedComponents as Se } from "./composables/useFeedComponents.js";
9
- import { useFeedGrouping as he } from "./composables/useFeedGrouping.js";
10
- import { useFeedKeyboard as Re } from "./composables/useFeedKeyboard.js";
11
- import { useFeedLoadMore as Be } from "./composables/useFeedLoadMore.js";
12
- import { useFeedMessageVisibility as Te } from "./composables/useFeedMessageVisibility.js";
13
- import { useFeedReply as Ae } from "./composables/useFeedReply.js";
14
- import { useFeedScroll as Fe } from "./composables/useFeedScroll.js";
15
- import { useFeedScrollTo as Me } from "./composables/useFeedScrollTo.js";
16
- import { useStickyDate as Ce } from "./composables/useStickyDate.js";
17
- import { throttle as De } from "./functions/throttle.js";
18
- import Ie from "./assets/chat-background.svg.js";
19
- const we = ["id"], je = ["id", "onDblclick"], Ke = {
1
+ import { defineComponent as de, ref as k, computed as i, inject as D, unref as e, watch as ce, nextTick as w, onMounted as ue, createElementBlock as d, openBlock as s, Fragment as j, createBlock as m, createCommentVNode as c, normalizeStyle as K, createVNode as b, Transition as h, withCtx as v, renderList as me, resolveDynamicComponent as fe, createElementVNode as x, toDisplayString as ye, renderSlot as ge, Teleport as be } from "vue";
2
+ import pe from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
3
+ import ke from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
4
+ import he from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
5
+ import ve from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
6
+ import Se from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
7
+ import { useFeedButton as Re } from "./composables/useFeedButton.js";
8
+ import { useFeedComponents as Be } from "./composables/useFeedComponents.js";
9
+ import { useFeedGrouping as Te } from "./composables/useFeedGrouping.js";
10
+ import { useFeedKeyboard as Ae } from "./composables/useFeedKeyboard.js";
11
+ import { useFeedLoadMore as Ie } from "./composables/useFeedLoadMore.js";
12
+ import { useFeedMessageVisibility as Ce } from "./composables/useFeedMessageVisibility.js";
13
+ import { useFeedReply as Fe } from "./composables/useFeedReply.js";
14
+ import { useFeedScroll as Me } from "./composables/useFeedScroll.js";
15
+ import { useFeedScrollTo as De } from "./composables/useFeedScrollTo.js";
16
+ import { useStickyDate as we } from "./composables/useStickyDate.js";
17
+ import { throttle as je } from "./functions/throttle.js";
18
+ import Ke from "./assets/chat-background.svg.js";
19
+ const xe = ["id"], $e = ["id", "onDblclick"], Oe = {
20
20
  key: 0,
21
21
  class: "message-feed__unread-amount"
22
- }, xe = { style: { margin: "auto" } }, _e = /* @__PURE__ */ ne({
22
+ }, Ve = { style: { margin: "auto" } }, ot = /* @__PURE__ */ de({
23
23
  __name: "Feed",
24
24
  props: {
25
25
  objects: {
@@ -55,7 +55,7 @@ const we = ["id"], je = ["id", "onDblclick"], Ke = {
55
55
  keyboardAlign: {
56
56
  type: String,
57
57
  default: "right",
58
- validator: (e) => ["left", "center", "right"].includes(e)
58
+ validator: (t) => ["left", "center", "right"].includes(t)
59
59
  },
60
60
  feedKeyboards: {
61
61
  type: Array,
@@ -65,7 +65,7 @@ const we = ["id"], je = ["id", "onDblclick"], Ke = {
65
65
  feedKeyboardAlign: {
66
66
  type: String,
67
67
  default: "right",
68
- validator: (e) => ["left", "center", "right"].includes(e)
68
+ validator: (t) => ["left", "center", "right"].includes(t)
69
69
  },
70
70
  chatBackground: {
71
71
  type: String,
@@ -96,207 +96,220 @@ const we = ["id"], je = ["id", "onDblclick"], Ke = {
96
96
  "feedAction",
97
97
  "smsInvite"
98
98
  ],
99
- setup(e, { emit: j }) {
100
- const l = e, g = b(), n = b(), v = b(), {
101
- isShowButton: K,
102
- isKeyboardPlace: x,
103
- checkButtonVisibility: $
104
- } = ve({
105
- feedRef: n,
106
- keyboardRef: v
107
- }), { componentsMap: O } = Se(), V = i(() => l.reactionsEnabled), { groupedObjects: q } = he({
108
- objects: i(() => l.objects)
109
- }), f = ae("chatAppId"), u = j, {
110
- checkScrollPosition: z,
111
- startScrollWatch: S,
112
- stopScrollWatch: h,
113
- resetAllowFlags: E
114
- } = Be({
115
- feedRef: n,
99
+ setup(t, { emit: $ }) {
100
+ const n = t, p = k(), r = k(), S = k(), {
101
+ isShowButton: O,
102
+ isKeyboardPlace: V,
103
+ checkButtonVisibility: q
104
+ } = Re({
105
+ feedRef: r,
106
+ keyboardRef: S
107
+ }), { componentsMap: z } = Be(), E = i(() => n.reactionsEnabled), { groupedObjects: L } = Te({
108
+ objects: i(() => n.objects)
109
+ }), y = D("chatAppId"), R = D("selectedChat", void 0), B = i(() => {
110
+ if (R)
111
+ return e(R);
112
+ });
113
+ function P(l) {
114
+ var f;
115
+ const a = l;
116
+ if (!a.dialogId || !((f = B.value) != null && f.dialogs))
117
+ return;
118
+ const o = B.value.dialogs.find((g) => g.dialogId === a.dialogId);
119
+ return o == null ? void 0 : o.channelId;
120
+ }
121
+ const u = $, {
122
+ checkScrollPosition: N,
123
+ startScrollWatch: T,
124
+ stopScrollWatch: A,
125
+ resetAllowFlags: W
126
+ } = Ie({
127
+ feedRef: r,
116
128
  emit: u,
117
- isLoadingMoreRef: i(() => l.isLoadingMore)
129
+ isLoadingMoreRef: i(() => n.isLoadingMore)
118
130
  }), {
119
- getMessage: R,
120
- messageAction: L,
121
- handleClickReplied: P,
122
- feedObjectDoubleClick: N,
123
- handleResetReply: W
124
- } = Ae({
125
- enableDoubleClickReply: l.enableDoubleClickReply,
131
+ getMessage: I,
132
+ messageAction: G,
133
+ handleClickReplied: J,
134
+ feedObjectDoubleClick: U,
135
+ handleResetReply: H
136
+ } = Fe({
137
+ enableDoubleClickReply: n.enableDoubleClickReply,
126
138
  emit: u
127
139
  });
128
- function G(a) {
129
- u("smsInvite", a);
140
+ function Q(l) {
141
+ u("smsInvite", l);
130
142
  }
131
143
  const {
132
- showKeyboard: J,
133
- keyboardAction: U,
134
- feedKeyboardAction: H
135
- } = Re({
136
- isKeyboardPlace: x,
137
- objects: i(() => l.objects),
144
+ showKeyboard: X,
145
+ keyboardAction: Y,
146
+ feedKeyboardAction: Z
147
+ } = Ae({
148
+ isKeyboardPlace: V,
149
+ objects: i(() => n.objects),
138
150
  emit: u
139
151
  }), {
140
- showStickyDate: Q,
141
- stickyDateText: X,
142
- show: Y
143
- } = Ce({
144
- feedRef: n,
145
- trackingObjects: g
152
+ showStickyDate: _,
153
+ stickyDateText: ee,
154
+ show: te
155
+ } = we({
156
+ feedRef: r,
157
+ trackingObjects: p
146
158
  }), {
147
- isInitialized: Z,
148
- performScrollToBottom: _,
149
- ensureScrollToBottom: B,
150
- initializeScroll: ee,
151
- smoothScrollToBottom: te
152
- } = Fe({
153
- feedRef: n,
154
- objectsRef: i(() => l.objects),
155
- scrollToBottomRef: i(() => l.scrollToBottom)
156
- }), T = i(() => l.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(Ie)}`);
157
- function A(a = !0) {
158
- $(), z(a), Y();
159
+ isInitialized: oe,
160
+ performScrollToBottom: se,
161
+ ensureScrollToBottom: C,
162
+ initializeScroll: ne,
163
+ smoothScrollToBottom: le
164
+ } = Me({
165
+ feedRef: r,
166
+ objectsRef: i(() => n.objects),
167
+ scrollToBottomRef: i(() => n.scrollToBottom)
168
+ }), F = i(() => n.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(Ke)}`);
169
+ function M(l = !0) {
170
+ q(), N(l), te();
159
171
  }
160
- const oe = De(() => A(), 250);
161
- function se() {
162
- u("forceScrollToBottom"), te();
172
+ const ae = je(() => M(), 250);
173
+ function re() {
174
+ u("forceScrollToBottom"), le();
163
175
  }
164
- const { restartObserving: le } = Te({
165
- feedRef: n,
166
- trackingObjects: g,
167
- chatAppId: f,
168
- onMessageVisible: (a) => u("messageVisible", a)
176
+ const { restartObserving: ie } = Ce({
177
+ feedRef: r,
178
+ trackingObjects: p,
179
+ chatAppId: y,
180
+ onMessageVisible: (l) => u("messageVisible", l)
169
181
  });
170
- return re(
171
- () => l.objects,
182
+ return ce(
183
+ () => n.objects,
172
184
  () => {
173
- C(() => {
174
- E(), A(!1), g.value = document.querySelectorAll(".tracking-message"), le();
185
+ w(() => {
186
+ W(), M(!1), p.value = document.querySelectorAll(".tracking-message"), ie();
175
187
  });
176
188
  },
177
189
  { immediate: !0 }
178
- ), Me({
179
- targetIdRef: i(() => l.scrollTo),
180
- feedContainerId: `feed-container-${f}`
181
- }), ie(() => {
182
- C(() => {
183
- l.objects.length > 0 && !Z.value && ee();
184
- const a = new ResizeObserver(() => {
185
- l.scrollToBottom && (_(), setTimeout(() => {
186
- B();
190
+ ), De({
191
+ targetIdRef: i(() => n.scrollTo),
192
+ feedContainerId: `feed-container-${y}`
193
+ }), ue(() => {
194
+ w(() => {
195
+ n.objects.length > 0 && !oe.value && ne();
196
+ const l = new ResizeObserver(() => {
197
+ n.scrollToBottom && (se(), setTimeout(() => {
198
+ C();
187
199
  }, 200), setTimeout(() => {
188
- B();
200
+ C();
189
201
  }, 800));
190
202
  });
191
- n.value && a.observe(n.value);
203
+ r.value && l.observe(r.value);
192
204
  });
193
- }), (a, r) => (s(), d(D, null, [
194
- e.objects.length > 0 || e.typing ? (s(), d("div", {
205
+ }), (l, a) => (s(), d(j, null, [
206
+ t.objects.length > 0 || t.typing ? (s(), d("div", {
195
207
  key: 0,
196
- id: "feed-container-" + t(f),
208
+ id: "feed-container-" + e(y),
197
209
  ref_key: "refFeed",
198
- ref: n,
210
+ ref: r,
199
211
  class: "message-feed",
200
- style: I({ backgroundImage: `url(${T.value})` }),
201
- onScroll: r[0] || (r[0] = (o) => t(oe)()),
202
- onMousedown: r[1] || (r[1] = //@ts-ignore
203
- (...o) => t(S) && t(S)(...o)),
204
- onMouseup: r[2] || (r[2] = //@ts-ignore
205
- (...o) => t(h) && t(h)(...o))
212
+ style: K({ backgroundImage: `url(${F.value})` }),
213
+ onScroll: a[0] || (a[0] = (o) => e(ae)()),
214
+ onMousedown: a[1] || (a[1] = //@ts-ignore
215
+ (...o) => e(T) && e(T)(...o)),
216
+ onMouseup: a[2] || (a[2] = //@ts-ignore
217
+ (...o) => e(A) && e(A)(...o))
206
218
  }, [
207
- y(p, null, {
208
- default: k(() => [
209
- t(Q) ? (s(), m(ye, {
219
+ b(h, null, {
220
+ default: v(() => [
221
+ e(_) ? (s(), m(pe, {
210
222
  key: 0,
211
223
  class: "message-feed__sticky-date",
212
- text: t(X)
224
+ text: e(ee)
213
225
  }, null, 8, ["text"])) : c("", !0)
214
226
  ]),
215
227
  _: 1
216
228
  }),
217
- (s(!0), d(D, null, de(t(q), (o, F) => (s(), d("div", {
229
+ (s(!0), d(j, null, me(e(L), (o, f) => (s(), d("div", {
218
230
  id: JSON.stringify(o),
219
- key: `${o.messageId ?? "mid"}-${F}`,
231
+ key: `${o.messageId ?? "mid"}-${f}`,
220
232
  class: "tracking-message",
221
- onDblclick: (M) => t(N)(M, o)
233
+ onDblclick: (g) => e(U)(g, o)
222
234
  }, [
223
- (s(), m(ce(t(O)(o.type)), {
224
- key: `${o.messageId ?? "mid"}-${F}`,
235
+ (s(), m(fe(e(z)(o.type)), {
236
+ key: `${o.messageId ?? "mid"}-${f}`,
225
237
  class: "message-feed__message",
226
238
  message: o,
227
- "apply-style": e.applyStyle,
239
+ "apply-style": t.applyStyle,
228
240
  "is-first-in-series": o.isFirstInSeries,
229
- "reactions-enabled": V.value,
230
- "subtext-tooltip-data": e.subtextTooltipData,
231
- onAction: t(L),
232
- onReply: t(P),
233
- onSmsInvite: (M) => G(o)
234
- }, null, 40, ["message", "apply-style", "is-first-in-series", "reactions-enabled", "subtext-tooltip-data", "onAction", "onReply", "onSmsInvite"]))
235
- ], 40, je))), 128)),
236
- e.typing ? (s(), m(ke, {
241
+ "reactions-enabled": E.value,
242
+ "subtext-tooltip-data": t.subtextTooltipData,
243
+ channel: P(o),
244
+ onAction: e(G),
245
+ onReply: e(J),
246
+ onSmsInvite: (g) => Q(o)
247
+ }, null, 40, ["message", "apply-style", "is-first-in-series", "reactions-enabled", "subtext-tooltip-data", "channel", "onAction", "onReply", "onSmsInvite"]))
248
+ ], 40, $e))), 128)),
249
+ t.typing ? (s(), m(Se, {
237
250
  key: 0,
238
251
  message: {
239
- subText: e.typing.title,
240
- avatar: e.typing.avatar
252
+ subText: t.typing.title,
253
+ avatar: t.typing.avatar
241
254
  }
242
255
  }, null, 8, ["message"])) : c("", !0),
243
- y(p, null, {
244
- default: k(() => [
245
- t(J) ? (s(), m(be, {
256
+ b(h, null, {
257
+ default: v(() => [
258
+ e(X) ? (s(), m(he, {
246
259
  key: 0,
247
260
  ref_key: "keyboardRef",
248
- ref: v,
261
+ ref: S,
249
262
  class: "message-feed__keyboard",
250
- keyboard: e.objects[e.objects.length - 1].keyboard,
251
- align: e.keyboardAlign,
252
- onAction: t(U)
263
+ keyboard: t.objects[t.objects.length - 1].keyboard,
264
+ align: t.keyboardAlign,
265
+ onAction: e(Y)
253
266
  }, null, 8, ["keyboard", "align", "onAction"])) : c("", !0)
254
267
  ]),
255
268
  _: 1
256
269
  }),
257
- y(p, null, {
258
- default: k(() => [
259
- t(K) ? (s(), d("button", {
270
+ b(h, null, {
271
+ default: v(() => [
272
+ e(O) ? (s(), d("button", {
260
273
  key: 0,
261
274
  class: "message-feed__button-down",
262
- onClick: se
275
+ onClick: re
263
276
  }, [
264
- e.buttonParams ? (s(), d("div", Ke, ue(e.buttonParams.unreadAmount), 1)) : c("", !0),
265
- r[3] || (r[3] = w("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
277
+ t.buttonParams ? (s(), d("div", Oe, ye(t.buttonParams.unreadAmount), 1)) : c("", !0),
278
+ a[3] || (a[3] = x("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
266
279
  ])) : c("", !0)
267
280
  ]),
268
281
  _: 1
269
282
  }),
270
- e.feedKeyboards && e.feedKeyboards.length > 0 ? (s(), m(pe, {
283
+ t.feedKeyboards && t.feedKeyboards.length > 0 ? (s(), m(ve, {
271
284
  key: 1,
272
- buttons: e.feedKeyboards,
273
- align: e.feedKeyboardAlign,
274
- onAction: t(H)
285
+ buttons: t.feedKeyboards,
286
+ align: t.feedKeyboardAlign,
287
+ onAction: e(Z)
275
288
  }, null, 8, ["buttons", "align", "onAction"])) : c("", !0)
276
- ], 44, we)) : (s(), d("div", {
289
+ ], 44, xe)) : (s(), d("div", {
277
290
  key: 1,
278
291
  ref_key: "refFeed",
279
- ref: n,
292
+ ref: r,
280
293
  class: "message-feed",
281
- style: I({ backgroundImage: `url(${T.value})` })
294
+ style: K({ backgroundImage: `url(${F.value})` })
282
295
  }, [
283
- w("div", xe, [
284
- me(a.$slots, "empty-feed", {}, void 0, !0)
296
+ x("div", Ve, [
297
+ ge(l.$slots, "empty-feed", {}, void 0, !0)
285
298
  ])
286
299
  ], 4)),
287
- t(R)().reply ? (s(), m(fe, {
300
+ e(I)().reply ? (s(), m(be, {
288
301
  key: 2,
289
- to: "#chat-input-reply-line-" + t(f)
302
+ to: "#chat-input-reply-line-" + e(y)
290
303
  }, [
291
- y(ge, {
304
+ b(ke, {
292
305
  class: "chat-input-reply",
293
- message: t(R)().reply,
294
- onReset: t(W)
306
+ message: e(I)().reply,
307
+ onReset: e(H)
295
308
  }, null, 8, ["message", "onReset"])
296
309
  ], 8, ["to"])) : c("", !0)
297
310
  ], 64));
298
311
  }
299
312
  });
300
313
  export {
301
- _e as default
314
+ ot as default
302
315
  };
@@ -160,10 +160,13 @@ export declare const chats: ({
160
160
  chatId: number;
161
161
  name: string;
162
162
  countUnread: number;
163
- lastMessage: string;
163
+ lastMessage: {
164
+ type: string;
165
+ data?: undefined;
166
+ };
167
+ 'lastMessage.status': string;
164
168
  'lastActivity.time': string;
165
169
  'lastActivity.timestamp': string;
166
- 'lastMessage.status': string;
167
170
  actions: {
168
171
  action: string;
169
172
  title: string;
@@ -190,6 +193,7 @@ export declare const chats: ({
190
193
  text: string;
191
194
  url: string;
192
195
  filename: string;
196
+ isVoiceMessage?: undefined;
193
197
  };
194
198
  };
195
199
  'lastMessage.status': string;
@@ -243,6 +247,7 @@ export declare const chats: ({
243
247
  text: string;
244
248
  url: string;
245
249
  filename: string;
250
+ isVoiceMessage?: undefined;
246
251
  };
247
252
  };
248
253
  'lastActivity.time': string;
@@ -297,6 +302,7 @@ export declare const chats: ({
297
302
  text: string;
298
303
  url: string;
299
304
  filename: string;
305
+ isVoiceMessage?: undefined;
300
306
  };
301
307
  };
302
308
  'lastActivity.time': string;
@@ -366,11 +372,76 @@ export declare const chats: ({
366
372
  text: string;
367
373
  url: string;
368
374
  filename: string;
375
+ isVoiceMessage?: undefined;
376
+ };
377
+ };
378
+ 'lastActivity.time': string;
379
+ 'lastActivity.timestamp': string;
380
+ 'lastMessage.status': string;
381
+ actions: {
382
+ action: string;
383
+ title: string;
384
+ }[];
385
+ metadata: string;
386
+ avatar?: undefined;
387
+ isFixedBottom?: undefined;
388
+ status?: undefined;
389
+ typing?: undefined;
390
+ dialogsExpanded?: undefined;
391
+ dialogs?: undefined;
392
+ contact?: undefined;
393
+ colorUnread?: undefined;
394
+ isFixedTop?: undefined;
395
+ statusMessage?: undefined;
396
+ isFixed?: undefined;
397
+ } | {
398
+ chatId: number;
399
+ name: string;
400
+ countUnread: number;
401
+ lastMessage: {
402
+ type: string;
403
+ data: {
404
+ url: string;
405
+ filename: string;
406
+ text?: undefined;
407
+ isVoiceMessage?: undefined;
369
408
  };
370
409
  };
410
+ 'lastMessage.status': string;
371
411
  'lastActivity.time': string;
372
412
  'lastActivity.timestamp': string;
413
+ actions: {
414
+ action: string;
415
+ title: string;
416
+ }[];
417
+ metadata: string;
418
+ avatar?: undefined;
419
+ isFixedBottom?: undefined;
420
+ status?: undefined;
421
+ typing?: undefined;
422
+ dialogsExpanded?: undefined;
423
+ dialogs?: undefined;
424
+ contact?: undefined;
425
+ colorUnread?: undefined;
426
+ isFixedTop?: undefined;
427
+ statusMessage?: undefined;
428
+ isFixed?: undefined;
429
+ } | {
430
+ chatId: number;
431
+ name: string;
432
+ countUnread: number;
433
+ lastMessage: {
434
+ type: string;
435
+ data: {
436
+ url: string;
437
+ filename: string;
438
+ isVoiceMessage: boolean;
439
+ text?: undefined;
440
+ };
441
+ };
373
442
  'lastMessage.status': string;
443
+ 'lastActivity.time': string;
444
+ 'lastActivity.timestamp': string;
374
445
  actions: {
375
446
  action: string;
376
447
  title: string;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export { default as AudioIcon } from './AudioIcon.vue';
2
+ export { default as FileIcon } from './FileIcon.vue';
3
+ export { default as ImageIcon } from './ImageIcon.vue';
4
+ export { default as MissedCallIcon } from './MissedCallIcon.vue';
5
+ export { default as StickerIcon } from './StickerIcon.vue';
6
+ export { default as VideoIcon } from './VideoIcon.vue';
7
+ export { default as VoiceIcon } from './VoiceIcon.vue';
@@ -29,10 +29,12 @@ export interface ILastMessageObject {
29
29
  channelId?: string;
30
30
  senderId?: string;
31
31
  type?: string;
32
+ isVoiceMessage?: boolean;
32
33
  data?: {
33
34
  text?: string;
34
35
  url?: string;
35
36
  filename?: string;
37
+ isVoiceMessage?: boolean;
36
38
  };
37
39
  timestampms?: number;
38
40
  channel?: {
@@ -21,6 +21,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  required: false;
22
22
  default: () => {};
23
23
  };
24
+ channel: {
25
+ type: StringConstructor;
26
+ required: false;
27
+ default: undefined;
28
+ };
24
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
30
  action: (...args: any[]) => void;
26
31
  reply: (...args: any[]) => void;
@@ -47,11 +52,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
52
  required: false;
48
53
  default: () => {};
49
54
  };
55
+ channel: {
56
+ type: StringConstructor;
57
+ required: false;
58
+ default: undefined;
59
+ };
50
60
  }>> & Readonly<{
51
61
  onAction?: ((...args: any[]) => any) | undefined;
52
62
  onReply?: ((...args: any[]) => any) | undefined;
53
63
  "onSms-invite"?: ((...args: any[]) => any) | undefined;
54
64
  }>, {
65
+ channel: string;
55
66
  applyStyle: Function;
56
67
  isFirstInSeries: boolean;
57
68
  reactionsEnabled: boolean;
@@ -21,6 +21,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  required: false;
22
22
  default: () => {};
23
23
  };
24
+ channel: {
25
+ type: StringConstructor;
26
+ required: false;
27
+ default: undefined;
28
+ };
24
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
30
  action: (...args: any[]) => void;
26
31
  reply: (...args: any[]) => void;
@@ -47,11 +52,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
52
  required: false;
48
53
  default: () => {};
49
54
  };
55
+ channel: {
56
+ type: StringConstructor;
57
+ required: false;
58
+ default: undefined;
59
+ };
50
60
  }>> & Readonly<{
51
61
  onAction?: ((...args: any[]) => any) | undefined;
52
62
  onReply?: ((...args: any[]) => any) | undefined;
53
63
  "onSms-invite"?: ((...args: any[]) => any) | undefined;
54
64
  }>, {
65
+ channel: string;
55
66
  applyStyle: Function;
56
67
  isFirstInSeries: boolean;
57
68
  reactionsEnabled: boolean;
@@ -21,6 +21,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  required: false;
22
22
  default: () => {};
23
23
  };
24
+ channel: {
25
+ type: StringConstructor;
26
+ required: false;
27
+ default: undefined;
28
+ };
24
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
30
  action: (...args: any[]) => void;
26
31
  reply: (...args: any[]) => void;
@@ -47,11 +52,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
52
  required: false;
48
53
  default: () => {};
49
54
  };
55
+ channel: {
56
+ type: StringConstructor;
57
+ required: false;
58
+ default: undefined;
59
+ };
50
60
  }>> & Readonly<{
51
61
  onAction?: ((...args: any[]) => any) | undefined;
52
62
  onReply?: ((...args: any[]) => any) | undefined;
53
63
  "onSms-invite"?: ((...args: any[]) => any) | undefined;
54
64
  }>, {
65
+ channel: string;
55
66
  applyStyle: Function;
56
67
  isFirstInSeries: boolean;
57
68
  reactionsEnabled: boolean;