import * as Model from '@meetalva/model' ; export function getComponents ( project ) { return project . getPatternLibraries ( ) . filter ( library => library . getBundleId ( ) !== '' ) . reduce ( ( components , library ) => { const libraryComponents = ( window as any ) [ library . getBundleId ( ) ] ; if ( ! libraryComponents ) { return components ; } return Object . assign ( components , libraryComponents ) ; } , { } ) ; }