| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/pdf-embed", |
| 5 |
"title": "PDF Embed", |
| 6 |
"description": "Embed a PDF document in an iframe with optional download button and toolbar controls.", |
| 7 |
"category": "bkbg-media", |
| 8 |
"icon": "media-document", |
| 9 |
"keywords": [ |
| 10 |
"pdf", |
| 11 |
"embed", |
| 12 |
"document", |
| 13 |
"file", |
| 14 |
"viewer", |
| 15 |
"iframe" |
| 16 |
], |
| 17 |
"textdomain": "blockenberg", |
| 18 |
"editorScript": "bkbg-pdf-embed-editor", |
| 19 |
"editorStyle": "bkbg-pdf-embed-style", |
| 20 |
"style": "bkbg-pdf-embed-style", |
| 21 |
"viewScript": "bkbg-pdf-embed-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"pdfUrl": { |
| 33 |
"type": "string", |
| 34 |
"default": "" |
| 35 |
}, |
| 36 |
"pdfId": { |
| 37 |
"type": "number", |
| 38 |
"default": 0 |
| 39 |
}, |
| 40 |
"pdfTitle": { |
| 41 |
"type": "string", |
| 42 |
"default": "PDF Document" |
| 43 |
}, |
| 44 |
"height": { |
| 45 |
"type": "number", |
| 46 |
"default": 600 |
| 47 |
}, |
| 48 |
"width": { |
| 49 |
"type": "number", |
| 50 |
"default": 100 |
| 51 |
}, |
| 52 |
"showDownload": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"downloadLabel": { |
| 57 |
"type": "string", |
| 58 |
"default": "Download PDF" |
| 59 |
}, |
| 60 |
"showToolbar": { |
| 61 |
"type": "boolean", |
| 62 |
"default": true |
| 63 |
}, |
| 64 |
"borderRadius": { |
| 65 |
"type": "number", |
| 66 |
"default": 8 |
| 67 |
}, |
| 68 |
"borderColor": { |
| 69 |
"type": "string", |
| 70 |
"default": "#e5e7eb" |
| 71 |
}, |
| 72 |
"borderWidth": { |
| 73 |
"type": "number", |
| 74 |
"default": 1 |
| 75 |
}, |
| 76 |
"bgColor": { |
| 77 |
"type": "string", |
| 78 |
"default": "#f9fafb" |
| 79 |
}, |
| 80 |
"downloadBtnBg": { |
| 81 |
"type": "string", |
| 82 |
"default": "#2563eb" |
| 83 |
}, |
| 84 |
"downloadBtnColor": { |
| 85 |
"type": "string", |
| 86 |
"default": "#ffffff" |
| 87 |
}, |
| 88 |
"fallbackMessage": { |
| 89 |
"type": "string", |
| 90 |
"default": "Your browser does not support inline PDF preview." |
| 91 |
}, |
| 92 |
"showFallbackLink": { |
| 93 |
"type": "boolean", |
| 94 |
"default": true |
| 95 |
}, |
| 96 |
"downloadTypo": { |
| 97 |
"type": "object", |
| 98 |
"default": {} |
| 99 |
} |
| 100 |
} |
| 101 |
} |