| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/commit-history", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Commit History", |
| 7 |
"category": "bkbg-dev", |
| 8 |
"icon": "backup", |
| 9 |
"description": "Display a Git-style commit history timeline — perfect for changelogs, devlogs, and project updates.", |
| 10 |
"keywords": [ |
| 11 |
"commit", |
| 12 |
"git", |
| 13 |
"history", |
| 14 |
"changelog", |
| 15 |
"version", |
| 16 |
"timeline", |
| 17 |
"devlog" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-commit-history-editor", |
| 21 |
"editorStyle": "bkbg-commit-history-style", |
| 22 |
"style": "bkbg-commit-history-style", |
| 23 |
"viewScript": "bkbg-commit-history-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"repoName": { |
| 35 |
"type": "string", |
| 36 |
"default": "my-project" |
| 37 |
}, |
| 38 |
"branchName": { |
| 39 |
"type": "string", |
| 40 |
"default": "main" |
| 41 |
}, |
| 42 |
"showBranch": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"showHash": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"showAuthorInitials": { |
| 51 |
"type": "boolean", |
| 52 |
"default": true |
| 53 |
}, |
| 54 |
"showDate": { |
| 55 |
"type": "boolean", |
| 56 |
"default": true |
| 57 |
}, |
| 58 |
"showTags": { |
| 59 |
"type": "boolean", |
| 60 |
"default": true |
| 61 |
}, |
| 62 |
"commits": { |
| 63 |
"type": "array", |
| 64 |
"default": [ |
| 65 |
{ |
| 66 |
"hash": "a3f9d1e", |
| 67 |
"message": "feat: add dark mode toggle with system preference detection", |
| 68 |
"author": "Alex Chen", |
| 69 |
"date": "Feb 24, 2026", |
| 70 |
"tags": [ |
| 71 |
"v2.4.0" |
| 72 |
] |
| 73 |
}, |
| 74 |
{ |
| 75 |
"hash": "b82c7f0", |
| 76 |
"message": "fix: resolve hydration mismatch on initial page load", |
| 77 |
"author": "Maria Santos", |
| 78 |
"date": "Feb 23, 2026", |
| 79 |
"tags": [] |
| 80 |
}, |
| 81 |
{ |
| 82 |
"hash": "c5e1a3d", |
| 83 |
"message": "chore: update dependencies and bump Node to v22", |
| 84 |
"author": "Alex Chen", |
| 85 |
"date": "Feb 22, 2026", |
| 86 |
"tags": [] |
| 87 |
}, |
| 88 |
{ |
| 89 |
"hash": "d9f4b2c", |
| 90 |
"message": "feat: implement image lazy-loading with blur placeholder", |
| 91 |
"author": "Jordan Lee", |
| 92 |
"date": "Feb 21, 2026", |
| 93 |
"tags": [] |
| 94 |
}, |
| 95 |
{ |
| 96 |
"hash": "e7a0c9f", |
| 97 |
"message": "refactor: extract useMediaQuery hook into shared utilities", |
| 98 |
"author": "Maria Santos", |
| 99 |
"date": "Feb 20, 2026", |
| 100 |
"tags": [] |
| 101 |
}, |
| 102 |
{ |
| 103 |
"hash": "f2b3e8a", |
| 104 |
"message": "docs: add contributing guide and PR template", |
| 105 |
"author": "Alex Chen", |
| 106 |
"date": "Feb 19, 2026", |
| 107 |
"tags": [] |
| 108 |
}, |
| 109 |
{ |
| 110 |
"hash": "g6d5f1b", |
| 111 |
"message": "feat: add CSV export for analytics dashboard", |
| 112 |
"author": "Jordan Lee", |
| 113 |
"date": "Feb 18, 2026", |
| 114 |
"tags": [ |
| 115 |
"v2.3.0" |
| 116 |
] |
| 117 |
}, |
| 118 |
{ |
| 119 |
"hash": "h1c8a4e", |
| 120 |
"message": "fix: correct timezone offset in date formatting utility", |
| 121 |
"author": "Maria Santos", |
| 122 |
"date": "Feb 17, 2026", |
| 123 |
"tags": [] |
| 124 |
} |
| 125 |
] |
| 126 |
}, |
| 127 |
"fontSize": { |
| 128 |
"type": "number", |
| 129 |
"default": 14 |
| 130 |
}, |
| 131 |
"hashFontSize": { |
| 132 |
"type": "number", |
| 133 |
"default": 12 |
| 134 |
}, |
| 135 |
"lineHeight": { |
| 136 |
"type": "number", |
| 137 |
"default": 170 |
| 138 |
}, |
| 139 |
"borderRadius": { |
| 140 |
"type": "number", |
| 141 |
"default": 12 |
| 142 |
}, |
| 143 |
"bgColor": { |
| 144 |
"type": "string", |
| 145 |
"default": "#0f172a" |
| 146 |
}, |
| 147 |
"headerBg": { |
| 148 |
"type": "string", |
| 149 |
"default": "#1e293b" |
| 150 |
}, |
| 151 |
"borderColor": { |
| 152 |
"type": "string", |
| 153 |
"default": "#1e293b" |
| 154 |
}, |
| 155 |
"repoColor": { |
| 156 |
"type": "string", |
| 157 |
"default": "#f8fafc" |
| 158 |
}, |
| 159 |
"branchBg": { |
| 160 |
"type": "string", |
| 161 |
"default": "#166534" |
| 162 |
}, |
| 163 |
"branchColor": { |
| 164 |
"type": "string", |
| 165 |
"default": "#4ade80" |
| 166 |
}, |
| 167 |
"dotColor": { |
| 168 |
"type": "string", |
| 169 |
"default": "#3b82f6" |
| 170 |
}, |
| 171 |
"lineColor": { |
| 172 |
"type": "string", |
| 173 |
"default": "#1e3a5f" |
| 174 |
}, |
| 175 |
"hashColor": { |
| 176 |
"type": "string", |
| 177 |
"default": "#60a5fa" |
| 178 |
}, |
| 179 |
"messageColor": { |
| 180 |
"type": "string", |
| 181 |
"default": "#e2e8f0" |
| 182 |
}, |
| 183 |
"authorBg": { |
| 184 |
"type": "string", |
| 185 |
"default": "#334155" |
| 186 |
}, |
| 187 |
"authorColor": { |
| 188 |
"type": "string", |
| 189 |
"default": "#94a3b8" |
| 190 |
}, |
| 191 |
"dateColor": { |
| 192 |
"type": "string", |
| 193 |
"default": "#64748b" |
| 194 |
}, |
| 195 |
"tagBg": { |
| 196 |
"type": "string", |
| 197 |
"default": "#1e3a5f" |
| 198 |
}, |
| 199 |
"tagColor": { |
| 200 |
"type": "string", |
| 201 |
"default": "#60a5fa" |
| 202 |
}, |
| 203 |
"rowHoverBg": { |
| 204 |
"type": "string", |
| 205 |
"default": "#1e293b" |
| 206 |
}, |
| 207 |
"featColor": { |
| 208 |
"type": "string", |
| 209 |
"default": "#4ade80" |
| 210 |
}, |
| 211 |
"fixColor": { |
| 212 |
"type": "string", |
| 213 |
"default": "#f87171" |
| 214 |
}, |
| 215 |
"choreColor": { |
| 216 |
"type": "string", |
| 217 |
"default": "#94a3b8" |
| 218 |
}, |
| 219 |
"docsColor": { |
| 220 |
"type": "string", |
| 221 |
"default": "#fbbf24" |
| 222 |
}, |
| 223 |
"refactorColor": { |
| 224 |
"type": "string", |
| 225 |
"default": "#a78bfa" |
| 226 |
}, |
| 227 |
"fontWeight": { |
| 228 |
"type": "string", |
| 229 |
"default": "500" |
| 230 |
}, |
| 231 |
"typoMessage": { |
| 232 |
"type": "object", |
| 233 |
"default": {} |
| 234 |
}, |
| 235 |
"typoMeta": { |
| 236 |
"type": "object", |
| 237 |
"default": {} |
| 238 |
} |
| 239 |
} |
| 240 |
} |
| 241 |
|