@storybook/react-webpack5 7.0.0-alpha.5 → 7.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
 - package/dist/index.js +1 -0
 - package/dist/index.mjs +1 -0
 - package/dist/preset.d.ts +364 -0
 - package/dist/preset.js +1 -0
 - package/dist/preset.mjs +1 -0
 - package/dist/types-e3f39788.d.ts +27 -0
 - package/package.json +31 -9
 - package/preset.js +1 -1
 - package/dist/cjs/index.js +0 -31
 - package/dist/cjs/preset.js +0 -35
 - package/dist/cjs/types.js +0 -5
 - package/dist/esm/index.js +0 -2
 - package/dist/esm/preset.js +0 -16
 - package/dist/esm/types.js +0 -1
 - package/dist/types/index.d.ts +0 -2
 - package/dist/types/preset.d.ts +0 -12
 - package/dist/types/types.d.ts +0 -38
 - package/types-6-0.d.ts +0 -1
 - package/types-7-0.d.ts +0 -1
 - package/types.d.ts +0 -1
 
    
        package/dist/index.d.ts
    ADDED
    
    
    
        package/dist/index.js
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var f=(r,o,x,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let p of c(o))!d.call(r,p)&&p!==x&&a(r,p,{get:()=>o[p],enumerable:!(m=b(o,p))||m.enumerable});return r},t=(r,o,x)=>(f(r,o,"default"),x&&f(x,o,"default"));var g=r=>f(a({},"__esModule",{value:!0}),r);var e={};module.exports=g(e);t(e,require("@storybook/react"),module.exports);
         
     | 
    
        package/dist/index.mjs
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            export*from"@storybook/react";
         
     | 
    
        package/dist/preset.d.ts
    ADDED
    
    | 
         @@ -0,0 +1,364 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { TransformOptions } from '@babel/core';
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { Server } from 'http';
         
     | 
| 
      
 3 
     | 
    
         
            +
            import { S as StorybookConfig$1 } from './types-e3f39788.js';
         
     | 
| 
      
 4 
     | 
    
         
            +
            import '@storybook/preset-react-webpack';
         
     | 
| 
      
 5 
     | 
    
         
            +
            import '@storybook/builder-webpack5';
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            interface Options {
         
     | 
| 
      
 8 
     | 
    
         
            +
                allowRegExp: boolean;
         
     | 
| 
      
 9 
     | 
    
         
            +
                allowFunction: boolean;
         
     | 
| 
      
 10 
     | 
    
         
            +
                allowSymbol: boolean;
         
     | 
| 
      
 11 
     | 
    
         
            +
                allowDate: boolean;
         
     | 
| 
      
 12 
     | 
    
         
            +
                allowUndefined: boolean;
         
     | 
| 
      
 13 
     | 
    
         
            +
                allowClass: boolean;
         
     | 
| 
      
 14 
     | 
    
         
            +
                maxDepth: number;
         
     | 
| 
      
 15 
     | 
    
         
            +
                space: number | undefined;
         
     | 
| 
      
 16 
     | 
    
         
            +
                lazyEval: boolean;
         
     | 
| 
      
 17 
     | 
    
         
            +
            }
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            declare type Parameters = {
         
     | 
| 
      
 20 
     | 
    
         
            +
                [name: string]: any;
         
     | 
| 
      
 21 
     | 
    
         
            +
            };
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            interface Options$2 {
         
     | 
| 
      
 24 
     | 
    
         
            +
                basePath?: string;
         
     | 
| 
      
 25 
     | 
    
         
            +
                ns?: string | string[];
         
     | 
| 
      
 26 
     | 
    
         
            +
                extension?: string;
         
     | 
| 
      
 27 
     | 
    
         
            +
            }
         
     | 
| 
      
 28 
     | 
    
         
            +
            declare class FileSystemCache {
         
     | 
| 
      
 29 
     | 
    
         
            +
                constructor(options: Options$2);
         
     | 
| 
      
 30 
     | 
    
         
            +
                private internal;
         
     | 
| 
      
 31 
     | 
    
         
            +
                path(key: string): string;
         
     | 
| 
      
 32 
     | 
    
         
            +
                fileExists(key: string): Promise<boolean>;
         
     | 
| 
      
 33 
     | 
    
         
            +
                ensureBasePath(): Promise<void>;
         
     | 
| 
      
 34 
     | 
    
         
            +
                get(key: string, defaultValue?: any): Promise<any | typeof defaultValue>;
         
     | 
| 
      
 35 
     | 
    
         
            +
                getSync(key: string, defaultValue?: any): any | typeof defaultValue;
         
     | 
| 
      
 36 
     | 
    
         
            +
                set(key: string, value: any): Promise<{
         
     | 
| 
      
 37 
     | 
    
         
            +
                    path: string;
         
     | 
| 
      
 38 
     | 
    
         
            +
                }>;
         
     | 
| 
      
 39 
     | 
    
         
            +
                setSync(key: string, value: any): this;
         
     | 
| 
      
 40 
     | 
    
         
            +
                remove(key: string): Promise<void>;
         
     | 
| 
      
 41 
     | 
    
         
            +
                clear(): Promise<void>;
         
     | 
| 
      
 42 
     | 
    
         
            +
                save(): Promise<{
         
     | 
| 
      
 43 
     | 
    
         
            +
                    paths: string[];
         
     | 
| 
      
 44 
     | 
    
         
            +
                }>;
         
     | 
| 
      
 45 
     | 
    
         
            +
                load(): Promise<{
         
     | 
| 
      
 46 
     | 
    
         
            +
                    files: Array<{
         
     | 
| 
      
 47 
     | 
    
         
            +
                        path: string;
         
     | 
| 
      
 48 
     | 
    
         
            +
                        value: any;
         
     | 
| 
      
 49 
     | 
    
         
            +
                    }>;
         
     | 
| 
      
 50 
     | 
    
         
            +
                }>;
         
     | 
| 
      
 51 
     | 
    
         
            +
            }
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
            /**
         
     | 
| 
      
 54 
     | 
    
         
            +
             * ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now!
         
     | 
| 
      
 55 
     | 
    
         
            +
             */
         
     | 
| 
      
 56 
     | 
    
         
            +
            declare type BuilderName = 'webpack5' | '@storybook/builder-webpack5' | string;
         
     | 
