@storybook/react 10.5.0-beta.1 → 10.5.0-beta.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/_browser-chunks/{chunk-I4YGNZB3.js → chunk-CS62LUFX.js} +1 -1
- package/dist/_browser-chunks/{chunk-IRIPKPOF.js → chunk-VYUIDWDB.js} +1 -1
- package/dist/_node-chunks/{chunk-5K6LBNSO.js → chunk-MLWKET7X.js} +6 -6
- package/dist/docgen/docgen-worker.js +7 -7
- package/dist/entry-preview-docs.js +1 -1
- package/dist/index.js +2 -2
- package/dist/preset.js +7 -7
- package/dist/preview.js +2 -2
- package/package.json +3 -3
|
@@ -102,7 +102,7 @@ var renderJsx = (code, options) => {
|
|
|
102
102
|
showDefaultProps: !1
|
|
103
103
|
}, skipJsxRender = (context) => {
|
|
104
104
|
let sourceParams = context?.parameters.docs?.source, isArgsStory = context?.parameters.__isArgsStory;
|
|
105
|
-
return sourceParams?.type === SourceType.DYNAMIC ? !1 : !isArgsStory || sourceParams?.code || sourceParams?.type === SourceType.CODE;
|
|
105
|
+
return context?.parameters.__isPortableStory ? !0 : sourceParams?.type === SourceType.DYNAMIC ? !1 : !isArgsStory || sourceParams?.code || sourceParams?.type === SourceType.CODE;
|
|
106
106
|
}, isMdx = (node) => node.type?.displayName === "MDXCreateElement" && !!node.props?.mdxType, mdxToJsx = (node) => {
|
|
107
107
|
if (!isMdx(node))
|
|
108
108
|
return node;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h0o2r9dsmfc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h0o2r9dsmfc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h0o2r9dsmfc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h0o2r9dsmfc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc.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_h0o2r9dsmfc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h0o2r9dsmfc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h0o2r9dsmfc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h0o2r9dsmfc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
extractArgTypes,
|
|
16
16
|
path,
|
|
17
17
|
resolveStoryFileComponents
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-MLWKET7X.js";
|
|
19
19
|
|
|
20
20
|
// src/docgen/docgen-worker.ts
|
|
21
21
|
import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
applyDecorators,
|
|
3
3
|
decorators,
|
|
4
4
|
parameters
|
|
5
|
-
} from "./_browser-chunks/chunk-
|
|
5
|
+
} from "./_browser-chunks/chunk-CS62LUFX.js";
|
|
6
6
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
7
7
|
import "./_browser-chunks/chunk-B3FR4PBN.js";
|
|
8
8
|
import "./_browser-chunks/chunk-UAWMPV5J.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-VYUIDWDB.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_exports,
|
|
6
6
|
renderToCanvas
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
entry_preview_argtypes_exports
|
|
10
10
|
} from "./_browser-chunks/chunk-5GZAZJC7.js";
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
11
|
+
import "./_browser-chunks/chunk-CS62LUFX.js";
|
|
12
12
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
13
13
|
import "./_browser-chunks/chunk-B3FR4PBN.js";
|
|
14
14
|
import "./_browser-chunks/chunk-UAWMPV5J.js";
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_h0o2r9dsmfc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_h0o2r9dsmfc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_h0o2r9dsmfc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_h0o2r9dsmfc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_h0o2r9dsmfc.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
parseWithReactDocgen,
|
|
24
24
|
path,
|
|
25
25
|
resolveStoryFileComponents
|
|
26
|
-
} from "./_node-chunks/chunk-
|
|
26
|
+
} from "./_node-chunks/chunk-MLWKET7X.js";
|
|
27
27
|
|
|
28
28
|
// src/preset.ts
|
|
29
29
|
import path2, { join as join2 } from "node:path";
|
package/dist/preview.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-VYUIDWDB.js";
|
|
4
4
|
import "./_browser-chunks/chunk-3HUEQMBJ.js";
|
|
5
5
|
import "./_browser-chunks/chunk-5GZAZJC7.js";
|
|
6
|
-
import "./_browser-chunks/chunk-
|
|
6
|
+
import "./_browser-chunks/chunk-CS62LUFX.js";
|
|
7
7
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
8
8
|
import "./_browser-chunks/chunk-B3FR4PBN.js";
|
|
9
9
|
import "./_browser-chunks/chunk-UAWMPV5J.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "10.5.0-beta.
|
|
3
|
+
"version": "10.5.0-beta.2",
|
|
4
4
|
"description": "Storybook React renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@storybook/global": "^5.0.0",
|
|
57
|
-
"@storybook/react-dom-shim": "10.5.0-beta.
|
|
57
|
+
"@storybook/react-dom-shim": "10.5.0-beta.2",
|
|
58
58
|
"react-docgen": "^8.0.2",
|
|
59
59
|
"react-docgen-typescript": "^2.2.2"
|
|
60
60
|
},
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@types/react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
88
88
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
89
89
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
90
|
-
"storybook": "^10.5.0-beta.
|
|
90
|
+
"storybook": "^10.5.0-beta.2",
|
|
91
91
|
"typescript": ">= 4.9.x"
|
|
92
92
|
},
|
|
93
93
|
"peerDependenciesMeta": {
|