@gamelearn/arcade-components 3.14.3 → 3.14.5

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.
@@ -27330,18 +27330,20 @@ var domToReact_1 = domToReact$1, CASE_SENSITIVE_TAG_NAMES$1 = [
27330
27330
  "textPath"
27331
27331
  ], constants$2 = {
27332
27332
  CASE_SENSITIVE_TAG_NAMES: CASE_SENSITIVE_TAG_NAMES$1
27333
- }, node = {}, lib$3 = {};
27334
- (function(l) {
27335
- Object.defineProperty(l, "__esModule", { value: !0 }), l.Doctype = l.CDATA = l.Tag = l.Style = l.Script = l.Comment = l.Directive = l.Text = l.Root = l.isTag = l.ElementType = void 0;
27336
- var e;
27337
- (function(t) {
27338
- t.Root = "root", t.Text = "text", t.Directive = "directive", t.Comment = "comment", t.Script = "script", t.Style = "style", t.Tag = "tag", t.CDATA = "cdata", t.Doctype = "doctype";
27339
- })(e = l.ElementType || (l.ElementType = {}));
27340
- function n(t) {
27341
- return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27342
- }
27343
- l.isTag = n, l.Root = e.Root, l.Text = e.Text, l.Directive = e.Directive, l.Comment = e.Comment, l.Script = e.Script, l.Style = e.Style, l.Tag = e.Tag, l.CDATA = e.CDATA, l.Doctype = e.Doctype;
27344
- })(lib$3);
27333
+ }, node = {}, lib$3 = {}, hasRequiredLib$1;
27334
+ function requireLib$1() {
27335
+ return hasRequiredLib$1 || (hasRequiredLib$1 = 1, function(l) {
27336
+ Object.defineProperty(l, "__esModule", { value: !0 }), l.Doctype = l.CDATA = l.Tag = l.Style = l.Script = l.Comment = l.Directive = l.Text = l.Root = l.isTag = l.ElementType = void 0;
27337
+ var e;
27338
+ (function(t) {
27339
+ t.Root = "root", t.Text = "text", t.Directive = "directive", t.Comment = "comment", t.Script = "script", t.Style = "style", t.Tag = "tag", t.CDATA = "cdata", t.Doctype = "doctype";
27340
+ })(e = l.ElementType || (l.ElementType = {}));
27341
+ function n(t) {
27342
+ return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27343
+ }
27344
+ l.isTag = n, l.Root = e.Root, l.Text = e.Text, l.Directive = e.Directive, l.Comment = e.Comment, l.Script = e.Script, l.Style = e.Style, l.Tag = e.Tag, l.CDATA = e.CDATA, l.Doctype = e.Doctype;
27345
+ }(lib$3)), lib$3;
27346
+ }
27345
27347
  var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
27346
27348
  var l = function(e, n) {
27347
27349
  return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
@@ -27372,7 +27374,7 @@ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ fu
27372
27374
  };
27373
27375
  Object.defineProperty(node, "__esModule", { value: !0 });
27374
27376
  node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
27375
- var domelementtype_1 = lib$3, nodeTypes = /* @__PURE__ */ new Map([
27377
+ var domelementtype_1 = requireLib$1(), nodeTypes = /* @__PURE__ */ new Map([
27376
27378
  [domelementtype_1.ElementType.Tag, 1],
27377
27379
  [domelementtype_1.ElementType.Script, 1],
27378
27380
  [domelementtype_1.ElementType.Style, 1],
@@ -27780,7 +27782,7 @@ function requireLib() {
27780
27782
  p !== "default" && !Object.prototype.hasOwnProperty.call(u, p) && e(u, f, p);
27781
27783
  };
27782
27784
  Object.defineProperty(l, "__esModule", { value: !0 }), l.DomHandler = void 0;
27783
- var t = lib$3, s = node;
27785
+ var t = requireLib$1(), s = node;
27784
27786
  n(node, l);
27785
27787
  var o = /\s+/g, d = {
27786
27788
  normalizeWhitespace: !1,
@@ -30628,31 +30630,40 @@ function Vignette({ vignette: l, alias: e, translate: n, backgroundImageCover: t
30628
30630
  document.querySelector(`#${p}`).focus(), h(!d);
30629
30631
  };
30630
30632
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
30631
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `comic-image ${t ? "comic-image--cover" : ""}`, children: o && /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: o, alt: "comic pic" }) }),
30632
- (u = l == null ? void 0 : l.textData) != null && u.text ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `comic-collapsable ${d ? "comic-collapsable--opened" : ""}`, children: [
30633
- /* @__PURE__ */ jsxRuntimeExports.jsx(
30634
- "button",
30635
- {
30636
- id: "buttonDown",
30637
- onClick: () => f("buttonUp"),
30638
- type: "button",
30639
- className: "un-btn comic-collapsable__headertoggle",
30640
- "aria-label": n("comic.toggleText"),
30641
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-down-arrow" })
30642
- }
30643
- ),
30644
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "comic-collapsable__text", children: [
30645
- e ? /* @__PURE__ */ jsxRuntimeExports.jsxs("b", { children: [
30646
- e,
30647
- ": "
30648
- ] }) : null,
30649
- HTMLReactParser$1(l.textData.text)
30650
- ] })
30651
- ] }) : null,
30633
+ /* @__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" }) }),
30634
+ (u = l == null ? void 0 : l.textData) != null && u.text ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
30635
+ "div",
30636
+ {
30637
+ "data-testid": "comicCollapsable",
30638
+ className: `comic-collapsable ${d ? "comic-collapsable--opened" : ""}`,
30639
+ children: [
30640
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
30641
+ "button",
30642
+ {
30643
+ id: "buttonDown",
30644
+ "data-testid": "buttonDown",
30645
+ onClick: () => f("buttonUp"),
30646
+ type: "button",
30647
+ className: "un-btn comic-collapsable__headertoggle",
30648
+ "aria-label": n("comic.toggleText"),
30649
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "icon-down-arrow" })
30650
+ }
30651
+ ),
30652
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "comic-collapsable__text", children: [
30653
+ e ? /* @__PURE__ */ jsxRuntimeExports.jsxs("b", { children: [
30654
+ e,
30655
+ ": "
30656
+ ] }) : null,
30657
+ HTMLReactParser$1(l.textData.text)
30658
+ ] })
30659
+ ]
30660
+ }
30661
+ ) : null,
30652
30662
  /* @__PURE__ */ jsxRuntimeExports.jsx(
30653
30663
  "button",
30654
30664
  {
30655
30665
  id: "buttonUp",
30666
+ "data-testid": "buttonUp",
30656
30667
  tabIndex: d ? "-1" : "0",
30657
30668
  "aria-hidden": d,
30658
30669
  className: `unset-button comic-buttonup
@@ -32185,7 +32196,7 @@ function FeedbackComponent$1({
32185
32196
  forward: s,
32186
32197
  close: s
32187
32198
  });
32188
- return useEffect(() => v(), [v]), /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `feedback-layer ${T ? "feedback-layer--withexplain" : ""}`, children: [
32199
+ return useEffect(() => v(), [v]), /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-testid": "feedback-layer", className: `feedback-layer ${T ? "feedback-layer--withexplain" : ""}`, children: [
32189
32200
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
32190
32201
  "div",
32191
32202
  {