| 1 |
/** |
| 2 |
* WordPress dependencies |
| 3 |
*/ |
| 4 |
import { registerPlugin } from '@wordpress/plugins'; |
| 5 |
|
| 6 |
/** |
| 7 |
* Internal dependencies |
| 8 |
*/ |
| 9 |
import DocumentSettingPanel from './document-setting'; |
| 10 |
import PrepublishPanel from './prepublish'; |
| 11 |
import Sidebar from './sidebar'; |
| 12 |
import { BeyondwordsIcon } from '../components/icon'; |
| 13 |
|
| 14 |
// The inline Document Settings + Pre-publish panels render no brand icon — the |
| 15 |
// registered-plugin icon sits misaligned beside their titles. |
| 16 |
registerPlugin( 'beyondwords-document-sidebar', { |
| 17 |
render: DocumentSettingPanel, |
| 18 |
} ); |
| 19 |
|
| 20 |
registerPlugin( 'beyondwords-prepublish-sidebar', { |
| 21 |
render: PrepublishPanel, |
| 22 |
} ); |
| 23 |
|
| 24 |
// The plugin sidebar keeps the brand icon for its editor-toolbar pin. |
| 25 |
registerPlugin( 'beyondwords-plugin-sidebar', { |
| 26 |
icon: <BeyondwordsIcon />, |
| 27 |
render: Sidebar, |
| 28 |
} ); |
| 29 |
|