| 
      
 57 
     | 
    
         
            +
            interface CoreConfig {
         
     | 
| 
      
 58 
     | 
    
         
            +
                builder?: BuilderName | {
         
     | 
| 
      
 59 
     | 
    
         
            +
                    name: BuilderName;
         
     | 
| 
      
 60 
     | 
    
         
            +
                    options?: Record<string, any>;
         
     | 
| 
      
 61 
     | 
    
         
            +
                };
         
     | 
| 
      
 62 
     | 
    
         
            +
                disableWebpackDefaults?: boolean;
         
     | 
| 
      
 63 
     | 
    
         
            +
                channelOptions?: Partial<Options>;
         
     | 
| 
      
 64 
     | 
    
         
            +
                /**
         
     | 
| 
      
 65 
     | 
    
         
            +
                 * Disables the generation of project.json, a file containing Storybook metadata
         
     | 
| 
      
 66 
     | 
    
         
            +
                 */
         
     | 
| 
      
 67 
     | 
    
         
            +
                disableProjectJson?: boolean;
         
     | 
| 
      
 68 
     | 
    
         
            +
                /**
         
     | 
| 
      
 69 
     | 
    
         
            +
                 * Disables Storybook telemetry
         
     | 
| 
      
 70 
     | 
    
         
            +
                 * @see https://storybook.js.org/telemetry
         
     | 
| 
      
 71 
     | 
    
         
            +
                 */
         
     | 
| 
      
 72 
     | 
    
         
            +
                disableTelemetry?: boolean;
         
     | 
| 
      
 73 
     | 
    
         
            +
                /**
         
     | 
| 
      
 74 
     | 
    
         
            +
                 * Enable crash reports to be sent to Storybook telemetry
         
     | 
| 
      
 75 
     | 
    
         
            +
                 * @see https://storybook.js.org/telemetry
         
     | 
| 
      
 76 
     | 
    
         
            +
                 */
         
     | 
| 
      
 77 
     | 
    
         
            +
                enableCrashReports?: boolean;
         
     | 
| 
      
 78 
     | 
    
         
            +
                /**
         
     | 
| 
      
 79 
     | 
    
         
            +
                 * enable CORS headings to run document in a "secure context"
         
     | 
| 
      
 80 
     | 
    
         
            +
                 * see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements
         
     | 
| 
      
 81 
     | 
    
         
            +
                 * This enables these headers in development-mode:
         
     | 
| 
      
 82 
     | 
    
         
            +
                 *   Cross-Origin-Opener-Policy: same-origin
         
     | 
| 
      
 83 
     | 
    
         
            +
                 *   Cross-Origin-Embedder-Policy: require-corp
         
     | 
| 
      
 84 
     | 
    
         
            +
                 */
         
     | 
| 
      
 85 
     | 
    
         
            +
                crossOriginIsolated?: boolean;
         
     | 
| 
      
 86 
     | 
    
         
            +
            }
         
     | 
| 
      
 87 
     | 
    
         
            +
            interface DirectoryMapping {
         
     | 
| 
      
 88 
     | 
    
         
            +
                from: string;
         
     | 
| 
      
 89 
     | 
    
         
            +
                to: string;
         
     | 
| 
      
 90 
     | 
    
         
            +
            }
         
     | 
| 
      
 91 
     | 
    
         
            +
            interface Presets {
         
     | 
| 
      
 92 
     | 
    
         
            +
                apply(extension: 'typescript', config: TypescriptOptions, args?: Options$1): Promise<TypescriptOptions>;
         
     | 
| 
      
 93 
     | 
    
         
            +
                apply(extension: 'framework', config: {}, args: any): Promise<Preset>;
         
     | 
| 
      
 94 
     | 
    
         
            +
                apply(extension: 'babel', config: {}, args: any): Promise<TransformOptions>;
         
     | 
| 
      
 95 
     | 
    
         
            +
                apply(extension: 'entries', config: [], args: any): Promise<unknown>;
         
     | 
| 
      
 96 
     | 
    
         
            +
                apply(extension: 'stories', config: [], args: any): Promise<StoriesEntry[]>;
         
     | 
| 
      
 97 
     | 
    
         
            +
                apply(extension: 'managerEntries', config: [], args: any): Promise<string[]>;
         
     | 
| 
      
 98 
     | 
    
         
            +
                apply(extension: 'refs', config: [], args: any): Promise<unknown>;
         
     | 
| 
      
 99 
     | 
    
         
            +
                apply(extension: 'core', config: {}, args: any): Promise<CoreConfig>;
         
     | 
| 
      
 100 
     | 
    
         
            +
                apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
         
     | 
| 
      
 101 
     | 
    
         
            +
            }
         
     | 
| 
      
 102 
     | 
    
         
            +
            interface LoadedPreset {
         
     | 
| 
      
 103 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 104 
     | 
    
         
            +
                preset: any;
         
     | 
| 
      
 105 
     | 
    
         
            +
                options: any;
         
     | 
| 
      
 106 
     | 
    
         
            +
            }
         
     | 
| 
      
 107 
     | 
    
         
            +
            interface VersionCheck {
         
     | 
| 
      
 108 
     | 
    
         
            +
                success: boolean;
         
     | 
| 
      
 109 
     | 
    
         
            +
                data?: any;
         
     | 
| 
      
 110 
     | 
    
         
            +
                error?: any;
         
     | 
| 
      
 111 
     | 
    
         
            +
                time: number;
         
     | 
| 
      
 112 
     | 
    
         
            +
            }
         
     | 
| 
      
 113 
     | 
    
         
            +
            interface ReleaseNotesData {
         
     | 
| 
      
 114 
     | 
    
         
            +
                success: boolean;
         
     | 
| 
      
 115 
     | 
    
         
            +
                currentVersion: string;
         
     | 
| 
      
 116 
     | 
    
         
            +
                showOnFirstLaunch: boolean;
         
     | 
| 
      
 117 
     | 
    
         
            +
            }
         
     | 
| 
      
 118 
     | 
    
         
            +
            interface PackageJson {
         
     | 
| 
      
 119 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 120 
     | 
    
         
            +
                version: string;
         
     | 
| 
      
 121 
     | 
    
         
            +
                dependencies?: Record<string, string>;
         
     | 
| 
      
 122 
     | 
    
         
            +
                devDependencies?: Record<string, string>;
         
     | 
| 
      
 123 
     | 
    
         
            +
                peerDependencies?: Record<string, string>;
         
     | 
| 
      
 124 
     | 
    
         
            +
                scripts?: Record<string, string>;
         
     | 
| 
      
 125 
     | 
    
         
            +
                eslintConfig?: Record<string, any>;
         
     | 
| 
      
 126 
     | 
    
         
            +
                type?: 'module';
         
     | 
| 
      
 127 
     | 
    
         
            +
                [key: string]: any;
         
     | 
| 
      
 128 
     | 
    
         
            +
            }
         
     | 
| 
      
 129 
     | 
    
         
            +
            interface LoadOptions {
         
     | 
| 
      
 130 
     | 
    
         
            +
                packageJson: PackageJson;
         
     | 
| 
      
 131 
     | 
    
         
            +
                outputDir?: string;
         
     | 
| 
      
 132 
     | 
    
         
            +
                configDir?: string;
         
     | 
| 
      
 133 
     | 
    
         
            +
                ignorePreview?: boolean;
         
     | 
| 
      
 134 
     | 
    
         
            +
                extendServer?: (server: Server) => void;
         
     | 
| 
      
 135 
     | 
    
         
            +
            }
         
     | 
