@anywayseo/tools 5.9.0 → 5.10.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-BYl_y0HN.js");
3
+ const index = require("../index-CAhVRVmv.js");
4
4
  const index$1 = require("../index-DzOucsVx.js");
5
5
  const index$2 = require("../index-DDg_PkD2.js");
6
6
  const index$3 = require("../index-B4M1IKzL.js");
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-D9WcltF-.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-C2HtVL6w.mjs";
2
2
  import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "../index-D9i6mZaH.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "../index-BEjKnOZA.mjs";
4
4
  import { I as I2, L as L3 } from "../index-ClIPWZ3z.mjs";
@@ -1,15 +1,15 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useColorModeValue, Box, Text, Flex, Collapse, Button, Stack, Center as Center$1, SimpleGrid, Card, CardBody, CardFooter, CardHeader, Heading, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, Alert, AlertIcon, AlertTitle, AlertDescription, useDisclosure, Divider, Circle, List as List$1, ListItem, useToast, VStack, FormControl, FormLabel, InputGroup, InputLeftElement, Input, Textarea, 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
- import "react-medium-image-zoom";
4
- import { u as usePageContext, I as Image, L as Link, a as useSiteContext } from "./index-ClIPWZ3z.mjs";
5
- import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo } from "react";
6
3
  import { useTranslation } from "react-i18next";
7
- import { StarIcon, CloseIcon, ViewOffIcon, ViewIcon, EmailIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
8
- import { a as Heading2, H as Heading1, P as Paragraph, U as Unordered, O as Ordered } from "./index-BEjKnOZA.mjs";
9
4
  import { useMDXComponents } from "@mdx-js/react";
5
+ import { u as usePageContext, I as Image, L as Link, a as useSiteContext } from "./index-ClIPWZ3z.mjs";
10
6
  import "./index-BJRvnR8Q.mjs";
11
7
  import { b as GameCharacteristic, G as GameVolatility } from "./index-RzByAgHO.mjs";
8
+ import { StarIcon, CloseIcon, ViewOffIcon, ViewIcon, EmailIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
9
+ import "react-medium-image-zoom";
10
+ import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo } from "react";
12
11
  import { d as SocialNetworks, L as LinkButton, R as Rating } from "./index-D9i6mZaH.mjs";
12
+ import { a as Heading2, H as Heading1, P as Paragraph, U as Unordered, O as Ordered } from "./index-BEjKnOZA.mjs";
13
13
  import { f as formatDate, b as formatNumber, a as getCurrentMonth, g as getCurrentYear } from "./index-BPthShL-.mjs";
14
14
  import { u as usePrimaryColors } from "./index-C1kr7Vd-.mjs";
15
15
  import { a as getSeededRandomComparator, r as randomComparator, g as getCurrencySymbol } from "./index-BeJTy4iY.mjs";
@@ -292,12 +292,12 @@ const GameCard = ({ name, description, image, url, rating, height = "auto" }) =>
292
292
  cursor: url ? "pointer" : "default",
293
293
  overflow: "hidden",
294
294
  height,
295
- _hover: url ? { transform: "scale(1.05)" } : {},
295
+ _hover: { transform: "scale(1.05)" },
296
296
  children: [
297
297
  /* @__PURE__ */ jsx(Image, { src: image, alt: name, mode: "thumbnail" }),
298
298
  /* @__PURE__ */ jsxs(Box, { as: "section", rounded: "md", p: 4, children: [
299
299
  /* @__PURE__ */ jsxs(Flex, { justify: "space-between", align: "flex-start", children: [
300
- /* @__PURE__ */ jsx(Text, { as: "span", fontWeight: "semibold", children: url ? /* @__PURE__ */ jsx(LinkOverlay, { as: Link, to: url, _hover: { textDecoration: "none" }, children: name }) : name }),
300
+ /* @__PURE__ */ jsx(Text, { as: "span", fontWeight: "semibold", children: url ? /* @__PURE__ */ jsx(LinkOverlay, { as: Link, to: url, children: name }) : name }),
301
301
  !!rating && /* @__PURE__ */ jsx(Rating, { value: rating, size: "sm", py: 1 })
302
302
  ] }),
303
303
  !!description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", color: descriptionColor, mt: 2, children: description })
@@ -1066,6 +1066,20 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1066
1066
  mb: 4
1067
1067
  }
1068
1068
  );
1069
+ case "STRAPI__COMPONENT_CONTENT_ARTICLE_INFO":
1070
+ return /* @__PURE__ */ jsx(
1071
+ ArticleInfoCard,
1072
+ {
1073
+ title: props == null ? void 0 : props.title,
1074
+ description: (props == null ? void 0 : props.description) ?? "",
1075
+ meta: {
1076
+ createdAt: (props == null ? void 0 : props.publicationDate) ?? "",
1077
+ minutesToRead: (props == null ? void 0 : props.minutesToRead) ?? 0,
1078
+ authorName: (props == null ? void 0 : props.author) ? props.author.name : ""
1079
+ },
1080
+ mb: 4
1081
+ }
1082
+ );
1069
1083
  case "STRAPI__COMPONENT_CONTENT_FAQ":
1070
1084
  return /* @__PURE__ */ jsx(Faq, { items: props.items, mb: 4 });
1071
1085
  case "STRAPI__COMPONENT_CONTENT_FEATURES":
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
- require("react-medium-image-zoom");
5
- const index = require("./index-B4M1IKzL.js");
6
- const react$1 = require("react");
7
4
  const reactI18next = require("react-i18next");
8
- const icons = require("@chakra-ui/icons");
9
- const index$3 = require("./index-DDg_PkD2.js");
10
5
  const react$2 = require("@mdx-js/react");
6
+ const index = require("./index-B4M1IKzL.js");
11
7
  require("./index-C6MG_f24.js");
12
8
  const index$6 = require("./index-CBRFCYhV.js");
9
+ const icons = require("@chakra-ui/icons");
10
+ require("react-medium-image-zoom");
11
+ const react$1 = require("react");
13
12
  const index$2 = require("./index-DzOucsVx.js");
13
+ const index$3 = require("./index-DDg_PkD2.js");
14
14
  const index$1 = require("./index-ov4J7p3D.js");
15
15
  const index$4 = require("./index-CVv755RW.js");
16
16
  const index$5 = require("./index-BfITsKAr.js");
@@ -293,12 +293,12 @@ const GameCard = ({ name, description, image, url, rating, height = "auto" }) =>
293
293
  cursor: url ? "pointer" : "default",
294
294
  overflow: "hidden",
295
295
  height,
296
- _hover: url ? { transform: "scale(1.05)" } : {},
296
+ _hover: { transform: "scale(1.05)" },
297
297
  children: [
298
298
  /* @__PURE__ */ jsxRuntime.jsx(index.Image, { src: image, alt: name, mode: "thumbnail" }),
299
299
  /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { as: "section", rounded: "md", p: 4, children: [
300
300
  /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { justify: "space-between", align: "flex-start", children: [
301
- /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: "span", fontWeight: "semibold", children: url ? /* @__PURE__ */ jsxRuntime.jsx(react.LinkOverlay, { as: index.Link, to: url, _hover: { textDecoration: "none" }, children: name }) : name }),
301
+ /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: "span", fontWeight: "semibold", children: url ? /* @__PURE__ */ jsxRuntime.jsx(react.LinkOverlay, { as: index.Link, to: url, children: name }) : name }),
302
302
  !!rating && /* @__PURE__ */ jsxRuntime.jsx(index$2.Rating, { value: rating, size: "sm", py: 1 })
303
303
  ] }),
304
304
  !!description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", color: descriptionColor, mt: 2, children: description })
@@ -1067,6 +1067,20 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1067
1067
  mb: 4
1068
1068
  }
