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.mjs
CHANGED
|
@@ -7379,7 +7379,15 @@ function seoCopilotInspector(config) {
|
|
|
7379
7379
|
name: "seo-copilot",
|
|
7380
7380
|
useMenuItem: () => ({
|
|
7381
7381
|
title: "SEO Copilot",
|
|
7382
|
-
icon: SEOIcon
|
|
7382
|
+
icon: SEOIcon,
|
|
7383
|
+
// Toolbar placement test: showAsAction renders this as a button in the document
|
|
7384
|
+
// toolbar (where editors expect it). The original crash came from passing
|
|
7385
|
+
// showAsAction WITHOUT a tone; pairing it with a valid string tone is how Sanity's
|
|
7386
|
+
// own built-in inspectors (Validation, etc.) keep their toolbar button safely.
|
|
7387
|
+
// If this still crashes in Nick's studio, remove these two lines to fall back to
|
|
7388
|
+
// the "..." overflow menu (the known-safe placement).
|
|
7389
|
+
showAsAction: true,
|
|
7390
|
+
tone: "default"
|
|
7383
7391
|
}),
|
|
7384
7392
|
component: function SEOCopilotInspector(props) {
|
|
7385
7393
|
return createElement(SEOCopilotPanel, { ...props, config });
|