@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.
- package/dist/chotto.css +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +145 -132
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +24 -0
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -0
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +19 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +94 -89
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +90 -85
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +97 -92
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +91 -86
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +70 -65
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +93 -88
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +167 -154
- package/dist/types/apps/data/chats.d.ts +73 -2
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/index.d.ts +7 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useFeedButton as
|
|
8
|
-
import { useFeedComponents as
|
|
9
|
-
import { useFeedGrouping as
|
|
10
|
-
import { useFeedKeyboard as
|
|
11
|
-
import { useFeedLoadMore as
|
|
12
|
-
import { useFeedMessageVisibility as
|
|
13
|
-
import { useFeedReply as
|
|
14
|
-
import { useFeedScroll as
|
|
15
|
-
import { useFeedScrollTo as
|
|
16
|
-
import { useStickyDate as
|
|
17
|
-
import { throttle as
|
|
18
|
-
import
|
|
19
|
-
const
|
|
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
|
-
},
|
|
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: (
|
|
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: (
|
|
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(
|
|
100
|
-
const
|
|
101
|
-
isShowButton:
|
|
102
|
-
isKeyboardPlace:
|
|
103
|
-
checkButtonVisibility:
|
|
104
|
-
} =
|
|
105
|
-
feedRef:
|
|
106
|
-
keyboardRef:
|
|
107
|
-
}), { componentsMap:
|
|
108
|
-
objects: i(() =>
|
|
109
|
-
}),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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(() =>
|
|
129
|
+
isLoadingMoreRef: i(() => n.isLoadingMore)
|
|
118
130
|
}), {
|
|
119
|
-
getMessage:
|
|
120
|
-
messageAction:
|
|
121
|
-
handleClickReplied:
|
|
122
|
-
feedObjectDoubleClick:
|
|
123
|
-
handleResetReply:
|
|
124
|
-
} =
|
|
125
|
-
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
|
|
129
|
-
u("smsInvite",
|
|
140
|
+
function Q(l) {
|
|
141
|
+
u("smsInvite", l);
|
|
130
142
|
}
|
|
131
143
|
const {
|
|
132
|
-
showKeyboard:
|
|
133
|
-
keyboardAction:
|
|
134
|
-
feedKeyboardAction:
|
|
135
|
-
} =
|
|
136
|
-
isKeyboardPlace:
|
|
137
|
-
objects: i(() =>
|
|
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:
|
|
141
|
-
stickyDateText:
|
|
142
|
-
show:
|
|
143
|
-
} =
|
|
144
|
-
feedRef:
|
|
145
|
-
trackingObjects:
|
|
152
|
+
showStickyDate: _,
|
|
153
|
+
stickyDateText: ee,
|
|
154
|
+
show: te
|
|
155
|
+
} = we({
|
|
156
|
+
feedRef: r,
|
|
157
|
+
trackingObjects: p
|
|
146
158
|
}), {
|
|
147
|
-
isInitialized:
|
|
148
|
-
performScrollToBottom:
|
|
149
|
-
ensureScrollToBottom:
|
|
150
|
-
initializeScroll:
|
|
151
|
-
smoothScrollToBottom:
|
|
152
|
-
} =
|
|
153
|
-
feedRef:
|
|
154
|
-
objectsRef: i(() =>
|
|
155
|
-
scrollToBottomRef: i(() =>
|
|
156
|
-
}),
|
|
157
|
-
function
|
|
158
|
-
|
|
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
|
|
161
|
-
function
|
|
162
|
-
u("forceScrollToBottom"),
|
|
172
|
+
const ae = je(() => M(), 250);
|
|
173
|
+
function re() {
|
|
174
|
+
u("forceScrollToBottom"), le();
|
|
163
175
|
}
|
|
164
|
-
const { restartObserving:
|
|
165
|
-
feedRef:
|
|
166
|
-
trackingObjects:
|
|
167
|
-
chatAppId:
|
|
168
|
-
onMessageVisible: (
|
|
176
|
+
const { restartObserving: ie } = Ce({
|
|
177
|
+
feedRef: r,
|
|
178
|
+
trackingObjects: p,
|
|
179
|
+
chatAppId: y,
|
|
180
|
+
onMessageVisible: (l) => u("messageVisible", l)
|
|
169
181
|
});
|
|
170
|
-
return
|
|
171
|
-
() =>
|
|
182
|
+
return ce(
|
|
183
|
+
() => n.objects,
|
|
172
184
|
() => {
|
|
173
|
-
|
|
174
|
-
|
|
185
|
+
w(() => {
|
|
186
|
+
W(), M(!1), p.value = document.querySelectorAll(".tracking-message"), ie();
|
|
175
187
|
});
|
|
176
188
|
},
|
|
177
189
|
{ immediate: !0 }
|
|
178
|
-
),
|
|
179
|
-
targetIdRef: i(() =>
|
|
180
|
-
feedContainerId: `feed-container-${
|
|
181
|
-
}),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
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
|
-
|
|
200
|
+
C();
|
|
189
201
|
}, 800));
|
|
190
202
|
});
|
|
191
|
-
|
|
203
|
+
r.value && l.observe(r.value);
|
|
192
204
|
});
|
|
193
|
-
}), (
|
|
194
|
-
|
|
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-" +
|
|
208
|
+
id: "feed-container-" + e(y),
|
|
197
209
|
ref_key: "refFeed",
|
|
198
|
-
ref:
|
|
210
|
+
ref: r,
|
|
199
211
|
class: "message-feed",
|
|
200
|
-
style:
|
|
201
|
-
onScroll:
|
|
202
|
-
onMousedown:
|
|
203
|
-
(...o) =>
|
|
204
|
-
onMouseup:
|
|
205
|
-
(...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
|
-
|
|
208
|
-
default:
|
|
209
|
-
|
|
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:
|
|
224
|
+
text: e(ee)
|
|
213
225
|
}, null, 8, ["text"])) : c("", !0)
|
|
214
226
|
]),
|
|
215
227
|
_: 1
|
|
216
228
|
}),
|
|
217
|
-
(s(!0), d(
|
|
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"}-${
|
|
231
|
+
key: `${o.messageId ?? "mid"}-${f}`,
|
|
220
232
|
class: "tracking-message",
|
|
221
|
-
onDblclick: (
|
|
233
|
+
onDblclick: (g) => e(U)(g, o)
|
|
222
234
|
}, [
|
|
223
|
-
(s(), m(
|
|
224
|
-
key: `${o.messageId ?? "mid"}-${
|
|
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":
|
|
239
|
+
"apply-style": t.applyStyle,
|
|
228
240
|
"is-first-in-series": o.isFirstInSeries,
|
|
229
|
-
"reactions-enabled":
|
|
230
|
-
"subtext-tooltip-data":
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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:
|
|
240
|
-
avatar:
|
|
252
|
+
subText: t.typing.title,
|
|
253
|
+
avatar: t.typing.avatar
|
|
241
254
|
}
|
|
242
255
|
}, null, 8, ["message"])) : c("", !0),
|
|
243
|
-
|
|
244
|
-
default:
|
|
245
|
-
|
|
256
|
+
b(h, null, {
|
|
257
|
+
default: v(() => [
|
|
258
|
+
e(X) ? (s(), m(he, {
|
|
246
259
|
key: 0,
|
|
247
260
|
ref_key: "keyboardRef",
|
|
248
|
-
ref:
|
|
261
|
+
ref: S,
|
|
249
262
|
class: "message-feed__keyboard",
|
|
250
|
-
keyboard:
|
|
251
|
-
align:
|
|
252
|
-
onAction:
|
|
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
|
-
|
|
258
|
-
default:
|
|
259
|
-
|
|
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:
|
|
275
|
+
onClick: re
|
|
263
276
|
}, [
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
283
|
+
t.feedKeyboards && t.feedKeyboards.length > 0 ? (s(), m(ve, {
|
|
271
284
|
key: 1,
|
|
272
|
-
buttons:
|
|
273
|
-
align:
|
|
274
|
-
onAction:
|
|
285
|
+
buttons: t.feedKeyboards,
|
|
286
|
+
align: t.feedKeyboardAlign,
|
|
287
|
+
onAction: e(Z)
|
|
275
288
|
}, null, 8, ["buttons", "align", "onAction"])) : c("", !0)
|
|
276
|
-
], 44,
|
|
289
|
+
], 44, xe)) : (s(), d("div", {
|
|
277
290
|
key: 1,
|
|
278
291
|
ref_key: "refFeed",
|
|
279
|
-
ref:
|
|
292
|
+
ref: r,
|
|
280
293
|
class: "message-feed",
|
|
281
|
-
style:
|
|
294
|
+
style: K({ backgroundImage: `url(${F.value})` })
|
|
282
295
|
}, [
|
|
283
|
-
|
|
284
|
-
|
|
296
|
+
x("div", Ve, [
|
|
297
|
+
ge(l.$slots, "empty-feed", {}, void 0, !0)
|
|
285
298
|
])
|
|
286
299
|
], 4)),
|
|
287
|
-
|
|
300
|
+
e(I)().reply ? (s(), m(be, {
|
|
288
301
|
key: 2,
|
|
289
|
-
to: "#chat-input-reply-line-" +
|
|
302
|
+
to: "#chat-input-reply-line-" + e(y)
|
|
290
303
|
}, [
|
|
291
|
-
|
|
304
|
+
b(ke, {
|
|
292
305
|
class: "chat-input-reply",
|
|
293
|
-
message:
|
|
294
|
-
onReset:
|
|
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
|
-
|
|
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:
|
|
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;
|