| 
      
 136 
     | 
    
         
            +
            interface CLIOptions {
         
     | 
| 
      
 137 
     | 
    
         
            +
                port?: number;
         
     | 
| 
      
 138 
     | 
    
         
            +
                ignorePreview?: boolean;
         
     | 
| 
      
 139 
     | 
    
         
            +
                previewUrl?: string;
         
     | 
| 
      
 140 
     | 
    
         
            +
                forceBuildPreview?: boolean;
         
     | 
| 
      
 141 
     | 
    
         
            +
                disableTelemetry?: boolean;
         
     | 
| 
      
 142 
     | 
    
         
            +
                enableCrashReports?: boolean;
         
     | 
| 
      
 143 
     | 
    
         
            +
                host?: string;
         
     | 
| 
      
 144 
     | 
    
         
            +
                /**
         
     | 
| 
      
 145 
     | 
    
         
            +
                 * @deprecated Use 'staticDirs' Storybook Configuration option instead
         
     | 
| 
      
 146 
     | 
    
         
            +
                 */
         
     | 
| 
      
 147 
     | 
    
         
            +
                staticDir?: string[];
         
     | 
| 
      
 148 
     | 
    
         
            +
                configDir?: string;
         
     | 
| 
      
 149 
     | 
    
         
            +
                https?: boolean;
         
     | 
| 
      
 150 
     | 
    
         
            +
                sslCa?: string[];
         
     | 
| 
      
 151 
     | 
    
         
            +
                sslCert?: string;
         
     | 
| 
      
 152 
     | 
    
         
            +
                sslKey?: string;
         
     | 
| 
      
 153 
     | 
    
         
            +
                smokeTest?: boolean;
         
     | 
| 
      
 154 
     | 
    
         
            +
                managerCache?: boolean;
         
     | 
| 
      
 155 
     | 
    
         
            +
                open?: boolean;
         
     | 
| 
      
 156 
     | 
    
         
            +
                ci?: boolean;
         
     | 
| 
      
 157 
     | 
    
         
            +
                loglevel?: string;
         
     | 
| 
      
 158 
     | 
    
         
            +
                quiet?: boolean;
         
     | 
| 
      
 159 
     | 
    
         
            +
                versionUpdates?: boolean;
         
     | 
| 
      
 160 
     | 
    
         
            +
                releaseNotes?: boolean;
         
     | 
| 
      
 161 
     | 
    
         
            +
                dll?: boolean;
         
     | 
| 
      
 162 
     | 
    
         
            +
                docs?: boolean;
         
     | 
| 
      
 163 
     | 
    
         
            +
                docsDll?: boolean;
         
     | 
| 
      
 164 
     | 
    
         
            +
                uiDll?: boolean;
         
     | 
| 
      
 165 
     | 
    
         
            +
                debugWebpack?: boolean;
         
     | 
| 
      
 166 
     | 
    
         
            +
                webpackStatsJson?: string | boolean;
         
     | 
| 
      
 167 
     | 
    
         
            +
                outputDir?: string;
         
     | 
| 
      
 168 
     | 
    
         
            +
            }
         
     | 
| 
      
 169 
     | 
    
         
            +
            interface BuilderOptions {
         
     | 
| 
      
 170 
     | 
    
         
            +
                configType?: 'DEVELOPMENT' | 'PRODUCTION';
         
     | 
| 
      
 171 
     | 
    
         
            +
                ignorePreview: boolean;
         
     | 
| 
      
 172 
     | 
    
         
            +
                cache: FileSystemCache;
         
     | 
| 
      
 173 
     | 
    
         
            +
                configDir: string;
         
     | 
| 
      
 174 
     | 
    
         
            +
                docsMode: boolean;
         
     | 
| 
      
 175 
     | 
    
         
            +
                features?: StorybookConfig['features'];
         
     | 
| 
      
 176 
     | 
    
         
            +
                versionCheck?: VersionCheck;
         
     | 
| 
      
 177 
     | 
    
         
            +
                releaseNotesData?: ReleaseNotesData;
         
     | 
| 
      
 178 
     | 
    
         
            +
                disableWebpackDefaults?: boolean;
         
     | 
| 
      
 179 
     | 
    
         
            +
                serverChannelUrl?: string;
         
     | 
| 
      
 180 
     | 
    
         
            +
            }
         
     | 
| 
      
 181 
     | 
    
         
            +
            interface StorybookConfigOptions {
         
     | 
| 
      
 182 
     | 
    
         
            +
                presets: Presets;
         
     | 
| 
      
 183 
     | 
    
         
            +
                presetsList?: LoadedPreset[];
         
     | 
| 
      
 184 
     | 
    
         
            +
            }
         
     | 
| 
      
 185 
     | 
    
         
            +
            declare type Options$1 = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
         
     | 
| 
      
 186 
     | 
    
         
            +
            interface IndexerOptions {
         
     | 
| 
      
 187 
     | 
    
         
            +
                makeTitle: (userTitle?: string) => string;
         
     | 
| 
      
 188 
     | 
    
         
            +
            }
         
     | 
| 
      
 189 
     | 
    
         
            +
            interface IndexedStory {
         
     | 
| 
      
 190 
     | 
    
         
            +
                id: string;
         
     | 
| 
      
 191 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 192 
     | 
    
         
            +
                parameters?: Parameters;
         
     | 
| 
      
 193 
     | 
    
         
            +
            }
         
     | 
| 
      
 194 
     | 
    
         
            +
            interface StoryIndex {
         
     | 
| 
      
 195 
     | 
    
         
            +
                meta: {
         
     | 
| 
      
 196 
     | 
    
         
            +
                    title?: string;
         
     | 
| 
      
 197 
     | 
    
         
            +
                };
         
     | 
| 
      
 198 
     | 
    
         
            +
                stories: IndexedStory[];
         
     | 
| 
      
 199 
     | 
    
         
            +
            }
         
     | 
| 
      
 200 
     | 
    
         
            +
            interface StoryIndexer {
         
     | 
| 
      
 201 
     | 
    
         
            +
                test: RegExp;
         
     | 
| 
      
 202 
     | 
    
         
            +
                indexer: (fileName: string, options: IndexerOptions) => Promise<StoryIndex>;
         
     | 
| 
      
 203 
     | 
    
         
            +
            }
         
     | 
| 
      
 204 
     | 
    
         
            +
            /**
         
     | 
| 
      
 205 
     | 
    
         
            +
             * Options for TypeScript usage within Storybook.
         
     | 
| 
      
 206 
     | 
    
         
            +
             */
         
     | 
| 
      
 207 
     | 
    
         
            +
            interface TypescriptOptions {
         
     | 
| 
      
 208 
     | 
    
         
            +
                /**
         
     | 
| 
      
 209 
     | 
    
         
            +
                 * Enables type checking within Storybook.
         
     | 
| 
      
 210 
     | 
    
         
            +
                 *
         
     | 
| 
      
 211 
     | 
    
         
            +
                 * @default `false`
         
     | 
| 
      
 212 
     | 
    
         
            +
                 */
         
     | 
| 
      
 213 
     | 
    
         
            +
                check: boolean;
         
     | 
| 
      
 214 
     | 
    
         
            +
                /**
         
     | 
| 
      
 215 
     | 
    
         
            +
                 * Disable parsing typescript files through babel.
         
     | 
| 
      
 216 
     | 
    
         
            +
                 *
         
     | 
| 
      
 217 
     | 
    
         
            +
                 * @default `false`
         
     | 
| 
      
 218 
     | 
    
         
            +
                 */
         
     | 
| 
      
 219 
     | 
    
         
            +
                skipBabel: boolean;
         
     | 
| 
      
 220 
     | 
    
         
            +
            }
         
     | 
