@gamelearn/arcade-components 3.23.0 → 3.24.0

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.
@@ -27334,20 +27334,18 @@ var domToReact_1 = domToReact$1, CASE_SENSITIVE_TAG_NAMES$1 = [
27334
27334
  "textPath"
27335
27335
  ], constants$2 = {
27336
27336
  CASE_SENSITIVE_TAG_NAMES: CASE_SENSITIVE_TAG_NAMES$1
27337
- }, node = {}, lib$3 = {}, hasRequiredLib$1;
27338
- function requireLib$1() {
27339
- return hasRequiredLib$1 || (hasRequiredLib$1 = 1, function(l) {
27340
- 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;
27341
- var e;
27342
- (function(t) {
27343
- 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";
27344
- })(e = l.ElementType || (l.ElementType = {}));
27345
- function n(t) {
27346
- return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27347
- }
27348
- 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;
27349
- }(lib$3)), lib$3;
27350
- }
27337
+ }, node = {}, lib$3 = {};
27338
+ (function(l) {
27339
+ 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;
27340
+ var e;
27341
+ (function(t) {
27342
+ 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";
27343
+ })(e = l.ElementType || (l.ElementType = {}));
27344
+ function n(t) {
27345
+ return t.type === e.Tag || t.type === e.Script || t.type === e.Style;
27346
+ }
27347
+ 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;
27348
+ })(lib$3);
27351
27349
  var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
27352
27350
  var l = function(e, n) {
27353
27351
  return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
@@ -27378,7 +27376,7 @@ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ fu
27378
27376
  };
27379
27377
  Object.defineProperty(node, "__esModule", { value: !0 });
27380
27378
  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;
27381
- var domelementtype_1 = requireLib$1(), nodeTypes = /* @__PURE__ */ new Map([
27379
+ var domelementtype_1 = lib$3, nodeTypes = /* @__PURE__ */ new Map([
27382
27380
  [domelementtype_1.ElementType.Tag, 1],
27383
27381
  [domelementtype_1.ElementType.Script, 1],
27384
27382
  [domelementtype_1.ElementType.Style, 1],
@@ -27786,7 +27784,7 @@ function requireLib() {
27786
27784
  p !== "default" && !Object.prototype.hasOwnProperty.call(u, p) && e(u, f, p);
27787
27785
  };
27788
27786
  Object.defineProperty(l, "__esModule", { value: !0 }), l.DomHandler = void 0;
27789
- var t = requireLib$1(), s = node;
27787
+ var t = lib$3, s = node;
27790
27788
  n(node, l);
27791
27789
  var o = /\s+/g, d = {
27792
27790
  normalizeWhitespace: !1,
@@ -54204,7 +54202,8 @@ const useWindowSize = () => {
54204
54202
  const [l, e] = useState([0, 0]);
54205
54203
  return useLayoutEffect(() => {
54206
54204
  function n() {
54207
- e([window.innerWidth, window.innerHeight]);
54205
+ const t = document.querySelector("#root");
54206
+ e([t.clientWidth, t.clientHeight]);
54208
54207
  }
54209
54208
  return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
54210
54209
  }, []), l;