index.js (1096B)
1 /** 2 * Internal dependencies 3 */ 4 import edit from './components/edit'; 5 import icon from './icon'; 6 import transforms from './transforms'; 7 import { colorizeIcon } from '../../icons'; 8 9 /** 10 * WordPress dependencies 11 */ 12 const { __ } = wp.i18n; 13 14 /** 15 * Block constants 16 */ 17 const name = 'import'; 18 19 const category = 'common'; 20 const schema = { 21 file: { 22 type: 'object', 23 }, 24 }; 25 26 const title = __( 'Template Import', redux_templates.i18n ); 27 28 const keywords = [ 29 __( 'import', redux_templates.i18n ), 30 __( 'download', redux_templates.i18n ), 31 __( 'migrate', redux_templates.i18n ), 32 ]; 33 34 35 36 const settings = { 37 title: title, 38 description: __( 'Import blocks exported using Redux plugin.', redux_templates.i18n ), 39 40 category: category, 41 keywords: keywords, 42 43 attributes: schema, 44 45 supports: { 46 align: true, 47 alignWide: false, 48 alignFull: false, 49 customClassName: false, 50 className: false, 51 html: false, 52 }, 53 54 transforms: transforms, 55 edit: edit, 56 save() { 57 return null; 58 }, 59 }; 60 61 export { name, title, category, icon, settings };