| 
      
 221 
     | 
    
         
            +
            interface StoriesSpecifier {
         
     | 
| 
      
 222 
     | 
    
         
            +
                /**
         
     | 
| 
      
 223 
     | 
    
         
            +
                 * When auto-titling, what to prefix all generated titles with (default: '')
         
     | 
| 
      
 224 
     | 
    
         
            +
                 */
         
     | 
| 
      
 225 
     | 
    
         
            +
                titlePrefix?: string;
         
     | 
| 
      
 226 
     | 
    
         
            +
                /**
         
     | 
| 
      
 227 
     | 
    
         
            +
                 * Where to start looking for story files
         
     | 
| 
      
 228 
     | 
    
         
            +
                 */
         
     | 
| 
      
 229 
     | 
    
         
            +
                directory: string;
         
     | 
| 
      
 230 
     | 
    
         
            +
                /**
         
     | 
| 
      
 231 
     | 
    
         
            +
                 * What does the filename of a story file look like?
         
     | 
| 
      
 232 
     | 
    
         
            +
                 * (a glob, relative to directory, no leading `./`)
         
     | 
| 
      
 233 
     | 
    
         
            +
                 * If unset, we use `** / *.stories.@(mdx|tsx|ts|jsx|js)` (no spaces)
         
     | 
| 
      
 234 
     | 
    
         
            +
                 */
         
     | 
| 
      
 235 
     | 
    
         
            +
                files?: string;
         
     | 
| 
      
 236 
     | 
    
         
            +
            }
         
     | 
| 
      
 237 
     | 
    
         
            +
            declare type StoriesEntry = string | StoriesSpecifier;
         
     | 
| 
      
 238 
     | 
    
         
            +
            declare type Preset = string | {
         
     | 
| 
      
 239 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 240 
     | 
    
         
            +
                options?: any;
         
     | 
| 
      
 241 
     | 
    
         
            +
            };
         
     | 
| 
      
 242 
     | 
    
         
            +
            /**
         
     | 
| 
      
 243 
     | 
    
         
            +
             * An additional script that gets injected into the
         
     | 
| 
      
 244 
     | 
    
         
            +
             * preview or the manager,
         
     | 
| 
      
 245 
     | 
    
         
            +
             */
         
     | 
| 
      
 246 
     | 
    
         
            +
            declare type Entry = string;
         
     | 
| 
      
 247 
     | 
    
         
            +
            declare type StorybookRefs = Record<string, {
         
     | 
| 
      
 248 
     | 
    
         
            +
                title: string;
         
     | 
| 
      
 249 
     | 
    
         
            +
                url: string;
         
     | 
| 
      
 250 
     | 
    
         
            +
            } | {
         
     | 
| 
      
 251 
     | 
    
         
            +
                disable: boolean;
         
     | 
| 
      
 252 
     | 
    
         
            +
            }>;
         
     | 
| 
      
 253 
     | 
    
         
            +
            /**
         
     | 
| 
      
 254 
     | 
    
         
            +
             * The interface for Storybook configuration in `main.ts` files.
         
     | 
| 
      
 255 
     | 
    
         
            +
             */
         
     | 
