diagram plugin updated and components build script fixed