storybook 10.2.0-alpha.8 → 10.2.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.
Files changed (97) hide show
  1. package/dist/_browser-chunks/{Color-E5XDEOX4.js → Color-XESOIGZP.js} +57 -3
  2. package/dist/_browser-chunks/chunk-AFVOZMXQ.js +23 -0
  3. package/dist/_browser-chunks/{chunk-3PJE6VLG.js → chunk-ASKQZAOS.js} +1 -12
  4. package/dist/_browser-chunks/chunk-IYCKG66Y.js +171 -0
  5. package/dist/_browser-chunks/chunk-LCHBOIHN.js +64 -0
  6. package/dist/_browser-chunks/{chunk-IPA5A322.js → chunk-MEXTPDJG.js} +1 -1
  7. package/dist/_browser-chunks/{chunk-54PNNATT.js → chunk-NQJGOFZV.js} +18 -1
  8. package/dist/_browser-chunks/{chunk-VUZYLZ4B.js → chunk-QOXZ7W26.js} +31 -15
  9. package/dist/_browser-chunks/{chunk-LOTN4ZCW.js → chunk-SI6AKD4S.js} +2 -2
  10. package/dist/_browser-chunks/chunk-YK43Z22A.js +263 -0
  11. package/dist/_node-chunks/{builder-manager-2XASU3VS.js → builder-manager-JEJE63VV.js} +15 -12
  12. package/dist/_node-chunks/camelcase-HALRJETF.js +62 -0
  13. package/dist/_node-chunks/{chunk-5GRHJJHD.js → chunk-3SKE4CCB.js} +9 -9
  14. package/dist/_node-chunks/chunk-4UYAC7Y2.js +18 -0
  15. package/dist/_node-chunks/{chunk-S7FIFCTX.js → chunk-6UAQEBJX.js} +10 -10
  16. package/dist/_node-chunks/{chunk-ZKB7MQRR.js → chunk-72K4WVI5.js} +18 -14
  17. package/dist/_node-chunks/{chunk-6TJUL42C.js → chunk-7ZX5CX6B.js} +15 -69
  18. package/dist/_node-chunks/{chunk-LEZENLG7.js → chunk-ADTWC7QJ.js} +7 -7
  19. package/dist/_node-chunks/{chunk-2OC7H5MZ.js → chunk-APUXGW3Y.js} +7 -7
  20. package/dist/_node-chunks/{chunk-5WQXPM6D.js → chunk-AXDM43NU.js} +6 -6
  21. package/dist/_node-chunks/{chunk-LOXLI4XT.js → chunk-B422K4XV.js} +6 -6
  22. package/dist/_node-chunks/{chunk-3K6P75SS.js → chunk-BJOXVTWM.js} +12 -571
  23. package/dist/_node-chunks/{chunk-TTGXODEY.js → chunk-BLGRU6F5.js} +7 -7
  24. package/dist/_node-chunks/{chunk-2KSITKBI.js → chunk-CG47ALAV.js} +7 -7
  25. package/dist/_node-chunks/chunk-FH4FRUMP.js +23 -0
  26. package/dist/_node-chunks/{chunk-DTM4A3DJ.js → chunk-GBZ23FIZ.js} +125 -73
  27. package/dist/_node-chunks/{chunk-IJ34563N.js → chunk-IZ3ATSWZ.js} +5262 -1480
  28. package/dist/_node-chunks/{chunk-JWL5NLJU.js → chunk-IZFEBWVB.js} +6 -6
  29. package/dist/_node-chunks/{chunk-5BRYY6XB.js → chunk-KL5CKFPT.js} +9 -9
  30. package/dist/_node-chunks/{chunk-COGO4JMD.js → chunk-MLXCYULR.js} +7 -7
  31. package/dist/_node-chunks/{chunk-7B4JYHGV.js → chunk-MV2QM7P3.js} +6 -6
  32. package/dist/_node-chunks/chunk-PHX5XNP7.js +144 -0
  33. package/dist/_node-chunks/{chunk-VJFHZL2T.js → chunk-QL6L57W7.js} +533 -144
  34. package/dist/_node-chunks/{chunk-Q6WPGVIW.js → chunk-RPBXVPRB.js} +6 -6
  35. package/dist/_node-chunks/{chunk-DYQ6QR45.js → chunk-UH2GWMFP.js} +260 -162
  36. package/dist/_node-chunks/chunk-WNGL2VRJ.js +126 -0
  37. package/dist/_node-chunks/{chunk-WKC523P7.js → chunk-XAL452XB.js} +36 -14
  38. package/dist/_node-chunks/{chunk-UNHOAAXU.js → chunk-YVXXMWQO.js} +7 -7
  39. package/dist/_node-chunks/chunk-YYDL7JOC.js +61 -0
  40. package/dist/_node-chunks/{chunk-MLYPMYG5.js → chunk-Z7FLE2TR.js} +6 -6
  41. package/dist/_node-chunks/{globby-FWMT4OOQ.js → globby-4D4NBVG7.js} +11 -20
  42. package/dist/_node-chunks/{lib-YCGXIMW5.js → lib-RM2DWHZQ.js} +7 -7
  43. package/dist/_node-chunks/{mdx-N42X6CFJ-CRGM5LTU.js → mdx-N42X6CFJ-RAL72UTP.js} +8 -8
  44. package/dist/_node-chunks/{p-limit-UJIYI4QT.js → p-limit-6PUJQL5X.js} +18 -14
  45. package/dist/babel/index.js +10 -10
  46. package/dist/bin/core.js +12 -12
  47. package/dist/bin/dispatcher.js +11 -11
  48. package/dist/bin/loader.js +9 -9
  49. package/dist/cli/index.d.ts +1504 -424
  50. package/dist/cli/index.js +18 -18
  51. package/dist/common/index.d.ts +1319 -271
  52. package/dist/common/index.js +22 -22
  53. package/dist/components/index.d.ts +4 -1
  54. package/dist/components/index.js +228 -227
  55. package/dist/core-events/index.d.ts +23 -7
  56. package/dist/core-events/index.js +5 -1
  57. package/dist/core-server/index.d.ts +108 -4
  58. package/dist/core-server/index.js +3459 -3086
  59. package/dist/core-server/presets/common-manager.js +208 -160
  60. package/dist/core-server/presets/common-override-preset.js +11 -11
  61. package/dist/core-server/presets/common-preset.js +576 -4536
  62. package/dist/csf/index.d.ts +147 -15
  63. package/dist/csf/index.js +52 -23
  64. package/dist/csf-tools/index.d.ts +19 -1
  65. package/dist/csf-tools/index.js +11 -9
  66. package/dist/docs-tools/index.d.ts +2 -2
  67. package/dist/docs-tools/index.js +4 -5
  68. package/dist/manager/globals-runtime.js +2749 -6907
  69. package/dist/manager/runtime.js +2939 -2295
  70. package/dist/manager-api/index.d.ts +89 -21
  71. package/dist/manager-api/index.js +82 -23
  72. package/dist/mocking-utils/index.js +8 -8
  73. package/dist/node-logger/index.d.ts +1453 -108
  74. package/dist/node-logger/index.js +9 -9
  75. package/dist/preview/runtime.js +784 -5059
  76. package/dist/preview-api/index.d.ts +26 -1
  77. package/dist/preview-api/index.js +11 -8
  78. package/dist/router/index.js +5 -4
  79. package/dist/server-errors.js +11 -11
  80. package/dist/telemetry/index.d.ts +14 -2
  81. package/dist/telemetry/index.js +23 -22
  82. package/dist/theming/index.d.ts +5 -5
  83. package/dist/theming/index.js +21 -2
  84. package/dist/types/index.d.ts +24 -11
  85. package/dist/viewport/index.d.ts +5 -3
  86. package/dist/viewport/index.js +12 -3
  87. package/package.json +27 -26
  88. package/dist/_browser-chunks/chunk-2NDLAB5X.js +0 -363
  89. package/dist/_browser-chunks/chunk-CLSHX4VX.js +0 -4140
  90. package/dist/_browser-chunks/chunk-HPYUT3WS.js +0 -199
  91. package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
  92. package/dist/_node-chunks/camelcase-KIWRHB2G.js +0 -37
  93. package/dist/_node-chunks/chunk-2ANLCK4Y.js +0 -18
  94. package/dist/_node-chunks/chunk-3TW66YXG.js +0 -70
  95. package/dist/_node-chunks/chunk-UFXCGC4W.js +0 -23
  96. package/dist/_node-chunks/chunk-X4YDIHYE.js +0 -61
  97. package/dist/_node-chunks/dist-GICI6ZHU.js +0 -121