| 
      
 256 
     | 
    
         
            +
            interface StorybookConfig {
         
     | 
| 
      
 257 
     | 
    
         
            +
                /**
         
     | 
| 
      
 258 
     | 
    
         
            +
                 * Sets the addons you want to use with Storybook.
         
     | 
| 
      
 259 
     | 
    
         
            +
                 *
         
     | 
| 
      
 260 
     | 
    
         
            +
                 * @example `['@storybook/addon-essentials']` or `[{ name: '@storybook/addon-essentials', options: { backgrounds: false } }]`
         
     | 
| 
      
 261 
     | 
    
         
            +
                 */
         
     | 
| 
      
 262 
     | 
    
         
            +
                addons?: Preset[];
         
     | 
| 
      
 263 
     | 
    
         
            +
                core?: CoreConfig;
         
     | 
| 
      
 264 
     | 
    
         
            +
                /**
         
     | 
| 
      
 265 
     | 
    
         
            +
                 * Sets a list of directories of static files to be loaded by Storybook server
         
     | 
| 
      
 266 
     | 
    
         
            +
                 *
         
     | 
| 
      
 267 
     | 
    
         
            +
                 * @example `['./public']` or `[{from: './public', 'to': '/assets'}]`
         
     | 
| 
      
 268 
     | 
    
         
            +
                 */
         
     | 
| 
      
 269 
     | 
    
         
            +
                staticDirs?: (DirectoryMapping | string)[];
         
     | 
| 
      
 270 
     | 
    
         
            +
                logLevel?: string;
         
     | 
| 
      
 271 
     | 
    
         
            +
                features?: {
         
     | 
| 
      
 272 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 273 
     | 
    
         
            +
                     * Allows to disable deprecated implicit PostCSS loader. (will be removed in 7.0)
         
     | 
| 
      
 274 
     | 
    
         
            +
                     */
         
     | 
| 
      
 275 
     | 
    
         
            +
                    postcss?: boolean;
         
     | 
| 
      
 276 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 277 
     | 
    
         
            +
                     * Build stories.json automatically on start/build
         
     | 
| 
      
 278 
     | 
    
         
            +
                     */
         
     | 
| 
      
 279 
     | 
    
         
            +
                    buildStoriesJson?: boolean;
         
     | 
| 
      
 280 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 281 
     | 
    
         
            +
                     * Activate preview of CSF v3.0
         
     | 
| 
      
 282 
     | 
    
         
            +
                     *
         
     | 
| 
      
 283 
     | 
    
         
            +
                     * @deprecated This is always on now from 6.4 regardless of the setting
         
     | 
| 
      
 284 
     | 
    
         
            +
                     */
         
     | 
| 
      
 285 
     | 
    
         
            +
                    previewCsfV3?: boolean;
         
     | 
| 
      
 286 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 287 
     | 
    
         
            +
                     * Activate on demand story store
         
     | 
| 
      
 288 
     | 
    
         
            +
                     */
         
     | 
| 
      
 289 
     | 
    
         
            +
                    storyStoreV7?: boolean;
         
     | 
| 
      
 290 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 291 
     | 
    
         
            +
                     * Enable a set of planned breaking changes for SB7.0
         
     | 
| 
      
 292 
     | 
    
         
            +
                     */
         
     | 
| 
      
 293 
     | 
    
         
            +
                    breakingChangesV7?: boolean;
         
     | 
| 
      
 294 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 295 
     | 
    
         
            +
                     * Enable the step debugger functionality in Addon-interactions.
         
     | 
| 
      
 296 
     | 
    
         
            +
                     */
         
     | 
| 
      
 297 
     | 
    
         
            +
                    interactionsDebugger?: boolean;
         
     | 
| 
      
 298 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 299 
     | 
    
         
            +
                     * Use Storybook 7.0 babel config scheme
         
     | 
| 
      
 300 
     | 
    
         
            +
                     */
         
     | 
| 
      
 301 
     | 
    
         
            +
                    babelModeV7?: boolean;
         
     | 
| 
      
 302 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 303 
     | 
    
         
            +
                     * Filter args with a "target" on the type from the render function (EXPERIMENTAL)
         
     | 
| 
      
 304 
     | 
    
         
            +
                     */
         
     | 
| 
      
 305 
     | 
    
         
            +
                    argTypeTargetsV7?: boolean;
         
     | 
| 
      
 306 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 307 
     | 
    
         
            +
                     * Warn when there is a pre-6.0 hierarchy separator ('.' / '|') in the story title.
         
     | 
| 
      
 308 
     | 
    
         
            +
                     * Will be removed in 7.0.
         
     | 
| 
      
 309 
     | 
    
         
            +
                     */
         
     | 
| 
      
 310 
     | 
    
         
            +
                    warnOnLegacyHierarchySeparator?: boolean;
         
     | 
| 
      
 311 
     | 
    
         
            +
                    /**
         
     | 
| 
      
 312 
     | 
    
         
            +
                     * Preview MDX2 support, will become default in 7.0
         
     | 
| 
      
 313 
     | 
    
         
            +
                     */
         
     | 
| 
      
 314 
     | 
    
         
            +
                    previewMdx2?: boolean;
         
     | 
| 
      
 315 
     | 
    
         
            +
                };
         
     | 
| 
      
 316 
     | 
    
         
            +
                /**
         
     | 
| 
      
 317 
     | 
    
         
            +
                 * Tells Storybook where to find stories.
         
     | 
| 
      
 318 
     | 
    
         
            +
                 *
         
     | 
| 
      
 319 
     | 
    
         
            +
                 * @example `['./src/*.stories.@(j|t)sx?']`
         
     | 
| 
      
 320 
     | 
    
         
            +
                 */
         
     | 
| 
      
 321 
     | 
    
         
            +
                stories: StoriesEntry[];
         
     | 
| 
      
 322 
     | 
    
         
            +
                /**
         
     | 
| 
      
 323 
     | 
    
         
            +
                 * Framework, e.g. '@storybook/react', required in v7
         
     | 
| 
      
 324 
     | 
    
         
            +
                 */
         
     | 
| 
      
 325 
     | 
    
         
            +
                framework?: Preset;
         
     | 
| 
      
 326 
     | 
    
         
            +
                /**
         
     | 
| 
      
 327 
     | 
    
         
            +
                 * Controls how Storybook handles TypeScript files.
         
     | 
| 
      
 328 
     | 
    
         
            +
                 */
         
     | 
| 
      
 329 
     | 
    
         
            +
                typescript?: Partial<TypescriptOptions>;
         
     | 
| 
      
 330 
     | 
    
         
            +
                /**
         
     | 
| 
      
 331 
     | 
    
         
            +
                 * References external Storybooks
         
     | 
| 
      
 332 
     | 
    
         
            +
                 */
         
     | 
| 
      
 333 
     | 
    
         
            +
                refs?: StorybookRefs | ((config: any, options: Options$1) => StorybookRefs);
         
     | 
| 
      
 334 
     | 
    
         
            +
                /**
         
     | 
| 
      
 335 
     | 
    
         
            +
                 * Modify or return babel config.
         
     | 
| 
      
 336 
     | 
    
         
            +
                 */
         
     | 
| 
      
 337 
     | 
    
         
            +
                babel?: (config: TransformOptions, options: Options$1) => TransformOptions | Promise<TransformOptions>;
         
     | 
| 
      
 338 
     | 
    
         
            +
                /**
         
     | 
| 
      
 339 
     | 
    
         
            +
                 * Modify or return babel config.
         
     | 
| 
      
 340 
     | 
    
         
            +
                 */
         
     | 
| 
      
 341 
     | 
    
         
            +
                babelDefault?: (config: TransformOptions, options: Options$1) => TransformOptions | Promise<TransformOptions>;
         
     | 
| 
      
 342 
     | 
    
         
            +
                /**
         
     | 
| 
      
 343 
     | 
    
         
            +
                 * Add additional scripts to run in the preview a la `.storybook/preview.js`
         
     | 
| 
      
 344 
     | 
    
         
            +
                 *
         
     | 
| 
      
 345 
     | 
    
         
            +
                 * @deprecated use `previewAnnotations` or `/preview.js` file instead
         
     | 
| 
      
 346 
     | 
    
         
            +
                 */
         
     | 
| 
      
 347 
     | 
    
         
            +
                config?: (entries: Entry[], options: Options$1) => Entry[];
         
     | 
| 
      
 348 
     | 
    
         
            +
                /**
         
     | 
| 
      
 349 
     | 
    
         
            +
                 * Add additional scripts to run in the preview a la `.storybook/preview.js`
         
     | 
| 
      
 350 
     | 
    
         
            +
                 */
         
     | 
| 
      
 351 
     | 
    
         
            +
                previewAnnotations?: (entries: Entry[], options: Options$1) => Entry[];
         
     | 
| 
      
 352 
     | 
    
         
            +
                /**
         
     | 
| 
      
 353 
     | 
    
         
            +
                 * Process CSF files for the story index.
         
     | 
| 
      
 354 
     | 
    
         
            +
                 */
         
     | 
| 
      
 355 
     | 
    
         
            +
                storyIndexers?: (indexers: StoryIndexer[], options: Options$1) => StoryIndexer[];
         
     | 
| 
      
 356 
     | 
    
         
            +
            }
         
     | 
| 
      
 357 
     | 
    
         
            +
            declare type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
         
     | 
| 
      
 358 
     | 
    
         
            +
            declare type PresetPropertyFn<K, TStorybookConfig = StorybookConfig, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options$1 & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
         
     | 
| 
      
 359 
     | 
    
         
            +
             
     | 
| 
      
 360 
     | 
    
         
            +
            declare const addons: PresetProperty<'addons', StorybookConfig$1>;
         
     | 
| 
      
 361 
     | 
    
         
            +
            declare const core: PresetProperty<'core', StorybookConfig$1>;
         
     | 
| 
      
 362 
     | 
    
         
            +
            declare const webpack: StorybookConfig$1['webpack'];
         
     | 
| 
      
 363 
     | 
    
         
            +
             
     | 
