Socket
Socket
Sign inDemoInstall

@storybook/core-events

Package Overview
Dependencies
1
Maintainers
6
Versions
1700
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.6.0-alpha.6 to 7.6.0-alpha.7

18

dist/errors/preview-errors.d.ts

@@ -41,3 +41,19 @@ import { S as StorybookError } from '../storybook-error-32ac504c.js';

}
declare class ImplicitActionsDuringRendering extends StorybookError {
data: {
phase: string;
name: string;
deprecated: boolean;
};
readonly category = Category.PREVIEW_API;
readonly code = 2;
readonly documentation = "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function";
constructor(data: {
phase: string;
name: string;
deprecated: boolean;
});
template(): string;
}
export { Category, MissingStoryAfterHmrError };
export { Category, ImplicitActionsDuringRendering, MissingStoryAfterHmrError };

@@ -1,2 +0,2 @@

"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preview_errors_exports={};__export(preview_errors_exports,{Category:()=>Category,MissingStoryAfterHmrError:()=>MissingStoryAfterHmrError});module.exports=__toCommonJS(preview_errors_exports);var import_ts_dedent=__toESM(require("ts-dedent"));var StorybookError=class extends Error{constructor(){super(...arguments);this.data={};this.documentation=!1;this.fromStorybook=!0}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return`SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return`${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=`
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preview_errors_exports={};__export(preview_errors_exports,{Category:()=>Category,ImplicitActionsDuringRendering:()=>ImplicitActionsDuringRendering,MissingStoryAfterHmrError:()=>MissingStoryAfterHmrError});module.exports=__toCommonJS(preview_errors_exports);var import_ts_dedent=__toESM(require("ts-dedent"));var StorybookError=class extends Error{constructor(){super(...arguments);this.data={};this.documentation=!1;this.fromStorybook=!0}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return`SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return`${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=`
${this.documentation.map(doc=>` - ${doc}`).join(`

@@ -12,2 +12,13 @@ `)}`),`${this.template()}${page!=null?`

- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
- Also check the browser console and terminal for potential error messages.`}};0&&(module.exports={Category,MissingStoryAfterHmrError});
- Also check the browser console and terminal for potential error messages.`}},ImplicitActionsDuringRendering=class extends StorybookError{constructor(data){super();this.data=data;this.category="PREVIEW_API";this.code=2;this.documentation="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function"}template(){return import_ts_dedent.default`
We detected that you use an implicit action arg during ${this.data.phase} of your story.
${this.data.deprecated?`
This is deprecated and won't work in Storybook 8 anymore.
`:""}
Please provide an explicit spy to your args like this:
import { fn } from '@storybook/test';
...
args: {
${this.data.name}: fn()
}
`}};0&&(module.exports={Category,ImplicitActionsDuringRendering,MissingStoryAfterHmrError});

@@ -199,3 +199,20 @@ import { S as StorybookError } from '../storybook-error-32ac504c.js';

}
declare class NextjsSWCNotSupportedError extends StorybookError {
readonly category = Category.FRAMEWORK_NEXTJS;
readonly code = 3;
readonly documentation = "https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/README.md#manual-migration";
template(): string;
}
declare class NoMatchingExportError extends StorybookError {
data: {
error: unknown | Error;
};
readonly category = Category.CORE_SERVER;
readonly code = 4;
constructor(data: {
error: unknown | Error;
});
template(): string;
}
export { AngularLegacyBuildOptionsError, Category, ConflictingStaticDirConfigError, CouldNotEvaluateFrameworkError, CriticalPresetLoadError, GoogleFontsDownloadError, GoogleFontsLoadingError, InvalidFrameworkNameError, InvalidStoriesEntryError, MissingAngularJsonError, MissingBuilderError, MissingFrameworkFieldError, NxProjectDetectedError, WebpackCompilationError, WebpackInvocationError, WebpackMissingStatsError };
export { AngularLegacyBuildOptionsError, Category, ConflictingStaticDirConfigError, CouldNotEvaluateFrameworkError, CriticalPresetLoadError, GoogleFontsDownloadError, GoogleFontsLoadingError, InvalidFrameworkNameError, InvalidStoriesEntryError, MissingAngularJsonError, MissingBuilderError, MissingFrameworkFieldError, NextjsSWCNotSupportedError, NoMatchingExportError, NxProjectDetectedError, WebpackCompilationError, WebpackInvocationError, WebpackMissingStatsError };

@@ -1,2 +0,2 @@

