@consilioweb/payload-seo-analyzer 1.7.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/LICENSE +21 -0
- package/README.md +1201 -0
- package/dist/client.cjs +19286 -0
- package/dist/client.d.cts +133 -0
- package/dist/client.d.ts +133 -0
- package/dist/client.js +19261 -0
- package/dist/index.cjs +11836 -0
- package/dist/index.d.cts +1416 -0
- package/dist/index.d.ts +1416 -0
- package/dist/index.js +11752 -0
- package/dist/views.cjs +216 -0
- package/dist/views.d.cts +67 -0
- package/dist/views.d.ts +67 -0
- package/dist/views.js +206 -0
- package/package.json +122 -0
- package/scripts/uninstall.mjs +282 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const SeoAnalyzer: React.FC;
|
|
5
|
+
|
|
6
|
+
declare function SeoView(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare function SeoNavLink(): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
interface AuditItem {
|
|
11
|
+
id: number | string;
|
|
12
|
+
collection: string;
|
|
13
|
+
title: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
contentLastReviewed: string;
|
|
17
|
+
daysSinceUpdate: number | null;
|
|
18
|
+
}
|
|
19
|
+
declare function ContentDecaySection({ items }: {
|
|
20
|
+
items: AuditItem[];
|
|
21
|
+
}): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
interface ScoreHistoryChartProps {
|
|
24
|
+
documentId: string;
|
|
25
|
+
collection: string;
|
|
26
|
+
}
|
|
27
|
+
declare const ScoreHistoryChart: React.FC<ScoreHistoryChartProps>;
|
|
28
|
+
|
|
29
|
+
declare function SitemapAuditView(): react_jsx_runtime.JSX.Element | null;
|
|
30
|
+
|
|
31
|
+
declare function SeoConfigView(): react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
interface SeoSocialPreviewProps {
|
|
34
|
+
metaTitle?: string;
|
|
35
|
+
metaDescription?: string;
|
|
36
|
+
imageUrl?: string;
|
|
37
|
+
hostname?: string;
|
|
38
|
+
}
|
|
39
|
+
declare function SeoSocialPreview({ metaTitle, metaDescription, imageUrl, hostname, }: SeoSocialPreviewProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare function RedirectManagerView(): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare function CannibalizationView(): react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare function SchemaBuilderView(): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
declare function PerformanceView(): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare function KeywordResearchView(): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
declare function LinkGraphView(): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* MetaTitleField — Custom Payload CMS field component for meta title.
|
|
55
|
+
*
|
|
56
|
+
* Adds a character counter (30-60 optimal range) with color indicator,
|
|
57
|
+
* a progress bar, and an optional "Generate" button that calls the
|
|
58
|
+
* plugin's generate endpoint to auto-fill the title via user-provided
|
|
59
|
+
* generate functions.
|
|
60
|
+
*
|
|
61
|
+
* This component is registered as a custom Field component on the
|
|
62
|
+
* `meta.title` field when the SEO Analyzer plugin creates meta fields.
|
|
63
|
+
*/
|
|
64
|
+
interface MetaTitleFieldProps {
|
|
65
|
+
path: string;
|
|
66
|
+
hasGenerateFn?: boolean;
|
|
67
|
+
basePath?: string;
|
|
68
|
+
}
|
|
69
|
+
declare function MetaTitleField({ path, hasGenerateFn, basePath, }: MetaTitleFieldProps): react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* MetaDescriptionField — Custom Payload CMS field component for meta description.
|
|
73
|
+
*
|
|
74
|
+
* Adds a character counter (120-160 optimal range) with color indicator,
|
|
75
|
+
* a progress bar, and an optional "Generate" button that calls the
|
|
76
|
+
* plugin's generate endpoint to auto-fill the description via user-provided
|
|
77
|
+
* generate functions.
|
|
78
|
+
*
|
|
79
|
+
* This component is registered as a custom Field component on the
|
|
80
|
+
* `meta.description` field when the SEO Analyzer plugin creates meta fields.
|
|
81
|
+
*/
|
|
82
|
+
interface MetaDescriptionFieldProps {
|
|
83
|
+
path: string;
|
|
84
|
+
hasGenerateFn?: boolean;
|
|
85
|
+
basePath?: string;
|
|
86
|
+
}
|
|
87
|
+
declare function MetaDescriptionField({ path, hasGenerateFn, basePath, }: MetaDescriptionFieldProps): react_jsx_runtime.JSX.Element;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* MetaImageField — Custom Payload CMS field component for meta image.
|
|
91
|
+
*
|
|
92
|
+
* Displays a status indicator for the meta image and an optional
|
|
93
|
+
* "Generate" button that calls the plugin's generate endpoint to
|
|
94
|
+
* auto-fill the image reference via user-provided generate functions.
|
|
95
|
+
*
|
|
96
|
+
* This component does NOT render the actual upload field — Payload
|
|
97
|
+
* handles that natively. It adds the generate button UI alongside
|
|
98
|
+
* the native upload field.
|
|
99
|
+
*/
|
|
100
|
+
interface MetaImageFieldProps {
|
|
101
|
+
path: string;
|
|
102
|
+
hasGenerateFn?: boolean;
|
|
103
|
+
basePath?: string;
|
|
104
|
+
}
|
|
105
|
+
declare function MetaImageField({ path, hasGenerateFn, basePath, }: MetaImageFieldProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* OverviewField — UI-only Payload CMS field that shows meta completeness.
|
|
109
|
+
*
|
|
110
|
+
* Displays three indicators (Title, Description, Image) with check/cross
|
|
111
|
+
* status and a completeness progress bar (0/3 to 3/3). Uses Payload's
|
|
112
|
+
* `useFormFields` hook to reactively read meta field values from the
|
|
113
|
+
* current document form state.
|
|
114
|
+
*
|
|
115
|
+
* Intended for use in the editor sidebar as a quick glance overview.
|
|
116
|
+
*/
|
|
117
|
+
interface OverviewFieldProps {
|
|
118
|
+
titlePath?: string;
|
|
119
|
+
descriptionPath?: string;
|
|
120
|
+
imagePath?: string;
|
|
121
|
+
}
|
|
122
|
+
declare function OverviewField({ titlePath, descriptionPath, imagePath, }: OverviewFieldProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
interface SerpPreviewProps {
|
|
125
|
+
metaTitle?: string;
|
|
126
|
+
metaDescription?: string;
|
|
127
|
+
slug?: string;
|
|
128
|
+
hostname?: string;
|
|
129
|
+
favicon?: string;
|
|
130
|
+
}
|
|
131
|
+
declare function SerpPreview({ metaTitle, metaDescription, slug, hostname, favicon, }: SerpPreviewProps): react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
export { CannibalizationView, ContentDecaySection, KeywordResearchView, LinkGraphView, MetaDescriptionField, MetaImageField, MetaTitleField, OverviewField, PerformanceView, RedirectManagerView, SchemaBuilderView, ScoreHistoryChart, SeoAnalyzer as SeoAnalyzerField, SeoConfigView, SeoNavLink, SeoSocialPreview, SeoView, SerpPreview, SerpPreview as SerpPreviewField, SitemapAuditView };
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const SeoAnalyzer: React.FC;
|
|
5
|
+
|
|
6
|
+
declare function SeoView(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare function SeoNavLink(): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
interface AuditItem {
|
|
11
|
+
id: number | string;
|
|
12
|
+
collection: string;
|
|
13
|
+
title: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
contentLastReviewed: string;
|
|
17
|
+
daysSinceUpdate: number | null;
|
|
18
|
+
}
|
|
19
|
+
declare function ContentDecaySection({ items }: {
|
|
20
|
+
items: AuditItem[];
|
|
21
|
+
}): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
interface ScoreHistoryChartProps {
|
|
24
|
+
documentId: string;
|
|
25
|
+
collection: string;
|
|
26
|
+
}
|
|
27
|
+
declare const ScoreHistoryChart: React.FC<ScoreHistoryChartProps>;
|
|
28
|
+
|
|
29
|
+
declare function SitemapAuditView(): react_jsx_runtime.JSX.Element | null;
|
|
30
|
+
|
|
31
|
+
declare function SeoConfigView(): react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
interface SeoSocialPreviewProps {
|
|
34
|
+
metaTitle?: string;
|
|
35
|
+
metaDescription?: string;
|
|
36
|
+
imageUrl?: string;
|
|
37
|
+
hostname?: string;
|
|
38
|
+
}
|
|
39
|
+
declare function SeoSocialPreview({ metaTitle, metaDescription, imageUrl, hostname, }: SeoSocialPreviewProps): react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare function RedirectManagerView(): react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare function CannibalizationView(): react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare function SchemaBuilderView(): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
declare function PerformanceView(): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare function KeywordResearchView(): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
declare function LinkGraphView(): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* MetaTitleField — Custom Payload CMS field component for meta title.
|
|
55
|
+
*
|
|
56
|
+
* Adds a character counter (30-60 optimal range) with color indicator,
|
|
57
|
+
* a progress bar, and an optional "Generate" button that calls the
|
|
58
|
+
* plugin's generate endpoint to auto-fill the title via user-provided
|
|
59
|
+
* generate functions.
|
|
60
|
+
*
|
|
61
|
+
* This component is registered as a custom Field component on the
|
|
62
|
+
* `meta.title` field when the SEO Analyzer plugin creates meta fields.
|
|
63
|
+
*/
|
|
64
|
+
interface MetaTitleFieldProps {
|
|
65
|
+
path: string;
|
|
66
|
+
hasGenerateFn?: boolean;
|
|
67
|
+
basePath?: string;
|
|
68
|
+
}
|
|
69
|
+
declare function MetaTitleField({ path, hasGenerateFn, basePath, }: MetaTitleFieldProps): react_jsx_runtime.JSX.Element;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* MetaDescriptionField — Custom Payload CMS field component for meta description.
|
|
73
|
+
*
|
|
74
|
+
* Adds a character counter (120-160 optimal range) with color indicator,
|
|
75
|
+
* a progress bar, and an optional "Generate" button that calls the
|
|
76
|
+
* plugin's generate endpoint to auto-fill the description via user-provided
|
|
77
|
+
* generate functions.
|
|
78
|
+
*
|
|
79
|
+
* This component is registered as a custom Field component on the
|
|
80
|
+
* `meta.description` field when the SEO Analyzer plugin creates meta fields.
|
|
81
|
+
*/
|
|
82
|
+
interface MetaDescriptionFieldProps {
|
|
83
|
+
path: string;
|
|
84
|
+
hasGenerateFn?: boolean;
|
|
85
|
+
basePath?: string;
|
|
86
|
+
}
|
|
87
|
+
declare function MetaDescriptionField({ path, hasGenerateFn, basePath, }: MetaDescriptionFieldProps): react_jsx_runtime.JSX.Element;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* MetaImageField — Custom Payload CMS field component for meta image.
|
|
91
|
+
*
|
|
92
|
+
* Displays a status indicator for the meta image and an optional
|
|
93
|
+
* "Generate" button that calls the plugin's generate endpoint to
|
|
94
|
+
* auto-fill the image reference via user-provided generate functions.
|
|
95
|
+
*
|
|
96
|
+
* This component does NOT render the actual upload field — Payload
|
|
97
|
+
* handles that natively. It adds the generate button UI alongside
|
|
98
|
+
* the native upload field.
|
|
99
|
+
*/
|
|
100
|
+
interface MetaImageFieldProps {
|
|
101
|
+
path: string;
|
|
102
|
+
hasGenerateFn?: boolean;
|
|
103
|
+
basePath?: string;
|
|
104
|
+
}
|
|
105
|
+
declare function MetaImageField({ path, hasGenerateFn, basePath, }: MetaImageFieldProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* OverviewField — UI-only Payload CMS field that shows meta completeness.
|
|
109
|
+
*
|
|
110
|
+
* Displays three indicators (Title, Description, Image) with check/cross
|
|
111
|
+
* status and a completeness progress bar (0/3 to 3/3). Uses Payload's
|
|
112
|
+
* `useFormFields` hook to reactively read meta field values from the
|
|
113
|
+
* current document form state.
|
|
114
|
+
*
|
|
115
|
+
* Intended for use in the editor sidebar as a quick glance overview.
|
|
116
|
+
*/
|
|
117
|
+
interface OverviewFieldProps {
|
|
118
|
+
titlePath?: string;
|
|
119
|
+
descriptionPath?: string;
|
|
120
|
+
imagePath?: string;
|
|
121
|
+
}
|
|
122
|
+
declare function OverviewField({ titlePath, descriptionPath, imagePath, }: OverviewFieldProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
interface SerpPreviewProps {
|
|
125
|
+
metaTitle?: string;
|
|
126
|
+
metaDescription?: string;
|
|
127
|
+
slug?: string;
|
|
128
|
+
hostname?: string;
|
|
129
|
+
favicon?: string;
|
|
130
|
+
}
|
|
131
|
+
declare function SerpPreview({ metaTitle, metaDescription, slug, hostname, favicon, }: SerpPreviewProps): react_jsx_runtime.JSX.Element;
|
|
132
|
+
|
|
133
|
+
export { CannibalizationView, ContentDecaySection, KeywordResearchView, LinkGraphView, MetaDescriptionField, MetaImageField, MetaTitleField, OverviewField, PerformanceView, RedirectManagerView, SchemaBuilderView, ScoreHistoryChart, SeoAnalyzer as SeoAnalyzerField, SeoConfigView, SeoNavLink, SeoSocialPreview, SeoView, SerpPreview, SerpPreview as SerpPreviewField, SitemapAuditView };
|