@power-seo/content-analysis 1.0.5 → 1.0.7
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 +100 -93
- package/dist/index.cjs +94 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +51 -10
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +104 -47
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +49 -11
- package/dist/react.js.map +1 -1
- package/package.json +23 -8
package/dist/react.cjs
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
5
19
|
|
|
6
20
|
// src/react.ts
|
|
21
|
+
var react_exports = {};
|
|
22
|
+
__export(react_exports, {
|
|
23
|
+
CheckList: () => CheckList,
|
|
24
|
+
ContentAnalyzer: () => ContentAnalyzer,
|
|
25
|
+
ScorePanel: () => ScorePanel
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(react_exports);
|
|
28
|
+
var import_react = require("react");
|
|
29
|
+
|
|
30
|
+
// src/checks/title.ts
|
|
31
|
+
var import_core = require("@power-seo/core");
|
|
7
32
|
function checkTitle(input) {
|
|
8
33
|
const results = [];
|
|
9
34
|
const { title, focusKeyphrase } = input;
|
|
@@ -18,7 +43,7 @@ function checkTitle(input) {
|
|
|
18
43
|
});
|
|
19
44
|
return results;
|
|
20
45
|
}
|
|
21
|
-
const validation =
|
|
46
|
+
const validation = (0, import_core.validateTitle)(title);
|
|
22
47
|
if (!validation.valid) {
|
|
23
48
|
results.push({
|
|
24
49
|
id: "title-presence",
|
|
@@ -72,6 +97,9 @@ function checkTitle(input) {
|
|
|
72
97
|
}
|
|
73
98
|
return results;
|
|
74
99
|
}
|
|
100
|
+
|
|
101
|
+
// src/checks/meta-description.ts
|
|
102
|
+
var import_core2 = require("@power-seo/core");
|
|
75
103
|
function checkMetaDescription(input) {
|
|
76
104
|
const results = [];
|
|
77
105
|
const { metaDescription, focusKeyphrase } = input;
|
|
@@ -86,7 +114,7 @@ function checkMetaDescription(input) {
|
|
|
86
114
|
});
|
|
87
115
|
return results;
|
|
88
116
|
}
|
|
89
|
-
const validation =
|
|
117
|
+
const validation = (0, import_core2.validateMetaDescription)(metaDescription);
|
|
90
118
|
if (!validation.valid) {
|
|
91
119
|
results.push({
|
|
92
120
|
id: "meta-description-presence",
|
|
@@ -140,6 +168,9 @@ function checkMetaDescription(input) {
|
|
|
140
168
|
}
|
|
141
169
|
return results;
|
|
142
170
|
}
|
|
171
|
+
|
|
172
|
+
// src/checks/keyphrase-usage.ts
|
|
173
|
+
var import_core3 = require("@power-seo/core");
|
|
143
174
|
function checkKeyphraseUsage(input) {
|
|
144
175
|
const results = [];
|
|
145
176
|
const { focusKeyphrase, title, metaDescription, content, slug, images } = input;
|
|
@@ -154,7 +185,7 @@ function checkKeyphraseUsage(input) {
|
|
|
154
185
|
});
|
|
155
186
|
return results;
|
|
156
187
|
}
|
|
157
|
-
const occurrences =
|
|
188
|
+
const occurrences = (0, import_core3.analyzeKeyphraseOccurrences)({
|
|
158
189
|
keyphrase: focusKeyphrase,
|
|
159
190
|
title,
|
|
160
191
|
metaDescription,
|
|
@@ -162,27 +193,27 @@ function checkKeyphraseUsage(input) {
|
|
|
162
193
|
slug,
|
|
163
194
|
images
|
|
164
195
|
});
|
|
165
|
-
const densityResult =
|
|
166
|
-
if (densityResult.density <
|
|
196
|
+
const densityResult = (0, import_core3.calculateKeywordDensity)(focusKeyphrase, content);
|
|
197
|
+
if (densityResult.density < import_core3.KEYWORD_DENSITY.MIN) {
|
|
167
198
|
results.push({
|
|
168
199
|
id: "keyphrase-density",
|
|
169
200
|
title: "Keyphrase density",
|
|
170
|
-
description: `Keyphrase density is ${densityResult.density}%, which is below the recommended minimum of ${
|
|
201
|
+
description: `Keyphrase density is ${densityResult.density}%, which is below the recommended minimum of ${import_core3.KEYWORD_DENSITY.MIN}%. Use the keyphrase more often.`,
|
|
171
202
|
status: "poor",
|
|
172
203
|
score: 1,
|
|
173
204
|
maxScore: 5
|
|
174
205
|
});
|
|
175
|
-
} else if (densityResult.density >
|
|
206
|
+
} else if (densityResult.density > import_core3.KEYWORD_DENSITY.MAX) {
|
|
176
207
|
results.push({
|
|
177
208
|
id: "keyphrase-density",
|
|
178
209
|
title: "Keyphrase density",
|
|
179
|
-
description: `Keyphrase density is ${densityResult.density}%, which exceeds the recommended maximum of ${
|
|
210
|
+
description: `Keyphrase density is ${densityResult.density}%, which exceeds the recommended maximum of ${import_core3.KEYWORD_DENSITY.MAX}%. Reduce usage to avoid keyword stuffing.`,
|
|
180
211
|
status: "poor",
|
|
181
212
|
score: 1,
|
|
182
213
|
maxScore: 5
|
|
183
214
|
});
|
|
184
|
-
} else if (densityResult.density >=
|
|
185
|
-
const isOptimal = Math.abs(densityResult.density -
|
|
215
|
+
} else if (densityResult.density >= import_core3.KEYWORD_DENSITY.MIN && densityResult.density <= import_core3.KEYWORD_DENSITY.MAX) {
|
|
216
|
+
const isOptimal = Math.abs(densityResult.density - import_core3.KEYWORD_DENSITY.OPTIMAL) < 0.5;
|
|
186
217
|
results.push({
|
|
187
218
|
id: "keyphrase-density",
|
|
188
219
|
title: "Keyphrase density",
|
|
@@ -228,15 +259,37 @@ function checkKeyphraseUsage(input) {
|
|
|
228
259
|
}
|
|
229
260
|
return results;
|
|
230
261
|
}
|
|
262
|
+
|
|
263
|
+
// src/checks/headings.ts
|
|
264
|
+
var import_core4 = require("@power-seo/core");
|
|
231
265
|
function parseHeadings(html) {
|
|
232
266
|
const headings = [];
|
|
233
|
-
const
|
|
234
|
-
let
|
|
235
|
-
while (
|
|
267
|
+
const lc = html.toLowerCase();
|
|
268
|
+
let pos = 0;
|
|
269
|
+
while (pos < lc.length) {
|
|
270
|
+
let earliest = -1;
|
|
271
|
+
let earliestLevel = 0;
|
|
272
|
+
for (let level = 1; level <= 6; level++) {
|
|
273
|
+
const idx = lc.indexOf(`<h${level}`, pos);
|
|
274
|
+
if (idx !== -1 && (earliest === -1 || idx < earliest)) {
|
|
275
|
+
earliest = idx;
|
|
276
|
+
earliestLevel = level;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (earliest === -1) break;
|
|
280
|
+
const contentStart = lc.indexOf(">", earliest);
|
|
281
|
+
if (contentStart === -1) break;
|
|
282
|
+
const closeTag = `</h${earliestLevel}>`;
|
|
283
|
+
const closeIdx = lc.indexOf(closeTag, contentStart + 1);
|
|
284
|
+
if (closeIdx === -1) {
|
|
285
|
+
pos = contentStart + 1;
|
|
286
|
+
continue;
|
|
287
|
+
}
|
|
236
288
|
headings.push({
|
|
237
|
-
level:
|
|
238
|
-
text:
|
|
289
|
+
level: earliestLevel,
|
|
290
|
+
text: (0, import_core4.stripHtml)(html.slice(contentStart + 1, closeIdx))
|
|
239
291
|
});
|
|
292
|
+
pos = closeIdx + closeTag.length;
|
|
240
293
|
}
|
|
241
294
|
return headings;
|
|
242
295
|
}
|
|
@@ -328,24 +381,27 @@ function checkHeadings(input) {
|
|
|
328
381
|
}
|
|
329
382
|
return results;
|
|
330
383
|
}
|
|
384
|
+
|
|
385
|
+
// src/checks/word-count.ts
|
|
386
|
+
var import_core5 = require("@power-seo/core");
|
|
331
387
|
function checkWordCount(input) {
|
|
332
|
-
const words =
|
|
388
|
+
const words = (0, import_core5.getWords)(input.content);
|
|
333
389
|
const count = words.length;
|
|
334
|
-
if (count <
|
|
390
|
+
if (count < import_core5.MIN_WORD_COUNT) {
|
|
335
391
|
return {
|
|
336
392
|
id: "word-count",
|
|
337
393
|
title: "Word count",
|
|
338
|
-
description: `The content is ${count} words, which is below the recommended minimum of ${
|
|
394
|
+
description: `The content is ${count} words, which is below the recommended minimum of ${import_core5.MIN_WORD_COUNT}. Add more content to improve SEO.`,
|
|
339
395
|
status: "poor",
|
|
340
396
|
score: 1,
|
|
341
397
|
maxScore: 5
|
|
342
398
|
};
|
|
343
399
|
}
|
|
344
|
-
if (count <
|
|
400
|
+
if (count < import_core5.RECOMMENDED_WORD_COUNT) {
|
|
345
401
|
return {
|
|
346
402
|
id: "word-count",
|
|
347
403
|
title: "Word count",
|
|
348
|
-
description: `The content is ${count} words. Consider expanding to at least ${
|
|
404
|
+
description: `The content is ${count} words. Consider expanding to at least ${import_core5.RECOMMENDED_WORD_COUNT} words for more comprehensive coverage.`,
|
|
349
405
|
status: "ok",
|
|
350
406
|
score: 3,
|
|
351
407
|
maxScore: 5
|
|
@@ -529,7 +585,7 @@ function ScorePanel({ score, maxScore }) {
|
|
|
529
585
|
const percentage = maxScore > 0 ? Math.round(score / maxScore * 100) : 0;
|
|
530
586
|
const color = getScoreColor(percentage);
|
|
531
587
|
const label = getScoreLabel(percentage);
|
|
532
|
-
return
|
|
588
|
+
return (0, import_react.createElement)(
|
|
533
589
|
"div",
|
|
534
590
|
{
|
|
535
591
|
style: {
|
|
@@ -540,7 +596,7 @@ function ScorePanel({ score, maxScore }) {
|
|
|
540
596
|
backgroundColor: "#fff"
|
|
541
597
|
}
|
|
542
598
|
},
|
|
543
|
-
|
|
599
|
+
(0, import_react.createElement)(
|
|
544
600
|
"div",
|
|
545
601
|
{
|
|
546
602
|
style: {
|
|
@@ -550,18 +606,18 @@ function ScorePanel({ score, maxScore }) {
|
|
|
550
606
|
marginBottom: "8px"
|
|
551
607
|
}
|
|
552
608
|
},
|
|
553
|
-
|
|
609
|
+
(0, import_react.createElement)(
|
|
554
610
|
"span",
|
|
555
611
|
{ style: { fontWeight: 600, fontSize: "14px", color: "#333" } },
|
|
556
612
|
"SEO Score"
|
|
557
613
|
),
|
|
558
|
-
|
|
614
|
+
(0, import_react.createElement)(
|
|
559
615
|
"span",
|
|
560
616
|
{ style: { fontWeight: 700, fontSize: "18px", color } },
|
|
561
617
|
`${percentage}%`
|
|
562
618
|
)
|
|
563
619
|
),
|
|
564
|
-
|
|
620
|
+
(0, import_react.createElement)(
|
|
565
621
|
"div",
|
|
566
622
|
{
|
|
567
623
|
style: {
|
|
@@ -572,7 +628,7 @@ function ScorePanel({ score, maxScore }) {
|
|
|
572
628
|
overflow: "hidden"
|
|
573
629
|
}
|
|
574
630
|
},
|
|
575
|
-
|
|
631
|
+
(0, import_react.createElement)("div", {
|
|
576
632
|
style: {
|
|
577
633
|
width: `${percentage}%`,
|
|
578
634
|
height: "100%",
|
|
@@ -582,7 +638,7 @@ function ScorePanel({ score, maxScore }) {
|
|
|
582
638
|
}
|
|
583
639
|
})
|
|
584
640
|
),
|
|
585
|
-
|
|
641
|
+
(0, import_react.createElement)(
|
|
586
642
|
"div",
|
|
587
643
|
{ style: { marginTop: "4px", fontSize: "12px", color: "#666" } },
|
|
588
644
|
`${label} \u2014 ${score}/${maxScore} points`
|
|
@@ -600,7 +656,7 @@ var STATUS_COLORS = {
|
|
|
600
656
|
poor: "#d93025"
|
|
601
657
|
};
|
|
602
658
|
function CheckList({ results }) {
|
|
603
|
-
return
|
|
659
|
+
return (0, import_react.createElement)(
|
|
604
660
|
"ul",
|
|
605
661
|
{
|
|
606
662
|
style: {
|
|
@@ -611,7 +667,7 @@ function CheckList({ results }) {
|
|
|
611
667
|
}
|
|
612
668
|
},
|
|
613
669
|
...results.map(
|
|
614
|
-
(result) =>
|
|
670
|
+
(result) => (0, import_react.createElement)(
|
|
615
671
|
"li",
|
|
616
672
|
{
|
|
617
673
|
key: result.id,
|
|
@@ -623,15 +679,15 @@ function CheckList({ results }) {
|
|
|
623
679
|
alignItems: "flex-start"
|
|
624
680
|
}
|
|
625
681
|
},
|
|
626
|
-
|
|
682
|
+
(0, import_react.createElement)(
|
|
627
683
|
"span",
|
|
628
684
|
{ style: { flexShrink: 0, fontSize: "14px" } },
|
|
629
685
|
STATUS_ICONS[result.status] ?? ""
|
|
630
686
|
),
|
|
631
|
-
|
|
687
|
+
(0, import_react.createElement)(
|
|
632
688
|
"div",
|
|
633
689
|
{ style: { flex: 1 } },
|
|
634
|
-
|
|
690
|
+
(0, import_react.createElement)(
|
|
635
691
|
"div",
|
|
636
692
|
{
|
|
637
693
|
style: {
|
|
@@ -642,7 +698,7 @@ function CheckList({ results }) {
|
|
|
642
698
|
},
|
|
643
699
|
result.title
|
|
644
700
|
),
|
|
645
|
-
|
|
701
|
+
(0, import_react.createElement)(
|
|
646
702
|
"div",
|
|
647
703
|
{ style: { fontSize: "12px", color: "#555", marginTop: "2px" } },
|
|
648
704
|
result.description
|
|
@@ -653,23 +709,24 @@ function CheckList({ results }) {
|
|
|
653
709
|
);
|
|
654
710
|
}
|
|
655
711
|
function ContentAnalyzer({ input, config, children }) {
|
|
656
|
-
const output =
|
|
657
|
-
return
|
|
712
|
+
const output = (0, import_react.useMemo)(() => analyzeContent(input, config), [input, config]);
|
|
713
|
+
return (0, import_react.createElement)(
|
|
658
714
|
"div",
|
|
659
715
|
{
|
|
660
716
|
style: {
|
|
661
717
|
fontFamily: "system-ui, -apple-system, sans-serif"
|
|
662
718
|
}
|
|
663
719
|
},
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
720
|
+
(0, import_react.createElement)(ScorePanel, { score: output.score, maxScore: output.maxScore }),
|
|
721
|
+
(0, import_react.createElement)("div", { style: { height: "12px" } }),
|
|
722
|
+
(0, import_react.createElement)(CheckList, { results: output.results }),
|
|
667
723
|
children ?? null
|
|
668
724
|
);
|
|
669
725
|
}
|
|
670
|
-
|
|
671
|
-
exports
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
726
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
727
|
+
0 && (module.exports = {
|
|
728
|
+
CheckList,
|
|
729
|
+
ContentAnalyzer,
|
|
730
|
+
ScorePanel
|
|
731
|
+
});
|
|
675
732
|
//# sourceMappingURL=react.cjs.map
|
package/dist/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/checks/title.ts","../src/checks/meta-description.ts","../src/checks/keyphrase-usage.ts","../src/checks/headings.ts","../src/checks/word-count.ts","../src/checks/images.ts","../src/checks/links.ts","../src/analyzer.ts","../src/react.ts"],"names":["validateTitle","validateMetaDescription","analyzeKeyphraseOccurrences","calculateKeywordDensity","KEYWORD_DENSITY","stripHtml","getWords","MIN_WORD_COUNT","RECOMMENDED_WORD_COUNT","createElement","useMemo"],"mappings":";;;;;;AAOO,SAAS,WAAW,KAAA,EAA+C;AACxE,EAAA,MAAM,UAA4B,EAAC;AACnC,EAAA,MAAM,EAAE,KAAA,EAAO,cAAA,EAAe,GAAI,KAAA;AAGlC,EAAA,IAAI,CAAC,KAAA,IAAS,KAAA,CAAM,IAAA,EAAK,CAAE,WAAW,CAAA,EAAG;AACvC,IAAA,OAAA,CAAQ,IAAA,CAAK;AAAA,MACX,EAAA,EAAI,gBAAA;AAAA,MACJ,KAAA,EAAO,WAAA;AAAA,MACP,WAAA,EAAa,kEAAA;AAAA,MACb,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,CAAA;AAAA,MACP,QAAA,EAAU;AAAA,KACX,CAAA;AACD,IAAA,OAAO,OAAA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E,KAAA,EAAO,MAAA,EAAQ,UAAS,EAAyB;AACjF,EAAA,MAAM,MAAA,GAASC,aAAA,CAAQ,MAAM,cAAA,CAAe,KAAA,EAAO,MAAM,CAAA,EAAG,CAAC,KAAA,EAAO,MAAM,CAAC,CAAA;AAE3E,EAAA,OAAOD,mBAAA;AAAA,IACL,KAAA;AAAA,IACA;AAAA,MACE,KAAA,EAAO;AAAA,QACL,UAAA,EAAY;AAAA;AACd,KACF;AAAA,IACAA,mBAAA,CAAc,YAAY,EAAE,KAAA,EAAO,OAAO,KAAA,EAAO,QAAA,EAAU,MAAA,CAAO,QAAA,EAAU,CAAA;AAAA,IAC5EA,mBAAA,CAAc,OAAO,EAAE,KAAA,EAAO,EAAE,MAAA,EAAQ,MAAA,IAAU,CAAA;AAAA,IAClDA,oBAAc,SAAA,EAAW,EAAE,OAAA,EAAS,MAAA,CAAO,SAAS,CAAA;AAAA,IACpD,QAAA,IAAY;AAAA,GACd;AACF","file":"react.cjs","sourcesContent":["// ============================================================================\n// @power-seo/content-analysis — Title Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { validateTitle } from '@power-seo/core';\n\nexport function checkTitle(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { title, focusKeyphrase } = input;\n\n // --- Presence & validity check ---\n if (!title || title.trim().length === 0) {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: 'No title has been set. Add a title to improve search visibility.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n return results;\n }\n\n const validation = validateTitle(title);\n\n if (!validation.valid) {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else if (validation.severity === 'warning') {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in title check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const titleLower = title.toLowerCase();\n\n if (titleLower.includes(kp)) {\n results.push({\n id: 'title-keyphrase',\n title: 'Keyphrase in title',\n description: 'The focus keyphrase appears in the SEO title. Good job!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'title-keyphrase',\n title: 'Keyphrase in title',\n description:\n 'The focus keyphrase does not appear in the SEO title. Add it to improve relevance.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Meta Description Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { validateMetaDescription } from '@power-seo/core';\n\nexport function checkMetaDescription(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { metaDescription, focusKeyphrase } = input;\n\n // --- Presence & validity check ---\n if (!metaDescription || metaDescription.trim().length === 0) {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description:\n 'No meta description has been set. Add one to control how your page appears in search results.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n return results;\n }\n\n const validation = validateMetaDescription(metaDescription);\n\n if (!validation.valid) {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else if (validation.severity === 'warning') {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in meta description check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const descLower = metaDescription.toLowerCase();\n\n if (descLower.includes(kp)) {\n results.push({\n id: 'meta-description-keyphrase',\n title: 'Keyphrase in meta description',\n description: 'The focus keyphrase appears in the meta description. Well done!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'meta-description-keyphrase',\n title: 'Keyphrase in meta description',\n description:\n 'The focus keyphrase does not appear in the meta description. Add it to improve click-through rate.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Keyphrase Usage Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport {\n analyzeKeyphraseOccurrences,\n calculateKeywordDensity,\n KEYWORD_DENSITY,\n} from '@power-seo/core';\n\nexport function checkKeyphraseUsage(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { focusKeyphrase, title, metaDescription, content, slug, images } = input;\n\n if (!focusKeyphrase || focusKeyphrase.trim().length === 0) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: 'No focus keyphrase set. Set one to get keyphrase analysis.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n return results;\n }\n\n const occurrences = analyzeKeyphraseOccurrences({\n keyphrase: focusKeyphrase,\n title,\n metaDescription,\n content,\n slug,\n images,\n });\n\n const densityResult = calculateKeywordDensity(focusKeyphrase, content);\n\n // --- Density check ---\n if (densityResult.density < KEYWORD_DENSITY.MIN) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%, which is below the recommended minimum of ${KEYWORD_DENSITY.MIN}%. Use the keyphrase more often.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n } else if (densityResult.density > KEYWORD_DENSITY.MAX) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%, which exceeds the recommended maximum of ${KEYWORD_DENSITY.MAX}%. Reduce usage to avoid keyword stuffing.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n } else if (\n densityResult.density >= KEYWORD_DENSITY.MIN &&\n densityResult.density <= KEYWORD_DENSITY.MAX\n ) {\n const isOptimal = Math.abs(densityResult.density - KEYWORD_DENSITY.OPTIMAL) < 0.5;\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%.${isOptimal ? ' Great — this is close to the optimal density.' : ' This is within the recommended range.'}`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Distribution check ---\n const distributionPoints: string[] = [];\n if (!occurrences.inFirstParagraph) distributionPoints.push('introduction');\n if (!occurrences.inH1 && occurrences.inHeadings === 0) distributionPoints.push('headings');\n if (!occurrences.inSlug) distributionPoints.push('slug');\n if (occurrences.inAltText === 0 && images && images.length > 0)\n distributionPoints.push('image alt text');\n\n if (distributionPoints.length === 0) {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description:\n 'The focus keyphrase is well-distributed across the introduction, headings, slug, and image alt text.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else if (distributionPoints.length <= 2) {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description: `Consider adding the keyphrase to: ${distributionPoints.join(', ')}.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description: `The keyphrase is missing from: ${distributionPoints.join(', ')}. Distribute it more broadly.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Headings Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { stripHtml } from '@power-seo/core';\n\ninterface HeadingInfo {\n level: number;\n text: string;\n}\n\nfunction parseHeadings(html: string): HeadingInfo[] {\n const headings: HeadingInfo[] = [];\n const regex = /<h([1-6])[^>]*>([\\s\\S]*?)<\\/h\\1>/gi;\n let match;\n while ((match = regex.exec(html)) !== null) {\n headings.push({\n level: parseInt(match[1]!, 10),\n text: stripHtml(match[2]!),\n });\n }\n return headings;\n}\n\nexport function checkHeadings(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { content, focusKeyphrase } = input;\n const headings = parseHeadings(content);\n\n // --- H1 & structure check ---\n const h1s = headings.filter((h) => h.level === 1);\n\n if (h1s.length === 0) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: 'No H1 heading found. Add exactly one H1 as the main heading of your page.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n } else if (h1s.length > 1) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: `Found ${h1s.length} H1 headings. Use exactly one H1 per page for proper SEO.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n // Check heading hierarchy\n let hasSkippedLevel = false;\n for (let i = 1; i < headings.length; i++) {\n const prev = headings[i - 1]!;\n const curr = headings[i]!;\n if (curr.level > prev.level + 1) {\n hasSkippedLevel = true;\n break;\n }\n }\n\n if (hasSkippedLevel) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description:\n 'The heading hierarchy skips levels (e.g., H2 to H4). Use sequential heading levels for better accessibility and SEO.',\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: 'The heading structure looks good with a single H1 and proper hierarchy.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n }\n\n // --- Keyphrase in headings check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const subheadings = headings.filter((h) => h.level >= 2);\n const hasKeyphraseInSubheading = subheadings.some((h) => h.text.toLowerCase().includes(kp));\n\n if (subheadings.length === 0) {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description:\n 'No subheadings (H2-H6) found. Add subheadings to structure your content and include the focus keyphrase.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else if (hasKeyphraseInSubheading) {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description: 'The focus keyphrase appears in at least one subheading. Nice!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description:\n 'The focus keyphrase does not appear in any subheading. Consider adding it to an H2 or H3.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Word Count Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { getWords, MIN_WORD_COUNT, RECOMMENDED_WORD_COUNT } from '@power-seo/core';\n\nexport function checkWordCount(input: ContentAnalysisInput): AnalysisResult {\n const words = getWords(input.content);\n const count = words.length;\n\n if (count < MIN_WORD_COUNT) {\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words, which is below the recommended minimum of ${MIN_WORD_COUNT}. Add more content to improve SEO.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n };\n }\n\n if (count < RECOMMENDED_WORD_COUNT) {\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words. Consider expanding to at least ${RECOMMENDED_WORD_COUNT} words for more comprehensive coverage.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n };\n }\n\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words. Good — this provides enough depth for search engines.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n };\n}\n","// ============================================================================\n// @power-seo/content-analysis — Images Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\n\nexport function checkImages(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { images, focusKeyphrase } = input;\n\n if (!images || images.length === 0) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: 'No images found. Consider adding images to make your content more engaging.',\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n return results;\n }\n\n // --- Alt text check ---\n const missingAlt = images.filter((img) => !img.alt || img.alt.trim().length === 0);\n\n if (missingAlt.length === 0) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: 'All images have alt text. Great for accessibility and SEO!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else if (missingAlt.length === images.length) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description:\n 'None of the images have alt text. Add descriptive alt attributes for accessibility and SEO.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: `${missingAlt.length} of ${images.length} images are missing alt text. Add alt attributes to all images.`,\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in alt text check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const hasKeyphraseInAlt = images.some((img) => img.alt && img.alt.toLowerCase().includes(kp));\n\n if (hasKeyphraseInAlt) {\n results.push({\n id: 'image-keyphrase',\n title: 'Keyphrase in image alt',\n description: 'The focus keyphrase appears in at least one image alt attribute.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'image-keyphrase',\n title: 'Keyphrase in image alt',\n description:\n 'The focus keyphrase does not appear in any image alt attribute. Add it to at least one image.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Links Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\n\nexport function checkLinks(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { internalLinks, externalLinks } = input;\n\n const hasInternal = internalLinks && internalLinks.length > 0;\n const hasExternal = externalLinks && externalLinks.length > 0;\n\n if (!hasInternal) {\n results.push({\n id: 'internal-links',\n title: 'Internal links',\n description:\n 'No internal links found. Add links to other pages on your site to improve crawlability and distribute link equity.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'internal-links',\n title: 'Internal links',\n description: `Found ${internalLinks!.length} internal link${internalLinks!.length === 1 ? '' : 's'}. Good for site structure and SEO.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n if (!hasExternal) {\n results.push({\n id: 'external-links',\n title: 'External links',\n description:\n 'No external links found. Consider adding outbound links to authoritative sources to strengthen your content.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'external-links',\n title: 'External links',\n description: `Found ${externalLinks!.length} external link${externalLinks!.length === 1 ? '' : 's'}. Linking to quality sources adds credibility.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Content Analyzer Orchestrator\n// ============================================================================\n\nimport type { ContentAnalysisInput, ContentAnalysisOutput, AnalysisResult } from '@power-seo/core';\nimport type { AnalysisConfig, CheckId } from './types.js';\nimport { checkTitle } from './checks/title.js';\nimport { checkMetaDescription } from './checks/meta-description.js';\nimport { checkKeyphraseUsage } from './checks/keyphrase-usage.js';\nimport { checkHeadings } from './checks/headings.js';\nimport { checkWordCount } from './checks/word-count.js';\nimport { checkImages } from './checks/images.js';\nimport { checkLinks } from './checks/links.js';\n\n/**\n * Run all SEO content analysis checks and return aggregated results.\n *\n * @example\n * ```ts\n * const output = analyzeContent({\n * title: 'My Blog Post',\n * metaDescription: 'A description of my blog post about SEO.',\n * content: '<h1>My Blog Post</h1><p>Content goes here...</p>',\n * focusKeyphrase: 'blog post',\n * });\n * console.log(output.score, output.maxScore, output.recommendations);\n * ```\n */\nexport function analyzeContent(\n input: ContentAnalysisInput,\n config?: AnalysisConfig,\n): ContentAnalysisOutput {\n const disabled = new Set<CheckId>(config?.disabledChecks ?? []);\n\n const allResults: AnalysisResult[] = [];\n\n // Run each check group and collect results\n const titleResults = checkTitle(input);\n const metaResults = checkMetaDescription(input);\n const keyphraseResults = checkKeyphraseUsage(input);\n const headingResults = checkHeadings(input);\n const wordCountResult = checkWordCount(input);\n const imageResults = checkImages(input);\n const linkResults = checkLinks(input);\n\n // Flatten all results\n const candidateResults = [\n ...titleResults,\n ...metaResults,\n ...keyphraseResults,\n ...headingResults,\n wordCountResult,\n ...imageResults,\n ...linkResults,\n ];\n\n // Filter out disabled checks\n for (const result of candidateResults) {\n if (!disabled.has(result.id as CheckId)) {\n allResults.push(result);\n }\n }\n\n // Sum scores\n const score = allResults.reduce((sum, r) => sum + r.score, 0);\n const maxScore = allResults.reduce((sum, r) => sum + r.maxScore, 0);\n\n // Generate recommendations from poor/ok results\n const recommendations = allResults\n .filter((r) => r.status === 'poor' || r.status === 'ok')\n .map((r) => r.description);\n\n return {\n score,\n maxScore,\n results: allResults,\n recommendations,\n };\n}\n","// ============================================================================\n// @power-seo/content-analysis — React Components\n// ============================================================================\n\nimport { createElement, useMemo } from 'react';\nimport type { ReactNode } from 'react';\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport type { AnalysisConfig } from './types.js';\nimport { analyzeContent } from './analyzer.js';\n\n// --- ScorePanel ---\n\nexport interface ScorePanelProps {\n score: number;\n maxScore: number;\n}\n\nfunction getScoreColor(percentage: number): string {\n if (percentage >= 70) return '#1e8e3e';\n if (percentage >= 40) return '#f29900';\n return '#d93025';\n}\n\nfunction getScoreLabel(percentage: number): string {\n if (percentage >= 70) return 'Good';\n if (percentage >= 40) return 'OK';\n return 'Needs improvement';\n}\n\n/**\n * Displays an overall SEO score as a colored bar with label.\n */\nexport function ScorePanel({ score, maxScore }: ScorePanelProps) {\n const percentage = maxScore > 0 ? Math.round((score / maxScore) * 100) : 0;\n const color = getScoreColor(percentage);\n const label = getScoreLabel(percentage);\n\n return createElement(\n 'div',\n {\n style: {\n fontFamily: 'system-ui, -apple-system, sans-serif',\n padding: '16px',\n borderRadius: '8px',\n border: '1px solid #e0e0e0',\n backgroundColor: '#fff',\n },\n },\n createElement(\n 'div',\n {\n style: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginBottom: '8px',\n },\n },\n createElement(\n 'span',\n { style: { fontWeight: 600, fontSize: '14px', color: '#333' } },\n 'SEO Score',\n ),\n createElement(\n 'span',\n { style: { fontWeight: 700, fontSize: '18px', color } },\n `${percentage}%`,\n ),\n ),\n createElement(\n 'div',\n {\n style: {\n width: '100%',\n height: '8px',\n backgroundColor: '#e8e8e8',\n borderRadius: '4px',\n overflow: 'hidden',\n },\n },\n createElement('div', {\n style: {\n width: `${percentage}%`,\n height: '100%',\n backgroundColor: color,\n borderRadius: '4px',\n transition: 'width 0.3s ease',\n },\n }),\n ),\n createElement(\n 'div',\n { style: { marginTop: '4px', fontSize: '12px', color: '#666' } },\n `${label} — ${score}/${maxScore} points`,\n ),\n );\n}\n\n// --- CheckList ---\n\nexport interface CheckListProps {\n results: AnalysisResult[];\n}\n\nconst STATUS_ICONS: Record<string, string> = {\n good: '\\u2705',\n ok: '\\u26a0\\ufe0f',\n poor: '\\u274c',\n};\n\nconst STATUS_COLORS: Record<string, string> = {\n good: '#1e8e3e',\n ok: '#f29900',\n poor: '#d93025',\n};\n\n/**\n * Renders analysis results as a list with status icons.\n */\nexport function CheckList({ results }: CheckListProps) {\n return createElement(\n 'ul',\n {\n style: {\n listStyle: 'none',\n padding: 0,\n margin: 0,\n fontFamily: 'system-ui, -apple-system, sans-serif',\n },\n },\n ...results.map((result) =>\n createElement(\n 'li',\n {\n key: result.id,\n style: {\n padding: '10px 12px',\n borderBottom: '1px solid #f0f0f0',\n display: 'flex',\n gap: '10px',\n alignItems: 'flex-start',\n },\n },\n createElement(\n 'span',\n { style: { flexShrink: 0, fontSize: '14px' } },\n STATUS_ICONS[result.status] ?? '',\n ),\n createElement(\n 'div',\n { style: { flex: 1 } },\n createElement(\n 'div',\n {\n style: {\n fontWeight: 600,\n fontSize: '13px',\n color: STATUS_COLORS[result.status] ?? '#333',\n },\n },\n result.title,\n ),\n createElement(\n 'div',\n { style: { fontSize: '12px', color: '#555', marginTop: '2px' } },\n result.description,\n ),\n ),\n ),\n ),\n );\n}\n\n// --- ContentAnalyzer ---\n\nexport interface ContentAnalyzerProps {\n input: ContentAnalysisInput;\n config?: AnalysisConfig;\n children?: ReactNode;\n}\n\n/**\n * All-in-one component that runs analysis and renders score + check list.\n */\nexport function ContentAnalyzer({ input, config, children }: ContentAnalyzerProps) {\n const output = useMemo(() => analyzeContent(input, config), [input, config]);\n\n return createElement(\n 'div',\n {\n style: {\n fontFamily: 'system-ui, -apple-system, sans-serif',\n },\n },\n createElement(ScorePanel, { score: output.score, maxScore: output.maxScore }),\n createElement('div', { style: { height: '12px' } }),\n createElement(CheckList, { results: output.results }),\n children ?? null,\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/react.ts","../src/checks/title.ts","../src/checks/meta-description.ts","../src/checks/keyphrase-usage.ts","../src/checks/headings.ts","../src/checks/word-count.ts","../src/checks/images.ts","../src/checks/links.ts","../src/analyzer.ts"],"sourcesContent":["// ============================================================================\n// @power-seo/content-analysis — React Components\n// ============================================================================\n\nimport { createElement, useMemo } from 'react';\nimport type { ReactNode } from 'react';\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport type { AnalysisConfig } from './types.js';\nimport { analyzeContent } from './analyzer.js';\n\n// --- ScorePanel ---\n\nexport interface ScorePanelProps {\n score: number;\n maxScore: number;\n}\n\nfunction getScoreColor(percentage: number): string {\n if (percentage >= 70) return '#1e8e3e';\n if (percentage >= 40) return '#f29900';\n return '#d93025';\n}\n\nfunction getScoreLabel(percentage: number): string {\n if (percentage >= 70) return 'Good';\n if (percentage >= 40) return 'OK';\n return 'Needs improvement';\n}\n\n/**\n * Displays an overall SEO score as a colored bar with label.\n */\nexport function ScorePanel({ score, maxScore }: ScorePanelProps) {\n const percentage = maxScore > 0 ? Math.round((score / maxScore) * 100) : 0;\n const color = getScoreColor(percentage);\n const label = getScoreLabel(percentage);\n\n return createElement(\n 'div',\n {\n style: {\n fontFamily: 'system-ui, -apple-system, sans-serif',\n padding: '16px',\n borderRadius: '8px',\n border: '1px solid #e0e0e0',\n backgroundColor: '#fff',\n },\n },\n createElement(\n 'div',\n {\n style: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n marginBottom: '8px',\n },\n },\n createElement(\n 'span',\n { style: { fontWeight: 600, fontSize: '14px', color: '#333' } },\n 'SEO Score',\n ),\n createElement(\n 'span',\n { style: { fontWeight: 700, fontSize: '18px', color } },\n `${percentage}%`,\n ),\n ),\n createElement(\n 'div',\n {\n style: {\n width: '100%',\n height: '8px',\n backgroundColor: '#e8e8e8',\n borderRadius: '4px',\n overflow: 'hidden',\n },\n },\n createElement('div', {\n style: {\n width: `${percentage}%`,\n height: '100%',\n backgroundColor: color,\n borderRadius: '4px',\n transition: 'width 0.3s ease',\n },\n }),\n ),\n createElement(\n 'div',\n { style: { marginTop: '4px', fontSize: '12px', color: '#666' } },\n `${label} — ${score}/${maxScore} points`,\n ),\n );\n}\n\n// --- CheckList ---\n\nexport interface CheckListProps {\n results: AnalysisResult[];\n}\n\nconst STATUS_ICONS: Record<string, string> = {\n good: '\\u2705',\n ok: '\\u26a0\\ufe0f',\n poor: '\\u274c',\n};\n\nconst STATUS_COLORS: Record<string, string> = {\n good: '#1e8e3e',\n ok: '#f29900',\n poor: '#d93025',\n};\n\n/**\n * Renders analysis results as a list with status icons.\n */\nexport function CheckList({ results }: CheckListProps) {\n return createElement(\n 'ul',\n {\n style: {\n listStyle: 'none',\n padding: 0,\n margin: 0,\n fontFamily: 'system-ui, -apple-system, sans-serif',\n },\n },\n ...results.map((result) =>\n createElement(\n 'li',\n {\n key: result.id,\n style: {\n padding: '10px 12px',\n borderBottom: '1px solid #f0f0f0',\n display: 'flex',\n gap: '10px',\n alignItems: 'flex-start',\n },\n },\n createElement(\n 'span',\n { style: { flexShrink: 0, fontSize: '14px' } },\n STATUS_ICONS[result.status] ?? '',\n ),\n createElement(\n 'div',\n { style: { flex: 1 } },\n createElement(\n 'div',\n {\n style: {\n fontWeight: 600,\n fontSize: '13px',\n color: STATUS_COLORS[result.status] ?? '#333',\n },\n },\n result.title,\n ),\n createElement(\n 'div',\n { style: { fontSize: '12px', color: '#555', marginTop: '2px' } },\n result.description,\n ),\n ),\n ),\n ),\n );\n}\n\n// --- ContentAnalyzer ---\n\nexport interface ContentAnalyzerProps {\n input: ContentAnalysisInput;\n config?: AnalysisConfig;\n children?: ReactNode;\n}\n\n/**\n * All-in-one component that runs analysis and renders score + check list.\n */\nexport function ContentAnalyzer({ input, config, children }: ContentAnalyzerProps) {\n const output = useMemo(() => analyzeContent(input, config), [input, config]);\n\n return createElement(\n 'div',\n {\n style: {\n fontFamily: 'system-ui, -apple-system, sans-serif',\n },\n },\n createElement(ScorePanel, { score: output.score, maxScore: output.maxScore }),\n createElement('div', { style: { height: '12px' } }),\n createElement(CheckList, { results: output.results }),\n children ?? null,\n );\n}\n","// ============================================================================\n// @power-seo/content-analysis — Title Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { validateTitle } from '@power-seo/core';\n\nexport function checkTitle(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { title, focusKeyphrase } = input;\n\n // --- Presence & validity check ---\n if (!title || title.trim().length === 0) {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: 'No title has been set. Add a title to improve search visibility.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n return results;\n }\n\n const validation = validateTitle(title);\n\n if (!validation.valid) {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else if (validation.severity === 'warning') {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'title-presence',\n title: 'SEO title',\n description: validation.message,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in title check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const titleLower = title.toLowerCase();\n\n if (titleLower.includes(kp)) {\n results.push({\n id: 'title-keyphrase',\n title: 'Keyphrase in title',\n description: 'The focus keyphrase appears in the SEO title. Good job!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'title-keyphrase',\n title: 'Keyphrase in title',\n description:\n 'The focus keyphrase does not appear in the SEO title. Add it to improve relevance.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Meta Description Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { validateMetaDescription } from '@power-seo/core';\n\nexport function checkMetaDescription(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { metaDescription, focusKeyphrase } = input;\n\n // --- Presence & validity check ---\n if (!metaDescription || metaDescription.trim().length === 0) {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description:\n 'No meta description has been set. Add one to control how your page appears in search results.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n return results;\n }\n\n const validation = validateMetaDescription(metaDescription);\n\n if (!validation.valid) {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else if (validation.severity === 'warning') {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'meta-description-presence',\n title: 'Meta description',\n description: validation.message,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in meta description check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const descLower = metaDescription.toLowerCase();\n\n if (descLower.includes(kp)) {\n results.push({\n id: 'meta-description-keyphrase',\n title: 'Keyphrase in meta description',\n description: 'The focus keyphrase appears in the meta description. Well done!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'meta-description-keyphrase',\n title: 'Keyphrase in meta description',\n description:\n 'The focus keyphrase does not appear in the meta description. Add it to improve click-through rate.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Keyphrase Usage Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport {\n analyzeKeyphraseOccurrences,\n calculateKeywordDensity,\n KEYWORD_DENSITY,\n} from '@power-seo/core';\n\nexport function checkKeyphraseUsage(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { focusKeyphrase, title, metaDescription, content, slug, images } = input;\n\n if (!focusKeyphrase || focusKeyphrase.trim().length === 0) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: 'No focus keyphrase set. Set one to get keyphrase analysis.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n return results;\n }\n\n const occurrences = analyzeKeyphraseOccurrences({\n keyphrase: focusKeyphrase,\n title,\n metaDescription,\n content,\n slug,\n images,\n });\n\n const densityResult = calculateKeywordDensity(focusKeyphrase, content);\n\n // --- Density check ---\n if (densityResult.density < KEYWORD_DENSITY.MIN) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%, which is below the recommended minimum of ${KEYWORD_DENSITY.MIN}%. Use the keyphrase more often.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n } else if (densityResult.density > KEYWORD_DENSITY.MAX) {\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%, which exceeds the recommended maximum of ${KEYWORD_DENSITY.MAX}%. Reduce usage to avoid keyword stuffing.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n } else if (\n densityResult.density >= KEYWORD_DENSITY.MIN &&\n densityResult.density <= KEYWORD_DENSITY.MAX\n ) {\n const isOptimal = Math.abs(densityResult.density - KEYWORD_DENSITY.OPTIMAL) < 0.5;\n results.push({\n id: 'keyphrase-density',\n title: 'Keyphrase density',\n description: `Keyphrase density is ${densityResult.density}%.${isOptimal ? ' Great — this is close to the optimal density.' : ' This is within the recommended range.'}`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n // --- Distribution check ---\n const distributionPoints: string[] = [];\n if (!occurrences.inFirstParagraph) distributionPoints.push('introduction');\n if (!occurrences.inH1 && occurrences.inHeadings === 0) distributionPoints.push('headings');\n if (!occurrences.inSlug) distributionPoints.push('slug');\n if (occurrences.inAltText === 0 && images && images.length > 0)\n distributionPoints.push('image alt text');\n\n if (distributionPoints.length === 0) {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description:\n 'The focus keyphrase is well-distributed across the introduction, headings, slug, and image alt text.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else if (distributionPoints.length <= 2) {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description: `Consider adding the keyphrase to: ${distributionPoints.join(', ')}.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'keyphrase-distribution',\n title: 'Keyphrase distribution',\n description: `The keyphrase is missing from: ${distributionPoints.join(', ')}. Distribute it more broadly.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n });\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Headings Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { stripHtml } from '@power-seo/core';\n\ninterface HeadingInfo {\n level: number;\n text: string;\n}\n\n/**\n * Parse all headings (h1-h6) from HTML using plain string search.\n * Avoids regex ReDoS on crafted inputs with many repeated heading-like tags.\n */\nfunction parseHeadings(html: string): HeadingInfo[] {\n const headings: HeadingInfo[] = [];\n const lc = html.toLowerCase();\n let pos = 0;\n\n while (pos < lc.length) {\n // Find the next heading tag of any level\n let earliest = -1;\n let earliestLevel = 0;\n for (let level = 1; level <= 6; level++) {\n const idx = lc.indexOf(`<h${level}`, pos);\n if (idx !== -1 && (earliest === -1 || idx < earliest)) {\n earliest = idx;\n earliestLevel = level;\n }\n }\n if (earliest === -1) break;\n\n const contentStart = lc.indexOf('>', earliest);\n if (contentStart === -1) break;\n\n const closeTag = `</h${earliestLevel}>`;\n const closeIdx = lc.indexOf(closeTag, contentStart + 1);\n if (closeIdx === -1) {\n pos = contentStart + 1;\n continue;\n }\n\n headings.push({\n level: earliestLevel,\n text: stripHtml(html.slice(contentStart + 1, closeIdx)),\n });\n pos = closeIdx + closeTag.length;\n }\n\n return headings;\n}\n\nexport function checkHeadings(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { content, focusKeyphrase } = input;\n const headings = parseHeadings(content);\n\n // --- H1 & structure check ---\n const h1s = headings.filter((h) => h.level === 1);\n\n if (h1s.length === 0) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: 'No H1 heading found. Add exactly one H1 as the main heading of your page.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n } else if (h1s.length > 1) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: `Found ${h1s.length} H1 headings. Use exactly one H1 per page for proper SEO.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n // Check heading hierarchy\n let hasSkippedLevel = false;\n for (let i = 1; i < headings.length; i++) {\n const prev = headings[i - 1]!;\n const curr = headings[i]!;\n if (curr.level > prev.level + 1) {\n hasSkippedLevel = true;\n break;\n }\n }\n\n if (hasSkippedLevel) {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description:\n 'The heading hierarchy skips levels (e.g., H2 to H4). Use sequential heading levels for better accessibility and SEO.',\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'heading-structure',\n title: 'Heading structure',\n description: 'The heading structure looks good with a single H1 and proper hierarchy.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n }\n\n // --- Keyphrase in headings check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const subheadings = headings.filter((h) => h.level >= 2);\n const hasKeyphraseInSubheading = subheadings.some((h) => h.text.toLowerCase().includes(kp));\n\n if (subheadings.length === 0) {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description:\n 'No subheadings (H2-H6) found. Add subheadings to structure your content and include the focus keyphrase.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else if (hasKeyphraseInSubheading) {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description: 'The focus keyphrase appears in at least one subheading. Nice!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'heading-keyphrase',\n title: 'Keyphrase in subheadings',\n description:\n 'The focus keyphrase does not appear in any subheading. Consider adding it to an H2 or H3.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Word Count Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\nimport { getWords, MIN_WORD_COUNT, RECOMMENDED_WORD_COUNT } from '@power-seo/core';\n\nexport function checkWordCount(input: ContentAnalysisInput): AnalysisResult {\n const words = getWords(input.content);\n const count = words.length;\n\n if (count < MIN_WORD_COUNT) {\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words, which is below the recommended minimum of ${MIN_WORD_COUNT}. Add more content to improve SEO.`,\n status: 'poor',\n score: 1,\n maxScore: 5,\n };\n }\n\n if (count < RECOMMENDED_WORD_COUNT) {\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words. Consider expanding to at least ${RECOMMENDED_WORD_COUNT} words for more comprehensive coverage.`,\n status: 'ok',\n score: 3,\n maxScore: 5,\n };\n }\n\n return {\n id: 'word-count',\n title: 'Word count',\n description: `The content is ${count} words. Good — this provides enough depth for search engines.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n };\n}\n","// ============================================================================\n// @power-seo/content-analysis — Images Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\n\nexport function checkImages(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { images, focusKeyphrase } = input;\n\n if (!images || images.length === 0) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: 'No images found. Consider adding images to make your content more engaging.',\n status: 'ok',\n score: 3,\n maxScore: 5,\n });\n return results;\n }\n\n // --- Alt text check ---\n const missingAlt = images.filter((img) => !img.alt || img.alt.trim().length === 0);\n\n if (missingAlt.length === 0) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: 'All images have alt text. Great for accessibility and SEO!',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else if (missingAlt.length === images.length) {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description:\n 'None of the images have alt text. Add descriptive alt attributes for accessibility and SEO.',\n status: 'poor',\n score: 0,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'image-alt',\n title: 'Image alt attributes',\n description: `${missingAlt.length} of ${images.length} images are missing alt text. Add alt attributes to all images.`,\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n\n // --- Keyphrase in alt text check ---\n if (focusKeyphrase && focusKeyphrase.trim().length > 0) {\n const kp = focusKeyphrase.toLowerCase().trim();\n const hasKeyphraseInAlt = images.some((img) => img.alt && img.alt.toLowerCase().includes(kp));\n\n if (hasKeyphraseInAlt) {\n results.push({\n id: 'image-keyphrase',\n title: 'Keyphrase in image alt',\n description: 'The focus keyphrase appears in at least one image alt attribute.',\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'image-keyphrase',\n title: 'Keyphrase in image alt',\n description:\n 'The focus keyphrase does not appear in any image alt attribute. Add it to at least one image.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n }\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Links Check\n// ============================================================================\n\nimport type { ContentAnalysisInput, AnalysisResult } from '@power-seo/core';\n\nexport function checkLinks(input: ContentAnalysisInput): AnalysisResult[] {\n const results: AnalysisResult[] = [];\n const { internalLinks, externalLinks } = input;\n\n const hasInternal = internalLinks && internalLinks.length > 0;\n const hasExternal = externalLinks && externalLinks.length > 0;\n\n if (!hasInternal) {\n results.push({\n id: 'internal-links',\n title: 'Internal links',\n description:\n 'No internal links found. Add links to other pages on your site to improve crawlability and distribute link equity.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'internal-links',\n title: 'Internal links',\n description: `Found ${internalLinks!.length} internal link${internalLinks!.length === 1 ? '' : 's'}. Good for site structure and SEO.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n if (!hasExternal) {\n results.push({\n id: 'external-links',\n title: 'External links',\n description:\n 'No external links found. Consider adding outbound links to authoritative sources to strengthen your content.',\n status: 'ok',\n score: 2,\n maxScore: 5,\n });\n } else {\n results.push({\n id: 'external-links',\n title: 'External links',\n description: `Found ${externalLinks!.length} external link${externalLinks!.length === 1 ? '' : 's'}. Linking to quality sources adds credibility.`,\n status: 'good',\n score: 5,\n maxScore: 5,\n });\n }\n\n return results;\n}\n","// ============================================================================\n// @power-seo/content-analysis — Content Analyzer Orchestrator\n// ============================================================================\n\nimport type { ContentAnalysisInput, ContentAnalysisOutput, AnalysisResult } from '@power-seo/core';\nimport type { AnalysisConfig, CheckId } from './types.js';\nimport { checkTitle } from './checks/title.js';\nimport { checkMetaDescription } from './checks/meta-description.js';\nimport { checkKeyphraseUsage } from './checks/keyphrase-usage.js';\nimport { checkHeadings } from './checks/headings.js';\nimport { checkWordCount } from './checks/word-count.js';\nimport { checkImages } from './checks/images.js';\nimport { checkLinks } from './checks/links.js';\n\n/**\n * Run all SEO content analysis checks and return aggregated results.\n *\n * @example\n * ```ts\n * const output = analyzeContent({\n * title: 'My Blog Post',\n * metaDescription: 'A description of my blog post about SEO.',\n * content: '<h1>My Blog Post</h1><p>Content goes here...</p>',\n * focusKeyphrase: 'blog post',\n * });\n * console.log(output.score, output.maxScore, output.recommendations);\n * ```\n */\nexport function analyzeContent(\n input: ContentAnalysisInput,\n config?: AnalysisConfig,\n): ContentAnalysisOutput {\n const disabled = new Set<CheckId>(config?.disabledChecks ?? []);\n\n const allResults: AnalysisResult[] = [];\n\n // Run each check group and collect results\n const titleResults = checkTitle(input);\n const metaResults = checkMetaDescription(input);\n const keyphraseResults = checkKeyphraseUsage(input);\n const headingResults = checkHeadings(input);\n const wordCountResult = checkWordCount(input);\n const imageResults = checkImages(input);\n const linkResults = checkLinks(input);\n\n // Flatten all results\n const candidateResults = [\n ...titleResults,\n ...metaResults,\n ...keyphraseResults,\n ...headingResults,\n wordCountResult,\n ...imageResults,\n ...linkResults,\n ];\n\n // Filter out disabled checks\n for (const result of candidateResults) {\n if (!disabled.has(result.id as CheckId)) {\n allResults.push(result);\n }\n }\n\n // Sum scores\n const score = allResults.reduce((sum, r) => sum + r.score, 0);\n const maxScore = allResults.reduce((sum, r) => sum + r.maxScore, 0);\n\n // Generate recommendations from poor/ok results\n const recommendations = allResults\n .filter((r) => r.status === 'poor' || r.status === 'ok')\n .map((r) => r.description);\n\n return {\n score,\n maxScore,\n results: allResults,\n recommendations,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,mBAAuC;;;ACCvC,kBAA8B;AAEvB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import_core","import_core","import_core","import_core"]}
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createElement, useMemo } from 'react';
|
|
2
|
-
import { validateTitle, validateMetaDescription, analyzeKeyphraseOccurrences, calculateKeywordDensity, KEYWORD_DENSITY, getWords, MIN_WORD_COUNT, RECOMMENDED_WORD_COUNT, stripHtml } from '@power-seo/core';
|
|
3
|
-
|
|
4
1
|
// src/react.ts
|
|
2
|
+
import { createElement, useMemo } from "react";
|
|
3
|
+
|
|
4
|
+
// src/checks/title.ts
|
|
5
|
+
import { validateTitle } from "@power-seo/core";
|
|
5
6
|
function checkTitle(input) {
|
|
6
7
|
const results = [];
|
|
7
8
|
const { title, focusKeyphrase } = input;
|
|
@@ -70,6 +71,9 @@ function checkTitle(input) {
|
|
|
70
71
|
}
|
|
71
72
|
return results;
|
|
72
73
|
}
|
|
74
|
+
|
|
75
|
+
// src/checks/meta-description.ts
|
|
76
|
+
import { validateMetaDescription } from "@power-seo/core";
|
|
73
77
|
function checkMetaDescription(input) {
|
|
74
78
|
const results = [];
|
|
75
79
|
const { metaDescription, focusKeyphrase } = input;
|
|
@@ -138,6 +142,13 @@ function checkMetaDescription(input) {
|
|
|
138
142
|
}
|
|
139
143
|
return results;
|
|
140
144
|
}
|
|
145
|
+
|
|
146
|
+
// src/checks/keyphrase-usage.ts
|
|
147
|
+
import {
|
|
148
|
+
analyzeKeyphraseOccurrences,
|
|
149
|
+
calculateKeywordDensity,
|
|
150
|
+
KEYWORD_DENSITY
|
|
151
|
+
} from "@power-seo/core";
|
|
141
152
|
function checkKeyphraseUsage(input) {
|
|
142
153
|
const results = [];
|
|
143
154
|
const { focusKeyphrase, title, metaDescription, content, slug, images } = input;
|
|
@@ -226,15 +237,37 @@ function checkKeyphraseUsage(input) {
|
|
|
226
237
|
}
|
|
227
238
|
return results;
|
|
228
239
|
}
|
|
240
|
+
|
|
241
|
+
// src/checks/headings.ts
|
|
242
|
+
import { stripHtml } from "@power-seo/core";
|
|
229
243
|
function parseHeadings(html) {
|
|
230
244
|
const headings = [];
|
|
231
|
-
const
|
|
232
|
-
let
|
|
233
|
-
while (
|
|
245
|
+
const lc = html.toLowerCase();
|
|
246
|
+
let pos = 0;
|
|
247
|
+
while (pos < lc.length) {
|
|
248
|
+
let earliest = -1;
|
|
249
|
+
let earliestLevel = 0;
|
|
250
|
+
for (let level = 1; level <= 6; level++) {
|
|
251
|
+
const idx = lc.indexOf(`<h${level}`, pos);
|
|
252
|
+
if (idx !== -1 && (earliest === -1 || idx < earliest)) {
|
|
253
|
+
earliest = idx;
|
|
254
|
+
earliestLevel = level;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (earliest === -1) break;
|
|
258
|
+
const contentStart = lc.indexOf(">", earliest);
|
|
259
|
+
if (contentStart === -1) break;
|
|
260
|
+
const closeTag = `</h${earliestLevel}>`;
|
|
261
|
+
const closeIdx = lc.indexOf(closeTag, contentStart + 1);
|
|
262
|
+
if (closeIdx === -1) {
|
|
263
|
+
pos = contentStart + 1;
|
|
264
|
+
continue;
|
|
265
|
+
}
|
|
234
266
|
headings.push({
|
|
235
|
-
level:
|
|
236
|
-
text: stripHtml(
|
|
267
|
+
level: earliestLevel,
|
|
268
|
+
text: stripHtml(html.slice(contentStart + 1, closeIdx))
|
|
237
269
|
});
|
|
270
|
+
pos = closeIdx + closeTag.length;
|
|
238
271
|
}
|
|
239
272
|
return headings;
|
|
240
273
|
}
|
|
@@ -326,6 +359,9 @@ function checkHeadings(input) {
|
|
|
326
359
|
}
|
|
327
360
|
return results;
|
|
328
361
|
}
|
|
362
|
+
|
|
363
|
+
// src/checks/word-count.ts
|
|
364
|
+
import { getWords, MIN_WORD_COUNT, RECOMMENDED_WORD_COUNT } from "@power-seo/core";
|
|
329
365
|
function checkWordCount(input) {
|
|
330
366
|
const words = getWords(input.content);
|
|
331
367
|
const count = words.length;
|
|
@@ -665,7 +701,9 @@ function ContentAnalyzer({ input, config, children }) {
|
|
|
665
701
|
children ?? null
|
|
666
702
|
);
|
|
667
703
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
704
|
+
export {
|
|
705
|
+
CheckList,
|
|
706
|
+
ContentAnalyzer,
|
|
707
|
+
ScorePanel
|
|
708
|
+
};
|
|
671
709
|
//# sourceMappingURL=react.js.map
|