@anywayseo/tools 2.6.0 → 3.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.
Files changed (36) hide show
  1. package/dist/components/author-card/index.d.ts +7 -0
  2. package/dist/components/{author → base/author}/index.d.ts +3 -3
  3. package/dist/components/base/index.d.ts +1 -1
  4. package/dist/components/index.cjs +4 -3
  5. package/dist/components/index.d.ts +3 -2
  6. package/dist/components/index.mjs +10 -9
  7. package/dist/components/not-found/index.d.ts +3 -0
  8. package/dist/components/seo/index.d.ts +7 -12
  9. package/dist/components/seo/types.d.ts +6 -0
  10. package/dist/components/seo/utils.d.ts +2 -0
  11. package/dist/components/{expert-tip → tip}/index.d.ts +4 -4
  12. package/dist/i18n/index.cjs +1 -1
  13. package/dist/i18n/index.mjs +1 -1
  14. package/dist/{index-BqUBNm7v.mjs → index-25M8hPOF.mjs} +1 -6
  15. package/dist/{index-BEqFPNAt.js → index-Biz1dDqA.js} +12 -12
  16. package/dist/{index-D2APUOog.js → index-Cte2-g6s.js} +1 -6
  17. package/dist/{index-Ct1pg92K.mjs → index-DIxzgBCq.mjs} +113 -98
  18. package/dist/{index-F6_fGeRI.mjs → index-DoBCANwf.mjs} +12 -12
  19. package/dist/index-HmqLMmGf.js +1036 -0
  20. package/dist/index.cjs +6 -6
  21. package/dist/index.mjs +11 -11
  22. package/dist/providers/site-provider/index.d.ts +1 -2
  23. package/dist/types/components/how-to/index.d.ts +2 -2
  24. package/dist/types/components/image/index.d.ts +4 -0
  25. package/dist/types/content/author/index.d.ts +5 -4
  26. package/dist/types/content/index.d.ts +1 -0
  27. package/dist/types/content/seo/index.d.ts +4 -0
  28. package/dist/types/site/index.d.ts +8 -14
  29. package/dist/utils/index.cjs +1 -2
  30. package/dist/utils/index.d.ts +0 -1
  31. package/dist/utils/index.mjs +1 -2
  32. package/package.json +1 -1
  33. package/dist/components/base/expert/index.d.ts +0 -8
  34. package/dist/index-qgcoV14g.js +0 -1021
  35. package/dist/utils/url/index.d.ts +0 -1
  36. /package/dist/components/base/{expert → author}/bio/index.d.ts +0 -0
package/dist/index.cjs CHANGED
@@ -1,19 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-qgcoV14g.js");
3
+ const index = require("./index-HmqLMmGf.js");
4
4
  const index$1 = require("./index-IpSV-c71.js");
5
- const i18n$1 = require("./index-BEqFPNAt.js");
5
+ const i18n$1 = require("./index-Biz1dDqA.js");
6
6
  const index$2 = require("./index-m97PmVsd.js");
7
7
  const index$3 = require("./index-BhsXlbd8.js");
8
- const index$4 = require("./index-D2APUOog.js");
8
+ const index$4 = require("./index-Cte2-g6s.js");
9
9
  const index$5 = require("./index-B-5oUop6.js");
10
10
  const i18n = require("i18next");
11
11
  exports.Author = index.Author;
12
+ exports.AuthorCard = index.AuthorCard;
12
13
  exports.BonusCard = index.BonusCard;
13
14
  exports.Center = index.Center;
14
15
  exports.ContactForm = index.ContactForm;
15
- exports.Expert = index.Expert;
16
- exports.ExpertTip = index.ExpertTip;
17
16
  exports.Faq = index.Faq;
18
17
  exports.FeatureCard = index.FeatureCard;
19
18
  exports.Features = index.Features;
@@ -25,12 +24,14 @@ exports.HowTo = index.HowTo;
25
24
  exports.Layout = index.Layout;
26
25
  exports.LinkButton = index.LinkButton;
27
26
  exports.List = index.List;
27
+ exports.NotFound = index.NotFound;
28
28
  exports.ProsCons = index.ProsCons;
29
29
  exports.PulseButton = index.PulseButton;
30
30
  exports.RichTextRenderer = index.RichTextRenderer;
31
31
  exports.Seo = index.Seo;
32
32
  exports.Table = index.Table;
33
33
  exports.Tabs = index.Tabs;
34
+ exports.Tip = index.Tip;
34
35
  exports.usePrimaryColors = index$1.usePrimaryColors;
35
36
  exports.GameCharacteristic = i18n$1.GameCharacteristic;
