| 1 |
/** |
| 2 |
* JavaScript code for the TablePress table block in the block editor. |
| 3 |
* |
| 4 |
* @package TablePress |
| 5 |
* @subpackage Blocks |
| 6 |
* @author Tobias Bäthge |
| 7 |
* @since 2.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
/** |
| 11 |
* WordPress dependencies. |
| 12 |
*/ |
| 13 |
import { registerBlockType } from '@wordpress/blocks'; |
| 14 |
|
| 15 |
/** |
| 16 |
* Internal dependencies. |
| 17 |
*/ |
| 18 |
import transforms from './transforms'; |
| 19 |
import edit from './edit'; |
| 20 |
import save from './save'; |
| 21 |
import example from './example'; |
| 22 |
|
| 23 |
/** |
| 24 |
* Get the block name from the block.json. |
| 25 |
*/ |
| 26 |
import block from '../block.json'; |
| 27 |
|
| 28 |
/** |
| 29 |
* Register the block. |
| 30 |
*/ |
| 31 |
registerBlockType( block.name, { |
| 32 |
transforms, |
| 33 |
edit, |
| 34 |
save, |
| 35 |
example, |
| 36 |
} ); |
| 37 |
|