diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/map/index.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/map/index.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/map/index.js b/plugins/jetpack/extensions/blocks/map/index.js new file mode 100644 index 00000000..2e66caae --- /dev/null +++ b/plugins/jetpack/extensions/blocks/map/index.js @@ -0,0 +1,28 @@ +/** + * Internal dependencies + */ +import { settings as mapSettings } from './settings.js'; +import edit from './edit'; +import save from './save'; +import './style.scss'; +import './editor.scss'; + +export const { name } = mapSettings; + +export const settings = { + title: mapSettings.title, + icon: mapSettings.icon, + category: mapSettings.category, + keywords: mapSettings.keywords, + description: mapSettings.description, + attributes: mapSettings.attributes, + supports: mapSettings.supports, + getEditWrapperProps( attributes ) { + const { align } = attributes; + if ( -1 !== mapSettings.validAlignments.indexOf( align ) ) { + return { 'data-align': align }; + } + }, + edit, + save, +}; |