mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
Merge remote-tracking branch 'origin/next' into valentin/remove-babel-from-webpack5-builder
This commit is contained in:
commit
ef3da4c658
@ -1,3 +1,10 @@
|
||||
## 7.6.7
|
||||
|
||||
- Core: Skip no-framework error when ignorePreview=true - [#25286](https://github.com/storybookjs/storybook/pull/25286), thanks [@ndelangen](https://github.com/ndelangen)!
|
||||
- Dependencies: Semver dependency fixes - [#25283](https://github.com/storybookjs/storybook/pull/25283), thanks [@ndelangen](https://github.com/ndelangen)!
|
||||
- Vite: Fix pre-transform error in Vite 5 - [#25329](https://github.com/storybookjs/storybook/pull/25329), thanks [@yannbf](https://github.com/yannbf)!
|
||||
- Vue3: Fix pnp by making compiler-core a dependency - [#25311](https://github.com/storybookjs/storybook/pull/25311), thanks [@shilman](https://github.com/shilman)!
|
||||
|
||||
## 7.6.6
|
||||
|
||||
- SvelteKit: Support 2.0 modules with mocks - [#25244](https://github.com/storybookjs/storybook/pull/25244), thanks [@paoloricciuti](https://github.com/paoloricciuti)!
|
||||
|
@ -1,3 +1,9 @@
|
||||
## 8.0.0-alpha.6
|
||||
|
||||
- NextJS: Autoconfigure public directory for new projects - [#25279](https://github.com/storybookjs/storybook/pull/25279), thanks [@shilman](https://github.com/shilman)!
|
||||
- Vite: Fix pre-transform error in Vite 5 - [#25329](https://github.com/storybookjs/storybook/pull/25329), thanks [@yannbf](https://github.com/yannbf)!
|
||||
- Vue3: Fix pnp by making compiler-core a dependency - [#25311](https://github.com/storybookjs/storybook/pull/25311), thanks [@shilman](https://github.com/shilman)!
|
||||
|
||||
## 8.0.0-alpha.5
|
||||
|
||||
- Core: Remove the `-s` flag from build & dev - [#25266](https://github.com/storybookjs/storybook/pull/25266), thanks [@ndelangen](https://github.com/ndelangen)!
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-a11y",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Test component compliance with web accessibility standards",
|
||||
"keywords": [
|
||||
"a11y",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-actions",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Get UI feedback when an action is performed on an interactive element",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-backgrounds",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Switch backgrounds to view components in different settings",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-controls",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Interact with component inputs dynamically in the Storybook UI",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-docs",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Document component usage and properties in Markdown",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-essentials",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Curated addons to bring out the best of Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-mdx-gfm",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "GitHub Flavored Markdown in Storybook",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-highlight",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Highlight DOM nodes within your stories",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-interactions",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Automate, test and debug user interactions",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-jest",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "React storybook addon that show component jest report",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-links",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Link stories together to build demos and prototypes with your UI components",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-measure",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Inspect layouts by visualizing the box model",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-outline",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Outline all elements with CSS to help with layout placement and alignment",
|
||||
"keywords": [
|
||||
"storybook-addons",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-storysource",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "View a story’s source code to see how it works and paste into your app",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-themes",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Switch between multiple themes for you components in Storybook",
|
||||
"keywords": [
|
||||
"css",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-toolbars",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Create your own toolbar items that control story rendering",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/addon-viewport",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Build responsive components by adjusting Storybook’s viewport size and orientation",
|
||||
"keywords": [
|
||||
"addon",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/builder-manager",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook manager builder",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/builder-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "A plugin to run and build Storybooks with Vite",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/builders/builder-vite/#readme",
|
||||
"bugs": {
|
||||
|
@ -11,6 +11,8 @@ export async function createViteServer(options: Options, devServer: Server) {
|
||||
|
||||
const config = {
|
||||
...commonCfg,
|
||||
// Needed in Vite 5: https://github.com/storybookjs/storybook/issues/25256
|
||||
assetsInclude: ['/sb-preview/**'],
|
||||
// Set up dev server
|
||||
server: {
|
||||
middlewareMode: true,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/builder-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/angular",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Angular: Develop Angular components in isolation with hot reloading.",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/ember",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Ember: Develop Ember Component in isolation with Hot Reloading.",
|
||||
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/ember",
|
||||
"bugs": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for HTML and Vite: Develop HTML in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/nextjs",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Next.js",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Svelte and Vite: Develop Svelte components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/sveltekit",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for SvelteKit",
|
||||
"keywords": [
|
||||
"storybook",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue3-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Vue3 and Vite: Develop Vue3 components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue3-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components-vite",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components-webpack5",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"lit",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/channels",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sb",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "storybook",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook CLI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/cli",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook's CLI - install, dev, build, upgrade, and more",
|
||||
"keywords": [
|
||||
"cli",
|
||||
|
@ -1,14 +1,20 @@
|
||||
import { join } from 'path';
|
||||
import { existsSync } from 'fs';
|
||||
import { CoreBuilder } from '../../project_types';
|
||||
import { baseGenerator } from '../baseGenerator';
|
||||
import type { Generator } from '../types';
|
||||
|
||||
const generator: Generator = async (packageManager, npmOptions, options) => {
|
||||
let staticDir;
|
||||
if (existsSync(join(process.cwd(), 'public'))) staticDir = 'public';
|
||||
|
||||
await baseGenerator(
|
||||
packageManager,
|
||||
npmOptions,
|
||||
{ ...options, builder: CoreBuilder.Webpack5 },
|
||||
'react',
|
||||
{
|
||||
staticDir,
|
||||
extraAddons: ['@storybook/addon-onboarding'],
|
||||
webpackCompiler: ({ builder }) => undefined,
|
||||
},
|
||||
|
@ -1,82 +1,82 @@
|
||||
// auto generated file, do not edit
|
||||
export default {
|
||||
'@storybook/addon-a11y': '8.0.0-alpha.5',
|
||||
'@storybook/addon-actions': '8.0.0-alpha.5',
|
||||
'@storybook/addon-backgrounds': '8.0.0-alpha.5',
|
||||
'@storybook/addon-controls': '8.0.0-alpha.5',
|
||||
'@storybook/addon-docs': '8.0.0-alpha.5',
|
||||
'@storybook/addon-essentials': '8.0.0-alpha.5',
|
||||
'@storybook/addon-highlight': '8.0.0-alpha.5',
|
||||
'@storybook/addon-interactions': '8.0.0-alpha.5',
|
||||
'@storybook/addon-jest': '8.0.0-alpha.5',
|
||||
'@storybook/addon-links': '8.0.0-alpha.5',
|
||||
'@storybook/addon-mdx-gfm': '8.0.0-alpha.5',
|
||||
'@storybook/addon-measure': '8.0.0-alpha.5',
|
||||
'@storybook/addon-outline': '8.0.0-alpha.5',
|
||||
'@storybook/addon-storysource': '8.0.0-alpha.5',
|
||||
'@storybook/addon-themes': '8.0.0-alpha.5',
|
||||
'@storybook/addon-toolbars': '8.0.0-alpha.5',
|
||||
'@storybook/addon-viewport': '8.0.0-alpha.5',
|
||||
'@storybook/angular': '8.0.0-alpha.5',
|
||||
'@storybook/blocks': '8.0.0-alpha.5',
|
||||
'@storybook/builder-manager': '8.0.0-alpha.5',
|
||||
'@storybook/builder-vite': '8.0.0-alpha.5',
|
||||
'@storybook/builder-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/channels': '8.0.0-alpha.5',
|
||||
'@storybook/cli': '8.0.0-alpha.5',
|
||||
'@storybook/client-logger': '8.0.0-alpha.5',
|
||||
'@storybook/codemod': '8.0.0-alpha.5',
|
||||
'@storybook/components': '8.0.0-alpha.5',
|
||||
'@storybook/core-common': '8.0.0-alpha.5',
|
||||
'@storybook/core-events': '8.0.0-alpha.5',
|
||||
'@storybook/core-server': '8.0.0-alpha.5',
|
||||
'@storybook/core-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/csf-plugin': '8.0.0-alpha.5',
|
||||
'@storybook/csf-tools': '8.0.0-alpha.5',
|
||||
'@storybook/docs-tools': '8.0.0-alpha.5',
|
||||
'@storybook/ember': '8.0.0-alpha.5',
|
||||
'@storybook/html': '8.0.0-alpha.5',
|
||||
'@storybook/html-vite': '8.0.0-alpha.5',
|
||||
'@storybook/html-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/instrumenter': '8.0.0-alpha.5',
|
||||
'@storybook/manager': '8.0.0-alpha.5',
|
||||
'@storybook/manager-api': '8.0.0-alpha.5',
|
||||
'@storybook/nextjs': '8.0.0-alpha.5',
|
||||
'@storybook/node-logger': '8.0.0-alpha.5',
|
||||
'@storybook/preact': '8.0.0-alpha.5',
|
||||
'@storybook/preact-vite': '8.0.0-alpha.5',
|
||||
'@storybook/preact-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/preset-create-react-app': '8.0.0-alpha.5',
|
||||
'@storybook/preset-html-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preset-preact-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preset-react-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preset-server-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preset-svelte-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preset-vue3-webpack': '8.0.0-alpha.5',
|
||||
'@storybook/preview': '8.0.0-alpha.5',
|
||||
'@storybook/preview-api': '8.0.0-alpha.5',
|
||||
'@storybook/react': '8.0.0-alpha.5',
|
||||
'@storybook/react-dom-shim': '8.0.0-alpha.5',
|
||||
'@storybook/react-vite': '8.0.0-alpha.5',
|
||||
'@storybook/react-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/router': '8.0.0-alpha.5',
|
||||
'@storybook/server': '8.0.0-alpha.5',
|
||||
'@storybook/server-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/source-loader': '8.0.0-alpha.5',
|
||||
'@storybook/svelte': '8.0.0-alpha.5',
|
||||
'@storybook/svelte-vite': '8.0.0-alpha.5',
|
||||
'@storybook/svelte-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/sveltekit': '8.0.0-alpha.5',
|
||||
'@storybook/telemetry': '8.0.0-alpha.5',
|
||||
'@storybook/test': '8.0.0-alpha.5',
|
||||
'@storybook/theming': '8.0.0-alpha.5',
|
||||
'@storybook/types': '8.0.0-alpha.5',
|
||||
'@storybook/vue3': '8.0.0-alpha.5',
|
||||
'@storybook/vue3-vite': '8.0.0-alpha.5',
|
||||
'@storybook/vue3-webpack5': '8.0.0-alpha.5',
|
||||
'@storybook/web-components': '8.0.0-alpha.5',
|
||||
'@storybook/web-components-vite': '8.0.0-alpha.5',
|
||||
'@storybook/web-components-webpack5': '8.0.0-alpha.5',
|
||||
sb: '8.0.0-alpha.5',
|
||||
storybook: '8.0.0-alpha.5',
|
||||
'@storybook/addon-a11y': '8.0.0-alpha.6',
|
||||
'@storybook/addon-actions': '8.0.0-alpha.6',
|
||||
'@storybook/addon-backgrounds': '8.0.0-alpha.6',
|
||||
'@storybook/addon-controls': '8.0.0-alpha.6',
|
||||
'@storybook/addon-docs': '8.0.0-alpha.6',
|
||||
'@storybook/addon-essentials': '8.0.0-alpha.6',
|
||||
'@storybook/addon-highlight': '8.0.0-alpha.6',
|
||||
'@storybook/addon-interactions': '8.0.0-alpha.6',
|
||||
'@storybook/addon-jest': '8.0.0-alpha.6',
|
||||
'@storybook/addon-links': '8.0.0-alpha.6',
|
||||
'@storybook/addon-mdx-gfm': '8.0.0-alpha.6',
|
||||
'@storybook/addon-measure': '8.0.0-alpha.6',
|
||||
'@storybook/addon-outline': '8.0.0-alpha.6',
|
||||
'@storybook/addon-storysource': '8.0.0-alpha.6',
|
||||
'@storybook/addon-themes': '8.0.0-alpha.6',
|
||||
'@storybook/addon-toolbars': '8.0.0-alpha.6',
|
||||
'@storybook/addon-viewport': '8.0.0-alpha.6',
|
||||
'@storybook/angular': '8.0.0-alpha.6',
|
||||
'@storybook/blocks': '8.0.0-alpha.6',
|
||||
'@storybook/builder-manager': '8.0.0-alpha.6',
|
||||
'@storybook/builder-vite': '8.0.0-alpha.6',
|
||||
'@storybook/builder-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/channels': '8.0.0-alpha.6',
|
||||
'@storybook/cli': '8.0.0-alpha.6',
|
||||
'@storybook/client-logger': '8.0.0-alpha.6',
|
||||
'@storybook/codemod': '8.0.0-alpha.6',
|
||||
'@storybook/components': '8.0.0-alpha.6',
|
||||
'@storybook/core-common': '8.0.0-alpha.6',
|
||||
'@storybook/core-events': '8.0.0-alpha.6',
|
||||
'@storybook/core-server': '8.0.0-alpha.6',
|
||||
'@storybook/core-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/csf-plugin': '8.0.0-alpha.6',
|
||||
'@storybook/csf-tools': '8.0.0-alpha.6',
|
||||
'@storybook/docs-tools': '8.0.0-alpha.6',
|
||||
'@storybook/ember': '8.0.0-alpha.6',
|
||||
'@storybook/html': '8.0.0-alpha.6',
|
||||
'@storybook/html-vite': '8.0.0-alpha.6',
|
||||
'@storybook/html-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/instrumenter': '8.0.0-alpha.6',
|
||||
'@storybook/manager': '8.0.0-alpha.6',
|
||||
'@storybook/manager-api': '8.0.0-alpha.6',
|
||||
'@storybook/nextjs': '8.0.0-alpha.6',
|
||||
'@storybook/node-logger': '8.0.0-alpha.6',
|
||||
'@storybook/preact': '8.0.0-alpha.6',
|
||||
'@storybook/preact-vite': '8.0.0-alpha.6',
|
||||
'@storybook/preact-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/preset-create-react-app': '8.0.0-alpha.6',
|
||||
'@storybook/preset-html-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preset-preact-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preset-react-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preset-server-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preset-svelte-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preset-vue3-webpack': '8.0.0-alpha.6',
|
||||
'@storybook/preview': '8.0.0-alpha.6',
|
||||
'@storybook/preview-api': '8.0.0-alpha.6',
|
||||
'@storybook/react': '8.0.0-alpha.6',
|
||||
'@storybook/react-dom-shim': '8.0.0-alpha.6',
|
||||
'@storybook/react-vite': '8.0.0-alpha.6',
|
||||
'@storybook/react-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/router': '8.0.0-alpha.6',
|
||||
'@storybook/server': '8.0.0-alpha.6',
|
||||
'@storybook/server-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/source-loader': '8.0.0-alpha.6',
|
||||
'@storybook/svelte': '8.0.0-alpha.6',
|
||||
'@storybook/svelte-vite': '8.0.0-alpha.6',
|
||||
'@storybook/svelte-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/sveltekit': '8.0.0-alpha.6',
|
||||
'@storybook/telemetry': '8.0.0-alpha.6',
|
||||
'@storybook/test': '8.0.0-alpha.6',
|
||||
'@storybook/theming': '8.0.0-alpha.6',
|
||||
'@storybook/types': '8.0.0-alpha.6',
|
||||
'@storybook/vue3': '8.0.0-alpha.6',
|
||||
'@storybook/vue3-vite': '8.0.0-alpha.6',
|
||||
'@storybook/vue3-webpack5': '8.0.0-alpha.6',
|
||||
'@storybook/web-components': '8.0.0-alpha.6',
|
||||
'@storybook/web-components-vite': '8.0.0-alpha.6',
|
||||
'@storybook/web-components-webpack5': '8.0.0-alpha.6',
|
||||
sb: '8.0.0-alpha.6',
|
||||
storybook: '8.0.0-alpha.6',
|
||||
};
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/client-logger",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/codemod",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "A collection of codemod scripts written with JSCodeshift",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-common",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-events",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Event names used in storybook core",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-server",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/core-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook framework-agnostic API",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/csf-plugin",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Enrich CSF files via static analysis",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/csf-tools",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Parse and manipulate CSF and Storybook config files",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -5,8 +5,8 @@ import yaml from 'js-yaml';
|
||||
import { loadCsf } from './CsfFile';
|
||||
|
||||
expect.addSnapshotSerializer({
|
||||
print: (val: any) => yaml.dump(typeof val === 'string' ? val : val.toString()).trimEnd(),
|
||||
test: (val) => typeof val !== 'string',
|
||||
print: (val: any) => yaml.dump(val).trimEnd(),
|
||||
test: (val) => typeof val !== 'string' && !(val instanceof Error),
|
||||
});
|
||||
|
||||
const makeTitle = (userTitle?: string) => {
|
||||
@ -33,7 +33,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--a
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('exported const stories', () => {
|
||||
@ -47,7 +61,19 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__id: foo-bar--a
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__id: foo-bar--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('underscores', () => {
|
||||
@ -59,7 +85,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--basic
|
||||
name: Basic
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--basic
|
||||
`);
|
||||
});
|
||||
|
||||
it('exclude stories', () => {
|
||||
@ -72,7 +107,16 @@ describe('CsfFile', () => {
|
||||
export const C = () => {};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
excludeStories:
|
||||
- B
|
||||
- C
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
`);
|
||||
});
|
||||
|
||||
it('include stories', () => {
|
||||
@ -84,7 +128,15 @@ describe('CsfFile', () => {
|
||||
export const IncludeA = () => {};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
includeStories:
|
||||
- IncludeA
|
||||
stories:
|
||||
- id: foo-bar--include-a
|
||||
name: Include A
|
||||
`);
|
||||
});
|
||||
|
||||
it('storyName annotation', () => {
|
||||
@ -96,7 +148,13 @@ describe('CsfFile', () => {
|
||||
A.storyName = 'Some story';
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: Some story
|
||||
`);
|
||||
});
|
||||
|
||||
it('no title', () => {
|
||||
@ -108,7 +166,16 @@ describe('CsfFile', () => {
|
||||
export const B = () => {};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
component: '''foo'''
|
||||
title: Default Title
|
||||
stories:
|
||||
- id: default-title--a
|
||||
name: A
|
||||
- id: default-title--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('custom component id', () => {
|
||||
@ -120,7 +187,16 @@ describe('CsfFile', () => {
|
||||
export const B = () => {};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
id: custom-id
|
||||
stories:
|
||||
- id: custom-id--a
|
||||
name: A
|
||||
- id: custom-id--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('custom parameters.__id', () => {
|
||||
@ -132,7 +208,16 @@ describe('CsfFile', () => {
|
||||
export const CustomParemetersId = { parameters: { __id: 'custom-id' } };
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
id: custom-meta-id
|
||||
stories:
|
||||
- id: custom-meta-id--just-custom-meta-id
|
||||
name: Just Custom Meta Id
|
||||
- id: custom-id
|
||||
name: Custom Paremeters Id
|
||||
`);
|
||||
});
|
||||
|
||||
it('typescript', () => {
|
||||
@ -146,7 +231,15 @@ describe('CsfFile', () => {
|
||||
export const B: StoryFn<PropTypes> = () => <>B</>;
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar/baz
|
||||
stories:
|
||||
- id: foo-bar-baz--a
|
||||
name: A
|
||||
- id: foo-bar-baz--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('typescript satisfies', () => {
|
||||
@ -161,7 +254,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: AA
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('typescript as', () => {
|
||||
@ -176,7 +283,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: AA
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('typescript meta var', () => {
|
||||
@ -191,7 +312,15 @@ describe('CsfFile', () => {
|
||||
export const B: StoryFn<PropTypes> = () => <>B</>;
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar/baz
|
||||
stories:
|
||||
- id: foo-bar-baz--a
|
||||
name: A
|
||||
- id: foo-bar-baz--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('typescript satisfies meta var', () => {
|
||||
@ -206,7 +335,15 @@ describe('CsfFile', () => {
|
||||
export const B: StoryFn<PropTypes> = () => <>B</>;
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar/baz
|
||||
stories:
|
||||
- id: foo-bar-baz--a
|
||||
name: A
|
||||
- id: foo-bar-baz--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('component object', () => {
|
||||
@ -218,7 +355,16 @@ describe('CsfFile', () => {
|
||||
export const B = () => {};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
component: '{}'
|
||||
title: Default Title
|
||||
stories:
|
||||
- id: default-title--a
|
||||
name: A
|
||||
- id: default-title--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('template bind', () => {
|
||||
@ -232,7 +378,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('meta variable', () => {
|
||||
@ -245,7 +400,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('docs-only story', () => {
|
||||
@ -258,7 +422,17 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--page
|
||||
name: Page
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--page
|
||||
docsOnly: true
|
||||
`);
|
||||
});
|
||||
|
||||
it('docs-only story with local vars', () => {
|
||||
@ -274,7 +448,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- stories-mdx
|
||||
includeStories:
|
||||
- __page
|
||||
stories:
|
||||
- id: foo-bar--page
|
||||
name: Page
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--page
|
||||
docsOnly: true
|
||||
`);
|
||||
});
|
||||
|
||||
it('title variable', () => {
|
||||
@ -288,7 +476,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--a
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('re-exported stories', () => {
|
||||
@ -300,7 +502,15 @@ describe('CsfFile', () => {
|
||||
export { B } from './B';
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
|
||||
it('named exports order', () => {
|
||||
@ -314,7 +524,21 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--b
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('as default export', () => {
|
||||
@ -330,7 +554,15 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('support for parameter decorators', () => {
|
||||
@ -353,7 +585,11 @@ describe('CsfFile', () => {
|
||||
title: 'Chip',
|
||||
}
|
||||
`)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: Chip
|
||||
stories: []
|
||||
`);
|
||||
});
|
||||
});
|
||||
|
||||
@ -429,7 +665,15 @@ describe('CsfFile', () => {
|
||||
export function B() {}
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
- id: foo-bar--b
|
||||
name: B
|
||||
`);
|
||||
});
|
||||
});
|
||||
|
||||
@ -488,7 +732,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: false
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('Object export with args render', () => {
|
||||
@ -502,7 +755,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('Object export with default render', () => {
|
||||
@ -514,7 +776,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('Object export with name', () => {
|
||||
@ -528,7 +799,16 @@ describe('CsfFile', () => {
|
||||
`,
|
||||
true
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: Apple
|
||||
parameters:
|
||||
__isArgsStory: true
|
||||
__id: foo-bar--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('Object export with storyName', () => {
|
||||
@ -559,7 +839,10 @@ describe('CsfFile', () => {
|
||||
export default { title: 'foo/bar', x: 1, y: 2 };
|
||||
`;
|
||||
const csf = loadCsf(input, { makeTitle }).parse();
|
||||
expect(csf.imports).toMatchInlineSnapshot(`./Button,./Check`);
|
||||
expect(csf.imports).toMatchInlineSnapshot(`
|
||||
- ./Button
|
||||
- ./Check
|
||||
`);
|
||||
});
|
||||
// eslint-disable-next-line jest/no-disabled-tests
|
||||
it.skip('dynamic imports', () => {
|
||||
@ -591,7 +874,17 @@ describe('CsfFile', () => {
|
||||
A.tags = ['Y'];
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
`);
|
||||
});
|
||||
|
||||
it('csf3', () => {
|
||||
@ -605,7 +898,17 @@ describe('CsfFile', () => {
|
||||
};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
`);
|
||||
});
|
||||
|
||||
it('variables', () => {
|
||||
@ -621,7 +924,17 @@ describe('CsfFile', () => {
|
||||
};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
`);
|
||||
});
|
||||
|
||||
it('array error', () => {
|
||||
@ -662,7 +975,18 @@ describe('CsfFile', () => {
|
||||
A.tags = ['Y'];
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
- play-fn
|
||||
`);
|
||||
});
|
||||
|
||||
it('story csf3', () => {
|
||||
@ -677,7 +1001,18 @@ describe('CsfFile', () => {
|
||||
};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
- play-fn
|
||||
`);
|
||||
});
|
||||
|
||||
it('meta csf2', () => {
|
||||
@ -691,7 +1026,18 @@ describe('CsfFile', () => {
|
||||
};
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
- play-fn
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
`);
|
||||
});
|
||||
|
||||
it('meta csf3', () => {
|
||||
@ -703,7 +1049,18 @@ describe('CsfFile', () => {
|
||||
A.tags = ['Y'];
|
||||
`
|
||||
)
|
||||
).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
).toMatchInlineSnapshot(`
|
||||
meta:
|
||||
title: foo/bar
|
||||
tags:
|
||||
- X
|
||||
- play-fn
|
||||
stories:
|
||||
- id: foo-bar--a
|
||||
name: A
|
||||
tags:
|
||||
- 'Y'
|
||||
`);
|
||||
});
|
||||
});
|
||||
|
||||
@ -730,7 +1087,30 @@ describe('CsfFile', () => {
|
||||
{ makeTitle, fileName: 'foo/bar.stories.js' }
|
||||
).parse();
|
||||
|
||||
expect(indexInputs).toMatchInlineSnapshot(`'[object Object],[object Object]'`);
|
||||
expect(indexInputs).toMatchInlineSnapshot(`
|
||||
- type: story
|
||||
importPath: foo/bar.stories.js
|
||||
exportName: A
|
||||
name: A
|
||||
title: custom foo title
|
||||
metaId: component-id
|
||||
tags:
|
||||
- component-tag
|
||||
- story-tag
|
||||
- play-fn
|
||||
__id: component-id--a
|
||||
- type: story
|
||||
importPath: foo/bar.stories.js
|
||||
exportName: B
|
||||
name: B
|
||||
title: custom foo title
|
||||
metaId: component-id
|
||||
tags:
|
||||
- component-tag
|
||||
- story-tag
|
||||
- play-fn
|
||||
__id: component-id--b
|
||||
`);
|
||||
});
|
||||
|
||||
it('supports custom parameters.__id', () => {
|
||||
@ -749,7 +1129,17 @@ describe('CsfFile', () => {
|
||||
{ makeTitle, fileName: 'foo/bar.stories.js' }
|
||||
).parse();
|
||||
|
||||
expect(indexInputs).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
expect(indexInputs).toMatchInlineSnapshot(`
|
||||
- type: story
|
||||
importPath: foo/bar.stories.js
|
||||
exportName: A
|
||||
name: A
|
||||
title: custom foo title
|
||||
metaId: component-id
|
||||
tags:
|
||||
- component-tag
|
||||
__id: custom-story-id
|
||||
`);
|
||||
});
|
||||
|
||||
it('removes duplicate tags', () => {
|
||||
@ -767,7 +1157,20 @@ describe('CsfFile', () => {
|
||||
{ makeTitle, fileName: 'foo/bar.stories.js' }
|
||||
).parse();
|
||||
|
||||
expect(indexInputs).toMatchInlineSnapshot(`'[object Object]'`);
|
||||
expect(indexInputs).toMatchInlineSnapshot(`
|
||||
- type: story
|
||||
importPath: foo/bar.stories.js
|
||||
exportName: A
|
||||
name: A
|
||||
title: custom foo title
|
||||
tags:
|
||||
- component-tag
|
||||
- component-tag-dup
|
||||
- inherit-tag-dup
|
||||
- story-tag
|
||||
- story-tag-dup
|
||||
__id: custom-foo-title--a
|
||||
`);
|
||||
});
|
||||
|
||||
it('throws if getting indexInputs without filename option', () => {
|
||||
@ -786,13 +1189,9 @@ describe('CsfFile', () => {
|
||||
).parse();
|
||||
|
||||
expect(() => csf.indexInputs).toThrowErrorMatchingInlineSnapshot(`
|
||||
>-
|
||||
Error: Cannot automatically create index inputs with CsfFile.indexInputs
|
||||
because the CsfFile instance was created without a the fileName option.
|
||||
|
||||
Either add the fileName option when creating the CsfFile instance, or create
|
||||
the index inputs manually.
|
||||
`);
|
||||
[Error: Cannot automatically create index inputs with CsfFile.indexInputs because the CsfFile instance was created without a the fileName option.
|
||||
Either add the fileName option when creating the CsfFile instance, or create the index inputs manually.]
|
||||
`);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/docs-tools",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Shared utility functions for frameworks to implement docs",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/instrumenter",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/manager-api",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook Manager API & Context",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1 +1 @@
|
||||
export const version = '8.0.0-alpha.5';
|
||||
export const version = '8.0.0-alpha.6';
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/node-logger",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preview-api",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preview",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react-dom-shim",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/router",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook Router",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/source-loader",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Source loader",
|
||||
"keywords": [
|
||||
"lib",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/telemetry",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Telemetry logging for crash reports and usage statistics",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/test",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/theming",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/types",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook TS Types",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/root",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"private": true,
|
||||
"description": "Storybook root",
|
||||
"homepage": "https://storybook.js.org/",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-create-react-app",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Create React App preset",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-html-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-preact-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Preact: Develop Preact Component in isolation.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-react-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-server-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Server: View HTML snippets from a server in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-svelte-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Svelte: Develop Svelte Component in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preset-vue3-webpack",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook for Vue 3: Develop Vue 3 Components in isolation with Hot Reloading.",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/html",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook HTML renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/preact",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook Preact renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/react",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook React renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/server",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook Server renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/svelte",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook Svelte renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/vue3",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook Vue 3 renderer",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
@ -51,6 +51,7 @@
|
||||
"@storybook/global": "^5.0.0",
|
||||
"@storybook/preview-api": "workspace:*",
|
||||
"@storybook/types": "workspace:*",
|
||||
"@vue/compiler-core": "^3.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"ts-dedent": "^2.0.0",
|
||||
"type-fest": "~2.19",
|
||||
@ -60,13 +61,11 @@
|
||||
"@digitak/esrun": "^3.2.2",
|
||||
"@types/prettier": "2.7.2",
|
||||
"@vitejs/plugin-vue": "^4.4.0",
|
||||
"@vue/compiler-core": "^3.3.4",
|
||||
"typescript": "^5.3.2",
|
||||
"vue": "^3.2.47",
|
||||
"vue-tsc": "latest"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue/compiler-core": "^3.0.0",
|
||||
"vue": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/web-components",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook web-components renderer",
|
||||
"keywords": [
|
||||
"lit",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/blocks",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Storybook Doc Blocks",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/components",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook Components",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@storybook/manager",
|
||||
"version": "8.0.0-alpha.5",
|
||||
"version": "8.0.0-alpha.6",
|
||||
"description": "Core Storybook UI",
|
||||
"keywords": [
|
||||
"storybook"
|
||||
|
@ -6728,7 +6728,7 @@ __metadata:
|
||||
"@storybook/types": "workspace:*"
|
||||
"@types/prettier": "npm:2.7.2"
|
||||
"@vitejs/plugin-vue": "npm:^4.4.0"
|
||||
"@vue/compiler-core": "npm:^3.3.4"
|
||||
"@vue/compiler-core": "npm:^3.0.0"
|
||||
lodash: "npm:^4.17.21"
|
||||
ts-dedent: "npm:^2.0.0"
|
||||
type-fest: "npm:~2.19"
|
||||
@ -6737,7 +6737,6 @@ __metadata:
|
||||
vue-component-type-helpers: "npm:latest"
|
||||
vue-tsc: "npm:latest"
|
||||
peerDependencies:
|
||||
"@vue/compiler-core": ^3.0.0
|
||||
vue: ^3.0.0
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
@ -8456,7 +8455,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@vue/compiler-core@npm:3.3.11, @vue/compiler-core@npm:^3.3.4":
|
||||
"@vue/compiler-core@npm:3.3.11":
|
||||
version: 3.3.11
|
||||
resolution: "@vue/compiler-core@npm:3.3.11"
|
||||
dependencies:
|
||||
@ -8468,6 +8467,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@vue/compiler-core@npm:^3.0.0":
|
||||
version: 3.3.13
|
||||
resolution: "@vue/compiler-core@npm:3.3.13"
|
||||
dependencies:
|
||||
"@babel/parser": "npm:^7.23.5"
|
||||
"@vue/shared": "npm:3.3.13"
|
||||
estree-walker: "npm:^2.0.2"
|
||||
source-map-js: "npm:^1.0.2"
|
||||
checksum: d0544ef5c12adb1f25523349dfb5468ee59928892c8476c491b66806840ab7de7a2c15b943ae3805dc8adcfd1a88435db08b97a0d23977eafe7e448a2a001754
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@vue/compiler-dom@npm:3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "@vue/compiler-dom@npm:3.0.0"
|
||||
@ -8672,6 +8683,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@vue/shared@npm:3.3.13":
|
||||
version: 3.3.13
|
||||
resolution: "@vue/shared@npm:3.3.13"
|
||||
checksum: 8f49e0ee51f7f1edce16aa7a97b5a7a36d8cf36dfd03c9dba194b6eb0e9685eb71335f0a2b17af17753b742fa2346f96ec371a3c0a56677a4e7eeb0f13426a56
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@vue/typescript@npm:1.8.15":
|
||||
version: 1.8.15
|
||||
resolution: "@vue/typescript@npm:1.8.15"
|
||||
|
@ -25,11 +25,11 @@ Type: `TestBuildFlags`
|
||||
}
|
||||
```
|
||||
|
||||
Configures Storybook's production builds for performance testing purposes by disabling certain features from the build. When running ' build-storybook ', this feature is enabled by setting the `--test` [flag](./cli-options.md#build).
|
||||
Configures Storybook's production builds for performance testing purposes by disabling certain features from the build. When running `build-storybook`, this feature is enabled by setting the `--test` [flag](./cli-options.md#build).
|
||||
|
||||
<Callout variant="info" icon="💡">
|
||||
|
||||
Enabling these features can cause build or runtime errors with Storybook. We recommend enabling only the features you need for your project.
|
||||
The options documented on this page are automatically enabled when the `--test` flag is provided to the `build-storybook` command. We encourage you to override these options only if you need to disable a specific feature for your project or if you are debugging a build issue.
|
||||
|
||||
</Callout>
|
||||
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableAutoDocs: true,
|
||||
disableAutoDocs: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableAutoDocs: true,
|
||||
disableAutoDocs: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableBlocks: true,
|
||||
disableBlocks: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableBlocks: true,
|
||||
disableBlocks: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableDocgen: true,
|
||||
disableDocgen: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableDocgen: true,
|
||||
disableDocgen: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableMDXEntries: true,
|
||||
disableMDXEntries: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableMDXEntries: true,
|
||||
disableMDXEntries: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableSourcemaps: true,
|
||||
disableSourcemaps: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -9,7 +9,7 @@ const config: StorybookConfig = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableSourcemaps: true,
|
||||
disableSourcemaps: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export default {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
||||
build: {
|
||||
test: {
|
||||
disableTreeShaking: true,
|
||||
disableTreeShaking: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user