Socket
Socket
Sign inDemoInstall

@storybook/core-events

Package Overview
Dependencies
Maintainers
0
Versions
1829
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/core-events - npm Package Compare versions

Comparing version 0.0.0-pr-27418-sha-ab9c6633 to 0.0.0-pr-27423-sha-1f1adcc7

18

dist/errors/preview-errors.d.ts

@@ -135,2 +135,18 @@ import { S as StorybookError } from '../storybook-error-32ac504c.js';

}
declare class MountMustBeDestructured extends StorybookError {
data: {
playFunction: string;
};
readonly category = Category.PREVIEW_API;
readonly code = 12;
constructor(data: {
playFunction: string;
});
template(): string;
}
declare class TestingLibraryMustBeConfigured extends StorybookError {
readonly category = Category.PREVIEW_API;
readonly code = 13;
template(): string;
}
declare class NextJsSharpError extends StorybookError {

@@ -168,2 +184,2 @@ readonly category = Category.FRAMEWORK_NEXTJS;

export { CalledExtractOnStoreError, CalledPreviewMethodBeforeInitializationError, Category, EmptyIndexError, ImplicitActionsDuringRendering, MdxFileWithNoCsfReferencesError, MissingRenderToCanvasError, MissingStoryAfterHmrError, MissingStoryFromCsfFileError, NextJsSharpError, NextjsRouterMocksNotAvailable, NoStoryMatchError, StoryIndexFetchError, StoryStoreAccessedBeforeInitializationError, UnknownArgTypesError };
export { CalledExtractOnStoreError, CalledPreviewMethodBeforeInitializationError, Category, EmptyIndexError, ImplicitActionsDuringRendering, MdxFileWithNoCsfReferencesError, MissingRenderToCanvasError, MissingStoryAfterHmrError, MissingStoryFromCsfFileError, MountMustBeDestructured, NextJsSharpError, NextjsRouterMocksNotAvailable, NoStoryMatchError, StoryIndexFetchError, StoryStoreAccessedBeforeInitializationError, TestingLibraryMustBeConfigured, UnknownArgTypesError };

@@ -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,{CalledExtractOnStoreError:()=>CalledExtractOnStoreError,CalledPreviewMethodBeforeInitializationError:()=>CalledPreviewMethodBeforeInitializationError,Category:()=>Category,EmptyIndexError:()=>EmptyIndexError,ImplicitActionsDuringRendering:()=>ImplicitActionsDuringRendering,MdxFileWithNoCsfReferencesError:()=>MdxFileWithNoCsfReferencesError,MissingRenderToCanvasError:()=>MissingRenderToCanvasError,MissingStoryAfterHmrError:()=>MissingStoryAfterHmrError,MissingStoryFromCsfFileError:()=>MissingStoryFromCsfFileError,NextJsSharpError:()=>NextJsSharpError,NextjsRouterMocksNotAvailable:()=>NextjsRouterMocksNotAvailable,NoStoryMatchError:()=>NoStoryMatchError,StoryIndexFetchError:()=>StoryIndexFetchError,StoryStoreAccessedBeforeInitializationError:()=>StoryStoreAccessedBeforeInitializationError,UnknownArgTypesError:()=>UnknownArgTypesError});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,{CalledExtractOnStoreError:()=>CalledExtractOnStoreError,CalledPreviewMethodBeforeInitializationError:()=>CalledPreviewMethodBeforeInitializationError,Category:()=>Category,EmptyIndexError:()=>EmptyIndexError,ImplicitActionsDuringRendering:()=>ImplicitActionsDuringRendering,MdxFileWithNoCsfReferencesError:()=>MdxFileWithNoCsfReferencesError,MissingRenderToCanvasError:()=>MissingRenderToCanvasError,MissingStoryAfterHmrError:()=>MissingStoryAfterHmrError,MissingStoryFromCsfFileError:()=>MissingStoryFromCsfFileError,MountMustBeDestructured:()=>MountMustBeDestructured,NextJsSharpError:()=>NextJsSharpError,NextjsRouterMocksNotAvailable:()=>NextjsRouterMocksNotAvailable,NoStoryMatchError:()=>NoStoryMatchError,StoryIndexFetchError:()=>StoryIndexFetchError,StoryStoreAccessedBeforeInitializationError:()=>StoryStoreAccessedBeforeInitializationError,TestingLibraryMustBeConfigured:()=>TestingLibraryMustBeConfigured,UnknownArgTypesError:()=>UnknownArgTypesError});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(`

@@ -71,3 +71,18 @@ `)}`),`${this.template()}${page!=null?`

It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
remove access to the store entirely`}},NextJsSharpError=class extends StorybookError{constructor(){super(...arguments);this.category="FRAMEWORK_NEXTJS";this.code=1;this.documentation="https://storybook.js.org/docs/get-started/nextjs#faq"}template(){return import_ts_dedent.default`
remove access to the store entirely`}},MountMustBeDestructured=class extends StorybookError{constructor(data){super();this.data=data;this.category="PREVIEW_API";this.code=12}template(){return import_ts_dedent.default`
To use mount in the play function, you must use object destructuring, e.g. play: ({ mount }) => {}.
Instead received:
${this.data.playFunction}
`}},TestingLibraryMustBeConfigured=class extends StorybookError{constructor(){super(...arguments);this.category="PREVIEW_API";this.code=13}template(){return import_ts_dedent.default`
You must configure testingLibraryRender to use play in portable stories.
import { render } from '@testing-library/react';
setProjectAnnotations({
testingLibraryRender: render,
});
Or configure mount yourself, see: DOCS
`}},NextJsSharpError=class extends StorybookError{constructor(){super(...arguments);this.category="FRAMEWORK_NEXTJS";this.code=1;this.documentation="https://storybook.js.org/docs/get-started/nextjs#faq"}template(){return import_ts_dedent.default`
You are importing avif images, but you don't have sharp installed.

@@ -85,2 +100,2 @@

This type is either not supported or it is a bug in the docgen generation in Storybook.
If you think this is a bug, please detail it as much as possible in the Github issue.`}};0&&(module.exports={CalledExtractOnStoreError,CalledPreviewMethodBeforeInitializationError,Category,EmptyIndexError,ImplicitActionsDuringRendering,MdxFileWithNoCsfReferencesError,MissingRenderToCanvasError,MissingStoryAfterHmrError,MissingStoryFromCsfFileError,NextJsSharpError,NextjsRouterMocksNotAvailable,NoStoryMatchError,StoryIndexFetchError,StoryStoreAccessedBeforeInitializationError,UnknownArgTypesError});
If you think this is a bug, please detail it as much as possible in the Github issue.`}};0&&(module.exports={CalledExtractOnStoreError,CalledPreviewMethodBeforeInitializationError,Category,EmptyIndexError,ImplicitActionsDuringRendering,MdxFileWithNoCsfReferencesError,MissingRenderToCanvasError,MissingStoryAfterHmrError,MissingStoryFromCsfFileError,MountMustBeDestructured,NextJsSharpError,NextjsRouterMocksNotAvailable,NoStoryMatchError,StoryIndexFetchError,StoryStoreAccessedBeforeInitializationError,TestingLibraryMustBeConfigured,UnknownArgTypesError});

4

package.json
{
"name": "@storybook/core-events",
"version": "0.0.0-pr-27418-sha-ab9c6633",
"version": "0.0.0-pr-27423-sha-1f1adcc7",
"description": "Event names used in storybook core",

@@ -81,3 +81,3 @@ "keywords": [

"dependencies": {
"@storybook/csf": "^0.1.7",
"@storybook/csf": "0.1.9--canary.91.b332918.0",
"ts-dedent": "^2.0.0"

@@ -84,0 +84,0 @@ },

Sorry, the diff of this file is not supported yet

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