@masters-ws/react-seo 1.2.0 → 1.2.1
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 +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -131,12 +131,33 @@ All functions are pure (no side effects) and work in any environment:
|
|
|
131
131
|
| `generateVideoSchema(data)` | Creates VideoObject JSON-LD |
|
|
132
132
|
| `generateEventSchema(data)` | Creates Event JSON-LD |
|
|
133
133
|
| `generateLocalBusinessSchema(data)` | Creates LocalBusiness JSON-LD |
|
|
134
|
+
| `generateSoftwareSchema(data)` | Creates SoftwareApplication JSON-LD |
|
|
135
|
+
| `generateBookSchema(data)` | Creates Book JSON-LD |
|
|
136
|
+
| `generateMovieSchema(data)` | Creates Movie JSON-LD |
|
|
137
|
+
| `generatePodcastSchema(data)` | Creates PodcastSeries JSON-LD |
|
|
138
|
+
| `generatePodcastEpisodeSchema(data)` | Creates PodcastEpisode JSON-LD |
|
|
134
139
|
| `generatePaginationLinks(url, page, total)` | Returns prev/next/canonical URLs |
|
|
135
140
|
| `generateOrganizationSchema(config)` | Creates Organization JSON-LD |
|
|
136
141
|
| `generateWebSiteSchema(config)` | Creates WebSite JSON-LD with SearchAction |
|
|
137
142
|
|
|
138
143
|
---
|
|
139
144
|
|
|
145
|
+
### Image Dimensions (for OpenGraph & Twitter)
|
|
146
|
+
|
|
147
|
+
For optimal social sharing, specify image dimensions:
|
|
148
|
+
|
|
149
|
+
```tsx
|
|
150
|
+
toNextMetadata({
|
|
151
|
+
title: "My Article",
|
|
152
|
+
image: "/cover.jpg",
|
|
153
|
+
ogImageWidth: 1200, // Default: 1200
|
|
154
|
+
ogImageHeight: 630, // Default: 630
|
|
155
|
+
ogImageAlt: "Article cover image"
|
|
156
|
+
}, config);
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
140
161
|
## Components Reference (Requires react-helmet-async)
|
|
141
162
|
|
|
142
163
|
| Component | Description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masters-ws/react-seo",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Professional high-performance SEO package for React/Next.js. Zero-dependency core for Next.js App Router, optional Helmet components for React.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|