@anywayseo/tools 2.5.1 → 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 (37) 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 +5 -3
  5. package/dist/components/index.d.ts +4 -2
  6. package/dist/components/index.mjs +11 -9
  7. package/dist/components/not-found/index.d.ts +3 -0
  8. package/dist/components/rich-text-renderer/index.d.ts +6 -0
  9. package/dist/components/seo/index.d.ts +7 -12
  10. package/dist/components/seo/types.d.ts +6 -0
  11. package/dist/components/seo/utils.d.ts +2 -0
  12. package/dist/components/{expert-tip → tip}/index.d.ts +4 -4
  13. package/dist/i18n/index.cjs +1 -1
  14. package/dist/i18n/index.mjs +1 -1
  15. package/dist/{index-BqUBNm7v.mjs → index-25M8hPOF.mjs} +1 -6
  16. package/dist/{index-BEqFPNAt.js → index-Biz1dDqA.js} +12 -12
  17. package/dist/{index-D2APUOog.js → index-Cte2-g6s.js} +1 -6
  18. package/dist/{index-CIHivV4r.mjs → index-DIxzgBCq.mjs} +119 -98
  19. package/dist/{index-F6_fGeRI.mjs → index-DoBCANwf.mjs} +12 -12
  20. package/dist/index-HmqLMmGf.js +1036 -0
  21. package/dist/index.cjs +7 -6
  22. package/dist/index.mjs +12 -11
  23. package/dist/providers/site-provider/index.d.ts +1 -2
  24. package/dist/types/components/how-to/index.d.ts +2 -2
  25. package/dist/types/components/image/index.d.ts +4 -0
  26. package/dist/types/content/author/index.d.ts +5 -4
  27. package/dist/types/content/index.d.ts +1 -0
  28. package/dist/types/content/seo/index.d.ts +4 -0
  29. package/dist/types/site/index.d.ts +8 -14
  30. package/dist/utils/index.cjs +1 -2
  31. package/dist/utils/index.d.ts +0 -1
  32. package/dist/utils/index.mjs +1 -2
  33. package/package.json +3 -2
  34. package/dist/components/base/expert/index.d.ts +0 -8
  35. package/dist/index-CQRefU3H.js +0 -1015
  36. package/dist/utils/url/index.d.ts +0 -1
  37. /package/dist/components/base/{expert → author}/bio/index.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { BoxPositionProps, IAuthor } from '../../types';
3
+ type AuthorCardProps = {
4
+ author: IAuthor;
5
+ } & BoxPositionProps;
6
+ declare const AuthorCard: FC<AuthorCardProps>;
7
+ export default AuthorCard;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- import { IAuthor } from '../../types';
3
- import { CardProps } from '@chakra-ui/react';
2
+ import { IAuthor } from '../../../types';
4
3
  type AuthorProps = {
5
4
  author: IAuthor;
6
- } & CardProps;
5
+ variant: 'full' | 'short';
6
+ };
7
7
  declare const Author: FC<AuthorProps>;
8
8
  export default Author;
@@ -1,5 +1,5 @@
1
+ export { default as Author } from './author';
1
2
  export { default as Center } from './center';
2
- export { default as Expert } from './expert';
3
3
  export { default as Grid } from './grid';
4
4
  export { default as LinkButton } from './link-button';
5
5
  export { default as PulseButton } from './pulse-button';
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-CQRefU3H.js");
3
+ const index = require("../index-HmqLMmGf.js");
4
4
  exports.Author = index.Author;
5
+ exports.AuthorCard = index.AuthorCard;
5
6
  exports.BonusCard = index.BonusCard;
6
7
  exports.Center = index.Center;
7
8
  exports.ContactForm = index.ContactForm;
8
- exports.Expert = index.Expert;
9
- exports.ExpertTip = index.ExpertTip;
10
9
  exports.Faq = index.Faq;
11
10
  exports.FeatureCard = index.FeatureCard;
12
11
  exports.Features = index.Features;
@@ -18,8 +17,11 @@ exports.HowTo = index.HowTo;
18
17
  exports.Layout = index.Layout;
19
18
  exports.LinkButton = index.LinkButton;
20
19
  exports.List = index.List;
20
+ exports.NotFound = index.NotFound;
21
21
  exports.ProsCons = index.ProsCons;
22
22
  exports.PulseButton = index.PulseButton;
23
+ exports.RichTextRenderer = index.RichTextRenderer;
23
24
  exports.Seo = index.Seo;
24
25
  exports.Table = index.Table;
25
26
  exports.Tabs = index.Tabs;
27
+ exports.Tip = index.Tip;
@@ -1,8 +1,7 @@
1
- export { default as Author } from './author';
2
1
  export * from './base';
