PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.0
GenerateBlocks v2.0.0
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 / default.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
default.js
91 lines
1 import { __ } from '@wordpress/i18n';
2
3 const defaultContext = {
4 id: '',
5 blockName: '',
6 isInQueryLoop: false,
7 supports: {
8 responsiveTabs: false,
9 settingsPanel: {
10 enabled: false,
11 label: __( 'Block Settings', 'generateblocks' ),
12 icon: 'wrench',
13 },
14 layout: {
15 enabled: false,
16 display: false,
17 flexDirection: false,
18 flexWrap: false,
19 alignItems: false,
20 justifyContent: false,
21 columnGap: false,
22 rowGap: false,
23 zIndex: false,
24 position: false,
25 overflow: false,
26 themeWidth: false,
27 },
28 flexChildPanel: {
29 enabled: false,
30 flex: false,
31 order: false,
32 },
33 sizingPanel: {
34 enabled: false,
35 width: false,
36 height: false,
37 minWidth: false,
38 minHeight: false,
39 maxWidth: false,
40 maxHeight: false,
41 useGlobalMaxWidth: false,
42 },
43 typography: {
44 enabled: false,
45 alignment: false,
46 fontWeight: false,
47 textTransform: false,
48 fontSize: false,
49 lineHeight: false,
50 letterSpacing: false,
51 fontFamily: false,
52 },
53 spacing: {
54 enabled: false,
55 padding: false,
56 margin: false,
57 inlineWidth: false,
58 stackVertically: false,
59 fillHorizontalSpace: false,
60 },
61 borders: {
62 enabled: false,
63 borderColors: [],
64 borderTop: false,
65 borderRight: false,
66 borderBottom: false,
67 borderLeft: false,
68 borderRadius: false,
69 },
70 colors: {
71 enabled: false,
72 elements: [],
73 },
74 backgroundPanel: {
75 enabled: false,
76 backgroundImage: false,
77 backgroundGradient: false,
78 },
79 shapesPanel: {
80 enabled: false,
81 },
82 icon: {
83 enabled: false,
84 location: [],
85 iconSize: false,
86 },
87 },
88 };
89
90 export default defaultContext;
91