@storybook/preset-react-webpack 8.0.0-alpha.7 → 8.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 +0 -34
- package/package.json +5 -5
package/dist/index.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
|
-
};
|
|
2687
|
-
type DeprecatedIndexer = BaseIndexer & {
|
|
2688
|
-
indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
|
|
2689
|
-
createIndex?: never;
|
|
2690
2665
|
};
|
|
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[];
|
|
@@ -3022,7 +2989,6 @@ interface StorybookConfigRaw {
|
|
|
3022
2989
|
babelDefault?: TransformOptions;
|
|
3023
2990
|
config?: Entry[];
|
|
3024
2991
|
previewAnnotations?: Entry[];
|
|
3025
|
-
storyIndexers?: StoryIndexer[];
|
|
3026
2992
|
experimental_indexers?: Indexer[];
|
|
3027
2993
|
docs?: DocsOptions;
|
|
3028
2994
|
previewHead?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/preset-react-webpack",
|
|
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"
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"@babel/preset-flow": "^7.22.15",
|
|
73
73
|
"@babel/preset-react": "^7.22.15",
|
|
74
74
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
75
|
-
"@storybook/core-webpack": "8.0.0-alpha.
|
|
76
|
-
"@storybook/docs-tools": "8.0.0-alpha.
|
|
77
|
-
"@storybook/node-logger": "8.0.0-alpha.
|
|
78
|
-
"@storybook/react": "8.0.0-alpha.
|
|
75
|
+
"@storybook/core-webpack": "8.0.0-alpha.8",
|
|
76
|
+
"@storybook/docs-tools": "8.0.0-alpha.8",
|
|
77
|
+
"@storybook/node-logger": "8.0.0-alpha.8",
|
|
78
|
+
"@storybook/react": "8.0.0-alpha.8",
|
|
79
79
|
"@storybook/react-docgen-typescript-plugin": "1.0.6--canary.9.0c3f3b7.0",
|
|
80
80
|
"@types/node": "^18.0.0",
|
|
81
81
|
"@types/semver": "^7.3.4",
|