Issue #3107837 patch for version 3.0.x "Cannot add custom type media". Revised patch from @doxigo by using .gutenberg.mediaTypes instead of .gutenberg.drupalSettings setting in allowedTypes.
.gutenberg.mediaTypes
.gutenberg.drupalSettings