| 
      
 364 
     | 
    
         
            +
            export { addons, core, webpack };
         
     | 
    
        package/dist/preset.js
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            var m=Object.create;var s=Object.defineProperty,u=Object.defineProperties,y=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols,w=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var l=(e,r,o)=>r in e?s(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,n=(e,r)=>{for(var o in r||(r={}))b.call(r,o)&&l(e,o,r[o]);if(k)for(var o of k(r))q.call(r,o)&&l(e,o,r[o]);return e},p=(e,r)=>u(e,j(r)),i=(e,r)=>s(e,"name",{value:r,configurable:!0});var x=(e,r)=>{for(var o in r)s(e,o,{get:r[o],enumerable:!0})},d=(e,r,o,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of v(r))!b.call(e,t)&&t!==o&&s(e,t,{get:()=>r[t],enumerable:!(c=y(r,t))||c.enumerable});return e};var g=(e,r,o)=>(o=e!=null?m(w(e)):{},d(r||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),h=e=>d(s({},"__esModule",{value:!0}),e);var B={};x(B,{addons:()=>f,core:()=>z,webpack:()=>A});module.exports=h(B);var a=g(require("path")),f=[a.default.dirname(require.resolve(a.default.join("@storybook/preset-react-webpack","package.json"))),a.default.dirname(require.resolve(a.default.join("@storybook/react","package.json")))],z=i(async(e,r)=>{let o=await r.presets.apply("framework");return p(n({},e),{builder:{name:a.default.dirname(require.resolve(a.default.join("@storybook/builder-webpack5","package.json"))),options:typeof o=="string"?{}:o.options.builder||{}}})},"core"),A=i(async e=>{var r;return e.resolve=e.resolve||{},e.resolve.alias=p(n({},(r=e.resolve)==null?void 0:r.alias),{"@storybook/react":a.default.dirname(require.resolve(a.default.join("@storybook/react","package.json")))}),e},"webpack");0&&(module.exports={addons,core,webpack});
         
     | 
    
        package/dist/preset.mjs
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            var k=Object.defineProperty,l=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var i=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var c=(e,r,o)=>r in e?k(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,t=(e,r)=>{for(var o in r||(r={}))d.call(r,o)&&c(e,o,r[o]);if(i)for(var o of i(r))m.call(r,o)&&c(e,o,r[o]);return e},n=(e,r)=>l(e,b(r)),p=(e,r)=>k(e,"name",{value:r,configurable:!0}),s=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,o)=>(typeof require!="undefined"?require:r)[o]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});import a from"path";var w=[a.dirname(s.resolve(a.join("@storybook/preset-react-webpack","package.json"))),a.dirname(s.resolve(a.join("@storybook/react","package.json")))],q=p(async(e,r)=>{let o=await r.presets.apply("framework");return n(t({},e),{builder:{name:a.dirname(s.resolve(a.join("@storybook/builder-webpack5","package.json"))),options:typeof o=="string"?{}:o.options.builder||{}}})},"core"),x=p(async e=>{var r;return e.resolve=e.resolve||{},e.resolve.alias=n(t({},(r=e.resolve)==null?void 0:r.alias),{"@storybook/react":a.dirname(s.resolve(a.join("@storybook/react","package.json")))}),e},"webpack");export{w as addons,q as core,x as webpack};
         
     | 
| 
         @@ -0,0 +1,27 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { ReactOptions, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            declare type FrameworkName = '@storybook/react-webpack5';
         
     | 
| 
      
 5 
     | 
    
         
            +
            declare type BuilderName = '@storybook/builder-webpack5';
         
     | 
| 
      
 6 
     | 
    
         
            +
            declare type FrameworkOptions = ReactOptions & {
         
     | 
| 
      
 7 
     | 
    
         
            +
                builder?: BuilderOptions;
         
     | 
| 
      
 8 
     | 
    
         
            +
            };
         
     | 
| 
      
 9 
     | 
    
         
            +
            declare type StorybookConfigFramework = {
         
     | 
| 
      
 10 
     | 
    
         
            +
                framework: FrameworkName | {
         
     | 
| 
      
 11 
     | 
    
         
            +
                    name: FrameworkName;
         
     | 
| 
      
 12 
     | 
    
         
            +
                    options: FrameworkOptions;
         
     | 
| 
      
 13 
     | 
    
         
            +
                };
         
     | 
| 
      
 14 
     | 
    
         
            +
                core?: StorybookConfig$1['core'] & {
         
     | 
| 
      
 15 
     | 
    
         
            +
                    builder?: BuilderName | {
         
     | 
| 
      
 16 
     | 
    
         
            +
                        name: BuilderName;
         
     | 
| 
      
 17 
     | 
    
         
            +
                        options: BuilderOptions;
         
     | 
| 
      
 18 
     | 
    
         
            +
                    };
         
     | 
| 
      
 19 
     | 
    
         
            +
                };
         
     | 
| 
      
 20 
     | 
    
         
            +
                typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
         
     | 
| 
      
 21 
     | 
    
         
            +
            };
         
     | 
| 
      
 22 
     | 
    
         
            +
            /**
         
     | 
| 
      
 23 
     | 
    
         
            +
             * The interface for Storybook configuration in `main.ts` files.
         
     | 
| 
      
 24 
     | 
    
         
            +
             */
         
     | 
| 
      
 25 
     | 
    
         
            +
            declare type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            export { FrameworkOptions as F, StorybookConfig as S };
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
              "name": "@storybook/react-webpack5",
         
     | 
| 
       3 
     | 
    
         
            -
              "version": "7.0.0-alpha. 
     | 
| 
      
 3 
     | 
    
         
            +
              "version": "7.0.0-alpha.8",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "keywords": [
         
     | 
| 
       6 
6 
     | 
    
         
             
                "storybook"
         
     | 
| 
         @@ -19,9 +19,26 @@ 
     | 
|
| 
       19 
19 
     | 
    
         
             
                "url": "https://opencollective.com/storybook"
         
     | 
| 
       20 
20 
     | 
    
         
             
              },
         
     | 
| 
       21 
21 
     | 
    
         
             
              "license": "MIT",
         
     | 
| 
       22 
     | 
    
         
            -
              " 
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
      
 22 
     | 
    
         
            +
              "exports": {
         
     | 
| 
      
 23 
     | 
    
         
            +
                ".": {
         
     | 
| 
      
 24 
     | 
    
         
            +
                  "require": "./dist/index.js",
         
     | 
| 
      
 25 
     | 
    
         
            +
                  "import": "./dist/index.mjs",
         
     | 
| 
      
 26 
     | 
    
         
            +
                  "types": "./dist/index.d.ts"
         
     | 
| 
      
 27 
     | 
    
         
            +
                },
         
     | 
| 
      
 28 
     | 
    
         
            +
                "./preset": {
         
     | 
| 
      
 29 
     | 
    
         
            +
                  "require": "./dist/preset.js",
         
     | 
| 
      
 30 
     | 
    
         
            +
                  "import": "./dist/preset.mjs",
         
     | 
| 
      
 31 
     | 
    
         
            +
                  "types": "./dist/preset.d.ts"
         
     | 
| 
      
 32 
     | 
    
         
            +
                },
         
     | 
| 
      
 33 
     | 
    
         
            +
                "./package.json": {
         
     | 
| 
      
 34 
     | 
    
         
            +
                  "require": "./package.json",
         
     | 
| 
      
 35 
     | 
    
         
            +
                  "import": "./package.json",
         
     | 
| 
      
 36 
     | 
    
         
            +
                  "types": "./package.json"
         
     | 
| 
      
 37 
     | 
    
         
            +
                }
         
     | 
| 
      
 38 
     | 
    
         
            +
              },
         
     | 
| 
      
 39 
     | 
    
         
            +
              "main": "dist/index.js",
         
     | 
| 
      
 40 
     | 
    
         
            +
              "module": "dist/index.mjs",
         
     | 
| 
      
 41 
     | 
    
         
            +
              "types": "dist/index.d.ts",
         
     | 
| 
       25 
42 
     | 
    
         
             
              "files": [
         
     | 
| 
       26 
43 
     | 
    
         
             
                "dist/**/*",
         
     | 
| 
       27 
44 
     | 
    
         
             
                "types/**/*",
         
     | 
| 
         @@ -30,16 +47,17 @@ 
     | 
|
| 
       30 
47 
     | 
    
         
             
                "*.d.ts"
         
     | 
| 
       31 
48 
     | 
    
         
             
              ],
         
     | 
| 
       32 
49 
     | 
    
         
             
              "scripts": {
         
     | 
| 
       33 
     | 
    
         
            -
                "prepare": " 
     | 
| 
      
 50 
     | 
    
         
            +
                "prepare": "esrun ../../scripts/prepare/bundle.ts"
         
     | 
| 
       34 
51 
     | 
    
         
             
              },
         
     | 
| 
       35 
52 
     | 
    
         
             
              "dependencies": {
         
     | 
| 
       36 
     | 
    
         
            -
                "@storybook/builder-webpack5": "7.0.0-alpha. 
     | 
| 
       37 
     | 
    
         
            -
                "@storybook/preset-react-webpack": "7.0.0-alpha. 
     | 
| 
       38 
     | 
    
         
            -
                "@storybook/react": "7.0.0-alpha. 
     | 
| 
      
 53 
     | 
    
         
            +
                "@storybook/builder-webpack5": "7.0.0-alpha.8",
         
     | 
| 
      
 54 
     | 
    
         
            +
                "@storybook/preset-react-webpack": "7.0.0-alpha.8",
         
     | 
| 
      
 55 
     | 
    
         
            +
                "@storybook/react": "7.0.0-alpha.8",
         
     | 
| 
       39 
56 
     | 
    
         
             
                "@types/node": "^14.14.20 || ^16.0.0",
         
     | 
| 
       40 
57 
     | 
    
         
             
                "core-js": "^3.8.2"
         
     | 
| 
       41 
58 
     | 
    
         
             
              },
         
     | 
| 
       42 
59 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
      
 60 
     | 
    
         
            +
                "@digitak/esrun": "^3.2.2",
         
     | 
| 
       43 
61 
     | 
    
         
             
                "jest-specific-snapshot": "^4.0.0"
         
     | 
| 
       44 
62 
     | 
    
         
             
              },
         
     | 
