@anywayseo/tools 5.1.0 → 5.3.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/image/index.d.ts +10 -0
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/game-demo/preview/index.d.ts +2 -2
- package/dist/components/game-info/index.d.ts +2 -1
- package/dist/components/game-info/utils.d.ts +3 -1
- package/dist/components/index.cjs +3 -2
- package/dist/components/index.mjs +3 -2
- package/dist/components/strapi-component/utils.d.ts +9 -0
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/{index-Bu4S7kG8.mjs → index-BCK4kr6V.mjs} +13 -21
- package/dist/{index-D0yXUsJz.js → index-BGMR4f6W.js} +73 -63
- package/dist/{index-D34TfBTR.js → index-BICcOaT7.js} +9 -17
- package/dist/{index-BIdYBT1G.js → index-BbxOP7UY.js} +9 -5
- package/dist/{index-B9GEoC68.js → index-BltrZp3R.js} +33 -10
- package/dist/{index-CACDltm3.mjs → index-Bts2DBYS.mjs} +12 -12
- package/dist/{index-tJcccH0B.mjs → index-Bwlxdh5F.mjs} +25 -2
- package/dist/{index-CrmmG8yy.mjs → index-C4sJXfkN.mjs} +7 -3
- package/dist/{index-BnmGE5_x.js → index-CAfBnNV6.js} +1 -1
- package/dist/{index-BHfpWNqh.js → index-CJVr79Z2.js} +12 -12
- package/dist/{index-BCuXOiT9.mjs → index-CjaAcLJf.mjs} +71 -61
- package/dist/{index-QazOxABc.mjs → index-tj12BA6U.mjs} +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.mjs +11 -11
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.mjs +2 -2
- package/dist/types/components/how-to/index.d.ts +2 -2
- package/dist/types/components/image/index.d.ts +4 -2
- package/dist/types/content/author/index.d.ts +2 -2
- package/dist/types/site/index.d.ts +3 -3
- package/dist/utils/currency/index.d.ts +2 -0
- package/dist/utils/index.cjs +1 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.mjs +5 -6
- package/dist/utils/numbers/index.d.ts +1 -17
- package/dist/utils/numbers/types.d.ts +15 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, S, h, T, i, j } from "./index-
|
|
2
|
-
import { L as L2, P as P2, S as S2, u, a as a2 } 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, h, T, i, j } from "./index-CjaAcLJf.mjs";
|
|
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
|
-
import { u as u3 } from "./index-
|
|
4
|
+
import { u as u3 } from "./index-tj12BA6U.mjs";
|
|
5
5
|
import { DEFAULT_LANGUAGE, resources } from "./i18n/index.mjs";
|
|
6
|
-
import { M } from "./index-
|
|
7
|
-
import { a as a3, G as G2 } from "./index-
|
|
6
|
+
import { M } from "./index-C4sJXfkN.mjs";
|
|
7
|
+
import { a as a3, G as G2 } from "./index-Bts2DBYS.mjs";
|
|
8
8
|
import { A as A2 } from "./index-BJRvnR8Q.mjs";
|
|
9
9
|
import { b as b2, c as c2, g as g2, a as a4 } from "./index-cQqALZIW.mjs";
|
|
10
|
-
import { f as f2,
|
|
10
|
+
import { f as f2, c as c3, g as g3, b as b3, a as a5, e as e2, d as d2, r, t } from "./index-BCK4kr6V.mjs";
|
|
11
11
|
import { b as b4, i as i2 } from "./index-BmaWfWLV.mjs";
|
|
12
12
|
import { D, L as L3 } from "./index-BRVKhbs6.mjs";
|
|
13
13
|
export {
|
|
@@ -31,6 +31,7 @@ export {
|
|
|
31
31
|
G2 as GameVolatility,
|
|
32
32
|
m as Grid,
|
|
33
33
|
H as HowTo,
|
|
34
|
+
I as Image,
|
|
34
35
|
L3 as LIGHT_THEME_COLOR,
|
|
35
36
|
L as Layout,
|
|
36
37
|
L2 as Link,
|
|
@@ -48,17 +49,16 @@ export {
|
|
|
48
49
|
j as Tip,
|
|
49
50
|
b4 as buildPath,
|
|
50
51
|
f2 as formatDate,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
c3 as formatNumber,
|
|
53
|
+
g3 as getCurrencySymbol,
|
|
54
|
+
b3 as getCurrentMonth,
|
|
55
|
+
a5 as getCurrentYear,
|
|
55
56
|
b2 as getLocale,
|
|
56
57
|
c2 as getLocales,
|
|
57
58
|
g2 as getNavigation,
|
|
58
59
|
e2 as getSeededRandomComparator,
|
|
59
60
|
a4 as getSiteName,
|
|
60
61
|
i2 as isRelativePath,
|
|
61
|
-
p as parseNumber,
|
|
62
62
|
d2 as randomComparator,
|
|
63
63
|
resources,
|
|
64
64
|
r as round,
|
package/dist/providers/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
4
|
-
const index$1 = require("../index-
|
|
3
|
+
const index = require("../index-BbxOP7UY.js");
|
|
4
|
+
const index$1 = require("../index-BltrZp3R.js");
|
|
5
5
|
exports.MdxProvider = index.MdxProvider;
|
|
6
6
|
exports.PageProvider = index$1.PageProvider;
|
|
7
7
|
exports.SiteProvider = index$1.SiteProvider;
|
package/dist/providers/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ImageProps } from '@chakra-ui/react';
|
|
3
3
|
export type ImageUrl = string;
|
|
4
|
-
export type ImageComponent = ReactElement
|
|
5
|
-
|
|
4
|
+
export type ImageComponent = ReactElement<{
|
|
5
|
+
image: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export type ImageType = ImageUrl | ImageComponent;
|
|
6
8
|
export type ImageFit = ImageProps['objectFit'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImageType } from '../../components';
|
|
2
2
|
type SocialNetwork = 'fb' | 'tw';
|
|
3
3
|
type Phone = string;
|
|
4
4
|
interface ISocialNetwork {
|
|
@@ -9,7 +9,7 @@ export interface IAuthor {
|
|
|
9
9
|
name: string;
|
|
10
10
|
role: string;
|
|
11
11
|
bio: string;
|
|
12
|
-
avatar:
|
|
12
|
+
avatar: ImageType;
|
|
13
13
|
/** Planned */
|
|
14
14
|
address?: string;
|
|
15
15
|
phone?: Phone;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageType, INavigation } from '../components';
|
|
3
3
|
import { ISeo } from '../content';
|
|
4
4
|
import { Currency, ILocale } from '../i18n';
|
|
5
5
|
interface ISiteHeaderConfig {
|
|
@@ -30,8 +30,8 @@ export interface ISiteMetadata {
|
|
|
30
30
|
name: string;
|
|
31
31
|
lang: ILocale['code'];
|
|
32
32
|
seo: ISeo;
|
|
33
|
-
logo:
|
|
33
|
+
logo: ImageType;
|
|
34
34
|
/** Planned */
|
|
35
|
-
favicon?:
|
|
35
|
+
favicon?: ImageType;
|
|
36
36
|
}
|
|
37
37
|
export {};
|
package/dist/utils/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("../index-C6MG_f24.js");
|
|
4
4
|
const index$1 = require("../index-CYr1ct1t.js");
|
|
5
|
-
const index$2 = require("../index-
|
|
5
|
+
const index$2 = require("../index-BICcOaT7.js");
|
|
6
6
|
const index$3 = require("../index-At00w6EN.js");
|
|
7
7
|
const index$4 = require("../index-CbuiYkSg.js");
|
|
8
8
|
exports.Animation = index.Animation;
|
|
@@ -16,7 +16,6 @@ exports.getCurrencySymbol = index$2.getCurrencySymbol;
|
|
|
16
16
|
exports.getCurrentMonth = index$2.getCurrentMonth;
|
|
17
17
|
exports.getCurrentYear = index$2.getCurrentYear;
|
|
18
18
|
exports.getSeededRandomComparator = index$2.getSeededRandomComparator;
|
|
19
|
-
exports.parseNumber = index$2.parseNumber;
|
|
20
19
|
exports.randomComparator = index$2.randomComparator;
|
|
21
20
|
exports.round = index$2.round;
|
|
22
21
|
exports.toFixedTwo = index$2.toFixedTwo;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A } from "../index-BJRvnR8Q.mjs";
|
|
2
2
|
import { b, c, g, a } from "../index-cQqALZIW.mjs";
|
|
3
|
-
import { f,
|
|
3
|
+
import { f, c as c2, g as g2, b as b2, a as a2, e, d, r, t } from "../index-BCK4kr6V.mjs";
|
|
4
4
|
import { b as b3, i } from "../index-BmaWfWLV.mjs";
|
|
5
5
|
import { D, L } from "../index-BRVKhbs6.mjs";
|
|
6
6
|
export {
|
|
@@ -9,17 +9,16 @@ export {
|
|
|
9
9
|
L as LIGHT_THEME_COLOR,
|
|
10
10
|
b3 as buildPath,
|
|
11
11
|
f as formatDate,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
c2 as formatNumber,
|
|
13
|
+
g2 as getCurrencySymbol,
|
|
14
|
+
b2 as getCurrentMonth,
|
|
15
|
+
a2 as getCurrentYear,
|
|
16
16
|
b as getLocale,
|
|
17
17
|
c as getLocales,
|
|
18
18
|
g as getNavigation,
|
|
19
19
|
e as getSeededRandomComparator,
|
|
20
20
|
a as getSiteName,
|
|
21
21
|
i as isRelativePath,
|
|
22
|
-
p as parseNumber,
|
|
23
22
|
d as randomComparator,
|
|
24
23
|
r as round,
|
|
25
24
|
t as toFixedTwo
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PercentFormatType } from './types';
|
|
1
|
+
import { FormatNumberOptions } from './types';
|
|
3
2
|
export declare function round(number: number, precision: number): number;
|
|
4
3
|
export declare function toFixedTwo(number: number): number;
|
|
5
|
-
type FormatNumberOptions = {
|
|
6
|
-
locale?: ILocale['code'];
|
|
7
|
-
precision?: number;
|
|
8
|
-
hasTrailingZeros?: boolean;
|
|
9
|
-
hasSign?: boolean;
|
|
10
|
-
} & ({
|
|
11
|
-
percent?: PercentFormatType;
|
|
12
|
-
currency?: never;
|
|
13
|
-
} | {
|
|
14
|
-
percent?: never;
|
|
15
|
-
currency?: Currency;
|
|
16
|
-
});
|
|
17
4
|
export declare function formatNumber(number: number, options?: FormatNumberOptions): string;
|
|
18
|
-
export declare function parseNumber(value: string): number | null;
|
|
19
|
-
export declare function getCurrencySymbol(currencyCode: Currency, locale?: ILocale['code']): string;
|
|
20
|
-
export {};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { Currency, ILocale } from '../../types';
|
|
2
|
+
type PercentFormatType = 'real' | 'sign-only';
|
|
3
|
+
export type FormatNumberOptions = {
|
|
4
|
+
locale?: ILocale['code'];
|
|
5
|
+
precision?: number;
|
|
6
|
+
hasTrailingZeros?: boolean;
|
|
7
|
+
hasSign?: boolean;
|
|
8
|
+
} & ({
|
|
9
|
+
percent?: PercentFormatType;
|
|
10
|
+
currency?: never;
|
|
11
|
+
} | {
|
|
12
|
+
percent?: never;
|
|
13
|
+
currency?: Currency;
|
|
14
|
+
});
|
|
15
|
+
export {};
|
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": "5.
|
|
4
|
+
"version": "5.3.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"ui",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"react": "^18.3.1",
|
|
103
103
|
"react-dom": "^18.3.1",
|
|
104
104
|
"react-i18next": "^15.0.0",
|
|
105
|
-
"react-markdown": "^10.1.0"
|
|
105
|
+
"react-markdown": "^10.1.0",
|
|
106
|
+
"react-medium-image-zoom": "^5.3.0"
|
|
106
107
|
}
|
|
107
108
|
}
|