added macro support for views
fix MediaInfo types
removed focus on editor when remove attachment
fix eslint rule style