Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
brandai-storybook
Advanced tools
The Brand.ai viewer displays UI Components from a Brand.ai Design Library in Storybook.
Install:
npm install --save-dev brandai-storybook
Create a file called addons.js
in your storybook config (default: .storybook
) and add the following to addon.js
:
// import default storybook addons
import '@kadira/storybook/addons'
import register from 'brandai-storybook';
register({ dataUrl:'<brandai-data-export-url>' });
In order to obtain the url required to connect to brand.ai, you first need to navigate to Brand.ai and log in. Once you're logged in, select the design library that you want to connect to React Storybook and click the Tools and Integrations in the header.
From the tools and Integrations page select the Style Data Export application.
In the Style Data Export application click on JSON
in the left navigation menu and copy the Styles url
Note that you will need edit permissions to the design library to connect components.
To connect a component, the design library must be in edit mode
Click UI Components
in the navigation menu and click on a component to see additional information.
Copy the story URL from your storybook and paste it into the story URL field
The story URL contains a few pieces of information that we'll use to connect the design library to your storybook
Note: If you want the same Brand.ai component to be displayed for multiple stories of the same kind, you can paste a partial URL containing only the selectedKind
http://localhost:9001/?selectedKind=Button
Refresh your Storybook and you should see a Design Library tab in the Storybook panel
FAQs
Brand.ai React Storybook addon
We found that brandai-storybook 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.