@vicacha-devs/strapi-plugin-seo 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +84 -2
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/AlternativeTextCheck/index.d.ts +9 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/CanonicalUrlCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/KeywordDensityCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/LastUpdatedAtCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/MetaDescriptionCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/MetaRobotCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/MetaTitleCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/OpenGraphCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/SEOAccordion/index.d.ts +10 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/StructuredDataCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/WordCountCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/index.d.ts +10 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/BrowserPreview/KeywordCheck/index.d.ts +7 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/BrowserPreview/MetaChecks/index.d.ts +8 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/BrowserPreview/Serp/index.d.ts +6 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/BrowserPreview/index.d.ts +6 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/OpenGraphPreview/Facebook/index.d.ts +8 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/OpenGraphPreview/LinkedIn/index.d.ts +8 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/OpenGraphPreview/X/index.d.ts +8 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/OpenGraphPreview/index.d.ts +6 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/PreviewChecks/index.d.ts +6 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/index.d.ts +4 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/Summary/reducer.d.ts +2 -0
- package/dist/admin/components/CMEditView/RightLinksCompo/index.d.ts +1 -0
- package/dist/admin/components/CMEditView/utils/checks.d.ts +14 -0
- package/dist/admin/components/CMEditView/utils/getRegularImageAltTexts.d.ts +5 -0
- package/dist/admin/components/CMEditView/utils/getRichTextAndBlocksFields.d.ts +10 -0
- package/dist/admin/components/CMEditView/utils/getRichTextData.d.ts +2 -0
- package/dist/admin/components/HomePage/Header/index.d.ts +5 -0
- package/dist/admin/components/HomePage/Main/EmptyComponentLayout/illo.d.ts +1 -0
- package/dist/admin/components/HomePage/Main/SettingsModal/index.d.ts +8 -0
- package/dist/admin/components/HomePage/Main/index.d.ts +6 -0
- package/dist/admin/components/Initializer.d.ts +5 -0
- package/dist/admin/hooks/useSettingsApi.d.ts +5 -0
- package/dist/admin/index-C8tiCtgn.cjs +3490 -0
- package/dist/admin/index-CJ64dp6B.js +3473 -0
- package/dist/admin/index-CZ4VBOGS.cjs +589 -0
- package/dist/admin/index-DgvE6ytW.js +571 -0
- package/dist/admin/index.cjs +5 -0
- package/dist/admin/index.d.ts +18 -0
- package/dist/admin/index.js +5 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/pages/App/index.d.ts +2 -0
- package/dist/admin/pages/HomePage/index.d.ts +2 -0
- package/dist/admin/permissions.d.ts +10 -0
- package/dist/admin/pluginId.d.ts +1 -0
- package/dist/admin/translations/ar.json.d.ts +133 -0
- package/dist/admin/translations/en.json.d.ts +133 -0
- package/dist/admin/translations/es.json.d.ts +133 -0
- package/dist/admin/translations/fr.json.d.ts +133 -0
- package/dist/admin/translations/pt-BR.json.d.ts +133 -0
- package/dist/admin/translations/tr.json.d.ts +133 -0
- package/dist/admin/utils/getTrad.d.ts +1 -0
- package/dist/admin/utils/prefixPluginTranslations.d.ts +1 -0
- package/dist/package.json +3 -0
- package/dist/server/bootstrap.d.ts +5 -0
- package/dist/server/components/open-graph.json.d.ts +36 -0
- package/dist/server/components/seo.json.d.ts +52 -0
- package/dist/server/config/index.d.ts +5 -0
- package/dist/server/controllers/index.d.ts +16 -0
- package/dist/server/controllers/seo.d.ts +13 -0
- package/dist/server/controllers/settings.d.ts +16 -0
- package/dist/server/destroy.d.ts +5 -0
- package/dist/server/index.cjs +416 -0
- package/dist/server/index.d.ts +83 -0
- package/dist/server/index.js +416 -0
- package/dist/server/index.mjs +416 -0
- package/dist/server/register.d.ts +5 -0
- package/dist/server/routes/index.d.ts +35 -0
- package/dist/server/routes/seo.d.ts +16 -0
- package/dist/server/routes/settings.d.ts +16 -0
- package/dist/server/services/index.d.ts +19 -0
- package/dist/server/services/seo.d.ts +12 -0
- package/dist/server/services/settings.d.ts +10 -0
- package/dist/shared/index.cjs +17 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +17 -0
- package/dist/shared/index.mjs +17 -0
- package/package.json +100 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Notum Technologies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Strapi plugin SEO
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The official plugin to make your Strapi content SEO friendly
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Easily see which Content-Types does have the SEO component or not.
|
|
8
|
+
- Manage the important tags for your SEO (metatitle, metadescription) and preview your content in the SERP
|
|
9
|
+
- Manage your meta social tags (Facebook & Twitter) and preview your post.
|
|
10
|
+
- Strong SEO analysis for your content.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
To install this plugin, you need to add an NPM dependency to your Strapi application.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
# Using Yarn
|
|
18
|
+
yarn add @vicacha-devs/strapi-plugin-seo
|
|
19
|
+
|
|
20
|
+
# Or using PNPM
|
|
21
|
+
pnpm add @vicacha-devs/strapi-plugin-seo
|
|
22
|
+
|
|
23
|
+
# Or using NPM
|
|
24
|
+
npm install @vicacha-devs/strapi-plugin-seo
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## How it works
|
|
28
|
+
|
|
29
|
+
When clicking on the plugin homepage for the first time, the plugin will automatically look if a `shared.seo` component exists in your project. If not, the plugin will automatically create it with a sub `shared.meta-social` component.
|
|
30
|
+
|
|
31
|
+
If a `shared.seo` component already exists in your project. You might want to rename it or delete it otherwise, the plugin will not create the necessary component in order to work.
|
|
32
|
+
|
|
33
|
+
#### Homepage
|
|
34
|
+
|
|
35
|
+
From there you can get an overview of which content-types contains the SEO component or not. You can quickly add the SEO component to a selected content-type.
|
|
36
|
+
|
|
37
|
+
**Note**: By doing this, you will be redirected to the Content-Types builder on the specific content-type. You'll need to create a new component at the **root** of this content-type called `seo` using the existing component the plugin created for you: `shared.seo`.
|
|
38
|
+
|
|
39
|
+
#### Content Manager
|
|
40
|
+
|
|
41
|
+
From any content manager view for a content-type that contains the SEO component, you'll be able to see a right-side card dedicated for the SEO plugin. From there you can see a quick SEO analysis and action for you to perform (opening preview, opening complete analysis details modal).
|
|
42
|
+
|
|
43
|
+
**Note**: You'll need to fill your SEO component with data to be able to see the SERP preview, Social post preview and complete analysis.
|
|
44
|
+
|
|
45
|
+
## Configuration
|
|
46
|
+
|
|
47
|
+
`./config/plugins.ts`
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
export default () => ({
|
|
51
|
+
// ...
|
|
52
|
+
seo: {
|
|
53
|
+
enabled: true,
|
|
54
|
+
},
|
|
55
|
+
// ...
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then, you'll need to build your admin panel:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
# Using Yarn
|
|
63
|
+
yarn build
|
|
64
|
+
|
|
65
|
+
# Or using PNPM
|
|
66
|
+
pnpm build
|
|
67
|
+
|
|
68
|
+
# Or using NPM
|
|
69
|
+
npm run build
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## SEO settings page
|
|
73
|
+
|
|
74
|
+
You'll be able from the SEO settings page to import a `shared.seo` & `shared.meta-social` components from any GitHub repository By default, our [components GitHub repository](https://github.com/strapi/components) is being used.
|
|
75
|
+
|
|
76
|
+
**Notice**: If you decide to import your own components, make sure that they belong to a `shared` category that their names is the same (`seo`, `meta-social`).
|
|
77
|
+
**Notice2**: When adding your SEO component, make sure to name it 'seo' and to include it in the root of your Content-Type.
|
|
78
|
+
|
|
79
|
+
## EditView SEO button
|
|
80
|
+
|
|
81
|
+
Once you create your SEO component in the edit view inside the Content Manager, the SEO button will appear on the the [right-links injection zone](https://docs.strapi.io/developer-docs/latest/developer-resources/plugin-api-reference/admin-panel.html#injection-zones-api). You'll be able to:
|
|
82
|
+
|
|
83
|
+
- Manage the meta title & description of your content and preview it in SERP.
|
|
84
|
+
- Manage your meta social tags (Facebook & Twitter) and preview your post.
|
|
85
|
+
- Analyze your content a little deeper via an SEO analysis of your content.
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/AlternativeTextCheck/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmptyAltOccurrence, SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface AlternativeTextCheckProps {
|
|
3
|
+
intersections: number | null;
|
|
4
|
+
richTextAlts: EmptyAltOccurrence[];
|
|
5
|
+
altTexts: string[];
|
|
6
|
+
checks: SeoChecksState;
|
|
7
|
+
}
|
|
8
|
+
export declare const AlternativeTextCheck: ({ intersections, richTextAlts, altTexts, checks, }: AlternativeTextCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/CanonicalUrlCheck/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface CanonicalUrlCheckProps {
|
|
3
|
+
canonicalUrl: string | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const CanonicalUrlCheck: ({ canonicalUrl, checks, }: CanonicalUrlCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/KeywordDensityCheck/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KeywordDensityMap, SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface KeywordDensityCheckProps {
|
|
3
|
+
keywordsDensity: KeywordDensityMap;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const KeywordDensityCheck: ({ keywordsDensity, checks, }: KeywordDensityCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/LastUpdatedAtCheck/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface LastUpdatedAtCheckProps {
|
|
3
|
+
updatedAt: string | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const LastUpdatedAtCheck: ({ updatedAt, checks, }: LastUpdatedAtCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/MetaDescriptionCheck/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface MetaDescriptionCheckProps {
|
|
3
|
+
metaDescription: string | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const MetaDescriptionCheck: ({ metaDescription, checks, }: MetaDescriptionCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface MetaRobotCheckProps {
|
|
3
|
+
metaRobots: string | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const MetaRobotCheck: ({ metaRobots, checks }: MetaRobotCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface MetaTitleCheckProps {
|
|
3
|
+
metaTitle: string | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const MetaTitleCheck: ({ metaTitle, checks }: MetaTitleCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenGraphData, SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface OpenGraphCheckProps {
|
|
3
|
+
openGraph: OpenGraphData | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const OpenGraphCheck: ({ openGraph, checks }: OpenGraphCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SeoCheckStatus } from '../../../../../../../shared';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface SEOAccordionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
status?: SeoCheckStatus;
|
|
6
|
+
component?: React.ReactNode;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SEOAccordion: ({ title, status, component, label, }: SEOAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/SeoChecks/StructuredDataCheck/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface StructuredDataCheckProps {
|
|
3
|
+
structuredData: unknown;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const StructuredDataCheck: ({ structuredData, checks, }: StructuredDataCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SeoChecksState } from '../../../../../../../shared';
|
|
2
|
+
interface WordCountCheckProps {
|
|
3
|
+
wordCount: number | null;
|
|
4
|
+
checks: SeoChecksState;
|
|
5
|
+
}
|
|
6
|
+
export declare const WordCountCheck: ({ wordCount, checks }: WordCountCheckProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentSchemasMap, ContentManagerFormValues, ContentTypeSchemaInfo, SeoChecksState } from '../../../../../../shared';
|
|
2
|
+
interface SeoChecksProps {
|
|
3
|
+
updatedAt: string | null;
|
|
4
|
+
modifiedData: ContentManagerFormValues;
|
|
5
|
+
components: ComponentSchemasMap;
|
|
6
|
+
contentType: ContentTypeSchemaInfo;
|
|
7
|
+
checks: SeoChecksState;
|
|
8
|
+
}
|
|
9
|
+
export declare const SeoChecks: ({ updatedAt, modifiedData, components, contentType, checks, }: SeoChecksProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ContentManagerFormValues } from '../../../../../../../shared';
|
|
2
|
+
interface BrowserPreviewProps {
|
|
3
|
+
modifiedData: ContentManagerFormValues;
|
|
4
|
+
}
|
|
5
|
+
export declare const BrowserPreview: ({ modifiedData }: BrowserPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OpenGraphImage } from '../../../../../../../../shared';
|
|
2
|
+
interface FacebookOGPreviewProps {
|
|
3
|
+
image: OpenGraphImage;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const FacebookOGPreview: ({ image, title, description, }: FacebookOGPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OpenGraphImage } from '../../../../../../../../shared';
|
|
2
|
+
interface LinkedInOGPreviewProps {
|
|
3
|
+
image: OpenGraphImage;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const LinkedInOGPreview: ({ image, title }: LinkedInOGPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/admin/components/CMEditView/RightLinksCompo/Summary/OpenGraphPreview/X/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OpenGraphImage } from '../../../../../../../../shared';
|
|
2
|
+
interface TwitterOGPreviewProps {
|
|
3
|
+
image: OpenGraphImage;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TwitterOGPreview: ({ image, title, description, }: TwitterOGPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ContentManagerFormValues } from '../../../../../../../shared';
|
|
2
|
+
interface OpenGraphPreviewProps {
|
|
3
|
+
modifiedData: ContentManagerFormValues;
|
|
4
|
+
}
|
|
5
|
+
export declare const OpenGraphPreview: ({ modifiedData }: OpenGraphPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SeoChecker: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContentManagerFormValues, EmptyAltCount, KeywordDensityMap, SeoCheckStatus, SeoQualityVerdict } from '../../../../../shared';
|
|
2
|
+
export declare const qualityVerdict: Record<SeoQualityVerdict, SeoQualityVerdict>;
|
|
3
|
+
export declare const isEmptyValue: (value: unknown) => boolean;
|
|
4
|
+
export declare const isSameCheckStatus: (a?: SeoCheckStatus | null, b?: SeoCheckStatus | null) => boolean;
|
|
5
|
+
export declare const getMetaTitleCheckPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
6
|
+
export declare const getMetaDescriptionPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
7
|
+
export declare const getAlternativeTextPreview: (emptyAltCount: EmptyAltCount) => SeoCheckStatus;
|
|
8
|
+
export declare const getWordCountPreview: (wordCount: number | null) => SeoCheckStatus;
|
|
9
|
+
export declare const getKeywordDensityPreview: (keywordsDensity: KeywordDensityMap) => SeoCheckStatus;
|
|
10
|
+
export declare const canonicalUrlPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
11
|
+
export declare const lastUpdatedAtPreview: (modifiedData: ContentManagerFormValues, fallbackUpdatedAt?: string | null) => SeoCheckStatus;
|
|
12
|
+
export declare const metaRobotPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
13
|
+
export declare const openGraphPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
14
|
+
export declare const structuredDataPreview: (modifiedData: ContentManagerFormValues) => SeoCheckStatus;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentSchemasMap, ContentManagerFormValues, ContentTypeSchemaInfo } from '../../../../../shared';
|
|
2
|
+
export interface FieldDescriptor {
|
|
3
|
+
name: string;
|
|
4
|
+
field: string | null;
|
|
5
|
+
inDz?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getRichTextAndBlocksFields: (contentType: ContentTypeSchemaInfo, components: ComponentSchemasMap, modifiedData: ContentManagerFormValues) => {
|
|
8
|
+
richTextFields: FieldDescriptor[];
|
|
9
|
+
blockFields: FieldDescriptor[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ComponentSchemasMap, ContentManagerFormValues, ContentTypeSchemaInfo, RichTextAnalysisResult } from '../../../../../shared';
|
|
2
|
+
export declare const getRichTextData: (modifiedData: ContentManagerFormValues, components: ComponentSchemasMap, contentType: ContentTypeSchemaInfo) => RichTextAnalysisResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Illo: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ContentTypeSeoItem, SeoSettingsMap } from '../../../../../../shared';
|
|
2
|
+
interface SettingsModalProps {
|
|
3
|
+
item: ContentTypeSeoItem;
|
|
4
|
+
defaultSettings?: SeoSettingsMap | null;
|
|
5
|
+
onSettingsUpdated?: (next: SeoSettingsMap) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SettingsModal: ({ item, defaultSettings: sharedSettings, onSettingsUpdated, }: SettingsModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SeoSettingsMap } from '../../../shared';
|
|
2
|
+
export declare const useSettingsApi: () => {
|
|
3
|
+
getSettings: () => Promise<import('@strapi/strapi/admin').FetchResponse<SeoSettingsMap>>;
|
|
4
|
+
setSettings: (settings: SeoSettingsMap) => Promise<import('@strapi/strapi/admin').FetchResponse<SeoSettingsMap>>;
|
|
5
|
+
};
|