wp.domReady( () => {

  const allowedEmbedBlocks = [
    'vimeo','youtube',
  ];
  wp.blocks.getBlockVariations('core/embed').forEach(function (blockVariation) {
    if (-1 === allowedEmbedBlocks.indexOf(blockVariation.name)) {
      wp.blocks.unregisterBlockVariation('core/embed', blockVariation.name);
    }
  });

  wp.blocks.unregisterBlockStyle( 'core/button', ['default', 'outline', 'squared', 'fill'] );
  wp.blocks.registerBlockStyle( 'core/button', [
      {
        name: 'bootstrap-outline-secondary',
        label: 'Purple Outline',
        isDefault: true
      },
      {
        name: 'bootstrap-secondary',
        label: 'Purple Solid'
      },
      {
        name: 'bootstrap-outline-primary',
        label: 'Green Outline'
      },
      {
        name: 'bootstrap-primary',
        label: 'Green Solid'
      }
    ]
  );
});