{ "apiVersion": 3, "$schema": "https://schemas.wp.org/trunk/block.json", "name": "blockenberg/decision-matrix", "title": "Decision Matrix", "category": "bkbg-blog", "icon": "grid-view", "description": "Weighted criteria scoring matrix to compare options and surface the best decision with totals and a winner highlight.", "keywords": [ "decision", "matrix", "comparison", "criteria", "scoring", "weighted", "table", "evaluate", "options" ], "textdomain": "blockenberg", "editorScript": "bkbg-decision-matrix-editor", "editorStyle": "bkbg-decision-matrix-style", "style": "bkbg-decision-matrix-style", "viewScript": "bkbg-decision-matrix-frontend", "supports": { "html": false, "anchor": true, "className": true, "align": [ "wide", "full" ] }, "attributes": { "blockTitle": { "type": "string", "default": "Decision Matrix" }, "showTitle": { "type": "boolean", "default": true }, "blockSubtitle": { "type": "string", "default": "Scores are 1–10. Weighted totals determine the winner." }, "showSubtitle": { "type": "boolean", "default": true }, "options": { "type": "array", "default": [ { "name": "Option A", "scores": [ 8, 6, 9, 7 ] }, { "name": "Option B", "scores": [ 6, 9, 7, 8 ] }, { "name": "Option C", "scores": [ 9, 7, 5, 9 ] } ] }, "criteria": { "type": "array", "default": [ { "label": "Cost Efficiency", "weight": 4 }, { "label": "Time to Implement", "weight": 3 }, { "label": "User Impact", "weight": 5 }, { "label": "Scalability", "weight": 2 } ] }, "showWeights": { "type": "boolean", "default": true }, "showRawScores": { "type": "boolean", "default": true }, "showWinner": { "type": "boolean", "default": true }, "showProgressBars": { "type": "boolean", "default": false }, "scoreMax": { "type": "number", "default": 10 }, "fontSize": { "type": "number", "default": 14 }, "titleFontSize": { "type": "number", "default": 24 }, "subtitleFontSize": { "type": "number", "default": 14 }, "winnerFontSize": { "type": "number", "default": 15 }, "typoTitle": { "type": "object", "default": {} }, "typoSubtitle": { "type": "object", "default": {} }, "typoCell": { "type": "object", "default": {} }, "borderRadius": { "type": "number", "default": 10 }, "bgColor": { "type": "string", "default": "" }, "headerBg": { "type": "string", "default": "#1e293b" }, "headerColor": { "type": "string", "default": "#ffffff" }, "criteriaLabelBg": { "type": "string", "default": "#f1f5f9" }, "criteriaLabelColor": { "type": "string", "default": "#475569" }, "cellBg": { "type": "string", "default": "#ffffff" }, "cellColor": { "type": "string", "default": "#374151" }, "borderColor": { "type": "string", "default": "#e2e8f0" }, "winnerBg": { "type": "string", "default": "#eff6ff" }, "winnerColor": { "type": "string", "default": "#1d4ed8" }, "winnerBorderColor": { "type": "string", "default": "#3b82f6" }, "totalRowBg": { "type": "string", "default": "#f8fafc" }, "totalRowColor": { "type": "string", "default": "#0f172a" }, "accentColor": { "type": "string", "default": "#3b82f6" }, "titleColor": { "type": "string", "default": "#0f172a" }, "subtitleColor": { "type": "string", "default": "#64748b" } } }