@storybook/react-vite 11.0.0-beta.1 → 11.0.0-beta.2
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/_node-chunks/{chunk-DWGDBIRG.js → chunk-VLIQYCMQ.js} +6 -6
- package/dist/_node-chunks/{react-docgen-2UF7RHED.js → react-docgen-UAZRCGQ2.js} +7 -7
- package/dist/{chunk-DzJdQ4En.d.ts → chunk-G2EShjdP.d.ts} +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +7 -7
- package/dist/preset.d.ts +1 -1
- package/dist/preset.js +8 -8
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jqy3ocl29 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jqy3ocl29 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jqy3ocl29 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jqy3ocl29.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jqy3ocl29.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jqy3ocl29.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jqy3ocl29 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jqy3ocl29 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jqy3ocl29 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jqy3ocl29.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jqy3ocl29.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jqy3ocl29.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VLIQYCMQ.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/picomatch/lib/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -8,6 +8,10 @@ import { BuilderOptions, StorybookConfigVite } from "@storybook/builder-vite";
|
|
|
8
8
|
* declarations. Its TypeScript 7.1 `native` mode is left out: Storybook uses the docgen server there.
|
|
9
9
|
*/
|
|
10
10
|
type ReactDocgenTypescriptOptions = ReactDocgenTypescriptParserOptions & {
|
|
11
|
+
/**
|
|
12
|
+
* TEMPORARY(ts-7.1): needs plugin 0.8 or newer. Storybook accepts only 0.7 until TypeScript 7.1 is
|
|
13
|
+
* stable, so this option has no effect for now.
|
|
14
|
+
*/
|
|
11
15
|
docgenMode?: 'legacy' | 'project-service';
|
|
12
16
|
setDisplayName?: boolean;
|
|
13
17
|
typePropName?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ReactDocgenTypescriptOptions, r as StorybookConfig, t as FrameworkOptions } from "./chunk-
|
|
1
|
+
import { n as ReactDocgenTypescriptOptions, r as StorybookConfig, t as FrameworkOptions } from "./chunk-G2EShjdP.js";
|
|
2
2
|
import { __definePreview as definePreview } from "@storybook/react";
|
|
3
3
|
export * from "@storybook/react";
|
|
4
4
|
export { FrameworkOptions, ReactDocgenTypescriptOptions, StorybookConfig, definePreview };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as StorybookConfig } from "../chunk-
|
|
1
|
+
import { r as StorybookConfig } from "../chunk-G2EShjdP.js";
|
|
2
2
|
|
|
3
3
|
//#region code/frameworks/react-vite/.dts-emit/code/frameworks/react-vite/src/node/index.d.ts
|
|
4
4
|
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jqy3ocl29 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jqy3ocl29 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jqy3ocl29 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jqy3ocl29.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jqy3ocl29.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jqy3ocl29.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-VLIQYCMQ.js";
|
|
13
13
|
|
|
14
14
|
// src/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
package/dist/preset.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as StorybookConfig$1 } from "./chunk-
|
|
1
|
+
import { r as StorybookConfig$1 } from "./chunk-G2EShjdP.js";
|
|
2
2
|
import { PresetProperty } from "storybook/internal/types";
|
|
3
3
|
|
|
4
4
|
//#region code/frameworks/react-vite/.dts-emit/code/frameworks/react-vite/src/preset.d.ts
|
package/dist/preset.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jqy3ocl29 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jqy3ocl29 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jqy3ocl29 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jqy3ocl29.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jqy3ocl29.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jqy3ocl29.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./_node-chunks/chunk-
|
|
12
|
+
import "./_node-chunks/chunk-VLIQYCMQ.js";
|
|
13
13
|
|
|
14
14
|
// src/preset.ts
|
|
15
15
|
import {
|
|
@@ -42,7 +42,7 @@ var core = {
|
|
|
42
42
|
savePropValueAsString: !0
|
|
43
43
|
})
|
|
44
44
|
), !useReactDocgenTypescript || isReactBuilderDocgenPackageInstalled(resolve, "react-docgen")) {
|
|
45
|
-
let { reactDocgen } = await import("./_node-chunks/react-docgen-
|
|
45
|
+
let { reactDocgen } = await import("./_node-chunks/react-docgen-UAZRCGQ2.js");
|
|
46
46
|
plugins.unshift(
|
|
47
47
|
await reactDocgen({
|
|
48
48
|
include: useReactDocgenTypescript ? /\.(mjs|jsx?)$/ : /\.(mjs|tsx?|jsx?)$/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-vite",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.2",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"!src/**/*"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@storybook/builder-vite": "11.0.0-beta.
|
|
56
|
-
"@storybook/react": "11.0.0-beta.
|
|
55
|
+
"@storybook/builder-vite": "11.0.0-beta.2",
|
|
56
|
+
"@storybook/react": "11.0.0-beta.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.
|
|
59
|
+
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.7.0",
|
|
60
60
|
"@rollup/pluginutils": "^5.0.2",
|
|
61
61
|
"@types/node": "^22.19.1",
|
|
62
62
|
"magic-string": "^1.1.0",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"vite": "^7.0.4"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.7.0
|
|
70
|
+
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.7.0",
|
|
71
71
|
"react": "^18.0.0 || ^19.0.0",
|
|
72
72
|
"react-docgen": "^8.0.2",
|
|
73
73
|
"react-docgen-typescript": "^2.2.2",
|
|
74
74
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
75
|
-
"storybook": "^11.0.0-beta.
|
|
75
|
+
"storybook": "^11.0.0-beta.2",
|
|
76
76
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
77
77
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
78
78
|
},
|