36
37
  exports.GameVolatility = i18n$1.GameVolatility;
@@ -44,7 +45,6 @@ exports.formatNumber = index$4.formatNumber;
44
45
  exports.getCurrencySymbol = index$4.getCurrencySymbol;
45
46
  exports.getCurrentMonth = index$4.getCurrentMonth;
46
47
  exports.getCurrentYear = index$4.getCurrentYear;
47
- exports.getDomain = index$4.getDomain;
48
48
  exports.parseNumber = index$4.parseNumber;
49
49
  exports.round = index$4.round;
50
50
  exports.toFixedTwo = index$4.toFixedTwo;
package/dist/index.mjs CHANGED
@@ -1,19 +1,18 @@
1
- import { A, B, g, C, h, E, F, a, b, G, c, d, i, H, L, j, e, P, k, R, S, T, f } from "./index-Ct1pg92K.mjs";
1
+ import { h, A, B, i, C, F, a, b, G, c, d, j, H, L, k, e, N, P, l, R, S, T, f, g } from "./index-DIxzgBCq.mjs";
2
2
  import { u } from "./index-xuSxvz5z.mjs";
3
- import { a as a2, G as G2, r } from "./index-F6_fGeRI.mjs";
3
+ import { a as a2, G as G2, r } from "./index-DoBCANwf.mjs";
4
4
  import { M } from "./index-C-e_0aJJ.mjs";
5
5
  import { S as S2, u as u2 } from "./index-BNb-P8a6.mjs";
6
- import { A as A2, f as f2, b as b2, c as c2, a as a3, g as g2, d as d2, p, r as r2, t } from "./index-BqUBNm7v.mjs";
6
+ import { A as A2, f as f2, b as b2, c as c2, a as a3, g as g2, p, r as r2, t } from "./index-25M8hPOF.mjs";
7
7
  import { e as e2, g as g3 } from "./index-BUx1Bxrs.mjs";
8
8
  import { default as default2 } from "i18next";
