PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.2
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.2
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 / blocks / changelog / index.js

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

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 import getIcon from '../../utils/get-icon';
4 import metadata from './block.json';
5 import edit from './edit';
6 import save from './save';
7
8 const { name } = metadata;
9
10 export { metadata, name };
11
12 export const settings = {
13 icon: getIcon('block-changelog', true),
14 ghostkit: {
15 previewUrl: 'https://www.ghostkit.io/docs/blocks/changelog/',
16 },
17 example: {
18 attributes: {
19 version: '1.0.0',
20 date: new Date().toLocaleDateString(),
21 },
22 innerBlocks: [
23 {
24 name: 'core/list',
25 attributes: {
26 className: 'is-style-none',
27 },
28 innerBlocks: [
29 {
30 name: 'core/list-item',
31 attributes: {
32 content: `<span class="ghostkit-badge" style="background: #4ab866">${__('Added', 'ghostkit')}</span>${__('Something', 'ghostkit')}`,
33 },
34 },
35 {
36 name: 'core/list-item',
37 attributes: {
38 content: `<span class="ghostkit-badge" style="background: #0366d6">${__('Fixed', 'ghostkit')}</span>${__('Something', 'ghostkit')}`,
39 },
40 },
41 {
42 name: 'core/list-item',
43 attributes: {
44 content: `<span class="ghostkit-badge" style="background: #4ab866">${__('Improved', 'ghostkit')}</span>${__('Something', 'ghostkit')}`,
45 },
46 },
47 ],
48 },
49 ],
50 },
51 edit,
52 save,
53 };
54