@storybook/react-webpack5 0.0.0-pr-25254-sha-a6f30dbc → 0.0.0-pr-25303-sha-f3c003d0
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/preset.d.ts +1 -12
- package/dist/preset.js +1 -1
- package/package.json +4 -7
- package/jest.config.js +0 -7
package/dist/preset.d.ts
CHANGED
@@ -2624,11 +2624,6 @@ interface Options$1 {
|
|
2624
2624
|
|
2625
2625
|
type ExportName = string;
|
2626
2626
|
type MetaId = string;
|
2627
|
-
/**
|
2628
|
-
* StaticParameters are a subset of the parameters
|
2629
|
-
* that have been statically analyzed.
|
2630
|
-
*/
|
2631
|
-
type StaticParameters = Parameters;
|
2632
2627
|
interface StoriesSpecifier {
|
2633
2628
|
/**
|
2634
2629
|
* When auto-titling, what to prefix all generated titles with (default: '')
|
@@ -2648,14 +2643,12 @@ interface StoriesSpecifier {
|
|
2648
2643
|
type StoriesEntry = string | StoriesSpecifier;
|
2649
2644
|
interface IndexerOptions {
|
2650
2645
|
makeTitle: (userTitle?: string) => string;
|
2651
|
-
staticParameters?: string[];
|
2652
2646
|
}
|
2653
2647
|
interface IndexedStory {
|
2654
2648
|
id: string;
|
2655
2649
|
name: string;
|
2656
2650
|
tags?: Tag[];
|
2657
2651
|
parameters?: Parameters;
|
2658
|
-
staticParameters?: StaticParameters;
|
2659
2652
|
}
|
2660
2653
|
interface IndexedCSFFile {
|
2661
2654
|
meta: {
|
@@ -2719,10 +2712,6 @@ type BaseIndexInput = {
|
|
2719
2712
|
metaId?: MetaId;
|
2720
2713
|
/** Tags for filtering entries in Storybook and its tools. */
|
2721
2714
|
tags?: Tag[];
|
2722
|
-
/**
|
2723
|
-
* Experimental statically extracted parameters for the entry.
|
2724
|
-
*/
|
2725
|
-
staticParameters?: Parameters;
|
2726
2715
|
/**
|
2727
2716
|
* The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
|
2728
2717
|
* If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
|
@@ -2824,6 +2813,7 @@ interface LoadOptions {
|
|
2824
2813
|
packageJson: PackageJson;
|
2825
2814
|
outputDir?: string;
|
2826
2815
|
configDir?: string;
|
2816
|
+
cacheKey?: string;
|
2827
2817
|
ignorePreview?: boolean;
|
2828
2818
|
extendServer?: (server: Server) => void;
|
2829
2819
|
}
|
@@ -2858,7 +2848,6 @@ interface CLIOptions {
|
|
2858
2848
|
debugWebpack?: boolean;
|
2859
2849
|
webpackStatsJson?: string | boolean;
|
2860
2850
|
outputDir?: string;
|
2861
|
-
experimentalStaticParameters?: string[];
|
2862
2851
|
}
|
2863
2852
|
interface BuilderOptions {
|
2864
2853
|
configType?: 'DEVELOPMENT' | 'PRODUCTION';
|
package/dist/preset.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preset_exports={};__export(preset_exports,{addons:()=>addons,core:()=>core,frameworkOptions:()=>frameworkOptions,webpack:()=>webpack});module.exports=__toCommonJS(preset_exports);var import_path=require("path"),getAbsolutePath=input=>(0,import_path.dirname)(require.resolve((0,import_path.join)(input,"package.json"))),addons=[getAbsolutePath("@storybook/preset-react-webpack")],defaultFrameworkOptions={legacyRootApi:!0},frameworkOptions=async(_,options)=>{let config=await options.presets.apply("framework");return typeof config=="string"?{name:config,options:defaultFrameworkOptions}:typeof config>"u"?{name:getAbsolutePath("@storybook/react-webpack5"),options:defaultFrameworkOptions}:{name:config.name,options:{...defaultFrameworkOptions,...config.options}}},core=async(config,options)=>{let framework=await options.presets.apply("framework");return{...config,builder:{name:getAbsolutePath("@storybook/builder-webpack5"),options:typeof framework=="string"?{}:framework.options.builder||{}},renderer:getAbsolutePath("@storybook/react")}},webpack=async config=>
|
1
|
+
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preset_exports={};__export(preset_exports,{addons:()=>addons,core:()=>core,frameworkOptions:()=>frameworkOptions,webpack:()=>webpack});module.exports=__toCommonJS(preset_exports);var import_path=require("path"),getAbsolutePath=input=>(0,import_path.dirname)(require.resolve((0,import_path.join)(input,"package.json"))),addons=[getAbsolutePath("@storybook/preset-react-webpack")],defaultFrameworkOptions={legacyRootApi:!0},frameworkOptions=async(_,options)=>{let config=await options.presets.apply("framework");return typeof config=="string"?{name:config,options:defaultFrameworkOptions}:typeof config>"u"?{name:getAbsolutePath("@storybook/react-webpack5"),options:defaultFrameworkOptions}:{name:config.name,options:{...defaultFrameworkOptions,...config.options}}},core=async(config,options)=>{let framework=await options.presets.apply("framework");return{...config,builder:{name:getAbsolutePath("@storybook/builder-webpack5"),options:typeof framework=="string"?{}:framework.options.builder||{}},renderer:getAbsolutePath("@storybook/react")}},webpack=async config=>(config.resolve=config.resolve||{},config.resolve.alias={...config.resolve?.alias,"@storybook/react":getAbsolutePath("@storybook/react")},config);0&&(module.exports={addons,core,frameworkOptions,webpack});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-25303-sha-f3c003d0",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,14 +47,11 @@
|
|
47
47
|
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-webpack5": "0.0.0-pr-
|
51
|
-
"@storybook/preset-react-webpack": "0.0.0-pr-
|
52
|
-
"@storybook/react": "0.0.0-pr-
|
50
|
+
"@storybook/builder-webpack5": "0.0.0-pr-25303-sha-f3c003d0",
|
51
|
+
"@storybook/preset-react-webpack": "0.0.0-pr-25303-sha-f3c003d0",
|
52
|
+
"@storybook/react": "0.0.0-pr-25303-sha-f3c003d0",
|
53
53
|
"@types/node": "^18.0.0"
|
54
54
|
},
|
55
|
-
"devDependencies": {
|
56
|
-
"jest-specific-snapshot": "^8.0.0"
|
57
|
-
},
|
58
55
|
"peerDependencies": {
|
59
56
|
"@babel/core": "^7.22.0",
|
60
57
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|