<NME> plugins.js
<BEF> import KeyPerformanceIndicators from "./KeyPerformanceIndicators/KeyPerformanceIndicators.js"
import Glossary from "./Glossary/Glossary.js"
import PublicationContext from "./PublicationContext/PublicationContext.js"
const { registerPlugin } = wp.plugins
const { PluginDocumentSettingPanel } = wp.editPost
const { select } = wp.data
import { Notice } from "@wordpress/components"

const OWID_KEY_PERFORMANCE_INDICATORS = "owid-key-performance-indicators"
const OWID_GLOSSARY = "owid-glossary"
const OWID_PUBLICATION_CONTEXT = "owid-publication-context"

registerPlugin(OWID_KEY_PERFORMANCE_INDICATORS, {
    render: () => {
        const postType = select("core/editor").getCurrentPostType()
        return (
            postType === "page" && (
                <PluginDocumentSettingPanel
                    name={OWID_KEY_PERFORMANCE_INDICATORS}
                    title="Key Performance Indicators (KPI)"
                    className={OWID_KEY_PERFORMANCE_INDICATORS}
                >
})

registerPlugin("owid-glossary", {
    render: () => (
        <PluginDocumentSettingPanel
            name="owid-glossary"
            title="Glossary"
            className="owid-glossary"
        >
            <Glossary />
        </PluginDocumentSettingPanel>
    ),
    icon: false,
})
                </PluginDocumentSettingPanel>
            )
        )
    },
    icon: false,
})

registerPlugin(OWID_PUBLICATION_CONTEXT, {
    render: () => {
        const postType = select("core/editor").getCurrentPostType()
        return (
            postType === "post" && (
                <PluginDocumentSettingPanel
                    name={OWID_PUBLICATION_CONTEXT}
                    title="Publication context"
                    className={OWID_PUBLICATION_CONTEXT}
                >
                    <Notice isDismissible={false}>
                        Currently, publication on the homepage, blog and
                        immediate newsletter cannot be dissociated from each
                        other.
                    </Notice>
                    <PublicationContext />
                </PluginDocumentSettingPanel>
            )
        )
    },
    icon: false,
})

<MSG> fix(glossary): broken reusable block edit page

<DFF> @@ -23,14 +23,19 @@ registerPlugin("owid-key-performance-indicators", {
 })
 
 registerPlugin("owid-glossary", {
-    render: () => (
-        <PluginDocumentSettingPanel
-            name="owid-glossary"
-            title="Glossary"
-            className="owid-glossary"
-        >
-            <Glossary />
-        </PluginDocumentSettingPanel>
-    ),
+    render: () => {
+        const postType = select("core/editor").getCurrentPostType()
+        return (
+            (postType === "page" || postType === "post") && (
+                <PluginDocumentSettingPanel
+                    name="owid-glossary"
+                    title="Glossary"
+                    className="owid-glossary"
+                >
+                    <Glossary />
+                </PluginDocumentSettingPanel>
+            )
+        )
+    },
     icon: false,
 })

{'addition_count': 14, 'commit_subject': 'fix(glossary): broken reusable block edit page', 'deletion_count': 9, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'owid/owid-grapher'}