@storybook/web-components-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.
@@ -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
  /**
1096
1104
  * The interface for Storybook configuration in `main.ts` files.
@@ -1148,12 +1156,6 @@ interface StorybookConfig {
1148
1156
  * Modify or return babel config.
1149
1157
  */
1150
1158
  babelDefault?: PresetValue<StorybookConfigRaw['babelDefault']>;
1151
- /**
1152
- * Add additional scripts to run in the preview a la `.storybook/preview.js`
1153
- *
1154
- * @deprecated use `previewAnnotations` or `/preview.js` file instead
1155
- */
1156
- config?: PresetValue<StorybookConfigRaw['config']>;
1157
1159
  /**
1158
1160
  * Add additional scripts to run in the preview a la `.storybook/preview.js`
1159
1161
  */
@@ -1187,6 +1189,10 @@ interface StorybookConfig {
1187
1189
  * which is the existing head content, and return a modified string.
1188
1190
  */
1189
1191
  managerHead?: PresetValue<StorybookConfigRaw['managerHead']>;
1192
+ /**
1193
+ * Configure non-standard tag behaviors
1194
+ */
1195
+ tags?: PresetValue<StorybookConfigRaw['tags']>;
1190
1196
  }
1191
1197
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1192
1198
  type PresetProperty<K, TStorybookConfig = StorybookConfigRaw> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { S as StorybookConfig$1, T as TypescriptOptions$1 } from './index.d-5ea34ad0.js';
1
+ import { S as StorybookConfig$1, T as TypescriptOptions$1 } from './index.d-532906de.js';
2
2
  import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
3
3
  import 'file-system-cache';
4
4
  import 'http';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty } from './index.d-5ea34ad0.js';
1
+ import { P as PresetProperty } from './index.d-532906de.js';
2
2
  import 'file-system-cache';
3
3
  import 'http';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components-webpack5",
3
- "version": "8.0.0-alpha.9",
3
+ "version": "8.0.0-beta.1",
4
4
  "description": "Storybook for web-components: View web components snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "lit",
@@ -50,9 +50,9 @@
50
50
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
51
51
  },
52
52
  "dependencies": {
53
- "@storybook/builder-webpack5": "8.0.0-alpha.9",
54
- "@storybook/core-common": "8.0.0-alpha.9",
55
- "@storybook/web-components": "8.0.0-alpha.9",
53
+ "@storybook/builder-webpack5": "8.0.0-beta.1",
54
+ "@storybook/core-common": "8.0.0-beta.1",
55
+ "@storybook/web-components": "8.0.0-beta.1",
56
56
  "@types/node": "^18.0.0"
57
57
  },
58
58
  "devDependencies": {