create-storybook 9.2.0-alpha.2 → 10.0.0-beta.0
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/README.md +7 -1
- package/dist/_node-chunks/chunk-WMCE423I.js +18054 -0
- package/dist/_node-chunks/chunk-YS3LR2WA.js +101 -0
- package/dist/_node-chunks/run-UEEEVPHK.js +3091 -0
- package/dist/bin/index.js +28 -30
- package/dist/index.js +17 -8
- package/package.json +14 -21
- package/rendererAssets/common/Configure.mdx +11 -11
- package/bin/index.cjs +0 -29
- package/dist/acorn-S663NUPJ.js +0 -23
- package/dist/angular-2B6ABFHH.js +0 -9
- package/dist/babel-MNAPHRD7.js +0 -23
- package/dist/chunk-BGLTZLIX.js +0 -2911
- package/dist/chunk-CLZ3BCYS.js +0 -8
- package/dist/chunk-O2GNSM63.js +0 -8
- package/dist/chunk-VASF4FB5.js +0 -8
- package/dist/estree-33GAXYFB.js +0 -44
- package/dist/flow-G75PDG3L.js +0 -27
- package/dist/glimmer-6NKSN2XR.js +0 -38
- package/dist/globby-MUDC2HZV.js +0 -19
- package/dist/graphql-SR6B3LNT.js +0 -37
- package/dist/html-334HIZF4.js +0 -31
- package/dist/lib-JRUFT6VI.js +0 -13
- package/dist/markdown-IU6WPIRS.js +0 -71
- package/dist/meriyah-XCEGMU42.js +0 -12
- package/dist/p-limit-6IADBR6D.js +0 -10
- package/dist/postcss-ZQW7AFNR.js +0 -62
- package/dist/prettier-T3HPK5X5.js +0 -150
- package/dist/typescript-LM3Q5WBB.js +0 -28
- package/dist/yaml-LI2SVAD5.js +0 -169
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xkaxxo7f88 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xkaxxo7f88 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xkaxxo7f88 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xkaxxo7f88.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xkaxxo7f88.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xkaxxo7f88.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __create = Object.create;
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
16
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
19
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
20
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
21
|
+
}) : x)(function(x) {
|
|
22
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
23
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
24
|
+
});
|
|
25
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
26
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
|
+
};
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
+
for (let key of __getOwnPropNames(from))
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
39
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
40
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
41
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
42
|
+
mod
|
|
43
|
+
));
|
|
44
|
+
|
|
45
|
+
// ../../node_modules/ts-dedent/dist/index.js
|
|
46
|
+
var require_dist = __commonJS({
|
|
47
|
+
"../../node_modules/ts-dedent/dist/index.js"(exports) {
|
|
48
|
+
"use strict";
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.dedent = void 0;
|
|
51
|
+
function dedent(templ) {
|
|
52
|
+
var values = [];
|
|
53
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
54
|
+
values[_i - 1] = arguments[_i];
|
|
55
|
+
}
|
|
56
|
+
var strings = Array.from(typeof templ === "string" ? [templ] : templ);
|
|
57
|
+
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
58
|
+
var indentLengths = strings.reduce(function(arr, str) {
|
|
59
|
+
var matches = str.match(/\n([\t ]+|(?!\s).)/g);
|
|
60
|
+
if (matches) {
|
|
61
|
+
return arr.concat(matches.map(function(match) {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
return arr;
|
|
67
|
+
}, []);
|
|
68
|
+
if (indentLengths.length) {
|
|
69
|
+
var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g");
|
|
70
|
+
strings = strings.map(function(str) {
|
|
71
|
+
return str.replace(pattern_1, "\n");
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
strings[0] = strings[0].replace(/^\r?\n/, "");
|
|
75
|
+
var string = strings[0];
|
|
76
|
+
values.forEach(function(value, i) {
|
|
77
|
+
var endentations = string.match(/(?:^|\n)( *)$/);
|
|
78
|
+
var endentation = endentations ? endentations[1] : "";
|
|
79
|
+
var indentedValue = value;
|
|
80
|
+
if (typeof value === "string" && value.includes("\n")) {
|
|
81
|
+
indentedValue = String(value).split("\n").map(function(str, i2) {
|
|
82
|
+
return i2 === 0 ? str : "" + endentation + str;
|
|
83
|
+
}).join("\n");
|
|
84
|
+
}
|
|
85
|
+
string += indentedValue + strings[i + 1];
|
|
86
|
+
});
|
|
87
|
+
return string;
|
|
88
|
+
}
|
|
89
|
+
__name(dedent, "dedent");
|
|
90
|
+
exports.dedent = dedent;
|
|
91
|
+
exports.default = dedent;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
__name,
|
|
97
|
+
__require,
|
|
98
|
+
__commonJS,
|
|
99
|
+
__toESM,
|
|
100
|
+
require_dist
|
|
101
|
+
};
|