"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var server_errors_exports={};__export(server_errors_exports,{AngularLegacyBuildOptionsError:()=>AngularLegacyBuildOptionsError,Category:()=>Category,ConflictingStaticDirConfigError:()=>ConflictingStaticDirConfigError,CouldNotEvaluateFrameworkError:()=>CouldNotEvaluateFrameworkError,CriticalPresetLoadError:()=>CriticalPresetLoadError,GoogleFontsDownloadError:()=>GoogleFontsDownloadError,GoogleFontsLoadingError:()=>GoogleFontsLoadingError,InvalidFrameworkNameError:()=>InvalidFrameworkNameError,InvalidStoriesEntryError:()=>InvalidStoriesEntryError,MissingAngularJsonError:()=>MissingAngularJsonError,MissingBuilderError:()=>MissingBuilderError,MissingFrameworkFieldError:()=>MissingFrameworkFieldError,NxProjectDetectedError:()=>NxProjectDetectedError,WebpackCompilationError:()=>WebpackCompilationError,WebpackInvocationError:()=>WebpackInvocationError,WebpackMissingStatsError:()=>WebpackMissingStatsError});module.exports=__toCommonJS(server_errors_exports);var import_ts_dedent=__toESM(require("ts-dedent"));var StorybookError=class extends Error{constructor(){super(...arguments);this.data={};this.documentation=!1;this.fromStorybook=!0}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return`SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return`${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=`
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var server_errors_exports={};__export(server_errors_exports,{AngularLegacyBuildOptionsError:()=>AngularLegacyBuildOptionsError,Category:()=>Category,ConflictingStaticDirConfigError:()=>ConflictingStaticDirConfigError,CouldNotEvaluateFrameworkError:()=>CouldNotEvaluateFrameworkError,CriticalPresetLoadError:()=>CriticalPresetLoadError,GoogleFontsDownloadError:()=>GoogleFontsDownloadError,GoogleFontsLoadingError:()=>GoogleFontsLoadingError,InvalidFrameworkNameError:()=>InvalidFrameworkNameError,InvalidStoriesEntryError:()=>InvalidStoriesEntryError,MissingAngularJsonError:()=>MissingAngularJsonError,MissingBuilderError:()=>MissingBuilderError,MissingFrameworkFieldError:()=>MissingFrameworkFieldError,NextjsSWCNotSupportedError:()=>NextjsSWCNotSupportedError,NoMatchingExportError:()=>NoMatchingExportError,NxProjectDetectedError:()=>NxProjectDetectedError,WebpackCompilationError:()=>WebpackCompilationError,WebpackInvocationError:()=>WebpackInvocationError,WebpackMissingStatsError:()=>WebpackMissingStatsError});module.exports=__toCommonJS(server_errors_exports);var import_ts_dedent=__toESM(require("ts-dedent"));var StorybookError=class extends Error{constructor(){super(...arguments);this.data={};this.documentation=!1;this.fromStorybook=!0}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return`SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return`${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=`
${this.documentation.map(doc=>` - ${doc}`).join(`

@@ -70,2 +70,17 @@ `)}`),`${this.template()}${page!=null?`

${this.data.error instanceof Error?this.data.error.message:""}
`}};0&&(module.exports={AngularLegacyBuildOptionsError,Category,ConflictingStaticDirConfigError,CouldNotEvaluateFrameworkError,CriticalPresetLoadError,GoogleFontsDownloadError,GoogleFontsLoadingError,InvalidFrameworkNameError,InvalidStoriesEntryError,MissingAngularJsonError,MissingBuilderError,MissingFrameworkFieldError,NxProjectDetectedError,WebpackCompilationError,WebpackInvocationError,WebpackMissingStatsError});
`}},NextjsSWCNotSupportedError=class extends StorybookError{constructor(){super(...arguments);this.category="FRAMEWORK_NEXTJS";this.code=3;this.documentation="https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/README.md#manual-migration"}template(){return import_ts_dedent.default`
You have activated the SWC mode for Next.js, but you are not using Next.js 14.0.0 or higher.
SWC is only supported in Next.js 14.0.0 and higher. Please go to your .storybook/main.<js|ts> file
and remove the { framework: { options: { builder: { useSWC: true } } } } option or upgrade to Next.js v14 or later.
`}},NoMatchingExportError=class extends StorybookError{constructor(data){super();this.data=data;this.category="CORE-SERVER";this.code=4}template(){return import_ts_dedent.default`
There was an exports mismatch error when trying to build Storybook.
Please check whether the versions of your Storybook packages match whenever possible, as this might be the cause.
Problematic example:
{ "@storybook/react": "7.5.3", "@storybook/react-vite": "7.4.5", "storybook": "7.3.0" }
Correct example:
{ "@storybook/react": "7.5.3", "@storybook/react-vite": "7.5.3", "storybook": "7.5.3" }
Please run \`npx storybook@latest doctor\` for guidance on how to fix this issue.
`}};0&&(module.exports={AngularLegacyBuildOptionsError,Category,ConflictingStaticDirConfigError,CouldNotEvaluateFrameworkError,CriticalPresetLoadError,GoogleFontsDownloadError,GoogleFontsLoadingError,InvalidFrameworkNameError,InvalidStoriesEntryError,MissingAngularJsonError,MissingBuilderError,MissingFrameworkFieldError,NextjsSWCNotSupportedError,NoMatchingExportError,NxProjectDetectedError,WebpackCompilationError,WebpackInvocationError,WebpackMissingStatsError});

6

package.json
{
"name": "@storybook/core-events",
"version": "7.6.0-alpha.6",
"version": "7.6.0-alpha.7",
"description": "Event names used in storybook core",

@@ -77,4 +77,4 @@ "keywords": [

"scripts": {
"check": "../../../scripts/prepare/check.ts",
"prep": "../../../scripts/prepare/bundle.ts"
"check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts",
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
},

@@ -81,0 +81,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc