vite-plugin-storybook-nextjs 3.0.3--canary.68.b6ee25e.0 → 3.0.4--canary.5f06d44.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.
package/dist/index.d.cts CHANGED
@@ -1,12 +1,23 @@
1
1
  import { Plugin } from 'vite';
2
+ import { FilterPattern } from '@rollup/pluginutils';
2
3
 
3
- type VitePluginOptions = {
4
+ type NextImagePluginOptions = {
5
+ includeFiles?: FilterPattern;
6
+ excludeFiles?: FilterPattern;
7
+ };
8
+
9
+ type PluginOptions = {
4
10
  /**
5
11
  * Provide the path to your Next.js project directory
6
12
  * @default process.cwd()
7
13
  */
8
14
  dir?: string;
15
+ /**
16
+ * Control which image files are handled by the next-image plugin.
17
+ * @see https://github.com/storybookjs/vite-plugin-storybook-nextjs/blob/main/README.md#faq-includingexcluding-images
18
+ */
19
+ image?: NextImagePluginOptions;
9
20
  };
10
- declare function VitePlugin({ dir, }?: VitePluginOptions): (Plugin | Promise<Plugin>)[];
21
+ declare function VitePlugin({ dir, image, }?: PluginOptions): (Plugin | Promise<Plugin>)[];
11
22
 
12
- export { VitePlugin as default };
23
+ export { type PluginOptions, VitePlugin as default };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,23 @@
1
1
  import { Plugin } from 'vite';
2
+ import { FilterPattern } from '@rollup/pluginutils';
2
3
 
3
- type VitePluginOptions = {
4
+ type NextImagePluginOptions = {
5
+ includeFiles?: FilterPattern;
6
+ excludeFiles?: FilterPattern;
7
+ };
8
+
9
+ type PluginOptions = {
4
10
  /**
5
11
  * Provide the path to your Next.js project directory
6
12
  * @default process.cwd()
7
13
  */
8
14
  dir?: string;
15
+ /**
16
+ * Control which image files are handled by the next-image plugin.
17
+ * @see https://github.com/storybookjs/vite-plugin-storybook-nextjs/blob/main/README.md#faq-includingexcluding-images
18
+ */
19
+ image?: NextImagePluginOptions;
9
20
  };
10
- declare function VitePlugin({ dir, }?: VitePluginOptions): (Plugin | Promise<Plugin>)[];
21
+ declare function VitePlugin({ dir, image, }?: PluginOptions): (Plugin | Promise<Plugin>)[];
11
22
 
12
- export { VitePlugin as default };
23
+ export { type PluginOptions, VitePlugin as default };