@gamelearn/arcade-components 3.0.3 → 3.1.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.
- package/dist/arcade-components.cjs +2 -2
- package/dist/arcade-components.js +17 -14
- package/package.json +1 -2
|
@@ -13150,28 +13150,31 @@ function UrlComponent({
|
|
|
13150
13150
|
viewed: f,
|
|
13151
13151
|
documentType: d,
|
|
13152
13152
|
soundActions: h,
|
|
13153
|
-
keyboardControl: y
|
|
13153
|
+
keyboardControl: y,
|
|
13154
|
+
visible: E
|
|
13154
13155
|
}) {
|
|
13155
|
-
const
|
|
13156
|
+
const p = (A) => o({ type: "translate", payload: A }), _ = {
|
|
13156
13157
|
documentType: d,
|
|
13157
13158
|
name: r,
|
|
13158
13159
|
text: l,
|
|
13159
13160
|
link: n,
|
|
13160
13161
|
type: "url"
|
|
13161
|
-
}, [
|
|
13162
|
-
|
|
13163
|
-
}, [
|
|
13164
|
-
y(null, !f &&
|
|
13165
|
-
const
|
|
13166
|
-
return
|
|
13167
|
-
|
|
13162
|
+
}, [g] = h, x = () => {
|
|
13163
|
+
g("click-ui"), o({ type: "finishMedia", payload: _ });
|
|
13164
|
+
}, [C, T] = useState(!1);
|
|
13165
|
+
y(null, !f && C ? x : null, !f && C ? x : null);
|
|
13166
|
+
const S = t.indexOf("http") !== 0 ? `http://${t}` : t;
|
|
13167
|
+
return useEffect(() => {
|
|
13168
|
+
E || x();
|
|
13169
|
+
}), E && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup--layer", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "popup popup--link", children: [
|
|
13170
|
+
!f && C ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13168
13171
|
"button",
|
|
13169
13172
|
{
|
|
13170
13173
|
className: "popup--close unset-button",
|
|
13171
13174
|
"data-testid": "close",
|
|
13172
13175
|
type: "button",
|
|
13173
|
-
"aria-label":
|
|
13174
|
-
onClick: () =>
|
|
13176
|
+
"aria-label": p("storylines.misc.closePiece"),
|
|
13177
|
+
onClick: () => x(),
|
|
13175
13178
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-close" })
|
|
13176
13179
|
}
|
|
13177
13180
|
) : null,
|
|
@@ -13181,11 +13184,11 @@ function UrlComponent({
|
|
|
13181
13184
|
"a",
|
|
13182
13185
|
{
|
|
13183
13186
|
className: "popup--link__lineclamp popup--link__url",
|
|
13184
|
-
href:
|
|
13187
|
+
href: S,
|
|
13185
13188
|
target: "_blank",
|
|
13186
13189
|
rel: "noopener noreferrer",
|
|
13187
13190
|
onClick: () => {
|
|
13188
|
-
|
|
13191
|
+
g("click-ui"), T(!0);
|
|
13189
13192
|
},
|
|
13190
13193
|
children: u || t
|
|
13191
13194
|
}
|
|
@@ -26962,7 +26965,7 @@ function DecisionComponent({ emitEvent: o, soundActions: e, keyboardControl: r,
|
|
|
26962
26965
|
${_ === "results" ? "conversation--layer__feedback" : ""}`,
|
|
26963
26966
|
children: V
|
|
26964
26967
|
}
|
|
26965
|
-
) : V, L = ({ children: V }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup--layer", children: V }), F = ({ children: V }) => {
|
|
26968
|
+
) : V, L = ({ children: V }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup--layer popup--layer--transparent", children: V }), F = ({ children: V }) => {
|
|
26966
26969
|
var ee, q;
|
|
26967
26970
|
let W = {};
|
|
26968
26971
|
return W = (ee = a.background) != null && ee.img ? { backgroundImage: `url("${(q = a.background.img) == null ? void 0 : q.url}")` } : null, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `conversation ${t ? "conversation--inScene" : ""}`, style: W, children: [
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@gamelearn/arcade-components",
|
|
3
3
|
"author": "Gamelearn",
|
|
4
4
|
"license": "unlicense",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.1.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/preset-env": "^7.23.6",
|
|
35
35
|
"@babel/preset-react": "^7.23.3",
|
|
36
|
-
"@gamelearn/arcade-styles": "2.25.1",
|
|
37
36
|
"@gamelearn/arcade-three-core": "2.5.0",
|
|
38
37
|
"@gamelearn/version": "^1.3.1",
|
|
39
38
|
"@react-three/drei": "9.89.0",
|