sanity-plugin-seo-copilot 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/ShimmerLoader.tsx +4 -4
- package/src/lib/summary.ts +3 -3
package/package.json
CHANGED
|
@@ -65,10 +65,10 @@ export function ShimmerLoader({
|
|
|
65
65
|
style.dataset.seoCopilotKeyframes = "1";
|
|
66
66
|
style.innerHTML = KEYFRAMES;
|
|
67
67
|
document.head.appendChild(style);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
// Intentionally NOT removed on unmount. The ~100-byte keyframe block is global
|
|
69
|
+
// and harmless to leave in <head>. Removing it when the first loader unmounts
|
|
70
|
+
// would yank the animation out from under any OTHER ShimmerLoader still mounted,
|
|
71
|
+
// so we inject once per session and keep the flag latched true.
|
|
72
72
|
}
|
|
73
73
|
}, []);
|
|
74
74
|
|
package/src/lib/summary.ts
CHANGED
|
@@ -265,7 +265,7 @@ export function buildSummaryItems(input: BuildSummaryInput): SummaryItem[] {
|
|
|
265
265
|
category: "headings",
|
|
266
266
|
severity: "error",
|
|
267
267
|
label: "Long article without section headings",
|
|
268
|
-
description: `${wordCount} words and no H2 headings.`,
|
|
268
|
+
description: `${wordCount} words and no H2 or H3 section headings.`,
|
|
269
269
|
howToFix: "Add 2-3 H2 headings to break the article into scannable sections.",
|
|
270
270
|
jumpTo: { tab: "technical", anchorId: "anchor-headings-structure" },
|
|
271
271
|
});
|
|
@@ -275,7 +275,7 @@ export function buildSummaryItems(input: BuildSummaryInput): SummaryItem[] {
|
|
|
275
275
|
category: "headings",
|
|
276
276
|
severity: "warning",
|
|
277
277
|
label: "Long article could use more section headings",
|
|
278
|
-
description: `${h2Count}
|
|
278
|
+
description: `${h2Count} section heading${h2Count === 1 ? "" : "s"} for ${wordCount} words.`,
|
|
279
279
|
howToFix: "Long articles read best with 1 H2 per 300-400 words. Add more named section breaks.",
|
|
280
280
|
jumpTo: { tab: "technical", anchorId: "anchor-headings-structure" },
|
|
281
281
|
});
|
|
@@ -285,7 +285,7 @@ export function buildSummaryItems(input: BuildSummaryInput): SummaryItem[] {
|
|
|
285
285
|
category: "headings",
|
|
286
286
|
severity: "warning",
|
|
287
287
|
label: "Article could use more section headings",
|
|
288
|
-
description: `${h2Count}
|
|
288
|
+
description: `${h2Count} section heading${h2Count === 1 ? "" : "s"} for ${wordCount} words.`,
|
|
289
289
|
howToFix: "Articles above 1,500 words usually need at least 3 H2 sections. Break the content into more named blocks.",
|
|
290
290
|
jumpTo: { tab: "technical", anchorId: "anchor-headings-structure" },
|
|
291
291
|
});
|