@storybook/nextjs-vite 10.6.0 → 10.6.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/{api-3YYJWEGI.js → api-MQINRO3Z.js} +8 -8
- package/dist/_node-chunks/{chunk-LNCCG7RU.js → chunk-5CZZBINW.js} +6 -6
- package/dist/_node-chunks/{dist-JFYRAZRU.js → dist-U5R54KVZ.js} +104 -67
- package/dist/_node-chunks/{jiti-DYDH4NF2.js → jiti-HUKFFHIB.js} +7 -7
- package/dist/_node-chunks/{lexer-DQCqS3nf-LQRREXVI.js → lexer-DQCqS3nf-X2SNG3PV.js} +7 -7
- package/dist/node/index.js +7 -7
- package/dist/preset.js +10 -10
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-
|
|
17
|
+
} from "./chunk-5CZZBINW.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs
|
|
20
20
|
import r from "node:path";
|
|
@@ -4796,7 +4796,7 @@ var import_esbuild, Pt, f2, Ne2, Ie2, Yt, Me2, $e2, Ue2, me2, ae2, ee2, nn2, rn,
|
|
|
4796
4796
|
f2(Be2, "u");
|
|
4797
4797
|
f2(D, "o");
|
|
4798
4798
|
typeof WebAssembly < "u" && (async () => {
|
|
4799
|
-
let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-
|
|
4799
|
+
let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-X2SNG3PV.js");
|
|
4800
4800
|
await e5, Se2 = s4;
|
|
4801
4801
|
})();
|
|
4802
4802
|
Pe2 = f2((s4, e5) => Se2 ? Se2(s4, e5) : fn(s4, e5), "parseEsm"), gn = f2((s4) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_8sy1434zve.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5CZZBINW.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/yaml/dist/nodes/identity.js
|
|
18
18
|
var require_identity = __commonJS({
|
|
@@ -480,6 +480,8 @@ var require_Alias = __commonJS({
|
|
|
480
480
|
* instance of the `source` anchor before this node.
|
|
481
481
|
*/
|
|
482
482
|
resolve(doc, ctx) {
|
|
483
|
+
if (ctx?.maxAliasCount === 0)
|
|
484
|
+
throw new ReferenceError("Alias resolution is disabled");
|
|
483
485
|
let nodes;
|
|
484
486
|
ctx?.aliasResolveCache ? nodes = ctx.aliasResolveCache : (nodes = [], visit.visit(doc, {
|
|
485
487
|
Node: (_key, node) => {
|
|
@@ -492,26 +494,28 @@ var require_Alias = __commonJS({
|
|
|
492
494
|
break;
|
|
493
495
|
node.anchor === this.source && (found = node);
|
|
494
496
|
}
|
|
497
|
+
if (found && ctx) {
|
|
498
|
+
let { anchors: anchors2, doc: doc2, maxAliasCount } = ctx, data = anchors2.get(found);
|
|
499
|
+
if (data || (toJS.toJS(found, null, ctx), data = anchors2.get(found)), data?.res === void 0) {
|
|
500
|
+
let msg = "This should not happen: Alias anchor was not resolved?";
|
|
501
|
+
throw new ReferenceError(msg);
|
|
502
|
+
}
|
|
503
|
+
if (maxAliasCount >= 0 && (data.count += 1, data.aliasCount === 0 && (data.aliasCount = getAliasCount(doc2, found, anchors2)), data.count * data.aliasCount > maxAliasCount)) {
|
|
504
|
+
let msg = "Excessive alias count indicates a resource exhaustion attack";
|
|
505
|
+
throw new ReferenceError(msg);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
495
508
|
return found;
|
|
496
509
|
}
|
|
497
510
|
toJSON(_arg, ctx) {
|
|
498
511
|
if (!ctx)
|
|
499
512
|
return { source: this.source };
|
|
500
|
-
let
|
|
513
|
+
let source = this.resolve(ctx.doc, ctx);
|
|
501
514
|
if (!source) {
|
|
502
515
|
let msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
503
516
|
throw new ReferenceError(msg);
|
|
504
517
|
}
|
|
505
|
-
|
|
506
|
-
if (data || (toJS.toJS(source, null, ctx), data = anchors2.get(source)), data?.res === void 0) {
|
|
507
|
-
let msg = "This should not happen: Alias anchor was not resolved?";
|
|
508
|
-
throw new ReferenceError(msg);
|
|
509
|
-
}
|
|
510
|
-
if (maxAliasCount >= 0 && (data.count += 1, data.aliasCount === 0 && (data.aliasCount = getAliasCount(doc, source, anchors2)), data.count * data.aliasCount > maxAliasCount)) {
|
|
511
|
-
let msg = "Excessive alias count indicates a resource exhaustion attack";
|
|
512
|
-
throw new ReferenceError(msg);
|
|
513
|
-
}
|
|
514
|
-
return data.res;
|
|
518
|
+
return ctx.anchors.get(source).res;
|
|
515
519
|
}
|
|
516
520
|
toString(ctx, _onComment, _onChompKeep) {
|
|
517
521
|
let src = `*${this.source}`;
|
|
@@ -1089,6 +1093,7 @@ var require_stringify = __commonJS({
|
|
|
1089
1093
|
nullStr: "null",
|
|
1090
1094
|
simpleKeys: !1,
|
|
1091
1095
|
singleQuote: null,
|
|
1096
|
+
trailingComma: !1,
|
|
1092
1097
|
trueStr: "true",
|
|
1093
1098
|
verifyAliasOrder: !0
|
|
1094
1099
|
}, doc.schema.toStringOptions, options), inFlow;
|
|
@@ -1266,17 +1271,18 @@ var require_merge = __commonJS({
|
|
|
1266
1271
|
stringify: () => MERGE_KEY
|
|
1267
1272
|
}, isMergeKey = (ctx, key) => (merge.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
|
|
1268
1273
|
function addMergeToJSMap(ctx, map, value) {
|
|
1269
|
-
|
|
1270
|
-
|
|
1274
|
+
let source = resolveAliasValue(ctx, value);
|
|
1275
|
+
if (identity.isSeq(source))
|
|
1276
|
+
for (let it of source.items)
|
|
1271
1277
|
mergeValue(ctx, map, it);
|
|
1272
|
-
else if (Array.isArray(
|
|
1273
|
-
for (let it of
|
|
1278
|
+
else if (Array.isArray(source))
|
|
1279
|
+
for (let it of source)
|
|
1274
1280
|
mergeValue(ctx, map, it);
|
|
1275
1281
|
else
|
|
1276
|
-
mergeValue(ctx, map,
|
|
1282
|
+
mergeValue(ctx, map, source);
|
|
1277
1283
|
}
|
|
1278
1284
|
function mergeValue(ctx, map, value) {
|
|
1279
|
-
let source = ctx
|
|
1285
|
+
let source = resolveAliasValue(ctx, value);
|
|
1280
1286
|
if (!identity.isMap(source))
|
|
1281
1287
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1282
1288
|
let srcMap = source.toJSON(null, ctx, Map);
|
|
@@ -1289,6 +1295,9 @@ var require_merge = __commonJS({
|
|
|
1289
1295
|
});
|
|
1290
1296
|
return map;
|
|
1291
1297
|
}
|
|
1298
|
+
function resolveAliasValue(ctx, value) {
|
|
1299
|
+
return ctx && identity.isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
1300
|
+
}
|
|
1292
1301
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
1293
1302
|
exports.isMergeKey = isMergeKey;
|
|
1294
1303
|
exports.merge = merge;
|
|
@@ -1434,8 +1443,8 @@ ${indent}${line}` : `
|
|
|
1434
1443
|
}
|
|
1435
1444
|
comment && (reqNewline = !0);
|
|
1436
1445
|
let str = stringify.stringify(item, itemCtx, () => comment = null);
|
|
1437
|
-
|
|
1438
|
-
`)) && (reqNewline =
|
|
1446
|
+
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes(`
|
|
1447
|
+
`)), i < items.length - 1 ? str += "," : ctx.options.trailingComma && (ctx.options.lineWidth > 0 && (reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth)), reqNewline && (str += ",")), comment && (str += stringifyComment.lineComment(str, itemIndent, commentString(comment))), lines.push(str), linesAtValue = lines.length;
|
|
1439
1448
|
}
|
|
1440
1449
|
let { start, end } = flowChars;
|
|
1441
1450
|
if (lines.length === 0)
|
|
@@ -1770,7 +1779,7 @@ var require_stringifyNumber = __commonJS({
|
|
|
1770
1779
|
if (!isFinite(num))
|
|
1771
1780
|
return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
1772
1781
|
let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
1773
|
-
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") &&
|
|
1782
|
+
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^-?\d/.test(n) && !n.includes("e")) {
|
|
1774
1783
|
let i = n.indexOf(".");
|
|
1775
1784
|
i < 0 && (i = n.length, n += ".");
|
|
1776
1785
|
let d = minFractionDigits - (n.length - i - 1);
|
|
@@ -3419,28 +3428,28 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
3419
3428
|
break;
|
|
3420
3429
|
}
|
|
3421
3430
|
}
|
|
3422
|
-
return badChar && onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`),
|
|
3431
|
+
return badChar && onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`), unfoldLines(source);
|
|
3423
3432
|
}
|
|
3424
3433
|
function singleQuotedValue(source, onError) {
|
|
3425
|
-
return (source[source.length - 1] !== "'" || source.length === 1) && onError(source.length, "MISSING_CHAR", "Missing closing 'quote"),
|
|
3434
|
+
return (source[source.length - 1] !== "'" || source.length === 1) && onError(source.length, "MISSING_CHAR", "Missing closing 'quote"), unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
|
|
3426
3435
|
}
|
|
3427
|
-
function
|
|
3428
|
-
let
|
|
3436
|
+
function unfoldLines(source) {
|
|
3437
|
+
let line = /(.*?)\r?\n/sy, match = line.exec(source);
|
|
3438
|
+
if (!match)
|
|
3439
|
+
return source;
|
|
3440
|
+
let trimEnd, trimBoth;
|
|
3429
3441
|
try {
|
|
3430
|
-
|
|
3431
|
-
`, "sy"), line = new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
3432
|
-
`, "sy");
|
|
3442
|
+
trimEnd = new RegExp("(?<![ ])[ ]+$"), trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
|
|
3433
3443
|
} catch {
|
|
3434
|
-
|
|
3444
|
+
trimEnd = /[ \t]+$/, trimBoth = /^[ \t]+|[ \t]+$/g;
|
|
3435
3445
|
}
|
|
3436
|
-
let
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
for (line.lastIndex = pos; match = line.exec(source); )
|
|
3441
|
-
match[1] === "" ? sep === `
|
|
3446
|
+
let res = match[1].replace(trimEnd, ""), sep = " ", pos = line.lastIndex;
|
|
3447
|
+
for (; match = line.exec(source); ) {
|
|
3448
|
+
let lm = match[1].replace(trimBoth, "");
|
|
3449
|
+
lm === "" ? sep === `
|
|
3442
3450
|
` ? res += sep : sep = `
|
|
3443
|
-
` : (res += sep +
|
|
3451
|
+
` : (res += sep + lm, sep = " "), pos = line.lastIndex;
|
|
3452
|
+
}
|
|
3444
3453
|
let last = /[ \t]*(.*)/sy;
|
|
3445
3454
|
return last.lastIndex = pos, match = last.exec(source), res + sep + (match?.[1] ?? "");
|
|
3446
3455
|
}
|
|
@@ -3467,7 +3476,7 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
3467
3476
|
for (next = source[++i + 1]; next === " " || next === " "; )
|
|
3468
3477
|
next = source[++i + 1];
|
|
3469
3478
|
else if (next === "x" || next === "u" || next === "U") {
|
|
3470
|
-
let length =
|
|
3479
|
+
let length = next === "x" ? 2 : next === "u" ? 4 : 8;
|
|
3471
3480
|
res += parseCharCode(source, i + 1, length, onError), i += length;
|
|
3472
3481
|
} else {
|
|
3473
3482
|
let raw = source.substr(i - 1, 2);
|
|
@@ -3531,11 +3540,12 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
3531
3540
|
};
|
|
3532
3541
|
function parseCharCode(source, offset, length, onError) {
|
|
3533
3542
|
let cc = source.substr(offset, length), code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
|
|
3534
|
-
|
|
3543
|
+
try {
|
|
3544
|
+
return String.fromCodePoint(code);
|
|
3545
|
+
} catch {
|
|
3535
3546
|
let raw = source.substr(offset - 2, length + 2);
|
|
3536
3547
|
return onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`), raw;
|
|
3537
3548
|
}
|
|
3538
|
-
return String.fromCodePoint(code);
|
|
3539
3549
|
}
|
|
3540
3550
|
exports.resolveFlowScalar = resolveFlowScalar;
|
|
3541
3551
|
}
|
|
@@ -3637,14 +3647,19 @@ var require_compose_node = __commonJS({
|
|
|
3637
3647
|
case "block-map":
|
|
3638
3648
|
case "block-seq":
|
|
3639
3649
|
case "flow-collection":
|
|
3640
|
-
|
|
3650
|
+
try {
|
|
3651
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError), anchor && (node.anchor = anchor.source.substring(1));
|
|
3652
|
+
} catch (error) {
|
|
3653
|
+
let message = error instanceof Error ? error.message : String(error);
|
|
3654
|
+
onError(token, "RESOURCE_EXHAUSTION", message);
|
|
3655
|
+
}
|
|
3641
3656
|
break;
|
|
3642
3657
|
default: {
|
|
3643
3658
|
let message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
|
|
3644
|
-
onError(token, "UNEXPECTED_TOKEN", message),
|
|
3659
|
+
onError(token, "UNEXPECTED_TOKEN", message), isSrcToken = !1;
|
|
3645
3660
|
}
|
|
3646
3661
|
}
|
|
3647
|
-
return anchor && node.anchor === "" && onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string"), atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value != "string" || node.tag && node.tag !== "tag:yaml.org,2002:str") && onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), spaceBefore && (node.spaceBefore = !0), comment && (token.type === "scalar" && token.source === "" ? node.comment = comment : node.commentBefore = comment), ctx.options.keepSourceTokens && isSrcToken && (node.srcToken = token), node;
|
|
3662
|
+
return node ?? (node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError)), anchor && node.anchor === "" && onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string"), atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value != "string" || node.tag && node.tag !== "tag:yaml.org,2002:str") && onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), spaceBefore && (node.spaceBefore = !0), comment && (token.type === "scalar" && token.source === "" ? node.comment = comment : node.commentBefore = comment), ctx.options.keepSourceTokens && isSrcToken && (node.srcToken = token), node;
|
|
3648
3663
|
}
|
|
3649
3664
|
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
|
3650
3665
|
let token = {
|
|
@@ -3755,7 +3770,14 @@ ${cb}` : comment;
|
|
|
3755
3770
|
${cb}` : comment;
|
|
3756
3771
|
}
|
|
3757
3772
|
}
|
|
3758
|
-
|
|
3773
|
+
if (afterDoc) {
|
|
3774
|
+
for (let i = 0; i < this.errors.length; ++i)
|
|
3775
|
+
doc.errors.push(this.errors[i]);
|
|
3776
|
+
for (let i = 0; i < this.warnings.length; ++i)
|
|
3777
|
+
doc.warnings.push(this.warnings[i]);
|
|
3778
|
+
} else
|
|
3779
|
+
doc.errors = this.errors, doc.warnings = this.warnings;
|
|
3780
|
+
this.prelude = [], this.errors = [], this.warnings = [];
|
|
3759
3781
|
}
|
|
3760
3782
|
/**
|
|
3761
3783
|
* Current stream status information.
|
|
@@ -4373,7 +4395,7 @@ var require_lexer = __commonJS({
|
|
|
4373
4395
|
return this.setNext("block-start");
|
|
4374
4396
|
if ((ch0 === "-" || ch0 === "?" || ch0 === ":") && isEmpty(ch1)) {
|
|
4375
4397
|
let n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0));
|
|
4376
|
-
return this.indentNext = this.indentValue + 1, this.indentValue += n,
|
|
4398
|
+
return this.indentNext = this.indentValue + 1, this.indentValue += n, "block-start";
|
|
4377
4399
|
}
|
|
4378
4400
|
return "doc";
|
|
4379
4401
|
}
|
|
@@ -4592,22 +4614,30 @@ var require_lexer = __commonJS({
|
|
|
4592
4614
|
return s ? (yield s, this.pos += s.length, s.length) : (allowEmpty && (yield ""), 0);
|
|
4593
4615
|
}
|
|
4594
4616
|
*pushIndicators() {
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4617
|
+
let n = 0;
|
|
4618
|
+
loop: for (; ; ) {
|
|
4619
|
+
switch (this.charAt(0)) {
|
|
4620
|
+
case "!":
|
|
4621
|
+
n += yield* this.pushTag(), n += yield* this.pushSpaces(!0);
|
|
4622
|
+
continue loop;
|
|
4623
|
+
case "&":
|
|
4624
|
+
n += yield* this.pushUntil(isNotAnchorChar), n += yield* this.pushSpaces(!0);
|
|
4625
|
+
continue loop;
|
|
4626
|
+
case "-":
|
|
4627
|
+
// this is an error
|
|
4628
|
+
case "?":
|
|
4629
|
+
// this is an error outside flow collections
|
|
4630
|
+
case ":": {
|
|
4631
|
+
let inFlow = this.flowLevel > 0, ch1 = this.charAt(1);
|
|
4632
|
+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
|
|
4633
|
+
inFlow ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, n += yield* this.pushCount(1), n += yield* this.pushSpaces(!0);
|
|
4634
|
+
continue loop;
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4608
4637
|
}
|
|
4638
|
+
break loop;
|
|
4609
4639
|
}
|
|
4610
|
-
return
|
|
4640
|
+
return n;
|
|
4611
4641
|
}
|
|
4612
4642
|
*pushTag() {
|
|
4613
4643
|
if (this.charAt(1) === "<") {
|
|
@@ -4744,10 +4774,17 @@ var require_parser = __commonJS({
|
|
|
4744
4774
|
;
|
|
4745
4775
|
return prev.splice(i, prev.length);
|
|
4746
4776
|
}
|
|
4777
|
+
function arrayPushArray(target, source) {
|
|
4778
|
+
if (source.length < 1e5)
|
|
4779
|
+
Array.prototype.push.apply(target, source);
|
|
4780
|
+
else
|
|
4781
|
+
for (let i = 0; i < source.length; ++i)
|
|
4782
|
+
target.push(source[i]);
|
|
4783
|
+
}
|
|
4747
4784
|
function fixFlowSeqItems(fc) {
|
|
4748
4785
|
if (fc.start.type === "flow-seq-start")
|
|
4749
4786
|
for (let it of fc.items)
|
|
4750
|
-
it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind") && (it.key && (it.value = it.key), delete it.key, isFlowToken(it.value) ? it.value.end ?
|
|
4787
|
+
it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind") && (it.key && (it.value = it.key), delete it.key, isFlowToken(it.value) ? it.value.end ? arrayPushArray(it.value.end, it.sep) : it.value.end = it.sep : arrayPushArray(it.start, it.sep), delete it.sep);
|
|
4751
4788
|
}
|
|
4752
4789
|
var Parser = class {
|
|
4753
4790
|
/**
|
|
@@ -5016,7 +5053,7 @@ var require_parser = __commonJS({
|
|
|
5016
5053
|
if (this.atIndentedComment(it.start, map.indent)) {
|
|
5017
5054
|
let end = map.items[map.items.length - 2]?.value?.end;
|
|
5018
5055
|
if (Array.isArray(end)) {
|
|
5019
|
-
|
|
5056
|
+
arrayPushArray(end, it.start), end.push(this.sourceToken), map.items.pop();
|
|
5020
5057
|
return;
|
|
5021
5058
|
}
|
|
5022
5059
|
}
|
|
@@ -5147,7 +5184,7 @@ var require_parser = __commonJS({
|
|
|
5147
5184
|
if (this.atIndentedComment(it.start, seq.indent)) {
|
|
5148
5185
|
let end = seq.items[seq.items.length - 2]?.value?.end;
|
|
5149
5186
|
if (Array.isArray(end)) {
|
|
5150
|
-
|
|
5187
|
+
arrayPushArray(end, it.start), end.push(this.sourceToken), seq.items.pop();
|
|
5151
5188
|
return;
|
|
5152
5189
|
}
|
|
5153
5190
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-
|
|
17
|
+
} from "./chunk-5CZZBINW.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
20
|
var require_jiti = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-
|
|
14
|
+
} from "./chunk-5CZZBINW.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/tsx/dist/lexer-DQCqS3nf.mjs
|
|
17
17
|
function F(A, E = "@") {
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-5CZZBINW.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-
|
|
16
|
+
} from "./_node-chunks/chunk-5CZZBINW.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/semver/internal/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -1514,7 +1514,7 @@ var require_req = __commonJS({
|
|
|
1514
1514
|
}
|
|
1515
1515
|
if (tsx === void 0)
|
|
1516
1516
|
try {
|
|
1517
|
-
tsx = await import("./_node-chunks/api-
|
|
1517
|
+
tsx = await import("./_node-chunks/api-MQINRO3Z.js");
|
|
1518
1518
|
} catch (error) {
|
|
1519
1519
|
importError.push(error);
|
|
1520
1520
|
}
|
|
@@ -1524,7 +1524,7 @@ var require_req = __commonJS({
|
|
|
1524
1524
|
}
|
|
1525
1525
|
if (jiti === void 0)
|
|
1526
1526
|
try {
|
|
1527
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
1527
|
+
jiti = (await import("./_node-chunks/jiti-HUKFFHIB.js")).default;
|
|
1528
1528
|
} catch (error) {
|
|
1529
1529
|
importError.push(error);
|
|
1530
1530
|
}
|
|
@@ -1641,7 +1641,7 @@ var require_src2 = __commonJS({
|
|
|
1641
1641
|
async function yamlLoader(_, content) {
|
|
1642
1642
|
if (!yaml)
|
|
1643
1643
|
try {
|
|
1644
|
-
yaml = await import("./_node-chunks/dist-
|
|
1644
|
+
yaml = await import("./_node-chunks/dist-U5R54KVZ.js");
|
|
1645
1645
|
} catch (e) {
|
|
1646
1646
|
throw new Error(
|
|
1647
1647
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_j9d92et0omh from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_j9d92et0omh from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_j9d92et0omh from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_j9d92et0omh.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_j9d92et0omh.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_j9d92et0omh.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-5CZZBINW.js";
|
|
13
13
|
|
|
14
14
|
// src/vite-plugin/index.ts
|
|
15
15
|
import vitePluginStorybookNextjs from "vite-plugin-storybook-nextjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.2",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
"!src/**/*"
|
|
89
89
|
],
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@storybook/builder-vite": "10.6.
|
|
92
|
-
"@storybook/react": "10.6.
|
|
93
|
-
"@storybook/react-vite": "10.6.
|
|
91
|
+
"@storybook/builder-vite": "10.6.2",
|
|
92
|
+
"@storybook/react": "10.6.2",
|
|
93
|
+
"@storybook/react-vite": "10.6.2",
|
|
94
94
|
"styled-jsx": "5.1.6",
|
|
95
|
-
"vite-plugin-storybook-nextjs": "10.6.
|
|
95
|
+
"vite-plugin-storybook-nextjs": "10.6.2"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/node": "^22.19.1",
|
|
@@ -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.6.
|
|
111
|
+
"storybook": "^10.6.2",
|
|
112
112
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
113
113
|
},
|
|
114
114
|
"peerDependenciesMeta": {
|