Minor Changes
-
#3732
2210c2cThanks @ascorbic! - AddsdescribeCapability()andCAPABILITY_DESCRIPTIONS, which give an English label and description for every plugin capability so tools that list a plugin's permissions can show the same wording.import { describeCapability } from "@emdash-cms/plugin-types"; describeCapability("content:read"); // { label: "Read content", description: "Read entries from your site’s content collections." }
Deprecated capability names return the description of their replacement. A string that is not a known capability returns
undefined.
Patch Changes
- #3546
2c8c12aThanks @swissky! - Addsgroupto plugin admin pages, in native plugin descriptors and inadmin.pagesofemdash-plugin.jsonc, to place them in collapsible admin sidebar folders. A page whose group matches the group of a collection shown in the sidebar appears inside that folder, after its collections and taxonomies. Pages that share any other group, from one plugin or several, fold into one folder in the Plugins section. Pages without a group stay where they are.