@storybook/react 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/{chunk-VQBUQHU3.js → chunk-3ZQP5GHE.js} +1 -12
- package/dist/_node-chunks/{chunk-QRCEILHM.js → chunk-6ZKSWYLW.js} +2 -13
- package/dist/_node-chunks/{chunk-DW2HJ23M.js → chunk-CJ2XYAXX.js} +1 -12
- package/dist/_node-chunks/{chunk-XIFLZILW.js → chunk-HRHJMJC7.js} +1 -12
- package/dist/_node-chunks/chunk-MYBSMCSW.js +6 -0
- package/dist/_node-chunks/{chunk-PXKXGEPO.js → chunk-MZA63NMI.js} +134 -323
- package/dist/_node-chunks/{chunk-XQPV7U3R.js → chunk-N7TOZR54.js} +3 -14
- package/dist/_node-chunks/{chunk-ASUAJQT5.js → chunk-PQZIOGBY.js} +1 -11
- package/dist/_node-chunks/{chunk-BWU7O3KC.js → chunk-QKPKKS4R.js} +1 -12
- package/dist/_node-chunks/{chunk-2DNUEB5U.js → chunk-SC3QXTHH.js} +12 -23
- package/dist/_node-chunks/extractArgTypesFromComponentFile-2DRDUH5M.js +33 -0
- package/dist/_node-chunks/{extractReactDocgenInfo-J6CKNSQN.js → extractReactDocgenInfo-L44YP4OM.js} +5 -16
- package/dist/_node-chunks/{extractReactTypescriptDocgenInfo-AJTC3KA3.js → extractReactTypescriptDocgenInfo-XLLLW3MT.js} +3 -14
- package/dist/_node-chunks/reactDocgen-WMOVFLAX.js +15 -0
- package/dist/builder-docgen.js +3 -14
- package/dist/docgen/docgen-worker.js +7 -18
- package/dist/preset.js +11 -146
- package/package.json +3 -3
- package/dist/_node-chunks/chunk-TP7UUO2M.js +0 -18
- package/dist/_node-chunks/extractArgTypesFromComponentFile-PKEIPQGN.js +0 -44
- package/dist/_node-chunks/reactDocgen-YAGNM6ZQ.js +0 -26
|
@@ -1,28 +1,17 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
cached,
|
|
14
3
|
cachedReadFileSync,
|
|
15
4
|
cachedResolveImport,
|
|
16
5
|
matchPath
|
|
17
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CJ2XYAXX.js";
|
|
18
7
|
import {
|
|
19
8
|
require_dist
|
|
20
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QKPKKS4R.js";
|
|
21
10
|
import {
|
|
22
11
|
__commonJS,
|
|
23
12
|
__require,
|
|
24
13
|
__toESM
|
|
25
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PQZIOGBY.js";
|
|
26
15
|
|
|
27
16
|
// ../../../node_modules/resolve/lib/homedir.js
|
|
28
17
|
var require_homedir = __commonJS({
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.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_xwvv63aul3 } from "node:module";var require = CJS_COMPAT_CREATE_REQUIRE_xwvv63aul3(import.meta.url);
|
|
12
2
|
var __create = Object.create;
|
|
13
3
|
var __defProp = Object.defineProperty;
|
|
14
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.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
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PQZIOGBY.js";
|
|
15
4
|
|
|
16
5
|
// ../../../node_modules/ts-dedent/dist/index.js
|
|
17
6
|
var require_dist = __commonJS({
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QKPKKS4R.js";
|
|
15
4
|
import {
|
|
16
5
|
__commonJS,
|
|
17
6
|
__esm,
|
|
18
7
|
__export,
|
|
19
8
|
__toCommonJS,
|
|
20
9
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PQZIOGBY.js";
|
|
22
11
|
|
|
23
12
|
// ../../../node_modules/estraverse/estraverse.js
|
|
24
13
|
var require_estraverse = __commonJS({
|
|
@@ -254,7 +243,7 @@ var require_estraverse = __commonJS({
|
|
|
254
243
|
}, Controller.prototype.__initialize = function(root, visitor) {
|
|
255
244
|
this.visitor = visitor, this.root = root, this.__worklist = [], this.__leavelist = [], this.__current = null, this.__state = null, this.__fallback = null, visitor.fallback === "iteration" ? this.__fallback = Object.keys : typeof visitor.fallback == "function" && (this.__fallback = visitor.fallback), this.__keys = VisitorKeys, visitor.keys && (this.__keys = Object.assign(Object.create(this.__keys), visitor.keys));
|
|
256
245
|
};
|
|
257
|
-
function
|
|
246
|
+
function isNode(node) {
|
|
258
247
|
return node == null ? !1 : typeof node == "object" && typeof node.type == "string";
|
|
259
248
|
}
|
|
260
249
|
function isProperty(nodeType, key) {
|
|
@@ -291,13 +280,13 @@ var require_estraverse = __commonJS({
|
|
|
291
280
|
if (candidate[current22] && !candidateExistsInLeaveList(leavelist, candidate[current22])) {
|
|
292
281
|
if (isProperty(nodeType, candidates[current2]))
|
|
293
282
|
element = new Element(candidate[current22], [key, current22], "Property", null);
|
|
294
|
-
else if (
|
|
283
|
+
else if (isNode(candidate[current22]))
|
|
295
284
|
element = new Element(candidate[current22], [key, current22], null, null);
|
|
296
285
|
else
|
|
297
286
|
continue;
|
|
298
287
|
worklist.push(element);
|
|
299
288
|
}
|
|
300
|
-
} else if (
|
|
289
|
+
} else if (isNode(candidate)) {
|
|
301
290
|
if (candidateExistsInLeaveList(leavelist, candidate))
|
|
302
291
|
continue;
|
|
303
292
|
worklist.push(new Element(candidate, key, null, null));
|
|
@@ -341,13 +330,13 @@ var require_estraverse = __commonJS({
|
|
|
341
330
|
if (candidate[current22]) {
|
|
342
331
|
if (isProperty(nodeType, candidates[current2]))
|
|
343
332
|
element = new Element(candidate[current22], [key, current22], "Property", new Reference(candidate, current22));
|
|
344
|
-
else if (
|
|
333
|
+
else if (isNode(candidate[current22]))
|
|
345
334
|
element = new Element(candidate[current22], [key, current22], null, new Reference(candidate, current22));
|
|
346
335
|
else
|
|
347
336
|
continue;
|
|
348
337
|
worklist.push(element);
|
|
349
338
|
}
|
|
350
|
-
} else
|
|
339
|
+
} else isNode(candidate) && worklist.push(new Element(candidate, key, null, new Reference(node, key)));
|
|
351
340
|
}
|
|
352
341
|
}
|
|
353
342
|
return outer.root;
|
|
@@ -6938,7 +6927,7 @@ var require_dist2 = __commonJS({
|
|
|
6938
6927
|
return "{}";
|
|
6939
6928
|
seen.push(input);
|
|
6940
6929
|
var ret = "{" + tokens.newLine + objKeys_1.map(function(el, i2) {
|
|
6941
|
-
var eol = objKeys_1.length - 1 === i2 ? tokens.newLine : "," + tokens.newLineOrSpace,
|
|
6930
|
+
var eol = objKeys_1.length - 1 === i2 ? tokens.newLine : "," + tokens.newLineOrSpace, isSymbol = typeof el == "symbol", isClassic = !isSymbol && /^[a-z$_][a-z$_0-9]*$/i.test(el.toString()), key = isSymbol || isClassic ? el : prettyPrint2(el, combinedOptions), value = prettyPrint2(input[el], combinedOptions, pad + combinedOptions.indent);
|
|
6942
6931
|
return combinedOptions.transform && (value = combinedOptions.transform(input, el, value)), tokens.indent + String(key) + ": " + value + eol;
|
|
6943
6932
|
}).join("") + tokens.pad + "}";
|
|
6944
6933
|
return seen.pop(), expandWhiteSpace(ret);
|
|
@@ -7584,7 +7573,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
7584
7573
|
function safeSortObject(value, seen) {
|
|
7585
7574
|
if (value === null || _typeof(value) !== "object" || value instanceof Date || value instanceof RegExp)
|
|
7586
7575
|
return value;
|
|
7587
|
-
if (React.isValidElement(value)) {
|
|
7576
|
+
if (/* @__PURE__ */ React.isValidElement(value)) {
|
|
7588
7577
|
var copyObj = _objectSpread2({}, value);
|
|
7589
7578
|
return delete copyObj._owner, copyObj;
|
|
7590
7579
|
}
|
|
@@ -7675,7 +7664,7 @@ var createStringTreeNode = function(value) {
|
|
|
7675
7664
|
return createStringTreeNode(element);
|
|
7676
7665
|
if (typeof element == "number")
|
|
7677
7666
|
return createNumberTreeNode(element);
|
|
7678
|
-
if (
|
|
7667
|
+
if (!/* @__PURE__ */ React__default.isValidElement(element))
|
|
7679
7668
|
throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(_typeof(element), "`"));
|
|
7680
7669
|
var displayName = displayNameFn(element), props = filterProps(element.props, noChildren);
|
|
7681
7670
|
element.ref !== null && (props.ref = element.ref);
|
|
@@ -7701,7 +7690,7 @@ var defaultFunctionValue = inlineFunction, formatFunction = (function(fn, option
|
|
|
7701
7690
|
var normalizedValue = sortObject(value), stringifiedValue = (0, import_pretty_print_object.prettyPrint)(normalizedValue, {
|
|
7702
7691
|
transform: function(currentObj, prop, originalResult) {
|
|
7703
7692
|
var currentValue = currentObj[prop];
|
|
7704
|
-
return currentValue && isValidElement2(currentValue) ? formatTreeNode(_parseReactElement(currentValue, options), !0, lvl, options) : typeof currentValue == "function" ? formatFunction(currentValue, options) : originalResult;
|
|
7693
|
+
return currentValue && /* @__PURE__ */ isValidElement2(currentValue) ? formatTreeNode(_parseReactElement(currentValue, options), !0, lvl, options) : typeof currentValue == "function" ? formatFunction(currentValue, options) : originalResult;
|
|
7705
7694
|
}
|
|
7706
7695
|
});
|
|
7707
7696
|
return inline ? stringifiedValue.replace(/\s+/g, " ").replace(/{ /g, "{").replace(/ }/g, "}").replace(/\[ /g, "[").replace(/ ]/g, "]") : stringifiedValue.replace(/\t/g, spacer(1, options.tabStop)).replace(/\n([^$])/g, `
|
|
@@ -7717,7 +7706,7 @@ var defaultFunctionValue = inlineFunction, formatFunction = (function(fn, option
|
|
|
7717
7706
|
var symbolDescription = propValue.valueOf().toString().replace(/Symbol\((.*)\)/, "$1");
|
|
7718
7707
|
return symbolDescription ? "{Symbol('".concat(symbolDescription, "')}") : "{Symbol()}";
|
|
7719
7708
|
}
|
|
7720
|
-
return typeof propValue == "function" ? "{".concat(formatFunction(propValue, options), "}") : isValidElement2(propValue) ? "{".concat(formatTreeNode(_parseReactElement(propValue, options), !0, lvl, options), "}") : propValue instanceof Date ? isNaN(propValue.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(propValue.toISOString(), '")}') : isPlainObject2(propValue) || Array.isArray(propValue) ? "{".concat(formatComplexDataStructure(propValue, inline, lvl, options), "}") : "{".concat(String(propValue), "}");
|
|
7709
|
+
return typeof propValue == "function" ? "{".concat(formatFunction(propValue, options), "}") : /* @__PURE__ */ isValidElement2(propValue) ? "{".concat(formatTreeNode(_parseReactElement(propValue, options), !0, lvl, options), "}") : propValue instanceof Date ? isNaN(propValue.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(propValue.toISOString(), '")}') : isPlainObject2(propValue) || Array.isArray(propValue) ? "{".concat(formatComplexDataStructure(propValue, inline, lvl, options), "}") : "{".concat(String(propValue), "}");
|
|
7721
7710
|
}, formatProp = (function(name, hasValue, value, hasDefaultValue, defaultValue, inline, lvl, options) {
|
|
7722
7711
|
if (!hasValue && !hasDefaultValue)
|
|
7723
7712
|
throw new Error('The prop "'.concat(name, '" has no value and no default: could not be formatted'));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSharedComponentMetaManager
|
|
3
|
+
} from "./chunk-3ZQP5GHE.js";
|
|
4
|
+
import {
|
|
5
|
+
extractArgTypesFromComponentMeta
|
|
6
|
+
} from "./chunk-6ZKSWYLW.js";
|
|
7
|
+
import "./chunk-MZA63NMI.js";
|
|
8
|
+
import "./chunk-MYBSMCSW.js";
|
|
9
|
+
import "./chunk-CJ2XYAXX.js";
|
|
10
|
+
import "./chunk-SC3QXTHH.js";
|
|
11
|
+
import "./chunk-QKPKKS4R.js";
|
|
12
|
+
import "./chunk-PQZIOGBY.js";
|
|
13
|
+
|
|
14
|
+
// src/docgen/extractArgTypesFromComponentFile.ts
|
|
15
|
+
async function extractArgTypesFromComponentFile({
|
|
16
|
+
componentFilePath,
|
|
17
|
+
componentExportName = "default",
|
|
18
|
+
typeScriptSpecifier
|
|
19
|
+
}) {
|
|
20
|
+
let manager = await getSharedComponentMetaManager(typeScriptSpecifier);
|
|
21
|
+
if (!manager)
|
|
22
|
+
return null;
|
|
23
|
+
let component = {
|
|
24
|
+
componentName: componentExportName,
|
|
25
|
+
importName: componentExportName,
|
|
26
|
+
path: componentFilePath,
|
|
27
|
+
isPackage: !1
|
|
28
|
+
};
|
|
29
|
+
return manager.batchExtract([{ storyPath: componentFilePath, component }]), extractArgTypesFromComponentMeta(component.reactComponentMeta) ?? null;
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
extractArgTypesFromComponentFile
|
|
33
|
+
};
|
package/dist/_node-chunks/{extractReactDocgenInfo-J6CKNSQN.js → extractReactDocgenInfo-L44YP4OM.js}
RENAMED
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
parseWithReactDocgen
|
|
14
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N7TOZR54.js";
|
|
15
4
|
import {
|
|
16
5
|
cachedReadFileSync
|
|
17
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CJ2XYAXX.js";
|
|
18
7
|
import {
|
|
19
8
|
extractArgTypes
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-SC3QXTHH.js";
|
|
10
|
+
import "./chunk-QKPKKS4R.js";
|
|
11
|
+
import "./chunk-PQZIOGBY.js";
|
|
23
12
|
|
|
24
13
|
// src/componentManifest/reactDocgen/extractReactDocgenInfo.ts
|
|
25
14
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
extractArgTypes
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SC3QXTHH.js";
|
|
4
|
+
import "./chunk-QKPKKS4R.js";
|
|
5
|
+
import "./chunk-PQZIOGBY.js";
|
|
17
6
|
|
|
18
7
|
// src/componentManifest/reactDocgen/extractReactTypescriptDocgenInfo.ts
|
|
19
8
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getMatchingDocgen,
|
|
3
|
+
getReactDocgen,
|
|
4
|
+
getReactDocgenImporter,
|
|
5
|
+
parseWithReactDocgen
|
|
6
|
+
} from "./chunk-N7TOZR54.js";
|
|
7
|
+
import "./chunk-CJ2XYAXX.js";
|
|
8
|
+
import "./chunk-QKPKKS4R.js";
|
|
9
|
+
import "./chunk-PQZIOGBY.js";
|
|
10
|
+
export {
|
|
11
|
+
getMatchingDocgen,
|
|
12
|
+
getReactDocgen,
|
|
13
|
+
getReactDocgenImporter,
|
|
14
|
+
parseWithReactDocgen
|
|
15
|
+
};
|
package/dist/builder-docgen.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
REACT_BUILDER_DOCGEN_PACKAGES,
|
|
14
3
|
getReactBuilderDocgenPackages,
|
|
15
4
|
isReactBuilderDocgenPackageInstalled,
|
|
16
5
|
prepareReactBuilderDocgen
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
18
|
-
import "./_node-chunks/chunk-
|
|
19
|
-
import "./_node-chunks/chunk-
|
|
6
|
+
} from "./_node-chunks/chunk-HRHJMJC7.js";
|
|
7
|
+
import "./_node-chunks/chunk-MYBSMCSW.js";
|
|
8
|
+
import "./_node-chunks/chunk-PQZIOGBY.js";
|
|
20
9
|
export {
|
|
21
10
|
REACT_BUILDER_DOCGEN_PACKAGES,
|
|
22
11
|
getReactBuilderDocgenPackages,
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
buildDocgenPayload
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
3
|
+
} from "../_node-chunks/chunk-6ZKSWYLW.js";
|
|
15
4
|
import {
|
|
16
5
|
ComponentMetaManager,
|
|
17
6
|
loadDocgenTypeScript
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
23
|
-
import "../_node-chunks/chunk-
|
|
7
|
+
} from "../_node-chunks/chunk-MZA63NMI.js";
|
|
8
|
+
import "../_node-chunks/chunk-MYBSMCSW.js";
|
|
9
|
+
import "../_node-chunks/chunk-CJ2XYAXX.js";
|
|
10
|
+
import "../_node-chunks/chunk-SC3QXTHH.js";
|
|
11
|
+
import "../_node-chunks/chunk-QKPKKS4R.js";
|
|
12
|
+
import "../_node-chunks/chunk-PQZIOGBY.js";
|
|
24
13
|
|
|
25
14
|
// src/docgen/docgen-worker.ts
|
|
26
15
|
import {
|
package/dist/preset.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
1
|
import {
|
|
13
2
|
REACT_BUILDER_DOCGEN_PACKAGES
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
3
|
+
} from "./_node-chunks/chunk-HRHJMJC7.js";
|
|
15
4
|
import {
|
|
16
5
|
getSharedComponentMetaManager
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
6
|
+
} from "./_node-chunks/chunk-3ZQP5GHE.js";
|
|
18
7
|
import {
|
|
19
8
|
buildReactComponentDocgenFromResolved,
|
|
20
9
|
buildStoryDocsFromResolved,
|
|
@@ -24,14 +13,14 @@ import {
|
|
|
24
13
|
join,
|
|
25
14
|
posix,
|
|
26
15
|
resolveStoryFileComponents
|
|
27
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-MZA63NMI.js";
|
|
28
17
|
import {
|
|
29
18
|
REACT_DOCGEN_TYPESCRIPT_APIS
|
|
30
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-MYBSMCSW.js";
|
|
31
20
|
import {
|
|
32
21
|
invalidateCache
|
|
33
|
-
} from "./_node-chunks/chunk-
|
|
34
|
-
import "./_node-chunks/chunk-
|
|
22
|
+
} from "./_node-chunks/chunk-CJ2XYAXX.js";
|
|
23
|
+
import "./_node-chunks/chunk-PQZIOGBY.js";
|
|
35
24
|
|
|
36
25
|
// src/preset.ts
|
|
37
26
|
import path2, { join as join3 } from "node:path";
|
|
@@ -48,130 +37,6 @@ import { logger } from "storybook/internal/node-logger";
|
|
|
48
37
|
import nodeModule, { createRequire } from "node:module";
|
|
49
38
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
50
39
|
|
|
51
|
-
// ../../../node_modules/exsolve/dist/index.mjs
|
|
52
|
-
import assert from "node:assert";
|
|
53
|
-
import v8 from "node:v8";
|
|
54
|
-
import { format, inspect } from "node:util";
|
|
55
|
-
var own$1 = {}.hasOwnProperty, classRegExp = /^([A-Z][a-z\d]*)+$/, kTypes = /* @__PURE__ */ new Set([
|
|
56
|
-
"string",
|
|
57
|
-
"function",
|
|
58
|
-
"number",
|
|
59
|
-
"object",
|
|
60
|
-
"Function",
|
|
61
|
-
"Object",
|
|
62
|
-
"boolean",
|
|
63
|
-
"bigint",
|
|
64
|
-
"symbol"
|
|
65
|
-
]), messages = /* @__PURE__ */ new Map(), nodeInternalPrefix = "__node_internal_", userStackTraceLimit;
|
|
66
|
-
function formatList(array, type = "and") {
|
|
67
|
-
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array.at(-1)}`;
|
|
68
|
-
}
|
|
69
|
-
function createError(sym, value, constructor) {
|
|
70
|
-
return messages.set(sym, value), makeNodeErrorWithCode(constructor, sym);
|
|
71
|
-
}
|
|
72
|
-
function makeNodeErrorWithCode(Base, key) {
|
|
73
|
-
return function(...parameters) {
|
|
74
|
-
let limit = Error.stackTraceLimit;
|
|
75
|
-
isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
|
|
76
|
-
let error = new Base();
|
|
77
|
-
isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = limit);
|
|
78
|
-
let message = getMessage(key, parameters, error);
|
|
79
|
-
return Object.defineProperties(error, {
|
|
80
|
-
message: {
|
|
81
|
-
value: message,
|
|
82
|
-
enumerable: !1,
|
|
83
|
-
writable: !0,
|
|
84
|
-
configurable: !0
|
|
85
|
-
},
|
|
86
|
-
toString: {
|
|
87
|
-
value() {
|
|
88
|
-
return `${this.name} [${key}]: ${this.message}`;
|
|
89
|
-
},
|
|
90
|
-
enumerable: !1,
|
|
91
|
-
writable: !0,
|
|
92
|
-
configurable: !0
|
|
93
|
-
}
|
|
94
|
-
}), captureLargerStackTrace(error), error.code = key, error;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function isErrorStackTraceLimitWritable() {
|
|
98
|
-
try {
|
|
99
|
-
if (v8.startupSnapshot.isBuildingSnapshot()) return !1;
|
|
100
|
-
} catch {
|
|
101
|
-
}
|
|
102
|
-
let desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
103
|
-
return desc === void 0 ? Object.isExtensible(Error) : own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
104
|
-
}
|
|
105
|
-
function hideStackFrames(wrappedFunction) {
|
|
106
|
-
let hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
107
|
-
return Object.defineProperty(wrappedFunction, "name", { value: hidden }), wrappedFunction;
|
|
108
|
-
}
|
|
109
|
-
var captureLargerStackTrace = hideStackFrames(function(error) {
|
|
110
|
-
let stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
|
|
111
|
-
return stackTraceLimitIsWritable && (userStackTraceLimit = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit), error;
|
|
112
|
-
});
|
|
113
|
-
function getMessage(key, parameters, self) {
|
|
114
|
-
let message = messages.get(key);
|
|
115
|
-
if (assert.ok(message !== void 0, "expected `message` to be found"), typeof message == "function")
|
|
116
|
-
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);
|
|
117
|
-
let regex = /%[dfijoOs]/g, expectedLength = 0;
|
|
118
|
-
for (; regex.exec(message) !== null; ) expectedLength++;
|
|
119
|
-
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));
|
|
120
|
-
}
|
|
121
|
-
function determineSpecificType(value) {
|
|
122
|
-
if (value == null) return String(value);
|
|
123
|
-
if (typeof value == "function" && value.name) return `function ${value.name}`;
|
|
124
|
-
if (typeof value == "object")
|
|
125
|
-
return value.constructor && value.constructor.name ? `an instance of ${value.constructor.name}` : `${inspect(value, { depth: -1 })}`;
|
|
126
|
-
let inspected = inspect(value, { colors: !1 });
|
|
127
|
-
return inspected.length > 28 && (inspected = `${inspected.slice(0, 25)}...`), `type ${typeof value} (${inspected})`;
|
|
128
|
-
}
|
|
129
|
-
var ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
130
|
-
assert.ok(typeof name == "string", "'name' must be a string"), Array.isArray(expected) || (expected = [expected]);
|
|
131
|
-
let message = "The ";
|
|
132
|
-
if (name.endsWith(" argument")) message += `${name} `;
|
|
133
|
-
else {
|
|
134
|
-
let type = name.includes(".") ? "property" : "argument";
|
|
135
|
-
message += `"${name}" ${type} `;
|
|
136
|
-
}
|
|
137
|
-
message += "must be ";
|
|
138
|
-
let types = [], instances = [], other = [];
|
|
139
|
-
for (let value of expected)
|
|
140
|
-
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);
|
|
141
|
-
if (instances.length > 0) {
|
|
142
|
-
let pos = types.indexOf("object");
|
|
143
|
-
pos !== -1 && (types.slice(pos, 1), instances.push("Object"));
|
|
144
|
-
}
|
|
145
|
-
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;
|
|
146
|
-
}, TypeError), ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
147
|
-
"ERR_INVALID_MODULE_SPECIFIER",
|
|
148
|
-
/**
|
|
149
|
-
* @param {string} request
|
|
150
|
-
* @param {string} reason
|
|
151
|
-
* @param {string} [base]
|
|
152
|
-
*/
|
|
153
|
-
(request, reason, base) => `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`,
|
|
154
|
-
TypeError
|
|
155
|
-
), 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) => {
|
|
156
|
-
let relatedError = typeof target == "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
157
|
-
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 "./"' : ""}`;
|
|
158
|
-
}, 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(
|
|
159
|
-
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
160
|
-
/**
|
|
161
|
-
* @param {string} packagePath
|
|
162
|
-
* @param {string} subpath
|
|
163
|
-
* @param {string} [base]
|
|
164
|
-
*/
|
|
165
|
-
(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}` : ""}`,
|
|
166
|
-
Error
|
|
167
|
-
), 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") => {
|
|
168
|
-
let inspected = inspect(value);
|
|
169
|
-
return inspected.length > 128 && (inspected = `${inspected.slice(0, 128)}...`), `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`;
|
|
170
|
-
}, TypeError), hasOwnProperty$1 = {}.hasOwnProperty;
|
|
171
|
-
var hasOwnProperty = {}.hasOwnProperty;
|
|
172
|
-
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace], own = {}.hasOwnProperty;
|
|
173
|
-
var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE_CACHE__ ||= /* @__PURE__ */ new Map();
|
|
174
|
-
|
|
175
40
|
// ../../core/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
176
41
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
177
42
|
function normalizeWindowsPath(input = "") {
|
|
@@ -375,7 +240,7 @@ var enrichCsf = async (input, options) => {
|
|
|
375
240
|
let promises = Object.keys(csf._stories).map(async (key) => {
|
|
376
241
|
if (!csfSource._meta?.component)
|
|
377
242
|
return;
|
|
378
|
-
let { format:
|
|
243
|
+
let { format: format2 } = await getPrettier(), code, snippet;
|
|
379
244
|
try {
|
|
380
245
|
code = getCodeSnippet(csfSource, key, csfSource._meta?.component).snippet;
|
|
381
246
|
} catch (e) {
|
|
@@ -384,7 +249,7 @@ var enrichCsf = async (input, options) => {
|
|
|
384
249
|
snippet = e.message;
|
|
385
250
|
}
|
|
386
251
|
try {
|
|
387
|
-
!snippet && code && (snippet = await
|
|
252
|
+
!snippet && code && (snippet = await format2(code, {
|
|
388
253
|
filepath: join(process.cwd(), "component.tsx")
|
|
389
254
|
}));
|
|
390
255
|
} catch (e) {
|
|
@@ -514,7 +379,7 @@ async function internal_getArgTypesData(_input, options) {
|
|
|
514
379
|
return null;
|
|
515
380
|
let absoluteComponentFilePath = path2.isAbsolute(componentFilePath) ? componentFilePath : join3(getProjectRoot(), componentFilePath);
|
|
516
381
|
if ((await presets?.apply("features", {}))?.docgenServer) {
|
|
517
|
-
let { extractArgTypesFromComponentFile } = await import("./_node-chunks/extractArgTypesFromComponentFile-
|
|
382
|
+
let { extractArgTypesFromComponentFile } = await import("./_node-chunks/extractArgTypesFromComponentFile-2DRDUH5M.js");
|
|
518
383
|
return extractArgTypesFromComponentFile({
|
|
519
384
|
componentFilePath: absoluteComponentFilePath,
|
|
520
385
|
componentExportName,
|
|
@@ -533,14 +398,14 @@ async function internal_getArgTypesData(_input, options) {
|
|
|
533
398
|
let argTypesData;
|
|
534
399
|
try {
|
|
535
400
|
if (reactDocgen === "react-docgen-typescript") {
|
|
536
|
-
let { extractArgTypesFromDocgenTypescript } = await import("./_node-chunks/extractReactTypescriptDocgenInfo-
|
|
401
|
+
let { extractArgTypesFromDocgenTypescript } = await import("./_node-chunks/extractReactTypescriptDocgenInfo-XLLLW3MT.js");
|
|
537
402
|
argTypesData = await extractArgTypesFromDocgenTypescript({
|
|
538
403
|
componentFilePath: absoluteComponentFilePath,
|
|
539
404
|
componentExportName,
|
|
540
405
|
reactDocgenTypescriptOptions
|
|
541
406
|
});
|
|
542
407
|
} else {
|
|
543
|
-
let { extractArgTypesFromDocgen } = await import("./_node-chunks/extractReactDocgenInfo-
|
|
408
|
+
let { extractArgTypesFromDocgen } = await import("./_node-chunks/extractReactDocgenInfo-L44YP4OM.js");
|
|
544
409
|
argTypesData = extractArgTypesFromDocgen({
|
|
545
410
|
componentFilePath: absoluteComponentFilePath,
|
|
546
411
|
componentExportName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.4",
|
|
4
4
|
"description": "Storybook React renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@storybook/global": "^5.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@storybook/component-meta-typescript": "11.0.0-beta.
|
|
59
|
+
"@storybook/component-meta-typescript": "11.0.0-beta.4",
|
|
60
60
|
"@types/babel-plugin-react-docgen": "^4.2.3",
|
|
61
61
|
"@types/escodegen": "^0.0.6",
|
|
62
62
|
"@types/estree": "^1.0.6",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react-docgen": "^8.0.2",
|
|
91
91
|
"react-docgen-typescript": "^2.2.2",
|
|
92
92
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
93
|
-
"storybook": "^11.0.0-beta.
|
|
93
|
+
"storybook": "^11.0.0-beta.4",
|
|
94
94
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependenciesMeta": {
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_0pbco1v5vos from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_0pbco1v5vos from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_0pbco1v5vos from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_0pbco1v5vos.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_0pbco1v5vos.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_0pbco1v5vos.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/docgen-typescript-apis.ts
|
|
14
|
-
var REACT_DOCGEN_TYPESCRIPT_APIS = ["compiler", "native"];
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
REACT_DOCGEN_TYPESCRIPT_APIS
|
|
18
|
-
};
|