@storybook/core
Advanced tools
Comparing version 0.0.0-pr-29311-sha-c4d3ed03 to 0.0.0-pr-29333-sha-c7603f3d
@@ -86,3 +86,3 @@ import * as _storybook_core_common from '@storybook/core/common'; | ||
declare function detectFrameworkPreset(packageJson?: Partial<Pick<_storybook_core_common.PackageJson, "dependencies" | "devDependencies" | "files" | "peerDependencies">>): ProjectType | null; | ||
declare function detectFrameworkPreset(packageJson?: Partial<Pick<_storybook_core_common.PackageJson, "dependencies" | "peerDependencies" | "files" | "devDependencies">>): ProjectType | null; | ||
/** | ||
@@ -137,3 +137,3 @@ * Attempts to detect which builder to use, by searching for a vite config file or webpack | ||
/** @deprecated Please use `frameworkToRenderer` from `@storybook/core-common` instead */ | ||
declare const frameworkToRenderer: Record<"react-native" | "react" | "vue3" | "angular" | "html" | "web-components" | "ember" | "svelte" | "preact" | "server" | "qwik" | "solid" | "experimental-nextjs-vite" | "html-vite" | "html-webpack5" | "nextjs" | "preact-vite" | "preact-webpack5" | "react-vite" | "react-webpack5" | "server-webpack5" | "svelte-vite" | "svelte-webpack5" | "sveltekit" | "vue3-vite" | "vue3-webpack5" | "web-components-vite" | "web-components-webpack5" | "react-rsbuild" | "vue3-rsbuild", "vue" | SupportedRenderers$1>; | ||
declare const frameworkToRenderer: Record<"angular" | "ember" | "experimental-nextjs-vite" | "html-vite" | "html-webpack5" | "nextjs" | "preact-vite" | "preact-webpack5" | "react-vite" | "react-webpack5" | "server-webpack5" | "svelte-vite" | "svelte-webpack5" | "sveltekit" | "vue3-vite" | "vue3-webpack5" | "web-components-vite" | "web-components-webpack5" | "qwik" | "solid" | "react-rsbuild" | "vue3-rsbuild" | "react" | "react-native" | "vue3" | "preact" | "svelte" | "html" | "web-components" | "server", SupportedRenderers$1 | "vue">; | ||
declare const frameworkToDefaultBuilder: Record<SupportedFrameworks, CoreBuilder | CommunityBuilder>; | ||
@@ -140,0 +140,0 @@ declare function copyTemplateFiles({ packageManager, renderer, language, destination, commonAssetsDir, }: CopyTemplateFilesOptions): Promise<void>; |
import * as _storybook_core_types from '@storybook/core/types'; | ||
import { PresetConfig, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, LoadedPreset, Presets, CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, PackageJson, CoreCommon_AddonInfo, SupportedFrameworks, SupportedRenderers, Options as Options$2, CoreCommon_StorybookInfo, Ref, StorybookConfig, StoriesEntry, NormalizedStoriesSpecifier } from '@storybook/core/types'; | ||
import { PresetConfig, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, LoadedPreset, Presets, CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, PackageJson, CoreCommon_AddonInfo, SupportedFrameworks, SupportedRenderers, Options as Options$1, CoreCommon_StorybookInfo, Ref, StorybookConfig, StoriesEntry, NormalizedStoriesSpecifier } from '@storybook/core/types'; | ||
export { PackageJson } from '@storybook/core/types'; | ||
@@ -121,47 +121,46 @@ import { WriteStream } from 'node:fs'; | ||
type HashAlgorithm = 'RSA-MD5' | 'RSA-RIPEMD160' | 'RSA-SHA1' | 'RSA-SHA1-2' | 'RSA-SHA224' | 'RSA-SHA256' | 'RSA-SHA3-224' | 'RSA-SHA3-256' | 'RSA-SHA3-384' | 'RSA-SHA3-512' | 'RSA-SHA384' | 'RSA-SHA512' | 'RSA-SHA512/224' | 'RSA-SHA512/256' | 'RSA-SM3' | 'blake2b512' | 'blake2s256' | 'id-rsassa-pkcs1-v1_5-with-sha3-224' | 'id-rsassa-pkcs1-v1_5-with-sha3-256' | 'id-rsassa-pkcs1-v1_5-with-sha3-384' | 'id-rsassa-pkcs1-v1_5-with-sha3-512' | 'md5' | 'md5-sha1' | 'md5WithRSAEncryption' | 'ripemd' | 'ripemd160' | 'ripemd160WithRSA' | 'rmd160' | 'sha1' | 'sha1WithRSAEncryption' | 'sha224' | 'sha224WithRSAEncryption' | 'sha256' | 'sha256WithRSAEncryption' | 'sha3-224' | 'sha3-256' | 'sha3-384' | 'sha3-512' | 'sha384' | 'sha384WithRSAEncryption' | 'sha512' | 'sha512-224' | 'sha512-224WithRSAEncryption' | 'sha512-256' | 'sha512-256WithRSAEncryption' | 'sha512WithRSAEncryption' | 'shake128' | 'shake256' | 'sm3' | 'sm3WithRSAEncryption' | 'ssl3-md5' | 'ssl3-sha1'; | ||
type FileSystemCacheOptions = { | ||
interface FileSystemCacheOptions { | ||
ns?: string; | ||
prefix?: string; | ||
hash_alg?: string; | ||
basePath?: string; | ||
ns?: any; | ||
ttl?: number; | ||
hash?: HashAlgorithm; | ||
extension?: string; | ||
}; | ||
declare class FileSystemCache$1 { | ||
static hashAlgorithms: HashAlgorithm[]; | ||
readonly basePath: string; | ||
readonly ns?: any; | ||
readonly extension?: string; | ||
readonly hash: HashAlgorithm; | ||
readonly ttl: number; | ||
basePathExists?: boolean; | ||
} | ||
interface CacheItem { | ||
key: string; | ||
content?: any; | ||
value?: any; | ||
} | ||
interface CacheSetOptions { | ||
ttl?: number; | ||
encoding?: BufferEncoding; | ||
} | ||
declare class FileSystemCache { | ||
private prefix; | ||
private hash_alg; | ||
private cache_dir; | ||
private ttl; | ||
constructor(options?: FileSystemCacheOptions); | ||
path(key: string): string; | ||
fileExists(key: string): Promise<boolean>; | ||
ensureBasePath(): Promise<void>; | ||
get(key: string, defaultValue?: any): Promise<any>; | ||
getSync(key: string, defaultValue?: any): any; | ||
set(key: string, value: any, ttl?: number): Promise<{ | ||
path: string; | ||
}>; | ||
setSync(key: string, value: any, ttl?: number): this; | ||
remove(key: string): Promise<void>; | ||
private generateHash; | ||
private isExpired; | ||
private parseCacheData; | ||
private parseSetData; | ||
get<T = any>(name: string, fallback?: T): Promise<T>; | ||
getSync<T>(name: string, fallback?: T): T; | ||
set<T>(name: string, data: T, orgOpts?: CacheSetOptions | number): Promise<void>; | ||
setSync<T>(name: string, data: T, orgOpts?: CacheSetOptions | number): void; | ||
setMany(items: CacheItem[], options?: CacheSetOptions): Promise<void>; | ||
setManySync(items: CacheItem[], options?: CacheSetOptions): void; | ||
remove(name: string): Promise<void>; | ||
removeSync(name: string): void; | ||
clear(): Promise<void>; | ||
save(input: ({ | ||
key: string; | ||
value: any; | ||
} | null | undefined)[]): Promise<{ | ||
paths: string[]; | ||
}>; | ||
clearSync(): void; | ||
getAll(): Promise<CacheItem[]>; | ||
load(): Promise<{ | ||
files: { | ||
path: string; | ||
value: any; | ||
}[]; | ||
files: CacheItem[]; | ||
}>; | ||
} | ||
declare function createFileSystemCache(options: FileSystemCacheOptions): FileSystemCache; | ||
declare const cache: FileSystemCache$1; | ||
declare const cache: FileSystemCache; | ||
@@ -748,3 +747,3 @@ declare global { | ||
interface Options$1 { | ||
interface Options { | ||
before: CoreCommon_AddonInfo; | ||
@@ -755,3 +754,3 @@ after: CoreCommon_AddonInfo; | ||
} | ||
declare const checkAddonOrder: ({ before, after, configFile, getConfig }: Options$1) => Promise<void>; | ||
declare const checkAddonOrder: ({ before, after, configFile, getConfig }: Options) => Promise<void>; | ||
@@ -779,6 +778,6 @@ declare function loadEnvs(options?: { | ||
*/ | ||
declare function getBuilderOptions<T extends Record<string, any>>(options: Options$2): Promise<T | Record<string, never>>; | ||
declare function getBuilderOptions<T extends Record<string, any>>(options: Options$1): Promise<T | Record<string, never>>; | ||
/** Framework can be a string or an object. This utility always returns the string name. */ | ||
declare function getFrameworkName(options: Options$2): Promise<string>; | ||
declare function getFrameworkName(options: Options$1): Promise<string>; | ||
/** | ||
@@ -801,3 +800,3 @@ * Extracts the proper framework name from the given framework field. The framework field can be the | ||
*/ | ||
declare function getRendererName(options: Options$2): Promise<string>; | ||
declare function getRendererName(options: Options$1): Promise<string>; | ||
/** | ||
@@ -833,4 +832,4 @@ * Extracts the proper renderer name from the given framework name. | ||
declare const getAutoRefs: (options: Options$2) => Promise<Record<string, Ref>>; | ||
declare function getRefs(options: Options$2): Promise<Record<string, Ref>>; | ||
declare const getAutoRefs: (options: Options$1) => Promise<Record<string, Ref>>; | ||
declare function getRefs(options: Options$1): Promise<Record<string, Ref>>; | ||
@@ -964,3 +963,3 @@ declare function globToRegexp(glob: string): RegExp; | ||
}; | ||
declare function getStoryId(data: StoryIdData, options: Options$2): Promise<{ | ||
declare function getStoryId(data: StoryIdData, options: Options$1): Promise<{ | ||
storyId: string; | ||
@@ -974,7 +973,2 @@ kind: string; | ||
declare const Cache: (options?: FileSystemCacheOptions | undefined) => FileSystemCache$1; | ||
type Options = Parameters<typeof Cache>['0']; | ||
type FileSystemCache = ReturnType<typeof Cache>; | ||
declare function createFileSystemCache(options: Options): FileSystemCache; | ||
export { type FileOptions, HandledError, type InstallationMetadata, JsPackageManager, JsPackageManagerFactory, type PackageJsonWithDepsAndDevDeps, type PackageJsonWithMaybeDeps, type PackageManagerName, type PackageMetadata, boost, builderPackages, cache, checkAddonOrder, codeLog, commandLog, commonGlobOptions, createFileSystemCache, createLogStream, extractProperFrameworkName, extractProperRendererNameFromFramework, filterPresetsConfig, findConfigFile, formatFileContent, frameworkPackages, frameworkToRenderer, getAutoRefs, getBuilderOptions, getChars, getCoercedStorybookVersion, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getFrameworkName, getInterpretedFile, getInterpretedFileWithExt, getPackageDetails, getPresets, getPreviewBodyTemplate, getPreviewHeadTemplate, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryTitle, getStorybookConfiguration, getStorybookInfo, globToRegexp, interopRequireDefault, interpolate, isCorePackage, isPreservingSymlinks, loadAllPresets, loadCustomPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, paddedLog, parseList, posix, readTemplate, removeAddon, rendererPackages, resolveAddonName, resolvePathInStorybookCache, satisfies, serverRequire, serverResolve, stringifyEnvs, stringifyProcessEnvs, stripAbsNodeModulesPath, temporaryDirectory, temporaryFile, validateConfigurationFiles, validateFrameworkName, _default as versions }; |
import { ArgTypes } from '@storybook/csf'; | ||
import { Addon_TestProviderType, Addon_TestProviderState } from '@storybook/core/types'; | ||
@@ -91,66 +90,2 @@ interface CreateNewStoryRequestPayload { | ||
type TestProviderId = Addon_TestProviderType['id']; | ||
type TestProviderConfig = Addon_TestProviderType; | ||
type TestProviderState = Addon_TestProviderState; | ||
type TestProviders = Record<TestProviderId, TestProviderConfig & TestProviderState>; | ||
type TestingModuleRunRequestStories = { | ||
id: string; | ||
name: string; | ||
}; | ||
type TestingModuleRunRequestPayload = { | ||
providerId: TestProviderId; | ||
payload: { | ||
stories: TestingModuleRunRequestStories[]; | ||
importPath: string; | ||
componentPath: string; | ||
}[]; | ||
}; | ||
type TestingModuleRunAllRequestPayload = { | ||
providerId: TestProviderId; | ||
}; | ||
type TestingModuleProgressReportPayload = { | ||
providerId: TestProviderId; | ||
status: 'success' | 'pending'; | ||
cancellable?: boolean; | ||
progress?: TestingModuleProgressReportProgress; | ||
details?: { | ||
[key: string]: any; | ||
}; | ||
} | { | ||
providerId: TestProviderId; | ||
status: 'failed'; | ||
error: { | ||
name: string; | ||
message: string; | ||
stack?: string; | ||
}; | ||
}; | ||
type TestingModuleCrashReportPayload = { | ||
providerId: TestProviderId; | ||
message: string; | ||
}; | ||
type TestingModuleProgressReportProgress = { | ||
startedAt: Date; | ||
finishedAt?: Date; | ||
numTotalTests?: number; | ||
numPassedTests?: number; | ||
numFailedTests?: number; | ||
numPendingTests?: number; | ||
percentageCompleted?: number; | ||
}; | ||
type Status = 'success' | 'failed' | 'pending'; | ||
type TestingModuleCancelTestRunRequestPayload = { | ||
providerId: TestProviderId; | ||
}; | ||
type TestingModuleCancelTestRunResponsePayload = { | ||
status: 'success'; | ||
} | { | ||
status: 'failed'; | ||
message: string; | ||
}; | ||
type TestingModuleWatchModeRequestPayload = { | ||
providerId: TestProviderId; | ||
watchMode: boolean; | ||
}; | ||
declare enum events { | ||
@@ -211,10 +146,3 @@ CHANNEL_WS_DISCONNECT = "channelWSDisconnect", | ||
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", | ||
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", | ||
TESTING_MODULE_CRASH_REPORT = "testingModuleCrashReport", | ||
TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport", | ||
TESTING_MODULE_RUN_REQUEST = "testingModuleRunRequest", | ||
TESTING_MODULE_RUN_ALL_REQUEST = "testingModuleRunAllRequest", | ||
TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest", | ||
TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE = "testingModuleCancelTestRunResponse", | ||
TESTING_MODULE_WATCH_MODE_REQUEST = "testingModuleWatchModeRequest" | ||
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse" | ||
} | ||
@@ -277,10 +205,3 @@ | ||
declare const ARGTYPES_INFO_RESPONSE: events; | ||
declare const TESTING_MODULE_CRASH_REPORT: events; | ||
declare const TESTING_MODULE_PROGRESS_REPORT: events; | ||
declare const TESTING_MODULE_RUN_REQUEST: events; | ||
declare const TESTING_MODULE_RUN_ALL_REQUEST: events; | ||
declare const TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: events; | ||
declare const TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE: events; | ||
declare const TESTING_MODULE_WATCH_MODE_REQUEST: 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_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default }; |
// src/core-events/index.ts | ||
var _ = /* @__PURE__ */ ((E) => (E.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", E.CHANNEL_CREATED = "channelCreated", E.CONFIG_ERROR = "co\ | ||
var R = /* @__PURE__ */ ((E) => (E.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", E.CHANNEL_CREATED = "channelCreated", E.CONFIG_ERROR = "co\ | ||
nfigError", E.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", E.STORY_SPECIFIED = "storySpecified", E.SET_CONFIG = "setConfig", E.SET_STORIES = | ||
@@ -18,11 +18,8 @@ "setStories", E.SET_INDEX = "setIndex", E.SET_CURRENT_STORY = "setCurrentStory", E.CURRENT_STORY_WAS_SET = "currentStoryWasSet", E.FORCE_RE_RENDER = | ||
"saveStoryResponse", E.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", E.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", E.CREATE_NEW_STORYFILE_REQUEST = | ||
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E.TESTING_MODULE_CRASH_REPORT = "testingModuleC\ | ||
rashReport", E.TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport", E.TESTING_MODULE_RUN_REQUEST = "testingModuleRunRequest", E.TESTING_MODULE_RUN_ALL_REQUEST = | ||
"testingModuleRunAllRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_REQUEST = "testingModuleCancelTestRunRequest", E.TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE = | ||
"testingModuleCancelTestRunResponse", E.TESTING_MODULE_WATCH_MODE_REQUEST = "testingModuleWatchModeRequest", E))(_ || {}), R = _, { | ||
CHANNEL_WS_DISCONNECT: S, | ||
"createNewStoryfileRequest", E.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", E))(R || {}), S = R, { | ||
CHANNEL_WS_DISCONNECT: _, | ||
CHANNEL_CREATED: T, | ||
CONFIG_ERROR: N, | ||
CONFIG_ERROR: A, | ||
CREATE_NEW_STORYFILE_REQUEST: O, | ||
CREATE_NEW_STORYFILE_RESPONSE: A, | ||
CREATE_NEW_STORYFILE_RESPONSE: N, | ||
CURRENT_STORY_WAS_SET: r, | ||
@@ -33,27 +30,27 @@ DOCS_PREPARED: D, | ||
FILE_COMPONENT_SEARCH_RESPONSE: o, | ||
FORCE_RE_RENDER: L, | ||
FORCE_REMOUNT: P, | ||
GLOBALS_UPDATED: U, | ||
NAVIGATE_URL: G, | ||
PLAY_FUNCTION_THREW_EXCEPTION: a, | ||
UNHANDLED_ERRORS_WHILE_PLAYING: Y, | ||
PRELOAD_ENTRIES: t, | ||
PREVIEW_BUILDER_PROGRESS: e, | ||
PREVIEW_KEYDOWN: W, | ||
REGISTER_SUBSCRIPTION: d, | ||
RESET_STORY_ARGS: H, | ||
SELECT_STORY: l, | ||
SET_CONFIG: i, | ||
SET_CURRENT_STORY: p, | ||
SET_FILTER: M, | ||
SET_GLOBALS: u, | ||
SET_INDEX: F, | ||
SET_STORIES: s, | ||
SHARED_STATE_CHANGED: c, | ||
FORCE_RE_RENDER: P, | ||
FORCE_REMOUNT: L, | ||
GLOBALS_UPDATED: a, | ||
NAVIGATE_URL: Y, | ||
PLAY_FUNCTION_THREW_EXCEPTION: U, | ||
UNHANDLED_ERRORS_WHILE_PLAYING: G, | ||
PRELOAD_ENTRIES: W, | ||
PREVIEW_BUILDER_PROGRESS: H, | ||
PREVIEW_KEYDOWN: d, | ||
REGISTER_SUBSCRIPTION: t, | ||
RESET_STORY_ARGS: p, | ||
SELECT_STORY: i, | ||
SET_CONFIG: l, | ||
SET_CURRENT_STORY: F, | ||
SET_FILTER: e, | ||
SET_GLOBALS: y, | ||
SET_INDEX: c, | ||
SET_STORIES: h, | ||
SHARED_STATE_CHANGED: f, | ||
SHARED_STATE_SET: g, | ||
STORIES_COLLAPSE_ALL: y, | ||
STORIES_EXPAND_ALL: h, | ||
STORY_ARGS_UPDATED: Q, | ||
STORY_CHANGED: f, | ||
STORY_ERRORED: x, | ||
STORIES_COLLAPSE_ALL: u, | ||
STORIES_EXPAND_ALL: s, | ||
STORY_ARGS_UPDATED: x, | ||
STORY_CHANGED: M, | ||
STORY_ERRORED: Q, | ||
STORY_INDEX_INVALIDATED: m, | ||
@@ -64,33 +61,26 @@ STORY_MISSING: V, | ||
STORY_RENDERED: X, | ||
STORY_SPECIFIED: q, | ||
STORY_THREW_EXCEPTION: b, | ||
STORY_SPECIFIED: b, | ||
STORY_THREW_EXCEPTION: q, | ||
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: $, | ||
UPDATE_STORY_ARGS: z, | ||
REQUEST_WHATS_NEW_DATA: J, | ||
RESULT_WHATS_NEW_DATA: Z, | ||
SET_WHATS_NEW_CACHE: $, | ||
TOGGLE_WHATS_NEW_NOTIFICATIONS: n, | ||
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 | ||
} = _; | ||
SAVE_STORY_RESPONSE: RE, | ||
ARGTYPES_INFO_REQUEST: SE, | ||
ARGTYPES_INFO_RESPONSE: _E | ||
} = R; | ||
export { | ||
RE as ARGTYPES_INFO_REQUEST, | ||
SE as ARGTYPES_INFO_RESPONSE, | ||
SE as ARGTYPES_INFO_REQUEST, | ||
_E as ARGTYPES_INFO_RESPONSE, | ||
T as CHANNEL_CREATED, | ||
S as CHANNEL_WS_DISCONNECT, | ||
N as CONFIG_ERROR, | ||
_ as CHANNEL_WS_DISCONNECT, | ||
A as CONFIG_ERROR, | ||
O as CREATE_NEW_STORYFILE_REQUEST, | ||
A as CREATE_NEW_STORYFILE_RESPONSE, | ||
N as CREATE_NEW_STORYFILE_RESPONSE, | ||
r as CURRENT_STORY_WAS_SET, | ||
@@ -101,31 +91,31 @@ D as DOCS_PREPARED, | ||
o as FILE_COMPONENT_SEARCH_RESPONSE, | ||
P as FORCE_REMOUNT, | ||
L as FORCE_RE_RENDER, | ||
U as GLOBALS_UPDATED, | ||
G as NAVIGATE_URL, | ||
a as PLAY_FUNCTION_THREW_EXCEPTION, | ||
t as PRELOAD_ENTRIES, | ||
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, | ||
L as FORCE_REMOUNT, | ||
P as FORCE_RE_RENDER, | ||
a as GLOBALS_UPDATED, | ||
Y as NAVIGATE_URL, | ||
U as PLAY_FUNCTION_THREW_EXCEPTION, | ||
W as PRELOAD_ENTRIES, | ||
H as PREVIEW_BUILDER_PROGRESS, | ||
d as PREVIEW_KEYDOWN, | ||
t as REGISTER_SUBSCRIPTION, | ||
J as REQUEST_WHATS_NEW_DATA, | ||
p as RESET_STORY_ARGS, | ||
Z as RESULT_WHATS_NEW_DATA, | ||
EE as SAVE_STORY_REQUEST, | ||
_E as SAVE_STORY_RESPONSE, | ||
l as SELECT_STORY, | ||
i as SET_CONFIG, | ||
p as SET_CURRENT_STORY, | ||
M as SET_FILTER, | ||
u as SET_GLOBALS, | ||
F as SET_INDEX, | ||
s as SET_STORIES, | ||
Z as SET_WHATS_NEW_CACHE, | ||
c as SHARED_STATE_CHANGED, | ||
RE as SAVE_STORY_RESPONSE, | ||
i as SELECT_STORY, | ||
l as SET_CONFIG, | ||
F as SET_CURRENT_STORY, | ||
e as SET_FILTER, | ||
y as SET_GLOBALS, | ||
c as SET_INDEX, | ||
h as SET_STORIES, | ||
$ as SET_WHATS_NEW_CACHE, | ||
f as SHARED_STATE_CHANGED, | ||
g as SHARED_STATE_SET, | ||
y as STORIES_COLLAPSE_ALL, | ||
h as STORIES_EXPAND_ALL, | ||
Q as STORY_ARGS_UPDATED, | ||
f as STORY_CHANGED, | ||
x as STORY_ERRORED, | ||
u as STORIES_COLLAPSE_ALL, | ||
s as STORIES_EXPAND_ALL, | ||
x as STORY_ARGS_UPDATED, | ||
M as STORY_CHANGED, | ||
Q as STORY_ERRORED, | ||
m as STORY_INDEX_INVALIDATED, | ||
@@ -136,19 +126,12 @@ V as STORY_MISSING, | ||
B as STORY_RENDER_PHASE_CHANGED, | ||
q as STORY_SPECIFIED, | ||
b as STORY_THREW_EXCEPTION, | ||
b as STORY_SPECIFIED, | ||
q 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, | ||
Y as UNHANDLED_ERRORS_WHILE_PLAYING, | ||
n as TOGGLE_WHATS_NEW_NOTIFICATIONS, | ||
G as UNHANDLED_ERRORS_WHILE_PLAYING, | ||
j as UPDATE_GLOBALS, | ||
k as UPDATE_QUERY_PARAMS, | ||
n as UPDATE_STORY_ARGS, | ||
R as default | ||
z as UPDATE_STORY_ARGS, | ||
S as default | ||
}; |
// ../node_modules/@storybook/global/dist/index.mjs | ||
var n = (() => { | ||
var l = (() => { | ||
let e; | ||
@@ -9,19 +9,19 @@ return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ? | ||
// src/core-server/presets/common-manager.ts | ||
import { addons as d } from "@storybook/core/manager-api"; | ||
var s = "static-filter"; | ||
d.register(s, (e) => { | ||
let i = Object.entries(n.TAGS_OPTIONS ?? {}).reduce( | ||
import { addons as r } from "@storybook/core/manager-api"; | ||
var a = "tag-filters", d = "static-filter"; | ||
r.register(a, (e) => { | ||
let i = Object.entries(l.TAGS_OPTIONS ?? {}).reduce( | ||
(t, o) => { | ||
let [l, r] = o; | ||
return r.excludeFromSidebar && (t[l] = !0), t; | ||
let [s, n] = o; | ||
return n.excludeFromSidebar && (t[s] = !0), t; | ||
}, | ||
{} | ||
); | ||
e.experimental_setFilter(s, (t) => { | ||
e.experimental_setFilter(d, (t) => { | ||
let o = t.tags ?? []; | ||
return ( | ||
// we can filter out the primary story, but we still want to show autodocs | ||
(o.includes("dev") || t.type === "docs") && o.filter((l) => i[l]).length === 0 | ||
(o.includes("dev") || t.type === "docs") && o.filter((s) => i[s]).length === 0 | ||
); | ||
}); | ||
}); |
@@ -99,4 +99,4 @@ var De = Object.defineProperty; | ||
try { | ||
let u = t.split("|").map((m) => JSON.parse(m)); | ||
return { ...i, name: "enum", value: u }; | ||
let l = t.split("|").map((m) => JSON.parse(m)); | ||
return { ...i, name: "enum", value: l }; | ||
} catch { | ||
@@ -271,8 +271,8 @@ } | ||
p] = y(p)), c) { | ||
let u = p.trimRight(); | ||
a.end = p.slice(u.length - t.end.length), p = u.slice(0, -t.end.length); | ||
let l = p.trimRight(); | ||
a.end = p.slice(l.length - t.end.length), p = l.slice(0, -t.end.length); | ||
} | ||
if (a.description = p, r.push({ number: n, source: i, tokens: a }), n++, c) { | ||
let u = r.slice(); | ||
return r = null, u; | ||
let l = r.slice(); | ||
return r = null, l; | ||
} | ||
@@ -317,9 +317,9 @@ return null; | ||
for (let [a, { tokens: c }] of r.source.entries()) { | ||
let u = ""; | ||
let l = ""; | ||
if (a === 0 && c.description[0] !== "{") | ||
return r; | ||
for (let m of c.description) | ||
if (m === "{" && n++, m === "}" && n--, u += m, n === 0) | ||
if (m === "{" && n++, m === "}" && n--, l += m, n === 0) | ||
break; | ||
if (s.push([c, u]), n === 0) | ||
if (s.push([c, l]), n === 0) | ||
break; | ||
@@ -335,5 +335,5 @@ } | ||
let i = [], p = s[0][0].postDelimiter.length; | ||
for (let [a, [c, u]] of s.entries()) | ||
c.type = u, a > 0 && (c.type = c.postDelimiter.slice(p) + u, c.postDelimiter = c.postDelimiter.slice(0, p)), [c.postType, c.description] = | ||
y(c.description.slice(u.length)), i.push(c.type); | ||
for (let [a, [c, l]] of s.entries()) | ||
c.type = l, a > 0 && (c.type = c.postDelimiter.slice(p) + l, c.postDelimiter = c.postDelimiter.slice(0, p)), [c.postType, c.description] = | ||
y(c.description.slice(l.length)), i.push(c.type); | ||
return i[0] = i[0].slice(1), i[i.length - 1] = i[i.length - 1].slice(0, -1), r.type = t(i), r; | ||
@@ -371,3 +371,3 @@ }; | ||
}), t; | ||
let u = p; | ||
let l = p; | ||
if (p[0] === "[" && p[p.length - 1] === "]") { | ||
@@ -398,3 +398,3 @@ a = !0, p = p.slice(1, -1); | ||
} | ||
return t.optional = a, t.name = p, r.name = u, c !== void 0 && (t.default = c), [r.postName, r.description] = y(n.slice(r.name.length)), | ||
return t.optional = a, t.name = p, r.name = l, c !== void 0 && (t.default = c), [r.postName, r.description] = y(n.slice(r.name.length)), | ||
t; | ||
@@ -442,5 +442,5 @@ }; | ||
let i = N({ startLine: e, markers: n }), p = J({ fence: t }), a = R({ tokenizers: s }), c = A(r); | ||
return function(u) { | ||
return function(l) { | ||
let m = []; | ||
for (let ge of K(u)) { | ||
for (let ge of K(l)) { | ||
let E = i(ge); | ||
@@ -497,3 +497,3 @@ if (E === null) | ||
o(H, "parse"); | ||
var lo = C(); | ||
var uo = C(); | ||
@@ -651,6 +651,6 @@ // src/docs-tools/argTypes/jsdocParser.ts | ||
o(oe, "isTooLongForDefaultValueSummary"); | ||
function l(e, t) { | ||
function u(e, t) { | ||
return e === t ? { summary: e } : { summary: e, detail: t }; | ||
} | ||
o(l, "createSummaryValue"); | ||
o(u, "createSummaryValue"); | ||
var Po = /* @__PURE__ */ o((e) => e.replace(/\\r\\n/g, "\\n"), "normalizeNewlines"); | ||
@@ -663,3 +663,3 @@ | ||
if (!T(r)) | ||
return oe(r) ? l(t?.name, r) : l(r); | ||
return oe(r) ? u(t?.name, r) : u(r); | ||
} | ||
@@ -676,11 +676,11 @@ return null; | ||
function Ze({ name: e, raw: t, elements: r }) { | ||
return r != null ? l(r.map(se).join(" | ")) : t != null ? l(t.replace(/^\|\s*/, "")) : l(e); | ||
return r != null ? u(r.map(se).join(" | ")) : t != null ? u(t.replace(/^\|\s*/, "")) : u(e); | ||
} | ||
o(Ze, "generateUnion"); | ||
function et({ type: e, raw: t }) { | ||
return t != null ? l(t) : l(e); | ||
return t != null ? u(t) : u(e); | ||
} | ||
o(et, "generateFuncSignature"); | ||
function tt({ type: e, raw: t }) { | ||
return t != null ? B(t) ? l(e, t) : l(t) : l(e); | ||
return t != null ? B(t) ? u(e, t) : u(t) : u(e); | ||
} | ||
@@ -694,3 +694,3 @@ o(tt, "generateObjectSignature"); | ||
function ot({ name: e, raw: t }) { | ||
return t != null ? B(t) ? l(e, t) : l(t) : l(e); | ||
return t != null ? B(t) ? u(e, t) : u(t) : u(e); | ||
} | ||
@@ -729,3 +729,3 @@ o(ot, "generateDefault"); | ||
if (!T(t)) | ||
return l(t); | ||
return u(t); | ||
} | ||
@@ -741,3 +741,3 @@ return null; | ||
let r = e.name; | ||
return t || (r = r.replace(" | undefined", "")), l( | ||
return t || (r = r.replace(" | undefined", "")), u( | ||
["Array", "Record", "signature"].includes(e.name) ? e.raw : r | ||
@@ -749,3 +749,3 @@ ); | ||
// src/docs-tools/argTypes/docgen/typeScript/createPropDef.ts | ||
var le = /* @__PURE__ */ o((e, t) => { | ||
var ue = /* @__PURE__ */ o((e, t) => { | ||
let { description: r, required: n } = t; | ||
@@ -763,3 +763,3 @@ return { | ||
function nt(e) { | ||
return e != null ? l(e.name) : null; | ||
return e != null ? u(e.name) : null; | ||
} | ||
@@ -782,3 +782,3 @@ o(nt, "createType"); | ||
if (!T(r)) | ||
return st(e) && it(t) ? l(JSON.stringify(r)) : l(r); | ||
return st(e) && it(t) ? u(JSON.stringify(r)) : u(r); | ||
} | ||
@@ -788,3 +788,3 @@ return null; | ||
o(pt, "createDefaultValue"); | ||
function ue(e, t, r) { | ||
function le(e, t, r) { | ||
let { description: n, required: s, defaultValue: i } = r; | ||
@@ -799,3 +799,3 @@ return { | ||
} | ||
o(ue, "createBasicPropDef"); | ||
o(le, "createBasicPropDef"); | ||
function w(e, t) { | ||
@@ -820,12 +820,12 @@ if (t?.includesJsDoc) { | ||
var at = /* @__PURE__ */ o((e, t, r) => { | ||
let n = ue(e, t.type, t); | ||
let n = le(e, t.type, t); | ||
return n.sbType = b(t), w(n, r); | ||
}, "javaScriptFactory"), ct = /* @__PURE__ */ o((e, t, r) => { | ||
let n = le(e, t); | ||
let n = ue(e, t); | ||
return n.sbType = b(t), w(n, r); | ||
}, "tsFactory"), lt = /* @__PURE__ */ o((e, t, r) => { | ||
}, "tsFactory"), ut = /* @__PURE__ */ o((e, t, r) => { | ||
let n = pe(e, t); | ||
return n.sbType = b(t), w(n, r); | ||
}, "flowFactory"), ut = /* @__PURE__ */ o((e, t, r) => { | ||
let n = ue(e, { name: "unknown" }, t); | ||
}, "flowFactory"), lt = /* @__PURE__ */ o((e, t, r) => { | ||
let n = le(e, { name: "unknown" }, t); | ||
return w(n, r); | ||
@@ -839,5 +839,5 @@ }, "unknownFactory"), I = /* @__PURE__ */ o((e) => { | ||
case "Flow": | ||
return ut; | ||
default: | ||
return lt; | ||
default: | ||
return ut; | ||
} | ||
@@ -913,3 +913,3 @@ }, "getPropDefFactory"); | ||
b as convert, | ||
l as createSummaryValue, | ||
u as createSummaryValue, | ||
cn as enhanceArgTypes, | ||
@@ -916,0 +916,0 @@ nn as extractComponentDescription, |
@@ -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_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'; | ||
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'; | ||
@@ -26,3 +26,3 @@ import { ThemeVars } from '@storybook/core/theming'; | ||
setChannel: (channel: Channel) => void; | ||
getElements<T extends Addon_Types | Addon_TypesEnum.experimental_PAGE | Addon_TypesEnum.experimental_SIDEBAR_BOTTOM | Addon_TypesEnum.experimental_SIDEBAR_TOP | Addon_TypesEnum.experimental_TEST_PROVIDER>(type: T): Addon_Collection<Addon_TypesMapping[T]> | any; | ||
getElements<T extends Addon_Types | Addon_TypesEnum.experimental_PAGE | Addon_TypesEnum.experimental_SIDEBAR_BOTTOM | Addon_TypesEnum.experimental_SIDEBAR_TOP>(type: T): Addon_Collection<Addon_TypesMapping[T]> | any; | ||
/** | ||
@@ -35,3 +35,3 @@ * Adds an addon to the addon store. | ||
*/ | ||
add(id: string, addon: Addon_BaseType | Omit<Addon_SidebarTopType, 'id'> | Omit<Addon_SidebarBottomType, 'id'> | Omit<Addon_TestProviderType, 'id'> | Omit<Addon_PageType, 'id'> | Omit<Addon_WrapperType, 'id'>): void; | ||
add(id: string, addon: Addon_BaseType | Omit<Addon_SidebarTopType, 'id'> | Omit<Addon_SidebarBottomType, 'id'> | Omit<Addon_PageType, 'id'> | Omit<Addon_WrapperType, 'id'>): void; | ||
setConfig: (value: Addon_Config) => void; | ||
@@ -758,5 +758,6 @@ getConfig: () => Addon_Config; | ||
* @param {QueryParams} input - An object containing the query parameters to set. | ||
* @param {NavigateOptions} options - Options for the navigation. | ||
* @returns {void} | ||
*/ | ||
applyQueryParams: (input: QueryParams) => void; | ||
applyQueryParams: (input: QueryParams, options?: NavigateOptions) => void; | ||
} | ||
@@ -763,0 +764,0 @@ |
@@ -221,5 +221,3 @@ import ESM_COMPAT_Module from "node:module"; | ||
"PinIcon", | ||
"PlayAllHollowIcon", | ||
"PlayBackIcon", | ||
"PlayHollowIcon", | ||
"PlayIcon", | ||
@@ -245,3 +243,2 @@ "PlayNextIcon", | ||
"RulerIcon", | ||
"SaveIcon", | ||
"SearchIcon", | ||
@@ -264,3 +261,2 @@ "ShareAltIcon", | ||
"StickerIcon", | ||
"StopAltHollowIcon", | ||
"StopAltIcon", | ||
@@ -817,9 +813,2 @@ "StopIcon", | ||
"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", | ||
@@ -882,9 +871,2 @@ "UNHANDLED_ERRORS_WHILE_PLAYING", | ||
"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", | ||
@@ -947,9 +929,2 @@ "UNHANDLED_ERRORS_WHILE_PLAYING", | ||
"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", | ||
@@ -956,0 +931,0 @@ "UNHANDLED_ERRORS_WHILE_PLAYING", |
@@ -20,3 +20,3 @@ var $t = Object.create; | ||
}; | ||
var Me = (e, t, r) => (r = e != null ? $t(Jt(e)) : {}, Yt( | ||
var Ie = (e, t, r) => (r = e != null ? $t(Jt(e)) : {}, Yt( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
@@ -842,10 +842,10 @@ // file that has been converted to a CommonJS file using a Babel- | ||
// ../node_modules/picoquery/lib/parse.js | ||
var vt = V((I) => { | ||
var vt = V((M) => { | ||
"use strict"; | ||
var pr = I && I.__importDefault || function(e) { | ||
var pr = M && M.__importDefault || function(e) { | ||
return e && e.__esModule ? e : { default: e }; | ||
}; | ||
Object.defineProperty(I, "__esModule", { value: !0 }); | ||
I.numberValueDeserializer = I.numberKeyDeserializer = void 0; | ||
I.parse = mr; | ||
Object.defineProperty(M, "__esModule", { value: !0 }); | ||
M.numberValueDeserializer = M.numberKeyDeserializer = void 0; | ||
M.parse = mr; | ||
var se = Ne(), F = ae(), mt = pr(dt()), hr = /* @__PURE__ */ a((e) => { | ||
@@ -855,3 +855,3 @@ let t = Number(e); | ||
}, "numberKeyDeserializer"); | ||
I.numberKeyDeserializer = hr; | ||
M.numberKeyDeserializer = hr; | ||
var dr = /* @__PURE__ */ a((e) => { | ||
@@ -861,3 +861,3 @@ let t = Number(e); | ||
}, "numberValueDeserializer"); | ||
I.numberValueDeserializer = dr; | ||
M.numberValueDeserializer = dr; | ||
var gt = /\+/g, yt = /* @__PURE__ */ a(function() { | ||
@@ -967,3 +967,3 @@ }, "Empty"); | ||
// ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs | ||
var Ie = "[object RegExp]", Ve = "[object String]", Be = "[object Number]", ze = "[object Boolean]", ve = "[object Arguments]", We = "[objec\ | ||
var Me = "[object RegExp]", Ve = "[object String]", Be = "[object Number]", ze = "[object Boolean]", ve = "[object Arguments]", We = "[objec\ | ||
t Symbol]", Fe = "[object Date]", qe = "[object Map]", Ue = "[object Set]", $e = "[object Array]", He = "[object Function]", Ke = "[object A\ | ||
@@ -1001,8 +1001,8 @@ rrayBuffer]", oe = "[object Object]", Je = "[object Error]", Qe = "[object DataView]", Ye = "[object Uint8Array]", Xe = "[object Uint8Clampe\ | ||
case "object": | ||
return M(e, t); | ||
return I(e, t); | ||
} | ||
return M(e, t); | ||
return I(e, t); | ||
} | ||
a(Oe, "isEqual"); | ||
function M(e, t, r) { | ||
function I(e, t, r) { | ||
if (Object.is(e, t)) | ||
@@ -1024,3 +1024,3 @@ return !0; | ||
return Object.is(e.valueOf(), t.valueOf()); | ||
case Ie: | ||
case Me: | ||
return e.source === t.source && e.flags === t.flags; | ||
@@ -1041,3 +1041,3 @@ case He: | ||
for (let [s, l] of e.entries()) | ||
if (!t.has(s) || !M(l, t.get(s), r)) | ||
if (!t.has(s) || !I(l, t.get(s), r)) | ||
return !1; | ||
@@ -1051,3 +1051,3 @@ return !0; | ||
for (let f = 0; f < s.length; f++) { | ||
let u = s[f], p = l.findIndex((h) => M(u, h, r)); | ||
let u = s[f], p = l.findIndex((h) => I(u, h, r)); | ||
if (p === -1) | ||
@@ -1074,3 +1074,3 @@ return !1; | ||
for (let s = 0; s < e.length; s++) | ||
if (!M(e[s], t[s], r)) | ||
if (!I(e[s], t[s], r)) | ||
return !1; | ||
@@ -1080,9 +1080,9 @@ return !0; | ||
case Ke: | ||
return e.byteLength !== t.byteLength ? !1 : M(new Uint8Array(e), new Uint8Array(t), r); | ||
return e.byteLength !== t.byteLength ? !1 : I(new Uint8Array(e), new Uint8Array(t), r); | ||
case Qe: | ||
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : M(e.buffer, t.buffer, r); | ||
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : I(e.buffer, t.buffer, r); | ||
case Je: | ||
return e.name === t.name && e.message === t.message; | ||
case oe: { | ||
if (!(M(e.constructor, t.constructor, r) || k(e) && k(t))) | ||
if (!(I(e.constructor, t.constructor, r) || k(e) && k(t))) | ||
return !1; | ||
@@ -1097,3 +1097,3 @@ let l = [...Object.keys(e), ...xe(e)], f = [...Object.keys(t), ...xe(t)]; | ||
let m = t[p]; | ||
if (!M(h, m, r)) | ||
if (!I(h, m, r)) | ||
return !1; | ||
@@ -1110,6 +1110,6 @@ } | ||
} | ||
a(M, "areObjectsEqual"); | ||
a(I, "areObjectsEqual"); | ||
// src/router/utils.ts | ||
var ue = Me(lt(), 1), J = Me(bt(), 1); | ||
var ue = Ie(lt(), 1), J = Ie(bt(), 1); | ||
@@ -1512,3 +1512,3 @@ // ../node_modules/ts-dedent/esm/index.js | ||
Z() && pe(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."); | ||
let s = Ir(t), l = Te(() => ({ | ||
let s = Mr(t), l = Te(() => ({ | ||
basename: s, | ||
@@ -1526,3 +1526,3 @@ navigator: i, | ||
} = n, g = Te(() => { | ||
let d = Mr(f, s); | ||
let d = Ir(f, s); | ||
return d == null ? null : { | ||
@@ -1611,3 +1611,3 @@ pathname: d, | ||
} | ||
let f = It(s, JSON.parse(o), n); | ||
let f = Mt(s, JSON.parse(o), n); | ||
e !== "/" && (f.pathname = Vt([e, f.pathname])), (l.replace ? t.replace : t.push)(f, l.state); | ||
@@ -1623,6 +1623,6 @@ }, [e, t, o, n]); | ||
} = z(), n = JSON.stringify(t.map((o) => o.pathnameBase)); | ||
return Te(() => It(e, JSON.parse(n), r), [e, n, r]); | ||
return Te(() => Mt(e, JSON.parse(n), r), [e, n, r]); | ||
} | ||
a(te, "useResolvedPath"); | ||
function Mt(e, t) { | ||
function It(e, t) { | ||
t === void 0 && (t = "/"); | ||
@@ -1640,3 +1640,3 @@ let { | ||
} | ||
a(Mt, "resolvePath"); | ||
a(It, "resolvePath"); | ||
function Cr(e, t) { | ||
@@ -1649,3 +1649,3 @@ let r = t.replace(/\/+$/, "").split("/"); | ||
a(Cr, "resolvePathname"); | ||
function It(e, t, r) { | ||
function Mt(e, t, r) { | ||
let n = typeof e == "string" ? U(e) : e, o = e === "" || n.pathname === "" ? "/" : n.pathname, i; | ||
@@ -1664,6 +1664,6 @@ if (o == null) | ||
} | ||
let c = Mt(n, i); | ||
let c = It(n, i); | ||
return o && o !== "/" && o.endsWith("/") && !c.pathname.endsWith("/") && (c.pathname += "/"), c; | ||
} | ||
a(It, "resolveTo"); | ||
a(Mt, "resolveTo"); | ||
function kr(e) { | ||
@@ -1673,3 +1673,3 @@ return e === "" || e.pathname === "" ? "/" : typeof e == "string" ? U(e).pathname : e.pathname; | ||
a(kr, "getToPathname"); | ||
function Mr(e, t) { | ||
function Ir(e, t) { | ||
if (t === "/") return e; | ||
@@ -1681,4 +1681,4 @@ if (!e.toLowerCase().startsWith(t.toLowerCase())) | ||
} | ||
a(Mr, "stripBasename"); | ||
var Vt = /* @__PURE__ */ a((e) => e.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Ir = /* @__PURE__ */ a((e) => e.replace(/\/+$/, "").replace( | ||
a(Ir, "stripBasename"); | ||
var Vt = /* @__PURE__ */ a((e) => e.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Mr = /* @__PURE__ */ a((e) => e.replace(/\/+$/, "").replace( | ||
/^\/*/, "/"), "normalizePathname"), Vr = /* @__PURE__ */ a((e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, "normalizeSearch"), | ||
@@ -1685,0 +1685,0 @@ Br = /* @__PURE__ */ a((e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, "normalizeHash"); |
// src/types/modules/addons.ts | ||
var r = /* @__PURE__ */ ((e) => (e.TAB = "tab", e.PANEL = "panel", e.TOOL = "tool", e.TOOLEXTRA = "toolextra", e.PREVIEW = "preview", e.experimental_PAGE = | ||
"page", e.experimental_SIDEBAR_BOTTOM = "sidebar-bottom", e.experimental_SIDEBAR_TOP = "sidebar-top", e.experimental_TEST_PROVIDER = "test-p\ | ||
rovider", e))(r || {}); | ||
"page", e.experimental_SIDEBAR_BOTTOM = "sidebar-bottom", e.experimental_SIDEBAR_TOP = "sidebar-top", e))(r || {}); | ||
export { | ||
r as Addon_TypesEnum | ||
}; |
{ | ||
"name": "@storybook/core", | ||
"version": "0.0.0-pr-29311-sha-c4d3ed03", | ||
"version": "0.0.0-pr-29333-sha-c7603f3d", | ||
"description": "Storybook framework-agnostic API", | ||
@@ -281,3 +281,2 @@ "keywords": [ | ||
"@storybook/csf": "^0.1.11", | ||
"@types/express": "^4.17.21", | ||
"better-opn": "^3.0.2", | ||
@@ -287,3 +286,2 @@ "browser-assert": "^1.2.1", | ||
"esbuild-register": "^3.5.0", | ||
"express": "^4.19.2", | ||
"jsdoc-type-pratt-parser": "^4.0.0", | ||
@@ -312,2 +310,3 @@ "process": "^0.11.10", | ||
"@ndelangen/get-tarball": "^3.0.7", | ||
"@polka/compression": "^1.0.0-next.28", | ||
"@popperjs/core": "^2.6.0", | ||
@@ -319,6 +318,5 @@ "@radix-ui/react-dialog": "^1.0.5", | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/icons": "^1.2.12", | ||
"@storybook/icons": "^1.2.10", | ||
"@tanstack/react-virtual": "^3.3.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/compression": "^1.7.0", | ||
"@types/cross-spawn": "^6.0.2", | ||
@@ -353,3 +351,2 @@ "@types/detect-port": "^1.3.0", | ||
"comment-parser": "^1.4.1", | ||
"compression": "^1.7.4", | ||
"copy-to-clipboard": "^3.3.1", | ||
@@ -366,10 +363,8 @@ "cross-spawn": "^7.0.3", | ||
"ejs": "^3.1.10", | ||
"es-toolkit": "^1.22.0", | ||
"es-toolkit": "^1.21.0", | ||
"esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0", | ||
"esbuild-plugin-alias": "^0.2.1", | ||
"execa": "^8.0.1", | ||
"express": "^4.19.2", | ||
"fd-package-json": "^1.2.0", | ||
"fetch-retry": "^6.0.0", | ||
"file-system-cache": "^2.4.4", | ||
"find-cache-dir": "^5.0.0", | ||
@@ -396,2 +391,3 @@ "find-up": "^7.0.0", | ||
"polished": "^4.2.2", | ||
"polka": "^1.0.0-next.28", | ||
"prettier": "^3.2.5", | ||
@@ -412,2 +408,3 @@ "pretty-hrtime": "^1.0.3", | ||
"resolve-from": "^5.0.0", | ||
"sirv": "^2.0.4", | ||
"slash": "^5.0.0", | ||
@@ -414,0 +411,0 @@ "source-map": "^0.7.4", |
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 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 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 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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 9 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
12
123
18961857
499368
362
80
- Removed@types/express@^4.17.21
- Removedexpress@^4.19.2
- Removed@types/body-parser@1.19.5(transitive)
- Removed@types/connect@3.4.38(transitive)
- Removed@types/express@4.17.21(transitive)
- Removed@types/express-serve-static-core@4.19.6(transitive)
- Removed@types/http-errors@2.0.4(transitive)
- Removed@types/mime@1.3.5(transitive)
- Removed@types/node@22.10.7(transitive)
- Removed@types/qs@6.9.18(transitive)
- Removed@types/range-parser@1.2.7(transitive)
- Removed@types/send@0.17.4(transitive)
- Removed@types/serve-static@1.15.7(transitive)
- Removedaccepts@1.3.8(transitive)
- Removedarray-flatten@1.1.1(transitive)
- Removedbody-parser@1.20.3(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcontent-disposition@0.5.4(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.7.1(transitive)
- Removedcookie-signature@1.0.6(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removedee-first@1.1.1(transitive)
- Removedencodeurl@1.0.22.0.0(transitive)
- Removedescape-html@1.0.3(transitive)
- Removedetag@1.8.1(transitive)
- Removedexpress@4.21.2(transitive)
- Removedfinalhandler@1.3.1(transitive)
- Removedforwarded@0.2.0(transitive)
- Removedfresh@0.5.2(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedipaddr.js@1.9.1(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmerge-descriptors@1.0.3(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime@1.6.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedms@2.0.0(transitive)
- Removednegotiator@0.6.3(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedon-finished@2.4.1(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-to-regexp@0.1.12(transitive)
- Removedproxy-addr@2.0.7(transitive)
- Removedqs@6.13.0(transitive)
- Removedrange-parser@1.2.1(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsend@0.19.0(transitive)
- Removedserve-static@1.16.2(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtype-is@1.6.18(transitive)
- Removedundici-types@6.20.0(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removedvary@1.1.2(transitive)