@anywayseo/tools 1.5.3 → 2.0.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/base/center/index.d.ts +1 -3
- package/dist/components/{expert → base/expert}/bio/index.d.ts +1 -1
- package/dist/components/{expert → base/expert}/index.d.ts +1 -1
- package/dist/components/base/grid/index.d.ts +3 -11
- package/dist/components/base/index.d.ts +2 -0
- package/dist/components/base/link-button/index.d.ts +2 -2
- package/dist/components/base/pulse-button/index.d.ts +8 -0
- package/dist/components/bonus-card/index.d.ts +1 -3
- package/dist/components/contact-form/index.d.ts +3 -1
- package/dist/components/expert-tip/index.d.ts +2 -3
- package/dist/components/faq/index.d.ts +2 -4
- package/dist/components/feature-card/index.d.ts +5 -0
- package/dist/components/features/index.d.ts +2 -3
- package/dist/components/game-card/index.d.ts +1 -3
- package/dist/components/game-demo/index.d.ts +3 -4
- package/dist/components/game-demo/preview/index.d.ts +3 -3
- package/dist/components/how-to/index.d.ts +2 -3
- package/dist/components/index.cjs +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.mjs +12 -9
- package/dist/components/layout/footer/navigation/index.d.ts +5 -1
- package/dist/components/layout/header/{navbar/navigation → navigation}/desktop/item/index.d.ts +1 -1
- package/dist/components/layout/header/{navbar/navigation → navigation}/mobile/item/index.d.ts +1 -1
- package/dist/components/layout/header/{navbar/navigation → navigation}/types.d.ts +1 -1
- package/dist/components/list/index.d.ts +1 -2
- package/dist/components/pros-cons/index.d.ts +2 -3
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/tabs/index.d.ts +1 -2
- package/dist/index-BNb-P8a6.mjs +17 -0
- package/dist/index-BhsXlbd8.js +16 -0
- package/dist/{index-jvxaXXE3.js → index-BrTxsE2A.js} +18 -0
- package/dist/{index-DZkjaSoV.mjs → index-CHSIkTv7.mjs} +138 -141
- package/dist/index-CnohyDGd.js +965 -0
- package/dist/{index-CJvs4SfG.mjs → index-j8Vo42fz.mjs} +18 -0
- package/dist/index.cjs +9 -5
- package/dist/index.mjs +17 -13
- package/dist/providers/index.cjs +3 -3
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.mjs +3 -3
- package/dist/providers/site-provider/index.d.ts +11 -0
- package/dist/types/components/image/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/site/index.d.ts +32 -0
- package/dist/utils/animation/index.d.ts +8 -0
- package/dist/utils/index.cjs +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.mjs +2 -1
- package/package.json +104 -105
- package/dist/components/layout/header/navbar/index.d.ts +0 -6
- package/dist/index-Bs4zA1wD.mjs +0 -17
- package/dist/index-C5pGuMKq.js +0 -968
- package/dist/index-D96zh94V.js +0 -16
- package/dist/providers/site-metadata-provider/index.d.ts +0 -14
- package/dist/types/site-metadata/index.d.ts +0 -10
- /package/dist/components/layout/header/{navbar/brand → brand}/index.d.ts +0 -0
- /package/dist/components/layout/header/{navbar/navigation → navigation}/desktop/index.d.ts +0 -0
- /package/dist/components/layout/header/{navbar/navigation → navigation}/index.d.ts +0 -0
- /package/dist/components/layout/header/{navbar/navigation → navigation}/mobile/index.d.ts +0 -0
- /package/dist/components/layout/header/{navbar/theme-toggler → theme-toggler}/index.d.ts +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { BoxPositionProps } from '../../../types';
|
|
3
|
-
type CenterProps = PropsWithChildren<
|
|
4
|
-
className?: string;
|
|
5
|
-
} & BoxPositionProps>;
|
|
3
|
+
type CenterProps = PropsWithChildren<BoxPositionProps>;
|
|
6
4
|
declare const Center: FC<CenterProps>;
|
|
7
5
|
export default Center;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import { Key } from 'react';
|
|
2
1
|
import { BoxPositionProps, KeyGetter, RenderFunction } from '../../../types';
|
|
3
2
|
import { ColumnsConfig, SpacingConfig } from './types';
|
|
4
|
-
type GridGetKeyProp<T> = T extends {
|
|
5
|
-
key: Key;
|
|
6
|
-
} ? {
|
|
7
|
-
getKey?: KeyGetter<T>;
|
|
8
|
-
} : {
|
|
9
|
-
getKey: KeyGetter<T>;
|
|
10
|
-
};
|
|
11
3
|
type GridProps<T> = {
|
|
12
4
|
items: T[];
|
|
13
5
|
columns?: ColumnsConfig;
|
|
14
6
|
gap?: SpacingConfig;
|
|
15
|
-
|
|
7
|
+
getKey?: KeyGetter<T>;
|
|
16
8
|
render: RenderFunction<T>;
|
|
17
|
-
} &
|
|
18
|
-
declare const Grid: <T>({ items, columns, gap, render, getKey,
|
|
9
|
+
} & BoxPositionProps;
|
|
10
|
+
declare const Grid: <T>({ items, columns, gap, render, getKey, ...boxProps }: GridProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
19
11
|
export default Grid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ILink } from '../../../types';
|
|
2
|
+
import { BoxPositionProps, ILink } from '../../../types';
|
|
3
3
|
type LinkButtonProps = ILink & {
|
|
4
4
|
width?: 'auto' | 'full' | number;
|
|
5
|
-
};
|
|
5
|
+
} & BoxPositionProps;
|
|
6
6
|
declare const LinkButton: FC<LinkButtonProps>;
|
|
7
7
|
export default LinkButton;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { IAuthor } from '../../types';
|
|
2
|
+
import { BoxPositionProps, IAuthor } from '../../types';
|
|
4
3
|
type ExpertTipProps = {
|
|
5
4
|
tip: string;
|
|
6
5
|
expert?: IAuthor;
|
|
7
|
-
} &
|
|
6
|
+
} & BoxPositionProps;
|
|
8
7
|
declare const ExpertTip: FC<ExpertTipProps>;
|
|
9
8
|
export default ExpertTip;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { IFaqItem } from '../../types';
|
|
2
|
+
import { BoxPositionProps, IFaqItem } from '../../types';
|
|
4
3
|
type FaqProps = {
|
|
5
4
|
items: IFaqItem[];
|
|
6
|
-
|
|
7
|
-
};
|
|
5
|
+
} & BoxPositionProps;
|
|
8
6
|
declare const Faq: FC<FaqProps>;
|
|
9
7
|
export default Faq;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { IFeature } from '../../types';
|
|
2
|
+
import { BoxPositionProps, IFeature } from '../../types';
|
|
4
3
|
type FeaturesProps = {
|
|
5
4
|
features: IFeature[];
|
|
6
|
-
} &
|
|
5
|
+
} & BoxPositionProps;
|
|
7
6
|
declare const Features: FC<FeaturesProps>;
|
|
8
7
|
export default Features;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { GatsbyImageProps } from 'gatsby-plugin-image';
|
|
2
|
+
import { BoxPositionProps, ImageFit } from '../../types';
|
|
4
3
|
type GameDemoProps = {
|
|
5
4
|
name: string;
|
|
6
5
|
src: string;
|
|
7
|
-
previewImageFit?:
|
|
8
|
-
} &
|
|
6
|
+
previewImageFit?: ImageFit;
|
|
7
|
+
} & BoxPositionProps;
|
|
9
8
|
declare const GameDemo: FC<GameDemoProps>;
|
|
10
9
|
export default GameDemo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageFit } from '../../../types';
|
|
3
3
|
type GameDemoPreviewProps = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
alt: string;
|
|
5
|
+
imageFit?: ImageFit;
|
|
6
6
|
onPlay: VoidFunction;
|
|
7
7
|
};
|
|
8
8
|
declare const GameDemoPreview: FC<GameDemoPreviewProps>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { IHowToStep } from '../../types';
|
|
3
|
-
import { BoxProps } from '@chakra-ui/react';
|
|
2
|
+
import { BoxPositionProps, IHowToStep } from '../../types';
|
|
4
3
|
type HowToProps = {
|
|
5
4
|
steps: IHowToStep[];
|
|
6
|
-
} &
|
|
5
|
+
} & BoxPositionProps;
|
|
7
6
|
declare const HowTo: FC<HowToProps>;
|
|
8
7
|
export default HowTo;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
3
|
+
const index = require("../index-CnohyDGd.js");
|
|
4
4
|
exports.Author = index.Author;
|
|
5
5
|
exports.BonusCard = index.BonusCard;
|
|
6
6
|
exports.Center = index.Center;
|
|
7
7
|
exports.ContactForm = index.ContactForm;
|
|
8
|
+
exports.Expert = index.Expert;
|
|
8
9
|
exports.ExpertTip = index.ExpertTip;
|
|
9
10
|
exports.Faq = index.Faq;
|
|
11
|
+
exports.FeatureCard = index.FeatureCard;
|
|
10
12
|
exports.Features = index.Features;
|
|
11
13
|
exports.GameCard = index.GameCard;
|
|
12
14
|
exports.GameDemo = index.GameDemo;
|
|
@@ -17,6 +19,7 @@ exports.Layout = index.Layout;
|
|
|
17
19
|
exports.LinkButton = index.LinkButton;
|
|
18
20
|
exports.List = index.List;
|
|
19
21
|
exports.ProsCons = index.ProsCons;
|
|
22
|
+
exports.PulseButton = index.PulseButton;
|
|
20
23
|
exports.Seo = index.Seo;
|
|
21
24
|
exports.Table = index.Table;
|
|
22
25
|
exports.Tabs = index.Tabs;
|
|
@@ -4,6 +4,7 @@ export { default as BonusCard } from './bonus-card';
|
|
|
4
4
|
export { default as ContactForm } from './contact-form';
|
|
5
5
|
export { default as ExpertTip } from './expert-tip';
|
|
6
6
|
export { default as Faq } from './faq';
|
|
7
|
+
export { default as FeatureCard } from './feature-card';
|
|
7
8
|
export { default as Features } from './features';
|
|
8
9
|
export { default as GameCard } from './game-card';
|
|
9
10
|
export { default as GameDemo } from './game-demo';
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { A, B,
|
|
1
|
+
import { A, B, g, C, h, E, F, a, b, G, c, d, i, H, L, j, e, P, k, S, T, f } from "../index-CHSIkTv7.mjs";
|
|
2
2
|
export {
|
|
3
3
|
A as Author,
|
|
4
4
|
B as BonusCard,
|
|
5
|
-
|
|
5
|
+
g as Center,
|
|
6
6
|
C as ContactForm,
|
|
7
|
+
h as Expert,
|
|
7
8
|
E as ExpertTip,
|
|
8
9
|
F as Faq,
|
|
9
|
-
a as
|
|
10
|
+
a as FeatureCard,
|
|
11
|
+
b as Features,
|
|
10
12
|
G as GameCard,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
c as GameDemo,
|
|
14
|
+
d as GameInfo,
|
|
15
|
+
i as Grid,
|
|
14
16
|
H as HowTo,
|
|
15
17
|
L as Layout,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
j as LinkButton,
|
|
19
|
+
e as List,
|
|
18
20
|
P as ProsCons,
|
|
21
|
+
k as PulseButton,
|
|
19
22
|
S as Seo,
|
|
20
23
|
T as Table,
|
|
21
|
-
|
|
24
|
+
f as Tabs
|
|
22
25
|
};
|
package/dist/components/layout/header/{navbar/navigation → navigation}/desktop/item/index.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { INavigationItem } from '
|
|
2
|
+
import { INavigationItem } from '../../../../../../types';
|
|
3
3
|
type DesktopNavItemProps = INavigationItem;
|
|
4
4
|
declare const DesktopNavItem: FC<DesktopNavItemProps>;
|
|
5
5
|
export default DesktopNavItem;
|
package/dist/components/layout/header/{navbar/navigation → navigation}/mobile/item/index.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { INavigationItem } from '
|
|
2
|
+
import { INavigationItem } from '../../../../../../types';
|
|
3
3
|
type MobileNavItemProps = INavigationItem;
|
|
4
4
|
declare const MobileNavItem: FC<MobileNavItemProps>;
|
|
5
5
|
export default MobileNavItem;
|
|
@@ -7,7 +7,6 @@ type ListRenderProps<T> = T extends string ? {
|
|
|
7
7
|
type ListProps<T = string> = {
|
|
8
8
|
items: T[];
|
|
9
9
|
bullet?: string;
|
|
10
|
-
className?: string;
|
|
11
10
|
} & ListRenderProps<T> & BoxPositionProps;
|
|
12
|
-
declare const List: <T>({ items, bullet, render,
|
|
11
|
+
declare const List: <T>({ items, bullet, render, ...boxProps }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export default List;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ProsConsItems } from '../../types';
|
|
2
|
+
import { BoxPositionProps, ProsConsItems } from '../../types';
|
|
4
3
|
type ProsConsProps = {
|
|
5
4
|
items: ProsConsItems;
|
|
6
|
-
} &
|
|
5
|
+
} & BoxPositionProps;
|
|
7
6
|
declare const ProsCons: FC<ProsConsProps>;
|
|
8
7
|
export default ProsCons;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BoxPositionProps, ITabItem, RenderFunction } from '../../types';
|
|
2
2
|
type TabsProps<T> = {
|
|
3
3
|
items: ITabItem<T>[];
|
|
4
|
-
className?: string;
|
|
5
4
|
render: RenderFunction<T>;
|
|
6
5
|
} & BoxPositionProps;
|
|
7
|
-
declare const Tabs: <T>({ items,
|
|
6
|
+
declare const Tabs: <T>({ items, render, ...boxProps }: TabsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default Tabs;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
const SiteContext = createContext(null);
|
|
4
|
+
const SiteProvider = ({ children, ...value }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(SiteContext.Provider, { value, children });
|
|
6
|
+
};
|
|
7
|
+
function useSiteContext() {
|
|
8
|
+
const context = useContext(SiteContext);
|
|
9
|
+
if (!context) {
|
|
10
|
+
throw new Error("useSiteContext must be used within SiteProvider");
|
|
11
|
+
}
|
|
12
|
+
return context;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
SiteProvider as S,
|
|
16
|
+
useSiteContext as u
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const react = require("react");
|
|
4
|
+
const SiteContext = react.createContext(null);
|
|
5
|
+
const SiteProvider = ({ children, ...value }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SiteContext.Provider, { value, children });
|
|
7
|
+
};
|
|
8
|
+
function useSiteContext() {
|
|
9
|
+
const context = react.useContext(SiteContext);
|
|
10
|
+
if (!context) {
|
|
11
|
+
throw new Error("useSiteContext must be used within SiteProvider");
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
exports.SiteProvider = SiteProvider;
|
|
16
|
+
exports.useSiteContext = useSiteContext;
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const react = require("@emotion/react");
|
|
2
3
|
require("./index-DCIXk-YH.js");
|
|
3
4
|
const i18n = require("i18next");
|
|
5
|
+
const pulse = react.keyframes`
|
|
6
|
+
0% {
|
|
7
|
+
box-shadow: 0 0 0 0 var(--chakra-colors-brand-100);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
50% {
|
|
11
|
+
box-shadow: 0 0 0 0.8rem rgba(0, 0, 0, 0);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
100% {
|
|
15
|
+
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
18
|
+
const Animation = {
|
|
19
|
+
pulse
|
|
20
|
+
};
|
|
4
21
|
function getCurrentYear() {
|
|
5
22
|
const locale = i18n.language;
|
|
6
23
|
const currentDate = /* @__PURE__ */ new Date();
|
|
@@ -78,6 +95,7 @@ const protocolRegex = /^https?:\/\//;
|
|
|
78
95
|
function getDomain(url) {
|
|
79
96
|
return url.replace(protocolRegex, "");
|
|
80
97
|
}
|
|
98
|
+
exports.Animation = Animation;
|
|
81
99
|
exports.formatDate = formatDate;
|
|
82
100
|
exports.formatNumber = formatNumber;
|
|
83
101
|
exports.getCurrencySymbol = getCurrencySymbol;
|