sanity-plugin-seo-copilot 0.2.14 → 0.2.16

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.
Files changed (40) hide show
  1. package/README.md +63 -50
  2. package/dist/index.js +868 -797
  3. package/dist/index.mjs +791 -720
  4. package/package.json +9 -8
  5. package/dist/index.js.map +0 -1
  6. package/dist/index.mjs.map +0 -1
  7. package/sanity.json +0 -3
  8. package/src/components/ChatPanel.tsx +0 -311
  9. package/src/components/ConfigContext.tsx +0 -22
  10. package/src/components/FeedbackButton.tsx +0 -218
  11. package/src/components/KeywordBadge.tsx +0 -50
  12. package/src/components/KeywordPanel.tsx +0 -1233
  13. package/src/components/OnboardingPopup.tsx +0 -108
  14. package/src/components/PlacementIndicators.tsx +0 -80
  15. package/src/components/ReportProblemButton.tsx +0 -212
  16. package/src/components/SEOCopilotPanel.tsx +0 -1287
  17. package/src/components/ScoreDonut.tsx +0 -158
  18. package/src/components/SeedKeywordInput.tsx +0 -128
  19. package/src/components/ShimmerLoader.tsx +0 -123
  20. package/src/components/TabBar.tsx +0 -373
  21. package/src/components/styles.ts +0 -158
  22. package/src/components/tabs/AEOTab.tsx +0 -585
  23. package/src/components/tabs/LinkingTab.tsx +0 -446
  24. package/src/components/tabs/MetaTab.tsx +0 -431
  25. package/src/components/tabs/SummaryTab.tsx +0 -405
  26. package/src/components/tabs/TechnicalTab.tsx +0 -933
  27. package/src/hooks/useDocumentContent.ts +0 -48
  28. package/src/hooks/useKeywordAnalysis.ts +0 -292
  29. package/src/hooks/useSEOChat.ts +0 -254
  30. package/src/index.ts +0 -16
  31. package/src/inspector.ts +0 -58
  32. package/src/lib/api.ts +0 -260
  33. package/src/lib/documentExtract.ts +0 -422
  34. package/src/lib/geoAnalysis.ts +0 -122
  35. package/src/lib/persistence.ts +0 -69
  36. package/src/lib/scoring.ts +0 -197
  37. package/src/lib/summary.ts +0 -645
  38. package/src/lib/types.ts +0 -212
  39. package/src/lib/utils.ts +0 -35
  40. package/v2-incompatible.js +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-seo-copilot",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "AI-powered SEO writing assistant for Sanity Studio",
5
5
  "keywords": [
6
6
  "sanity",
@@ -12,7 +12,6 @@
12
12
  "author": "MJH Life Sciences",
13
13
  "exports": {
14
14
  ".": {
15
- "source": "./src/index.ts",
16
15
  "import": "./dist/index.mjs",
17
16
  "require": "./dist/index.js",
18
17
  "default": "./dist/index.js"
@@ -23,14 +22,13 @@
23
22
  "module": "./dist/index.mjs",
24
23
  "types": "./dist/index.d.ts",
25
24
  "files": [
26
- "dist",
27
- "sanity.json",
28
- "src",
29
- "v2-incompatible.js"
25
+ "dist"
30
26
  ],
31
27
  "scripts": {
32
28
  "build": "tsup",
33
- "prepublishOnly": "npm run build"
29
+ "prepare": "npm run build",
30
+ "prepublishOnly": "npm run build",
31
+ "test": "vitest run"
34
32
  },
35
33
  "dependencies": {
36
34
  "react-markdown": "^10.1.0",
@@ -39,14 +37,17 @@
39
37
  "devDependencies": {
40
38
  "@sanity/icons": "^3.7.4",
41
39
  "@sanity/ui": "^3.1.13",
40
+ "@testing-library/react": "^16.3.3",
42
41
  "@types/react": "^19.0.0",
43
42
  "@types/react-dom": "^19.2.3",
43
+ "happy-dom": "^20.14.5",
44
44
  "react": "^19.2.4",
45
45
  "react-dom": "^19.2.4",
46
46
  "sanity": "^5.13.0",
47
47
  "styled-components": "^6.3.11",
48
48
  "tsup": "^8.0.0",
49
- "typescript": "^5.9.3"
49
+ "typescript": "^5.9.3",
50
+ "vitest": "^4.1.11"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "@sanity/icons": "^3.0.0",