PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / sankey-diagram / block.json

block.json in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/sankey-diagram/block.json

220 lines 5.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "blockenberg/sankey-diagram",
5 "version": "1.0.0",
6 "title": "Sankey Diagram",
7 "category": "bkbg-charts",
8 "icon": "chart-line",
9 "description": "Flow diagram showing proportional transfers between stages. Great for budget allocation, user journeys, traffic sources, and energy/material flows.",
10 "keywords": [
11 "sankey",
12 "flow",
13 "diagram",
14 "budget",
15 "journey",
16 "alluvial",
17 "waterfall",
18 "stream"
19 ],
20 "textdomain": "blockenberg",
21 "editorScript": "bkbg-sankey-diagram-editor",
22 "style": "bkbg-sankey-diagram-style",
23 "supports": {
24 "html": false,
25 "align": [
26 "wide",
27 "full"
28 ]
29 },
30 "attributes": {
31 "title": {
32 "type": "string",
33 "default": "Traffic Sources"
34 },
35 "showTitle": {
36 "type": "boolean",
37 "default": true
38 },
39 "svgWidth": {
40 "type": "number",
41 "default": 800
42 },
43 "svgHeight": {
44 "type": "number",
45 "default": 440
46 },
47 "nodeWidth": {
48 "type": "number",
49 "default": 24
50 },
51 "nodePad": {
52 "type": "number",
53 "default": 20
54 },
55 "labelFontSize": {
56 "type": "number",
57 "default": 13
58 },
59 "labelFontWeight": {
60 "type": "number",
61 "default": 600
62 },
63 "labelLineHeight": {
64 "type": "number",
65 "default": 1.4
66 },
67 "valueFontSize": {
68 "type": "number",
69 "default": 11
70 },
71 "valueFontWeight": {
72 "type": "number",
73 "default": 400
74 },
75 "valueLineHeight": {
76 "type": "number",
77 "default": 1.4
78 },
79 "showValues": {
80 "type": "boolean",
81 "default": true
82 },
83 "flowOpacity": {
84 "type": "number",
85 "default": 40
86 },
87 "bgColor": {
88 "type": "string",
89 "default": "#ffffff"
90 },
91 "titleColor": {
92 "type": "string",
93 "default": "#111827"
94 },
95 "titleTypo": {
96 "type": "object",
97 "default": {}
98 },
99 "textColor": {
100 "type": "string",
101 "default": "#374151"
102 },
103 "nodes": {
104 "type": "array",
105 "default": [
106 {
107 "id": "organic",
108 "label": "Organic Search",
109 "color": "#4f46e5"
110 },
111 {
112 "id": "social",
113 "label": "Social Media",
114 "color": "#0891b2"
115 },
116 {
117 "id": "direct",
118 "label": "Direct",
119 "color": "#059669"
120 },
121 {
122 "id": "referral",
123 "label": "Referral",
124 "color": "#d97706"
125 },
126 {
127 "id": "blog",
128 "label": "Blog",
129 "color": "#7c3aed"
130 },
131 {
132 "id": "product",
133 "label": "Product Pages",
134 "color": "#dc2626"
135 },
136 {
137 "id": "checkout",
138 "label": "Checkout",
139 "color": "#ea580c"
140 },
141 {
142 "id": "purchase",
143 "label": "Purchase",
144 "color": "#16a34a"
145 },
146 {
147 "id": "bounced",
148 "label": "Bounced",
149 "color": "#9ca3af"
150 }
151 ]
152 },
153 "links": {
154 "type": "array",
155 "default": [
156 {
157 "source": "organic",
158 "target": "blog",
159 "value": 4200
160 },
161 {
162 "source": "organic",
163 "target": "product",
164 "value": 2800
165 },
166 {
167 "source": "social",
168 "target": "blog",
169 "value": 1900
170 },
171 {
172 "source": "social",
173 "target": "product",
174 "value": 1400
175 },
176 {
177 "source": "direct",
178 "target": "product",
179 "value": 1700
180 },
181 {
182 "source": "referral",
183 "target": "product",
184 "value": 900
185 },
186 {
187 "source": "blog",
188 "target": "product",
189 "value": 2400
190 },
191 {
192 "source": "blog",
193 "target": "bounced",
194 "value": 3700
195 },
196 {
197 "source": "product",
198 "target": "checkout",
199 "value": 3200
200 },
201 {
202 "source": "product",
203 "target": "bounced",
204 "value": 5600
205 },
206 {
207 "source": "checkout",
208 "target": "purchase",
209 "value": 2600
210 },
211 {
212 "source": "checkout",
213 "target": "bounced",
214 "value": 600
215 }
216 ]
217 }
218 }
219 }
220