@storybook/builder-webpack5 8.0.0-alpha.6 → 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.
@@ -723,9 +723,6 @@ type StoryId = string;
723
723
  type ComponentTitle = string;
724
724
  type StoryName = string;
725
725
  type Tag = string;
726
- interface Parameters {
727
- [name: string]: any;
728
- }
729
726
 
730
727
  interface Plugin {
731
728
  (module: Program): Program;
@@ -2642,20 +2639,6 @@ type StoriesEntry = string | StoriesSpecifier;
2642
2639
  interface IndexerOptions {
2643
2640
  makeTitle: (userTitle?: string) => string;
2644
2641
  }
2645
- interface IndexedStory {
2646
- id: string;
2647
- name: string;
2648
- tags?: Tag[];
2649
- parameters?: Parameters;
2650
- }
2651
- interface IndexedCSFFile {
2652
- meta: {
2653
- id?: string;
2654
- title?: string;
2655
- tags?: Tag[];
2656
- };
2657
- stories: IndexedStory[];
2658
- }
2659
2642
  /**
2660
2643
  * FIXME: This is a temporary type to allow us to deprecate the old indexer API.
2661
2644
  * We should remove this type and the deprecated indexer API in 8.0.
@@ -2677,19 +2660,7 @@ type Indexer = BaseIndexer & {
2677
2660
  * @returns A promise that resolves to an array of {@link IndexInput} objects.
2678
2661
  */
2679
2662
  createIndex: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
2680
- /**
2681
- * @deprecated Use {@link index} instead
2682
- */
2683
- indexer?: never;
2684
2663
  };
2685
- type DeprecatedIndexer = BaseIndexer & {
2686
- indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
2687
- createIndex?: never;
2688
- };
2689
- /**
2690
- * @deprecated Use {@link Indexer} instead
2691
- */
2692
- type StoryIndexer = Indexer | DeprecatedIndexer;
2693
2664
  /**
2694
2665
  * The base input for indexing a story or docs entry.
2695
2666
  */
@@ -2831,10 +2802,6 @@ interface CLIOptions {
2831
2802
  host?: string;
2832
2803
  initialPath?: string;
2833
2804
  exactPort?: boolean;
2834
- /**
2835
- * @deprecated Use 'staticDirs' Storybook Configuration option instead
2836
- */
2837
- staticDir?: string[];
2838
2805
  configDir?: string;
2839
2806
  https?: boolean;
2840
2807
  sslCa?: string[];
@@ -3017,11 +2984,6 @@ interface StorybookConfigRaw {
3017
2984
  * Filter args with a "target" on the type from the render function (EXPERIMENTAL)
3018
2985
  */
3019
2986
  argTypeTargetsV7?: boolean;
3020
- /**
3021
- * Warn when there is a pre-6.0 hierarchy separator ('.' / '|') in the story title.
3022
- * Will be removed in 7.0.
3023
- */
3024
- warnOnLegacyHierarchySeparator?: boolean;
3025
2987
  /**
3026
2988
  * Use legacy MDX1, to help smooth migration to 7.0
3027
2989
  */
@@ -3052,7 +3014,6 @@ interface StorybookConfigRaw {
3052
3014
  babelDefault?: TransformOptions;
3053
3015
  config?: Entry[];
3054
3016
  previewAnnotations?: Entry[];
3055
- storyIndexers?: StoryIndexer[];
3056
3017
  experimental_indexers?: Indexer[];
3057
3018
  docs?: DocsOptions;
3058
3019
  previewHead?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import webpack__default, { Configuration, Stats } from 'webpack';
2
- import { O as Options$1, B as Builder } from './index.d-d307132e.js';
2
+ import { O as Options$1, B as Builder } from './index.d-5cde80e3.js';
3
3
  import { StorybookConfig, Options, BuilderResult as BuilderResult$1 } from '@storybook/core-webpack';
4
4
  import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
5
5
  import 'file-system-cache';
@@ -1,6 +1,6 @@
1
1
  import * as webpack$1 from 'webpack';
2
2
  import { Configuration } from 'webpack';
3
- import { O as Options } from '../index.d-d307132e.js';
3
+ import { O as Options } from '../index.d-5cde80e3.js';
4
4
  import 'file-system-cache';
5
5
  import '@babel/core';
6
6
  import 'express';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-webpack5",
3
- "version": "8.0.0-alpha.6",
3
+ "version": "8.0.0-alpha.8",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -64,14 +64,14 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@babel/core": "^7.23.2",
67
- "@storybook/channels": "8.0.0-alpha.6",
68
- "@storybook/client-logger": "8.0.0-alpha.6",
69
- "@storybook/core-common": "8.0.0-alpha.6",
70
- "@storybook/core-events": "8.0.0-alpha.6",
71
- "@storybook/core-webpack": "8.0.0-alpha.6",
72
- "@storybook/node-logger": "8.0.0-alpha.6",
73
- "@storybook/preview": "8.0.0-alpha.6",
74
- "@storybook/preview-api": "8.0.0-alpha.6",
67
+ "@storybook/channels": "8.0.0-alpha.8",
68
+ "@storybook/client-logger": "8.0.0-alpha.8",
69
+ "@storybook/core-common": "8.0.0-alpha.8",
70
+ "@storybook/core-events": "8.0.0-alpha.8",
71
+ "@storybook/core-webpack": "8.0.0-alpha.8",
72
+ "@storybook/node-logger": "8.0.0-alpha.8",
73
+ "@storybook/preview": "8.0.0-alpha.8",
74
+ "@storybook/preview-api": "8.0.0-alpha.8",
75
75
  "@swc/core": "^1.3.82",
76
76
  "@types/node": "^18.0.0",
77
77
  "@types/semver": "^7.3.4",