@storybook/react-webpack5 8.0.0-alpha.6 → 8.0.0-alpha.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/preset.d.ts +0 -39
- package/package.json +4 -4
package/dist/preset.d.ts
CHANGED
@@ -725,9 +725,6 @@ type StoryId = string;
|
|
725
725
|
type ComponentTitle = string;
|
726
726
|
type StoryName = string;
|
727
727
|
type Tag = string;
|
728
|
-
interface Parameters {
|
729
|
-
[name: string]: any;
|
730
|
-
}
|
731
728
|
|
732
729
|
interface Plugin {
|
733
730
|
(module: Program): Program;
|
@@ -2644,20 +2641,6 @@ type StoriesEntry = string | StoriesSpecifier;
|
|
2644
2641
|
interface IndexerOptions {
|
2645
2642
|
makeTitle: (userTitle?: string) => string;
|
2646
2643
|
}
|
2647
|
-
interface IndexedStory {
|
2648
|
-
id: string;
|
2649
|
-
name: string;
|
2650
|
-
tags?: Tag[];
|
2651
|
-
parameters?: Parameters;
|
2652
|
-
}
|
2653
|
-
interface IndexedCSFFile {
|
2654
|
-
meta: {
|
2655
|
-
id?: string;
|
2656
|
-
title?: string;
|
2657
|
-
tags?: Tag[];
|
2658
|
-
};
|
2659
|
-
stories: IndexedStory[];
|
2660
|
-
}
|
2661
2644
|
/**
|
2662
2645
|
* FIXME: This is a temporary type to allow us to deprecate the old indexer API.
|
2663
2646
|
* We should remove this type and the deprecated indexer API in 8.0.
|
@@ -2679,19 +2662,7 @@ type Indexer = BaseIndexer & {
|
|
2679
2662
|
* @returns A promise that resolves to an array of {@link IndexInput} objects.
|
2680
2663
|
*/
|
2681
2664
|
createIndex: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
|
2682
|
-
/**
|
2683
|
-
* @deprecated Use {@link index} instead
|
2684
|
-
*/
|
2685
|
-
indexer?: never;
|
2686
2665
|
};
|
2687
|
-
type DeprecatedIndexer = BaseIndexer & {
|
2688
|
-
indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
|
2689
|
-
createIndex?: never;
|
2690
|
-
};
|
2691
|
-
/**
|
2692
|
-
* @deprecated Use {@link Indexer} instead
|
2693
|
-
*/
|
2694
|
-
type StoryIndexer = Indexer | DeprecatedIndexer;
|
2695
2666
|
/**
|
2696
2667
|
* The base input for indexing a story or docs entry.
|
2697
2668
|
*/
|
@@ -2827,10 +2798,6 @@ interface CLIOptions {
|
|
2827
2798
|
host?: string;
|
2828
2799
|
initialPath?: string;
|
2829
2800
|
exactPort?: boolean;
|
2830
|
-
/**
|
2831
|
-
* @deprecated Use 'staticDirs' Storybook Configuration option instead
|
2832
|
-
*/
|
2833
|
-
staticDir?: string[];
|
2834
2801
|
configDir?: string;
|
2835
2802
|
https?: boolean;
|
2836
2803
|
sslCa?: string[];
|
@@ -2992,11 +2959,6 @@ interface StorybookConfigRaw {
|
|
2992
2959
|
* Filter args with a "target" on the type from the render function (EXPERIMENTAL)
|
2993
2960
|
*/
|
2994
2961
|
argTypeTargetsV7?: boolean;
|
2995
|
-
/**
|
2996
|
-
* Warn when there is a pre-6.0 hierarchy separator ('.' / '|') in the story title.
|
2997
|
-
* Will be removed in 7.0.
|
2998
|
-
*/
|
2999
|
-
warnOnLegacyHierarchySeparator?: boolean;
|
3000
2962
|
/**
|
3001
2963
|
* Use legacy MDX1, to help smooth migration to 7.0
|
3002
2964
|
*/
|
@@ -3027,7 +2989,6 @@ interface StorybookConfigRaw {
|
|
3027
2989
|
babelDefault?: TransformOptions;
|
3028
2990
|
config?: Entry[];
|
3029
2991
|
previewAnnotations?: Entry[];
|
3030
|
-
storyIndexers?: StoryIndexer[];
|
3031
2992
|
experimental_indexers?: Indexer[];
|
3032
2993
|
docs?: DocsOptions;
|
3033
2994
|
previewHead?: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "8.0.0-alpha.
|
3
|
+
"version": "8.0.0-alpha.8",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,9 +47,9 @@
|
|
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-alpha.
|
51
|
-
"@storybook/preset-react-webpack": "8.0.0-alpha.
|
52
|
-
"@storybook/react": "8.0.0-alpha.
|
50
|
+
"@storybook/builder-webpack5": "8.0.0-alpha.8",
|
51
|
+
"@storybook/preset-react-webpack": "8.0.0-alpha.8",
|
52
|
+
"@storybook/react": "8.0.0-alpha.8",
|
53
53
|
"@types/node": "^18.0.0"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|