@storybook/react-vite 8.0.0-alpha.7 → 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.
@@ -724,9 +724,6 @@ type StoryId = string;
724
724
  type ComponentTitle = string;
725
725
  type StoryName = string;
726
726
  type Tag = string;
727
- interface Parameters$1 {
728
- [name: string]: any;
729
- }
730
727
 
731
728
  interface Plugin {
732
729
  (module: Program): Program;
@@ -2643,20 +2640,6 @@ type StoriesEntry = string | StoriesSpecifier;
2643
2640
  interface IndexerOptions {
2644
2641
  makeTitle: (userTitle?: string) => string;
2645
2642
  }
2646
- interface IndexedStory {
2647
- id: string;
2648
- name: string;
2649
- tags?: Tag[];
2650
- parameters?: Parameters$1;
2651
- }
2652
- interface IndexedCSFFile {
2653
- meta: {
2654
- id?: string;
2655
- title?: string;
2656
- tags?: Tag[];
2657
- };
2658
- stories: IndexedStory[];
2659
- }
2660
2643
  /**
2661
2644
  * FIXME: This is a temporary type to allow us to deprecate the old indexer API.
2662
2645
  * We should remove this type and the deprecated indexer API in 8.0.
@@ -2678,19 +2661,7 @@ type Indexer = BaseIndexer & {
2678
2661
  * @returns A promise that resolves to an array of {@link IndexInput} objects.
2679
2662
  */
2680
2663
  createIndex: (fileName: string, options: IndexerOptions) => Promise<IndexInput[]>;
2681
- /**
2682
- * @deprecated Use {@link index} instead
2683
- */
2684
- indexer?: never;
2685
2664
  };
2686
- type DeprecatedIndexer = BaseIndexer & {
2687
- indexer: (fileName: string, options: IndexerOptions) => Promise<IndexedCSFFile>;
2688
- createIndex?: never;
2689
- };
2690
- /**
2691
- * @deprecated Use {@link Indexer} instead
2692
- */
2693
- type StoryIndexer = Indexer | DeprecatedIndexer;
2694
2665
  /**
2695
2666
  * The base input for indexing a story or docs entry.
2696
2667
  */
@@ -2826,10 +2797,6 @@ interface CLIOptions {
2826
2797
  host?: string;
2827
2798
  initialPath?: string;
2828
2799
  exactPort?: boolean;
2829
- /**
2830
- * @deprecated Use 'staticDirs' Storybook Configuration option instead
2831
- */
2832
- staticDir?: string[];
2833
2800
  configDir?: string;
2834
2801
  https?: boolean;
2835
2802
  sslCa?: string[];
@@ -3021,7 +2988,6 @@ interface StorybookConfigRaw {
3021
2988
  babelDefault?: TransformOptions;
3022
2989
  config?: Entry[];
3023
2990
  previewAnnotations?: Entry[];
3024
- storyIndexers?: StoryIndexer[];
3025
2991
  experimental_indexers?: Indexer[];
3026
2992
  docs?: DocsOptions;
3027
2993
  previewHead?: string;
@@ -3095,11 +3061,6 @@ interface StorybookConfig$1 {
3095
3061
  * Add additional scripts to run in the preview a la `.storybook/preview.js`
3096
3062
  */
3097
3063
  previewAnnotations?: PresetValue<StorybookConfigRaw['previewAnnotations']>;
3098
- /**
3099
- * Process CSF files for the story index.
3100
- * @deprecated use {@link experimental_indexers} instead
3101
- */
3102
- storyIndexers?: PresetValue<StorybookConfigRaw['storyIndexers']>;
3103
3064
  /**
3104
3065
  * Process CSF files for the story index.
3105
3066
  */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './index-b86a2254.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './index-55bd7935.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty, S as StorybookConfig } from './index-b86a2254.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './index-55bd7935.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-vite",
3
- "version": "8.0.0-alpha.7",
3
+ "version": "8.0.0-alpha.8",
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-alpha.7",
53
- "@storybook/react": "8.0.0-alpha.7",
52
+ "@storybook/builder-vite": "8.0.0-alpha.8",
53
+ "@storybook/react": "8.0.0-alpha.8",
54
54
  "magic-string": "^0.30.0",
55
55
  "react-docgen": "^7.0.0"
56
56
  },