@storybook/react 10.3.0-alpha.7 → 10.3.0-alpha.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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uwov6adlzc9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uwov6adlzc9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uwov6adlzc9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uwov6adlzc9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uwov6adlzc9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uwov6adlzc9.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_uwov6adlzc9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uwov6adlzc9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uwov6adlzc9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uwov6adlzc9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uwov6adlzc9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uwov6adlzc9.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_64avai3src8.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-63BVDLL2.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/react-docgen-typescript/lib/buildFilter.js
|
|
18
18
|
var require_buildFilter = __commonJS({
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uwov6adlzc9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uwov6adlzc9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uwov6adlzc9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uwov6adlzc9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uwov6adlzc9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uwov6adlzc9.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-63BVDLL2.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/estraverse/estraverse.js
|
|
19
19
|
var require_estraverse = __commonJS({
|
|
@@ -11193,7 +11193,7 @@ var extractArgTypesFromDocgenTypescript = async ({
|
|
|
11193
11193
|
reactDocgenTypescriptOptions
|
|
11194
11194
|
}) => {
|
|
11195
11195
|
try {
|
|
11196
|
-
let { withCompilerOptions } = (await import("./_node-chunks/lib-
|
|
11196
|
+
let { withCompilerOptions } = (await import("./_node-chunks/lib-BNFWLTPX.js")).default, defaultOptions = {
|
|
11197
11197
|
shouldExtractLiteralValuesFromEnum: !0,
|
|
11198
11198
|
shouldRemoveUndefinedFromOptional: !0,
|
|
11199
11199
|
propFilter: (prop) => prop.parent ? !/node_modules/.test(prop.parent.fileName) : !0,
|
|
@@ -11822,7 +11822,7 @@ var manifests = async (existingManifests = {}, { manifestEntries }) => {
|
|
|
11822
11822
|
let storyFilePath = entry.type === "story" ? entry.importPath : (
|
|
11823
11823
|
// For attached docs entries, storiesImports[0] points to the stories file being attached to
|
|
11824
11824
|
entry.storiesImports[0]
|
|
11825
|
-
), absoluteImportPath = path.join(process.cwd(), storyFilePath), storyFile = cachedReadFileSync(absoluteImportPath, "utf-8"), csf = loadCsf(storyFile, { makeTitle: (
|
|
11825
|
+
), absoluteImportPath = path.join(process.cwd(), storyFilePath), storyFile = cachedReadFileSync(absoluteImportPath, "utf-8"), csf = loadCsf(storyFile, { makeTitle: () => entry.title }).parse(), componentName = csf._meta?.component, id = entry.id.split("--")[0], title = entry.title.split("/").at(-1).replace(/\s+/g, ""), allComponents = getComponents({ csf, storyFilePath: absoluteImportPath }), component = findMatchingComponent(
|
|
11826
11826
|
allComponents,
|
|
11827
11827
|
componentName,
|
|
11828
11828
|
entry.title.replace(/\s+/g, "")
|
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.8",
|
|
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.8",
|
|
57
57
|
"react-docgen": "^8.0.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
82
82
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
83
|
-
"storybook": "^10.3.0-alpha.
|
|
83
|
+
"storybook": "^10.3.0-alpha.8",
|
|
84
84
|
"typescript": ">= 4.9.x"
|
|
85
85
|
},
|
|
86
86
|
"peerDependenciesMeta": {
|