9
9
  export {
10
10
  A2 as Animation,
11
- A as Author,
11
+ h as Author,
12
+ A as AuthorCard,
12
13
  B as BonusCard,
13
- g as Center,
14
+ i as Center,
14
15
  C as ContactForm,
15
- h as Expert,
16
- E as ExpertTip,
17
16
  F as Faq,
18
17
  a as FeatureCard,
19
18
  b as Features,
@@ -22,19 +21,21 @@ export {
22
21
  c as GameDemo,
23
22
  d as GameInfo,
24
23
  G2 as GameVolatility,
25
- i as Grid,
24
+ j as Grid,
26
25
  H as HowTo,
27
26
  L as Layout,
28
- j as LinkButton,
27
+ k as LinkButton,
29
28
  e as List,
30
29
  M as MdxProvider,
30
+ N as NotFound,
31
31
  P as ProsCons,
32
- k as PulseButton,
32
+ l as PulseButton,
33
33
  R as RichTextRenderer,
34
34
  S as Seo,
35
35
  S2 as SiteProvider,
36
36
  T as Table,
37
37
  f as Tabs,
38
+ g as Tip,
38
39
  e2 as extractTheme,
39
40
  f2 as formatDate,
40
41
  b2 as formatNumber,
@@ -42,7 +43,6 @@ export {
42
43
  c2 as getCurrencySymbol,
43
44
  a3 as getCurrentMonth,
44
45
  g2 as getCurrentYear,
45
- d2 as getDomain,
46
46
  default2 as i18n,
47
47
  p as parseNumber,
48
48
  r as resources,
@@ -1,9 +1,8 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- import { ISiteAssets, ISiteConfigs, ISiteMetadata } from '../../types';
2
+ import { ISiteConfigs, ISiteMetadata } from '../../types';
3
3
  interface ISiteContext {
4
4
  metadata: ISiteMetadata;
5
5
  configs?: ISiteConfigs;
6
- assets?: ISiteAssets;
7
6
  }
8
7
  type SiteMetadataProviderProps = ISiteContext;
9
8
  declare const SiteProvider: FC<PropsWithChildren<SiteMetadataProviderProps>>;
@@ -1,6 +1,6 @@
1
- import { ReactElement } from 'react';
1
+ import { Image } from '../image';
2
2
  export interface IHowToStep {
3
3
  title: string;
4
4
  description?: string;
5
- image?: string | ReactElement;
5
+ thumbnail?: Image;
6
6
  }
@@ -1,2 +1,6 @@
1
+ import { ReactElement } from 'react';
1
2
  import { ImageProps } from '@chakra-ui/react';
3
+ export type ImageUrl = string;
4
+ export type ImageComponent = ReactElement;
5
+ export type Image = ImageUrl | ImageComponent;
2
6
  export type ImageFit = ImageProps['objectFit'];
@@ -1,3 +1,4 @@
1
+ import { Image } from '../../components';
1
2
  type SocialNetwork = 'fb' | 'tw';
2
3
  type Phone = string;
3
4
  interface ISocialNetwork {
@@ -5,11 +6,11 @@ interface ISocialNetwork {
5
6
  link: string;
6
7
  }
7
8
  export interface IAuthor {
8
- id: string;
9
- firstName: string;
10
- lastName: string;
11
- jobTitle: string;
9
+ name: string;
10
+ role: string;
12
11
  bio: string;
12
+ avatar: Image;
13
+ /** Planned */
13
14
  address?: string;
14
15
  phone?: Phone;
15
16
  socialNetworks?: ISocialNetwork[];
@@ -3,3 +3,4 @@ export * from './bonus';
3
3
  export * from './feature';
4
4
  export * from './game';
5
5
  export * from './link';
6
+ export * from './seo';
@@ -0,0 +1,4 @@
1
+ export interface ISeo {
2
+ title: string;
3
+ description: string;
4
+ }
@@ -1,15 +1,7 @@
1
- import { ReactElement, ReactNode } from 'react';
2
- import { INavItem } from '../components';
1
+ import { ReactNode } from 'react';
2
+ import { Image, INavItem } from '../components';
3
+ import { ISeo } from '../content';
3
4
  import { Currency, LanguageCode } from '../i18n';
4
- type ImageUrl = string;
5
- type ImageComponent = ReactElement;
6
- type Image = ImageUrl | ImageComponent;
7
- export interface ISiteAssets {
8
- images?: {
9
- logo?: Image;
10
- expert?: Image;
11
- };
12
- }
13
5
  interface ISiteHeaderConfig {
14
6
  navigation?: INavItem[];
15
7
  toolbar?: ReactNode;
@@ -24,10 +16,12 @@ export interface ISiteConfigs {
24
16
  footer?: ISiteFooterConfig;
25
17
  }
26
18
  export interface ISiteMetadata {
27
- title: string;
28
- description: string;
29
- siteUrl: string;
19
+ name: string;
20
+ logo: Image;
30
21
  lang: LanguageCode;
31
22
  currency: Currency | Currency[];
23
+ seo: ISeo;
24
+ /** Planned */
25
+ favicon?: Image;
32
26
  }
33
27
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-D2APUOog.js");
3
+ const index = require("../index-Cte2-g6s.js");
4
4
  const index$1 = require("../index-B-5oUop6.js");
5
5
  exports.Animation = index.Animation;
6
6
  exports.formatDate = index.formatDate;
@@ -8,7 +8,6 @@ exports.formatNumber = index.formatNumber;
8
8
  exports.getCurrencySymbol = index.getCurrencySymbol;
9
9
  exports.getCurrentMonth = index.getCurrentMonth;
10
10
  exports.getCurrentYear = index.getCurrentYear;
11
- exports.getDomain = index.getDomain;
12
11
  exports.parseNumber = index.parseNumber;
13
12
  exports.round = index.round;
14
13
  exports.toFixedTwo = index.toFixedTwo;
@@ -2,4 +2,3 @@ export * from './animation';
2
2
  export * from './date';
3
3
  export * from './numbers';
4
4
  export * from './theme';
5
- export * from './url';
@@ -1,4 +1,4 @@
1
- import { A, f, b, c, a, g, d, p, r, t } from "../index-BqUBNm7v.mjs";
1
+ import { A, f, b, c, a, g, p, r, t } from "../index-25M8hPOF.mjs";
2
2
  import { e, g as g2 } from "../index-BUx1Bxrs.mjs";
3
3
  export {
4
4
  A as Animation,
@@ -9,7 +9,6 @@ export {
9
9
  c as getCurrencySymbol,
10
10
  a as getCurrentMonth,
11
11
  g as getCurrentYear,
12
- d as getDomain,
13
12
  p as parseNumber,
14
13
  r as round,
15
14
  t as toFixedTwo
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": "2.6.0",
4
+ "version": "3.0.0",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -1,8 +0,0 @@
1
- import { FC } from 'react';
2
- import { IAuthor } from '../../../types';
3
- type ExpertProps = {
4
- expert: IAuthor;
5
- variant: 'full' | 'short';
6
- };
7
- declare const Expert: FC<ExpertProps>;
8
- export default Expert;