@storybook/nextjs-vite 10.0.0-beta.5 → 10.0.0-beta.7
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-MDGZW3NG.js → chunk-HR43PPVR.js} +6 -6
- package/dist/_node-chunks/{dist-67VPEUXU.js → dist-3BEM2YKL.js} +7 -7
- package/dist/_node-chunks/{jiti-BQF4OAP3.js → jiti-ILLFXEPL.js} +7 -7
- package/dist/index.js +28 -20
- package/dist/node/index.js +7 -7
- package/dist/preset.js +9 -9
- package/dist/preview.d.ts +19 -3
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +5 -5
- package/dist/preview.d.tsx +0 -19
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.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_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.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
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HR43PPVR.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
19
19
|
var require_identity = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name,
|
|
16
16
|
__require,
|
|
17
17
|
__toESM
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HR43PPVR.js";
|
|
19
19
|
|
|
20
20
|
// ../../node_modules/jiti/dist/jiti.cjs
|
|
21
21
|
var require_jiti = __commonJS({
|
package/dist/index.js
CHANGED
|
@@ -12995,8 +12995,27 @@ __export(entry_preview_exports, {
|
|
|
12995
12995
|
render: () => render,
|
|
12996
12996
|
renderToCanvas: () => renderToCanvas
|
|
12997
12997
|
});
|
|
12998
|
-
var import_semver = __toESM(require_semver2(), 1);
|
|
12999
12998
|
import * as React5 from "react";
|
|
12999
|
+
|
|
13000
|
+
// ../../node_modules/@storybook/global/dist/index.mjs
|
|
13001
|
+
var scope = (() => {
|
|
13002
|
+
let win;
|
|
13003
|
+
if (typeof window !== "undefined") {
|
|
13004
|
+
win = window;
|
|
13005
|
+
} else if (typeof globalThis !== "undefined") {
|
|
13006
|
+
win = globalThis;
|
|
13007
|
+
} else if (typeof global !== "undefined") {
|
|
13008
|
+
win = global;
|
|
13009
|
+
} else if (typeof self !== "undefined") {
|
|
13010
|
+
win = self;
|
|
13011
|
+
} else {
|
|
13012
|
+
win = {};
|
|
13013
|
+
}
|
|
13014
|
+
return win;
|
|
13015
|
+
})();
|
|
13016
|
+
|
|
13017
|
+
// ../../renderers/react/src/entry-preview.tsx
|
|
13018
|
+
var import_semver = __toESM(require_semver2(), 1);
|
|
13000
13019
|
import { configure } from "storybook/test";
|
|
13001
13020
|
|
|
13002
13021
|
// ../../renderers/react/src/act-compat.ts
|
|
@@ -13078,25 +13097,6 @@ var render = /* @__PURE__ */ __name((args, context) => {
|
|
|
13078
13097
|
|
|
13079
13098
|
// ../../renderers/react/src/renderToCanvas.tsx
|
|
13080
13099
|
import React3, { Fragment, Component as ReactComponent, StrictMode } from "react";
|
|
13081
|
-
|
|
13082
|
-
// ../../node_modules/@storybook/global/dist/index.mjs
|
|
13083
|
-
var scope = (() => {
|
|
13084
|
-
let win;
|
|
13085
|
-
if (typeof window !== "undefined") {
|
|
13086
|
-
win = window;
|
|
13087
|
-
} else if (typeof globalThis !== "undefined") {
|
|
13088
|
-
win = globalThis;
|
|
13089
|
-
} else if (typeof global !== "undefined") {
|
|
13090
|
-
win = global;
|
|
13091
|
-
} else if (typeof self !== "undefined") {
|
|
13092
|
-
win = self;
|
|
13093
|
-
} else {
|
|
13094
|
-
win = {};
|
|
13095
|
-
}
|
|
13096
|
-
return win;
|
|
13097
|
-
})();
|
|
13098
|
-
|
|
13099
|
-
// ../../renderers/react/src/renderToCanvas.tsx
|
|
13100
13100
|
var { FRAMEWORK_OPTIONS } = scope;
|
|
13101
13101
|
var _ErrorBoundary = class _ErrorBoundary extends ReactComponent {
|
|
13102
13102
|
constructor() {
|
|
@@ -13205,6 +13205,14 @@ var decorators = [
|
|
|
13205
13205
|
throw new Error("React Server Components require React >= 18.3");
|
|
13206
13206
|
}
|
|
13207
13207
|
return React5.createElement(React5.Suspense, null, story());
|
|
13208
|
+
},
|
|
13209
|
+
(story, context) => {
|
|
13210
|
+
if (context.tags?.includes("test-fn") && !scope.FEATURES?.experimentalTestSyntax) {
|
|
13211
|
+
throw new Error(
|
|
13212
|
+
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax"
|
|
13213
|
+
);
|
|
13214
|
+
}
|
|
13215
|
+
return story();
|
|
13208
13216
|
}
|
|
13209
13217
|
];
|
|
13210
13218
|
var parameters = {
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-HR43PPVR.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-HR43PPVR.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/postcss-load-config/node_modules/lilconfig/src/index.js
|
|
20
20
|
var require_src = __commonJS({
|
|
@@ -426,7 +426,7 @@ var require_req = __commonJS({
|
|
|
426
426
|
}
|
|
427
427
|
if (jiti === void 0) {
|
|
428
428
|
try {
|
|
429
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
429
|
+
jiti = (await import("./_node-chunks/jiti-ILLFXEPL.js")).default;
|
|
430
430
|
} catch (error) {
|
|
431
431
|
importError.push(error);
|
|
432
432
|
}
|
|
@@ -598,7 +598,7 @@ var require_src2 = __commonJS({
|
|
|
598
598
|
async function yamlLoader(_, content) {
|
|
599
599
|
if (!yaml) {
|
|
600
600
|
try {
|
|
601
|
-
yaml = await import("./_node-chunks/dist-
|
|
601
|
+
yaml = await import("./_node-chunks/dist-3BEM2YKL.js");
|
|
602
602
|
} catch (e) {
|
|
603
603
|
throw new Error(
|
|
604
604
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
package/dist/preview.d.ts
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Addon_DecoratorFunction, LoaderFunction } from 'storybook/internal/types';
|
|
2
|
+
import { ReactRenderer } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
+
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
+
declare const parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
excludeDecorators: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
react: {
|
|
13
|
+
rootOptions: {
|
|
14
|
+
onCaughtError(error: unknown): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { decorators, loaders, parameters };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jwqmkl86q4g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jwqmkl86q4g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jwqmkl86q4g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jwqmkl86q4g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jwqmkl86q4g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jwqmkl86q4g.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-HR43PPVR.js";
|
|
13
13
|
|
|
14
14
|
// src/vite-plugin/index.ts
|
|
15
15
|
import { createRequire } from "node:module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.7",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@storybook/builder-vite": "10.0.0-beta.
|
|
82
|
-
"@storybook/react": "10.0.0-beta.
|
|
83
|
-
"@storybook/react-vite": "10.0.0-beta.
|
|
81
|
+
"@storybook/builder-vite": "10.0.0-beta.7",
|
|
82
|
+
"@storybook/react": "10.0.0-beta.7",
|
|
83
|
+
"@storybook/react-vite": "10.0.0-beta.7",
|
|
84
84
|
"styled-jsx": "5.1.6",
|
|
85
85
|
"vite-plugin-storybook-nextjs": "^2.0.7"
|
|
86
86
|
},
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"next": "^14.1.0 || ^15.0.0",
|
|
95
95
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
96
96
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
97
|
-
"storybook": "^10.0.0-beta.
|
|
97
|
+
"storybook": "^10.0.0-beta.7",
|
|
98
98
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependenciesMeta": {
|
package/dist/preview.d.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Addon_DecoratorFunction, LoaderFunction } from 'storybook/internal/types';
|
|
2
|
-
import { ReactRenderer } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
-
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
-
declare const parameters: {
|
|
7
|
-
docs: {
|
|
8
|
-
source: {
|
|
9
|
-
excludeDecorators: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
react: {
|
|
13
|
-
rootOptions: {
|
|
14
|
-
onCaughtError(error: unknown): void;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { decorators, loaders, parameters };
|