Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
storybook-addon-aria-live
Advanced tools
Readme
Storybook addon for inspecting ARIA live region announcements
storybook-addon-aria-live
is a Storybook addon for inspecting ARIA live region announcements. Internally it is utilizing aria-live-capture
for announcement detection.
storybook-addon-aria-live
should be included in development dependencies.
npm install --dev storybook-addon-aria-live
In your .storybook/main.ts
:
const config: StorybookConfig = {
addons: ['storybook-addon-aria-live']
}
Use Storybook parameters to set global or story specific options:
In your .storybook/preview.ts
:
export const parameters = {
'aria-live': {
/** Indicates whether live regions inside `ShadowRoot`s should be tracked. Defaults to false. */
includeShadowDom: true,
},
};
Project setup is based on storybookjs/addon-kit
. See its README for instructions about tooling.
Storybook preview hooks can only be called inside decorators and story functions
This is caused by storybookjs/storybook#9893. There are some work-arounds available:
// preview.js
export const decorators = [
function withCustomDecorator(Story) {
- return <Story />;
+ return Story();
}
]
main.js
:// main.js
module.exports = {
addons: [
+ 'some-addon-using-stories-as-react-elements-instead-of-functions',
'storybook-addon-aria-live',
- 'some-addon-using-stories-as-react-elements-instead-of-functions',
],
};
FAQs
Inspect announcements of ARIA live regions
The npm package storybook-addon-aria-live receives a total of 26 weekly downloads. As such, storybook-addon-aria-live popularity was classified as not popular.
We found that storybook-addon-aria-live demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.