@gamelearn/arcade-components 3.32.0 → 3.32.1
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.
|
@@ -30742,15 +30742,28 @@ function ConversationalComponent({
|
|
|
30742
30742
|
) });
|
|
30743
30743
|
}
|
|
30744
30744
|
function Vignette({ vignette: l, alias: e, translate: n, backgroundImageCover: t }) {
|
|
30745
|
-
var
|
|
30745
|
+
var _;
|
|
30746
30746
|
const o = (l.img || {
|
|
30747
30747
|
url: "https://min.gamelearn.io/css-resources/gamelearn/resources/conversation.jpg"
|
|
30748
|
-
}).url, [d, h] = useState(!0), f = (
|
|
30749
|
-
document.querySelector(`#${
|
|
30748
|
+
}).url, [d, h] = useState(!0), f = (T) => {
|
|
30749
|
+
document.querySelector(`#${T}`).focus(), h(!d);
|
|
30750
|
+
}, u = /\.(mp4|mov|webm)$/i.test(o), p = {
|
|
30751
|
+
src: o,
|
|
30752
|
+
style: t ? {
|
|
30753
|
+
minHeight: "100%",
|
|
30754
|
+
minWidth: "100%",
|
|
30755
|
+
position: "fixed",
|
|
30756
|
+
top: "50%",
|
|
30757
|
+
left: "50%",
|
|
30758
|
+
transform: "translate(-50%, -50%)"
|
|
30759
|
+
} : { height: "100%", width: "100%" }
|
|
30750
30760
|
};
|
|
30751
30761
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
30752
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
30753
|
-
|
|
30762
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-testid": "comic-image", className: `comic-image ${t ? "comic-image--cover" : ""}`, children: [
|
|
30763
|
+
u && /* @__PURE__ */ jsxRuntimeExports.jsx("video", { "data-testid": "videoTestId", autoPlay: !0, ...p }),
|
|
30764
|
+
o && !u && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: o, alt: "comic pic" })
|
|
30765
|
+
] }),
|
|
30766
|
+
(_ = l == null ? void 0 : l.textData) != null && _.text ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
30754
30767
|
"div",
|
|
30755
30768
|
{
|
|
30756
30769
|
"data-testid": "comicCollapsable",
|