@storybook/nextjs-vite 10.0.0-beta.1 → 10.0.0-beta.11
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/_browser-chunks/{chunk-2RWWBM6A.js → chunk-I34DATQB.js} +0 -4
- package/dist/_node-chunks/{chunk-IRJBSU6R.js → chunk-PV5XU2CA.js} +6 -6
- package/dist/_node-chunks/{dist-DJQHMCL2.js → dist-NXTPHIJH.js} +8 -8
- package/dist/_node-chunks/{jiti-B65Y7N6M.js → jiti-4KRK5JFB.js} +12342 -12287
- package/dist/config/preview.js +3 -0
- package/dist/index.js +3853 -3544
- package/dist/node/index.js +7 -7
- package/dist/preset.js +2576 -102
- package/dist/preview.d.ts +19 -3
- package/dist/preview.js +1 -1
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +9 -6
- package/template/cli/js/Button.stories.js +1 -1
- package/template/cli/ts/Button.stories.ts +1 -1
- package/dist/preview.d.tsx +0 -19
|
@@ -14,10 +14,6 @@ import { createNavigation } from "@storybook/nextjs-vite/navigation.mock";
|
|
|
14
14
|
import { createRouter } from "@storybook/nextjs-vite/router.mock";
|
|
15
15
|
import { isNextRouterError } from "next/dist/client/components/is-next-router-error";
|
|
16
16
|
|
|
17
|
-
// src/config/preview.ts
|
|
18
|
-
import { setConfig } from "next/config";
|
|
19
|
-
setConfig(process.env.__NEXT_RUNTIME_CONFIG);
|
|
20
|
-
|
|
21
17
|
// src/head-manager/decorator.tsx
|
|
22
18
|
import * as React2 from "react";
|
|
23
19
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_q2ak3cgnwtp from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q2ak3cgnwtp from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q2ak3cgnwtp.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q2ak3cgnwtp.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp.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_q2ak3cgnwtp from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_q2ak3cgnwtp from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_q2ak3cgnwtp.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_q2ak3cgnwtp.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_q2ak3cgnwtp.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-PV5XU2CA.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
19
19
|
var require_identity = __commonJS({
|
|
@@ -1291,7 +1291,7 @@ ${indent}`) + "'";
|
|
|
1291
1291
|
}
|
|
1292
1292
|
function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
|
1293
1293
|
const { blockQuote, commentString, lineWidth } = ctx.options;
|
|
1294
|
-
if (!blockQuote || /\n[\t ]+$/.test(value)
|
|
1294
|
+
if (!blockQuote || /\n[\t ]+$/.test(value)) {
|
|
1295
1295
|
return quotedString(value, ctx);
|
|
1296
1296
|
}
|
|
1297
1297
|
const indent = ctx.indent || (ctx.forceBlockIndent || containsDocumentMarker(value) ? " " : "");
|