@anywayseo/tools 5.4.0 → 5.4.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
3
|
+
const index = require("../index-DGc-4DpA.js");
|
|
4
4
|
const index$1 = require("../index-BltrZp3R.js");
|
|
5
5
|
exports.Author = index.Author;
|
|
6
6
|
exports.AuthorCard = index.AuthorCard;
|
|
@@ -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, o, p, h, T, i, j } from "../index-
|
|
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
2
|
import { I, L as L2 } from "../index-Bwlxdh5F.mjs";
|
|
3
3
|
export {
|
|
4
4
|
k as Author,
|
|
@@ -91,7 +91,7 @@ const SocialNetworkMap = {
|
|
|
91
91
|
};
|
|
92
92
|
const SocialNetwork = ({ kind, url }) => {
|
|
93
93
|
const Icon = SocialNetworkMap[kind];
|
|
94
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
94
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Link, { href: url, target: "_blank", rel: "noopener noreferrer nofollow", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) });
|
|
95
95
|
};
|
|
96
96
|
const SocialNetworks = ({ socialNetworks, ...flexProps }) => {
|
|
97
97
|
const uniqueSocialNetworks = [...new Map(socialNetworks.map((item) => [item.kind, item])).values()];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Flex, Box, Collapse, Text, Button, Stack, Center as Center$1, SimpleGrid,
|
|
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 {
|
|
5
|
+
import { I as Image, a as useSiteContext, L as Link$1, u as usePageContext } from "./index-Bwlxdh5F.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";
|
|
@@ -90,7 +90,7 @@ const SocialNetworkMap = {
|
|
|
90
90
|
};
|
|
91
91
|
const SocialNetwork = ({ kind, url }) => {
|
|
92
92
|
const Icon2 = SocialNetworkMap[kind];
|
|
93
|
-
return /* @__PURE__ */ jsx(Link, {
|
|
93
|
+
return /* @__PURE__ */ jsx(Link, { href: url, target: "_blank", rel: "noopener noreferrer nofollow", children: /* @__PURE__ */ jsx(Icon2, {}) });
|
|
94
94
|
};
|
|
95
95
|
const SocialNetworks = ({ socialNetworks, ...flexProps }) => {
|
|
96
96
|
const uniqueSocialNetworks = [...new Map(socialNetworks.map((item) => [item.kind, item])).values()];
|
|
@@ -168,7 +168,7 @@ const LinkButton = ({
|
|
|
168
168
|
const isInvertedColor = (_a = config == null ? void 0 : config.theme) == null ? void 0 : _a.isInvertedColor;
|
|
169
169
|
const isRedirectLink = linkType === "redirect";
|
|
170
170
|
const isInternalLink = isRelativePath(href);
|
|
171
|
-
const LinkComponent = isInternalLink ? Link : Link
|
|
171
|
+
const LinkComponent = isInternalLink ? Link$1 : Link;
|
|
172
172
|
const hrefKey = isInternalLink ? "to" : "href";
|
|
173
173
|
const hrefValue = isRedirectLink ? `/follow?to=${href}` : href;
|
|
174
174
|
return /* @__PURE__ */ jsx(
|
|
@@ -691,7 +691,7 @@ const Logo = () => {
|
|
|
691
691
|
const Brand$1 = ({ brand }) => {
|
|
692
692
|
return /* @__PURE__ */ jsxs(Box, { position: "relative", my: 2, py: 8, children: [
|
|
693
693
|
/* @__PURE__ */ jsx(Divider, {}),
|
|
694
|
-
/* @__PURE__ */ jsx(AbsoluteCenter, { display: "flex", bgColor: useColorModeValue("gray.50", "gray.900"), children: /* @__PURE__ */ jsx(Link, { to: "/", children: brand }) })
|
|
694
|
+
/* @__PURE__ */ jsx(AbsoluteCenter, { display: "flex", bgColor: useColorModeValue("gray.50", "gray.900"), children: /* @__PURE__ */ jsx(Link$1, { to: "/", children: brand }) })
|
|
695
695
|
] });
|
|
696
696
|
};
|
|
697
697
|
const Copyright = () => {
|
|
@@ -728,7 +728,7 @@ const Navigation$1 = ({ menu }) => {
|
|
|
728
728
|
children: menu.map(({ slug, label }, index) => /* @__PURE__ */ jsx(Flex, { as: "li", children: /* @__PURE__ */ jsx(
|
|
729
729
|
Text,
|
|
730
730
|
{
|
|
731
|
-
as: Link,
|
|
731
|
+
as: Link$1,
|
|
732
732
|
to: slug,
|
|
733
733
|
fontSize: "md",
|
|
734
734
|
fontWeight: "semibold",
|
|
@@ -768,7 +768,7 @@ const Footer = () => {
|
|
|
768
768
|
);
|
|
769
769
|
};
|
|
770
770
|
const Brand = ({ brand }) => {
|
|
771
|
-
return /* @__PURE__ */ jsx(Link, { to: "/", children: brand });
|
|
771
|
+
return /* @__PURE__ */ jsx(Link$1, { to: "/", children: brand });
|
|
772
772
|
};
|
|
773
773
|
const FranceIcon = (props) => {
|
|
774
774
|
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: "1em", height: "1em", ...props, children: [
|
|
@@ -863,7 +863,7 @@ const LocaleSwitcher = ({ currentLocale, locales }) => {
|
|
|
863
863
|
] })
|
|
864
864
|
}
|
|
865
865
|
),
|
|
866
|
-
/* @__PURE__ */ jsx(MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsx(MenuItem, { as: Link, to: `/${code}`, icon: /* @__PURE__ */ jsx(Icon, { as: icon, w: 4, h: 4 }), children: name }, code)) })
|
|
866
|
+
/* @__PURE__ */ jsx(MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsx(MenuItem, { as: Link$1, to: `/${code}`, icon: /* @__PURE__ */ jsx(Icon, { as: icon, w: 4, h: 4 }), children: name }, code)) })
|
|
867
867
|
] });
|
|
868
868
|
};
|
|
869
869
|
const NavLink = forwardRef(({ slug, label }, ref) => {
|
|
@@ -871,7 +871,7 @@ const NavLink = forwardRef(({ slug, label }, ref) => {
|
|
|
871
871
|
Text,
|
|
872
872
|
{
|
|
873
873
|
ref,
|
|
874
|
-
as: Link,
|
|
874
|
+
as: Link$1,
|
|
875
875
|
to: slug,
|
|
876
876
|
p: 2,
|
|
877
877
|
fontWeight: "semibold",
|
|
@@ -908,7 +908,7 @@ const NavList$1 = ({ slug, label, children }) => {
|
|
|
908
908
|
boxShadow: "xl",
|
|
909
909
|
bg: background,
|
|
910
910
|
children: /* @__PURE__ */ jsx(List$1, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index) => {
|
|
911
|
-
return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link, to: buildPath(child.slug, slug), p: 2, role: "group", children: [
|
|
911
|
+
return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link$1, to: buildPath(child.slug, slug), p: 2, role: "group", children: [
|
|
912
912
|
/* @__PURE__ */ jsx(Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
|
|
913
913
|
/* @__PURE__ */ jsx(
|
|
914
914
|
Flex,
|
|
@@ -972,7 +972,7 @@ const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
|
|
|
972
972
|
borderLeft: 1,
|
|
973
973
|
borderStyle: "solid",
|
|
974
974
|
borderColor: useColorModeValue("gray.200", "gray.700"),
|
|
975
|
-
children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", children: child.label }) }, index))
|
|
975
|
+
children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link$1, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", children: child.label }) }, index))
|
|
976
976
|
}
|
|
977
977
|
) })
|
|
978
978
|
] });
|
|
@@ -1166,7 +1166,7 @@ const NotFound = () => {
|
|
|
1166
1166
|
/* @__PURE__ */ jsxs(Text, { fontSize: "xl", children: [
|
|
1167
1167
|
t2("description"),
|
|
1168
1168
|
" ",
|
|
1169
|
-
/* @__PURE__ */ jsx(Button, { as: Link, to: "/", variant: "link", colorScheme: "brand", fontSize: "xl", children: t2("action") })
|
|
1169
|
+
/* @__PURE__ */ jsx(Button, { as: Link$1, to: "/", variant: "link", colorScheme: "brand", fontSize: "xl", children: t2("action") })
|
|
1170
1170
|
] })
|
|
1171
1171
|
] });
|
|
1172
1172
|
};
|
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-
|
|
3
|
+
const index = require("./index-DGc-4DpA.js");
|
|
4
4
|
const index$1 = require("./index-BltrZp3R.js");
|
|
5
5
|
const index$2 = require("./index-WFgDSB1A.js");
|
|
6
6
|
const index$3 = require("./index-CAfBnNV6.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, o, p, h, T, i, j } from "./index-
|
|
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
2
|
import { I, L as L2, P as P2, S as S2, u, a as a2 } from "./index-Bwlxdh5F.mjs";
|
|
3
3
|
import { u as u2 } from "./index-BzbpMLDD.mjs";
|
|
4
4
|
import { u as u3 } from "./index-tj12BA6U.mjs";
|