@gamelearn/arcade-components 3.14.5 → 3.14.7
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.
|
@@ -29982,6 +29982,7 @@ function BasicDecision({
|
|
|
29982
29982
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup--buttons", children: (s ? !o : (t == null ? void 0 : t.id) !== void 0) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29983
29983
|
"button",
|
|
29984
29984
|
{
|
|
29985
|
+
"data-testid": "continueButtonDecision",
|
|
29985
29986
|
type: "button",
|
|
29986
29987
|
className: `gat--btn__navigation ${p || (t == null ? void 0 : t.id) === void 0 ? "disabled" : ""}`,
|
|
29987
29988
|
onClick: () => T(),
|
|
@@ -30004,6 +30005,7 @@ function ComplexDecision({ question: l, inScene: e, disabled: n, onNext: t, chil
|
|
|
30004
30005
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30005
30006
|
"button",
|
|
30006
30007
|
{
|
|
30008
|
+
"data-testid": "continueButtonComplexDecision",
|
|
30007
30009
|
className: `gat--btn__round ${n ? "disabled" : ""}`,
|
|
30008
30010
|
type: "button",
|
|
30009
30011
|
onClick: () => !n && t(),
|
|
@@ -30057,17 +30059,17 @@ function DecisionBody({
|
|
|
30057
30059
|
}
|
|
30058
30060
|
);
|
|
30059
30061
|
}
|
|
30060
|
-
function Wrapper({ children: l, inherit: e
|
|
30061
|
-
return e ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className:
|
|
30062
|
+
function Wrapper({ children: l, inherit: e }) {
|
|
30063
|
+
return e ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "conversation--feedback", children: l }) : l;
|
|
30062
30064
|
}
|
|
30063
30065
|
function FeedBack({ choice: l, inherited: e, question: n }) {
|
|
30064
|
-
return l.feedback ? /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { inherit: e,
|
|
30066
|
+
return l.feedback ? /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper, { inherit: e, children: l.feedback && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
30065
30067
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "conversation--feedback__title", children: n }),
|
|
30066
30068
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "conversation--feedback__text", dir: "auto", children: [
|
|
30067
30069
|
l.right ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-check-circle-black color--success" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-error-circle-black color--error" }),
|
|
30068
30070
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "conversation--feedback__wysiwyg", children: HTMLReactParser$1(l.feedback) })
|
|
30069
30071
|
] })
|
|
30070
|
-
] })
|
|
30072
|
+
] }) }) : null;
|
|
30071
30073
|
}
|
|
30072
30074
|
function DecisionComponent({ emitEvent: l, soundActions: e, keyboardControl: n, inScene: t, ...s }) {
|
|
30073
30075
|
var M, U;
|
|
@@ -58490,11 +58492,11 @@ function TextClickPuzzleComponent({
|
|
|
58490
58492
|
backgroundImage: u != null && u.url ? `url('${u.url}')` : ""
|
|
58491
58493
|
};
|
|
58492
58494
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
58493
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: H, style: W, children: [
|
|
58495
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-testid": "wrapperDiv", className: H, style: W, children: [
|
|
58494
58496
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-click__overlay", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `text-click__container ${F ? "slideInLeft" : ""} `, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-click__body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-click__scroll", dir: LangIsRtl() ? "rtl" : "auto", children: B.current }) }) }) }),
|
|
58495
58497
|
e && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-click__paginator", children: [
|
|
58496
58498
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-click__icon-check-circle-black", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-check-circle-black" }) }),
|
|
58497
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-click__slide", children: [
|
|
58499
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { "data-testid": "slideCounter", className: "text-click__slide", children: [
|
|
58498
58500
|
w,
|
|
58499
58501
|
" / ",
|
|
58500
58502
|
b
|