PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 2.25.0
Block Animations, Motion & Scroll Effects – Ghost Kit v2.25.0
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / index.js

index.js in Block Animations, Motion & Scroll Effects – Ghost Kit 2.25.0, at gutenberg/index.js

62 lines 853 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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