1069
1069
  );
1070
+ case "STRAPI__COMPONENT_CONTENT_ARTICLE_INFO":
1071
+ return /* @__PURE__ */ jsxRuntime.jsx(
1072
+ ArticleInfoCard,
1073
+ {
1074
+ title: props == null ? void 0 : props.title,
1075
+ description: (props == null ? void 0 : props.description) ?? "",
1076
+ meta: {
1077
+ createdAt: (props == null ? void 0 : props.publicationDate) ?? "",
1078
+ minutesToRead: (props == null ? void 0 : props.minutesToRead) ?? 0,
1079
+ authorName: (props == null ? void 0 : props.author) ? props.author.name : ""
1080
+ },
1081
+ mb: 4
1082
+ }
1083
+ );
1070
1084
  case "STRAPI__COMPONENT_CONTENT_FAQ":
1071
1085
  return /* @__PURE__ */ jsxRuntime.jsx(Faq, { items: props.items, mb: 4 });
1072
1086
  case "STRAPI__COMPONENT_CONTENT_FEATURES":
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-BYl_y0HN.js");
3
+ const index = require("./index-CAhVRVmv.js");
4
4
  const index$1 = require("./index-DzOucsVx.js");
5
5
  const index$2 = require("./index-DDg_PkD2.js");
6
6
  const index$3 = require("./index-B4M1IKzL.js");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-D9WcltF-.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-C2HtVL6w.mjs";
2
2
  import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "./index-D9i6mZaH.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "./index-BEjKnOZA.mjs";
4
4
  import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-ClIPWZ3z.mjs";
@@ -1,4 +1,4 @@
1
- export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_ACTION_BUTTON' | 'STRAPI__COMPONENT_CONTENT_ARTICLE_CARDS' | 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_INFORMER' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
1
+ export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_ACTION_BUTTON' | 'STRAPI__COMPONENT_CONTENT_ARTICLE_CARDS' | 'STRAPI__COMPONENT_CONTENT_ARTICLE_INFO' | 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_INFORMER' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
2
2
  export interface IStrapiComponentFragment {
3
3
  __typename: StrapiComponentType;
4
4
  [prop: string]: unknown;
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.9.0",
4
+ "version": "5.10.0",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",