Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/addon-designs

Package Overview
Dependencies
Maintainers
26
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-designs - npm Package Compare versions

Comparing version 8.0.0-next.1 to 8.0.0

dist/blocks.d.mts

135

package.json
{
"name": "@storybook/addon-designs",
"version": "8.0.0-next.1",
"version": "8.0.0",
"description": "Storybook addon for embedding your design preview in addon panel",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "esm/index.d.ts",
"keywords": [
"storybook-addon",
"design",
"figma",
"figspec",
"image",
"preview"
],
"homepage": "https://github.com/storybookjs/addon-designs",
"repository": "git@github.com:storybookjs/addon-designs.git",
"homepage": "https://github.com/storybookjs/addon-designs",
"license": "MIT",
"author": "pocka <pockawoooh@gmail.com>",
"license": "MIT",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./blocks": "./dist/blocks.mjs",
"./preset": "./dist/preset.js",
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"esm",
"cjs",
"blocks.js",
"blocks.d.ts",
"register.js",
"register-tab.js",
"preset.js"
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
],
"scripts": {
"build": "tsup",
"build:watch": "npm run build -- --watch",
"prepublishOnly": "cp ../../README.md ./ && npm run build",
"release": "npm run prepublishOnly && auto shipit",
"test": "echo 'No tests' && exit 0"
},
"dependencies": {

@@ -25,29 +47,35 @@ "@figspec/react": "^1.0.0"

"devDependencies": {
"@auto-it/released": "^11.0.1",
"@figspec/components": "^1.0.0",
"@storybook/addon-docs": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/components": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/core-events": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/manager-api": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/preview-api": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/theming": "^8.0.0-alpha.10 || ^8.0.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/webpack-env": "^1.13.9",
"auto": "^11.0.1",
"figma-js": "^1.13.0",
"@auto-it/released": "^11.1.1",
"@storybook/components": "^8.0.0",
"@storybook/core-events": "^8.0.0",
"@storybook/manager-api": "^8.0.0",
"@storybook/preview-api": "^8.0.0",
"@storybook/theming": "^8.0.0",
"@types/react": "^18.2.65",
"@types/react-dom": "^18.2.21",
"@types/webpack-env": "^1.18.4",
"auto": "^11.1.1",
"figma-js": "^1.16.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.7.3"
"tsup": "^8.0.2",
"typescript": "^5.4.2"
},
"peerDependencies": {
"@storybook/addon-docs": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/components": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/manager-api": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/preview-api": "^8.0.0-alpha.10 || ^8.0.0",
"@storybook/theming": "^8.0.0-alpha.10 || ^8.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
"@storybook/blocks": "^8.0.0",
"@storybook/components": "^8.0.0",
"@storybook/theming": "^8.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"peerDependenciesMeta": {
"@storybook/blocks": {
"optional": true
},
"@storybook/components": {
"optional": true
},
"@storybook/theming": {
"optional": true
},
"react": {

@@ -60,27 +88,24 @@ "optional": true

},
"scripts": {
"dev": "tsc --watch --preserveWatchOutput",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir cjs",
"test": "echo 'No tests' && exit 0",
"clean": "rm -r esm cjs",
"prepublishOnly": "cp ../../README.md ./ && npm run build",
"release": "npm run prepublishOnly && auto shipit"
"publishConfig": {
"access": "public"
},
"keywords": [
"storybook-addon",
"design",
"figma",
"figspec",
"image",
"preview"
],
"bundler": {
"exportEntries": [
"src/index.ts"
],
"managerEntries": [
"src/register-panel.ts",
"src/register-tab.ts"
],
"previewEntries": [
"src/blocks.tsx"
],
"nodeEntries": [
"src/preset.ts"
]
},
"storybook": {
"icon": "https://raw.githubusercontent.com/storybookjs/addon-designs/master/packages/assets/logo.png",
"icon": "https://raw.githubusercontent.com/storybookjs/addon-designs/master/packages/examples/assets/logo.png",
"displayName": "Designs"
},
"publishConfig": {
"access": "public"
}
}

@@ -1,10 +0,4 @@

module.exports = {
managerEntries(entries = [], options = {}) {
return [
...entries,
options.renderTarget === "tab"
? require.resolve("./register-tab")
: require.resolve("./register"),
];
},
};
// this file is slightly misleading. It needs to be CJS, and thus in this "type": "module" package it should be named preset.cjs
// but Storybook won't pick that filename up so we have to name it preset.js instead
module.exports = require("./dist/preset.js");
<div align="center">
<img src="./packages/assets/logo.png" width="104" alt="logo">
<img src="./packages/examples/assets/logo.png" width="104" alt="logo">
<br/>

@@ -24,3 +24,3 @@ <br/>

- Storybook@>=7.0.0
- Storybook@>=8.0.0 (Version 7 of this addon supports Storybook 7)

@@ -27,0 +27,0 @@ This addon should work well with any framework. If you find that the addon does not work, please open an issue.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc