@gamelearn/arcade-components 3.24.0 → 3.24.1
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,18 +27334,20 @@ 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 = {};
|
|
27338
|
-
|
|
27339
|
-
|
|
27340
|
-
|
|
27341
|
-
|
|
27342
|
-
t
|
|
27343
|
-
|
|
27344
|
-
|
|
27345
|
-
|
|
27346
|
-
|
|
27347
|
-
|
|
27348
|
-
|
|
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
|
+
}
|
|
27349
27351
|
var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
|
|
27350
27352
|
var l = function(e, n) {
|
|
27351
27353
|
return l = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
|
|
@@ -27376,7 +27378,7 @@ var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ fu
|
|
|
27376
27378
|
};
|
|
27377
27379
|
Object.defineProperty(node, "__esModule", { value: !0 });
|
|
27378
27380
|
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;
|
|
27379
|
-
var domelementtype_1 =
|
|
27381
|
+
var domelementtype_1 = requireLib$1(), nodeTypes = /* @__PURE__ */ new Map([
|
|
27380
27382
|
[domelementtype_1.ElementType.Tag, 1],
|
|
27381
27383
|
[domelementtype_1.ElementType.Script, 1],
|
|
27382
27384
|
[domelementtype_1.ElementType.Style, 1],
|
|
@@ -27784,7 +27786,7 @@ function requireLib() {
|
|
|
27784
27786
|
p !== "default" && !Object.prototype.hasOwnProperty.call(u, p) && e(u, f, p);
|
|
27785
27787
|
};
|
|
27786
27788
|
Object.defineProperty(l, "__esModule", { value: !0 }), l.DomHandler = void 0;
|
|
27787
|
-
var t =
|
|
27789
|
+
var t = requireLib$1(), s = node;
|
|
27788
27790
|
n(node, l);
|
|
27789
27791
|
var o = /\s+/g, d = {
|
|
27790
27792
|
normalizeWhitespace: !1,
|
|
@@ -30323,7 +30325,7 @@ Message.defaultProps = {
|
|
|
30323
30325
|
current: {},
|
|
30324
30326
|
voiceOver: !1
|
|
30325
30327
|
};
|
|
30326
|
-
const cleanStyle = { width: "
|
|
30328
|
+
const cleanStyle = { width: "100vw", height: "100%", position: "static" };
|
|
30327
30329
|
function HtmlWrap(l) {
|
|
30328
30330
|
const e = document.querySelector(".screens--container");
|
|
30329
30331
|
return useEffect(() => (l.onMount && l.onMount(), () => {
|
|
@@ -54202,8 +54204,7 @@ const useWindowSize = () => {
|
|
|
54202
54204
|
const [l, e] = useState([0, 0]);
|
|
54203
54205
|
return useLayoutEffect(() => {
|
|
54204
54206
|
function n() {
|
|
54205
|
-
|
|
54206
|
-
e([t.clientWidth, t.clientHeight]);
|
|
54207
|
+
e([window.innerWidth, window.innerHeight]);
|
|
54207
54208
|
}
|
|
54208
54209
|
return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
|
|
54209
54210
|
}, []), l;
|
|
@@ -60788,7 +60789,7 @@ function BubbleWrapper({ currentMessage: l, translate: e }) {
|
|
|
60788
60789
|
onOcclude: () => null,
|
|
60789
60790
|
zIndexRange: [5, 5],
|
|
60790
60791
|
portal: n ? { current: n } : void 0,
|
|
60791
|
-
style: { width: "
|
|
60792
|
+
style: { width: "100vw", height: "100%", position: "static" },
|
|
60792
60793
|
calculatePosition: () => [0, 0],
|
|
60793
60794
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(SpeechBubbleComponent$1, { translate: e, message: l })
|
|
60794
60795
|
}
|
|
@@ -61290,7 +61291,7 @@ function DialogComponent({
|
|
|
61290
61291
|
HtmlPro,
|
|
61291
61292
|
{
|
|
61292
61293
|
wrapperClass: "htmlpro-wrap-100-h",
|
|
61293
|
-
style: { width: "
|
|
61294
|
+
style: { width: "100vw", height: "100%", position: "static" },
|
|
61294
61295
|
portal: st ? { current: st } : void 0,
|
|
61295
61296
|
zIndexRange: [6, 6],
|
|
61296
61297
|
onOcclude: () => {
|