@mobilon-dev/chotto 0.3.111 → 0.3.112
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_blocks/FeedFoundItem/FeedFoundItem.vue.js +2 -2
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +37 -25
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +341 -253
- package/dist/hooks/messages/buildReplyPayload.js +14 -12
- package/dist/hooks/messages/getImageMessageItems.js +21 -0
- package/dist/hooks/validators/messages/messageValidator.js +49 -42
- package/dist/index.js +80 -77
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/src/apps/data/messages.d.ts +250 -77
- package/dist/types/src/components/2_feed_elements/ImageMessage/stories/ImageMessage.stories.d.ts +3 -0
- package/dist/types/src/components/2_feed_elements/ImageMessage/styles/types.d.ts +40 -0
- package/dist/types/src/components/2_feed_elements/types/components.d.ts +3 -1
- package/dist/types/src/components/2_feed_elements/types/messages.d.ts +15 -1
- package/dist/types/src/hooks/messages/buildReplyPayload.d.ts +2 -1
- package/dist/types/src/hooks/messages/getImageMessageItems.d.ts +12 -0
- package/dist/types/src/hooks/messages/index.d.ts +1 -0
- package/dist/types/src/hooks/validators/messages/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FeedFoundItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ead1327f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as u, computed as l, createElementBlock as o, openBlock as s, normalizeClass as r, createElementVNode as i, toDisplayString as c, createCommentVNode as m } from "vue";
|
|
2
|
+
import "../../../locale/useLocale.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
5
|
+
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
6
|
+
import "../../../functions/parseMarkdown.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { getPrimaryImageItem as f } from "../../../hooks/messages/getImageMessageItems.js";
|
|
10
|
+
const p = { class: "feed-found-item__avatar-container" }, _ = ["src"], g = {
|
|
3
11
|
key: 1,
|
|
4
12
|
class: "pi pi-user"
|
|
5
|
-
},
|
|
13
|
+
}, h = { class: "feed-found-item__info" }, v = { class: "feed-found-item__first-line" }, b = { class: "feed-found-item__name" }, j = { class: "feed-found-item__time" }, y = { class: "feed-found-item__second-line" }, x = ["src"], S = /* @__PURE__ */ u({
|
|
6
14
|
__name: "FeedFoundItem",
|
|
7
15
|
props: {
|
|
8
16
|
object: {
|
|
@@ -14,48 +22,52 @@ const u = { class: "feed-found-item__avatar-container" }, f = ["src"], _ = {
|
|
|
14
22
|
default: !1
|
|
15
23
|
}
|
|
16
24
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
25
|
+
setup(t) {
|
|
26
|
+
const n = t, a = l(() => {
|
|
27
|
+
if (n.object.type !== "message.image") return "";
|
|
28
|
+
const e = f(n.object);
|
|
29
|
+
return (e == null ? void 0 : e.imagePreviewUrl) || (e == null ? void 0 : e.url) || "";
|
|
30
|
+
}), d = l(() => ({
|
|
19
31
|
"message.file": "pi pi-file",
|
|
20
32
|
"message.audio": "pi pi-volume-up",
|
|
21
33
|
"message.video": "pi pi-video",
|
|
22
34
|
"message.call": "pi pi-phone"
|
|
23
|
-
})[
|
|
24
|
-
return (
|
|
25
|
-
class:
|
|
35
|
+
})[n.object.type] || null);
|
|
36
|
+
return (e, k) => (s(), o("div", {
|
|
37
|
+
class: r(["feed-found-item__container", { "feed-found-item__selected-container": t.selected }])
|
|
26
38
|
}, [
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
i("div", p, [
|
|
40
|
+
t.object.avatar ? (s(), o("img", {
|
|
29
41
|
key: 0,
|
|
30
|
-
src:
|
|
42
|
+
src: t.object.avatar,
|
|
31
43
|
width: "48",
|
|
32
44
|
height: "48"
|
|
33
|
-
}, null, 8,
|
|
45
|
+
}, null, 8, _)) : (s(), o("span", g))
|
|
34
46
|
]),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
i("div", h, [
|
|
48
|
+
i("div", v, [
|
|
49
|
+
i("p", b, c(t.object.subtext), 1),
|
|
50
|
+
i("p", j, c(t.object.time), 1)
|
|
39
51
|
]),
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
i("div", y, [
|
|
53
|
+
a.value ? (s(), o("img", {
|
|
42
54
|
key: 0,
|
|
43
|
-
src:
|
|
55
|
+
src: a.value,
|
|
44
56
|
style: { "margin-right": "3px" },
|
|
45
57
|
width: "24",
|
|
46
58
|
height: "24"
|
|
47
|
-
}, null, 8,
|
|
48
|
-
|
|
59
|
+
}, null, 8, x)) : m("", !0),
|
|
60
|
+
d.value ? (s(), o("span", {
|
|
49
61
|
key: 1,
|
|
50
|
-
class:
|
|
62
|
+
class: r(d.value),
|
|
51
63
|
style: { "margin-right": "3px", "font-size": "20px" }
|
|
52
|
-
}, null, 2)) :
|
|
53
|
-
|
|
64
|
+
}, null, 2)) : m("", !0),
|
|
65
|
+
i("p", null, c(t.object.text), 1)
|
|
54
66
|
])
|
|
55
67
|
])
|
|
56
68
|
], 2));
|
|
57
69
|
}
|
|
58
70
|
});
|
|
59
71
|
export {
|
|
60
|
-
|
|
72
|
+
S as default
|
|
61
73
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ImageMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-54182b88"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|