@@ -1,363 +0,0 @@
1
- import {
2
- noop
3
- } from "./chunk-NZMVUW5T.js";
4
-
5
- // ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
6
- function isPlainObject(value) {
7
- if (!value || typeof value != "object")
8
- return !1;
9
- let proto = Object.getPrototypeOf(value);
10
- return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1;
11
- }
12
-
13
- // ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
14
- function getSymbols(object) {
15
- return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
16
- }
17
-
18
- // ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
19
- function getTag(value) {
20
- return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value);
21
- }
22
-
23
- // ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
24
- var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", functionTag = "[object Function]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", errorTag = "[object Error]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", bigUint64ArrayTag = "[object BigUint64Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", bigInt64ArrayTag = "[object BigInt64Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
25
-
26
- // ../../node_modules/es-toolkit/dist/compat/util/eq.mjs
27
- function eq(value, other) {
28
- return value === other || Number.isNaN(value) && Number.isNaN(other);
29
- }
30
-
31
- // ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
32
- function isEqualWith(a, b, areValuesEqual) {
33
- return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
34
- }
35
- function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
36
- let result = areValuesEqual(a, b, property, aParent, bParent, stack);
37
- if (result !== void 0)
38
- return result;
39
- if (typeof a == typeof b)
40
- switch (typeof a) {
41
- case "bigint":
42
- case "string":
43
- case "boolean":
44
- case "symbol":
45
- case "undefined":
46
- return a === b;
47
- case "number":
48
- return a === b || Object.is(a, b);
49
- case "function":
50
- return a === b;
51
- case "object":
52
- return areObjectsEqual(a, b, stack, areValuesEqual);
53
- }
54
- return areObjectsEqual(a, b, stack, areValuesEqual);
55
- }
56
- function areObjectsEqual(a, b, stack, areValuesEqual) {
57
- if (Object.is(a, b))
58
- return !0;
59
- let aTag = getTag(a), bTag = getTag(b);
60
- if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag)
61
- return !1;
62
- switch (aTag) {
63
- case stringTag:
64
- return a.toString() === b.toString();
65
- case numberTag: {
66
- let x = a.valueOf(), y = b.valueOf();
67
- return eq(x, y);
68
- }
69
- case booleanTag:
70
- case dateTag:
71
- case symbolTag:
72
- return Object.is(a.valueOf(), b.valueOf());
73
- case regexpTag:
74
- return a.source === b.source && a.flags === b.flags;
75
- case functionTag:
76
- return a === b;
77
- }
78
- stack = stack ?? /* @__PURE__ */ new Map();
79
- let aStack = stack.get(a), bStack = stack.get(b);
80
- if (aStack != null && bStack != null)
81
- return aStack === b;
82
- stack.set(a, b), stack.set(b, a);
83
- try {
84
- switch (aTag) {
85
- case mapTag: {
86
- if (a.size !== b.size)
87
- return !1;
88
- for (let [key, value] of a.entries())
89
- if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual))
90
- return !1;
91
- return !0;
92
- }
93
- case setTag: {
94
- if (a.size !== b.size)
95
- return !1;
96
- let aValues = Array.from(a.values()), bValues = Array.from(b.values());
97
- for (let i = 0; i < aValues.length; i++) {
98
- let aValue = aValues[i], index = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual));
99
- if (index === -1)
100
- return !1;
101
- bValues.splice(index, 1);
102
- }
103
- return !0;
104
- }
105
- case arrayTag:
106
- case uint8ArrayTag:
107
- case uint8ClampedArrayTag:
108
- case uint16ArrayTag:
109
- case uint32ArrayTag:
110
- case bigUint64ArrayTag:
111
- case int8ArrayTag:
112
- case int16ArrayTag:
113
- case int32ArrayTag:
114
- case bigInt64ArrayTag:
115
- case float32ArrayTag:
116
- case float64ArrayTag: {
117
- if (typeof Buffer < "u" && Buffer.isBuffer(a) !== Buffer.isBuffer(b) || a.length !== b.length)
118
- return !1;
119
- for (let i = 0; i < a.length; i++)
120
- if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual))
121
- return !1;
122
- return !0;
123
- }
124
- case arrayBufferTag:
125
- return a.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
126
- case dataViewTag:
127
- return a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
128
- case errorTag:
129
- return a.name === b.name && a.message === b.message;
130
- case objectTag: {
131
- if (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b)))
132
- return !1;
133
- let aKeys = [...Object.keys(a), ...getSymbols(a)], bKeys = [...Object.keys(b), ...getSymbols(b)];
134
- if (aKeys.length !== bKeys.length)
135
- return !1;
136
- for (let i = 0; i < aKeys.length; i++) {
137
- let propKey = aKeys[i], aProp = a[propKey];
138
- if (!Object.hasOwn(b, propKey))
139
- return !1;
140
- let bProp = b[propKey];
141
- if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual))
142
- return !1;
143
- }
144
- return !0;
145
- }
146
- default:
147
- return !1;
148
- }
149
- } finally {
150
- stack.delete(a), stack.delete(b);
151
- }
152
- }
153
-
154
- // ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs
155
- function isEqual(a, b) {
156
- return isEqualWith(a, b, noop);
157
- }
158
-
159
- // ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
160
- function isPrimitive(value) {
161
- return value == null || typeof value != "object" && typeof value != "function";
162
- }
163
-
164
- // ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
165
- function isTypedArray(x) {
166
- return ArrayBuffer.isView(x) && !(x instanceof DataView);
167
- }
168
-
169
- // ../../node_modules/es-toolkit/dist/predicate/isBlob.mjs
170
- function isBlob(x) {
171
- return typeof Blob > "u" ? !1 : x instanceof Blob;
172
- }
173
-
174
- // ../../node_modules/es-toolkit/dist/predicate/isBrowser.mjs
175
- function isBrowser() {
176
- return typeof window < "u" && window?.document != null;
177
- }
178
-
179
- // ../../node_modules/es-toolkit/dist/predicate/isFile.mjs
180
- function isFile(x) {
181
- return typeof File > "u" ? !1 : isBlob(x) && x instanceof File;
182
- }
183
-
184
- // ../../node_modules/es-toolkit/dist/predicate/isFunction.mjs
185
- function isFunction(value) {
186
- return typeof value == "function";
187
- }
188
-
189
- // ../../node_modules/es-toolkit/dist/predicate/isJSON.mjs
190
- function isJSON(value) {
191
- if (typeof value != "string")
192
- return !1;
193
- try {
194
- return JSON.parse(value), !0;
195
- } catch {
196
- return !1;
197
- }
198
- }
199
-
200
- // ../../node_modules/es-toolkit/dist/predicate/isJSONValue.mjs
201
- function isJSONValue(value) {
202
- switch (typeof value) {
203
- case "object":
204
- return value === null || isJSONArray(value) || isJSONObject(value);
205
- case "string":
206
- case "number":
207
- case "boolean":
208
- return !0;
209
- default:
210
- return !1;
211
- }
212
- }
213
- function isJSONArray(value) {
214
- return Array.isArray(value) ? value.every((item) => isJSONValue(item)) : !1;
215
- }
216
- function isJSONObject(obj) {
217
- if (!isPlainObject(obj))
218
- return !1;
219
- let keys = Reflect.ownKeys(obj);
220
- for (let i = 0; i < keys.length; i++) {
221
- let key = keys[i], value = obj[key];
222
- if (typeof key != "string" || !isJSONValue(value))
223
- return !1;
224
- }
225
- return !0;
226
- }
227
-
228
- // ../../node_modules/es-toolkit/dist/predicate/isLength.mjs
229
- function isLength(value) {
230
- return Number.isSafeInteger(value) && value >= 0;
231
- }
232
-
233
- // ../../node_modules/es-toolkit/dist/predicate/isNode.mjs
234
- function isNode() {
235
- return typeof process < "u" && process?.versions?.node != null;
236
- }
237
-
238
- // ../../node_modules/es-toolkit/dist/predicate/isNotNil.mjs
239
- function isNotNil(x) {
240
- return x != null;
241
- }
242
-
243
- // ../../node_modules/es-toolkit/dist/predicate/isNull.mjs
244
- function isNull(x) {
245
- return x === null;
246
- }
247
-
248
- // ../../node_modules/es-toolkit/dist/predicate/isPromise.mjs
249
- function isPromise(value) {
250
- return value instanceof Promise;
251
- }
252
-
253
- // ../../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
254
- function isUndefined(x) {
255
- return x === void 0;
256
- }
257
-
258
- // ../../node_modules/es-toolkit/dist/predicate/isNil.mjs
259
- function isNil(x) {
260
- return x == null;
261
- }
262
-
263
- // ../../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
264
- function isSymbol(value) {
265
- return typeof value == "symbol";
266
- }
267
-
268
- // ../../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
269
- function isBuffer(x) {
270
- return typeof Buffer < "u" && Buffer.isBuffer(x);
271
- }
272
-
273
- // ../../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
274
- function isArrayBuffer(value) {
275
- return value instanceof ArrayBuffer;
276
- }
277
-
278
- // ../../node_modules/es-toolkit/dist/predicate/isDate.mjs
279
- function isDate(value) {
280
- return value instanceof Date;
281
- }
282
-
283
- // ../../node_modules/es-toolkit/dist/predicate/isMap.mjs
284
- function isMap(value) {
285
- return value instanceof Map;
286
- }
287
-
288
- // ../../node_modules/es-toolkit/dist/predicate/isRegExp.mjs
289
- function isRegExp(value) {
290
- return value instanceof RegExp;
291
- }
292
-
293
- // ../../node_modules/es-toolkit/dist/predicate/isSet.mjs
294
- function isSet(value) {
295
- return value instanceof Set;
296
- }
297
-
298
- // ../../node_modules/es-toolkit/dist/predicate/isWeakMap.mjs
299
- function isWeakMap(value) {
300
- return value instanceof WeakMap;
301
- }
302
-
303
- // ../../node_modules/es-toolkit/dist/predicate/isWeakSet.mjs
304
- function isWeakSet(value) {
305
- return value instanceof WeakSet;
306
- }
307
-
308
- export {
309
- isPrimitive,
310
- isTypedArray,
311
- getSymbols,
312
- getTag,
313
- regexpTag,
314
- stringTag,
315
- numberTag,
316
- booleanTag,
317
- argumentsTag,
318
- symbolTag,
319
- dateTag,
320
- mapTag,
321
- setTag,
322
- arrayTag,
323
- arrayBufferTag,
324
- objectTag,
325
- dataViewTag,
326
- uint8ArrayTag,
327
- uint8ClampedArrayTag,
328
- uint16ArrayTag,
329
- uint32ArrayTag,
330
- int8ArrayTag,
331
- int16ArrayTag,
332
- int32ArrayTag,
333
- float32ArrayTag,
334
- float64ArrayTag,
335
- isPlainObject,
336
- isBlob,
337
- isBrowser,
338
- eq,
339
- isEqualWith,
340
- isEqual,
341
- isFile,
342
- isFunction,
343
- isJSON,
344
- isJSONValue,
345
- isJSONArray,
346
- isJSONObject,
347
- isLength,
348
- isNode,
349
- isNotNil,
350
- isNull,
351
- isPromise,
352
- isUndefined,
353
- isNil,
354
- isSymbol,
355
- isBuffer,
356
- isArrayBuffer,
357
- isDate,
358
- isMap,
359
- isRegExp,
360
- isSet,
361
- isWeakMap,
362
- isWeakSet
363
- };