@masters-ws/react-seo 1.2.1 → 1.4.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 +1354 -97
- package/dist/chunk-6RBCF5I5.mjs +567 -0
- package/dist/chunk-FFE2ZOOC.mjs +945 -0
- package/dist/chunk-L6YRMB7H.mjs +988 -0
- package/dist/chunk-UBBPNSEV.mjs +1016 -0
- package/dist/core/index.d.mts +2 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +684 -40
- package/dist/core/index.mjs +29 -3
- package/dist/index-CkB-Wt4c.d.mts +1272 -0
- package/dist/index-CkB-Wt4c.d.ts +1272 -0
- package/dist/index-DEE7ZyDx.d.mts +1193 -0
- package/dist/index-DEE7ZyDx.d.ts +1193 -0
- package/dist/index-Wu9j5oCk.d.mts +721 -0
- package/dist/index-Wu9j5oCk.d.ts +721 -0
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1771 -144
- package/dist/index.mjs +1030 -32
- package/package.json +2 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-
|
|
2
|
-
export { g as generateArticleSchema,
|
|
1
|
+
import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-CkB-Wt4c.mjs';
|
|
2
|
+
export { A as ArticleMetadataInput, b as ArticleMetadataResult, C as CategoryMetadataInput, c as CategoryMetadataResult, H as HomepageMetadataInput, d as HomepageMetadataResult, J as JsonLd, e as JsonLdProps, M as MerchantReturnPolicy, P as ProductMetadataInput, f as ProductMetadataResult, g as ProductReview, h as ProductVariant, i as ShippingDetails, j as cleanSchema, k as generateArticleMetadata, l as generateArticleSchema, m as generateBookSchema, n as generateBreadcrumbSchema, o as generateCategoryMetadata, p as generateCollectionPageSchema, q as generateEventSchema, r as generateFAQSchema, s as generateHomepageMetadata, t as generateHowToSchema, u as generateItemListSchema, v as generateJobPostingSchema, w as generateLocalBusinessSchema, x as generateMovieSchema, y as generateOrganizationSchema, z as generatePaginatedTitle, D as generatePaginationLinks, E as generatePodcastEpisodeSchema, F as generatePodcastSchema, G as generateProductMetadata, I as generateProductSchema, K as generateRecipeSchema, L as generateSoftwareSchema, N as generateVideoSchema, O as generateWebPageSchema, Q as generateWebSiteSchema, R as toNextMetadata, T as validateSEO } from './index-CkB-Wt4c.mjs';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
interface SEOProviderProps {
|
|
6
7
|
config: SiteConfig;
|
|
@@ -144,6 +145,8 @@ interface SeoCategoryProps extends Omit<SEOProps, 'type'> {
|
|
|
144
145
|
};
|
|
145
146
|
page?: number;
|
|
146
147
|
totalPage?: number;
|
|
148
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
149
|
+
pageSuffix?: string;
|
|
147
150
|
}
|
|
148
151
|
declare const SeoCategory: React.FC<SeoCategoryProps>;
|
|
149
152
|
|
|
@@ -155,6 +158,12 @@ interface SeoTagProps extends Omit<SEOProps, 'type'> {
|
|
|
155
158
|
};
|
|
156
159
|
page?: number;
|
|
157
160
|
totalPage?: number;
|
|
161
|
+
/** Prefix for title, e.g. "Tag" or "تاغ" (default: "Tag") */
|
|
162
|
+
titlePrefix?: string;
|
|
163
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
164
|
+
pageSuffix?: string;
|
|
165
|
+
/** Default description template. Use {name} as placeholder. */
|
|
166
|
+
defaultDescription?: string;
|
|
158
167
|
}
|
|
159
168
|
declare const SeoTag: React.FC<SeoTagProps>;
|
|
160
169
|
|
|
@@ -168,6 +177,8 @@ interface SeoAuthorProps extends Omit<SEOProps, 'type'> {
|
|
|
168
177
|
};
|
|
169
178
|
page?: number;
|
|
170
179
|
totalPage?: number;
|
|
180
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
181
|
+
pageSuffix?: string;
|
|
171
182
|
}
|
|
172
183
|
declare const SeoAuthor: React.FC<SeoAuthorProps>;
|
|
173
184
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-
|
|
2
|
-
export { g as generateArticleSchema,
|
|
1
|
+
import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-CkB-Wt4c.js';
|
|
2
|
+
export { A as ArticleMetadataInput, b as ArticleMetadataResult, C as CategoryMetadataInput, c as CategoryMetadataResult, H as HomepageMetadataInput, d as HomepageMetadataResult, J as JsonLd, e as JsonLdProps, M as MerchantReturnPolicy, P as ProductMetadataInput, f as ProductMetadataResult, g as ProductReview, h as ProductVariant, i as ShippingDetails, j as cleanSchema, k as generateArticleMetadata, l as generateArticleSchema, m as generateBookSchema, n as generateBreadcrumbSchema, o as generateCategoryMetadata, p as generateCollectionPageSchema, q as generateEventSchema, r as generateFAQSchema, s as generateHomepageMetadata, t as generateHowToSchema, u as generateItemListSchema, v as generateJobPostingSchema, w as generateLocalBusinessSchema, x as generateMovieSchema, y as generateOrganizationSchema, z as generatePaginatedTitle, D as generatePaginationLinks, E as generatePodcastEpisodeSchema, F as generatePodcastSchema, G as generateProductMetadata, I as generateProductSchema, K as generateRecipeSchema, L as generateSoftwareSchema, N as generateVideoSchema, O as generateWebPageSchema, Q as generateWebSiteSchema, R as toNextMetadata, T as validateSEO } from './index-CkB-Wt4c.js';
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
interface SEOProviderProps {
|
|
6
7
|
config: SiteConfig;
|
|
@@ -144,6 +145,8 @@ interface SeoCategoryProps extends Omit<SEOProps, 'type'> {
|
|
|
144
145
|
};
|
|
145
146
|
page?: number;
|
|
146
147
|
totalPage?: number;
|
|
148
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
149
|
+
pageSuffix?: string;
|
|
147
150
|
}
|
|
148
151
|
declare const SeoCategory: React.FC<SeoCategoryProps>;
|
|
149
152
|
|
|
@@ -155,6 +158,12 @@ interface SeoTagProps extends Omit<SEOProps, 'type'> {
|
|
|
155
158
|
};
|
|
156
159
|
page?: number;
|
|
157
160
|
totalPage?: number;
|
|
161
|
+
/** Prefix for title, e.g. "Tag" or "تاغ" (default: "Tag") */
|
|
162
|
+
titlePrefix?: string;
|
|
163
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
164
|
+
pageSuffix?: string;
|
|
165
|
+
/** Default description template. Use {name} as placeholder. */
|
|
166
|
+
defaultDescription?: string;
|
|
158
167
|
}
|
|
159
168
|
declare const SeoTag: React.FC<SeoTagProps>;
|
|
160
169
|
|
|
@@ -168,6 +177,8 @@ interface SeoAuthorProps extends Omit<SEOProps, 'type'> {
|
|
|
168
177
|
};
|
|
169
178
|
page?: number;
|
|
170
179
|
totalPage?: number;
|
|
180
|
+
/** Page suffix for pagination, e.g. "Page" or "صفحة" (default: "Page") */
|
|
181
|
+
pageSuffix?: string;
|
|
171
182
|
}
|
|
172
183
|
declare const SeoAuthor: React.FC<SeoAuthorProps>;
|
|
173
184
|
|