sanity-plugin-seo-copilot 0.2.10 → 0.2.11
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 +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/OnboardingPopup.tsx +108 -108
- package/src/inspector.ts +58 -50
- package/src/lib/utils.ts +35 -35
package/dist/index.js
CHANGED
|
@@ -7413,7 +7413,15 @@ function seoCopilotInspector(config) {
|
|
|
7413
7413
|
name: "seo-copilot",
|
|
7414
7414
|
useMenuItem: () => ({
|
|
7415
7415
|
title: "SEO Copilot",
|
|
7416
|
-
icon: SEOIcon
|
|
7416
|
+
icon: SEOIcon,
|
|
7417
|
+
// Toolbar placement test: showAsAction renders this as a button in the document
|
|
7418
|
+
// toolbar (where editors expect it). The original crash came from passing
|
|
7419
|
+
// showAsAction WITHOUT a tone; pairing it with a valid string tone is how Sanity's
|
|
7420
|
+
// own built-in inspectors (Validation, etc.) keep their toolbar button safely.
|
|
7421
|
+
// If this still crashes in Nick's studio, remove these two lines to fall back to
|
|
7422
|
+
// the "..." overflow menu (the known-safe placement).
|
|
7423
|
+
showAsAction: true,
|
|
7424
|
+
tone: "default"
|
|
7417
7425
|
}),
|
|
7418
7426
|
component: function SEOCopilotInspector(props) {
|
|
7419
7427
|
return (0, import_react19.createElement)(SEOCopilotPanel, { ...props, config });
|