| 
       45 
63 
     | 
    
         
             
              "peerDependencies": {
         
     | 
| 
         @@ -61,5 +79,9 @@ 
     | 
|
| 
       61 
79 
     | 
    
         
             
              "publishConfig": {
         
     | 
| 
       62 
80 
     | 
    
         
             
                "access": "public"
         
     | 
| 
       63 
81 
     | 
    
         
             
              },
         
     | 
| 
       64 
     | 
    
         
            -
              " 
     | 
| 
      
 82 
     | 
    
         
            +
              "bundlerEntrypoint": [
         
     | 
| 
      
 83 
     | 
    
         
            +
                "./src/index.ts",
         
     | 
| 
      
 84 
     | 
    
         
            +
                "./src/preset.ts"
         
     | 
| 
      
 85 
     | 
    
         
            +
              ],
         
     | 
| 
      
 86 
     | 
    
         
            +
              "gitHead": "24725501c32a073cebc6bf2674a47357136fbe3a"
         
     | 
| 
       65 
87 
     | 
    
         
             
            }
         
     | 
    
        package/preset.js
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            module.exports = require('./dist/ 
     | 
| 
      
 1 
     | 
    
         
            +
            module.exports = require('./dist/preset');
         
     | 
    
        package/dist/cjs/index.js
    DELETED
    
    | 
         @@ -1,31 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            "use strict";
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       4 
     | 
    
         
            -
              value: true
         
     | 
| 
       5 
     | 
    
         
            -
            });
         
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
            var _react = require("@storybook/react");
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            Object.keys(_react).forEach(function (key) {
         
     | 
| 
       10 
     | 
    
         
            -
              if (key === "default" || key === "__esModule") return;
         
     | 
| 
       11 
     | 
    
         
            -
              if (key in exports && exports[key] === _react[key]) return;
         
     | 
| 
       12 
     | 
    
         
            -
              Object.defineProperty(exports, key, {
         
     | 
| 
       13 
     | 
    
         
            -
                enumerable: true,
         
     | 
| 
       14 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       15 
     | 
    
         
            -
                  return _react[key];
         
     | 
| 
       16 
     | 
    
         
            -
                }
         
     | 
| 
       17 
     | 
    
         
            -
              });
         
     | 
| 
       18 
     | 
    
         
            -
            });
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
            var _types = require("./types");
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            Object.keys(_types).forEach(function (key) {
         
     | 
| 
       23 
     | 
    
         
            -
              if (key === "default" || key === "__esModule") return;
         
     | 
| 
       24 
     | 
    
         
            -
              if (key in exports && exports[key] === _types[key]) return;
         
     | 
| 
       25 
     | 
    
         
            -
              Object.defineProperty(exports, key, {
         
     | 
| 
       26 
     | 
    
         
            -
                enumerable: true,
         
     | 
| 
       27 
     | 
    
         
            -
                get: function () {
         
     | 
| 
       28 
     | 
    
         
            -
                  return _types[key];
         
     | 
| 
       29 
     | 
    
         
            -
                }
         
     | 
| 
       30 
     | 
    
         
            -
              });
         
     | 
| 
       31 
     | 
    
         
            -
            });
         
     | 
    
        package/dist/cjs/preset.js
    DELETED
    
    | 
         @@ -1,35 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            "use strict";
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       4 
     | 
    
         
            -
              value: true
         
     | 
| 
       5 
     | 
    
         
            -
            });
         
     | 
| 
       6 
     | 
    
         
            -
            exports.webpack = exports.core = exports.addons = void 0;
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            var _path = _interopRequireDefault(require("path"));
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
            function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            const addons = [_path.default.dirname(require.resolve(_path.default.join('@storybook/preset-react-webpack', 'package.json'))), _path.default.dirname(require.resolve(_path.default.join('@storybook/react', 'package.json')))];
         
     | 
| 
       13 
     | 
    
         
            -
            exports.addons = addons;
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            const core = async config => {
         
     | 
| 
       16 
     | 
    
         
            -
              return Object.assign({}, config, {
         
     | 
| 
       17 
     | 
    
         
            -
                builder: _path.default.dirname(require.resolve(_path.default.join('@storybook/builder-webpack5', 'package.json')))
         
     | 
| 
       18 
     | 
    
         
            -
              });
         
     | 
| 
       19 
     | 
    
         
            -
            };
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
            exports.core = core;
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            const webpack = async config => {
         
     | 
| 
       24 
     | 
    
         
            -
              var _config$resolve;
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
              // eslint-disable-next-line no-param-reassign
         
     | 
| 
       27 
     | 
    
         
            -
              config.resolve = config.resolve || {}; // eslint-disable-next-line no-param-reassign
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
              config.resolve.alias = Object.assign({}, (_config$resolve = config.resolve) === null || _config$resolve === void 0 ? void 0 : _config$resolve.alias, {
         
     | 
| 
       30 
     | 
    
         
            -
                '@storybook/react': _path.default.dirname(require.resolve(_path.default.join('@storybook/react', 'package.json')))
         
     | 
| 
       31 
     | 
    
         
            -
              });
         
     | 
| 
       32 
     | 
    
         
            -
              return config;
         
     | 
| 
       33 
     | 
    
         
            -
            };
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
            exports.webpack = webpack;
         
     | 
    
        package/dist/cjs/types.js
    DELETED
    
    
    
        package/dist/esm/index.js
    DELETED
    
    
    
        package/dist/esm/preset.js
    DELETED
    
    | 
         @@ -1,16 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import path from 'path';
         
     | 
