Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@storybook/manager-api
Advanced tools
The @storybook/manager-api package is part of the Storybook ecosystem, which is a tool for developing UI components in isolation for React, Vue, Angular, and more. This particular package provides APIs for managing Storybook's UI and its addons, allowing developers to customize and extend the Storybook manager interface programmatically.
Addons registration
This feature allows developers to register custom addons with Storybook. The code sample demonstrates how to register an addon named 'my-addon' using the manager API.
import { addons } from '@storybook/manager-api';
addons.register('my-addon', (api) => {
// Do something with the Storybook API
});
Add panel
This feature enables the addition of custom panels to the Storybook UI. The code sample shows how to add a new panel to the Storybook interface within a registered addon.
import { addons } from '@storybook/manager-api';
addons.register('my-addon', (api) => {
addons.addPanel('my-addon/panel', {
title: 'My Panel',
render: ({ active, key }) => (
// Render your panel content here
),
});
});
This package is also part of the Storybook ecosystem and provides the foundation for creating and using addons in Storybook. It is similar to @storybook/manager-api in that it allows for the extension and customization of Storybook, but it focuses more on the addon infrastructure itself rather than the manager UI.
Another package within the Storybook ecosystem, @storybook/api is designed to interact with Storybook's internal API for tasks such as fetching stories, managing globals, and interacting with Storybook's state. It complements @storybook/manager-api by providing a more data-focused approach to interacting with Storybook, as opposed to UI customization.
7.6.0
Storybook 7.6 is here with increased performance and much more!
@storybook/core-events/preview-errors
dependency missing for Yarn PnP - #24973, thanks @JReinhold!react
and Storybook packages devDependencies
where possible - #24676, thanks @JReinhold!react
and Storybook packages devDependencies
where possible - ATTEMPT 2 - #24834, thanks @JReinhold!addon-onboarding
when checking versions - #24634, thanks @JReinhold!useStoryPrepared
hook failing with undefined
data - #22631, thanks @SpookyJelly!of
prop to Primary
block - #23849, thanks @Wilson2k!defaultProps
in Stories
block - #24506, thanks @WouterK12!store.settings.lastTrackedStoryId
- #24115, thanks @rashidshamloo!"type": "commonjs"
compatibility - #24534, thanks @ndelangen!react-docgen
to v7 - #24530, thanks @shilman!SlotDecorator
component - #24800, thanks @JReinhold!goto
, invalidate
and invalidateAll
- #24955, thanks @paoloricciuti!--test
CLI-flag - #24862, thanks @ndelangen!--test
is true
- #24799, thanks @ndelangen!@storybook/blocks
if build.test.emptyBlocks
is true
- #24650, thanks @ndelangen!FAQs
Core Storybook Manager API & Context
The npm package @storybook/manager-api receives a total of 4,815,550 weekly downloads. As such, @storybook/manager-api popularity was classified as popular.
We found that @storybook/manager-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.