@storybook/core
Advanced tools
Comparing version 8.4.0-alpha.7 to 8.4.0-alpha.8
@@ -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 }; |
// ../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 @@ |
{ | ||
"name": "@storybook/core", | ||
"version": "8.4.0-alpha.7", | ||
"version": "8.4.0-alpha.8", | ||
"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 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
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
18960426
122
499403