@gamelearn/arcade-components 3.14.0 → 3.14.2

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.
@@ -14336,7 +14336,7 @@ function PdfVisor({ url: l, endPdf: e, emitNumberOfPages: n, translate: t, sound
14336
14336
  const w = () => {
14337
14337
  p(!1);
14338
14338
  };
14339
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pdf-box", dir: LangIsRtl() ? "rtl" : "auto", children: [
14339
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "full-height", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pdf-box", dir: LangIsRtl() ? "rtl" : "auto", children: [
14340
14340
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pdf-box__scrollwrap", children: [
14341
14341
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
14342
14342
  "div",
@@ -14425,7 +14425,7 @@ function PdfComponent({
14425
14425
  }, k = (F) => {
14426
14426
  F.numPages === F.currentPage ? P(!0) : P(!1), F.numPages === 1 && w(!0);
14427
14427
  };
14428
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${d ? "notes--results" : ""}`, children: [
14428
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${d ? "notes--results" : "full-height"}`, children: [
14429
14429
  (_ || !d && g) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "position--absolute top right z-index1", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
14430
14430
  "button",
14431
14431
  {
@@ -58095,7 +58095,7 @@ function EndScreen({ onFinish: l, translate: e }) {
58095
58095
  }, 2e3)), () => {
58096
58096
  n && clearTimeout(n);
58097
58097
  };
58098
- }, [l]), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auto-evaluation__endscreen", "aria-label": "auto evaluation endscreen", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auto-evaluation__finishband", "aria-label": "auto evaluation finishband", children: [
58098
+ }, [l]), /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-testid": "endScreen", className: "auto-evaluation__endscreen", "aria-label": "auto evaluation endscreen", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auto-evaluation__finishband", "aria-label": "auto evaluation finishband", children: [
58099
58099
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-check-laptop auto-evaluation__iconendscreen", "aria-label": "icon-check", role: "img" }),
58100
58100
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "auto-evaluation__thanks", "aria-label": "auto evaluation thanks", role: "contentinfo", children: e("auto-evaluation.thanks") })
58101
58101
  ] }) });
@@ -58107,6 +58107,7 @@ function StartScreen({ onNext: l, description: e, translate: n }) {
58107
58107
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58108
58108
  "button",
58109
58109
  {
58110
+ "data-testid": "auto-start-button",
58110
58111
  type: "button",
58111
58112
  className: "gat--btn gat--btn__primary auto-evaluation__button auto-evaluation__button--start",
58112
58113
  onClick: l,
@@ -58118,7 +58119,7 @@ function StartScreen({ onNext: l, description: e, translate: n }) {
58118
58119
  function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, soundActions: s }) {
58119
58120
  var w, C, P;
58120
58121
  const [o, d] = useState(null), [h, f] = useState("start"), [u, p] = useState(!1), [x, T] = useState(0), [S, E] = useState({ current: { questions: [], type: n } }), [g] = s, v = (D) => t({ type: "translate", payload: D }), R = (D) => {
58121
- D.keyCode === 13 && D.target.blur();
58122
+ D.code === "Enter" && D.target.blur();
58122
58123
  }, b = () => {
58123
58124
  g("click-ui"), t({ type: "saveSurveyPrePos", payload: S.current });
58124
58125
  };
@@ -58160,7 +58161,7 @@ function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, s
58160
58161
  translate: v
58161
58162
  }
58162
58163
  ),
58163
- h === "questions" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "survey--questions", "aria-label": "survey questions", children: [
58164
+ h === "questions" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-testid": "survey--questions", className: "survey--questions", "aria-label": "survey questions", children: [
58164
58165
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "survey--questions__container", "aria-label": "survey questions container", children: [
58165
58166
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "survey--questions__intertitle", children: [
58166
58167
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
@@ -58181,6 +58182,7 @@ function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, s
58181
58182
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
58182
58183
  "button",
58183
58184
  {
58185
+ "data-testid": `button-option-${0 + N}`,
58184
58186
  type: "button",
58185
58187
  onTouchStart: () => {
58186
58188
  d(N);
@@ -58206,6 +58208,7 @@ function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, s
58206
58208
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58207
58209
  "button",
58208
58210
  {
58211
+ "data-testid": "back-button",
58209
58212
  type: "button",
58210
58213
  disabled: x === 0,
58211
58214
  onClick: () => _(null, !0),
@@ -58217,6 +58220,7 @@ function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, s
58217
58220
  u ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58218
58221
  "button",
58219
58222
  {
58223
+ "data-testid": "finish-button",
58220
58224
  type: "button",
58221
58225
  onClick: () => {
58222
58226
  f("end"), g("click-ui");
@@ -58228,6 +58232,7 @@ function AutoEvaluation({ description: l, questions: e, type: n, emitEvent: t, s
58228
58232
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
58229
58233
  "button",
58230
58234
  {
58235
+ "data-testid": "forward-button",
58231
58236
  type: "button",
58232
58237
  onClick: () => _(null, !1),
58233
58238
  disabled: ((C = S.current.questions[x]) == null ? void 0 : C.answer) === void 0,