| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/marquee", |
| 5 |
"title": "Marquee / Announcement Bar", |
| 6 |
"category": "blockenberg", |
| 7 |
"icon": "megaphone", |
| 8 |
"description": "Scrolling announcement bar with pause on hover and accessibility support.", |
| 9 |
"keywords": ["marquee", "announcement", "bar", "ticker", "scroll", "banner", "news"], |
| 10 |
"textdomain": "blockenberg", |
| 11 |
"editorScript": "bkbg-marquee-editor", |
| 12 |
"editorStyle": "bkbg-marquee-style", |
| 13 |
"style": "bkbg-marquee-style", |
| 14 |
"viewScript": "bkbg-marquee-frontend", |
| 15 |
"supports": { |
| 16 |
"html": false, |
| 17 |
"anchor": true, |
| 18 |
"className": true, |
| 19 |
"align": ["wide", "full"] |
| 20 |
}, |
| 21 |
"attributes": { |
| 22 |
"items": { |
| 23 |
"type": "array", |
| 24 |
"default": [ |
| 25 |
{ "text": "🎉 Welcome to our website!", "link": "", "newTab": false }, |
| 26 |
{ "text": "📢 Check out our latest updates", "link": "", "newTab": false }, |
| 27 |
{ "text": "⭐ Special offer - Limited time only!", "link": "", "newTab": false } |
| 28 |
] |
| 29 |
}, |
| 30 |
|
| 31 |
"direction": { "type": "string", "default": "left" }, |
| 32 |
"speed": { "type": "number", "default": 50 }, |
| 33 |
"durationSeconds": { "type": "number", "default": 30 }, |
| 34 |
"instanceId": { "type": "string", "default": "" }, |
| 35 |
"pauseOnHover": { "type": "boolean", "default": true }, |
| 36 |
"pauseOnClick": { "type": "boolean", "default": false }, |
| 37 |
|
| 38 |
"separator": { "type": "string", "default": "•" }, |
| 39 |
"separatorSpacing": { "type": "number", "default": 40 }, |
| 40 |
"showSeparator": { "type": "boolean", "default": true }, |
| 41 |
|
| 42 |
"backgroundColor": { "type": "string", "default": "#1e40af" }, |
| 43 |
"textColor": { "type": "string", "default": "#ffffff" }, |
| 44 |
"linkHoverColor": { "type": "string", "default": "#fbbf24" }, |
| 45 |
|
| 46 |
"paddingY": { "type": "number", "default": 12 }, |
| 47 |
"paddingX": { "type": "number", "default": 20 }, |
| 48 |
|
| 49 |
"fontSize": { "type": "number", "default": 15 }, |
| 50 |
"fontWeight": { "type": "number", "default": 500 }, |
| 51 |
"letterSpacing": { "type": "number", "default": 0 }, |
| 52 |
"textTransform": { "type": "string", "default": "none" }, |
| 53 |
|
| 54 |
"showCloseButton": { "type": "boolean", "default": false }, |
| 55 |
"closeButtonColor": { "type": "string", "default": "#ffffff" }, |
| 56 |
"closePersist": { "type": "boolean", "default": true }, |
| 57 |
"closePersistDays": { "type": "number", "default": 7 }, |
| 58 |
|
| 59 |
"sticky": { "type": "boolean", "default": false }, |
| 60 |
"stickyPosition": { "type": "string", "default": "top" }, |
| 61 |
"stickyZIndex": { "type": "number", "default": 999 }, |
| 62 |
|
| 63 |
"borderTop": { "type": "boolean", "default": false }, |
| 64 |
"borderBottom": { "type": "boolean", "default": false }, |
| 65 |
"borderColor": { "type": "string", "default": "rgba(255,255,255,0.2)" }, |
| 66 |
"borderWidth": { "type": "number", "default": 1 }, |
| 67 |
|
| 68 |
"shadow": { "type": "boolean", "default": false }, |
| 69 |
|
| 70 |
"reduceMotion": { "type": "boolean", "default": true }, |
| 71 |
|
| 72 |
"ariaLabel": { "type": "string", "default": "Announcements" } |
| 73 |
} |
| 74 |
} |
| 75 |
|