@storybook/html-webpack5 0.0.0-pr-24782-sha-bb0e7d7c → 0.0.0-pr-24798-sha-f16de2fb

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 +34 -5
  2. package/package.json +6 -6
package/dist/preset.d.ts CHANGED
@@ -800,7 +800,7 @@ type Indexer = BaseIndexer & {
800
800
  */
801
801
  createIndex: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
802
802
  /**
803
- * @soonDeprecated Use {@link index} instead
803
+ * @deprecated Use {@link index} instead
804
804
  */
805
805
  indexer?: never;
806
806
  };
@@ -809,7 +809,7 @@ type DeprecatedIndexer = BaseIndexer & {
809
809
  createIndex?: never;
810
810
  };
811
811
  /**
812
- * @soonDeprecated Use {@link Indexer} instead
812
+ * @deprecated Use {@link Indexer} instead
813
813
  */
814
814
  type StoryIndexer = Indexer | DeprecatedIndexer;
815
815
  /**
@@ -908,6 +908,7 @@ interface Presets {
908
908
  apply(extension: 'managerEntries', config: [], args?: any): Promise<string[]>;
909
909
  apply(extension: 'refs', config?: [], args?: any): Promise<unknown>;
910
910
  apply(extension: 'core', config?: {}, args?: any): Promise<CoreConfig>;
911
+ apply(extension: 'build', config?: {}, args?: any): Promise<StorybookConfig['build']>;
911
912
  apply<T>(extension: string, config?: T, args?: unknown): Promise<T>;
912
913
  }
913
914
  interface LoadedPreset {
@@ -939,7 +940,6 @@ interface CLIOptions {
939
940
  enableCrashReports?: boolean;
940
941
  host?: string;
941
942
  initialPath?: string;
942
- exactPort?: boolean;
943
943
  /**
944
944
  * @deprecated Use 'staticDirs' Storybook Configuration option instead
945
945
  */
@@ -957,6 +957,7 @@ interface CLIOptions {
957
957
  quiet?: boolean;
958
958
  versionUpdates?: boolean;
959
959
  docs?: boolean;
960
+ test?: boolean;
960
961
  debugWebpack?: boolean;
961
962
  webpackStatsJson?: string | boolean;
962
963
  outputDir?: string;
@@ -976,7 +977,9 @@ interface StorybookConfigOptions {
976
977
  presets: Presets;
977
978
  presetsList?: LoadedPreset[];
978
979
  }
979
- type Options = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
980
+ type Options = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions & {
981
+ build?: TestBuildConfig;
982
+ };
980
983
  /**
981
984
  * Options for TypeScript usage within Storybook.
982
985
  */
@@ -1026,6 +1029,31 @@ type DocsOptions = {
1026
1029
  */
1027
1030
  docsMode?: boolean;
1028
1031
  };
1032
+ interface TestBuildFlags {
1033
+ /**
1034
+ * The package @storybook/blocks will be excluded from the bundle, even when imported in e.g. the preview.
1035
+ */
1036
+ emptyBlocks?: boolean;
1037
+ /**
1038
+ * Disable all addons
1039
+ */
1040
+ removeNonFastAddons?: boolean;
1041
+ /**
1042
+ * Filter out .mdx stories entries
1043
+ */
1044
+ removeMDXEntries?: boolean;
1045
+ /**
1046
+ * Override autodocs to be disabled
1047
+ */
1048
+ removeAutoDocs?: boolean;
1049
+ /**
1050
+ * Override docgen to be disabled.
1051
+ */
1052
+ disableDocgen?: boolean;
1053
+ }
1054
+ interface TestBuildConfig {
1055
+ test?: TestBuildFlags;
1056
+ }
1029
1057
  /**
1030
1058
  * The interface for Storybook configuration in `main.ts` files.
1031
1059
  */
@@ -1076,6 +1104,7 @@ interface StorybookConfig {
1076
1104
  */
1077
1105
  legacyDecoratorFileOrder?: boolean;
1078
1106
  };
1107
+ build?: TestBuildConfig;
1079
1108
  /**
1080
1109
  * Tells Storybook where to find stories.
1081
1110
  *
@@ -1118,7 +1147,7 @@ interface StorybookConfig {
1118
1147
  previewAnnotations?: PresetValue<Entry[]>;
1119
1148
  /**
1120
1149
  * Process CSF files for the story index.
1121
- * @soonDeprecated use {@link experimental_indexers} instead
1150
+ * @deprecated use {@link experimental_indexers} instead
1122
1151
  */
1123
1152
  storyIndexers?: PresetValue<StoryIndexer[]>;
1124
1153
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/html-webpack5",
3
- "version": "0.0.0-pr-24782-sha-bb0e7d7c",
3
+ "version": "0.0.0-pr-24798-sha-f16de2fb",
4
4
  "description": "Storybook for HTML: View HTML snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,12 +47,12 @@
47
47
  "prep": "../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/builder-webpack5": "0.0.0-pr-24782-sha-bb0e7d7c",
51
- "@storybook/core-common": "0.0.0-pr-24782-sha-bb0e7d7c",
50
+ "@storybook/builder-webpack5": "0.0.0-pr-24798-sha-f16de2fb",
51
+ "@storybook/core-common": "0.0.0-pr-24798-sha-f16de2fb",
52
52
  "@storybook/global": "^5.0.0",
53
- "@storybook/html": "0.0.0-pr-24782-sha-bb0e7d7c",
54
- "@storybook/preset-html-webpack": "0.0.0-pr-24782-sha-bb0e7d7c",
55
- "@types/node": "^16.0.0"
53
+ "@storybook/html": "0.0.0-pr-24798-sha-f16de2fb",
54
+ "@storybook/preset-html-webpack": "0.0.0-pr-24798-sha-f16de2fb",
55
+ "@types/node": "^18.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "typescript": "~4.9.3"