| 
       2 
     | 
    
         
            -
            export const addons = [path.dirname(require.resolve(path.join('@storybook/preset-react-webpack', 'package.json'))), path.dirname(require.resolve(path.join('@storybook/react', 'package.json')))];
         
     | 
| 
       3 
     | 
    
         
            -
            export const core = async config => {
         
     | 
| 
       4 
     | 
    
         
            -
              return Object.assign({}, config, {
         
     | 
| 
       5 
     | 
    
         
            -
                builder: path.dirname(require.resolve(path.join('@storybook/builder-webpack5', 'package.json')))
         
     | 
| 
       6 
     | 
    
         
            -
              });
         
     | 
| 
       7 
     | 
    
         
            -
            };
         
     | 
| 
       8 
     | 
    
         
            -
            export const webpack = async config => {
         
     | 
| 
       9 
     | 
    
         
            -
              // eslint-disable-next-line no-param-reassign
         
     | 
| 
       10 
     | 
    
         
            -
              config.resolve = config.resolve || {}; // eslint-disable-next-line no-param-reassign
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
              config.resolve.alias = Object.assign({}, config.resolve?.alias, {
         
     | 
| 
       13 
     | 
    
         
            -
                '@storybook/react': path.dirname(require.resolve(path.join('@storybook/react', 'package.json')))
         
     | 
| 
       14 
     | 
    
         
            -
              });
         
     | 
| 
       15 
     | 
    
         
            -
              return config;
         
     | 
| 
       16 
     | 
    
         
            -
            };
         
     | 
    
        package/dist/esm/types.js
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export {};
         
     | 
    
        package/dist/types/index.d.ts
    DELETED
    
    
    
        package/dist/types/preset.d.ts
    DELETED
    
    | 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type { StorybookConfig } from '@storybook/preset-react-webpack';
         
     | 
| 
       2 
     | 
    
         
            -
            export declare const addons: StorybookConfig['addons'];
         
     | 
| 
       3 
     | 
    
         
            -
            export declare const core: (config: StorybookConfig['core']) => Promise<{
         
     | 
| 
       4 
     | 
    
         
            -
                builder: string;
         
     | 
| 
       5 
     | 
    
         
            -
                disableWebpackDefaults?: boolean | undefined;
         
     | 
| 
       6 
     | 
    
         
            -
                channelOptions?: Partial<import("telejson").Options> | undefined;
         
     | 
| 
       7 
     | 
    
         
            -
                disableProjectJson?: boolean | undefined;
         
     | 
| 
       8 
     | 
    
         
            -
                disableTelemetry?: boolean | undefined;
         
     | 
| 
       9 
     | 
    
         
            -
                enableCrashReports?: boolean | undefined;
         
     | 
| 
       10 
     | 
    
         
            -
                crossOriginIsolated?: boolean | undefined;
         
     | 
| 
       11 
     | 
    
         
            -
            }>;
         
     | 
| 
       12 
     | 
    
         
            -
            export declare const webpack: StorybookConfig['webpack'];
         
     | 
    
        package/dist/types/types.d.ts
    DELETED
    
    | 
         @@ -1,38 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
         
     | 
| 
       2 
     | 
    
         
            -
            import type { Configuration } from 'webpack';
         
     | 
| 
       3 
     | 
    
         
            -
            import type { StorybookConfig as BaseStorybookConfig } from '@storybook/preset-react-webpack';
         
     | 
| 
       4 
     | 
    
         
            -
            export type { BuilderResult } from '@storybook/preset-react-webpack';
         
     | 
| 
       5 
     | 
    
         
            -
            /**
         
     | 
| 
       6 
     | 
    
         
            -
             * Options for TypeScript usage within Storybook.
         
     | 
| 
       7 
     | 
    
         
            -
             */
         
     | 
| 
       8 
     | 
    
         
            -
            export declare type TypescriptOptions = BaseStorybookConfig['typescript'] & {
         
     | 
| 
       9 
     | 
    
         
            -
                /**
         
     | 
| 
       10 
     | 
    
         
            -
                 * Configures `fork-ts-checker-webpack-plugin`
         
     | 
| 
       11 
     | 
    
         
            -
                 */
         
     | 
| 
       12 
     | 
    
         
            -
                checkOptions: ForkTsCheckerWebpackPlugin['options'];
         
     | 
| 
       13 
     | 
    
         
            -
            };
         
     | 
| 
       14 
     | 
    
         
            -
            export interface StorybookTypescriptConfig {
         
     | 
| 
       15 
     | 
    
         
            -
                typescript?: Partial<TypescriptOptions>;
         
     | 
| 
       16 
     | 
    
         
            -
            }
         
     | 
| 
       17 
     | 
    
         
            -
            export interface ReactOptions {
         
     | 
| 
       18 
     | 
    
         
            -
                fastRefresh?: boolean;
         
     | 
| 
       19 
     | 
    
         
            -
                strictMode?: boolean;
         
     | 
| 
       20 
     | 
    
         
            -
                /**
         
     | 
| 
       21 
     | 
    
         
            -
                 * Use React's legacy root API to mount components
         
     | 
| 
       22 
     | 
    
         
            -
                 * @description
         
     | 
| 
       23 
     | 
    
         
            -
                 * React has introduced a new root API with React 18.x to enable a whole set of new features (e.g. concurrent features)
         
     | 
| 
       24 
     | 
    
         
            -
                 * If this flag is true, the legacy Root API is used to mount components to make it easier to migrate step by step to React 18.
         
     | 
| 
       25 
     | 
    
         
            -
                 * @default false
         
     | 
| 
       26 
     | 
    
         
            -
                 */
         
     | 
| 
       27 
     | 
    
         
            -
                legacyRootApi?: boolean;
         
     | 
| 
       28 
     | 
    
         
            -
            }
         
     | 
| 
       29 
     | 
    
         
            -
            export interface StorybookReactConfig {
         
     | 
| 
       30 
     | 
    
         
            -
                framework: string | {
         
     | 
| 
       31 
     | 
    
         
            -
                    name: '@storybook/react-webpack5';
         
     | 
| 
       32 
     | 
    
         
            -
                    options: ReactOptions;
         
     | 
| 
       33 
     | 
    
         
            -
                };
         
     | 
| 
       34 
     | 
    
         
            -
            }
         
     | 
| 
       35 
     | 
    
         
            -
            /**
         
     | 
| 
       36 
     | 
    
         
            -
             * The interface for Storybook configuration in `main.ts` files.
         
     | 
| 
       37 
     | 
    
         
            -
             */
         
     | 
| 
       38 
     | 
    
         
            -
            export declare type StorybookConfig = BaseStorybookConfig<Configuration> & StorybookReactConfig & StorybookTypescriptConfig;
         
     | 
    
        package/types-6-0.d.ts
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export * from './dist/types/client/preview/types-6-0.d';
         
     | 
    
        package/types-7-0.d.ts
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export * from './dist/types/client/preview/types-7-0.d';
         
     | 
    
        package/types.d.ts
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export * from './dist/types/index.d';
         
     |