@storybook/react 10.3.0-alpha.13 → 10.3.0-alpha.15
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/preset.js +15 -9
- package/package.json +3 -3
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2dywodpurse from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2dywodpurse from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2dywodpurse from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2dywodpurse.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2dywodpurse.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2dywodpurse.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -7941,7 +7941,7 @@ var require_register = __commonJS({
|
|
|
7941
7941
|
}
|
|
7942
7942
|
return coreModules;
|
|
7943
7943
|
}
|
|
7944
|
-
function
|
|
7944
|
+
function register2(params) {
|
|
7945
7945
|
var cwd2, explicitParams;
|
|
7946
7946
|
if (params)
|
|
7947
7947
|
cwd2 = params.cwd, (params.baseUrl || params.paths) && (explicitParams = params);
|
|
@@ -7976,7 +7976,7 @@ var require_register = __commonJS({
|
|
|
7976
7976
|
Module._resolveFilename = originalResolveFilename;
|
|
7977
7977
|
};
|
|
7978
7978
|
}
|
|
7979
|
-
exports.register =
|
|
7979
|
+
exports.register = register2;
|
|
7980
7980
|
}
|
|
7981
7981
|
});
|
|
7982
7982
|
|
|
@@ -9005,6 +9005,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
9005
9005
|
import { getProjectRoot as getProjectRoot2 } from "storybook/internal/common";
|
|
9006
9006
|
|
|
9007
9007
|
// ../../core/src/shared/utils/module.ts
|
|
9008
|
+
import { createRequire, register } from "node:module";
|
|
9008
9009
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
9009
9010
|
|
|
9010
9011
|
// ../../../node_modules/exsolve/dist/index.mjs
|
|
@@ -9255,7 +9256,12 @@ var importMetaResolve = (...args) => typeof import.meta.resolve != "function" &&
|
|
|
9255
9256
|
try {
|
|
9256
9257
|
return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"), parent)));
|
|
9257
9258
|
} catch {
|
|
9258
|
-
|
|
9259
|
+
try {
|
|
9260
|
+
return dirname(fileURLToPath(importMetaResolve(join(pkg, "package.json"))));
|
|
9261
|
+
} catch {
|
|
9262
|
+
let req = createRequire(parent ?? import.meta.url);
|
|
9263
|
+
return dirname(req.resolve(join(pkg, "package.json")));
|
|
9264
|
+
}
|
|
9259
9265
|
}
|
|
9260
9266
|
};
|
|
9261
9267
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "10.3.0-alpha.
|
|
3
|
+
"version": "10.3.0-alpha.15",
|
|
4
4
|
"description": "Storybook React renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@storybook/global": "^5.0.0",
|
|
56
|
-
"@storybook/react-dom-shim": "10.3.0-alpha.
|
|
56
|
+
"@storybook/react-dom-shim": "10.3.0-alpha.15",
|
|
57
57
|
"react-docgen": "^8.0.2",
|
|
58
58
|
"react-docgen-typescript": "^2.2.2"
|
|
59
59
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
83
83
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
84
|
-
"storybook": "^10.3.0-alpha.
|
|
84
|
+
"storybook": "^10.3.0-alpha.15",
|
|
85
85
|
"typescript": ">= 4.9.x"
|
|
86
86
|
},
|
|
87
87
|
"peerDependenciesMeta": {
|