PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.7.2
GenerateBlocks v1.7.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / block-context / container.js
generateblocks / src / block-context Last commit date
button-container.js 3 years ago button.js 3 years ago container.js 3 years ago default.js 3 years ago grid.js 3 years ago headline.js 3 years ago image.js 3 years ago index.js 3 years ago
container.js
133 lines
1 import defaultContext from './default';
2 import { __ } from '@wordpress/i18n';
3 import { defaultsDeep } from 'lodash';
4
5 const containerContext = defaultsDeep( {
6 id: 'container',
7 supports: {
8 responsiveTabs: true,
9 settingsPanel: {
10 enabled: true,
11 icon: 'container-settings',
12 },
13 layout: {
14 enabled: true,
15 display: true,
16 flexDirection: true,
17 flexWrap: true,
18 alignItems: true,
19 justifyContent: true,
20 columnGap: true,
21 rowGap: true,
22 zIndex: true,
23 position: true,
24 overflow: true,
25 },
26 flexChildPanel: {
27 enabled: true,
28 flex: true,
29 order: true,
30 },
31 sizingPanel: {
32 enabled: true,
33 width: true,
34 height: true,
35 minWidth: true,
36 minHeight: true,
37 maxWidth: true,
38 maxHeight: true,
39 useGlobalMaxWidth: true,
40 },
41 typography: {
42 enabled: true,
43 alignment: true,
44 fontWeight: true,
45 textTransform: true,
46 fontSize: true,
47 fontFamily: true,
48 },
49 spacing: {
50 enabled: true,
51 dimensions: [
52 {
53 type: 'padding',
54 label: __( 'Padding', 'generateblocks' ),
55 units: [ 'px', 'em', '%' ],
56 },
57 {
58 type: 'margin',
59 label: __( 'Margin', 'generateblocks' ),
60 units: [ 'px', 'em', '%' ],
61 },
62 {
63 type: 'borderSize',
64 label: __( 'Border Size', 'generateblocks' ),
65 units: [ 'px' ],
66 },
67 {
68 type: 'borderRadius',
69 label: __( 'Border Radius', 'generateblocks' ),
70 units: [ 'px', 'em', '%' ],
71 },
72 ],
73 },
74 colors: {
75 enabled: true,
76 elements: [
77 {
78 group: 'background',
79 label: __( 'Background', 'generateblocks' ),
80 items: [
81 {
82 attribute: 'backgroundColor',
83 alpha: true,
84 },
85 ],
86 },
87 {
88 group: 'text',
89 label: __( 'Text', 'generateblocks' ),
90 items: [
91 {
92 attribute: 'textColor',
93 },
94 ],
95 },
96 {
97 group: 'link',
98 label: __( 'Link', 'generateblocks' ),
99 items: [
100 {
101 attribute: 'linkColor',
102 },
103 {
104 tooltip: __( 'Hover', 'generateblocks' ),
105 attribute: 'linkColorHover',
106 },
107 ],
108 },
109 {
110 group: 'border',
111 label: __( 'Border', 'generateblocks' ),
112 items: [
113 {
114 attribute: 'borderColor',
115 alpha: true,
116 },
117 ],
118 },
119 ],
120 },
121 backgroundPanel: {
122 enabled: true,
123 backgroundImage: true,
124 backgroundGradient: true,
125 },
126 shapesPanel: {
127 enabled: true,
128 },
129 },
130 }, defaultContext );
131
132 export default containerContext;
133