@storybook/core
Advanced tools
Comparing version 0.0.0-pr-29241-sha-d29f0c6b to 0.0.0-pr-29241-sha-f30996d6
@@ -138,2 +138,7 @@ import * as _storybook_core_common from '@storybook/core/common'; | ||
declare const frameworkToDefaultBuilder: Record<SupportedFrameworks, CoreBuilder | CommunityBuilder>; | ||
/** | ||
* Return the installed version of a package, or the coerced version specifier from package.json if | ||
* it's a dependency but not installed (e.g. in a fresh project) | ||
*/ | ||
declare function getVersionSafe(packageManager: JsPackageManager, packageName: string): Promise<string | undefined>; | ||
declare function copyTemplateFiles({ packageManager, renderer, language, destination, commonAssetsDir, }: CopyTemplateFilesOptions): Promise<void>; | ||
@@ -203,2 +208,2 @@ declare function adjustTemplate(templatePath: string, templateData: Record<string, any>): Promise<void>; | ||
export { ANGULAR_JSON_PATH, AngularJSON, type Builder, CommunityBuilder, CoreBuilder, CoreWebpackCompilers, type ExternalFramework, type NpmOptions, ProjectType, SUPPORTED_ESLINT_EXTENSIONS, SUPPORTED_RENDERERS, SupportedLanguage, type SupportedRenderers, type TemplateConfiguration, type TemplateMatcher, addToDevDependenciesIfNotPresent, adjustTemplate, builderNameToCoreBuilder, coerceSemver, compilerNameToCoreCompiler, compoDocPreviewPrefix, configureEslintPlugin, copyTemplate, copyTemplateFiles, detect, detectBuilder, detectFrameworkPreset, detectLanguage, detectPnp, externalFrameworks, extractEslintInfo, findEslintFile, frameworkToDefaultBuilder, frameworkToRenderer, getBabelDependencies, getRendererDir, getStorybookVersionSpecifier, hasStorybookDependencies, installableProjectTypes, isNxProject, isStorybookInstantiated, normalizeExtends, promptForCompoDocs, readFileAsJson, suggestESLintPlugin, supportedTemplates, unsupportedTemplate, writeFileAsJson }; | ||
export { ANGULAR_JSON_PATH, AngularJSON, type Builder, CommunityBuilder, CoreBuilder, CoreWebpackCompilers, type ExternalFramework, type NpmOptions, ProjectType, SUPPORTED_ESLINT_EXTENSIONS, SUPPORTED_RENDERERS, SupportedLanguage, type SupportedRenderers, type TemplateConfiguration, type TemplateMatcher, addToDevDependenciesIfNotPresent, adjustTemplate, builderNameToCoreBuilder, coerceSemver, compilerNameToCoreCompiler, compoDocPreviewPrefix, configureEslintPlugin, copyTemplate, copyTemplateFiles, detect, detectBuilder, detectFrameworkPreset, detectLanguage, detectPnp, externalFrameworks, extractEslintInfo, findEslintFile, frameworkToDefaultBuilder, frameworkToRenderer, getBabelDependencies, getRendererDir, getStorybookVersionSpecifier, getVersionSafe, hasStorybookDependencies, installableProjectTypes, isNxProject, isStorybookInstantiated, normalizeExtends, promptForCompoDocs, readFileAsJson, suggestESLintPlugin, supportedTemplates, unsupportedTemplate, writeFileAsJson }; |
@@ -514,2 +514,3 @@ import * as _storybook_core_types from '@storybook/core/types'; | ||
abstract getRunCommand(command: string): string; | ||
abstract getRemoteRunCommand(): string; | ||
readonly cwd?: string; | ||
@@ -812,3 +813,3 @@ abstract getPackageJSON(packageName: string, basePath?: string): Promise<PackageJson | null>; | ||
*/ | ||
declare function extractProperRendererNameFromFramework(frameworkName: string): Promise<"vue" | _storybook_core_types.SupportedRenderers | null>; | ||
declare function extractProperRendererNameFromFramework(frameworkName: string): Promise<_storybook_core_types.SupportedRenderers | "vue" | null>; | ||
@@ -914,2 +915,4 @@ declare function getStorybookConfiguration(storybookScript: string, shortName: string, longName: string): string | null; | ||
packageManager?: PackageManagerName; | ||
cwd?: string; | ||
configDir?: string; | ||
}): Promise<void>; | ||
@@ -916,0 +919,0 @@ |
@@ -91,2 +91,3 @@ import { ArgTypes } from '@storybook/csf'; | ||
type DateNow = number; | ||
type TestProviderId = Addon_TestProviderType['id']; | ||
@@ -113,3 +114,3 @@ type TestProviderConfig = Addon_TestProviderType; | ||
providerId: TestProviderId; | ||
status: 'success' | 'pending'; | ||
status: 'success' | 'pending' | 'cancelled'; | ||
cancellable?: boolean; | ||
@@ -131,7 +132,9 @@ progress?: TestingModuleProgressReportProgress; | ||
providerId: TestProviderId; | ||
message: string; | ||
error: { | ||
message: string; | ||
}; | ||
}; | ||
type TestingModuleProgressReportProgress = { | ||
startedAt: Date; | ||
finishedAt?: Date; | ||
startedAt: DateNow; | ||
finishedAt?: DateNow; | ||
numTotalTests?: number; | ||
@@ -138,0 +141,0 @@ numPassedTests?: number; |
// ../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 | ||
); | ||
}); | ||
}); |
@@ -590,3 +590,3 @@ import ESM_COMPAT_Module from "node:module"; | ||
let { name: a } = r.local, { name: n } = r.exported, l = xe(a, t); | ||
e._exports[n] = l.init, e._exportDecls[n] = l; | ||
l && (e._exports[n] = l.init, e._exportDecls[n] = l); | ||
} | ||
@@ -593,0 +593,0 @@ }) : z.warn( |
@@ -755,5 +755,6 @@ import React, { ReactNode, FC, Component, ReactElement } from 'react'; | ||
* @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; | ||
} | ||
@@ -760,0 +761,0 @@ |
@@ -15,3 +15,3 @@ import { TypescriptOptions, StorybookConfig, PackageJson } from '@storybook/core/types'; | ||
type EventType = 'boot' | 'dev' | 'build' | 'upgrade' | 'init' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search'; | ||
type EventType = 'boot' | 'dev' | 'build' | 'upgrade' | 'init' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report'; | ||
interface Dependency { | ||
@@ -18,0 +18,0 @@ version: string | undefined; |
{ | ||
"name": "@storybook/core", | ||
"version": "0.0.0-pr-29241-sha-d29f0c6b", | ||
"version": "0.0.0-pr-29241-sha-f30996d6", | ||
"description": "Storybook framework-agnostic API", | ||
@@ -343,3 +343,2 @@ "keywords": [ | ||
"camelcase": "^8.0.0", | ||
"chai": "^4.4.1", | ||
"cli-table3": "^0.6.1", | ||
@@ -346,0 +345,0 @@ "commander": "^12.1.0", |
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 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 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
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
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
19011388
122
500769
6