2
+ export { default as AuthorCard } from './author-card';
3
3
  export { default as BonusCard } from './bonus-card';
4
4
  export { default as ContactForm } from './contact-form';
5
- export { default as ExpertTip } from './expert-tip';
6
5
  export { default as Faq } from './faq';
7
6
  export { default as FeatureCard } from './feature-card';
8
7
  export { default as Features } from './features';
@@ -12,7 +11,10 @@ export { default as GameInfo } from './game-info';
12
11
  export { default as HowTo } from './how-to';
13
12
  export { default as Layout } from './layout';
14
13
  export { default as List } from './list';
14
+ export { default as NotFound } from './not-found';
15
15
  export { default as ProsCons } from './pros-cons';
16
+ export { default as RichTextRenderer } from './rich-text-renderer';
16
17
  export { default as Seo } from './seo';
17
18
  export { default as Table } from './table';
18
19
  export { default as Tabs } from './tabs';
20
+ export { default as Tip } from './tip';
@@ -1,25 +1,27 @@
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-CIHivV4r.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
  export {
3
- A as Author,
3
+ h as Author,
4
+ A as AuthorCard,
4
5
  B as BonusCard,
5
- g as Center,
6
+ i as Center,
6
7
  C as ContactForm,
7
- h as Expert,
8
- E as ExpertTip,
9
8
  F as Faq,
10
9
  a as FeatureCard,
11
10
  b as Features,
12
11
  G as GameCard,
13
12
  c as GameDemo,
14
13
  d as GameInfo,
15
- i as Grid,
14
+ j as Grid,
16
15
  H as HowTo,
17
16
  L as Layout,
18
- j as LinkButton,
17
+ k as LinkButton,
19
18
  e as List,
19
+ N as NotFound,
20
20
  P as ProsCons,
21
- k as PulseButton,
21
+ l as PulseButton,
22
+ R as RichTextRenderer,
22
23
  S as Seo,
23
24
  T as Table,
24
- f as Tabs
25
+ f as Tabs,
26
+ g as Tip
25
27
  };
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const NotFound: FC;
3
+ export default NotFound;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ type RichTextRendererProps = {
3
+ content: string;
4
+ };
5
+ declare const RichTextRenderer: FC<RichTextRendererProps>;
6
+ export default RichTextRenderer;
@@ -1,16 +1,11 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- import { ISiteMetadata, LanguageCode } from '../../types';
3
- interface IGetMetaItemFunctionArgs {
4
- domain: string;
5
- currentYear: string;
6
- currentMonth: string;
7
- }
8
- type GetMetaItemFunction = ({ domain, currentYear, currentMonth }: IGetMetaItemFunctionArgs) => string;
9
- type SeoProps = {
2
+ import { ISeo, ISiteMetadata, LanguageCode } from '../../types';
3
+ import { SeoItemGetter } from './types';
4
+ type SeoProps = PropsWithChildren<{
10
5
  siteMetadata: ISiteMetadata;
11
- title?: string | GetMetaItemFunction;
12
- description?: string | GetMetaItemFunction;
6
+ title?: ISeo['title'] | SeoItemGetter;
7
+ description?: ISeo['description'] | SeoItemGetter;
13
8
  lang?: LanguageCode;
14
- };
15
- declare const Seo: FC<PropsWithChildren<SeoProps>>;
9
+ }>;
10
+ declare const Seo: FC<SeoProps>;
16
11
  export default Seo;
