@storybook/html-webpack5 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.
Files changed (2) hide show
  1. package/dist/preset.d.ts +13 -5
  2. package/package.json +5 -5
package/dist/preset.d.ts CHANGED
@@ -720,7 +720,7 @@ PackageJson$1.JSPMConfiguration;
720
720
  type StoryId = string;
721
721
  type ComponentTitle = string;
722
722
  type StoryName = string;
723
- type Tag = string;
723
+ type Tag$1 = string;
724
724
 
725
725
  interface Options$1 {
726
726
  allowRegExp: boolean;
@@ -798,7 +798,9 @@ type BaseIndexInput = {
798
798
  */
799
799
  metaId?: MetaId;
800
800
  /** Tags for filtering entries in Storybook and its tools. */
801
- tags?: Tag[];
801
+ tags?: Tag$1[];
802
+ /** Tags from the meta for filtering entries in Storybook and its tools. */
803
+ metaTags?: Tag$1[];
802
804
  /**
803
805
  * The id of the entry, auto-generated from {@link title}/{@link metaId} and {@link exportName} if unspecified.
804
806
  * If specified, the story in the CSF file _must_ have a matching id set at `parameters.__id`, to be correctly matched.
@@ -1036,6 +1038,12 @@ interface TestBuildFlags {
1036
1038
  interface TestBuildConfig {
1037
1039
  test?: TestBuildFlags;
1038
1040
  }
1041
+ type Tag = string;
1042
+ interface TagOptions {
1043
+ excludeFromSidebar: boolean;
1044
+ excludeFromDocsStories: boolean;
1045
+ }
1046
+ type TagsOptions = Record<Tag, Partial<TagOptions>>;
1039
1047
  /**
1040
1048
  * The interface for Storybook configuration used internally in presets
1041
1049
  * The difference is that these values are the raw values, AKA, not wrapped with `PresetValue<>`
@@ -1070,9 +1078,9 @@ interface StorybookConfigRaw {
1070
1078
  */
1071
1079
  disallowImplicitActionsInRenderV8?: boolean;
1072
1080
  /**
1073
- * Enable asynchronous component rendering in NextJS framework
1081
+ * Enable asynchronous component rendering in React renderer
1074
1082
  */
1075
- experimentalNextRSC?: boolean;
1083
+ experimentalRSC?: boolean;
1076
1084
  };
1077
1085
  build?: TestBuildConfig;
1078
1086
  stories: StoriesEntry[];
@@ -1083,7 +1091,6 @@ interface StorybookConfigRaw {
1083
1091
  swc?: any;
1084
1092
  env?: Record<string, string>;
1085
1093
  babelDefault?: any;
1086
- config?: Entry[];
1087
1094
  previewAnnotations?: Entry[];
1088
1095
  experimental_indexers?: Indexer[];
1089
1096
  docs?: DocsOptions;
@@ -1091,6 +1098,7 @@ interface StorybookConfigRaw {
1091
1098
  previewBody?: string;
1092
1099
  previewMainTemplate?: string;
1093
1100
  managerHead?: string;
1101
+ tags?: TagsOptions;
1094
1102
  }
1095
1103
  type PresetProperty<K, TStorybookConfig = StorybookConfigRaw> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
1096
1104
  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]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/html-webpack5",
3
- "version": "8.0.0-alpha.9",
3
+ "version": "8.0.0-beta.0",
4
4
  "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,11 +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": "8.0.0-alpha.9",
51
- "@storybook/core-common": "8.0.0-alpha.9",
50
+ "@storybook/builder-webpack5": "8.0.0-beta.0",
51
+ "@storybook/core-common": "8.0.0-beta.0",
52
52
  "@storybook/global": "^5.0.0",
53
- "@storybook/html": "8.0.0-alpha.9",
54
- "@storybook/preset-html-webpack": "8.0.0-alpha.9",
53
+ "@storybook/html": "8.0.0-beta.0",
54
+ "@storybook/preset-html-webpack": "8.0.0-beta.0",
55
55
  "@types/node": "^18.0.0"
56
56
  },
57
57
  "devDependencies": {