payload icon indicating copy to clipboard operation
payload copied to clipboard

fix: add missing beforeDocumentControls custom component key for globals to importmap generation

Open GeorgS opened this issue 1 month ago • 3 comments

What?

Add missing beforeDocumentControls key for custom components in admin.components.elements in globals to importmap generation. Remove editMenuItems from globals custom component docs.

Why?

Adding the custom components does currently not work as stated in the docs (https://payloadcms.com/docs/custom-components/edit-view#globals) as it won't be picked up by payload generate:importmap.

How?

Added missing key to generation. Update docs.

GeorgS avatar Nov 20 '25 20:11 GeorgS

@GeorgS build is failing

AlessioGr avatar Nov 21 '25 00:11 AlessioGr

@AlessioGr did not realize that editMenuItems is currently not supported for Globals. I've removed it from the importmap generation and updated the docs to reflect the available custom components for Globals.

GeorgS avatar Nov 21 '25 08:11 GeorgS

@AlessioGr could you check this again, the build should work now. Thanks! 😊

GeorgS avatar Dec 02 '25 15:12 GeorgS