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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-seo-copilot",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "AI-powered SEO writing assistant for Sanity Studio",
5
5
  "keywords": [
6
6
  "sanity",
@@ -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
- return () => {
69
- try { document.head.removeChild(style); } catch { /* already removed */ }
70
- keyframesInjected = false;
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
 
@@ -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} H2 heading${h2Count === 1 ? "" : "s"} for ${wordCount} words.`,
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} H2 heading${h2Count === 1 ? "" : "s"} for ${wordCount} words.`,
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
  });