@anywayseo/tools 2.0.0 → 2.1.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/README.md +69 -62
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,62 +1,69 @@
|
|
|
1
|
-
# Shared UI Components & Modules for Anywayseo projects
|
|
2
|
-
|
|
3
|
-
A modular UI component library designed for Anywayseo blog sites, offering reusable React components and utilities to enhance development speed and consistency.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @anywayseo/tools
|
|
9
|
-
# or
|
|
10
|
-
yarn add @anywayseo/tools
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Peer Dependencies
|
|
14
|
-
|
|
15
|
-
This package requires the following peer dependencies:
|
|
16
|
-
|
|
17
|
-
- "@chakra-ui/icons": "^2.0.0",
|
|
18
|
-
- "@chakra-ui/react": "^2.0.0",
|
|
19
|
-
- "@emotion/react": "^11.0.0",
|
|
20
|
-
- "@emotion/styled": "^11.0.0",
|
|
21
|
-
- "@mdx-js/react": "^2.0.0",
|
|
22
|
-
- "framer-motion": "^12.0.6",
|
|
23
|
-
- "gatsby": "^5.0.0",
|
|
24
|
-
- "
|
|
25
|
-
- "
|
|
26
|
-
- "react": "^18.3.1",
|
|
27
|
-
- "react-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
# Shared UI Components & Modules for Anywayseo projects
|
|
2
|
+
|
|
3
|
+
A modular UI component library designed for Anywayseo blog sites, offering reusable React components and utilities to enhance development speed and consistency.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @anywayseo/tools
|
|
9
|
+
# or
|
|
10
|
+
yarn add @anywayseo/tools
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
This package requires the following peer dependencies:
|
|
16
|
+
|
|
17
|
+
- "@chakra-ui/icons": "^2.0.0",
|
|
18
|
+
- "@chakra-ui/react": "^2.0.0",
|
|
19
|
+
- "@emotion/react": "^11.0.0",
|
|
20
|
+
- "@emotion/styled": "^11.0.0",
|
|
21
|
+
- "@mdx-js/react": "^2.0.0",
|
|
22
|
+
- "framer-motion": "^12.0.6",
|
|
23
|
+
- "gatsby": "^5.0.0",
|
|
24
|
+
- "i18next": "^24.0.0",
|
|
25
|
+
- "react": "^18.3.1",
|
|
26
|
+
- "react-dom": "^18.3.1",
|
|
27
|
+
- "react-i18next": "^15.0.0"
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
### Local Dev using Stand
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm start
|
|
35
|
+
# or
|
|
36
|
+
yarn start
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Importing Components
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import type { IAuthor } from '@anywayseo/tools';
|
|
43
|
+
import { Author, getCurrentYear } from '@anywayseo/tools';
|
|
44
|
+
|
|
45
|
+
const BlogPreview = ({ author }) => (
|
|
46
|
+
<div>
|
|
47
|
+
<Author author={author} />
|
|
48
|
+
{getCurrentYear()}
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Available Modules:
|
|
54
|
+
|
|
55
|
+
- Components
|
|
56
|
+
|
|
57
|
+
- Hooks
|
|
58
|
+
|
|
59
|
+
- i18n
|
|
60
|
+
|
|
61
|
+
- Providers
|
|
62
|
+
|
|
63
|
+
- Types
|
|
64
|
+
|
|
65
|
+
- Utilities
|
|
66
|
+
|
|
67
|
+
## License
|
|
68
|
+
|
|
69
|
+
MIT License © 2025 Anywayseo
|
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.1.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"ui",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"start": "npm
|
|
67
|
+
"start": "npm run start --prefix stand",
|
|
68
68
|
"build": "tsc -b && vite build",
|
|
69
69
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
70
70
|
"prepack": "npm run build",
|