@gamelearn/arcade-components 3.14.4 → 3.14.6

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, feedback: n }) {
30061
- return e ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `conversation--feedback ${n ? "" : "only--rewards"}`, children: l }) : n ? l : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "popup__basicDecision__only--rewards only--rewards", children: l });
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, feedback: l.feedback, children: l.feedback ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
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
- ] }) : null }) : null;
30072
+ ] }) }) : null;
30071
30073
  }
30072
30074
  function DecisionComponent({ emitEvent: l, soundActions: e, keyboardControl: n, inScene: t, ...s }) {
30073
30075
  var M, U;
@@ -30630,31 +30632,40 @@ function Vignette({ vignette: l, alias: e, translate: n, backgroundImageCover: t
30630
30632
  document.querySelector(`#${p}`).focus(), h(!d);
30631
30633
  };
30632
30634
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
30633
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `comic-image ${t ? "comic-image--cover" : ""}`, children: o && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: o, alt: "comic pic" }) }),
30634
- (u = l == null ? void 0 : l.textData) != null && u.text ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `comic-collapsable ${d ? "comic-collapsable--opened" : ""}`, children: [
30635
- /* @__PURE__ */ jsxRuntimeExports.jsx(
30636
- "button",
30637
- {
30638
- id: "buttonDown",
30639
- onClick: () => f("buttonUp"),
30640
- type: "button",
30641
- className: "un-btn comic-collapsable__headertoggle",
30642
- "aria-label": n("comic.toggleText"),
30643
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-down-arrow" })
30644
- }
30645
- ),
30646
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "comic-collapsable__text", children: [
30647
- e ? /* @__PURE__ */ jsxRuntimeExports.jsxs("b", { children: [
30648
- e,
30649
- ": "
30650
- ] }) : null,
30651
- HTMLReactParser$1(l.textData.text)
30652
- ] })
30653
- ] }) : null,
30635
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-testid": "comic-image", className: `comic-image ${t ? "comic-image--cover" : ""}`, children: o && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: o, alt: "comic pic" }) }),
30636
+ (u = l == null ? void 0 : l.textData) != null && u.text ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
30637
+ "div",
30638
+ {
30639
+ "data-testid": "comicCollapsable",
30640
+ className: `comic-collapsable ${d ? "comic-collapsable--opened" : ""}`,
30641
+ children: [
30642
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
30643
+ "button",
30644
+ {
30645
+ id: "buttonDown",
30646
+ "data-testid": "buttonDown",
30647
+ onClick: () => f("buttonUp"),
30648
+ type: "button",
30649
+ className: "un-btn comic-collapsable__headertoggle",
30650
+ "aria-label": n("comic.toggleText"),
30651
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-down-arrow" })
30652
+ }
30653
+ ),
30654
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "comic-collapsable__text", children: [
30655
+ e ? /* @__PURE__ */ jsxRuntimeExports.jsxs("b", { children: [
30656
+ e,
30657
+ ": "
30658
+ ] }) : null,
30659
+ HTMLReactParser$1(l.textData.text)
30660
+ ] })
30661
+ ]
30662
+ }
30663
+ ) : null,
30654
30664
  /* @__PURE__ */ jsxRuntimeExports.jsx(
30655
30665
  "button",
30656
30666
  {
30657
30667
  id: "buttonUp",
30668
+ "data-testid": "buttonUp",
30658
30669
  tabIndex: d ? "-1" : "0",
30659
30670
  "aria-hidden": d,
30660
30671
  className: `unset-button comic-buttonup