@masters-ws/react-seo 1.0.0 → 1.2.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/index.d.mts CHANGED
@@ -1,82 +1,7 @@
1
+ import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-BEY3UKjK.mjs';
2
+ export { g as generateArticleSchema, b as generateBookSchema, c as generateBreadcrumbSchema, d as generateEventSchema, e as generateFAQSchema, f as generateLocalBusinessSchema, h as generateMovieSchema, i as generateOrganizationSchema, j as generatePaginatedTitle, k as generatePaginationLinks, l as generatePodcastEpisodeSchema, m as generatePodcastSchema, n as generateProductSchema, o as generateSoftwareSchema, p as generateVideoSchema, q as generateWebSiteSchema, t as toNextMetadata } from './index-BEY3UKjK.mjs';
1
3
  import React from 'react';
2
4
 
3
- interface SiteConfig {
4
- name: string;
5
- description: string;
6
- url: string;
7
- logo?: string;
8
- publisher?: string;
9
- twitterHandle?: string;
10
- facebookAppId?: string;
11
- language?: string;
12
- socialLinks?: string[];
13
- googleAnalyticsId?: string;
14
- gtmId?: string;
15
- facebookPixelId?: string;
16
- yandexMetricaId?: string;
17
- themeColor?: string;
18
- manifest?: string;
19
- }
20
- interface SEOData {
21
- title?: string;
22
- description?: string;
23
- image?: string;
24
- canonical?: string;
25
- type?: 'website' | 'article' | 'product' | 'profile' | 'video' | 'faq';
26
- robots?: string;
27
- noindex?: boolean;
28
- keywords?: string[];
29
- prev?: string;
30
- next?: string;
31
- alternates?: Array<{
32
- hreflang: string;
33
- href: string;
34
- }>;
35
- ogTitle?: string;
36
- ogDescription?: string;
37
- ogImage?: string;
38
- ogType?: string;
39
- ogLocale?: string;
40
- twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player';
41
- twitterTitle?: string;
42
- twitterDescription?: string;
43
- twitterImage?: string;
44
- publishedTime?: string;
45
- modifiedTime?: string;
46
- author?: {
47
- name: string;
48
- url?: string;
49
- image?: string;
50
- };
51
- tags?: string[];
52
- section?: string;
53
- readingTime?: number;
54
- product?: {
55
- sku?: string;
56
- brand?: string;
57
- price?: number;
58
- currency?: string;
59
- availability?: string;
60
- rating?: number;
61
- reviewCount?: number;
62
- };
63
- dnsPrefetch?: string[];
64
- preconnect?: string[];
65
- prefetch?: string[];
66
- preload?: Array<{
67
- href: string;
68
- as: string;
69
- type?: string;
70
- }>;
71
- whatsappImage?: string;
72
- whatsappDescription?: string;
73
- schema?: any;
74
- }
75
- interface BreadcrumbItem {
76
- name: string;
77
- item: string;
78
- }
79
-
80
5
  interface SEOProviderProps {
81
6
  config: SiteConfig;
82
7
  children: React.ReactNode;
@@ -342,10 +267,4 @@ interface SeoJobPostingProps {
342
267
  }
343
268
  declare const SeoJobPosting: React.FC<SeoJobPostingProps>;
344
269
 
345
- /**
346
- * Converts SEOData and SiteConfig to a Next.js compatible Metadata object.
347
- * This is designed to be used in Server Components (App Router).
348
- */
349
- declare function toNextMetadata(props: SEOData, config: SiteConfig): any;
350
-
351
- export { Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type FAQItem, type HowToStep, SEO, type SEOData, type SEOProps, SEOProvider, type SEOProviderProps, SeoArticle, type SeoArticleProps, SeoAuthor, type SeoAuthorProps, SeoCategory, type SeoCategoryProps, SeoCourse, type SeoCourseProps, SeoEvent, type SeoEventProps, SeoFAQ, type SeoFAQProps, SeoHowTo, type SeoHowToProps, SeoJobPosting, type SeoJobPostingProps, SeoLocalBusiness, type SeoLocalBusinessProps, SeoProduct, type SeoProductProps, SeoRecipe, type SeoRecipeProps, SeoReview, type SeoReviewProps, SeoTag, type SeoTagProps, SeoVideo, type SeoVideoProps, type SiteConfig, toNextMetadata, useSEOConfig };
270
+ export { Breadcrumb, BreadcrumbItem, type BreadcrumbProps, type FAQItem, type HowToStep, SEO, SEOData, type SEOProps, SEOProvider, type SEOProviderProps, SeoArticle, type SeoArticleProps, SeoAuthor, type SeoAuthorProps, SeoCategory, type SeoCategoryProps, SeoCourse, type SeoCourseProps, SeoEvent, type SeoEventProps, SeoFAQ, type SeoFAQProps, SeoHowTo, type SeoHowToProps, SeoJobPosting, type SeoJobPostingProps, SeoLocalBusiness, type SeoLocalBusinessProps, SeoProduct, type SeoProductProps, SeoRecipe, type SeoRecipeProps, SeoReview, type SeoReviewProps, SeoTag, type SeoTagProps, SeoVideo, type SeoVideoProps, SiteConfig, useSEOConfig };
package/dist/index.d.ts CHANGED
@@ -1,82 +1,7 @@
1
+ import { S as SiteConfig, a as SEOData, B as BreadcrumbItem } from './index-BEY3UKjK.js';
2
+ export { g as generateArticleSchema, b as generateBookSchema, c as generateBreadcrumbSchema, d as generateEventSchema, e as generateFAQSchema, f as generateLocalBusinessSchema, h as generateMovieSchema, i as generateOrganizationSchema, j as generatePaginatedTitle, k as generatePaginationLinks, l as generatePodcastEpisodeSchema, m as generatePodcastSchema, n as generateProductSchema, o as generateSoftwareSchema, p as generateVideoSchema, q as generateWebSiteSchema, t as toNextMetadata } from './index-BEY3UKjK.js';
1
3
  import React from 'react';
2
4
 
3
- interface SiteConfig {
4
- name: string;
5
- description: string;
6
- url: string;
7
- logo?: string;
8
- publisher?: string;
9
- twitterHandle?: string;
10
- facebookAppId?: string;
11
- language?: string;
12
- socialLinks?: string[];
13
- googleAnalyticsId?: string;
14
- gtmId?: string;
15
- facebookPixelId?: string;
16
- yandexMetricaId?: string;
17
- themeColor?: string;
18
- manifest?: string;
19
- }
20
- interface SEOData {
21
- title?: string;
22
- description?: string;
23
- image?: string;
24
- canonical?: string;
25
- type?: 'website' | 'article' | 'product' | 'profile' | 'video' | 'faq';
26
- robots?: string;
27
- noindex?: boolean;
28
- keywords?: string[];
29
- prev?: string;
30
- next?: string;
31
- alternates?: Array<{
32
- hreflang: string;
33
- href: string;
34
- }>;
35
- ogTitle?: string;
36
- ogDescription?: string;
37
- ogImage?: string;
38
- ogType?: string;
39
- ogLocale?: string;
40
- twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player';
41
- twitterTitle?: string;
42
- twitterDescription?: string;
43
- twitterImage?: string;
44
- publishedTime?: string;
45
- modifiedTime?: string;
46
- author?: {
47
- name: string;
48
- url?: string;
49
- image?: string;
50
- };
51
- tags?: string[];
52
- section?: string;
53
- readingTime?: number;
54
- product?: {
55
- sku?: string;
56
- brand?: string;
57
- price?: number;
58
- currency?: string;
59
- availability?: string;
60
- rating?: number;
61
- reviewCount?: number;
62
- };
63
- dnsPrefetch?: string[];
64
- preconnect?: string[];
65
- prefetch?: string[];
66
- preload?: Array<{
67
- href: string;
68
- as: string;
69
- type?: string;
70
- }>;
71
- whatsappImage?: string;
72
- whatsappDescription?: string;
73
- schema?: any;
74
- }
75
- interface BreadcrumbItem {
76
- name: string;
77
- item: string;
78
- }
79
-
80
5
  interface SEOProviderProps {
81
6
  config: SiteConfig;
82
7
  children: React.ReactNode;
@@ -342,10 +267,4 @@ interface SeoJobPostingProps {
342
267
  }
343
268
  declare const SeoJobPosting: React.FC<SeoJobPostingProps>;
344
269
 
345
- /**
346
- * Converts SEOData and SiteConfig to a Next.js compatible Metadata object.
347
- * This is designed to be used in Server Components (App Router).
348
- */
349
- declare function toNextMetadata(props: SEOData, config: SiteConfig): any;
350
-
351
- export { Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, type FAQItem, type HowToStep, SEO, type SEOData, type SEOProps, SEOProvider, type SEOProviderProps, SeoArticle, type SeoArticleProps, SeoAuthor, type SeoAuthorProps, SeoCategory, type SeoCategoryProps, SeoCourse, type SeoCourseProps, SeoEvent, type SeoEventProps, SeoFAQ, type SeoFAQProps, SeoHowTo, type SeoHowToProps, SeoJobPosting, type SeoJobPostingProps, SeoLocalBusiness, type SeoLocalBusinessProps, SeoProduct, type SeoProductProps, SeoRecipe, type SeoRecipeProps, SeoReview, type SeoReviewProps, SeoTag, type SeoTagProps, SeoVideo, type SeoVideoProps, type SiteConfig, toNextMetadata, useSEOConfig };
270
+ export { Breadcrumb, BreadcrumbItem, type BreadcrumbProps, type FAQItem, type HowToStep, SEO, SEOData, type SEOProps, SEOProvider, type SEOProviderProps, SeoArticle, type SeoArticleProps, SeoAuthor, type SeoAuthorProps, SeoCategory, type SeoCategoryProps, SeoCourse, type SeoCourseProps, SeoEvent, type SeoEventProps, SeoFAQ, type SeoFAQProps, SeoHowTo, type SeoHowToProps, SeoJobPosting, type SeoJobPostingProps, SeoLocalBusiness, type SeoLocalBusinessProps, SeoProduct, type SeoProductProps, SeoRecipe, type SeoRecipeProps, SeoReview, type SeoReviewProps, SeoTag, type SeoTagProps, SeoVideo, type SeoVideoProps, SiteConfig, useSEOConfig };