@storybook/react-vite 8.0.0-alpha.9 → 8.0.0-beta.0
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.
|
@@ -722,7 +722,7 @@ PackageJson$1.JSPMConfiguration;
|
|
|
722
722
|
type StoryId = string;
|
|
723
723
|
type ComponentTitle = string;
|
|
724
724
|
type StoryName = string;
|
|
725
|
-
type Tag = string;
|
|
725
|
+
type Tag$1 = string;
|
|
726
726
|
|
|
727
727
|
interface Options$1 {
|
|
728
728
|
allowRegExp: boolean;
|
|
@@ -800,7 +800,9 @@ type BaseIndexInput = {
|
|
|
800
800
|
*/
|
|
801
801
|
metaId?: MetaId;
|
|
802
802
|
/** Tags for filtering entries in Storybook and its tools. */
|
|
803
|
-
tags?: Tag[];
|
|
803
|
+
tags?: Tag$1[];
|
|
804
|
+
/** Tags from the meta for filtering entries in Storybook and its tools. */
|
|
805
|
+
metaTags?: Tag$1[];
|
|
804
806
|
/**
|
|
805
807
|
* The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
|
|
806
808
|
* If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
|
|
@@ -1038,6 +1040,12 @@ interface TestBuildFlags {
|
|
|
1038
1040
|
interface TestBuildConfig {
|
|
1039
1041
|
test?: TestBuildFlags;
|
|
1040
1042
|
}
|
|
1043
|
+
type Tag = string;
|
|
1044
|
+
interface TagOptions {
|
|
1045
|
+
excludeFromSidebar: boolean;
|
|
1046
|
+
excludeFromDocsStories: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
type TagsOptions = Record<Tag, Partial<TagOptions>>;
|
|
1041
1049
|
/**
|
|
1042
1050
|
* The interface for Storybook configuration used internally in presets
|
|
1043
1051
|
* The difference is that these values are the raw values, AKA, not wrapped with `PresetValue<>`
|
|
@@ -1072,9 +1080,9 @@ interface StorybookConfigRaw {
|
|
|
1072
1080
|
*/
|
|
1073
1081
|
disallowImplicitActionsInRenderV8?: boolean;
|
|
1074
1082
|
/**
|
|
1075
|
-
* Enable asynchronous component rendering in
|
|
1083
|
+
* Enable asynchronous component rendering in React renderer
|
|
1076
1084
|
*/
|
|
1077
|
-
|
|
1085
|
+
experimentalRSC?: boolean;
|
|
1078
1086
|
};
|
|
1079
1087
|
build?: TestBuildConfig;
|
|
1080
1088
|
stories: StoriesEntry[];
|
|
@@ -1085,7 +1093,6 @@ interface StorybookConfigRaw {
|
|
|
1085
1093
|
swc?: any;
|
|
1086
1094
|
env?: Record<string, string>;
|
|
1087
1095
|
babelDefault?: any;
|
|
1088
|
-
config?: Entry[];
|
|
1089
1096
|
previewAnnotations?: Entry[];
|
|
1090
1097
|
experimental_indexers?: Indexer[];
|
|
1091
1098
|
docs?: DocsOptions;
|
|
@@ -1093,6 +1100,7 @@ interface StorybookConfigRaw {
|
|
|
1093
1100
|
previewBody?: string;
|
|
1094
1101
|
previewMainTemplate?: string;
|
|
1095
1102
|
managerHead?: string;
|
|
1103
|
+
tags?: TagsOptions;
|
|
1096
1104
|
}
|
|
1097
1105
|
/**
|
|
1098
1106
|
* The interface for Storybook configuration in `main.ts` files.
|
|
@@ -1150,12 +1158,6 @@ interface StorybookConfig$1 {
|
|
|
1150
1158
|
* Modify or return babel config.
|
|
1151
1159
|
*/
|
|
1152
1160
|
babelDefault?: PresetValue<StorybookConfigRaw['babelDefault']>;
|
|
1153
|
-
/**
|
|
1154
|
-
* Add additional scripts to run in the preview a la `.storybook/preview.js`
|
|
1155
|
-
*
|
|
1156
|
-
* @deprecated use `previewAnnotations` or `/preview.js` file instead
|
|
1157
|
-
*/
|
|
1158
|
-
config?: PresetValue<StorybookConfigRaw['config']>;
|
|
1159
1161
|
/**
|
|
1160
1162
|
* Add additional scripts to run in the preview a la `.storybook/preview.js`
|
|
1161
1163
|
*/
|
|
@@ -1189,6 +1191,10 @@ interface StorybookConfig$1 {
|
|
|
1189
1191
|
* which is the existing head content, and return a modified string.
|
|
1190
1192
|
*/
|
|
1191
1193
|
managerHead?: PresetValue<StorybookConfigRaw['managerHead']>;
|
|
1194
|
+
/**
|
|
1195
|
+
* Configure non-standard tag behaviors
|
|
1196
|
+
*/
|
|
1197
|
+
tags?: PresetValue<StorybookConfigRaw['tags']>;
|
|
1192
1198
|
}
|
|
1193
1199
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
|
1194
1200
|
type PresetProperty<K, TStorybookConfig = StorybookConfigRaw> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
package/dist/index.d.ts
CHANGED
package/dist/preset.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as PresetProperty, S as StorybookConfig } from './index-
|
|
1
|
+
import { P as PresetProperty, S as StorybookConfig } from './index-96fae043.js';
|
|
2
2
|
import 'file-system-cache';
|
|
3
3
|
import 'http';
|
|
4
4
|
import '@storybook/builder-vite';
|
|
5
5
|
import '@joshwooding/vite-plugin-react-docgen-typescript';
|
|
6
6
|
|
|
7
|
-
declare const core: PresetProperty<'core'
|
|
7
|
+
declare const core: PresetProperty<'core'>;
|
|
8
8
|
declare const viteFinal: StorybookConfig['viteFinal'];
|
|
9
9
|
|
|
10
10
|
export { core, viteFinal };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-vite",
|
|
3
|
-
"version": "8.0.0-
|
|
3
|
+
"version": "8.0.0-beta.0",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@joshwooding/vite-plugin-react-docgen-typescript": "0.3.0",
|
|
51
51
|
"@rollup/pluginutils": "^5.0.2",
|
|
52
|
-
"@storybook/builder-vite": "8.0.0-
|
|
53
|
-
"@storybook/react": "8.0.0-
|
|
52
|
+
"@storybook/builder-vite": "8.0.0-beta.0",
|
|
53
|
+
"@storybook/react": "8.0.0-beta.0",
|
|
54
54
|
"magic-string": "^0.30.0",
|
|
55
55
|
"react-docgen": "^7.0.0"
|
|
56
56
|
},
|