
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@mentor-medier/alert-bar-block
Advanced tools
@wpmedia/alert-bar-blockThis is the alert bar block that feeds from the alert-bar-content-source-block. It will refresh every 30 seconds by default, but the content source will return cached results every two minutes. This is to not overwhelm the content API with simultaneous refreshes for any less intervals.
| Prop | Required | Type | Description |
|---|---|---|---|
| required prop | yes | ||
| optional prop | no | ||
| contentConfig example | Please specify which content sources are compatible |
This block consumes data returned from the alert-bar-content-source-block content source. The following is an example of that response.
{ _id: 'VTKOTRJXEVATHG7MELTPZ2RIBU',
type: 'collection',
version: '0.7.0',
canonical_website: 'the-sun',
content_elements:
[ { _id: '55FCWHR6SRCQ3OIJJKWPWUGTBM',
type: 'story',
version: '0.10.4',
canonical_url:
'/news/2020/01/30/august-may-feel-like-washingtons-hottest-month-but-its-not/',
headlines: [Object],
subheadlines: [Object],
description: [Object],
language: '',
label: [Object],
taxonomy: [Object],
promo_items: [Object],
distributor: [Object],
canonical_website: 'the-sun',
display_date: '2020-01-30T14:47:46.926Z',
credits: [Object],
subtype: 'right-rail-template',
websites: [Object],
publish_date: '2020-02-21T16:23:46.063Z' } ],
content_aliases: [ 'alert-bar' ],
owner: { id: 'corecomponents' },
revision: { branch: 'default', published: true },
last_updated_date: '1970-01-01T00:00:00.000Z',
created_date: '1970-01-01T00:00:00.000Z',
website: 'the-sun'
}
content_elements[0] only uses first content element. used to check whether to render headlinecontent_elements[0].websites[arcSite] Uses website_urlcontent_elements[0].headlines.basic{
content_elements: [
{
websites: {
"the post": "http://washpost.com/huge-story"
},
headlines: {
"basic": "Man Bites dog"
}
},
...
]
}
Blocks can emit events. The following is a list of events that are emitted by this block.
| Event Name | Description |
|---|---|
| eventName | Describe the event |
Include block specific instructions for event listening.
OR
This block does not emit any events.
Optional
FAQs
Fusion News Theme alert bar block
We found that @mentor-medier/alert-bar-block demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.