@anywayseo/tools 2.5.1 → 2.6.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/index.cjs +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.mjs +2 -1
- package/dist/components/rich-text-renderer/index.d.ts +6 -0
- package/dist/{index-CIHivV4r.mjs → index-Ct1pg92K.mjs} +7 -1
- package/dist/{index-CQRefU3H.js → index-qgcoV14g.js} +7 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
3
|
+
const index = require("../index-qgcoV14g.js");
|
|
4
4
|
exports.Author = index.Author;
|
|
5
5
|
exports.BonusCard = index.BonusCard;
|
|
6
6
|
exports.Center = index.Center;
|
|
@@ -20,6 +20,7 @@ exports.LinkButton = index.LinkButton;
|
|
|
20
20
|
exports.List = index.List;
|
|
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;
|
|
@@ -13,6 +13,7 @@ export { default as HowTo } from './how-to';
|
|
|
13
13
|
export { default as Layout } from './layout';
|
|
14
14
|
export { default as List } from './list';
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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";
|
|
2
2
|
export {
|
|
3
3
|
A as Author,
|
|
4
4
|
B as BonusCard,
|
|
@@ -19,6 +19,7 @@ export {
|
|
|
19
19
|
e as List,
|
|
20
20
|
P as ProsCons,
|
|
21
21
|
k as PulseButton,
|
|
22
|
+
R as RichTextRenderer,
|
|
22
23
|
S as Seo,
|
|
23
24
|
T as Table,
|
|
24
25
|
f as Tabs
|
|
@@ -4,13 +4,14 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
import { A as Animation, b as formatNumber, c as getCurrencySymbol, f as formatDate, d as getDomain, g as getCurrentYear, a as getCurrentMonth } from "./index-BqUBNm7v.mjs";
|
|
5
5
|
import { a as GameCharacteristic } from "./index-F6_fGeRI.mjs";
|
|
6
6
|
import "@ctrl/tinycolor";
|
|
7
|
-
import "@mdx-js/react";
|
|
7
|
+
import { useMDXComponents } from "@mdx-js/react";
|
|
8
8
|
import { u as useSiteContext } from "./index-BNb-P8a6.mjs";
|
|
9
9
|
import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, forwardRef, useEffect, useMemo } from "react";
|
|
10
10
|
import { EmailIcon, StarIcon, CloseIcon, ExternalLinkIcon, ChevronRightIcon, ChevronDownIcon, HamburgerIcon, ChevronUpIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
|
|
11
11
|
import { u as usePrimaryColors } from "./index-xuSxvz5z.mjs";
|
|
12
12
|
import { t } from "i18next";
|
|
13
13
|
import { Link as Link$1 } from "gatsby";
|
|
14
|
+
import Markdown from "react-markdown";
|
|
14
15
|
const Center = ({ children, ...boxProps }) => {
|
|
15
16
|
return /* @__PURE__ */ jsx(Center$1, { ...boxProps, children });
|
|
16
17
|
};
|
|
@@ -927,6 +928,10 @@ const ProsCons = ({ items, ...boxProps }) => {
|
|
|
927
928
|
/* @__PURE__ */ jsx(ProsConsCard, { itemType: "cons", items: cons })
|
|
928
929
|
] });
|
|
929
930
|
};
|
|
931
|
+
const RichTextRenderer = ({ content }) => {
|
|
932
|
+
const components = useMDXComponents();
|
|
933
|
+
return /* @__PURE__ */ jsx(Markdown, { components, children: content });
|
|
934
|
+
};
|
|
930
935
|
const Seo = ({ children, siteMetadata, title, description, lang }) => {
|
|
931
936
|
const { title: defaultTitle, description: defaultDescription, lang: defaultLang, siteUrl } = siteMetadata;
|
|
932
937
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -1000,6 +1005,7 @@ export {
|
|
|
1000
1005
|
HowTo as H,
|
|
1001
1006
|
Layout as L,
|
|
1002
1007
|
ProsCons as P,
|
|
1008
|
+
RichTextRenderer as R,
|
|
1003
1009
|
Seo as S,
|
|
1004
1010
|
Table as T,
|
|
1005
1011
|
FeatureCard as a,
|
|
@@ -5,13 +5,14 @@ const reactI18next = require("react-i18next");
|
|
|
5
5
|
const index$1 = require("./index-D2APUOog.js");
|
|
6
6
|
const i18n = require("./index-BEqFPNAt.js");
|
|
7
7
|
require("@ctrl/tinycolor");
|
|
8
|
-
require("@mdx-js/react");
|
|
8
|
+
const react$2 = require("@mdx-js/react");
|
|
9
9
|
const index = require("./index-BhsXlbd8.js");
|
|
10
10
|
const react$1 = require("react");
|
|
11
11
|
const icons = require("@chakra-ui/icons");
|
|
12
12
|
const index$2 = require("./index-IpSV-c71.js");
|
|
13
13
|
const i18n$1 = require("i18next");
|
|
14
14
|
const gatsby = require("gatsby");
|
|
15
|
+
const Markdown = require("react-markdown");
|
|
15
16
|
const Center = ({ children, ...boxProps }) => {
|
|
16
17
|
return /* @__PURE__ */ jsxRuntime.jsx(react.Center, { ...boxProps, children });
|
|
17
18
|
};
|
|
@@ -928,6 +929,10 @@ const ProsCons = ({ items, ...boxProps }) => {
|
|
|
928
929
|
/* @__PURE__ */ jsxRuntime.jsx(ProsConsCard, { itemType: "cons", items: cons })
|
|
929
930
|
] });
|
|
930
931
|
};
|
|
932
|
+
const RichTextRenderer = ({ content }) => {
|
|
933
|
+
const components = react$2.useMDXComponents();
|
|
934
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Markdown, { components, children: content });
|
|
935
|
+
};
|
|
931
936
|
const Seo = ({ children, siteMetadata, title, description, lang }) => {
|
|
932
937
|
const { title: defaultTitle, description: defaultDescription, lang: defaultLang, siteUrl } = siteMetadata;
|
|
933
938
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -1010,6 +1015,7 @@ exports.LinkButton = LinkButton;
|
|
|
1010
1015
|
exports.List = List;
|
|
1011
1016
|
exports.ProsCons = ProsCons;
|
|
1012
1017
|
exports.PulseButton = PulseButton;
|
|
1018
|
+
exports.RichTextRenderer = RichTextRenderer;
|
|
1013
1019
|
exports.Seo = Seo;
|
|
1014
1020
|
exports.Table = Table;
|
|
1015
1021
|
exports.Tabs = Tabs;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-qgcoV14g.js");
|
|
4
4
|
const index$1 = require("./index-IpSV-c71.js");
|
|
5
5
|
const i18n$1 = require("./index-BEqFPNAt.js");
|
|
6
6
|
const index$2 = require("./index-m97PmVsd.js");
|
|
@@ -27,6 +27,7 @@ exports.LinkButton = index.LinkButton;
|
|
|
27
27
|
exports.List = index.List;
|
|
28
28
|
exports.ProsCons = index.ProsCons;
|
|
29
29
|
exports.PulseButton = index.PulseButton;
|
|
30
|
+
exports.RichTextRenderer = index.RichTextRenderer;
|
|
30
31
|
exports.Seo = index.Seo;
|
|
31
32
|
exports.Table = index.Table;
|
|
32
33
|
exports.Tabs = index.Tabs;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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";
|
|
2
2
|
import { u } from "./index-xuSxvz5z.mjs";
|
|
3
3
|
import { a as a2, G as G2, r } from "./index-F6_fGeRI.mjs";
|
|
4
4
|
import { M } from "./index-C-e_0aJJ.mjs";
|
|
@@ -30,6 +30,7 @@ export {
|
|
|
30
30
|
M as MdxProvider,
|
|
31
31
|
P as ProsCons,
|
|
32
32
|
k as PulseButton,
|
|
33
|
+
R as RichTextRenderer,
|
|
33
34
|
S as Seo,
|
|
34
35
|
S2 as SiteProvider,
|
|
35
36
|
T as Table,
|
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.
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"ui",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"i18next": "^24.0.0",
|
|
101
101
|
"react": "^18.3.1",
|
|
102
102
|
"react-dom": "^18.3.1",
|
|
103
|
-
"react-i18next": "^15.0.0"
|
|
103
|
+
"react-i18next": "^15.0.0",
|
|
104
|
+
"react-markdown": "^10.1.0"
|
|
104
105
|
}
|
|
105
106
|
}
|