Implement a hook_page_attachments_alter() to pass on the moderation states as drupalSettings.gutenberg.nodeActions