@storybook/core
Advanced tools
Comparing version 0.0.0-pr-29640-sha-3521df0d to 0.0.0-pr-29661-sha-2eebee12
@@ -812,3 +812,3 @@ import * as _storybook_core_types from '@storybook/core/types'; | ||
*/ | ||
declare function extractProperRendererNameFromFramework(frameworkName: string): Promise<"vue" | _storybook_core_types.SupportedRenderers | null>; | ||
declare function extractProperRendererNameFromFramework(frameworkName: string): Promise<_storybook_core_types.SupportedRenderers | "vue" | null>; | ||
@@ -815,0 +815,0 @@ declare function getStorybookConfiguration(storybookScript: string, shortName: string, longName: string): string | null; |
import { ArgTypes } from '@storybook/csf'; | ||
import { Addon_TestProviderType, Addon_TestProviderState } from '@storybook/core/types'; | ||
import { Addon_TestProviderType, Addon_TestProviderState, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from '@storybook/core/types'; | ||
@@ -162,2 +162,31 @@ interface CreateNewStoryRequestPayload { | ||
declare global { | ||
var globalProjectAnnotations: NormalizedProjectAnnotations<any>; | ||
var defaultProjectAnnotations: ProjectAnnotations<any>; | ||
} | ||
type WrappedStoryRef = { | ||
__pw_type: 'jsx' | 'importRef'; | ||
}; | ||
type UnwrappedJSXStoryRef = { | ||
__pw_type: 'jsx'; | ||
type: UnwrappedImportStoryRef; | ||
}; | ||
type UnwrappedImportStoryRef = ComposedStoryFn; | ||
declare global { | ||
function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>; | ||
} | ||
interface Report<T = unknown> { | ||
id: string; | ||
version: number; | ||
result: T; | ||
status: 'failed' | 'passed' | 'warning'; | ||
} | ||
interface StoryFinishedPayload { | ||
storyId: string; | ||
status: 'error' | 'success'; | ||
reporters: Report[]; | ||
} | ||
declare enum events { | ||
@@ -182,2 +211,3 @@ CHANNEL_WS_DISCONNECT = "channelWSDisconnect", | ||
STORY_RENDERED = "storyRendered", | ||
STORY_FINISHED = "storyFinished", | ||
STORY_MISSING = "storyMissing", | ||
@@ -269,2 +299,3 @@ STORY_ERRORED = "storyErrored", | ||
declare const STORY_RENDERED: events; | ||
declare const STORY_FINISHED: events; | ||
declare const STORY_SPECIFIED: events; | ||
@@ -293,2 +324,2 @@ declare const STORY_THREW_EXCEPTION: events; | ||
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type Status, TELEMETRY_ERROR, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST, TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE, TESTING_MODULE_CRASH_REPORT, TESTING_MODULE_PROGRESS_REPORT, TESTING_MODULE_RUN_ALL_REQUEST, TESTING_MODULE_RUN_REQUEST, TESTING_MODULE_WATCH_MODE_REQUEST, TOGGLE_WHATS_NEW_NOTIFICATIONS, type TestProviderConfig, type TestProviderId, type TestProviderState, type TestProviders, type TestingModuleCancelTestRunRequestPayload, type TestingModuleCancelTestRunResponsePayload, type TestingModuleCrashReportPayload, type TestingModuleProgressReportPayload, type TestingModuleProgressReportProgress, type TestingModuleRunAllRequestPayload, type TestingModuleRunRequestPayload, type TestingModuleRunRequestStories, type TestingModuleWatchModeRequestPayload, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default }; | ||
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type Status, type StoryFinishedPayload, TELEMETRY_ERROR, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST, TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE, TESTING_MODULE_CRASH_REPORT, TESTING_MODULE_PROGRESS_REPORT, TESTING_MODULE_RUN_ALL_REQUEST, TESTING_MODULE_RUN_REQUEST, TESTING_MODULE_WATCH_MODE_REQUEST, TOGGLE_WHATS_NEW_NOTIFICATIONS, type TestProviderConfig, type TestProviderId, type TestProviderState, type TestProviders, type TestingModuleCancelTestRunRequestPayload, type TestingModuleCancelTestRunResponsePayload, type TestingModuleCrashReportPayload, type TestingModuleProgressReportPayload, type TestingModuleProgressReportProgress, type TestingModuleRunAllRequestPayload, type TestingModuleRunRequestPayload, type TestingModuleRunRequestStories, type TestingModuleWatchModeRequestPayload, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default }; |
@@ -6,7 +6,7 @@ // src/core-events/index.ts | ||
"forceReRender", E.FORCE_REMOUNT = "forceRemount", E.PRELOAD_ENTRIES = "preloadStories", E.STORY_PREPARED = "storyPrepared", E.DOCS_PREPARED = | ||
"docsPrepared", E.STORY_CHANGED = "storyChanged", E.STORY_UNCHANGED = "storyUnchanged", E.STORY_RENDERED = "storyRendered", E.STORY_MISSING = | ||
"storyMissing", E.STORY_ERRORED = "storyErrored", E.STORY_THREW_EXCEPTION = "storyThrewException", E.STORY_RENDER_PHASE_CHANGED = "storyRend\ | ||
erPhaseChanged", E.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", E.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePla\ | ||
ying", E.UPDATE_STORY_ARGS = "updateStoryArgs", E.STORY_ARGS_UPDATED = "storyArgsUpdated", E.RESET_STORY_ARGS = "resetStoryArgs", E.SET_FILTER = | ||
"setFilter", E.SET_GLOBALS = "setGlobals", E.UPDATE_GLOBALS = "updateGlobals", E.GLOBALS_UPDATED = "globalsUpdated", E.REGISTER_SUBSCRIPTION = | ||
"docsPrepared", E.STORY_CHANGED = "storyChanged", E.STORY_UNCHANGED = "storyUnchanged", E.STORY_RENDERED = "storyRendered", E.STORY_FINISHED = | ||
"storyFinished", E.STORY_MISSING = "storyMissing", E.STORY_ERRORED = "storyErrored", E.STORY_THREW_EXCEPTION = "storyThrewException", E.STORY_RENDER_PHASE_CHANGED = | ||
"storyRenderPhaseChanged", E.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", E.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErro\ | ||
rsWhilePlaying", E.UPDATE_STORY_ARGS = "updateStoryArgs", E.STORY_ARGS_UPDATED = "storyArgsUpdated", E.RESET_STORY_ARGS = "resetStoryArgs", E. | ||
SET_FILTER = "setFilter", E.SET_GLOBALS = "setGlobals", E.UPDATE_GLOBALS = "updateGlobals", E.GLOBALS_UPDATED = "globalsUpdated", E.REGISTER_SUBSCRIPTION = | ||
"registerSubscription", E.PREVIEW_KEYDOWN = "previewKeydown", E.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", E.SELECT_STORY = "sel\ | ||
@@ -31,4 +31,4 @@ ectStory", E.STORIES_COLLAPSE_ALL = "storiesCollapseAll", E.STORIES_EXPAND_ALL = "storiesExpandAll", E.DOCS_RENDERED = "docsRendered", E.SHARED_STATE_CHANGED = | ||
DOCS_RENDERED: I, | ||
FILE_COMPONENT_SEARCH_REQUEST: C, | ||
FILE_COMPONENT_SEARCH_RESPONSE: o, | ||
FILE_COMPONENT_SEARCH_REQUEST: o, | ||
FILE_COMPONENT_SEARCH_RESPONSE: C, | ||
FORCE_RE_RENDER: L, | ||
@@ -42,5 +42,5 @@ FORCE_REMOUNT: P, | ||
PREVIEW_BUILDER_PROGRESS: e, | ||
PREVIEW_KEYDOWN: W, | ||
REGISTER_SUBSCRIPTION: d, | ||
RESET_STORY_ARGS: H, | ||
PREVIEW_KEYDOWN: d, | ||
REGISTER_SUBSCRIPTION: H, | ||
RESET_STORY_ARGS: W, | ||
SELECT_STORY: l, | ||
@@ -53,8 +53,8 @@ SET_CONFIG: i, | ||
SET_STORIES: s, | ||
SHARED_STATE_CHANGED: c, | ||
SHARED_STATE_SET: g, | ||
STORIES_COLLAPSE_ALL: y, | ||
SHARED_STATE_CHANGED: y, | ||
SHARED_STATE_SET: c, | ||
STORIES_COLLAPSE_ALL: g, | ||
STORIES_EXPAND_ALL: h, | ||
STORY_ARGS_UPDATED: Q, | ||
STORY_CHANGED: f, | ||
STORY_ARGS_UPDATED: f, | ||
STORY_CHANGED: Q, | ||
STORY_ERRORED: x, | ||
@@ -66,28 +66,29 @@ STORY_INDEX_INVALIDATED: m, | ||
STORY_RENDERED: X, | ||
STORY_SPECIFIED: q, | ||
STORY_THREW_EXCEPTION: b, | ||
STORY_UNCHANGED: K, | ||
UPDATE_GLOBALS: j, | ||
UPDATE_QUERY_PARAMS: k, | ||
UPDATE_STORY_ARGS: n, | ||
REQUEST_WHATS_NEW_DATA: z, | ||
RESULT_WHATS_NEW_DATA: J, | ||
SET_WHATS_NEW_CACHE: Z, | ||
TOGGLE_WHATS_NEW_NOTIFICATIONS: $, | ||
TELEMETRY_ERROR: v, | ||
SAVE_STORY_REQUEST: EE, | ||
SAVE_STORY_RESPONSE: _E, | ||
ARGTYPES_INFO_REQUEST: RE, | ||
ARGTYPES_INFO_RESPONSE: SE, | ||
TESTING_MODULE_CRASH_REPORT: TE, | ||
TESTING_MODULE_PROGRESS_REPORT: NE, | ||
TESTING_MODULE_RUN_REQUEST: OE, | ||
TESTING_MODULE_RUN_ALL_REQUEST: AE, | ||
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: rE, | ||
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: DE, | ||
TESTING_MODULE_WATCH_MODE_REQUEST: IE | ||
STORY_FINISHED: q, | ||
STORY_SPECIFIED: b, | ||
STORY_THREW_EXCEPTION: K, | ||
STORY_UNCHANGED: j, | ||
UPDATE_GLOBALS: k, | ||
UPDATE_QUERY_PARAMS: n, | ||
UPDATE_STORY_ARGS: z, | ||
REQUEST_WHATS_NEW_DATA: J, | ||
RESULT_WHATS_NEW_DATA: Z, | ||
SET_WHATS_NEW_CACHE: $, | ||
TOGGLE_WHATS_NEW_NOTIFICATIONS: v, | ||
TELEMETRY_ERROR: EE, | ||
SAVE_STORY_REQUEST: _E, | ||
SAVE_STORY_RESPONSE: RE, | ||
ARGTYPES_INFO_REQUEST: SE, | ||
ARGTYPES_INFO_RESPONSE: TE, | ||
TESTING_MODULE_CRASH_REPORT: NE, | ||
TESTING_MODULE_PROGRESS_REPORT: OE, | ||
TESTING_MODULE_RUN_REQUEST: AE, | ||
TESTING_MODULE_RUN_ALL_REQUEST: rE, | ||
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: DE, | ||
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: IE, | ||
TESTING_MODULE_WATCH_MODE_REQUEST: oE | ||
} = _; | ||
export { | ||
RE as ARGTYPES_INFO_REQUEST, | ||
SE as ARGTYPES_INFO_RESPONSE, | ||
SE as ARGTYPES_INFO_REQUEST, | ||
TE as ARGTYPES_INFO_RESPONSE, | ||
T as CHANNEL_CREATED, | ||
@@ -101,4 +102,4 @@ S as CHANNEL_WS_DISCONNECT, | ||
I as DOCS_RENDERED, | ||
C as FILE_COMPONENT_SEARCH_REQUEST, | ||
o as FILE_COMPONENT_SEARCH_RESPONSE, | ||
o as FILE_COMPONENT_SEARCH_REQUEST, | ||
C as FILE_COMPONENT_SEARCH_RESPONSE, | ||
P as FORCE_REMOUNT, | ||
@@ -111,9 +112,9 @@ L as FORCE_RE_RENDER, | ||
e as PREVIEW_BUILDER_PROGRESS, | ||
W as PREVIEW_KEYDOWN, | ||
d as REGISTER_SUBSCRIPTION, | ||
z as REQUEST_WHATS_NEW_DATA, | ||
H as RESET_STORY_ARGS, | ||
J as RESULT_WHATS_NEW_DATA, | ||
EE as SAVE_STORY_REQUEST, | ||
_E as SAVE_STORY_RESPONSE, | ||
d as PREVIEW_KEYDOWN, | ||
H as REGISTER_SUBSCRIPTION, | ||
J as REQUEST_WHATS_NEW_DATA, | ||
W as RESET_STORY_ARGS, | ||
Z as RESULT_WHATS_NEW_DATA, | ||
_E as SAVE_STORY_REQUEST, | ||
RE as SAVE_STORY_RESPONSE, | ||
l as SELECT_STORY, | ||
@@ -126,10 +127,11 @@ i as SET_CONFIG, | ||
s as SET_STORIES, | ||
Z as SET_WHATS_NEW_CACHE, | ||
c as SHARED_STATE_CHANGED, | ||
g as SHARED_STATE_SET, | ||
y as STORIES_COLLAPSE_ALL, | ||
$ as SET_WHATS_NEW_CACHE, | ||
y as SHARED_STATE_CHANGED, | ||
c as SHARED_STATE_SET, | ||
g as STORIES_COLLAPSE_ALL, | ||
h as STORIES_EXPAND_ALL, | ||
Q as STORY_ARGS_UPDATED, | ||
f as STORY_CHANGED, | ||
f as STORY_ARGS_UPDATED, | ||
Q as STORY_CHANGED, | ||
x as STORY_ERRORED, | ||
q as STORY_FINISHED, | ||
m as STORY_INDEX_INVALIDATED, | ||
@@ -140,19 +142,19 @@ V as STORY_MISSING, | ||
B as STORY_RENDER_PHASE_CHANGED, | ||
q as STORY_SPECIFIED, | ||
b as STORY_THREW_EXCEPTION, | ||
K as STORY_UNCHANGED, | ||
v as TELEMETRY_ERROR, | ||
rE as TESTING_MODULE_CANCEL_TEST_RUN_REQUEST, | ||
DE as TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE, | ||
TE as TESTING_MODULE_CRASH_REPORT, | ||
NE as TESTING_MODULE_PROGRESS_REPORT, | ||
AE as TESTING_MODULE_RUN_ALL_REQUEST, | ||
OE as TESTING_MODULE_RUN_REQUEST, | ||
IE as TESTING_MODULE_WATCH_MODE_REQUEST, | ||
$ as TOGGLE_WHATS_NEW_NOTIFICATIONS, | ||
b as STORY_SPECIFIED, | ||
K as STORY_THREW_EXCEPTION, | ||
j as STORY_UNCHANGED, | ||
EE as TELEMETRY_ERROR, | ||
DE as TESTING_MODULE_CANCEL_TEST_RUN_REQUEST, | ||
IE as TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE, | ||
NE as TESTING_MODULE_CRASH_REPORT, | ||
OE as TESTING_MODULE_PROGRESS_REPORT, | ||
rE as TESTING_MODULE_RUN_ALL_REQUEST, | ||
AE as TESTING_MODULE_RUN_REQUEST, | ||
oE as TESTING_MODULE_WATCH_MODE_REQUEST, | ||
v as TOGGLE_WHATS_NEW_NOTIFICATIONS, | ||
Y as UNHANDLED_ERRORS_WHILE_PLAYING, | ||
j as UPDATE_GLOBALS, | ||
k as UPDATE_QUERY_PARAMS, | ||
n as UPDATE_STORY_ARGS, | ||
k as UPDATE_GLOBALS, | ||
n as UPDATE_QUERY_PARAMS, | ||
z as UPDATE_STORY_ARGS, | ||
R as default | ||
}; |
@@ -5,3 +5,3 @@ import React, { ReactNode, FC, Component, ReactElement } from 'react'; | ||
import { RouterData, NavigateOptions } from '@storybook/core/router'; | ||
import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_SidebarTopType, Addon_SidebarBottomType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_Layout, API_UI, API_PanelPositions, API_Notification, API_IframeRenderer, API_Refs, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, StoryId, API_Settings, API_LoadedRefData, API_PreparedStoryIndex, API_ViewMode, API_StatusState, API_FilterFunction, API_HashEntry, API_LeafEntry, API_StoryEntry, Args, API_IndexHash, API_StatusUpdate, API_DocsEntry, API_Versions, API_UnknownEntries, API_Version, API_OptionsData, Parameters, ArgTypes } from '@storybook/core/types'; | ||
import { Addon_Types, Addon_TypesEnum, Addon_Collection, Addon_TypesMapping, Addon_BaseType, Addon_SidebarTopType, Addon_SidebarBottomType, Addon_TestProviderType, Addon_PageType, Addon_WrapperType, Addon_Config, API_ProviderData, API_StateMerger, API_Provider, Globals, GlobalTypes, API_Layout, API_UI, API_PanelPositions, API_Notification, API_IframeRenderer, API_Refs, API_ComposedRef, API_SetRefData, API_ComposedRefUpdate, StoryId, API_Settings, API_LoadedRefData, API_PreparedStoryIndex, API_ViewMode, API_StatusState, API_FilterFunction, API_HashEntry, API_LeafEntry, API_StoryEntry, Args, API_IndexHash, API_StatusObject, API_StatusUpdate, API_DocsEntry, API_Versions, API_UnknownEntries, API_Version, API_OptionsData, Parameters, ArgTypes } from '@storybook/core/types'; | ||
export { Addon_Type as Addon, API_ComponentEntry as ComponentEntry, API_ComposedRef as ComposedRef, API_DocsEntry as DocsEntry, API_GroupEntry as GroupEntry, API_HashEntry as HashEntry, API_IndexHash as IndexHash, API_LeafEntry as LeafEntry, API_Refs as Refs, API_RootEntry as RootEntry, API_IndexHash as StoriesHash, API_StoryEntry as StoryEntry } from '@storybook/core/types'; | ||
@@ -684,2 +684,8 @@ import { ThemeVars } from '@storybook/core/theming'; | ||
/** | ||
* Returns the current status of the stories. | ||
* | ||
* @returns {API_StatusState} The current status of the stories. | ||
*/ | ||
getCurrentStoryStatus: () => Record<string, API_StatusObject>; | ||
/** | ||
* Updates the status of a collection of stories. | ||
@@ -686,0 +692,0 @@ * |
@@ -805,2 +805,3 @@ import ESM_COMPAT_Module from "node:module"; | ||
"STORY_ERRORED", | ||
"STORY_FINISHED", | ||
"STORY_INDEX_INVALIDATED", | ||
@@ -870,2 +871,3 @@ "STORY_MISSING", | ||
"STORY_ERRORED", | ||
"STORY_FINISHED", | ||
"STORY_INDEX_INVALIDATED", | ||
@@ -935,2 +937,3 @@ "STORY_MISSING", | ||
"STORY_ERRORED", | ||
"STORY_FINISHED", | ||
"STORY_INDEX_INVALIDATED", | ||
@@ -937,0 +940,0 @@ "STORY_MISSING", |
@@ -411,2 +411,13 @@ import { Channel } from '@storybook/core/channels'; | ||
interface Report<T = unknown> { | ||
id: string; | ||
version: number; | ||
result: T; | ||
status: 'failed' | 'passed' | 'warning'; | ||
} | ||
declare class ReporterAPI { | ||
reports: Report[]; | ||
addReport(report: Report): Promise<void>; | ||
} | ||
declare class StoryStore<TRenderer extends Renderer> { | ||
@@ -458,2 +469,3 @@ importFn: ModuleImportFn; | ||
userGlobals: _storybook_csf.Globals; | ||
reporting: ReporterAPI; | ||
globals: { | ||
@@ -485,2 +497,3 @@ [x: string]: any; | ||
applyBeforeEach: (context: StoryContext<TRenderer, _storybook_csf.Args>) => Promise<CleanupCallback[]>; | ||
applyAfterEach: (context: StoryContext<TRenderer, _storybook_csf.Args>) => Promise<void>; | ||
playFunction?: ((context: StoryContext<TRenderer, _storybook_csf.Args>) => void | Promise<void>) | undefined; | ||
@@ -573,2 +586,3 @@ runStep: _storybook_csf.StepRunner<TRenderer>; | ||
userGlobals: _storybook_csf.Globals; | ||
reporting: ReporterAPI; | ||
globals: { | ||
@@ -600,2 +614,3 @@ [x: string]: any; | ||
applyBeforeEach: (context: _storybook_csf.StoryContext<TRenderer, _storybook_csf.Args>) => Promise<_storybook_csf.CleanupCallback[]>; | ||
applyAfterEach: (context: _storybook_csf.StoryContext<TRenderer, _storybook_csf.Args>) => Promise<void>; | ||
playFunction?: ((context: _storybook_csf.StoryContext<TRenderer, _storybook_csf.Args>) => void | Promise<void>) | undefined; | ||
@@ -714,3 +729,3 @@ runStep: _storybook_csf.StepRunner<TRenderer>; | ||
type RenderPhase = 'preparing' | 'loading' | 'beforeEach' | 'rendering' | 'playing' | 'played' | 'completed' | 'aborted' | 'errored'; | ||
type RenderPhase = 'preparing' | 'loading' | 'beforeEach' | 'rendering' | 'playing' | 'played' | 'afterEach' | 'completed' | 'finished' | 'aborted' | 'errored'; | ||
declare class StoryRender<TRenderer extends Renderer> implements Render<TRenderer> { | ||
@@ -828,2 +843,3 @@ channel: Channel; | ||
userGlobals: Globals; | ||
reporting: ReporterAPI; | ||
globals: { | ||
@@ -855,2 +871,3 @@ [x: string]: any; | ||
applyBeforeEach: (context: _storybook_csf.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>; | ||
applyAfterEach: (context: _storybook_csf.StoryContext<TRenderer, Args>) => Promise<void>; | ||
playFunction?: ((context: _storybook_csf.StoryContext<TRenderer, Args>) => void | Promise<void>) | undefined; | ||
@@ -1027,2 +1044,2 @@ runStep: _storybook_csf.StepRunner<TRenderer>; | ||
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type SelectionStore, StoryStore, UrlStore, type View, WebView, addons, applyHooks, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, createPlaywrightTest, decorateStory, defaultDecorateStory, filterArgTypes, inferControls, makeDecorator, mockChannel, normalizeStory, prepareMeta, prepareStory, sanitizeStoryContextUpdate, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier }; | ||
export { DocsContext, HooksContext, Preview, PreviewWeb, PreviewWithSelection, type PropDescriptor, type Report, ReporterAPI, type SelectionStore, StoryStore, UrlStore, type View, WebView, addons, applyHooks, combineArgs, combineParameters, composeConfigs, composeStepRunners, composeStories, composeStory, createPlaywrightTest, decorateStory, defaultDecorateStory, filterArgTypes, inferControls, makeDecorator, mockChannel, normalizeStory, prepareMeta, prepareStory, sanitizeStoryContextUpdate, setDefaultProjectAnnotations, setProjectAnnotations, simulateDOMContentLoaded, simulatePageLoad, sortStoriesV7, useArgs, useCallback, useChannel, useEffect, useGlobals, useMemo, useParameter, useReducer, useRef, useState, useStoryContext, userOrAutoTitle, userOrAutoTitleFromSpecifier }; |
{ | ||
"name": "@storybook/core", | ||
"version": "0.0.0-pr-29640-sha-3521df0d", | ||
"version": "0.0.0-pr-29661-sha-2eebee12", | ||
"description": "Storybook framework-agnostic API", | ||
@@ -280,3 +280,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@storybook/csf": "^0.1.11", | ||
"@storybook/csf": "0.1.12--canary.110.7611f0c.0", | ||
"better-opn": "^3.0.2", | ||
@@ -283,0 +283,0 @@ "browser-assert": "^1.2.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19086128
503146
7
315
+ Added@storybook/csf@0.1.12--canary.110.7611f0c.0(transitive)
- Removed@storybook/csf@0.1.13(transitive)