@storybook/react 10.5.8 → 10.5.10
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_77iqx0c36t7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_77iqx0c36t7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_77iqx0c36t7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_77iqx0c36t7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_77iqx0c36t7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_77iqx0c36t7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13635,8 +13635,8 @@ function getJSDocDefault(typescript, prop, checker) {
|
|
|
13635
13635
|
if (tag.name === "default" || tag.name === "defaultValue")
|
|
13636
13636
|
return typescript.displayPartsToString(tag.text) || void 0;
|
|
13637
13637
|
}
|
|
13638
|
-
function extractPropItem(typescript, checker, prop, contextNode, defaultsMap) {
|
|
13639
|
-
let isRequired = !!!(prop.flags & typescript.SymbolFlags.Optional), propType = checker.getTypeOfSymbolAtLocation(prop, contextNode), type = serializeType(typescript, checker, propType, isRequired), description = typescript.displayPartsToString(prop.getDocumentationComment(checker)), parent = getParentType(typescript, prop), declarations = getAllDeclarationParents(typescript, prop), propName = prop.getName(), destructuringDefault = defaultsMap?.get(propName), jsDocDefault = getJSDocDefault(typescript, prop, checker), defaultStr = destructuringDefault ?? jsDocDefault;
|
|
13638
|
+
function extractPropItem(typescript, checker, prop, contextNode, defaultsMap, typeOverride) {
|
|
13639
|
+
let isRequired = !!!(prop.flags & typescript.SymbolFlags.Optional), propType = typeOverride ?? checker.getTypeOfSymbolAtLocation(prop, contextNode), type = serializeType(typescript, checker, propType, isRequired), description = typescript.displayPartsToString(prop.getDocumentationComment(checker)), parent = getParentType(typescript, prop), declarations = getAllDeclarationParents(typescript, prop), propName = prop.getName(), destructuringDefault = defaultsMap?.get(propName), jsDocDefault = getJSDocDefault(typescript, prop, checker), defaultStr = destructuringDefault ?? jsDocDefault;
|
|
13640
13640
|
return {
|
|
13641
13641
|
name: propName,
|
|
13642
13642
|
required: isRequired,
|
|
@@ -13740,7 +13740,14 @@ function serializeComponentDoc(typescript, checker, {
|
|
|
13740
13740
|
for (let prop of allProperties) {
|
|
13741
13741
|
if (excluded.has(prop.getName()))
|
|
13742
13742
|
continue;
|
|
13743
|
-
let
|
|
13743
|
+
let unionProp = isUnionType(propsType) ? checker.getPropertyOfType(propsType, prop.getName()) : void 0, unionPropType = unionProp ? checker.getTypeOfSymbolAtLocation(unionProp, contextNode) : void 0, item = extractPropItem(
|
|
13744
|
+
typescript,
|
|
13745
|
+
checker,
|
|
13746
|
+
prop,
|
|
13747
|
+
contextNode,
|
|
13748
|
+
defaultsMap,
|
|
13749
|
+
unionPropType
|
|
13750
|
+
);
|
|
13744
13751
|
unionForceOptional?.has(prop.getName()) && (item.required = !1), props[prop.getName()] = item;
|
|
13745
13752
|
}
|
|
13746
13753
|
let displayName = (isMemberSelection ? displayNameOverride : void 0) ?? computeDisplayName({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_77iqx0c36t7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_77iqx0c36t7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_77iqx0c36t7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_77iqx0c36t7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_77iqx0c36t7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_77iqx0c36t7.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-WY3RE7BT.js";
|
|
19
19
|
|
|
20
20
|
// src/docgen/docgen-worker.ts
|
|
21
21
|
import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_77iqx0c36t7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_77iqx0c36t7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_77iqx0c36t7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_77iqx0c36t7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_77iqx0c36t7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_77iqx0c36t7.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-WY3RE7BT.js";
|
|
27
27
|
|
|
28
28
|
// src/preset.ts
|
|
29
29
|
import path2, { join as join2 } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.10",
|
|
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.
|
|
57
|
+
"@storybook/react-dom-shim": "10.5.10",
|
|
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.
|
|
90
|
+
"storybook": "^10.5.10",
|
|
91
91
|
"typescript": ">= 4.9.x"
|
|
92
92
|
},
|
|
93
93
|
"peerDependenciesMeta": {
|