@anywayseo/tools 4.2.0 → 4.2.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-FzrDuS6r.js");
3
+ const index = require("../index-N8nXj4-i.js");
4
4
  exports.Author = index.Author;
5
5
  exports.AuthorCard = index.AuthorCard;
6
6
  exports.BonusCard = index.BonusCard;
@@ -1,4 +1,4 @@
1
- import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, h, T, i, j } from "../index-HjgJxxVi.mjs";
1
+ import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, h, T, i, j } from "../index-DAbZBo7_.mjs";
2
2
  export {
3
3
  k as Author,
4
4
  A as AuthorCard,
@@ -445,11 +445,13 @@ const GameDemoPreview = ({ image, alt, href, imageFit = "contain", onPlayDemo })
445
445
  const GameDemo = ({ name, src, href, previewImage, previewImageFit, ...boxProps }) => {
446
446
  const [isRunning, setIsRunning] = useState(false);
447
447
  const [isLoaded, setIsLoaded] = useState(false);
448
- const { isOpen: isFullscreen, onToggle } = useDisclosure({ defaultIsOpen: false });
448
+ const { isOpen: isFullscreen, onToggle, onClose } = useDisclosure({ defaultIsOpen: false });
449
449
  function handleLoad() {
450
450
  setIsLoaded(true);
451
451
  }
452
452
  function handleExit() {
453
+ document.body.style.overflowY = "auto";
454
+ onClose();
453
455
  setIsRunning(false);
454
456
  }
455
457
  function handleToggleFullscreen() {
@@ -446,11 +446,13 @@ const GameDemoPreview = ({ image, alt, href, imageFit = "contain", onPlayDemo })
446
446
  const GameDemo = ({ name, src, href, previewImage, previewImageFit, ...boxProps }) => {
447
447
  const [isRunning, setIsRunning] = react.useState(false);
448
448
  const [isLoaded, setIsLoaded] = react.useState(false);
449
- const { isOpen: isFullscreen, onToggle } = react$1.useDisclosure({ defaultIsOpen: false });
449
+ const { isOpen: isFullscreen, onToggle, onClose } = react$1.useDisclosure({ defaultIsOpen: false });
450
450
  function handleLoad() {
451
451
  setIsLoaded(true);
452
452
  }
453
453
  function handleExit() {
454
+ document.body.style.overflowY = "auto";
455
+ onClose();
454
456
  setIsRunning(false);
455
457
  }
456
458
  function handleToggleFullscreen() {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-FzrDuS6r.js");
3
+ const index = require("./index-N8nXj4-i.js");
4
4
  const index$1 = require("./index-BV0hDmYP.js");
5
5
  const i18n$1 = require("./index-BPLxhZG_.js");
6
6
  const index$2 = require("./index-DF_u_tzx.js");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, h, T, i, j } from "./index-HjgJxxVi.mjs";
1
+ import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, h, T, i, j } from "./index-DAbZBo7_.mjs";
2
2
  import { u } from "./index-CkTgVjZS.mjs";
3
3
  import { a as a2, G as G2, r } from "./index-BE9gNdXx.mjs";
4
4
  import { M } from "./index-CcsbqDXL.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anywayseo/tools",
3
3
  "description": "Shared UI Components and Modules",
4
- "version": "4.2.0",
4
+ "version": "4.2.2",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",