@storybook/nextjs-vite 10.0.6 → 10.0.8
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-KGUHEYJQ.js → chunk-XEYEIKVO.js} +6 -6
- package/dist/_node-chunks/{dist-ZWAHMRV6.js → dist-PB7IRGZG.js} +7 -7
- package/dist/_node-chunks/jiti-4ODJMGB7.js +3158 -0
- package/dist/node/index.js +7 -7
- package/dist/preset.js +122 -192
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +6 -6
- package/dist/_node-chunks/jiti-2H7OXLGQ.js +0 -32417
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_fqgy4lzl854 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_fqgy4lzl854 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_fqgy4lzl854 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_fqgy4lzl854.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_fqgy4lzl854.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_fqgy4lzl854.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-XEYEIKVO.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_fqgy4lzl854 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_fqgy4lzl854 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_fqgy4lzl854 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_fqgy4lzl854.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_fqgy4lzl854.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_fqgy4lzl854.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-XEYEIKVO.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/semver/internal/constants.js
|
|
20
20
|
var require_constants = __commonJS({
|
|
@@ -171,6 +171,9 @@ var require_identifiers = __commonJS({
|
|
|
171
171
|
"use strict";
|
|
172
172
|
var numeric = /^[0-9]+$/;
|
|
173
173
|
var compareIdentifiers = /* @__PURE__ */ __name((a, b) => {
|
|
174
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
175
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
176
|
+
}
|
|
174
177
|
const anum = numeric.test(a);
|
|
175
178
|
const bnum = numeric.test(b);
|
|
176
179
|
if (anum && bnum) {
|
|
@@ -280,7 +283,25 @@ var require_semver = __commonJS({
|
|
|
280
283
|
if (!(other instanceof _SemVer)) {
|
|
281
284
|
other = new _SemVer(other, this.options);
|
|
282
285
|
}
|
|
283
|
-
|
|
286
|
+
if (this.major < other.major) {
|
|
287
|
+
return -1;
|
|
288
|
+
}
|
|
289
|
+
if (this.major > other.major) {
|
|
290
|
+
return 1;
|
|
291
|
+
}
|
|
292
|
+
if (this.minor < other.minor) {
|
|
293
|
+
return -1;
|
|
294
|
+
}
|
|
295
|
+
if (this.minor > other.minor) {
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
if (this.patch < other.patch) {
|
|
299
|
+
return -1;
|
|
300
|
+
}
|
|
301
|
+
if (this.patch > other.patch) {
|
|
302
|
+
return 1;
|
|
303
|
+
}
|
|
304
|
+
return 0;
|
|
284
305
|
}
|
|
285
306
|
comparePre(other) {
|
|
286
307
|
if (!(other instanceof _SemVer)) {
|
|
@@ -1047,6 +1068,7 @@ var require_range = __commonJS({
|
|
|
1047
1068
|
return result;
|
|
1048
1069
|
}, "isSatisfiable");
|
|
1049
1070
|
var parseComparator = /* @__PURE__ */ __name((comp, options) => {
|
|
1071
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
1050
1072
|
debug("comp", comp, options);
|
|
1051
1073
|
comp = replaceCarets(comp, options);
|
|
1052
1074
|
debug("caret", comp);
|
|
@@ -2346,7 +2368,7 @@ var require_req = __commonJS({
|
|
|
2346
2368
|
}
|
|
2347
2369
|
if (jiti === void 0) {
|
|
2348
2370
|
try {
|
|
2349
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
2371
|
+
jiti = (await import("./_node-chunks/jiti-4ODJMGB7.js")).default;
|
|
2350
2372
|
} catch (error) {
|
|
2351
2373
|
importError.push(error);
|
|
2352
2374
|
}
|
|
@@ -2518,7 +2540,7 @@ var require_src2 = __commonJS({
|
|
|
2518
2540
|
async function yamlLoader(_, content) {
|
|
2519
2541
|
if (!yaml) {
|
|
2520
2542
|
try {
|
|
2521
|
-
yaml = await import("./_node-chunks/dist-
|
|
2543
|
+
yaml = await import("./_node-chunks/dist-PB7IRGZG.js");
|
|
2522
2544
|
} catch (e) {
|
|
2523
2545
|
throw new Error(
|
|
2524
2546
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -2694,7 +2716,6 @@ var kTypes = /* @__PURE__ */ new Set([
|
|
|
2694
2716
|
"function",
|
|
2695
2717
|
"number",
|
|
2696
2718
|
"object",
|
|
2697
|
-
// Accept 'Function' and 'Object' as alternative to the lower cased version.
|
|
2698
2719
|
"Function",
|
|
2699
2720
|
"Object",
|
|
2700
2721
|
"boolean",
|
|
@@ -2721,8 +2742,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
2721
2742
|
if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;
|
|
2722
2743
|
const message = getMessage(key, parameters, error);
|
|
2723
2744
|
Object.defineProperties(error, {
|
|
2724
|
-
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
2725
|
-
// probably.
|
|
2726
2745
|
message: {
|
|
2727
2746
|
value: message,
|
|
2728
2747
|
enumerable: false,
|
|
@@ -2730,7 +2749,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
2730
2749
|
configurable: true
|
|
2731
2750
|
},
|
|
2732
2751
|
toString: {
|
|
2733
|
-
/** @this {Error} */
|
|
2734
2752
|
value() {
|
|
2735
2753
|
return `${this.name} [${key}]: ${this.message}`;
|
|
2736
2754
|
},
|
|
@@ -2747,15 +2765,11 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
2747
2765
|
__name(makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
2748
2766
|
function isErrorStackTraceLimitWritable() {
|
|
2749
2767
|
try {
|
|
2750
|
-
if (v8.startupSnapshot.isBuildingSnapshot())
|
|
2751
|
-
return false;
|
|
2752
|
-
}
|
|
2768
|
+
if (v8.startupSnapshot.isBuildingSnapshot()) return false;
|
|
2753
2769
|
} catch {
|
|
2754
2770
|
}
|
|
2755
2771
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
2756
|
-
if (desc === void 0)
|
|
2757
|
-
return Object.isExtensible(Error);
|
|
2758
|
-
}
|
|
2772
|
+
if (desc === void 0) return Object.isExtensible(Error);
|
|
2759
2773
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
2760
2774
|
}
|
|
2761
2775
|
__name(isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
@@ -2777,219 +2791,135 @@ var captureLargerStackTrace = hideStackFrames(function(error) {
|
|
|
2777
2791
|
});
|
|
2778
2792
|
function getMessage(key, parameters, self) {
|
|
2779
2793
|
const message = messages.get(key);
|
|
2780
|
-
assert(message !== void 0, "expected `message` to be found");
|
|
2794
|
+
assert.ok(message !== void 0, "expected `message` to be found");
|
|
2781
2795
|
if (typeof message === "function") {
|
|
2782
|
-
assert(
|
|
2783
|
-
message.length <= parameters.length,
|
|
2784
|
-
// Default options do not count.
|
|
2785
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
2786
|
-
);
|
|
2796
|
+
assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
2787
2797
|
return Reflect.apply(message, self, parameters);
|
|
2788
2798
|
}
|
|
2789
2799
|
const regex = /%[dfijoOs]/g;
|
|
2790
2800
|
let expectedLength = 0;
|
|
2791
2801
|
while (regex.exec(message) !== null) expectedLength++;
|
|
2792
|
-
assert(
|
|
2793
|
-
expectedLength === parameters.length,
|
|
2794
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
2795
|
-
);
|
|
2802
|
+
assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
2796
2803
|
if (parameters.length === 0) return message;
|
|
2797
2804
|
parameters.unshift(message);
|
|
2798
2805
|
return Reflect.apply(format, null, parameters);
|
|
2799
2806
|
}
|
|
2800
2807
|
__name(getMessage, "getMessage");
|
|
2801
2808
|
function determineSpecificType(value) {
|
|
2802
|
-
if (value === null || value === void 0)
|
|
2803
|
-
|
|
2804
|
-
}
|
|
2805
|
-
if (typeof value === "function" && value.name) {
|
|
2806
|
-
return `function ${value.name}`;
|
|
2807
|
-
}
|
|
2809
|
+
if (value === null || value === void 0) return String(value);
|
|
2810
|
+
if (typeof value === "function" && value.name) return `function ${value.name}`;
|
|
2808
2811
|
if (typeof value === "object") {
|
|
2809
|
-
if (value.constructor && value.constructor.name) {
|
|
2810
|
-
return `an instance of ${value.constructor.name}`;
|
|
2811
|
-
}
|
|
2812
|
+
if (value.constructor && value.constructor.name) return `an instance of ${value.constructor.name}`;
|
|
2812
2813
|
return `${inspect(value, { depth: -1 })}`;
|
|
2813
2814
|
}
|
|
2814
2815
|
let inspected = inspect(value, { colors: false });
|
|
2815
|
-
if (inspected.length > 28) {
|
|
2816
|
-
inspected = `${inspected.slice(0, 25)}...`;
|
|
2817
|
-
}
|
|
2816
|
+
if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`;
|
|
2818
2817
|
return `type ${typeof value} (${inspected})`;
|
|
2819
2818
|
}
|
|
2820
2819
|
__name(determineSpecificType, "determineSpecificType");
|
|
2821
|
-
createError(
|
|
2822
|
-
"
|
|
2823
|
-
(
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
assert(
|
|
2848
|
-
value !== "object",
|
|
2849
|
-
'The value "object" should be written as "Object"'
|
|
2850
|
-
);
|
|
2851
|
-
other.push(value);
|
|
2852
|
-
} else {
|
|
2853
|
-
instances.push(value);
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
if (instances.length > 0) {
|
|
2857
|
-
const pos = types.indexOf("object");
|
|
2858
|
-
if (pos !== -1) {
|
|
2859
|
-
types.slice(pos, 1);
|
|
2860
|
-
instances.push("Object");
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
if (types.length > 0) {
|
|
2864
|
-
message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(
|
|
2865
|
-
types,
|
|
2866
|
-
"or"
|
|
2867
|
-
)}`;
|
|
2868
|
-
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
2869
|
-
}
|
|
2870
|
-
if (instances.length > 0) {
|
|
2871
|
-
message += `an instance of ${formatList(instances, "or")}`;
|
|
2872
|
-
if (other.length > 0) message += " or ";
|
|
2873
|
-
}
|
|
2874
|
-
if (other.length > 0) {
|
|
2875
|
-
if (other.length > 1) {
|
|
2876
|
-
message += `one of ${formatList(other, "or")}`;
|
|
2877
|
-
} else {
|
|
2878
|
-
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
2879
|
-
message += `${other[0]}`;
|
|
2880
|
-
}
|
|
2820
|
+
var ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
2821
|
+
assert.ok(typeof name === "string", "'name' must be a string");
|
|
2822
|
+
if (!Array.isArray(expected)) expected = [expected];
|
|
2823
|
+
let message = "The ";
|
|
2824
|
+
if (name.endsWith(" argument")) message += `${name} `;
|
|
2825
|
+
else {
|
|
2826
|
+
const type = name.includes(".") ? "property" : "argument";
|
|
2827
|
+
message += `"${name}" ${type} `;
|
|
2828
|
+
}
|
|
2829
|
+
message += "must be ";
|
|
2830
|
+
const types = [];
|
|
2831
|
+
const instances = [];
|
|
2832
|
+
const other = [];
|
|
2833
|
+
for (const value of expected) {
|
|
2834
|
+
assert.ok(typeof value === "string", "All expected entries have to be of type string");
|
|
2835
|
+
if (kTypes.has(value)) types.push(value.toLowerCase());
|
|
2836
|
+
else if (classRegExp.exec(value) === null) {
|
|
2837
|
+
assert.ok(value !== "object", 'The value "object" should be written as "Object"');
|
|
2838
|
+
other.push(value);
|
|
2839
|
+
} else instances.push(value);
|
|
2840
|
+
}
|
|
2841
|
+
if (instances.length > 0) {
|
|
2842
|
+
const pos = types.indexOf("object");
|
|
2843
|
+
if (pos !== -1) {
|
|
2844
|
+
types.slice(pos, 1);
|
|
2845
|
+
instances.push("Object");
|
|
2881
2846
|
}
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2847
|
+
}
|
|
2848
|
+
if (types.length > 0) {
|
|
2849
|
+
message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`;
|
|
2850
|
+
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
2851
|
+
}
|
|
2852
|
+
if (instances.length > 0) {
|
|
2853
|
+
message += `an instance of ${formatList(instances, "or")}`;
|
|
2854
|
+
if (other.length > 0) message += " or ";
|
|
2855
|
+
}
|
|
2856
|
+
if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`;
|
|
2857
|
+
else {
|
|
2858
|
+
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
2859
|
+
message += `${other[0]}`;
|
|
2860
|
+
}
|
|
2861
|
+
message += `. Received ${determineSpecificType(actual)}`;
|
|
2862
|
+
return message;
|
|
2863
|
+
}, TypeError);
|
|
2887
2864
|
var ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
2888
2865
|
"ERR_INVALID_MODULE_SPECIFIER",
|
|
2889
2866
|
/**
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2867
|
+
* @param {string} request
|
|
2868
|
+
* @param {string} reason
|
|
2869
|
+
* @param {string} [base]
|
|
2870
|
+
*/
|
|
2894
2871
|
(request, reason, base) => {
|
|
2895
2872
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
2896
2873
|
},
|
|
2897
2874
|
TypeError
|
|
2898
2875
|
);
|
|
2899
|
-
var ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
2900
|
-
"
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
);
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
(
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
},
|
|
2918
|
-
Error
|
|
2919
|
-
);
|
|
2920
|
-
var ERR_MODULE_NOT_FOUND = createError(
|
|
2921
|
-
"ERR_MODULE_NOT_FOUND",
|
|
2922
|
-
(path2, base, exactUrl = false) => {
|
|
2923
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
2924
|
-
},
|
|
2925
|
-
Error
|
|
2926
|
-
);
|
|
2927
|
-
createError(
|
|
2928
|
-
"ERR_NETWORK_IMPORT_DISALLOWED",
|
|
2929
|
-
"import of '%s' by %s is not supported: %s",
|
|
2930
|
-
Error
|
|
2931
|
-
);
|
|
2932
|
-
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
|
|
2933
|
-
"ERR_PACKAGE_IMPORT_NOT_DEFINED",
|
|
2934
|
-
(specifier, packagePath, base) => {
|
|
2935
|
-
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
2936
|
-
},
|
|
2937
|
-
TypeError
|
|
2938
|
-
);
|
|
2876
|
+
var ERR_INVALID_PACKAGE_CONFIG = createError("ERR_INVALID_PACKAGE_CONFIG", (path$1, base, message) => {
|
|
2877
|
+
return `Invalid package config ${path$1}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
2878
|
+
}, Error);
|
|
2879
|
+
var ERR_INVALID_PACKAGE_TARGET = createError("ERR_INVALID_PACKAGE_TARGET", (packagePath, key, target, isImport = false, base) => {
|
|
2880
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
2881
|
+
if (key === ".") {
|
|
2882
|
+
assert.ok(isImport === false);
|
|
2883
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
2884
|
+
}
|
|
2885
|
+
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(target)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
2886
|
+
}, Error);
|
|
2887
|
+
var ERR_MODULE_NOT_FOUND = createError("ERR_MODULE_NOT_FOUND", (path$1, base, exactUrl = false) => {
|
|
2888
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path$1}' imported from ${base}`;
|
|
2889
|
+
}, Error);
|
|
2890
|
+
var ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error);
|
|
2891
|
+
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError("ERR_PACKAGE_IMPORT_NOT_DEFINED", (specifier, packagePath, base) => {
|
|
2892
|
+
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
2893
|
+
}, TypeError);
|
|
2939
2894
|
var ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
2940
2895
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
2941
2896
|
/**
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2897
|
+
* @param {string} packagePath
|
|
2898
|
+
* @param {string} subpath
|
|
2899
|
+
* @param {string} [base]
|
|
2900
|
+
*/
|
|
2946
2901
|
(packagePath, subpath, base) => {
|
|
2947
|
-
if (subpath === ".")
|
|
2948
|
-
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
2902
|
+
if (subpath === ".") return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
2949
2903
|
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
2950
2904
|
},
|
|
2951
2905
|
Error
|
|
2952
2906
|
);
|
|
2953
|
-
var ERR_UNSUPPORTED_DIR_IMPORT = createError(
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
);
|
|
2958
|
-
var
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
);
|
|
2963
|
-
var ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
2964
|
-
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
2965
|
-
(extension, path2) => {
|
|
2966
|
-
return `Unknown file extension "${extension}" for ${path2}`;
|
|
2967
|
-
},
|
|
2968
|
-
TypeError
|
|
2969
|
-
);
|
|
2970
|
-
createError(
|
|
2971
|
-
"ERR_INVALID_ARG_VALUE",
|
|
2972
|
-
(name, value, reason = "is invalid") => {
|
|
2973
|
-
let inspected = inspect(value);
|
|
2974
|
-
if (inspected.length > 128) {
|
|
2975
|
-
inspected = `${inspected.slice(0, 128)}...`;
|
|
2976
|
-
}
|
|
2977
|
-
const type = name.includes(".") ? "property" : "argument";
|
|
2978
|
-
return `The ${type} '${name}' ${reason}. Received ${inspected}`;
|
|
2979
|
-
},
|
|
2980
|
-
TypeError
|
|
2981
|
-
// Note: extra classes have been shaken out.
|
|
2982
|
-
// , RangeError
|
|
2983
|
-
);
|
|
2907
|
+
var ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error);
|
|
2908
|
+
var ERR_UNSUPPORTED_RESOLVE_REQUEST = createError("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError);
|
|
2909
|
+
var ERR_UNKNOWN_FILE_EXTENSION = createError("ERR_UNKNOWN_FILE_EXTENSION", (extension, path$1) => {
|
|
2910
|
+
return `Unknown file extension "${extension}" for ${path$1}`;
|
|
2911
|
+
}, TypeError);
|
|
2912
|
+
var ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (name, value, reason = "is invalid") => {
|
|
2913
|
+
let inspected = inspect(value);
|
|
2914
|
+
if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`;
|
|
2915
|
+
return `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`;
|
|
2916
|
+
}, TypeError);
|
|
2984
2917
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
2985
2918
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
2986
2919
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
2987
2920
|
var own = {}.hasOwnProperty;
|
|
2988
2921
|
var isWindows = (() => process.platform === "win32")();
|
|
2989
|
-
var globalCache = (() => (
|
|
2990
|
-
// eslint-disable-next-line unicorn/no-unreadable-iife
|
|
2991
|
-
globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map()
|
|
2992
|
-
))();
|
|
2922
|
+
var globalCache = (() => globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map())();
|
|
2993
2923
|
|
|
2994
2924
|
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
2995
2925
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_fqgy4lzl854 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_fqgy4lzl854 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_fqgy4lzl854 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_fqgy4lzl854.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_fqgy4lzl854.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_fqgy4lzl854.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-XEYEIKVO.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.
|
|
3
|
+
"version": "10.0.8",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@storybook/builder-vite": "10.0.
|
|
83
|
-
"@storybook/react": "10.0.
|
|
84
|
-
"@storybook/react-vite": "10.0.
|
|
82
|
+
"@storybook/builder-vite": "10.0.8",
|
|
83
|
+
"@storybook/react": "10.0.8",
|
|
84
|
+
"@storybook/react-vite": "10.0.8",
|
|
85
85
|
"styled-jsx": "5.1.6",
|
|
86
86
|
"vite-plugin-storybook-nextjs": "^3.1.0"
|
|
87
87
|
},
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
98
98
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
99
99
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
100
|
-
"storybook": "^10.0.
|
|
100
|
+
"storybook": "^10.0.8",
|
|
101
101
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1l"
|
|
112
112
|
}
|