@storybook/react-webpack5 8.0.0-alpha.9 → 8.0.0-beta.1
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 +14 -7
- package/dist/preset.js +1 -1
- package/package.json +5 -5
package/dist/preset.d.ts
CHANGED
@@ -723,7 +723,7 @@ PackageJson$1.JSPMConfiguration;
|
|
723
723
|
type StoryId = string;
|
724
724
|
type ComponentTitle = string;
|
725
725
|
type StoryName = string;
|
726
|
-
type Tag = string;
|
726
|
+
type Tag$1 = string;
|
727
727
|
|
728
728
|
interface Options$1 {
|
729
729
|
allowRegExp: boolean;
|
@@ -801,7 +801,9 @@ type BaseIndexInput = {
|
|
801
801
|
*/
|
802
802
|
metaId?: MetaId;
|
803
803
|
/** Tags for filtering entries in Storybook and its tools. */
|
804
|
-
tags?: Tag[];
|
804
|
+
tags?: Tag$1[];
|
805
|
+
/** Tags from the meta for filtering entries in Storybook and its tools. */
|
806
|
+
metaTags?: Tag$1[];
|
805
807
|
/**
|
806
808
|
* The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
|
807
809
|
* If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
|
@@ -1039,6 +1041,12 @@ interface TestBuildFlags {
|
|
1039
1041
|
interface TestBuildConfig {
|
1040
1042
|
test?: TestBuildFlags;
|
1041
1043
|
}
|
1044
|
+
type Tag = string;
|
1045
|
+
interface TagOptions {
|
1046
|
+
excludeFromSidebar: boolean;
|
1047
|
+
excludeFromDocsStories: boolean;
|
1048
|
+
}
|
1049
|
+
type TagsOptions = Record<Tag, Partial<TagOptions>>;
|
1042
1050
|
/**
|
1043
1051
|
* The interface for Storybook configuration used internally in presets
|
1044
1052
|
* The difference is that these values are the raw values, AKA, not wrapped with `PresetValue<>`
|
@@ -1073,9 +1081,9 @@ interface StorybookConfigRaw {
|
|
1073
1081
|
*/
|
1074
1082
|
disallowImplicitActionsInRenderV8?: boolean;
|
1075
1083
|
/**
|
1076
|
-
* Enable asynchronous component rendering in
|
1084
|
+
* Enable asynchronous component rendering in React renderer
|
1077
1085
|
*/
|
1078
|
-
|
1086
|
+
experimentalRSC?: boolean;
|
1079
1087
|
};
|
1080
1088
|
build?: TestBuildConfig;
|
1081
1089
|
stories: StoriesEntry[];
|
@@ -1086,7 +1094,6 @@ interface StorybookConfigRaw {
|
|
1086
1094
|
swc?: any;
|
1087
1095
|
env?: Record<string, string>;
|
1088
1096
|
babelDefault?: any;
|
1089
|
-
config?: Entry[];
|
1090
1097
|
previewAnnotations?: Entry[];
|
1091
1098
|
experimental_indexers?: Indexer[];
|
1092
1099
|
docs?: DocsOptions;
|
@@ -1094,14 +1101,14 @@ interface StorybookConfigRaw {
|
|
1094
1101
|
previewBody?: string;
|
1095
1102
|
previewMainTemplate?: string;
|
1096
1103
|
managerHead?: string;
|
1104
|
+
tags?: TagsOptions;
|
1097
1105
|
}
|
1098
1106
|
type PresetProperty<K, TStorybookConfig = StorybookConfigRaw> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
1099
1107
|
type PresetPropertyFn<K, TStorybookConfig = StorybookConfigRaw, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
|
1100
1108
|
type Path = string;
|
1101
1109
|
|
1102
1110
|
declare const addons: PresetProperty<'addons'>;
|
1103
|
-
declare const frameworkOptions: (_: never, options: Options) => Promise<StorybookConfig['framework']>;
|
1104
1111
|
declare const core: PresetProperty<'core'>;
|
1105
1112
|
declare const webpack: StorybookConfig['webpack'];
|
1106
1113
|
|
1107
|
-
export { addons, core,
|
1114
|
+
export { addons, core, webpack };
|
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,
|
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,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")],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,webpack});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "8.0.0-
|
3
|
+
"version": "8.0.0-beta.1",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,15 +47,15 @@
|
|
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": "8.0.0-
|
51
|
-
"@storybook/preset-react-webpack": "8.0.0-
|
52
|
-
"@storybook/react": "8.0.0-
|
50
|
+
"@storybook/builder-webpack5": "8.0.0-beta.1",
|
51
|
+
"@storybook/preset-react-webpack": "8.0.0-beta.1",
|
52
|
+
"@storybook/react": "8.0.0-beta.1",
|
53
53
|
"@types/node": "^18.0.0"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
56
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
57
57
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
58
|
-
"typescript": "
|
58
|
+
"typescript": ">= 4.2.x"
|
59
59
|
},
|
60
60
|
"peerDependenciesMeta": {
|
61
61
|
"typescript": {
|