deprecated
2 months ago
block.json
1 month ago
edit.js
2 weeks ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 weeks ago
style.scss
1 month ago
index.js
41 lines
| 1 | /** |
| 2 | * Balloon block type |
| 3 | * |
| 4 | */ |
| 5 | |
| 6 | import { iconPicture, content, iconName } from '../../utils/example-data'; |
| 7 | import deprecated from './deprecated/'; |
| 8 | import { ReactComponent as Icon } from './icon.svg'; |
| 9 | import edit from './edit'; |
| 10 | import metadata from './block.json'; |
| 11 | import save from './save'; |
| 12 | |
| 13 | const { name } = metadata; |
| 14 | |
| 15 | export { metadata, name }; |
| 16 | |
| 17 | export const settings = { |
| 18 | icon: <Icon />, |
| 19 | example: { |
| 20 | attributes: { |
| 21 | balloonName: iconName, |
| 22 | balloonType: 'type-speech', |
| 23 | balloonBgColor: '#f5f5f5', |
| 24 | balloonAlign: 'position-left', |
| 25 | IconImage: iconPicture, |
| 26 | balloonImageType: 'normal', |
| 27 | }, |
| 28 | innerBlocks: [ |
| 29 | { |
| 30 | name: 'core/paragraph', |
| 31 | attributes: { |
| 32 | content, |
| 33 | }, |
| 34 | }, |
| 35 | ], |
| 36 | }, |
| 37 | edit, |
| 38 | save, |
| 39 | deprecated, |
| 40 | }; |
| 41 |