| 1 |
/** |
| 2 |
* Store |
| 3 |
*/ |
| 4 |
import './store'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Blocks |
| 8 |
*/ |
| 9 |
import './blocks'; |
| 10 |
|
| 11 |
/** |
| 12 |
* Formats |
| 13 |
*/ |
| 14 |
import './formats'; |
| 15 |
|
| 16 |
/** |
| 17 |
* Extensions |
| 18 |
*/ |
| 19 |
import './extend'; |
| 20 |
|
| 21 |
/** |
| 22 |
* Style Variants |
| 23 |
*/ |
| 24 |
import './style-variants'; |
| 25 |
|
| 26 |
/** |
| 27 |
* Plugins |
| 28 |
*/ |
| 29 |
import './plugins'; |
| 30 |
|
| 31 |
/** |
| 32 |
* Icon |
| 33 |
*/ |
| 34 |
import GhostKitCategoryIcon from './icons/ghostkit-category.svg'; |
| 35 |
|
| 36 |
/** |
| 37 |
* Disable Blocks |
| 38 |
*/ |
| 39 |
import './disable-blocks'; |
| 40 |
|
| 41 |
/** |
| 42 |
* Internal dependencies |
| 43 |
*/ |
| 44 |
const { registerBlockCollection, updateCategory } = wp.blocks; |
| 45 |
|
| 46 |
/** |
| 47 |
* Add category icon. |
| 48 |
*/ |
| 49 |
const categoryIcon = <GhostKitCategoryIcon className="components-panel__icon" />; |
| 50 |
|
| 51 |
// Collections. |
| 52 |
if (typeof registerBlockCollection !== 'undefined') { |
| 53 |
registerBlockCollection('ghostkit', { |
| 54 |
title: 'Ghost Kit', |
| 55 |
icon: categoryIcon, |
| 56 |
}); |
| 57 |
} else if (updateCategory) { |
| 58 |
updateCategory('ghostkit', { |
| 59 |
icon: categoryIcon, |
| 60 |
}); |
| 61 |
} |
| 62 |
|