@@ -0,0 +1,6 @@
1
+ export interface ISeoItemPlaceholders {
2
+ siteName: string;
3
+ currentYear: string;
4
+ currentMonth: string;
5
+ }
6
+ export type SeoItemGetter = (placeholders: ISeoItemPlaceholders) => string;
@@ -0,0 +1,2 @@
1
+ import { ISeoItemPlaceholders } from './types';
2
+ export declare function replacePlaceholders(text: string, placeholders: ISeoItemPlaceholders): string;
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import { BoxPositionProps, IAuthor } from '../../types';
3
- type ExpertTipProps = {
3
+ type TipProps = {
4
4
  tip: string;
5
- expert?: IAuthor;
5
+ author?: IAuthor | null;
6
6
  } & BoxPositionProps;
7
- declare const ExpertTip: FC<ExpertTipProps>;
8
- export default ExpertTip;
7
+ declare const Tip: FC<TipProps>;
8
+ export default Tip;
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react-i18next");
4
4
  const i18n = require("i18next");
5
- const i18n$1 = require("../index-BEqFPNAt.js");
5
+ const i18n$1 = require("../index-Biz1dDqA.js");
6
6
  exports.i18n = i18n;
7
7
  exports.resources = i18n$1.resources;
@@ -1,6 +1,6 @@
1
1
  import "react-i18next";
2
2
  import { default as default2 } from "i18next";
3
- import { r } from "../index-F6_fGeRI.mjs";
3
+ import { r } from "../index-DoBCANwf.mjs";
4
4
  export {
5
5
  default2 as i18n,
6
6
  r as resources
@@ -1,5 +1,5 @@
1
1
  import { keyframes } from "@emotion/react";
2
- import "./index-F6_fGeRI.mjs";
2
+ import "./index-DoBCANwf.mjs";
3
3
  import i18n from "i18next";
4
4
  const pulse = keyframes`
5
5
  0% {
@@ -90,16 +90,11 @@ function getCurrencySymbol(currencyCode) {
90
90
  }).replace(/\d/g, "").trim();
91
91
  return symbol;
92
92
  }
93
- const protocolRegex = /^https?:\/\//;
94
- function getDomain(url) {
95
- return url.replace(protocolRegex, "");
96
- }
97
93
  export {
98
94
  Animation as A,
99
95
  getCurrentMonth as a,
100
96
  formatNumber as b,
101
97
  getCurrencySymbol as c,
102
- getDomain as d,
103
98
  formatDate as f,
104
99
  getCurrentYear as g,
105
100
  parseNumber as p,
@@ -36,17 +36,17 @@ var GameCharacteristic = /* @__PURE__ */ ((GameCharacteristic2) => {
36
36
  })(GameCharacteristic || {});
37
37
  const pageNotFound$3 = {
38
38
  seo: {
39
- title: "Seite nicht gefunden | {{domain}}"
39
+ title: "Seite nicht gefunden | {{siteName}}"
40
40
  },
41
41
  title: "404 — Seite nicht gefunden",
42
42
  description: "Entschuldigung 😔, wir konnten nicht finden, wonach Sie gesucht haben.",
43
43
  action: "Zur Startseite"
44
44
  };
45
45
  const footer$3 = {
46
- copyright: "© {{year}} {{domain}}. Alle Rechte vorbehalten.",
46
+ copyright: "© {{year}} {{siteName}}. Alle Rechte vorbehalten.",
47
47
  disclaimer: {
48
48
  title: "Spielen Sie verantwortungsbewusst: ",
49
- description: "{{domain}} ist eine unabhängige Ressource und nicht mit den von uns beworbenen Seiten verbunden. Stellen Sie sicher, dass Sie über alle erforderlichen Zertifikate verfügen und die gesetzlichen Anforderungen erfüllt sind, bevor Sie mit dem Spielen beginnen. Der Hauptzweck von {{domain}} besteht darin, informative und unterhaltsame Inhalte bereitzustellen. Wenn Sie nach Links zu verwandten Ressourcen suchen, werden Sie zu den entsprechenden Plattformen weitergeleitet."
49
+ description: "{{siteName}} ist eine unabhängige Ressource und nicht mit den von uns beworbenen Seiten verbunden. Stellen Sie sicher, dass Sie über alle erforderlichen Zertifikate verfügen und die gesetzlichen Anforderungen erfüllt sind, bevor Sie mit dem Spielen beginnen. Der Hauptzweck von {{siteName}} besteht darin, informative und unterhaltsame Inhalte bereitzustellen. Wenn Sie nach Links zu verwandten Ressourcen suchen, werden Sie zu den entsprechenden Plattformen weitergeleitet."
50
50
  }
51
51
  };
52
52
  const gameDemo$3 = {
@@ -153,17 +153,17 @@ const dictionary$3 = {
153
153
  };
154
154
  const pageNotFound$2 = {
155
155
  seo: {
156
- title: "Page not found | {{domain}}"
156
+ title: "Page not found | {{siteName}}"
157
157
  },
158
158
  title: "404 — Page not found",
159
159
  description: "Sorry 😔, we couldn’t find what you were looking for.",
160
160
  action: "Go Home"
161
161
  };
162
162
  const footer$2 = {
163
- copyright: "© {{year}} {{domain}}. All rights reserved.",
163
+ copyright: "© {{year}} {{siteName}}. All rights reserved.",
164
164
  disclaimer: {
165
165
  title: "Play responsibly: ",
166
- description: "{{domain}} is an independent resource not affiliated with the sites we promote. Make sure you have all the necessary certifications and legal requirements are met before you start playing. The main purpose of {{domain}} is to provide informative and entertaining content. If you are looking for links to related resources, you will be redirected to the relevant platforms."
166
+ description: "{{siteName}} is an independent resource not affiliated with the sites we promote. Make sure you have all the necessary certifications and legal requirements are met before you start playing. The main purpose of {{siteName}} is to provide informative and entertaining content. If you are looking for links to related resources, you will be redirected to the relevant platforms."
167
167
  }
168
168
  };
169
169
  const gameDemo$2 = {
@@ -270,17 +270,17 @@ const dictionary$2 = {
270
270
  };
271
271
  const pageNotFound$1 = {
272
272
  seo: {
273
- title: "Pagina non trovata | {{domain}}"
273
+ title: "Pagina non trovata | {{siteName}}"
274
274
  },
275
275
  title: "404 — Pagina non trovata",
276
276
  description: "Spiacenti 😔, non siamo riusciti a trovare quello che cercavi.",
277
277
  action: "Ritorna alla pagina principale"
278
278
  };
279
279
  const footer$1 = {
280
- copyright: "© {{year}} {{domain}}. Tutte le cose sono fatte.",
280
+ copyright: "© {{year}} {{siteName}}. Tutte le cose sono fatte.",
281
281
  disclaimer: {
282
282
  title: "Gioca responsabilmente: ",
283
- description: "{{domain}} è una risorsa indipendente e non affiliata ai siti che promuoviamo. Prima di iniziare a giocare, assicurati di possedere tutte le certificazioni necessarie e di rispettare i requisiti legali in vigore. L'obiettivo principale di {{domain}} è offrire contenuti informativi e di intrattenimento. Se cerchi collegamenti a risorse correlate, verrai reindirizzato alle piattaforme pertinenti."
283
+ description: "{{siteName}} è una risorsa indipendente e non affiliata ai siti che promuoviamo. Prima di iniziare a giocare, assicurati di possedere tutte le certificazioni necessarie e di rispettare i requisiti legali in vigore. L'obiettivo principale di {{siteName}} è offrire contenuti informativi e di intrattenimento. Se cerchi collegamenti a risorse correlate, verrai reindirizzato alle piattaforme pertinenti."
284
284
  }
285
285
  };
286
286
  const gameDemo$1 = {
@@ -387,17 +387,17 @@ const dictionary$1 = {
387
387
  };
388
388
  const pageNotFound = {
389
389
  seo: {
390
- title: "Страница не найдена | {{domain}}"
390
+ title: "Страница не найдена | {{siteName}}"
391
391
  },
392
392
  title: "404 — Страница не найдена",
393
393
  description: "Извините 😔, мы не смогли найти то, что вы искали.",
394
394
  action: "На главную"
395
395
  };
396
396
  const footer = {
397
- copyright: "© {{year}} {{domain}}. Все права защищены.",
397
+ copyright: "© {{year}} {{siteName}}. Все права защищены.",
398
398
  disclaimer: {
399
399
  title: "Играйте ответственно: ",
400
- description: "{{domain}} — независимый ресурс, не связанный с продвигаемыми сайтами. Убедитесь, что у вас есть все необходимые сертификаты и соблюдены юридические требования перед началом игры. Основная цель {{domain}} — предоставление информационного и развлекательного контента. Если вы ищете ссылки на связанные ресурсы, вас перенаправят на соответствующие платформы."
400
+ description: "{{siteName}} — независимый ресурс, не связанный с продвигаемыми сайтами. Убедитесь, что у вас есть все необходимые сертификаты и соблюдены юридические требования перед началом игры. Основная цель {{siteName}} — предоставление информационного и развлекательного контента. Если вы ищете ссылки на связанные ресурсы, вас перенаправят на соответствующие платформы."
401
401
  }
402
402
  };
403
403
  const gameDemo = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const react = require("@emotion/react");
3
- require("./index-BEqFPNAt.js");
3
+ require("./index-Biz1dDqA.js");
4
4
  const i18n = require("i18next");
5
5
  const pulse = react.keyframes`
6
6
  0% {
@@ -91,17 +91,12 @@ function getCurrencySymbol(currencyCode) {
91
91
  }).replace(/\d/g, "").trim();
92
92
  return symbol;
93
93
  }
94
- const protocolRegex = /^https?:\/\//;
95
- function getDomain(url) {
96
- return url.replace(protocolRegex, "");
97
- }
98
94
  exports.Animation = Animation;
99
95
  exports.formatDate = formatDate;
100
96
  exports.formatNumber = formatNumber;
101
97
  exports.getCurrencySymbol = getCurrencySymbol;
102
98
  exports.getCurrentMonth = getCurrentMonth;
103
99
  exports.getCurrentYear = getCurrentYear;
104
- exports.getDomain = getDomain;
105
100
  exports.parseNumber = parseNumber;
106
101
  exports.round = round;
107
102
  exports.toFixedTwo = toFixedTwo;