@anywayseo/tools 5.5.0 → 5.7.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.
- package/dist/components/action-button/index.d.ts +5 -0
- package/dist/components/article-card/index.d.ts +7 -0
- package/dist/components/article-card-grid/index.d.ts +7 -0
- package/dist/components/article-info-card/index.d.ts +5 -0
- package/dist/components/base/article-meta/index.d.ts +7 -0
- package/dist/components/base/article-meta/item/index.d.ts +7 -0
- package/dist/components/base/copy-text/index.d.ts +6 -0
- package/dist/components/base/grid/index.d.ts +2 -4
- package/dist/components/base/h1/index.d.ts +4 -0
- package/dist/components/base/h2/index.d.ts +4 -0
- package/dist/components/base/h3/index.d.ts +4 -0
- package/dist/components/base/index.d.ts +11 -0
- package/dist/components/base/link/index.d.ts +5 -1
- package/dist/components/base/link/utils.d.ts +1 -0
- package/dist/components/base/ol/index.d.ts +4 -0
- package/dist/components/base/p/index.d.ts +4 -0
- package/dist/components/base/rating/index.d.ts +10 -0
- package/dist/components/base/ul/index.d.ts +4 -0
- package/dist/components/bonus-card-grid/index.d.ts +2 -4
- package/dist/components/casino-table/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-actions/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-bonus/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-info/index.d.ts +7 -0
- package/dist/components/casino-table/row/casino-info/item/index.d.ts +7 -0
- package/dist/components/casino-table/row/casino-info/utils.d.ts +2 -0
- package/dist/components/casino-table/row/casino-license/index.d.ts +5 -0
- package/dist/components/casino-table/row/casino-logo/index.d.ts +9 -0
- package/dist/components/casino-table/row/casino-name/index.d.ts +8 -0
- package/dist/components/casino-table/row/cell/index.d.ts +7 -0
- package/dist/components/casino-table/row/index.d.ts +7 -0
- package/dist/components/feature-card-grid/index.d.ts +2 -4
- package/dist/components/game-card-grid/index.d.ts +2 -4
- package/dist/components/game-demo/content/index.d.ts +1 -1
- package/dist/components/game-demo/index.d.ts +2 -2
- package/dist/components/game-demo/preview/alert/index.d.ts +3 -0
- package/dist/components/game-demo/preview/index.d.ts +2 -1
- package/dist/components/index.cjs +30 -9
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.mjs +44 -23
- package/dist/components/informer/index.d.ts +9 -0
- package/dist/components/informer/utils.d.ts +5 -0
- package/dist/components/{contact-form → pages/contacts/contact-form}/index.d.ts +1 -1
- package/dist/components/pages/contacts/index.d.ts +3 -0
- package/dist/components/pages/cookie-policy/index.d.ts +3 -0
- package/dist/components/pages/index.d.ts +5 -0
- package/dist/components/pages/privacy-policy/index.d.ts +6 -0
- package/dist/components/pages/terms-and-conditions/index.d.ts +6 -0
- package/dist/components/tip/index.d.ts +3 -0
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.mjs +2 -2
- package/dist/i18n/index.cjs +10 -5
- package/dist/i18n/index.mjs +10 -5
- package/dist/i18n/resources/bg/index.d.ts +331 -0
- package/dist/i18n/resources/da/index.d.ts +331 -0
- package/dist/i18n/resources/de/index.d.ts +219 -0
- package/dist/i18n/resources/en/index.d.ts +219 -0
- package/dist/i18n/resources/fi/index.d.ts +331 -0
- package/dist/i18n/resources/fr/index.d.ts +219 -0
- package/dist/i18n/resources/it/index.d.ts +219 -0
- package/dist/i18n/resources/ka/index.d.ts +331 -0
- package/dist/i18n/resources/pt/index.d.ts +331 -0
- package/dist/i18n/resources/ru/index.d.ts +219 -0
- package/dist/index-B-k9oWE7.js +3552 -0
- package/dist/{index-D86anUPd.js → index-B71VkIfX.js} +426 -726
- package/dist/index-BEjKnOZA.mjs +28 -0
- package/dist/index-BTpEZIok.js +401 -0
- package/dist/index-BeJTy4iY.mjs +26 -0
- package/dist/index-BfITsKAr.js +25 -0
- package/dist/{index-BmaWfWLV.mjs → index-Bph7a3PR.mjs} +4 -0
- package/dist/{index-BCK4kr6V.mjs → index-C7z5qqm_.mjs} +3 -26
- package/dist/{index-tj12BA6U.mjs → index-CB0JfZMx.mjs} +1 -1
- package/dist/{index-cEaX-HbN.mjs → index-CEqTLcAR.mjs} +427 -727
- package/dist/index-CVN8I7r9.mjs +3553 -0
- package/dist/{index-CAfBnNV6.js → index-D15SAjJc.js} +1 -1
- package/dist/index-DDg_PkD2.js +27 -0
- package/dist/{index-BzbpMLDD.mjs → index-DHURrUMW.mjs} +1 -1
- package/dist/{index-At00w6EN.js → index-DgrIJs-a.js} +4 -0
- package/dist/index-FfZIjQy3.mjs +45 -0
- package/dist/index-Lln67Kfn.mjs +402 -0
- package/dist/{index-DZBLiQFh.js → index-QPgJfbrC.js} +52 -36
- package/dist/{index-BcFDxh8P.js → index-TxqSZvgf.js} +15 -27
- package/dist/{index-8_-KtKsW.mjs → index-ksqN4RPm.mjs} +50 -34
- package/dist/{index-WFgDSB1A.js → index-ma-iV7GU.js} +1 -1
- package/dist/{index-BICcOaT7.js → index-qR3kVjjs.js} +0 -23
- package/dist/index.cjs +73 -45
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +75 -47
- package/dist/{components/layout → layout}/footer/navigation/index.d.ts +1 -1
- package/dist/layout/header/locale-switcher/icons/brazil/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/bulgaria/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/denmark/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/finland/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/france/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/georgia/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/germany/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/globe/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/index.d.ts +10 -0
- package/dist/layout/header/locale-switcher/icons/italy/index.d.ts +2 -0
- package/dist/layout/header/locale-switcher/icons/russia/index.d.ts +2 -0
- package/dist/{components/layout → layout}/header/locale-switcher/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/locale-switcher/utils.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/desktop/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/desktop/nav-list/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/mobile/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/mobile/nav-list/index.d.ts +1 -1
- package/dist/{components/layout → layout}/header/navigation/nav-link/index.d.ts +1 -1
- package/dist/{components/layout → layout}/hero/index.d.ts +1 -1
- package/dist/layout/index.cjs +597 -0
- package/dist/layout/index.mjs +598 -0
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.mjs +2 -2
- package/dist/providers/mdx-provider/types.d.ts +3 -1
- package/dist/providers/mdx-provider/utils.d.ts +1 -2
- package/dist/types/components/article-card/index.d.ts +9 -0
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/casino/index.d.ts +32 -0
- package/dist/types/components/casino-info/index.d.ts +12 -0
- package/dist/types/components/common/index.d.ts +1 -1
- package/dist/types/components/game-info/index.d.ts +4 -8
- package/dist/types/components/grid/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/informer/index.d.ts +5 -0
- package/dist/types/components/strapi-component/index.d.ts +1 -1
- package/dist/types/content/article/index.d.ts +12 -0
- package/dist/types/content/index.d.ts +1 -0
- package/dist/types/i18n/index.d.ts +2 -2
- package/dist/utils/index.cjs +15 -13
- package/dist/utils/index.mjs +10 -8
- package/dist/utils/navigation/index.d.ts +1 -0
- package/package.json +7 -1
- package/dist/components/layout/header/locale-switcher/icons/earth/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/france/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/germany/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/globe/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/index.d.ts +0 -6
- package/dist/components/layout/header/locale-switcher/icons/italy/index.d.ts +0 -2
- package/dist/components/layout/header/locale-switcher/icons/russia/index.d.ts +0 -2
- package/dist/index-Bts2DBYS.mjs +0 -637
- package/dist/index-CJVr79Z2.js +0 -636
- package/dist/index-C_FekfFC.mjs +0 -57
- /package/dist/components/{layout → base}/container/index.d.ts +0 -0
- /package/dist/components/{layout → base}/logo/index.d.ts +0 -0
- /package/dist/components/{not-found → pages/not-found}/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/content/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/brand/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/copyright/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/disclaimer/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/extra/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/footer/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/brand/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/header/theme-toggler/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/main/index.d.ts +0 -0
- /package/dist/{components/layout → layout}/scroll-to-top/index.d.ts +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const react$1 = require("@chakra-ui/react");
|
|
4
3
|
const react = require("@mdx-js/react");
|
|
5
|
-
const index = require("./index-DZBLiQFh.js");
|
|
6
|
-
require("react");
|
|
7
4
|
require("react-i18next");
|
|
5
|
+
require("@chakra-ui/react");
|
|
6
|
+
const index$1 = require("./index-QPgJfbrC.js");
|
|
8
7
|
require("./index-C6MG_f24.js");
|
|
9
|
-
require("./index-
|
|
10
|
-
|
|
8
|
+
require("./index-B-k9oWE7.js");
|
|
9
|
+
require("react");
|
|
10
|
+
require("@chakra-ui/icons");
|
|
11
|
+
const index = require("./index-DDg_PkD2.js");
|
|
11
12
|
function omitProps(props, omittedKeys) {
|
|
12
13
|
const result = { ...props };
|
|
13
14
|
omittedKeys.forEach((key) => {
|
|
@@ -21,32 +22,19 @@ function preprocessProps(callback) {
|
|
|
21
22
|
const omittedKeys = ["node"];
|
|
22
23
|
return (props) => callback(omitProps(props, omittedKeys));
|
|
23
24
|
}
|
|
24
|
-
function renderLink({
|
|
25
|
-
href,
|
|
26
|
-
...props
|
|
27
|
-
}) {
|
|
28
|
-
return index$1.isRelativePath(href) ? /* @__PURE__ */ jsxRuntime.jsx(react$1.Link, { as: index.Link, to: href, color: "brand.400", ...props }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
react$1.Link,
|
|
30
|
-
{
|
|
31
|
-
href,
|
|
32
|
-
target: "_blank",
|
|
33
|
-
rel: "noopener noreferrer",
|
|
34
|
-
referrerPolicy: "no-referrer",
|
|
35
|
-
color: "brand.400",
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
);
|
|
25
|
+
function renderLink({ href, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$1.Link, { to: href, color: "brand.400", ...props });
|
|
39
27
|
}
|
|
40
28
|
function renderImage(props) {
|
|
41
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Image, { ...props, mt: 4, mb: 4, hasZoom: true });
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index$1.Image, { ...props, mt: 4, mb: 4, hasZoom: true });
|
|
42
30
|
}
|
|
43
31
|
const components = {
|
|
44
|
-
h1: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
-
h2: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
-
h3: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
47
|
-
ol: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
-
ul: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
-
p: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
+
h1: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Heading1, { ...props })),
|
|
33
|
+
h2: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Heading2, { ...props })),
|
|
34
|
+
h3: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Heading3, { ...props })),
|
|
35
|
+
ol: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Ordered, { ...props })),
|
|
36
|
+
ul: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Unordered, { ...props })),
|
|
37
|
+
p: preprocessProps((props) => /* @__PURE__ */ jsxRuntime.jsx(index.Paragraph, { ...props })),
|
|
50
38
|
a: preprocessProps((props) => renderLink(props)),
|
|
51
39
|
img: preprocessProps((props) => renderImage(props))
|
|
52
40
|
};
|
|
@@ -1,14 +1,41 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Image as Image$1, Box } from "@chakra-ui/react";
|
|
2
|
+
import { Image as Image$1, Box, Link as Link$1 } from "@chakra-ui/react";
|
|
3
3
|
import Zoom from "react-medium-image-zoom";
|
|
4
4
|
import { createContext, useContext, useMemo, forwardRef } from "react";
|
|
5
|
-
import { Link as Link$
|
|
5
|
+
import { Link as Link$2 } from "gatsby";
|
|
6
6
|
import "@mdx-js/react";
|
|
7
7
|
import "react-i18next";
|
|
8
8
|
import "./index-BJRvnR8Q.mjs";
|
|
9
|
-
import "./index-
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
9
|
+
import "./index-CVN8I7r9.mjs";
|
|
10
|
+
import "@chakra-ui/icons";
|
|
11
|
+
import { u as useLocalization } from "./index-DHURrUMW.mjs";
|
|
12
|
+
import { a as isAbsolutePath, i as isRelativePath } from "./index-Bph7a3PR.mjs";
|
|
13
|
+
const SiteContext = createContext(null);
|
|
14
|
+
const SiteProvider = ({ children, ...context }) => {
|
|
15
|
+
const value = useMemo(() => context, []);
|
|
16
|
+
return /* @__PURE__ */ jsx(SiteContext.Provider, { value, children });
|
|
17
|
+
};
|
|
18
|
+
function useSiteContext() {
|
|
19
|
+
const context = useContext(SiteContext);
|
|
20
|
+
if (!context) {
|
|
21
|
+
throw new Error("useSiteContext must be used within SiteProvider");
|
|
22
|
+
}
|
|
23
|
+
return context;
|
|
24
|
+
}
|
|
25
|
+
const PageContext = createContext(null);
|
|
26
|
+
const PageProvider = ({ children, location }) => {
|
|
27
|
+
const { localization } = useSiteContext();
|
|
28
|
+
const { currentLocale } = useLocalization({ location, ...localization });
|
|
29
|
+
const value = useMemo(() => ({ currentLocale }), [currentLocale]);
|
|
30
|
+
return /* @__PURE__ */ jsx(PageContext.Provider, { value, children });
|
|
31
|
+
};
|
|
32
|
+
function usePageContext() {
|
|
33
|
+
const context = useContext(PageContext);
|
|
34
|
+
if (!context) {
|
|
35
|
+
throw new Error("usePageContext must be used within PageProvider");
|
|
36
|
+
}
|
|
37
|
+
return context;
|
|
38
|
+
}
|
|
12
39
|
function isImageUrl(image) {
|
|
13
40
|
return Boolean(typeof image === "string" && image.trim() !== "");
|
|
14
41
|
}
|
|
@@ -39,31 +66,8 @@ const Image = ({ src = "", mode = "default", hasZoom, ...plainImageProps }) => {
|
|
|
39
66
|
}
|
|
40
67
|
return hasZoom ? /* @__PURE__ */ jsx(Zoom, { wrapElement: "span", zoomMargin: 40, children: image }) : image;
|
|
41
68
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const value = useMemo(() => context, []);
|
|
45
|
-
return /* @__PURE__ */ jsx(SiteContext.Provider, { value, children });
|
|
46
|
-
};
|
|
47
|
-
function useSiteContext() {
|
|
48
|
-
const context = useContext(SiteContext);
|
|
49
|
-
if (!context) {
|
|
50
|
-
throw new Error("useSiteContext must be used within SiteProvider");
|
|
51
|
-
}
|
|
52
|
-
return context;
|
|
53
|
-
}
|
|
54
|
-
const PageContext = createContext(null);
|
|
55
|
-
const PageProvider = ({ children, location }) => {
|
|
56
|
-
const { localization } = useSiteContext();
|
|
57
|
-
const { currentLocale } = useLocalization({ location, ...localization });
|
|
58
|
-
const value = useMemo(() => ({ currentLocale }), [currentLocale]);
|
|
59
|
-
return /* @__PURE__ */ jsx(PageContext.Provider, { value, children });
|
|
60
|
-
};
|
|
61
|
-
function usePageContext() {
|
|
62
|
-
const context = useContext(PageContext);
|
|
63
|
-
if (!context) {
|
|
64
|
-
throw new Error("usePageContext must be used within PageProvider");
|
|
65
|
-
}
|
|
66
|
-
return context;
|
|
69
|
+
function isExternalLink(path) {
|
|
70
|
+
return isAbsolutePath(path);
|
|
67
71
|
}
|
|
68
72
|
function normalizePath(path = "") {
|
|
69
73
|
return path.replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
|
|
@@ -79,12 +83,24 @@ function getLocalizedPath(path, currentLocaleCode, defaultLocaleCode) {
|
|
|
79
83
|
}
|
|
80
84
|
return `${localePrefix}${normalizePath(path)}`;
|
|
81
85
|
}
|
|
82
|
-
const Link = forwardRef(({ to, ...props }, ref) => {
|
|
86
|
+
const Link = forwardRef(({ to = "", isRedirectLink, ...props }, ref) => {
|
|
83
87
|
const { localization } = useSiteContext();
|
|
84
88
|
const { currentLocale } = usePageContext();
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
if (isExternalLink(to)) {
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
Link$1,
|
|
92
|
+
{
|
|
93
|
+
ref,
|
|
94
|
+
href: isRedirectLink ? `/follow?to=${to}` : to,
|
|
95
|
+
target: "_blank",
|
|
96
|
+
rel: "noopener noreferrer nofollow",
|
|
97
|
+
referrerPolicy: "no-referrer",
|
|
98
|
+
...props
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
const path = getLocalizedPath(to, currentLocale.code, localization.defaultLocale.code);
|
|
103
|
+
return /* @__PURE__ */ jsx(Link$1, { ref, as: Link$2, to: path, ...props });
|
|
88
104
|
});
|
|
89
105
|
export {
|
|
90
106
|
Image as I,
|
|
@@ -8,7 +8,7 @@ function useLocalization({ location, defaultLocale, locales }) {
|
|
|
8
8
|
react.useEffect(() => {
|
|
9
9
|
const cleanPath = path.replace(/^\/+|\/+$/g, "");
|
|
10
10
|
const maybeLocaleCode = cleanPath.split("/")[0];
|
|
11
|
-
const maybeLocale = locales.find(({ code }) => code === maybeLocaleCode);
|
|
11
|
+
const maybeLocale = locales.find(({ code }) => code.toLowerCase() === maybeLocaleCode.toLowerCase());
|
|
12
12
|
const locale = maybeLocale ? maybeLocale : defaultLocale;
|
|
13
13
|
if (locale.code !== currentLocale.code) {
|
|
14
14
|
setCurrentLocale(locale);
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const i18n = require("./i18n/index.cjs");
|
|
3
|
-
function getCurrencySymbol(currencyCode, locale = i18n.DEFAULT_LANGUAGE) {
|
|
4
|
-
const symbol = 0 .toLocaleString(locale, {
|
|
5
|
-
style: "currency",
|
|
6
|
-
currency: currencyCode,
|
|
7
|
-
minimumFractionDigits: 0,
|
|
8
|
-
maximumFractionDigits: 0
|
|
9
|
-
}).replace(/\d/g, "").trim();
|
|
10
|
-
return symbol;
|
|
11
|
-
}
|
|
12
3
|
function getCurrentYear(locale = i18n.DEFAULT_LANGUAGE) {
|
|
13
4
|
const currentDate = /* @__PURE__ */ new Date();
|
|
14
5
|
const currentYear = new Intl.DateTimeFormat(locale, { year: "numeric" }).format(currentDate);
|
|
@@ -64,23 +55,9 @@ function formatNumber(number, options) {
|
|
|
64
55
|
const formatter = new Intl.NumberFormat(locale, formatOptions);
|
|
65
56
|
return `${formatter.format(round(number, precision))}${postfix}`;
|
|
66
57
|
}
|
|
67
|
-
function randomComparator() {
|
|
68
|
-
return Math.random() - 0.5;
|
|
69
|
-
}
|
|
70
|
-
function seededRandom(seed) {
|
|
71
|
-
return Math.abs(Math.sin(seed));
|
|
72
|
-
}
|
|
73
|
-
function getSeededRandomComparator(seed) {
|
|
74
|
-
const safeSeed = Math.abs(seed) % Number.MAX_SAFE_INTEGER;
|
|
75
|
-
let index = 0;
|
|
76
|
-
return () => seededRandom(safeSeed + index++) - 0.5;
|
|
77
|
-
}
|
|
78
58
|
exports.formatDate = formatDate;
|
|
79
59
|
exports.formatNumber = formatNumber;
|
|
80
|
-
exports.getCurrencySymbol = getCurrencySymbol;
|
|
81
60
|
exports.getCurrentMonth = getCurrentMonth;
|
|
82
61
|
exports.getCurrentYear = getCurrentYear;
|
|
83
|
-
exports.getSeededRandomComparator = getSeededRandomComparator;
|
|
84
|
-
exports.randomComparator = randomComparator;
|
|
85
62
|
exports.round = round;
|
|
86
63
|
exports.toFixedTwo = toFixedTwo;
|
package/dist/index.cjs
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
4
|
-
const index$1 = require("./index-
|
|
5
|
-
const index$2 = require("./index-
|
|
6
|
-
const index$3 = require("./index-
|
|
3
|
+
const index = require("./index-B71VkIfX.js");
|
|
4
|
+
const index$1 = require("./index-BTpEZIok.js");
|
|
5
|
+
const index$2 = require("./index-DDg_PkD2.js");
|
|
6
|
+
const index$3 = require("./index-QPgJfbrC.js");
|
|
7
|
+
const index$4 = require("./index-ma-iV7GU.js");
|
|
8
|
+
const index$5 = require("./index-D15SAjJc.js");
|
|
7
9
|
const i18n = require("./i18n/index.cjs");
|
|
8
|
-
const
|
|
9
|
-
const index$
|
|
10
|
-
const index$
|
|
11
|
-
const index$
|
|
12
|
-
const index$
|
|
13
|
-
const index$
|
|
14
|
-
const index$
|
|
10
|
+
const layout = require("./layout/index.cjs");
|
|
11
|
+
const index$6 = require("./index-TxqSZvgf.js");
|
|
12
|
+
const index$7 = require("./index-B-k9oWE7.js");
|
|
13
|
+
const index$8 = require("./index-C6MG_f24.js");
|
|
14
|
+
const index$9 = require("./index-CYr1ct1t.js");
|
|
15
|
+
const index$a = require("./index-BfITsKAr.js");
|
|
16
|
+
const index$b = require("./index-qR3kVjjs.js");
|
|
17
|
+
const index$c = require("./index-DgrIJs-a.js");
|
|
18
|
+
const index$d = require("./index-CbuiYkSg.js");
|
|
19
|
+
exports.ActionButton = index.ActionButton;
|
|
20
|
+
exports.ArticleCard = index.ArticleCard;
|
|
21
|
+
exports.ArticleCardGrid = index.ArticleCardGrid;
|
|
22
|
+
exports.ArticleInfoCard = index.ArticleInfoCard;
|
|
23
|
+
exports.ArticleMeta = index.ArticleMeta;
|
|
15
24
|
exports.Author = index.Author;
|
|
16
25
|
exports.AuthorCard = index.AuthorCard;
|
|
17
26
|
exports.BonusCard = index.BonusCard;
|
|
18
27
|
exports.BonusCardGrid = index.BonusCardGrid;
|
|
19
28
|
exports.Center = index.Center;
|
|
20
|
-
exports.
|
|
29
|
+
exports.Contacts = index.Contacts;
|
|
30
|
+
exports.CookiePolicy = index.CookiePolicy;
|
|
21
31
|
exports.Faq = index.Faq;
|
|
22
32
|
exports.FeatureCard = index.FeatureCard;
|
|
23
33
|
exports.FeatureCardGrid = index.FeatureCardGrid;
|
|
@@ -27,46 +37,64 @@ exports.GameDemo = index.GameDemo;
|
|
|
27
37
|
exports.GameInfo = index.GameInfo;
|
|
28
38
|
exports.Grid = index.Grid;
|
|
29
39
|
exports.HowTo = index.HowTo;
|
|
30
|
-
exports.
|
|
31
|
-
exports.LinkButton = index.LinkButton;
|
|
40
|
+
exports.Informer = index.Informer;
|
|
32
41
|
exports.List = index.List;
|
|
33
42
|
exports.NotFound = index.NotFound;
|
|
43
|
+
exports.PrivacyPolicy = index.PrivacyPolicy;
|
|
34
44
|
exports.ProsCons = index.ProsCons;
|
|
35
45
|
exports.Seo = index.Seo;
|
|
36
|
-
exports.SocialNetwork = index.SocialNetwork;
|
|
37
|
-
exports.SocialNetworks = index.SocialNetworks;
|
|
38
46
|
exports.StrapiContentRenderer = index.StrapiContentRenderer;
|
|
39
47
|
exports.Table = index.Table;
|
|
40
48
|
exports.Tabs = index.Tabs;
|
|
49
|
+
exports.TermsAndConditions = index.TermsAndConditions;
|
|
41
50
|
exports.Tip = index.Tip;
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
51
|
+
exports.CasinoTable = index$1.CasinoTable;
|
|
52
|
+
exports.Container = index$1.Container;
|
|
53
|
+
exports.CopyText = index$1.CopyText;
|
|
54
|
+
exports.LinkButton = index$1.LinkButton;
|
|
55
|
+
exports.Logo = index$1.Logo;
|
|
56
|
+
exports.Rating = index$1.Rating;
|
|
57
|
+
exports.SocialNetwork = index$1.SocialNetwork;
|
|
58
|
+
exports.SocialNetworks = index$1.SocialNetworks;
|
|
59
|
+
exports.H1 = index$2.Heading1;
|
|
60
|
+
exports.H2 = index$2.Heading2;
|
|
61
|
+
exports.H3 = index$2.Heading3;
|
|
62
|
+
exports.OL = index$2.Ordered;
|
|
63
|
+
exports.P = index$2.Paragraph;
|
|
64
|
+
exports.UL = index$2.Unordered;
|
|
65
|
+
exports.Image = index$3.Image;
|
|
66
|
+
exports.Link = index$3.Link;
|
|
67
|
+
exports.PageProvider = index$3.PageProvider;
|
|
68
|
+
exports.SiteProvider = index$3.SiteProvider;
|
|
69
|
+
exports.usePageContext = index$3.usePageContext;
|
|
70
|
+
exports.useSiteContext = index$3.useSiteContext;
|
|
71
|
+
exports.useLocalization = index$4.useLocalization;
|
|
72
|
+
exports.usePrimaryColors = index$5.usePrimaryColors;
|
|
50
73
|
exports.DEFAULT_LANGUAGE = i18n.DEFAULT_LANGUAGE;
|
|
51
74
|
exports.resources = i18n.resources;
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.getSeededRandomComparator = index$
|
|
66
|
-
exports.randomComparator = index$
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
75
|
+
exports.Layout = layout;
|
|
76
|
+
exports.MdxProvider = index$6.MdxProvider;
|
|
77
|
+
exports.CasinoCharacteristic = index$7.CasinoCharacteristic;
|
|
78
|
+
exports.CasinoTableColumn = index$7.CasinoTableColumn;
|
|
79
|
+
exports.GameCharacteristic = index$7.GameCharacteristic;
|
|
80
|
+
exports.GameVolatility = index$7.GameVolatility;
|
|
81
|
+
exports.InformerType = index$7.InformerType;
|
|
82
|
+
exports.Animation = index$8.Animation;
|
|
83
|
+
exports.getLocale = index$9.getLocale;
|
|
84
|
+
exports.getLocales = index$9.getLocales;
|
|
85
|
+
exports.getNavigation = index$9.getNavigation;
|
|
86
|
+
exports.getSiteName = index$9.getSiteName;
|
|
87
|
+
exports.getCurrencySymbol = index$a.getCurrencySymbol;
|
|
88
|
+
exports.getSeededRandomComparator = index$a.getSeededRandomComparator;
|
|
89
|
+
exports.randomComparator = index$a.randomComparator;
|
|
90
|
+
exports.formatDate = index$b.formatDate;
|
|
91
|
+
exports.formatNumber = index$b.formatNumber;
|
|
92
|
+
exports.getCurrentMonth = index$b.getCurrentMonth;
|
|
93
|
+
exports.getCurrentYear = index$b.getCurrentYear;
|
|
94
|
+
exports.round = index$b.round;
|
|
95
|
+
exports.toFixedTwo = index$b.toFixedTwo;
|
|
96
|
+
exports.buildPath = index$c.buildPath;
|
|
97
|
+
exports.isAbsolutePath = index$c.isAbsolutePath;
|
|
98
|
+
exports.isRelativePath = index$c.isRelativePath;
|
|
99
|
+
exports.DARK_THEME_COLOR = index$d.DARK_THEME_COLOR;
|
|
100
|
+
exports.LIGHT_THEME_COLOR = index$d.LIGHT_THEME_COLOR;
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,72 +1,100 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
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-CEqTLcAR.mjs";
|
|
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-Lln67Kfn.mjs";
|
|
3
|
+
import { H as H2, a as a3, b as b3, O, P as P2, U } from "./index-BEjKnOZA.mjs";
|
|
4
|
+
import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-ksqN4RPm.mjs";
|
|
5
|
+
import { u as u2 } from "./index-DHURrUMW.mjs";
|
|
6
|
+
import { u as u3 } from "./index-CB0JfZMx.mjs";
|
|
5
7
|
import { DEFAULT_LANGUAGE, resources } from "./i18n/index.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
+
import { default as default2 } from "./layout/index.mjs";
|
|
9
|
+
import { M } from "./index-FfZIjQy3.mjs";
|
|
10
|
+
import { a as a5, C as C3, b as b4, G as G2, I as I3 } from "./index-CVN8I7r9.mjs";
|
|
8
11
|
import { A as A2 } from "./index-BJRvnR8Q.mjs";
|
|
9
|
-
import { b as
|
|
10
|
-
import {
|
|
11
|
-
import { b as
|
|
12
|
-
import {
|
|
12
|
+
import { b as b5, c as c3, g as g2, a as a6 } from "./index-cQqALZIW.mjs";
|
|
13
|
+
import { g as g3, a as a7, r as r2 } from "./index-BeJTy4iY.mjs";
|
|
14
|
+
import { f as f2, b as b6, a as a8, g as g4, r as r3, t as t2 } from "./index-C7z5qqm_.mjs";
|
|
15
|
+
import { b as b7, a as a9, i as i2 } from "./index-Bph7a3PR.mjs";
|
|
16
|
+
import { D, L as L4 } from "./index-BRVKhbs6.mjs";
|
|
13
17
|
export {
|
|
18
|
+
A as ActionButton,
|
|
14
19
|
A2 as Animation,
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
a as ArticleCard,
|
|
21
|
+
b as ArticleCardGrid,
|
|
22
|
+
c as ArticleInfoCard,
|
|
23
|
+
n as ArticleMeta,
|
|
24
|
+
o as Author,
|
|
25
|
+
d as AuthorCard,
|
|
17
26
|
B as BonusCard,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
e as BonusCardGrid,
|
|
28
|
+
a5 as CasinoCharacteristic,
|
|
29
|
+
C2 as CasinoTable,
|
|
30
|
+
C3 as CasinoTableColumn,
|
|
31
|
+
C as Center,
|
|
32
|
+
r as Contacts,
|
|
33
|
+
a2 as Container,
|
|
34
|
+
q as CookiePolicy,
|
|
35
|
+
b2 as CopyText,
|
|
21
36
|
D as DARK_THEME_COLOR,
|
|
22
37
|
DEFAULT_LANGUAGE,
|
|
23
38
|
F as Faq,
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
f as FeatureCard,
|
|
40
|
+
g as FeatureCardGrid,
|
|
26
41
|
G as GameCard,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
h as GameCardGrid,
|
|
43
|
+
b4 as GameCharacteristic,
|
|
44
|
+
i as GameDemo,
|
|
45
|
+
j as GameInfo,
|
|
31
46
|
G2 as GameVolatility,
|
|
32
|
-
|
|
47
|
+
p as Grid,
|
|
48
|
+
H2 as H1,
|
|
49
|
+
a3 as H2,
|
|
50
|
+
b3 as H3,
|
|
33
51
|
H as HowTo,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
52
|
+
I2 as Image,
|
|
53
|
+
I as Informer,
|
|
54
|
+
I3 as InformerType,
|
|
55
|
+
L4 as LIGHT_THEME_COLOR,
|
|
56
|
+
default2 as Layout,
|
|
57
|
+
L3 as Link,
|
|
58
|
+
L2 as LinkButton,
|
|
59
|
+
L as List,
|
|
60
|
+
c2 as Logo,
|
|
40
61
|
M as MdxProvider,
|
|
41
62
|
N as NotFound,
|
|
42
|
-
|
|
63
|
+
O as OL,
|
|
64
|
+
P2 as P,
|
|
65
|
+
P3 as PageProvider,
|
|
66
|
+
s as PrivacyPolicy,
|
|
43
67
|
P as ProsCons,
|
|
68
|
+
R as Rating,
|
|
44
69
|
S as Seo,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
70
|
+
S3 as SiteProvider,
|
|
71
|
+
S2 as SocialNetwork,
|
|
72
|
+
d2 as SocialNetworks,
|
|
73
|
+
k as StrapiContentRenderer,
|
|
49
74
|
T as Table,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
75
|
+
l as Tabs,
|
|
76
|
+
t as TermsAndConditions,
|
|
77
|
+
m as Tip,
|
|
78
|
+
U as UL,
|
|
79
|
+
b7 as buildPath,
|
|
53
80
|
f2 as formatDate,
|
|
54
|
-
|
|
81
|
+
b6 as formatNumber,
|
|
55
82
|
g3 as getCurrencySymbol,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
83
|
+
a8 as getCurrentMonth,
|
|
84
|
+
g4 as getCurrentYear,
|
|
85
|
+
b5 as getLocale,
|
|
86
|
+
c3 as getLocales,
|
|
60
87
|
g2 as getNavigation,
|
|
61
|
-
|
|
62
|
-
|
|
88
|
+
a7 as getSeededRandomComparator,
|
|
89
|
+
a6 as getSiteName,
|
|
90
|
+
a9 as isAbsolutePath,
|
|
63
91
|
i2 as isRelativePath,
|
|
64
|
-
|
|
92
|
+
r2 as randomComparator,
|
|
65
93
|
resources,
|
|
66
|
-
|
|
67
|
-
|
|
94
|
+
r3 as round,
|
|
95
|
+
t2 as toFixedTwo,
|
|
68
96
|
u2 as useLocalization,
|
|
69
97
|
u as usePageContext,
|
|
70
98
|
u3 as usePrimaryColors,
|
|
71
|
-
|
|
99
|
+
a4 as useSiteContext
|
|
72
100
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { BrazilIcon } from './brazil';
|
|
2
|
+
export { BulgariaIcon } from './bulgaria';
|
|
3
|
+
export { DenmarkIcon } from './denmark';
|
|
4
|
+
export { FinlandIcon } from './finland';
|
|
5
|
+
export { FranceIcon } from './france';
|
|
6
|
+
export { GeorgiaIcon } from './georgia';
|
|
7
|
+
export { GermanyIcon } from './germany';
|
|
8
|
+
export { GlobeIcon } from './globe';
|
|
9
|
+
export { ItalyIcon } from './italy';
|
|
10
|
+
export { RussiaIcon } from './russia';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconComponent, ILocale } from '
|
|
1
|
+
import { IconComponent, ILocale } from '../../../types';
|
|
2
2
|
export declare function getMappedIcon(code: ILocale['code']): IconComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INavItem } from '
|
|
1
|
+
import { INavItem } from '../../../../types';
|
|
2
2
|
type NavLinkProps = Omit<INavItem, 'children'>;
|
|
3
3
|
declare const NavLink: import('react').ForwardRefExoticComponent<NavLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
4
4
|
export default NavLink;
|