@storybook/nextjs-vite 10.5.0-alpha.5 → 10.5.0-alpha.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./chunk-SL3VIQZ3.js";
3
+ } from "./chunk-UAWMPV5J.js";
4
4
 
5
5
  // src/preview.tsx
6
6
  var preview_exports = {};
@@ -4,7 +4,11 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __commonJS = (cb, mod) => function() {
7
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
7
+ try {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ } catch (e) {
10
+ throw mod = 0, e;
11
+ }
8
12
  };
9
13
  var __export = (target, all) => {
10
14
  for (var name in all)
@@ -1,4 +1,4 @@
1
- import "./chunk-SL3VIQZ3.js";
1
+ import "./chunk-UAWMPV5J.js";
2
2
 
3
3
  // ../../lib/react-dom-shim/dist/react-18.js
4
4
  import * as React from "react";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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
  __esm,
15
15
  __require,
16
16
  __toESM
17
- } from "./chunk-UY4A43A2.js";
17
+ } from "./chunk-LGYSBOOR.js";
18
18
 
19
19
  // ../../../node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs
20
20
  import r from "node:path";
@@ -523,7 +523,7 @@ var Le, i2, Z, E2, $e, G, fe, q, K, ae, P, Q, ce, ge, Re, ke, me, C, I2, Se, ee,
523
523
  (function(e5) {
524
524
  e5[e5.InvalidSymbol = 1] = "InvalidSymbol", e5[e5.InvalidNumberFormat = 2] = "InvalidNumberFormat", e5[e5.PropertyNameExpected = 3] = "PropertyNameExpected", e5[e5.ValueExpected = 4] = "ValueExpected", e5[e5.ColonExpected = 5] = "ColonExpected", e5[e5.CommaExpected = 6] = "CommaExpected", e5[e5.CloseBraceExpected = 7] = "CloseBraceExpected", e5[e5.CloseBracketExpected = 8] = "CloseBracketExpected", e5[e5.EndOfFileExpected = 9] = "EndOfFileExpected", e5[e5.InvalidCommentToken = 10] = "InvalidCommentToken", e5[e5.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e5[e5.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e5[e5.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e5[e5.InvalidUnicode = 14] = "InvalidUnicode", e5[e5.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e5[e5.InvalidCharacter = 16] = "InvalidCharacter";
525
525
  })(ke || (ke = {}));
526
- me = i2((e5, t3) => Re($e(t3, e5, "utf8")), "readJsonc"), C = Symbol("implicitBaseUrl"), I2 = "${configDir}", Se = i2(() => {
526
+ me = i2((e5, t3) => Re($e(t3, e5, "utf8")), "readJsonc"), C = /* @__PURE__ */ Symbol("implicitBaseUrl"), I2 = "${configDir}", Se = i2(() => {
527
527
  let { findPnpApi: e5 } = he;
528
528
  return e5 && e5(process.cwd());
529
529
  }, "getPnpApi"), ee = i2((e5, t3, s4, n2) => {
@@ -967,11 +967,203 @@ esbuild in this environment because esbuild relies on this invariant. This
967
967
  is not a problem with esbuild. You need to fix your environment instead.
968
968
  `);
969
969
  function readUInt32LE(buffer, offset) {
970
- return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
970
+ return (buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24) >>> 0;
971
971
  }
972
972
  function writeUInt32LE(buffer, value, offset) {
973
973
  buffer[offset++] = value, buffer[offset++] = value >> 8, buffer[offset++] = value >> 16, buffer[offset++] = value >> 24;
974
974
  }
975
+ var fromCharCode = String.fromCharCode;
976
+ function throwSyntaxError(bytes, index, message) {
977
+ let c2 = bytes[index], line = 1, column = 0;
978
+ for (let i5 = 0; i5 < index; i5++)
979
+ bytes[i5] === 10 ? (line++, column = 0) : column++;
980
+ throw new SyntaxError(
981
+ message || (index === bytes.length ? "Unexpected end of input while parsing JSON" : c2 >= 32 && c2 <= 126 ? `Unexpected character ${fromCharCode(c2)} in JSON at position ${index} (line ${line}, column ${column})` : `Unexpected byte 0x${c2.toString(16)} in JSON at position ${index} (line ${line}, column ${column})`)
982
+ );
983
+ }
984
+ function JSON_parse(bytes) {
985
+ if (!(bytes instanceof Uint8Array))
986
+ throw new Error("JSON input must be a Uint8Array");
987
+ let propertyStack = [], objectStack = [], stateStack = [], length = bytes.length, property = null, state = 0, object, i5 = 0;
988
+ for (; i5 < length; ) {
989
+ let c2 = bytes[i5++];
990
+ if (c2 <= 32)
991
+ continue;
992
+ let value;
993
+ switch (state === 2 && property === null && c2 !== 34 && c2 !== 125 && throwSyntaxError(bytes, --i5), c2) {
994
+ // True
995
+ case 116: {
996
+ (bytes[i5++] !== 114 || bytes[i5++] !== 117 || bytes[i5++] !== 101) && throwSyntaxError(bytes, --i5), value = !0;
997
+ break;
998
+ }
999
+ // False
1000
+ case 102: {
1001
+ (bytes[i5++] !== 97 || bytes[i5++] !== 108 || bytes[i5++] !== 115 || bytes[i5++] !== 101) && throwSyntaxError(bytes, --i5), value = !1;
1002
+ break;
1003
+ }
1004
+ // Null
1005
+ case 110: {
1006
+ (bytes[i5++] !== 117 || bytes[i5++] !== 108 || bytes[i5++] !== 108) && throwSyntaxError(bytes, --i5), value = null;
1007
+ break;
1008
+ }
1009
+ // Number begin
1010
+ case 45:
1011
+ case 46:
1012
+ case 48:
1013
+ case 49:
1014
+ case 50:
1015
+ case 51:
1016
+ case 52:
1017
+ case 53:
1018
+ case 54:
1019
+ case 55:
1020
+ case 56:
1021
+ case 57: {
1022
+ let index = i5;
1023
+ for (value = fromCharCode(c2), c2 = bytes[i5]; ; ) {
1024
+ switch (c2) {
1025
+ case 43:
1026
+ case 45:
1027
+ case 46:
1028
+ case 48:
1029
+ case 49:
1030
+ case 50:
1031
+ case 51:
1032
+ case 52:
1033
+ case 53:
1034
+ case 54:
1035
+ case 55:
1036
+ case 56:
1037
+ case 57:
1038
+ case 101:
1039
+ case 69: {
1040
+ value += fromCharCode(c2), c2 = bytes[++i5];
1041
+ continue;
1042
+ }
1043
+ }
1044
+ break;
1045
+ }
1046
+ value = +value, isNaN(value) && throwSyntaxError(bytes, --index, "Invalid number");
1047
+ break;
1048
+ }
1049
+ // String begin
1050
+ case 34: {
1051
+ for (value = ""; i5 >= length && throwSyntaxError(bytes, length), c2 = bytes[i5++], c2 !== 34; )
1052
+ if (c2 === 92)
1053
+ switch (bytes[i5++]) {
1054
+ // Normal escape sequence
1055
+ case 34:
1056
+ value += '"';
1057
+ break;
1058
+ case 47:
1059
+ value += "/";
1060
+ break;
1061
+ case 92:
1062
+ value += "\\";
1063
+ break;
1064
+ case 98:
1065
+ value += "\b";
1066
+ break;
1067
+ case 102:
1068
+ value += "\f";
1069
+ break;
1070
+ case 110:
1071
+ value += `
1072
+ `;
1073
+ break;
1074
+ case 114:
1075
+ value += "\r";
1076
+ break;
1077
+ case 116:
1078
+ value += " ";
1079
+ break;
1080
+ // Unicode escape sequence
1081
+ case 117: {
1082
+ let code = 0;
1083
+ for (let j2 = 0; j2 < 4; j2++)
1084
+ c2 = bytes[i5++], code <<= 4, c2 >= 48 && c2 <= 57 ? code |= c2 - 48 : c2 >= 97 && c2 <= 102 ? code |= c2 + -87 : c2 >= 65 && c2 <= 70 ? code |= c2 + -55 : throwSyntaxError(bytes, --i5);
1085
+ value += fromCharCode(code);
1086
+ break;
1087
+ }
1088
+ // Invalid escape sequence
1089
+ default:
1090
+ throwSyntaxError(bytes, --i5);
1091
+ break;
1092
+ }
1093
+ else if (c2 <= 127)
1094
+ value += fromCharCode(c2);
1095
+ else if ((c2 & 224) === 192)
1096
+ value += fromCharCode((c2 & 31) << 6 | bytes[i5++] & 63);
1097
+ else if ((c2 & 240) === 224)
1098
+ value += fromCharCode((c2 & 15) << 12 | (bytes[i5++] & 63) << 6 | bytes[i5++] & 63);
1099
+ else if ((c2 & 248) == 240) {
1100
+ let codePoint = (c2 & 7) << 18 | (bytes[i5++] & 63) << 12 | (bytes[i5++] & 63) << 6 | bytes[i5++] & 63;
1101
+ codePoint > 65535 && (codePoint -= 65536, value += fromCharCode(codePoint >> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), value += fromCharCode(codePoint);
1102
+ }
1103
+ value[0];
1104
+ break;
1105
+ }
1106
+ // Array begin
1107
+ case 91: {
1108
+ value = [], propertyStack.push(property), objectStack.push(object), stateStack.push(state), property = null, object = value, state = 1;
1109
+ continue;
1110
+ }
1111
+ // Object begin
1112
+ case 123: {
1113
+ value = {}, propertyStack.push(property), objectStack.push(object), stateStack.push(state), property = null, object = value, state = 2;
1114
+ continue;
1115
+ }
1116
+ // Array end
1117
+ case 93: {
1118
+ state !== 1 && throwSyntaxError(bytes, --i5), value = object, property = propertyStack.pop(), object = objectStack.pop(), state = stateStack.pop();
1119
+ break;
1120
+ }
1121
+ // Object end
1122
+ case 125: {
1123
+ state !== 2 && throwSyntaxError(bytes, --i5), value = object, property = propertyStack.pop(), object = objectStack.pop(), state = stateStack.pop();
1124
+ break;
1125
+ }
1126
+ default:
1127
+ throwSyntaxError(bytes, --i5);
1128
+ }
1129
+ for (c2 = bytes[i5]; c2 <= 32; )
1130
+ c2 = bytes[++i5];
1131
+ switch (state) {
1132
+ case 0: {
1133
+ if (i5 === length)
1134
+ return value;
1135
+ break;
1136
+ }
1137
+ case 1: {
1138
+ if (object.push(value), c2 === 44) {
1139
+ i5++;
1140
+ continue;
1141
+ }
1142
+ if (c2 === 93)
1143
+ continue;
1144
+ break;
1145
+ }
1146
+ case 2: {
1147
+ if (property === null) {
1148
+ if (property = value, c2 === 58) {
1149
+ i5++;
1150
+ continue;
1151
+ }
1152
+ } else {
1153
+ if (object[property] = value, property = null, c2 === 44) {
1154
+ i5++;
1155
+ continue;
1156
+ }
1157
+ if (c2 === 125)
1158
+ continue;
1159
+ }
1160
+ break;
1161
+ }
1162
+ }
1163
+ break;
1164
+ }
1165
+ throwSyntaxError(bytes, i5);
1166
+ }
975
1167
  var quote = JSON.stringify, buildLogLevelDefault = "warning", transformLogLevelDefault = "silent";
976
1168
  function validateAndJoinStringArray(values, what) {
977
1169
  let toJoin = [];
@@ -1186,8 +1378,8 @@ is not a problem with esbuild. You need to fix your environment instead.
1186
1378
  if (isFirstPacket) {
1187
1379
  isFirstPacket = !1;
1188
1380
  let binaryVersion = String.fromCharCode(...bytes);
1189
- if (binaryVersion !== "0.27.0")
1190
- throw new Error(`Cannot start service: Host version "0.27.0" does not match binary version ${quote(binaryVersion)}`);
1381
+ if (binaryVersion !== "0.28.1")
1382
+ throw new Error(`Cannot start service: Host version "0.28.1" does not match binary version ${quote(binaryVersion)}`);
1191
1383
  return;
1192
1384
  }
1193
1385
  let packet = decodePacket(bytes);
@@ -1398,7 +1590,7 @@ is not a problem with esbuild. You need to fix your environment instead.
1398
1590
  metafile: void 0,
1399
1591
  mangleCache: void 0
1400
1592
  }, originalErrors = result.errors.slice(), originalWarnings = result.warnings.slice();
1401
- response.outputFiles && (result.outputFiles = response.outputFiles.map(convertOutputFiles)), response.metafile && (result.metafile = JSON.parse(response.metafile)), response.mangleCache && (result.mangleCache = response.mangleCache), response.writeToStdout !== void 0 && console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, "")), runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
1593
+ response.outputFiles && (result.outputFiles = response.outputFiles.map(convertOutputFiles)), response.metafile && response.metafile.length && (result.metafile = parseJSON(response.metafile)), response.mangleCache && (result.mangleCache = response.mangleCache), response.writeToStdout !== void 0 && console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, "")), runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
1402
1594
  if (originalErrors.length > 0 || onEndErrors.length > 0) {
1403
1595
  let error = failureErrorWithLog("Build failed", originalErrors.concat(onEndErrors), originalWarnings.concat(onEndWarnings));
1404
1596
  return callback2(error, null, onEndErrors, onEndWarnings);
@@ -1873,6 +2065,15 @@ ${file}:${line}:${column}: ERROR: ${pluginText}${e5.text}`;
1873
2065
  let result = regexp.source;
1874
2066
  return regexp.flags && (result = `(?${regexp.flags})${result}`), result;
1875
2067
  }
2068
+ function parseJSON(bytes) {
2069
+ let text;
2070
+ try {
2071
+ text = decodeUTF8(bytes);
2072
+ } catch {
2073
+ return JSON_parse(bytes);
2074
+ }
2075
+ return JSON.parse(text);
2076
+ }
1876
2077
  var fs = __require("fs"), os = __require("os"), path = __require("path"), ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH, isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild", packageDarwin_arm64 = "@esbuild/darwin-arm64", packageDarwin_x64 = "@esbuild/darwin-x64", knownWindowsPackages = {
1877
2078
  "win32 arm64 LE": "@esbuild/win32-arm64",
1878
2079
  "win32 ia32 LE": "@esbuild/win32-ia32",
@@ -2022,7 +2223,7 @@ for your current platform.`);
2022
2223
  "node_modules",
2023
2224
  ".cache",
2024
2225
  "esbuild",
2025
- `pnpapi-${pkg.replace("/", "-")}-0.27.0-${path.basename(subpath)}`
2226
+ `pnpapi-${pkg.replace("/", "-")}-0.28.1-${path.basename(subpath)}`
2026
2227
  );
2027
2228
  return fs.existsSync(binTargetPath) || (fs.mkdirSync(path.dirname(binTargetPath), { recursive: !0 }), fs.copyFileSync(binPath, binTargetPath), fs.chmodSync(binTargetPath, 493)), { binPath: binTargetPath, isWASM };
2028
2229
  }
@@ -2039,7 +2240,7 @@ for your current platform.`);
2039
2240
  // <v12.17.0 does not work
2040
2241
  (+major < 12 || +major == 12 && +minor < 17 || +major == 13 && +minor < 13) && (worker_threads = void 0);
2041
2242
  }
2042
- var _a, isInternalWorkerThread = ((_a = worker_threads?.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.0", esbuildCommandAndArgs = () => {
2243
+ var _a, isInternalWorkerThread = ((_a = worker_threads?.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.1", esbuildCommandAndArgs = () => {
2043
2244
  if (!ESBUILD_BINARY_PATH && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib"))
2044
2245
  throw new Error(
2045
2246
  `The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
@@ -2093,7 +2294,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2093
2294
  callback(null);
2094
2295
  }
2095
2296
  }
2096
- }, version = "0.27.0", build = (options) => ensureServiceIsRunning().build(options), context = (buildOptions) => ensureServiceIsRunning().context(buildOptions), transform = (input, options) => ensureServiceIsRunning().transform(input, options), formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options), analyzeMetafile = (messages, options) => ensureServiceIsRunning().analyzeMetafile(messages, options), buildSync = (options) => {
2297
+ }, version = "0.28.1", build = (options) => ensureServiceIsRunning().build(options), context = (buildOptions) => ensureServiceIsRunning().context(buildOptions), transform = (input, options) => ensureServiceIsRunning().transform(input, options), formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options), analyzeMetafile = (messages, options) => ensureServiceIsRunning().analyzeMetafile(messages, options), buildSync = (options) => {
2097
2298
  if (worker_threads && !isInternalWorkerThread)
2098
2299
  return workerThreadService || (workerThreadService = startWorkerThreadService(worker_threads)), workerThreadService.buildSync(options);
2099
2300
  let result;
@@ -2160,7 +2361,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2160
2361
  return ensureServiceIsRunning(), initializeWasCalled = !0, Promise.resolve();
2161
2362
  }, defaultWD = process.cwd(), longLivedService, stopService, ensureServiceIsRunning = () => {
2162
2363
  if (longLivedService) return longLivedService;
2163
- let [command, args] = esbuildCommandAndArgs(), child = child_process.spawn(command, args.concat("--service=0.27.0", "--ping"), {
2364
+ let [command, args] = esbuildCommandAndArgs(), child = child_process.spawn(command, args.concat("--service=0.28.1", "--ping"), {
2164
2365
  windowsHide: !0,
2165
2366
  stdio: ["pipe", "pipe", "inherit"],
2166
2367
  cwd: defaultWD
@@ -2244,7 +2445,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2244
2445
  esbuild: node_exports
2245
2446
  });
2246
2447
  callback(service);
2247
- let stdout = child_process.execFileSync(command, args.concat("--service=0.27.0"), {
2448
+ let stdout = child_process.execFileSync(command, args.concat("--service=0.28.1"), {
2248
2449
  cwd: defaultWD,
2249
2450
  windowsHide: !0,
2250
2451
  input: stdin,
@@ -2257,7 +2458,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
2257
2458
  readFromStdout(stdout), afterClose(null);
2258
2459
  }, randomFileName = () => path2.join(os2.tmpdir(), `esbuild-${crypto.randomBytes(32).toString("hex")}`), workerThreadService = null, startWorkerThreadService = (worker_threads2) => {
2259
2460
  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel(), worker = new worker_threads2.Worker(__filename, {
2260
- workerData: { workerPort, defaultWD, esbuildVersion: "0.27.0" },
2461
+ workerData: { workerPort, defaultWD, esbuildVersion: "0.28.1" },
2261
2462
  transferList: [workerPort],
2262
2463
  // From node's documentation: https://nodejs.org/api/worker_threads.html
2263
2464
  //
@@ -4595,7 +4796,7 @@ var import_esbuild, Pt, f2, Ne2, Ie2, Yt, Me2, $e2, Ue2, me2, ae2, ee2, nn2, rn,
4595
4796
  f2(Be2, "u");
4596
4797
  f2(D, "o");
4597
4798
  typeof WebAssembly < "u" && (async () => {
4598
- let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-NWDLPGPA.js");
4799
+ let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-JUYGX633.js");
4599
4800
  await e5, Se2 = s4;
4600
4801
  })();
4601
4802
  Pe2 = f2((s4, e5) => Se2 ? Se2(s4, e5) : fn(s4, e5), "parseEsm"), gn = f2((s4) => {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -20,11 +20,20 @@ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof
20
20
  if (typeof require < "u") return require.apply(this, arguments);
21
21
  throw Error('Dynamic require of "' + x + '" is not supported');
22
22
  });
23
- var __esm = (fn, res) => function() {
24
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
23
+ var __esm = (fn, res, err) => function() {
24
+ if (err) throw err[0];
25
+ try {
26
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
27
+ } catch (e) {
28
+ throw err = [e], e;
29
+ }
25
30
  };
26
31
  var __commonJS = (cb, mod) => function() {
27
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
32
+ try {
33
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
34
+ } catch (e) {
35
+ throw mod = 0, e;
36
+ }
28
37
  };
29
38
  var __copyProps = (to, from, except, desc) => {
30
39
  if (from && typeof from == "object" || typeof from == "function")
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,13 +12,13 @@ var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
12
12
  import {
13
13
  __commonJS,
14
14
  __require
15
- } from "./chunk-UY4A43A2.js";
15
+ } from "./chunk-LGYSBOOR.js";
16
16
 
17
17
  // ../../../node_modules/yaml/dist/nodes/identity.js
18
18
  var require_identity = __commonJS({
19
19
  "../../../node_modules/yaml/dist/nodes/identity.js"(exports) {
20
20
  "use strict";
21
- var ALIAS = Symbol.for("yaml.alias"), DOC = Symbol.for("yaml.document"), MAP = Symbol.for("yaml.map"), PAIR = Symbol.for("yaml.pair"), SCALAR = Symbol.for("yaml.scalar"), SEQ = Symbol.for("yaml.seq"), NODE_TYPE = Symbol.for("yaml.node.type"), isAlias = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === ALIAS, isDocument = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === DOC, isMap = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === MAP, isPair = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === PAIR, isScalar = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === SCALAR, isSeq = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === SEQ;
21
+ var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias"), DOC = /* @__PURE__ */ Symbol.for("yaml.document"), MAP = /* @__PURE__ */ Symbol.for("yaml.map"), PAIR = /* @__PURE__ */ Symbol.for("yaml.pair"), SCALAR = /* @__PURE__ */ Symbol.for("yaml.scalar"), SEQ = /* @__PURE__ */ Symbol.for("yaml.seq"), NODE_TYPE = /* @__PURE__ */ Symbol.for("yaml.node.type"), isAlias = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === ALIAS, isDocument = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === DOC, isMap = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === MAP, isPair = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === PAIR, isScalar = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === SCALAR, isSeq = (node) => !!node && typeof node == "object" && node[NODE_TYPE] === SEQ;
22
22
  function isCollection(node) {
23
23
  if (node && typeof node == "object")
24
24
  switch (node[NODE_TYPE]) {
@@ -63,7 +63,7 @@ var require_identity = __commonJS({
63
63
  var require_visit = __commonJS({
64
64
  "../../../node_modules/yaml/dist/visit.js"(exports) {
65
65
  "use strict";
66
- var identity = require_identity(), BREAK = Symbol("break visit"), SKIP = Symbol("skip children"), REMOVE = Symbol("remove node");
66
+ var identity = require_identity(), BREAK = /* @__PURE__ */ Symbol("break visit"), SKIP = /* @__PURE__ */ Symbol("skip children"), REMOVE = /* @__PURE__ */ Symbol("remove node");
67
67
  function visit(node, visitor) {
68
68
  let visitor_ = initVisitor(visitor);
69
69
  identity.isDocument(node) ? visit_(null, node.contents, visitor_, Object.freeze([node])) === REMOVE && (node.contents = null) : visit_(null, node, visitor_, Object.freeze([]));
@@ -4071,7 +4071,7 @@ var require_cst_stringify = __commonJS({
4071
4071
  var require_cst_visit = __commonJS({
4072
4072
  "../../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
4073
4073
  "use strict";
4074
- var BREAK = Symbol("break visit"), SKIP = Symbol("skip children"), REMOVE = Symbol("remove item");
4074
+ var BREAK = /* @__PURE__ */ Symbol("break visit"), SKIP = /* @__PURE__ */ Symbol("skip children"), REMOVE = /* @__PURE__ */ Symbol("remove item");
4075
4075
  function visit(cst, visitor) {
4076
4076
  "type" in cst && cst.type === "document" && (cst = { start: cst.start, value: cst.value }), _visit(Object.freeze([]), cst, visitor);
4077
4077
  }
@@ -5321,9 +5321,6 @@ var require_parser = __commonJS({
5321
5321
  break;
5322
5322
  case "newline":
5323
5323
  this.onKeyLine = !1;
5324
- // fallthrough
5325
- case "space":
5326
- case "comment":
5327
5324
  default:
5328
5325
  token.end ? token.end.push(this.sourceToken) : token.end = [this.sourceToken], this.type === "newline" && (yield* this.pop());
5329
5326
  }
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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
  __esm,
15
15
  __require,
16
16
  __toESM
17
- } from "./chunk-UY4A43A2.js";
17
+ } from "./chunk-LGYSBOOR.js";
18
18
 
19
19
  // ../../../node_modules/jiti/dist/jiti.cjs
20
20
  var require_jiti = __commonJS({
@@ -2106,7 +2106,6 @@ Defaulting to 2020, but this will stop working in the future.`)), t3.ecmaVersion
2106
2106
  } else i2 = e4;
2107
2107
  return i2;
2108
2108
  }
2109
- Symbol.for("ufo:protocolRelative");
2110
2109
  let me = /^[A-Za-z]:\//;
2111
2110
  function pathe_M_eThtNZ_normalizeWindowsPath(e3 = "") {
2112
2111
  return e3 && e3.replace(/\\/g, "/").replace(me, (e4) => e4.toUpperCase());
@@ -2647,7 +2646,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
2647
2646
  if (typeof e3 != "string") throw new TypeError("Expected a string");
2648
2647
  return e3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2649
2648
  }
2650
- let ct = /* @__PURE__ */ new Set(["/", "\\", void 0]), pt = Symbol.for("pathe:normalizedAlias"), lt = /[/\\]/;
2649
+ let ct = /* @__PURE__ */ new Set(["/", "\\", void 0]), pt = /* @__PURE__ */ Symbol.for("pathe:normalizedAlias"), lt = /[/\\]/;
2651
2650
  function normalizeAliases(e3) {
2652
2651
  if (e3[pt]) return e3;
2653
2652
  let t3 = Object.fromEntries(Object.entries(e3).sort(([e4], [t4]) => (function(e5, t5) {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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
  __esm
14
- } from "./chunk-UY4A43A2.js";
14
+ } from "./chunk-LGYSBOOR.js";
15
15
 
16
16
  // ../../../node_modules/tsx/dist/lexer-DQCqS3nf.mjs
17
17
  function F(A, E = "@") {
@@ -1,4 +1,4 @@
1
- import "../../_browser-chunks/chunk-SL3VIQZ3.js";
1
+ import "../../_browser-chunks/chunk-UAWMPV5J.js";
2
2
 
3
3
  // src/export-mocks/cache/index.ts
4
4
  import { fn } from "storybook/test";
@@ -1,4 +1,4 @@
1
- import "../../_browser-chunks/chunk-SL3VIQZ3.js";
1
+ import "../../_browser-chunks/chunk-UAWMPV5J.js";
2
2
 
3
3
  // src/export-mocks/headers/index.ts
4
4
  import { draftMode as originalDraftMode } from "next/dist/server/request/draft-mode.js";
@@ -1,4 +1,4 @@
1
- import "../../_browser-chunks/chunk-SL3VIQZ3.js";
1
+ import "../../_browser-chunks/chunk-UAWMPV5J.js";
2
2
 
3
3
  // src/export-mocks/link/index.tsx
4
4
  import React from "react";
@@ -1,4 +1,4 @@
1
- import "../../_browser-chunks/chunk-SL3VIQZ3.js";
1
+ import "../../_browser-chunks/chunk-UAWMPV5J.js";
2
2
 
3
3
  // src/export-mocks/navigation/index.ts
4
4
  import { NextjsRouterMocksNotAvailable } from "storybook/internal/preview-errors";
@@ -1,4 +1,4 @@
1
- import "../../_browser-chunks/chunk-SL3VIQZ3.js";
1
+ import "../../_browser-chunks/chunk-UAWMPV5J.js";
2
2
 
3
3
  // src/export-mocks/router/index.ts
4
4
  import { NextjsRouterMocksNotAvailable } from "storybook/internal/preview-errors";
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  preview_exports
3
- } from "./_browser-chunks/chunk-4ZRKYE2G.js";
3
+ } from "./_browser-chunks/chunk-342N7CWU.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __export,
7
7
  __toESM
8
- } from "./_browser-chunks/chunk-SL3VIQZ3.js";
8
+ } from "./_browser-chunks/chunk-UAWMPV5J.js";
9
9
 
10
10
  // ../../../node_modules/estraverse/estraverse.js
11
11
  var require_estraverse = __commonJS({
@@ -5968,8 +5968,8 @@ var require_dist = __commonJS({
5968
5968
  var require_react_is_production_min = __commonJS({
5969
5969
  "../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
5970
5970
  "use strict";
5971
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
5972
- u = Symbol.for("react.module.reference");
5971
+ var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
5972
+ u = /* @__PURE__ */ Symbol.for("react.module.reference");
5973
5973
  function v(a) {
5974
5974
  if (typeof a == "object" && a !== null) {
5975
5975
  var r = a.$$typeof;
@@ -6067,8 +6067,8 @@ var require_react_is_development = __commonJS({
6067
6067
  "use strict";
6068
6068
  process.env.NODE_ENV !== "production" && (function() {
6069
6069
  "use strict";
6070
- var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
6071
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
6070
+ var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = /* @__PURE__ */ Symbol.for("react.provider"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
6071
+ REACT_MODULE_REFERENCE = /* @__PURE__ */ Symbol.for("react.module.reference");
6072
6072
  function isValidElementType(type) {
6073
6073
  return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
6074
6074
  // types supported by any Flight configuration anywhere since
@@ -6309,7 +6309,7 @@ async function renderToCanvas({
6309
6309
  showException,
6310
6310
  forceRemount
6311
6311
  }, canvasElement) {
6312
- let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-PYSEDAWB.js"), Story = unboundStoryFn, content = storyContext.parameters.__isPortableStory ? React3.createElement(Story, { ...storyContext }) : React3.createElement(ErrorBoundary, { key: storyContext.id, showMain, showException }, React3.createElement(Story, { ...storyContext })), element = Wrapper ? React3.createElement(Wrapper, null, content) : content;
6312
+ let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-ODWMAYZK.js"), Story = unboundStoryFn, content = storyContext.parameters.__isPortableStory ? React3.createElement(Story, { ...storyContext }) : React3.createElement(ErrorBoundary, { key: storyContext.id, showMain, showException }, React3.createElement(Story, { ...storyContext })), element = Wrapper ? React3.createElement(Wrapper, null, content) : content;
6313
6313
  forceRemount && unmountElement(canvasElement);
6314
6314
  let act = await getAct({ disableAct: storyContext.viewMode === "docs" });
6315
6315
  return await new Promise(async (resolve, reject) => {
@@ -6411,7 +6411,7 @@ import {
6411
6411
  } from "storybook/internal/docs-tools";
6412
6412
 
6413
6413
  // ../../renderers/react/src/docs/lib/componentTypes.ts
6414
- var isMemo = (component) => component.$$typeof === Symbol.for("react.memo");
6414
+ var isMemo = (component) => component.$$typeof === /* @__PURE__ */ Symbol.for("react.memo");
6415
6415
 
6416
6416
  // ../../renderers/react/src/docs/lib/defaultValues/createDefaultValue.ts
6417
6417
  import {
@@ -6854,14 +6854,9 @@ function parse(value) {
6854
6854
  };
6855
6855
  if (ast.body[0] != null) {
6856
6856
  let rootNode = ast.body[0];
6857
- switch (rootNode.type) {
6858
- case "ExpressionStatement": {
6859
- let expressionResult = parseExpression(rootNode.expression);
6860
- expressionResult != null && (parsingResult = expressionResult);
6861
- break;
6862
- }
6863
- default:
6864
- break;
6857
+ if (rootNode.type === "ExpressionStatement") {
6858
+ let expressionResult = parseExpression(rootNode.expression);
6859
+ expressionResult != null && (parsingResult = expressionResult);
6865
6860
  }
6866
6861
  }
6867
6862
  return parsingResult;
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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-UY4A43A2.js";
12
+ import "../_node-chunks/chunk-LGYSBOOR.js";
13
13
 
14
14
  // src/node/index.ts
15
15
  function defineMain(config) {
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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 "./_node-chunks/chunk-UY4A43A2.js";
16
+ } from "./_node-chunks/chunk-LGYSBOOR.js";
17
17
 
18
18
  // ../../../node_modules/semver/internal/constants.js
19
19
  var require_constants = __commonJS({
@@ -776,7 +776,7 @@ var require_range = __commonJS({
776
776
  var require_comparator = __commonJS({
777
777
  "../../../node_modules/semver/classes/comparator.js"(exports, module) {
778
778
  "use strict";
779
- var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
779
+ var ANY = /* @__PURE__ */ Symbol("SemVer ANY"), Comparator = class _Comparator {
780
780
  static get ANY() {
781
781
  return ANY;
782
782
  }
@@ -1469,7 +1469,7 @@ var require_req = __commonJS({
1469
1469
  }
1470
1470
  if (tsx === void 0)
1471
1471
  try {
1472
- tsx = await import("./_node-chunks/api-XQS7SUZZ.js");
1472
+ tsx = await import("./_node-chunks/api-ZSZHSFPY.js");
1473
1473
  } catch (error) {
1474
1474
  importError.push(error);
1475
1475
  }
@@ -1479,7 +1479,7 @@ var require_req = __commonJS({
1479
1479
  }
1480
1480
  if (jiti === void 0)
1481
1481
  try {
1482
- jiti = (await import("./_node-chunks/jiti-POYKUMA2.js")).default;
1482
+ jiti = (await import("./_node-chunks/jiti-Z44567GY.js")).default;
1483
1483
  } catch (error) {
1484
1484
  importError.push(error);
1485
1485
  }
@@ -1596,7 +1596,7 @@ var require_src2 = __commonJS({
1596
1596
  async function yamlLoader(_, content) {
1597
1597
  if (!yaml)
1598
1598
  try {
1599
- yaml = await import("./_node-chunks/dist-YIK7GTLG.js");
1599
+ yaml = await import("./_node-chunks/dist-KWDHU6W2.js");
1600
1600
  } catch (e) {
1601
1601
  throw new Error(
1602
1602
  `'yaml' is required for the YAML configuration files. Make sure it is installed
package/dist/preview.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  decorators,
3
3
  loaders,
4
4
  parameters
5
- } from "./_browser-chunks/chunk-4ZRKYE2G.js";
6
- import "./_browser-chunks/chunk-SL3VIQZ3.js";
5
+ } from "./_browser-chunks/chunk-342N7CWU.js";
6
+ import "./_browser-chunks/chunk-UAWMPV5J.js";
7
7
  export {
8
8
  decorators,
9
9
  loaders,
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_9kt6mm902cg from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_9kt6mm902cg from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_9kt6mm902cg from "node:module";
1
+ import CJS_COMPAT_NODE_URL_kxx4zoala9a from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_kxx4zoala9a from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_kxx4zoala9a from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_9kt6mm902cg.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_9kt6mm902cg.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_9kt6mm902cg.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_kxx4zoala9a.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_kxx4zoala9a.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_kxx4zoala9a.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-UY4A43A2.js";
12
+ import "../_node-chunks/chunk-LGYSBOOR.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.5.0-alpha.5",
3
+ "version": "10.5.0-alpha.7",
4
4
  "description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -88,9 +88,9 @@
88
88
  "!src/**/*"
89
89
  ],
90
90
  "dependencies": {
91
- "@storybook/builder-vite": "10.5.0-alpha.5",
92
- "@storybook/react": "10.5.0-alpha.5",
93
- "@storybook/react-vite": "10.5.0-alpha.5",
91
+ "@storybook/builder-vite": "10.5.0-alpha.7",
92
+ "@storybook/react": "10.5.0-alpha.7",
93
+ "@storybook/react-vite": "10.5.0-alpha.7",
94
94
  "styled-jsx": "5.1.6",
95
95
  "vite-plugin-storybook-nextjs": "^3.3.0"
96
96
  },
@@ -108,7 +108,7 @@
108
108
  "next": "^14.1.0 || ^15.0.0 || ^16.0.0",
109
109
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
110
110
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
111
- "storybook": "^10.5.0-alpha.5",
111
+ "storybook": "^10.5.0-alpha.7",
112
112
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
113
113
  },
114
114
  "peerDependenciesMeta": {