@storybook/addon-docs 10.0.6 → 10.0.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.
- package/dist/_node-chunks/{chunk-UNIWC4XT.js → chunk-7DMDAEHB.js} +7 -7
- package/dist/_node-chunks/{chunk-BXJQBBBG.js → chunk-HBQD5LC4.js} +17 -10
- package/dist/_node-chunks/{chunk-KHFIAJ2C.js → chunk-P3DP65S2.js} +29 -28
- package/dist/_node-chunks/{chunk-XSHRI7DO.js → chunk-VR76HZKS.js} +6 -6
- package/dist/_node-chunks/{mdx-plugin-ADYEGPTF.js → mdx-plugin-DELEMBQS.js} +12 -12
- package/dist/_node-chunks/{rehype-external-links-7XU5XJJX.js → rehype-external-links-BYAC2X3T.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-4XSJZOLT.js → rehype-slug-7XE3GWQD.js} +8 -8
- package/dist/blocks.d.ts +4 -2
- package/dist/blocks.js +257 -231
- package/dist/mdx-loader.js +10 -10
- package/dist/preset.js +100 -192
- package/package.json +5 -5
package/dist/mdx-loader.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kc8mjv042pf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kc8mjv042pf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kc8mjv042pf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kc8mjv042pf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kc8mjv042pf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kc8mjv042pf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
compile
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
15
|
-
import "./_node-chunks/chunk-
|
|
16
|
-
import "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-P3DP65S2.js";
|
|
15
|
+
import "./_node-chunks/chunk-7DMDAEHB.js";
|
|
16
|
+
import "./_node-chunks/chunk-HBQD5LC4.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
|
-
} from "./_node-chunks/chunk-
|
|
19
|
+
} from "./_node-chunks/chunk-VR76HZKS.js";
|
|
20
20
|
|
|
21
21
|
// src/mdx-loader.ts
|
|
22
22
|
var DEFAULT_RENDERER = `
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_kc8mjv042pf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_kc8mjv042pf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_kc8mjv042pf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_kc8mjv042pf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_kc8mjv042pf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_kc8mjv042pf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-VR76HZKS.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
import { isAbsolute as isAbsolute2 } from "node:path";
|
|
@@ -32,7 +32,6 @@ var kTypes = /* @__PURE__ */ new Set([
|
|
|
32
32
|
"function",
|
|
33
33
|
"number",
|
|
34
34
|
"object",
|
|
35
|
-
// Accept 'Function' and 'Object' as alternative to the lower cased version.
|
|
36
35
|
"Function",
|
|
37
36
|
"Object",
|
|
38
37
|
"boolean",
|
|
@@ -59,8 +58,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
59
58
|
if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;
|
|
60
59
|
const message = getMessage(key, parameters, error);
|
|
61
60
|
Object.defineProperties(error, {
|
|
62
|
-
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
63
|
-
// probably.
|
|
64
61
|
message: {
|
|
65
62
|
value: message,
|
|
66
63
|
enumerable: false,
|
|
@@ -68,7 +65,6 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
68
65
|
configurable: true
|
|
69
66
|
},
|
|
70
67
|
toString: {
|
|
71
|
-
/** @this {Error} */
|
|
72
68
|
value() {
|
|
73
69
|
return `${this.name} [${key}]: ${this.message}`;
|
|
74
70
|
},
|
|
@@ -85,15 +81,11 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
85
81
|
__name(makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
86
82
|
function isErrorStackTraceLimitWritable() {
|
|
87
83
|
try {
|
|
88
|
-
if (v8.startupSnapshot.isBuildingSnapshot())
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
84
|
+
if (v8.startupSnapshot.isBuildingSnapshot()) return false;
|
|
91
85
|
} catch {
|
|
92
86
|
}
|
|
93
87
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
94
|
-
if (desc === void 0)
|
|
95
|
-
return Object.isExtensible(Error);
|
|
96
|
-
}
|
|
88
|
+
if (desc === void 0) return Object.isExtensible(Error);
|
|
97
89
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
98
90
|
}
|
|
99
91
|
__name(isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
@@ -115,219 +107,135 @@ var captureLargerStackTrace = hideStackFrames(function(error) {
|
|
|
115
107
|
});
|
|
116
108
|
function getMessage(key, parameters, self) {
|
|
117
109
|
const message = messages.get(key);
|
|
118
|
-
assert(message !== void 0, "expected `message` to be found");
|
|
110
|
+
assert.ok(message !== void 0, "expected `message` to be found");
|
|
119
111
|
if (typeof message === "function") {
|
|
120
|
-
assert(
|
|
121
|
-
message.length <= parameters.length,
|
|
122
|
-
// Default options do not count.
|
|
123
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
124
|
-
);
|
|
112
|
+
assert.ok(message.length <= parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`);
|
|
125
113
|
return Reflect.apply(message, self, parameters);
|
|
126
114
|
}
|
|
127
115
|
const regex = /%[dfijoOs]/g;
|
|
128
116
|
let expectedLength = 0;
|
|
129
117
|
while (regex.exec(message) !== null) expectedLength++;
|
|
130
|
-
assert(
|
|
131
|
-
expectedLength === parameters.length,
|
|
132
|
-
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
133
|
-
);
|
|
118
|
+
assert.ok(expectedLength === parameters.length, `Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`);
|
|
134
119
|
if (parameters.length === 0) return message;
|
|
135
120
|
parameters.unshift(message);
|
|
136
121
|
return Reflect.apply(format, null, parameters);
|
|
137
122
|
}
|
|
138
123
|
__name(getMessage, "getMessage");
|
|
139
124
|
function determineSpecificType(value) {
|
|
140
|
-
if (value === null || value === void 0)
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
if (typeof value === "function" && value.name) {
|
|
144
|
-
return `function ${value.name}`;
|
|
145
|
-
}
|
|
125
|
+
if (value === null || value === void 0) return String(value);
|
|
126
|
+
if (typeof value === "function" && value.name) return `function ${value.name}`;
|
|
146
127
|
if (typeof value === "object") {
|
|
147
|
-
if (value.constructor && value.constructor.name) {
|
|
148
|
-
return `an instance of ${value.constructor.name}`;
|
|
149
|
-
}
|
|
128
|
+
if (value.constructor && value.constructor.name) return `an instance of ${value.constructor.name}`;
|
|
150
129
|
return `${inspect(value, { depth: -1 })}`;
|
|
151
130
|
}
|
|
152
131
|
let inspected = inspect(value, { colors: false });
|
|
153
|
-
if (inspected.length > 28) {
|
|
154
|
-
inspected = `${inspected.slice(0, 25)}...`;
|
|
155
|
-
}
|
|
132
|
+
if (inspected.length > 28) inspected = `${inspected.slice(0, 25)}...`;
|
|
156
133
|
return `type ${typeof value} (${inspected})`;
|
|
157
134
|
}
|
|
158
135
|
__name(determineSpecificType, "determineSpecificType");
|
|
159
|
-
createError(
|
|
160
|
-
"
|
|
161
|
-
(
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
assert(
|
|
186
|
-
value !== "object",
|
|
187
|
-
'The value "object" should be written as "Object"'
|
|
188
|
-
);
|
|
189
|
-
other.push(value);
|
|
190
|
-
} else {
|
|
191
|
-
instances.push(value);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
if (instances.length > 0) {
|
|
195
|
-
const pos = types.indexOf("object");
|
|
196
|
-
if (pos !== -1) {
|
|
197
|
-
types.slice(pos, 1);
|
|
198
|
-
instances.push("Object");
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
if (types.length > 0) {
|
|
202
|
-
message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(
|
|
203
|
-
types,
|
|
204
|
-
"or"
|
|
205
|
-
)}`;
|
|
206
|
-
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
207
|
-
}
|
|
208
|
-
if (instances.length > 0) {
|
|
209
|
-
message += `an instance of ${formatList(instances, "or")}`;
|
|
210
|
-
if (other.length > 0) message += " or ";
|
|
211
|
-
}
|
|
212
|
-
if (other.length > 0) {
|
|
213
|
-
if (other.length > 1) {
|
|
214
|
-
message += `one of ${formatList(other, "or")}`;
|
|
215
|
-
} else {
|
|
216
|
-
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
217
|
-
message += `${other[0]}`;
|
|
218
|
-
}
|
|
136
|
+
var ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (name, expected, actual) => {
|
|
137
|
+
assert.ok(typeof name === "string", "'name' must be a string");
|
|
138
|
+
if (!Array.isArray(expected)) expected = [expected];
|
|
139
|
+
let message = "The ";
|
|
140
|
+
if (name.endsWith(" argument")) message += `${name} `;
|
|
141
|
+
else {
|
|
142
|
+
const type = name.includes(".") ? "property" : "argument";
|
|
143
|
+
message += `"${name}" ${type} `;
|
|
144
|
+
}
|
|
145
|
+
message += "must be ";
|
|
146
|
+
const types = [];
|
|
147
|
+
const instances = [];
|
|
148
|
+
const other = [];
|
|
149
|
+
for (const value of expected) {
|
|
150
|
+
assert.ok(typeof value === "string", "All expected entries have to be of type string");
|
|
151
|
+
if (kTypes.has(value)) types.push(value.toLowerCase());
|
|
152
|
+
else if (classRegExp.exec(value) === null) {
|
|
153
|
+
assert.ok(value !== "object", 'The value "object" should be written as "Object"');
|
|
154
|
+
other.push(value);
|
|
155
|
+
} else instances.push(value);
|
|
156
|
+
}
|
|
157
|
+
if (instances.length > 0) {
|
|
158
|
+
const pos = types.indexOf("object");
|
|
159
|
+
if (pos !== -1) {
|
|
160
|
+
types.slice(pos, 1);
|
|
161
|
+
instances.push("Object");
|
|
219
162
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
163
|
+
}
|
|
164
|
+
if (types.length > 0) {
|
|
165
|
+
message += `${types.length > 1 ? "one of type" : "of type"} ${formatList(types, "or")}`;
|
|
166
|
+
if (instances.length > 0 || other.length > 0) message += " or ";
|
|
167
|
+
}
|
|
168
|
+
if (instances.length > 0) {
|
|
169
|
+
message += `an instance of ${formatList(instances, "or")}`;
|
|
170
|
+
if (other.length > 0) message += " or ";
|
|
171
|
+
}
|
|
172
|
+
if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`;
|
|
173
|
+
else {
|
|
174
|
+
if (other[0]?.toLowerCase() !== other[0]) message += "an ";
|
|
175
|
+
message += `${other[0]}`;
|
|
176
|
+
}
|
|
177
|
+
message += `. Received ${determineSpecificType(actual)}`;
|
|
178
|
+
return message;
|
|
179
|
+
}, TypeError);
|
|
225
180
|
var ERR_INVALID_MODULE_SPECIFIER = createError(
|
|
226
181
|
"ERR_INVALID_MODULE_SPECIFIER",
|
|
227
182
|
/**
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
183
|
+
* @param {string} request
|
|
184
|
+
* @param {string} reason
|
|
185
|
+
* @param {string} [base]
|
|
186
|
+
*/
|
|
232
187
|
(request, reason, base) => {
|
|
233
188
|
return `Invalid module "${request}" ${reason}${base ? ` imported from ${base}` : ""}`;
|
|
234
189
|
},
|
|
235
190
|
TypeError
|
|
236
191
|
);
|
|
237
|
-
var ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
);
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
(
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
},
|
|
256
|
-
Error
|
|
257
|
-
);
|
|
258
|
-
var ERR_MODULE_NOT_FOUND = createError(
|
|
259
|
-
"ERR_MODULE_NOT_FOUND",
|
|
260
|
-
(path2, base, exactUrl = false) => {
|
|
261
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
262
|
-
},
|
|
263
|
-
Error
|
|
264
|
-
);
|
|
265
|
-
createError(
|
|
266
|
-
"ERR_NETWORK_IMPORT_DISALLOWED",
|
|
267
|
-
"import of '%s' by %s is not supported: %s",
|
|
268
|
-
Error
|
|
269
|
-
);
|
|
270
|
-
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
|
|
271
|
-
"ERR_PACKAGE_IMPORT_NOT_DEFINED",
|
|
272
|
-
(specifier, packagePath, base) => {
|
|
273
|
-
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
274
|
-
},
|
|
275
|
-
TypeError
|
|
276
|
-
);
|
|
192
|
+
var ERR_INVALID_PACKAGE_CONFIG = createError("ERR_INVALID_PACKAGE_CONFIG", (path$1, base, message) => {
|
|
193
|
+
return `Invalid package config ${path$1}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
194
|
+
}, Error);
|
|
195
|
+
var ERR_INVALID_PACKAGE_TARGET = createError("ERR_INVALID_PACKAGE_TARGET", (packagePath, key, target, isImport = false, base) => {
|
|
196
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
197
|
+
if (key === ".") {
|
|
198
|
+
assert.ok(isImport === false);
|
|
199
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
200
|
+
}
|
|
201
|
+
return `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 "./"' : ""}`;
|
|
202
|
+
}, Error);
|
|
203
|
+
var ERR_MODULE_NOT_FOUND = createError("ERR_MODULE_NOT_FOUND", (path$1, base, exactUrl = false) => {
|
|
204
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path$1}' imported from ${base}`;
|
|
205
|
+
}, Error);
|
|
206
|
+
var ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error);
|
|
207
|
+
var ERR_PACKAGE_IMPORT_NOT_DEFINED = createError("ERR_PACKAGE_IMPORT_NOT_DEFINED", (specifier, packagePath, base) => {
|
|
208
|
+
return `Package import specifier "${specifier}" is not defined${packagePath ? ` in package ${packagePath || ""}package.json` : ""} imported from ${base}`;
|
|
209
|
+
}, TypeError);
|
|
277
210
|
var ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
278
211
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
279
212
|
/**
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
213
|
+
* @param {string} packagePath
|
|
214
|
+
* @param {string} subpath
|
|
215
|
+
* @param {string} [base]
|
|
216
|
+
*/
|
|
284
217
|
(packagePath, subpath, base) => {
|
|
285
|
-
if (subpath === ".")
|
|
286
|
-
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
218
|
+
if (subpath === ".") return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
287
219
|
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
288
220
|
},
|
|
289
221
|
Error
|
|
290
222
|
);
|
|
291
|
-
var ERR_UNSUPPORTED_DIR_IMPORT = createError(
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
);
|
|
296
|
-
var
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
);
|
|
301
|
-
var ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
302
|
-
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
303
|
-
(extension, path2) => {
|
|
304
|
-
return `Unknown file extension "${extension}" for ${path2}`;
|
|
305
|
-
},
|
|
306
|
-
TypeError
|
|
307
|
-
);
|
|
308
|
-
createError(
|
|
309
|
-
"ERR_INVALID_ARG_VALUE",
|
|
310
|
-
(name, value, reason = "is invalid") => {
|
|
311
|
-
let inspected = inspect(value);
|
|
312
|
-
if (inspected.length > 128) {
|
|
313
|
-
inspected = `${inspected.slice(0, 128)}...`;
|
|
314
|
-
}
|
|
315
|
-
const type = name.includes(".") ? "property" : "argument";
|
|
316
|
-
return `The ${type} '${name}' ${reason}. Received ${inspected}`;
|
|
317
|
-
},
|
|
318
|
-
TypeError
|
|
319
|
-
// Note: extra classes have been shaken out.
|
|
320
|
-
// , RangeError
|
|
321
|
-
);
|
|
223
|
+
var ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error);
|
|
224
|
+
var 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);
|
|
225
|
+
var ERR_UNKNOWN_FILE_EXTENSION = createError("ERR_UNKNOWN_FILE_EXTENSION", (extension, path$1) => {
|
|
226
|
+
return `Unknown file extension "${extension}" for ${path$1}`;
|
|
227
|
+
}, TypeError);
|
|
228
|
+
var ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (name, value, reason = "is invalid") => {
|
|
229
|
+
let inspected = inspect(value);
|
|
230
|
+
if (inspected.length > 128) inspected = `${inspected.slice(0, 128)}...`;
|
|
231
|
+
return `The ${name.includes(".") ? "property" : "argument"} '${name}' ${reason}. Received ${inspected}`;
|
|
232
|
+
}, TypeError);
|
|
322
233
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
323
234
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
324
235
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
325
236
|
var own = {}.hasOwnProperty;
|
|
326
237
|
var isWindows = (() => process.platform === "win32")();
|
|
327
|
-
var globalCache = (() => (
|
|
328
|
-
// eslint-disable-next-line unicorn/no-unreadable-iife
|
|
329
|
-
globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map()
|
|
330
|
-
))();
|
|
238
|
+
var globalCache = (() => globalThis["__EXSOLVE_CACHE__"] ||= /* @__PURE__ */ new Map())();
|
|
331
239
|
|
|
332
240
|
// ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
333
241
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -492,8 +400,8 @@ var getResolvedReact = /* @__PURE__ */ __name(async (options) => {
|
|
|
492
400
|
async function webpack(webpackConfig = {}, options) {
|
|
493
401
|
const { module = {} } = webpackConfig;
|
|
494
402
|
const { csfPluginOptions = {}, mdxPluginOptions = {} } = options;
|
|
495
|
-
const rehypeSlug = (await import("./_node-chunks/rehype-slug-
|
|
496
|
-
const rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-
|
|
403
|
+
const rehypeSlug = (await import("./_node-chunks/rehype-slug-7XE3GWQD.js")).default;
|
|
404
|
+
const rehypeExternalLinks = (await import("./_node-chunks/rehype-external-links-BYAC2X3T.js")).default;
|
|
497
405
|
const mdxLoaderOptions = await options.presets.apply("mdxLoaderOptions", {
|
|
498
406
|
...mdxPluginOptions,
|
|
499
407
|
mdxCompileOptions: {
|
|
@@ -582,7 +490,7 @@ var addons = [
|
|
|
582
490
|
];
|
|
583
491
|
var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
584
492
|
const { plugins = [] } = config;
|
|
585
|
-
const { mdxPlugin } = await import("./_node-chunks/mdx-plugin-
|
|
493
|
+
const { mdxPlugin } = await import("./_node-chunks/mdx-plugin-DELEMBQS.js");
|
|
586
494
|
const { react, reactDom, mdx } = await getResolvedReact(options);
|
|
587
495
|
const packageDeduplicationPlugin = {
|
|
588
496
|
name: "storybook:package-deduplication",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-docs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.8",
|
|
4
4
|
"description": "Storybook Docs: Document UI components automatically with stories and MDX",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@mdx-js/react": "^3.0.0",
|
|
87
|
-
"@storybook/csf-plugin": "10.0.
|
|
87
|
+
"@storybook/csf-plugin": "10.0.8",
|
|
88
88
|
"@storybook/icons": "^1.6.0",
|
|
89
|
-
"@storybook/react-dom-shim": "10.0.
|
|
89
|
+
"@storybook/react-dom-shim": "10.0.8",
|
|
90
90
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
91
91
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
92
92
|
"ts-dedent": "^2.0.0"
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
"vite": "^7.0.4"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
|
-
"storybook": "^10.0.
|
|
116
|
+
"storybook": "^10.0.8"
|
|
117
117
|
},
|
|
118
118
|
"publishConfig": {
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae1I",
|
|
122
122
|
"storybook": {
|
|
123
123
|
"displayName": "Docs",
|
|
124
124
|
"icon": "https://user-images.githubusercontent.com/263385/101991672-48355c80-3c7c-11eb-82d9-95fa12438f64.png",
|