| 1 |
/** |
| 2 |
* WordPress dependeincies |
| 3 |
*/ |
| 4 |
import { __ } from '@wordpress/i18n'; |
| 5 |
import { registerBlockType } from '@wordpress/blocks'; |
| 6 |
|
| 7 |
/** |
| 8 |
* Internal dependencies |
| 9 |
*/ |
| 10 |
import Edit from "./edit"; |
| 11 |
import attributes from "./attributes"; |
| 12 |
import icon from "./icon"; |
| 13 |
/** |
| 14 |
* Import styles |
| 15 |
*/ |
| 16 |
import "./style.scss"; |
| 17 |
|
| 18 |
registerBlockType("betterdocs/categorybox", { |
| 19 |
title: __("BetterDocs Category Box", "betterdocs"), |
| 20 |
description: __( |
| 21 |
"Highlight documentation categories with eye-catching boxes.", |
| 22 |
"betterdocs" |
| 23 |
), |
| 24 |
category: "betterdocs", |
| 25 |
attributes, |
| 26 |
icon, |
| 27 |
keywords: [__("better docs", "betterdocs"), __("category box", "betterdocs")], |
| 28 |
edit: Edit, |
| 29 |
save: () => null, |
| 30 |
example: { |
| 31 |
viewportWidth: 1200, |
| 32 |
}, |
| 33 |
}); |
| 34 |
|