PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.2
GenerateBlocks v2.0.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 2 years ago button.js 2 years ago container.js 2 years ago default.js 2 years ago grid.js 3 years ago headline.js 2 years ago image.js 2 years ago index.js 2 years ago
container.js
124 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 themeWidth: true,
26 },
27 flexChildPanel: {
28 enabled: true,
29 flex: true,
30 order: true,
31 },
32 sizingPanel: {
33 enabled: true,
34 width: true,
35 height: true,
36 minWidth: true,
37 minHeight: true,
38 maxWidth: true,
39 maxHeight: true,
40 useGlobalMaxWidth: true,
41 },
42 typography: {
43 enabled: true,
44 alignment: true,
45 fontWeight: true,
46 textTransform: true,
47 fontSize: true,
48 fontFamily: true,
49 },
50 spacing: {
51 enabled: true,
52 padding: true,
53 margin: true,
54 },
55 borders: {
56 enabled: true,
57 borderColors: [
58 {
59 state: '',
60 tooltip: __( 'Border', 'generateblocks' ),
61 alpha: true,
62 },
63 {
64 state: 'Hover',
65 tooltip: __( 'Border Hover', 'generateblocks' ),
66 alpha: true,
67 },
68 ],
69 borderTop: true,
70 borderRight: true,
71 borderBottom: true,
72 borderLeft: true,
73 borderRadius: true,
74 },
75 colors: {
76 enabled: true,
77 elements: [
78 {
79 group: 'background',
80 label: __( 'Background', 'generateblocks' ),
81 items: [
82 {
83 attribute: 'backgroundColor',
84 alpha: true,
85 },
86 ],
87 },
88 {
89 group: 'text',
90 label: __( 'Text', 'generateblocks' ),
91 items: [
92 {
93 attribute: 'textColor',
94 },
95 ],
96 },
97 {
98 group: 'link',
99 label: __( 'Link', 'generateblocks' ),
100 items: [
101 {
102 attribute: 'linkColor',
103 },
104 {
105 tooltip: __( 'Hover', 'generateblocks' ),
106 attribute: 'linkColorHover',
107 },
108 ],
109 },
110 ],
111 },
112 backgroundPanel: {
113 enabled: true,
114 backgroundImage: true,
115 backgroundGradient: true,
116 },
117 shapesPanel: {
118 enabled: true,
119 },
120 },
121 }, defaultContext );
122
123 export default containerContext;
124