@storybook/nextjs-vite 11.0.0-beta.2 → 11.0.0-beta.4
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-DARPJQ2J.js → api-TGSFKBQ2.js} +5 -16
- package/dist/_node-chunks/{chunk-XL2TQI3O.js → chunk-2EB6S5D6.js} +1 -11
- package/dist/_node-chunks/{dist-6R4HKL23.js → dist-RNUCCOMV.js} +1 -12
- package/dist/_node-chunks/{jiti-PPMHUKFB.js → jiti-653RV4S2.js} +1 -12
- package/dist/_node-chunks/{lexer-DQCqS3nf-Z3XTX6YD.js → lexer-DQCqS3nf-X366XS6Z.js} +1 -12
- package/dist/node/index.js +1 -12
- package/dist/preset.js +5 -140
- package/dist/vite-plugin/index.js +1 -12
- package/package.json +6 -6
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rtjwa51a5z from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__esm,
|
|
15
4
|
__require,
|
|
16
5
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2EB6S5D6.js";
|
|
18
7
|
|
|
19
8
|
// ../../../node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs
|
|
20
9
|
import r from "node:path";
|
|
@@ -2275,11 +2264,11 @@ for your current platform.`);
|
|
|
2275
2264
|
(+major < 12 || +major == 12 && +minor < 17 || +major == 13 && +minor < 13) && (worker_threads = void 0);
|
|
2276
2265
|
}
|
|
2277
2266
|
var _a, isInternalWorkerThread = ((_a = worker_threads?.workerData) == null ? void 0 : _a.esbuildVersion) === "0.28.1", esbuildCommandAndArgs = () => {
|
|
2278
|
-
if (!ESBUILD_BINARY_PATH && (path2.basename(
|
|
2267
|
+
if (!ESBUILD_BINARY_PATH && (path2.basename(import.meta.filename) !== "main.js" || path2.basename(import.meta.dirname) !== "lib"))
|
|
2279
2268
|
throw new Error(
|
|
2280
2269
|
`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
|
|
2281
2270
|
|
|
2282
|
-
More information: The file containing the code for esbuild's JavaScript API (${
|
|
2271
|
+
More information: The file containing the code for esbuild's JavaScript API (${import.meta.filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`
|
|
2283
2272
|
);
|
|
2284
2273
|
{
|
|
2285
2274
|
let { binPath, isWASM } = generateBinPath();
|
|
@@ -2491,7 +2480,7 @@ More information: The file containing the code for esbuild's JavaScript API (${_
|
|
|
2491
2480
|
});
|
|
2492
2481
|
readFromStdout(stdout), afterClose(null);
|
|
2493
2482
|
}, randomFileName = () => path2.join(os2.tmpdir(), `esbuild-${crypto.randomBytes(32).toString("hex")}`), workerThreadService = null, startWorkerThreadService = (worker_threads2) => {
|
|
2494
|
-
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel(), worker = new worker_threads2.Worker(
|
|
2483
|
+
let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel(), worker = new worker_threads2.Worker(import.meta.filename, {
|
|
2495
2484
|
workerData: { workerPort, defaultWD, esbuildVersion: "0.28.1" },
|
|
2496
2485
|
transferList: [workerPort],
|
|
2497
2486
|
// From node's documentation: https://nodejs.org/api/worker_threads.html
|
|
@@ -4830,7 +4819,7 @@ var import_esbuild, Pt, f2, Ne2, Ie2, Yt, Me2, $e2, Ue2, me2, ae2, ee2, nn2, rn2
|
|
|
4830
4819
|
f2(Be, "u");
|
|
4831
4820
|
f2(D, "o");
|
|
4832
4821
|
typeof WebAssembly < "u" && (async () => {
|
|
4833
|
-
let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-
|
|
4822
|
+
let { parse: s4, init: e5 } = await import("./lexer-DQCqS3nf-X366XS6Z.js");
|
|
4834
4823
|
await e5, Se2 = s4;
|
|
4835
4824
|
})();
|
|
4836
4825
|
Pe2 = f2((s4, e5) => Se2 ? Se2(s4, e5) : fn2(s4, e5), "parseEsm"), gn = f2((s4) => {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
1
|
+
import { createRequire as CJS_COMPAT_CREATE_REQUIRE_6jj1nvq0uif } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_6jj1nvq0uif(import.meta.url);
|
|
12
2
|
var __create = Object.create;
|
|
13
3
|
var __defProp = Object.defineProperty;
|
|
14
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rtjwa51a5z from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__require
|
|
15
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2EB6S5D6.js";
|
|
16
5
|
|
|
17
6
|
// ../../../node_modules/yaml/dist/nodes/identity.js
|
|
18
7
|
var require_identity = __commonJS({
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rtjwa51a5z from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__esm,
|
|
15
4
|
__require,
|
|
16
5
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2EB6S5D6.js";
|
|
18
7
|
|
|
19
8
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
9
|
var require_jiti = __commonJS({
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rtjwa51a5z from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__esm
|
|
14
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2EB6S5D6.js";
|
|
15
4
|
|
|
16
5
|
// ../../../node_modules/tsx/dist/lexer-DQCqS3nf.mjs
|
|
17
6
|
function F(A, E = "@") {
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-XL2TQI3O.js";
|
|
1
|
+
import "../_node-chunks/chunk-2EB6S5D6.js";
|
|
13
2
|
|
|
14
3
|
// src/node/index.ts
|
|
15
4
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rtjwa51a5z from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
__commonJS,
|
|
14
3
|
__require,
|
|
15
4
|
__toESM
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
5
|
+
} from "./_node-chunks/chunk-2EB6S5D6.js";
|
|
17
6
|
|
|
18
7
|
// ../../../node_modules/semver/internal/constants.js
|
|
19
8
|
var require_constants = __commonJS({
|
|
@@ -1504,7 +1493,7 @@ var require_src = __commonJS({
|
|
|
1504
1493
|
var require_req = __commonJS({
|
|
1505
1494
|
"../../../node_modules/postcss-load-config/src/req.js"(exports, module) {
|
|
1506
1495
|
var { createRequire: createRequire3 } = __require("node:module"), { pathToFileURL: pathToFileURL2 } = __require("node:url"), TS_EXT_RE = /\.[mc]?ts$/, tsx, jiti, importError = [];
|
|
1507
|
-
async function req(name, rootFile =
|
|
1496
|
+
async function req(name, rootFile = import.meta.filename) {
|
|
1508
1497
|
let url = createRequire3(rootFile).resolve(name);
|
|
1509
1498
|
try {
|
|
1510
1499
|
return (await import(`${pathToFileURL2(url)}?t=${Date.now()}`)).default;
|
|
@@ -1514,7 +1503,7 @@ var require_req = __commonJS({
|
|
|
1514
1503
|
}
|
|
1515
1504
|
if (tsx === void 0)
|
|
1516
1505
|
try {
|
|
1517
|
-
tsx = await import("./_node-chunks/api-
|
|
1506
|
+
tsx = await import("./_node-chunks/api-TGSFKBQ2.js");
|
|
1518
1507
|
} catch (error) {
|
|
1519
1508
|
importError.push(error);
|
|
1520
1509
|
}
|
|
@@ -1524,7 +1513,7 @@ var require_req = __commonJS({
|
|
|
1524
1513
|
}
|
|
1525
1514
|
if (jiti === void 0)
|
|
1526
1515
|
try {
|
|
1527
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
1516
|
+
jiti = (await import("./_node-chunks/jiti-653RV4S2.js")).default;
|
|
1528
1517
|
} catch (error) {
|
|
1529
1518
|
importError.push(error);
|
|
1530
1519
|
}
|
|
@@ -1641,7 +1630,7 @@ var require_src2 = __commonJS({
|
|
|
1641
1630
|
async function yamlLoader(_, content) {
|
|
1642
1631
|
if (!yaml)
|
|
1643
1632
|
try {
|
|
1644
|
-
yaml = await import("./_node-chunks/dist-
|
|
1633
|
+
yaml = await import("./_node-chunks/dist-RNUCCOMV.js");
|
|
1645
1634
|
} catch (e) {
|
|
1646
1635
|
throw new Error(
|
|
1647
1636
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -1787,130 +1776,6 @@ import { join as join2 } from "node:path";
|
|
|
1787
1776
|
import nodeModule, { createRequire as createRequire2 } from "node:module";
|
|
1788
1777
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
1789
1778
|
|
|
1790
|
-
// ../../../node_modules/exsolve/dist/index.mjs
|
|
1791
|
-
import assert from "node:assert";
|
|
1792
|
-
import v8 from "node:v8";
|
|
1793
|
-
import { format, inspect } from "node:util";
|
|
1794
|
-
var own$1 = {}.hasOwnProperty, classRegExp = /^([A-Z][a-z\d]*)+$/, kTypes = /* @__PURE__ */ new Set([
|
|
1795
|
-
"string",
|
|
1796
|
-
"function",
|
|
1797
|
-
"number",
|
|
1798
|
-
"object",
|
|
1799
|
-
"Function",
|
|
1800
|
-
"Object",
|
|
1801
|
-
"boolean",
|
|
1802
|
-
"bigint",
|
|
1803
|
-
"symbol"
|
|
1804
|
-
]), messages = /* @__PURE__ */ new Map(), nodeInternalPrefix = "__node_internal_", userStackTraceLimit;
|
|
1805
|
-
function formatList(array, type = "and") {
|
|
1806
|
-
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array.at(-1)}`;
|
|
1807
|
-
}
|
|
1808
|
-
function createError(sym, value, constructor) {
|
|
1809
|
-
return messages.set(sym, value), makeNodeErrorWithCode(constructor, sym);
|
|
1810
|
-
}
|
|
1811
|
-
function makeNodeErrorWithCode(Base, key) {
|
|
1812
|
-
return function(...parameters) {
|
|
1813
|
-
let limit = Error.stackTraceLimit;
|
|
1814
|
-
isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
|
|
1815
|
-
let error = new Base();
|
|
1816
|
-
isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = limit);
|
|
1817
|
-
let message = getMessage(key, parameters, error);
|
|
1818
|
-
return Object.defineProperties(error, {
|
|
1819
|
-
message: {
|
|
1820
|
-
value: message,
|
|
1821
|
-
enumerable: !1,
|
|
1822
|
-
writable: !0,
|
|
1823
|
-
configurable: !0
|
|
1824
|
-
},
|
|
1825
|
-
toString: {
|
|
1826
|
-
value() {
|
|
1827
|
-
return `${this.name} [${key}]: ${this.message}`;
|
|
1828
|
-
},
|
|
1829
|
-
enumerable: !1,
|
|
1830
|
-
writable: !0,
|
|
1831
|
-
configurable: !0
|
|
1832
|
-
}
|
|
1833
|
-
}), captureLargerStackTrace(error), error.code = key, error;
|
|
1834
|
-
};
|
|
1835
|
-
}
|
|
1836
|
-
function isErrorStackTraceLimitWritable() {
|
|
1837
|
-
try {
|
|
1838
|
-
if (v8.startupSnapshot.isBuildingSnapshot()) return !1;
|
|
1839
|
-
} catch {
|
|
1840
|
-
}
|
|
1841
|
-
let desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
1842
|
-
return desc === void 0 ? Object.isExtensible(Error) : own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
1843
|
-
}
|
|
1844
|
-
function hideStackFrames(wrappedFunction) {
|
|
1845
|
-
let hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
1846
|
-
return Object.defineProperty(wrappedFunction, "name", { value: hidden }), wrappedFunction;
|
|
1847
|
-
}
|
|
1848
|
-
var captureLargerStackTrace = hideStackFrames(function(error) {
|
|
1849
|
-
let stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
|
|
1850
|
-
return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error;
|
|
1851
|
-
});
|
|
1852
|
-
function getMessage(key, parameters, self) {
|
|
1853
|
-
let message = messages.get(key);
|
|
1854
|
-
if (assert.ok(message !== void 0, "expected `message` to be found"), typeof message == "function")
|
|
1855
|
-
return assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`), Reflect.apply(message, self, parameters);
|
|
1856
|
-
let regex = /%[dfijoOs]/g, expectedLength = 0;
|
|
1857
|
-
for (; regex.exec(message) !== null; ) expectedLength++;
|
|
1858
|
-
return assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`), parameters.length === 0 ? message : (parameters.unshift(message), Reflect.apply(format, null, parameters));
|
|
1859
|
-
}
|
|
1860
|
-
function determineSpecificType(value) {
|
|
1861
|
-
if (value == null) return String(value);
|
|
1862
|
-
if (typeof value == "function" && value.name) return `function ${value.name}`;
|
|
1863
|
-
if (typeof value == "object")
|
|
1864
|
-
return value.constructor && value.constructor.name ? `an instance of ${value.constructor.name}` : `${inspect(value, { depth: -1 })}`;
|
|
1865
|
-
let inspected = inspect(value, { colors: !1 });
|
|
1866
|
-
return inspected.length > 28 && (inspected = `${inspected.slice(0, 25)}...`), `type ${typeof value} (${inspected})`;
|
|
1867
|
-
}
|
|
1868
|
-
var ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
1869
|
-
assert.ok(typeof name == "string", "'name' must be a string"), Array.isArray(expected) || (expected = [expected]);
|
|
1870
|
-
let message = "The ";
|
|
1871
|
-
if (name.endsWith(" argument")) message += `${name} `;
|
|
1872
|
-
else {
|
|
1873
|
-
let type = name.includes(".") ? "property" : "argument";
|
|
1874
|
-
message += `"${name}" ${type} `;
|
|
1875
|
-
}
|
|
1876
|
-
message += "must be ";
|
|
1877
|
-
let types = [], instances = [], other = [];
|
|
1878
|
-
for (let value of expected)
|
|
1879
|
-
assert.ok(typeof value == "string", "All expected entries have to be of type string"), kTypes.has(value) ? types.push(value.toLowerCase()) : classRegExp.exec(value) === null ? (assert.ok(value !== "object", 'The value "object" should be written as "Object"'), other.push(value)) : instances.push(value);
|
|
1880
|
-
if (instances.length > 0) {
|
|
1881
|
-
let pos = types.indexOf("object");
|
|
1882
|
-
pos !== -1 && (types.slice(pos, 1), instances.push("Object"));
|
|
1883
|
-
}
|
|
1884
|
-
return types.length > 0 && (message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`, (instances.length > 0 || other.length > 0) && (message += " or ")), instances.length > 0 && (message += `an instance of ${formatList(instances, "or")}`, other.length > 0 && (message += " or ")), other.length > 0 && (other.length > 1 ? message += `one of ${formatList(other, "or")}` : (other[0]?.toLowerCase() !== other[0] && (message += "an "), message += `${other[0]}`)), message += `. Received ${determineSpecificType(actual)}`, message;
|
|
1885
|
-
}, TypeError), ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
1886
|
-
"ERR_INVALID_MODULE_SPECIFIER",
|
|
1887
|
-
/**
|
|
1888
|
-
* @param {string} request
|
|
1889
|
-
* @param {string} reason
|
|
1890
|
-
* @param {string} [base]
|
|
1891
|
-
*/
|
|
1892
|
-
(request, reason, base) => `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`,
|
|
1893
|
-
TypeError
|
|
1894
|
-
), ERR_INVALID_PACKAGE_CONFIG = createError("ERR_INVALID_PACKAGE_CONFIG", (path$1, base, message) => `Invalid package config ${path$1}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`, Error), ERR_INVALID_PACKAGE_TARGET = createError("ERR_INVALID_PACKAGE_TARGET", (packagePath, key, target, isImport = !1, base) => {
|
|
1895
|
-
let relatedError = typeof target == "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
1896
|
-
return key === "." ? (assert.ok(isImport === !1), `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`) : `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 "./"' : ""}`;
|
|
1897
|
-
}, Error), ERR_MODULE_NOT_FOUND = createError("ERR_MODULE_NOT_FOUND", (path$1, base, exactUrl = !1) => `Cannot find ${exactUrl ? "module" : "package"} '${path$1}' imported from ${base}`, Error), ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error), ERR_PACKAGE_IMPORT_NOT_DEFINED = createError("ERR_PACKAGE_IMPORT_NOT_DEFINED", (specifier, packagePath, base) => `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`, TypeError), ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
1898
|
-
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
1899
|
-
/**
|
|
1900
|
-
* @param {string} packagePath
|
|
1901
|
-
* @param {string} subpath
|
|
1902
|
-
* @param {string} [base]
|
|
1903
|
-
*/
|
|
1904
|
-
(packagePath, subpath, base) => subpath === "." ? `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}` : `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`,
|
|
1905
|
-
Error
|
|
1906
|
-
), ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error), 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), ERR_UNKNOWN_FILE_EXTENSION = createError("ERR_UNKNOWN_FILE_EXTENSION", (extension, path$1) => `Unknown file extension "${extension}" for ${path$1}`, TypeError), ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (name, value, reason = "is invalid") => {
|
|
1907
|
-
let inspected = inspect(value);
|
|
1908
|
-
return inspected.length > 128 && (inspected = `${inspected.slice(0, 128)}...`), `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`;
|
|
1909
|
-
}, TypeError), hasOwnProperty$1 = {}.hasOwnProperty;
|
|
1910
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
1911
|
-
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace], own = {}.hasOwnProperty;
|
|
1912
|
-
var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE_CACHE__ ||= /* @__PURE__ */ new Map();
|
|
1913
|
-
|
|
1914
1779
|
// ../../core/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
1915
1780
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
1916
1781
|
function normalizeWindowsPath(input = "") {
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rtjwa51a5z from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rtjwa51a5z from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rtjwa51a5z.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rtjwa51a5z.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rtjwa51a5z.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-XL2TQI3O.js";
|
|
1
|
+
import "../_node-chunks/chunk-2EB6S5D6.js";
|
|
13
2
|
|
|
14
3
|
// src/vite-plugin/index.ts
|
|
15
4
|
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": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.4",
|
|
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": "11.0.0-beta.
|
|
92
|
-
"@storybook/react": "11.0.0-beta.
|
|
93
|
-
"@storybook/react-vite": "11.0.0-beta.
|
|
91
|
+
"@storybook/builder-vite": "11.0.0-beta.4",
|
|
92
|
+
"@storybook/react": "11.0.0-beta.4",
|
|
93
|
+
"@storybook/react-vite": "11.0.0-beta.4",
|
|
94
94
|
"styled-jsx": "5.1.6",
|
|
95
|
-
"vite-plugin-storybook-nextjs": "11.0.0-beta.
|
|
95
|
+
"vite-plugin-storybook-nextjs": "11.0.0-beta.4"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@types/node": "^22.19.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"react-docgen": "^8.0.2",
|
|
112
112
|
"react-docgen-typescript": "^2.2.2",
|
|
113
113
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
114
|
-
"storybook": "^11.0.0-beta.
|
|
114
|
+
"storybook": "^11.0.0-beta.4",
|
|
115
115
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
116
116
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|
|
117
117
|
},
|