tg-blog 1.3.2 → 1.3.3
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/style.css +1 -1
- package/dist/tg-blog.cjs.js +2 -2
- package/dist/tg-blog.cjs.js.map +1 -1
- package/dist/tg-blog.es.js +19 -14
- package/dist/tg-blog.es.js.map +1 -1
- package/dist/tg-blog.umd.js +2 -2
- package/dist/tg-blog.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/views/AudioPlayer.vue +2 -2
- package/src/views/PostMediaContent.vue +56 -57
package/dist/tg-blog.es.js
CHANGED
|
@@ -1157,10 +1157,10 @@ var Lr = ["src", "onClick"], Rr = /*#__PURE__*/ je(/* @__PURE__ */ He({
|
|
|
1157
1157
|
});
|
|
1158
1158
|
let a = z(() => n.images.length ? Tr(n.images, n.maxWidth, n.maxHeight) : null), o = z(() => {
|
|
1159
1159
|
if (!a.value) return {};
|
|
1160
|
-
let e = n.scale, t = a.value.containerStyle;
|
|
1160
|
+
let e = n.scale, t = a.value.containerStyle, r = t.width || Math.max(0, ...a.value.layout.map((e) => e.dimensions.x + e.dimensions.width)), i = t.height || Math.max(0, ...a.value.layout.map((e) => e.dimensions.y + e.dimensions.height));
|
|
1161
1161
|
return {
|
|
1162
|
-
width:
|
|
1163
|
-
height:
|
|
1162
|
+
width: r * e + "px",
|
|
1163
|
+
height: i * e + "px"
|
|
1164
1164
|
};
|
|
1165
1165
|
});
|
|
1166
1166
|
function s(e) {
|
|
@@ -1182,12 +1182,13 @@ var Lr = ["src", "onClick"], Rr = /*#__PURE__*/ je(/* @__PURE__ */ He({
|
|
|
1182
1182
|
n.add(t), i.value = n, e.spoiler = !1;
|
|
1183
1183
|
} else r("click-img", t);
|
|
1184
1184
|
}
|
|
1185
|
-
return (t, n) => (K(), H(
|
|
1186
|
-
bleed: e.bleed,
|
|
1187
|
-
compact: e.compact
|
|
1188
|
-
}]) }, [e.images.length ? (K(), H("div", {
|
|
1185
|
+
return (t, n) => (K(), H(R, null, [e.images.length ? (K(), H("div", {
|
|
1189
1186
|
key: 0,
|
|
1190
|
-
class: W(["images", {
|
|
1187
|
+
class: W(["images", {
|
|
1188
|
+
"has-head": e.hasHead,
|
|
1189
|
+
bleed: e.bleed,
|
|
1190
|
+
compact: e.compact
|
|
1191
|
+
}]),
|
|
1191
1192
|
style: G(o.value)
|
|
1192
1193
|
}, [(K(!0), H(R, null, Xe(e.images, (e, t) => (K(), H("div", {
|
|
1193
1194
|
class: "image_container",
|
|
@@ -1201,7 +1202,11 @@ var Lr = ["src", "onClick"], Rr = /*#__PURE__*/ je(/* @__PURE__ */ He({
|
|
|
1201
1202
|
style: { inset: "0" }
|
|
1202
1203
|
}, null, 10, Lr)], 4))), 128))], 6)) : V("", !0), e.files.length ? (K(), H("div", {
|
|
1203
1204
|
key: 1,
|
|
1204
|
-
class: W(["files", {
|
|
1205
|
+
class: W(["files", {
|
|
1206
|
+
"has-images": e.images.length > 0,
|
|
1207
|
+
bleed: e.bleed,
|
|
1208
|
+
compact: e.compact
|
|
1209
|
+
}])
|
|
1205
1210
|
}, [(K(!0), H(R, null, Xe(e.files, (t, i) => (K(), B(vr, {
|
|
1206
1211
|
key: `${t.url}-${i}`,
|
|
1207
1212
|
f: t,
|
|
@@ -1217,9 +1222,9 @@ var Lr = ["src", "onClick"], Rr = /*#__PURE__*/ je(/* @__PURE__ */ He({
|
|
|
1217
1222
|
"interactive",
|
|
1218
1223
|
"poll-state",
|
|
1219
1224
|
"poll-voting"
|
|
1220
|
-
]))), 128))], 2)) : V("", !0)],
|
|
1225
|
+
]))), 128))], 2)) : V("", !0)], 64));
|
|
1221
1226
|
}
|
|
1222
|
-
}), [["__scopeId", "data-v-
|
|
1227
|
+
}), [["__scopeId", "data-v-1d5915cb"]]);
|
|
1223
1228
|
// src/logic/spoilers.ts
|
|
1224
1229
|
function zr(e, t) {
|
|
1225
1230
|
for (; (t = t.parentElement) && !t.classList.contains(e););
|
|
@@ -21584,7 +21589,7 @@ var Uc = Ue({
|
|
|
21584
21589
|
i.value && (i.value.pause(), s.value++, r("pause"));
|
|
21585
21590
|
}
|
|
21586
21591
|
function u() {
|
|
21587
|
-
i.value && (i.value.play(), s.value++, r("play"));
|
|
21592
|
+
i.value && (i.value.play().catch(() => {}), s.value++, r("play"));
|
|
21588
21593
|
}
|
|
21589
21594
|
function d() {
|
|
21590
21595
|
r("next");
|
|
@@ -21605,7 +21610,7 @@ var Uc = Ue({
|
|
|
21605
21610
|
s.value++;
|
|
21606
21611
|
}, e.onended = () => {
|
|
21607
21612
|
s.value++, d();
|
|
21608
|
-
}, e.play();
|
|
21613
|
+
}, e.play().catch(() => {});
|
|
21609
21614
|
}
|
|
21610
21615
|
return X(() => n.audio, p, { immediate: !0 }), Ke(() => {
|
|
21611
21616
|
i.value && i.value.pause();
|
|
@@ -21634,7 +21639,7 @@ var Uc = Ue({
|
|
|
21634
21639
|
])])]);
|
|
21635
21640
|
};
|
|
21636
21641
|
}
|
|
21637
|
-
}), Yc = /* @__PURE__ */ t({ default: () => Xc }), Xc = /*#__PURE__*/ je(Jc, [["__scopeId", "data-v-
|
|
21642
|
+
}), Yc = /* @__PURE__ */ t({ default: () => Xc }), Xc = /*#__PURE__*/ je(Jc, [["__scopeId", "data-v-8f6d6bcd"]]), Zc = { class: "question" }, Qc = { class: "subtitle" }, $c = {
|
|
21638
21643
|
key: 0,
|
|
21639
21644
|
class: "closed-tag"
|
|
21640
21645
|
}, el = {
|