@anywayseo/tools 5.4.1 → 5.4.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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-DGc-4DpA.js");
4
- const index$1 = require("../index-BltrZp3R.js");
3
+ const index = require("../index-fy0DKjZo.js");
4
+ const index$1 = require("../index-qNfIS8KH.js");
5
5
  exports.Author = index.Author;
6
6
  exports.AuthorCard = index.AuthorCard;
7
7
  exports.BonusCard = index.BonusCard;
@@ -1,5 +1,5 @@
1
- import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, o, p, h, T, i, j } from "../index-PLwa86VY.mjs";
2
- import { I, L as L2 } from "../index-Bwlxdh5F.mjs";
1
+ import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, o, p, h, T, i, j } from "../index-CrW7S4lK.mjs";
2
+ import { I, L as L2 } from "../index-DT2ARtRV.mjs";
3
3
  export {
4
4
  k as Author,
5
5
  A as AuthorCard,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Text, UnorderedList, OrderedList, Heading, Link } from "@chakra-ui/react";
3
3
  import { MDXProvider } from "@mdx-js/react";
4
- import { I as Image, L as Link$1 } from "./index-Bwlxdh5F.mjs";
4
+ import { I as Image, L as Link$1 } from "./index-DT2ARtRV.mjs";
5
5
  import "react";
6
6
  import "react-i18next";
7
7
  import "./index-BJRvnR8Q.mjs";
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react$1 = require("@chakra-ui/react");
4
4
  const react = require("@mdx-js/react");
5
- const index = require("./index-BltrZp3R.js");
5
+ const index = require("./index-qNfIS8KH.js");
6
6
  require("react");
7
7
  require("react-i18next");
8
8
  require("./index-C6MG_f24.js");
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { Link, Flex, Box, Collapse, Text, Button, Stack, Center as Center$1, SimpleGrid, Card, CardHeader, Heading, CardBody, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, CardFooter, useToast, useColorModeValue, VStack, FormControl, FormLabel, InputGroup, InputLeftElement, Input, Textarea, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, useDisclosure, Divider, Circle, Container as Container$1, Menu, MenuButton, HStack, Icon, MenuList, MenuItem, List as List$1, ListItem, ListIcon, TableContainer, Table as Table$1, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, TabPanels, TabPanel } from "@chakra-ui/react";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import "react-medium-image-zoom";
5
- import { I as Image, a as useSiteContext, L as Link$1, u as usePageContext } from "./index-Bwlxdh5F.mjs";
5
+ import { I as Image, a as useSiteContext, L as Link$1, u as usePageContext } from "./index-DT2ARtRV.mjs";
6
6
  import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo, forwardRef, useEffect } from "react";
7
7
  import { A as Animation } from "./index-BJRvnR8Q.mjs";
8
8
  import { a as GameCharacteristic } from "./index-Bts2DBYS.mjs";
@@ -23,7 +23,7 @@ const Image = ({ src, mode = "default", hasZoom, ...plainImageProps }) => {
23
23
  ...plainImageProps
24
24
  }
25
25
  );
26
- } else if (src.props.image) {
26
+ } else if (src.props.image || src.props.src) {
27
27
  image = mode === "thumbnail" ? /* @__PURE__ */ jsx(Box, { aspectRatio: "16/9", children: src }) : src;
28
28
  } else {
29
29
  return null;
@@ -3,7 +3,7 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
4
  const reactI18next = require("react-i18next");
5
5
  require("react-medium-image-zoom");
6
- const index = require("./index-BltrZp3R.js");
6
+ const index = require("./index-qNfIS8KH.js");
7
7
  const react$1 = require("react");
8
8
  const index$3 = require("./index-C6MG_f24.js");
9
9
  const index$5 = require("./index-CJVr79Z2.js");
@@ -24,7 +24,7 @@ const Image = ({ src, mode = "default", hasZoom, ...plainImageProps }) => {
24
24
  ...plainImageProps
25
25
  }
26
26
  );
27
- } else if (src.props.image) {
27
+ } else if (src.props.image || src.props.src) {
28
28
  image = mode === "thumbnail" ? /* @__PURE__ */ jsxRuntime.jsx(react.Box, { aspectRatio: "16/9", children: src }) : src;
29
29
  } else {
30
30
  return null;
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-DGc-4DpA.js");
4
- const index$1 = require("./index-BltrZp3R.js");
3
+ const index = require("./index-fy0DKjZo.js");
4
+ const index$1 = require("./index-qNfIS8KH.js");
5
5
  const index$2 = require("./index-WFgDSB1A.js");
6
6
  const index$3 = require("./index-CAfBnNV6.js");
7
7
  const i18n = require("./i18n/index.cjs");
8
- const index$4 = require("./index-BbxOP7UY.js");
8
+ const index$4 = require("./index-ChXyJHJw.js");
9
9
  const index$5 = require("./index-CJVr79Z2.js");
10
10
  const index$6 = require("./index-C6MG_f24.js");
11
11
  const index$7 = require("./index-CYr1ct1t.js");
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, o, p, h, T, i, j } from "./index-PLwa86VY.mjs";
2
- import { I, L as L2, P as P2, S as S2, u, a as a2 } from "./index-Bwlxdh5F.mjs";
1
+ import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, o, p, h, T, i, j } from "./index-CrW7S4lK.mjs";
2
+ import { I, L as L2, P as P2, S as S2, u, a as a2 } from "./index-DT2ARtRV.mjs";
3
3
  import { u as u2 } from "./index-BzbpMLDD.mjs";
4
4
  import { u as u3 } from "./index-tj12BA6U.mjs";
5
5
  import { DEFAULT_LANGUAGE, resources } from "./i18n/index.mjs";
6
- import { M } from "./index-C4sJXfkN.mjs";
6
+ import { M } from "./index-3z6DUkQh.mjs";
7
7
  import { a as a3, G as G2 } from "./index-Bts2DBYS.mjs";
8
8
  import { A as A2 } from "./index-BJRvnR8Q.mjs";
9
9
  import { b as b2, c as c2, g as g2, a as a4 } from "./index-cQqALZIW.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-BbxOP7UY.js");
4
- const index$1 = require("../index-BltrZp3R.js");
3
+ const index = require("../index-ChXyJHJw.js");
4
+ const index$1 = require("../index-qNfIS8KH.js");
5
5
  exports.MdxProvider = index.MdxProvider;
6
6
  exports.PageProvider = index$1.PageProvider;
7
7
  exports.SiteProvider = index$1.SiteProvider;
@@ -1,5 +1,5 @@
1
- import { M } from "../index-C4sJXfkN.mjs";
2
- import { P, S, u, a } from "../index-Bwlxdh5F.mjs";
1
+ import { M } from "../index-3z6DUkQh.mjs";
2
+ import { P, S, u, a } from "../index-DT2ARtRV.mjs";
3
3
  export {
4
4
  M as MdxProvider,
5
5
  P as PageProvider,
@@ -2,7 +2,8 @@ import { ReactElement } from 'react';
2
2
  import { ImageProps } from '@chakra-ui/react';
3
3
  export type ImageUrl = string;
4
4
  export type ImageComponent = ReactElement<{
5
- image: unknown;
5
+ image?: unknown;
6
+ src?: unknown;
6
7
  }>;
7
8
  export type ImageType = ImageUrl | ImageComponent;
8
9
  export type ImageFit = ImageProps['objectFit'];
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": "5.4.1",
4
+ "version": "5.4.2",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",