![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@storybook/types
Advanced tools
Package description
The @storybook/types package provides TypeScript definitions and utility types for Storybook, a popular tool for developing UI components in isolation. It facilitates type checking and development within the Storybook ecosystem, ensuring that components and their stories adhere to expected types.
Storybook Component Types
Defines types for Storybook stories, ensuring that the stories and their configurations adhere to the correct structure and types.
import { Story, Meta } from '@storybook/types';
export default {
title: 'Button',
component: Button
} as Meta;
export const Primary: Story = (args) => <Button {...args} />;
Primary.args = {
primary: true,
label: 'Click Me'
};
Addon Development
Provides types for developing Storybook addons, helping developers to integrate additional functionality into Storybook with type safety.
import { Addon } from '@storybook/types';
const myAddon: Addon = {
title: 'My Custom Addon',
type: 'panel',
render: ({ active, key }) => (active ? <div id={key}>Addon Content</div> : null)
};
Provides TypeScript definitions specifically for Storybook for React. It is similar to @storybook/types but focuses exclusively on React, whereas @storybook/types is more general and can be used with various frameworks.
While not exclusively a types package, it includes types and functions for developing Storybook addons. It compares to @storybook/types by also facilitating addon development but includes more comprehensive tools and utilities beyond type definitions.
Changelog
8.1.0
Storybook 8.1 is here with a tone of new features and bug fixes:
beforeEach
test hook@vitejs/plugin-react-swc
and plugins - #26837, thanks @JReinhold!providerImportSource
extension - #26868, thanks @bashmish!react-dom/server
imports breaking stories and docs - #26557, thanks @JReinhold![Object object]
displayName in some JSX components - #26566, thanks @yannbf!of
prop to Subtitle
- #22552, thanks @joaonunomota!of
prop to Title
- #23728, thanks @Sidnioulz!docs.autodocs
automigration - #27089, thanks @shilman!extends
- #27097, thanks @shilman!vite-config-file.ts
- #26375, thanks @joevaugh4n!duration
and onClick
support to Notification API and improve Notification UI - #26696, thanks @ghengeveld!UPDATE_STORY_ARGS
which was for SSv6 - #25993, thanks @tmeasday!@joshwooding/vite-plugin-react-docgen-typescript
to 0.3.1
- #26673, thanks @joshwooding!ejs
to 3.1.10
- #27054, thanks @RiuSalvi!http://
links - #26488, thanks @JReinhold!document
for preview - #24248, thanks @DylanPiercey!react-dom-shim
- #26898, thanks @Tobbe!dev
/autodocs
/test
system tags - #26634, thanks @shilman!preview.js
- #27098, thanks @shilman!package.json
- #26688, thanks @kasperpeulen!experimental-playwright
entries without type:bundler
- #27107, thanks @ndelangen!Readme
Storybook types exports only typescript types for storybook usage.
It exports typescript enums, which do have a runtime implementation. But it should not export any implementation such as classes, methods, functions or constants.
It also has no dependencies, all the types it exports are bundled in.
FAQs
Unknown package
We found that @storybook/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.