@storybook/nextjs-vite 9.2.0-alpha.3 → 10.0.0-beta.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/README.md +3 -1
- package/dist/_browser-chunks/chunk-2RWWBM6A.js +261 -0
- package/dist/_browser-chunks/chunk-L5NVL7MD.js +37 -0
- package/dist/_browser-chunks/react-18-G7Q4PNHD.js +71 -0
- package/dist/_node-chunks/chunk-IHKOVONR.js +54 -0
- package/dist/_node-chunks/dist-YEP22NZU.js +7476 -0
- package/dist/_node-chunks/jiti-4UV67MCQ.js +32362 -0
- package/dist/export-mocks/cache/index.d.ts +308 -1
- package/dist/export-mocks/cache/index.js +22 -1
- package/dist/export-mocks/headers/index.d.ts +309 -1
- package/dist/export-mocks/headers/index.js +77 -1
- package/dist/export-mocks/navigation/index.js +81 -1
- package/dist/export-mocks/router/index.d.ts +2 -2
- package/dist/export-mocks/router/index.js +97 -1
- package/dist/index.d.ts +51 -7
- package/dist/index.js +22153 -45
- package/dist/node/index.d.ts +25 -5
- package/dist/node/index.js +23 -1
- package/dist/preset.js +714 -580
- package/dist/preview.d.ts +3 -19
- package/dist/preview.d.tsx +19 -0
- package/dist/preview.js +11 -1
- package/dist/vite-plugin/index.d.ts +1 -3
- package/dist/vite-plugin/index.js +21 -1
- package/package.json +35 -83
- package/preset.js +1 -1
- package/template/cli/js/Configure.mdx +11 -11
- package/template/cli/ts/Configure.mdx +11 -11
- package/dist/chunk-GKRSUUNG.mjs +0 -6
- package/dist/chunk-J3BB7LEU.mjs +0 -20
- package/dist/chunk-XP5HYGXS.mjs +0 -3
- package/dist/export-mocks/cache/index.mjs +0 -6
- package/dist/export-mocks/headers/index.mjs +0 -12
- package/dist/export-mocks/navigation/index.mjs +0 -11
- package/dist/export-mocks/router/index.mjs +0 -10
- package/dist/images/decorator.d.ts +0 -6
- package/dist/images/decorator.js +0 -1
- package/dist/images/decorator.mjs +0 -2
- package/dist/index.d-ff220430.d.ts +0 -310
- package/dist/index.mjs +0 -57
- package/dist/node/index.mjs +0 -5
- package/dist/preset.d.ts +0 -9
- package/dist/preview.mjs +0 -3
- package/dist/react-18-IGIL3GJQ.mjs +0 -7
- package/dist/types-d044381e.d.ts +0 -52
- package/dist/vite-plugin/index.mjs +0 -6
package/dist/node/index.d.ts
CHANGED
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import 'storybook/
|
|
3
|
-
import '@storybook/
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CompatibleString } from 'storybook/internal/types';
|
|
2
|
+
import { BuilderOptions } from '@storybook/builder-vite';
|
|
3
|
+
import { StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
|
|
4
|
+
|
|
5
|
+
type FrameworkName = CompatibleString<'@storybook/nextjs-vite'>;
|
|
6
|
+
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
7
|
+
type FrameworkOptions = {
|
|
8
|
+
/** The path to the Next.js configuration file. */
|
|
9
|
+
nextConfigPath?: string;
|
|
10
|
+
builder?: BuilderOptions;
|
|
11
|
+
};
|
|
12
|
+
type StorybookConfigFramework = {
|
|
13
|
+
framework: FrameworkName | {
|
|
14
|
+
name: FrameworkName;
|
|
15
|
+
options: FrameworkOptions;
|
|
16
|
+
};
|
|
17
|
+
core?: StorybookConfig$1['core'] & {
|
|
18
|
+
builder?: BuilderName | {
|
|
19
|
+
name: BuilderName;
|
|
20
|
+
options: BuilderOptions;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/** The interface for Storybook configuration in `main.ts` files. */
|
|
25
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigFramework> & StorybookConfigFramework;
|
|
6
26
|
|
|
7
27
|
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
|
8
28
|
|
package/dist/node/index.js
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2461sgdhwki from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2461sgdhwki from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2461sgdhwki from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2461sgdhwki.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2461sgdhwki.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2461sgdhwki.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
__name
|
|
14
|
+
} from "../_node-chunks/chunk-IHKOVONR.js";
|
|
15
|
+
|
|
16
|
+
// src/node/index.ts
|
|
17
|
+
function defineMain(config) {
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
__name(defineMain, "defineMain");
|
|
21
|
+
export {
|
|
22
|
+
defineMain
|
|
23
|
+
};
|