| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/org-chart", |
| 5 |
"title": "Org Chart", |
| 6 |
"category": "bkbg-business", |
| 7 |
"icon": "networking", |
| 8 |
"description": "Organizational hierarchy chart with avatar, name, role, and department for every node.", |
| 9 |
"keywords": [ |
| 10 |
"org chart", |
| 11 |
"organization", |
| 12 |
"hierarchy", |
| 13 |
"team", |
| 14 |
"structure", |
| 15 |
"tree" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-org-chart-editor", |
| 19 |
"style": "bkbg-org-chart-style", |
| 20 |
"viewScript": "bkbg-org-chart-frontend", |
| 21 |
"supports": { |
| 22 |
"html": false, |
| 23 |
"anchor": true, |
| 24 |
"className": true, |
| 25 |
"align": [ |
| 26 |
"wide", |
| 27 |
"full" |
| 28 |
] |
| 29 |
}, |
| 30 |
"attributes": { |
| 31 |
"title": { |
| 32 |
"type": "string", |
| 33 |
"default": "Our Team" |
| 34 |
}, |
| 35 |
"showTitle": { |
| 36 |
"type": "boolean", |
| 37 |
"default": true |
| 38 |
}, |
| 39 |
"nodes": { |
| 40 |
"type": "array", |
| 41 |
"default": [ |
| 42 |
{ |
| 43 |
"id": "n1", |
| 44 |
"parentId": "", |
| 45 |
"name": "Sarah Mitchell", |
| 46 |
"role": "Chief Executive Officer", |
| 47 |
"department": "Executive", |
| 48 |
"avatarUrl": "", |
| 49 |
"avatarId": 0, |
| 50 |
"color": "#6c3fb5" |
| 51 |
}, |
| 52 |
{ |
| 53 |
"id": "n2", |
| 54 |
"parentId": "n1", |
| 55 |
"name": "James Wheeler", |
| 56 |
"role": "Chief Technology Officer", |
| 57 |
"department": "Technology", |
| 58 |
"avatarUrl": "", |
| 59 |
"avatarId": 0, |
| 60 |
"color": "#3b82f6" |
| 61 |
}, |
| 62 |
{ |
| 63 |
"id": "n3", |
| 64 |
"parentId": "n1", |
| 65 |
"name": "Priya Sharma", |
| 66 |
"role": "Chief Marketing Officer", |
| 67 |
"department": "Marketing", |
| 68 |
"avatarUrl": "", |
| 69 |
"avatarId": 0, |
| 70 |
"color": "#ec4899" |
| 71 |
}, |
| 72 |
{ |
| 73 |
"id": "n4", |
| 74 |
"parentId": "n1", |
| 75 |
"name": "David Chen", |
| 76 |
"role": "Chief Financial Officer", |
| 77 |
"department": "Finance", |
| 78 |
"avatarUrl": "", |
| 79 |
"avatarId": 0, |
| 80 |
"color": "#10b981" |
| 81 |
}, |
| 82 |
{ |
| 83 |
"id": "n5", |
| 84 |
"parentId": "n2", |
| 85 |
"name": "Lena Hoffmann", |
| 86 |
"role": "VP of Engineering", |
| 87 |
"department": "Technology", |
| 88 |
"avatarUrl": "", |
| 89 |
"avatarId": 0, |
| 90 |
"color": "#6366f1" |
| 91 |
}, |
| 92 |
{ |
| 93 |
"id": "n6", |
| 94 |
"parentId": "n2", |
| 95 |
"name": "Carlos Rivera", |
| 96 |
"role": "Head of Design", |
| 97 |
"department": "Technology", |
| 98 |
"avatarUrl": "", |
| 99 |
"avatarId": 0, |
| 100 |
"color": "#8b5cf6" |
| 101 |
}, |
| 102 |
{ |
| 103 |
"id": "n7", |
| 104 |
"parentId": "n3", |
| 105 |
"name": "Amara Osei", |
| 106 |
"role": "Growth Manager", |
| 107 |
"department": "Marketing", |
| 108 |
"avatarUrl": "", |
| 109 |
"avatarId": 0, |
| 110 |
"color": "#f59e0b" |
| 111 |
}, |
| 112 |
{ |
| 113 |
"id": "n8", |
| 114 |
"parentId": "n3", |
| 115 |
"name": "Tom Nakamura", |
| 116 |
"role": "Brand Director", |
| 117 |
"department": "Marketing", |
| 118 |
"avatarUrl": "", |
| 119 |
"avatarId": 0, |
| 120 |
"color": "#ef4444" |
| 121 |
} |
| 122 |
] |
| 123 |
}, |
| 124 |
"showAvatars": { |
| 125 |
"type": "boolean", |
| 126 |
"default": true |
| 127 |
}, |
| 128 |
"showDepartment": { |
| 129 |
"type": "boolean", |
| 130 |
"default": true |
| 131 |
}, |
| 132 |
"collapseOnClick": { |
| 133 |
"type": "boolean", |
| 134 |
"default": true |
| 135 |
}, |
| 136 |
"connectorStyle": { |
| 137 |
"type": "string", |
| 138 |
"default": "elbow" |
| 139 |
}, |
| 140 |
"avatarSize": { |
| 141 |
"type": "number", |
| 142 |
"default": 56 |
| 143 |
}, |
| 144 |
"nodeRadius": { |
| 145 |
"type": "number", |
| 146 |
"default": 12 |
| 147 |
}, |
| 148 |
"connectorColor": { |
| 149 |
"type": "string", |
| 150 |
"default": "#d1d5db" |
| 151 |
}, |
| 152 |
"connectorWidth": { |
| 153 |
"type": "number", |
| 154 |
"default": 2 |
| 155 |
}, |
| 156 |
"accentColor": { |
| 157 |
"type": "string", |
| 158 |
"default": "#6c3fb5" |
| 159 |
}, |
| 160 |
"cardBg": { |
| 161 |
"type": "string", |
| 162 |
"default": "#ffffff" |
| 163 |
}, |
| 164 |
"cardBorder": { |
| 165 |
"type": "string", |
| 166 |
"default": "#e5e7eb" |
| 167 |
}, |
| 168 |
"nameColor": { |
| 169 |
"type": "string", |
| 170 |
"default": "#111827" |
| 171 |
}, |
| 172 |
"roleColor": { |
| 173 |
"type": "string", |
| 174 |
"default": "#6b7280" |
| 175 |
}, |
| 176 |
"deptColor": { |
| 177 |
"type": "string", |
| 178 |
"default": "#9ca3af" |
| 179 |
}, |
| 180 |
"titleColor": { |
| 181 |
"type": "string", |
| 182 |
"default": "#111827" |
| 183 |
}, |
| 184 |
"nameSize": { |
| 185 |
"type": "number", |
| 186 |
"default": 14 |
| 187 |
}, |
| 188 |
"roleSize": { |
| 189 |
"type": "number", |
| 190 |
"default": 12 |
| 191 |
}, |
| 192 |
"titleSize": { |
| 193 |
"type": "number", |
| 194 |
"default": 28 |
| 195 |
}, |
| 196 |
"bgColor": { |
| 197 |
"type": "string", |
| 198 |
"default": "" |
| 199 |
}, |
| 200 |
"paddingTop": { |
| 201 |
"type": "number", |
| 202 |
"default": 40 |
| 203 |
}, |
| 204 |
"paddingBottom": { |
| 205 |
"type": "number", |
| 206 |
"default": 40 |
| 207 |
}, |
| 208 |
"nameFontWeight": { |
| 209 |
"type": "string", |
| 210 |
"default": "700" |
| 211 |
}, |
| 212 |
"titleFontWeight": { |
| 213 |
"type": "string", |
| 214 |
"default": "800" |
| 215 |
}, |
| 216 |
"roleFontWeight": { |
| 217 |
"type": "string", |
| 218 |
"default": "400" |
| 219 |
}, |
| 220 |
"titleTypo": { |
| 221 |
"type": "object", |
| 222 |
"default": {} |
| 223 |
}, |
| 224 |
"nameTypo": { |
| 225 |
"type": "object", |
| 226 |
"default": {} |
| 227 |
}, |
| 228 |
"roleTypo": { |
| 229 |
"type": "object", |
| 230 |
"default": {} |
| 231 |
} |
| 232 |
} |
| 233 |
} |