storybook 10.0.0-beta.3 → 10.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.
Files changed (69) hide show
  1. package/dist/_node-chunks/{builder-manager-DXAEQZJB.js → builder-manager-IKHPPPFE.js} +13 -13
  2. package/dist/_node-chunks/{camelcase-CMMT6PHY.js → camelcase-O2O7JODG.js} +7 -7
  3. package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-3J7DQ6TI.js} +7 -7
  4. package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-4FMOVB65.js} +8 -8
  5. package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VGW2SQA.js} +7 -7
  6. package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-5OILJTZE.js} +7 -7
  7. package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-6COBULLV.js} +7 -7
  8. package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-7IIAUEWB.js} +8 -8
  9. package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-AC3BNULF.js} +552 -717
  10. package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-AXFNB3AN.js} +7 -7
  11. package/dist/_node-chunks/chunk-CHJLO2LV.js +62 -0
  12. package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-DCHFG5TX.js} +7 -7
  13. package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-FWFQ2GU7.js} +6 -6
  14. package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-HAVE6SGK.js} +7 -7
  15. package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-IB5AEYPX.js} +7 -7
  16. package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-JECCFKKM.js} +7 -7
  17. package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-JP4LEAXM.js} +7 -7
  18. package/dist/_node-chunks/chunk-JSSBBVU5.js +79 -0
  19. package/dist/_node-chunks/chunk-MNG223PY.js +18 -0
  20. package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-MOO2Y4GI.js} +6 -6
  21. package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-N3GFXZDP.js} +7 -7
  22. package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-NF3GXIEK.js} +9 -9
  23. package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-NOSGJ5PL.js} +7 -7
  24. package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-OL2HWCBH.js} +7 -7
  25. package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-SF2IETZ2.js} +29 -81
  26. package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-TBAIXCHN.js} +8 -8
  27. package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-TTQRDWDJ.js} +12 -12
  28. package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-TYGVOW7L.js} +7 -7
  29. package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-USDZSU5L.js} +7 -7
  30. package/dist/_node-chunks/chunk-XA4TAMUS.js +4966 -0
  31. package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-XT6O5CVI.js} +7 -7
  32. package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-YJHXEN7U.js} +10 -10
  33. package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-YRPXGWKW.js} +8 -8
  34. package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-J4OIAAJ5.js} +7 -7
  35. package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-BMKSKYDI.js} +9 -9
  36. package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-DASPUXWI.js} +9 -9
  37. package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-L6BIH4EV.js} +7 -7
  38. package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-2COTUDSL.js} +8 -8
  39. package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-HVR3I7TJ.js} +76 -10
  40. package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-2XPSFYWZ.js} +10 -10
  41. package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-FZOHPRK7.js} +10 -10
  42. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-FGQM2EPC.js} +10 -10
  43. package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.js → webpack-mock-plugin-4HOAIYSX.js} +9 -9
  44. package/dist/babel/index.js +11 -11
  45. package/dist/bin/core.js +11 -11
  46. package/dist/bin/dispatcher.js +11 -11
  47. package/dist/bin/loader.js +8 -8
  48. package/dist/cli/index.d.ts +1 -1
  49. package/dist/cli/index.js +29 -30
  50. package/dist/common/index.d.ts +3 -1
  51. package/dist/common/index.js +23 -22
  52. package/dist/core-server/index.js +38 -39
  53. package/dist/core-server/presets/common-override-preset.js +9 -9
  54. package/dist/core-server/presets/common-preset.js +22 -22
  55. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  56. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  57. package/dist/csf-tools/index.js +9 -9
  58. package/dist/manager/globals-runtime.js +1 -1
  59. package/dist/manager-api/index.js +1 -1
  60. package/dist/node-logger/index.js +13 -14
  61. package/dist/preview-api/index.d.ts +67 -68
  62. package/dist/server-errors.js +10 -10
  63. package/dist/telemetry/index.js +24 -25
  64. package/package.json +2 -6
  65. package/dist/_node-chunks/chunk-ALWVSNSK.js +0 -62
  66. package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
  67. package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
  68. package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
  69. package/dist/_node-chunks/chunk-YRXKNGPR.js +0 -18
@@ -1,87 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- __name
14
- } from "./chunk-XRAB2RZN.js";
15
-
16
- // ../node_modules/yocto-queue/index.js
17
- var Node = class {
18
- static {
19
- __name(this, "Node");
20
- }
21
- value;
22
- next;
23
- constructor(value) {
24
- this.value = value;
25
- }
26
- };
27
- var Queue = class {
28
- static {
29
- __name(this, "Queue");
30
- }
31
- #head;
32
- #tail;
33
- #size;
34
- constructor() {
35
- this.clear();
36
- }
37
- enqueue(value) {
38
- const node = new Node(value);
39
- if (this.#head) {
40
- this.#tail.next = node;
41
- this.#tail = node;
42
- } else {
43
- this.#head = node;
44
- this.#tail = node;
45
- }
46
- this.#size++;
47
- }
48
- dequeue() {
49
- const current = this.#head;
50
- if (!current) {
51
- return;
52
- }
53
- this.#head = this.#head.next;
54
- this.#size--;
55
- return current.value;
56
- }
57
- peek() {
58
- if (!this.#head) {
59
- return;
60
- }
61
- return this.#head.value;
62
- }
63
- clear() {
64
- this.#head = void 0;
65
- this.#tail = void 0;
66
- this.#size = 0;
67
- }
68
- get size() {
69
- return this.#size;
70
- }
71
- *[Symbol.iterator]() {
72
- let current = this.#head;
73
- while (current) {
74
- yield current.value;
75
- current = current.next;
76
- }
77
- }
78
- *drain() {
79
- while (this.#head) {
80
- yield this.dequeue();
81
- }
82
- }
83
- };
84
-
85
- export {
86
- Queue
87
- };
@@ -1,266 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6q9nmfaplv7 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6q9nmfaplv7 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6q9nmfaplv7 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6q9nmfaplv7.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6q9nmfaplv7.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6q9nmfaplv7.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- Queue
14
- } from "./chunk-MHNUEOON.js";
15
- import {
16
- __name
17
- } from "./chunk-XRAB2RZN.js";
18
-
19
- // ../node_modules/find-up/index.js
20
- import path2 from "node:path";
21
-
22
- // ../node_modules/locate-path/index.js
23
- import process from "node:process";
24
- import path from "node:path";
25
- import fs, { promises as fsPromises } from "node:fs";
26
- import { fileURLToPath } from "node:url";
27
-
28
- // ../node_modules/locate-path/node_modules/p-limit/index.js
29
- function pLimit(concurrency) {
30
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
31
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
32
- }
33
- const queue = new Queue();
34
- let activeCount = 0;
35
- const next = /* @__PURE__ */ __name(() => {
36
- activeCount--;
37
- if (queue.size > 0) {
38
- queue.dequeue()();
39
- }
40
- }, "next");
41
- const run = /* @__PURE__ */ __name(async (fn, resolve, args) => {
42
- activeCount++;
43
- const result = (async () => fn(...args))();
44
- resolve(result);
45
- try {
46
- await result;
47
- } catch {
48
- }
49
- next();
50
- }, "run");
51
- const enqueue = /* @__PURE__ */ __name((fn, resolve, args) => {
52
- queue.enqueue(run.bind(void 0, fn, resolve, args));
53
- (async () => {
54
- await Promise.resolve();
55
- if (activeCount < concurrency && queue.size > 0) {
56
- queue.dequeue()();
57
- }
58
- })();
59
- }, "enqueue");
60
- const generator = /* @__PURE__ */ __name((fn, ...args) => new Promise((resolve) => {
61
- enqueue(fn, resolve, args);
62
- }), "generator");
63
- Object.defineProperties(generator, {
64
- activeCount: {
65
- get: /* @__PURE__ */ __name(() => activeCount, "get")
66
- },
67
- pendingCount: {
68
- get: /* @__PURE__ */ __name(() => queue.size, "get")
69
- },
70
- clearQueue: {
71
- value: /* @__PURE__ */ __name(() => {
72
- queue.clear();
73
- }, "value")
74
- }
75
- });
76
- return generator;
77
- }
78
- __name(pLimit, "pLimit");
79
-
80
- // ../node_modules/locate-path/node_modules/p-locate/index.js
81
- var EndError = class extends Error {
82
- static {
83
- __name(this, "EndError");
84
- }
85
- constructor(value) {
86
- super();
87
- this.value = value;
88
- }
89
- };
90
- var testElement = /* @__PURE__ */ __name(async (element, tester) => tester(await element), "testElement");
91
- var finder = /* @__PURE__ */ __name(async (element) => {
92
- const values = await Promise.all(element);
93
- if (values[1] === true) {
94
- throw new EndError(values[0]);
95
- }
96
- return false;
97
- }, "finder");
98
- async function pLocate(iterable, tester, {
99
- concurrency = Number.POSITIVE_INFINITY,
100
- preserveOrder = true
101
- } = {}) {
102
- const limit = pLimit(concurrency);
103
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
104
- const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
105
- try {
106
- await Promise.all(items.map((element) => checkLimit(finder, element)));
107
- } catch (error) {
108
- if (error instanceof EndError) {
109
- return error.value;
110
- }
111
- throw error;
112
- }
113
- }
114
- __name(pLocate, "pLocate");
115
-
116
- // ../node_modules/locate-path/index.js
117
- var typeMappings = {
118
- directory: "isDirectory",
119
- file: "isFile"
120
- };
121
- function checkType(type) {
122
- if (Object.hasOwnProperty.call(typeMappings, type)) {
123
- return;
124
- }
125
- throw new Error(`Invalid type specified: ${type}`);
126
- }
127
- __name(checkType, "checkType");
128
- var matchType = /* @__PURE__ */ __name((type, stat) => stat[typeMappings[type]](), "matchType");
129
- var toPath = /* @__PURE__ */ __name((urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath, "toPath");
130
- async function locatePath(paths, {
131
- cwd = process.cwd(),
132
- type = "file",
133
- allowSymlinks = true,
134
- concurrency,
135
- preserveOrder
136
- } = {}) {
137
- checkType(type);
138
- cwd = toPath(cwd);
139
- const statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;
140
- return pLocate(paths, async (path_) => {
141
- try {
142
- const stat = await statFunction(path.resolve(cwd, path_));
143
- return matchType(type, stat);
144
- } catch {
145
- return false;
146
- }
147
- }, { concurrency, preserveOrder });
148
- }
149
- __name(locatePath, "locatePath");
150
- function locatePathSync(paths, {
151
- cwd = process.cwd(),
152
- type = "file",
153
- allowSymlinks = true
154
- } = {}) {
155
- checkType(type);
156
- cwd = toPath(cwd);
157
- const statFunction = allowSymlinks ? fs.statSync : fs.lstatSync;
158
- for (const path_ of paths) {
159
- try {
160
- const stat = statFunction(path.resolve(cwd, path_), {
161
- throwIfNoEntry: false
162
- });
163
- if (!stat) {
164
- continue;
165
- }
166
- if (matchType(type, stat)) {
167
- return path_;
168
- }
169
- } catch {
170
- }
171
- }
172
- }
173
- __name(locatePathSync, "locatePathSync");
174
-
175
- // ../node_modules/find-up/node_modules/unicorn-magic/node.js
176
- import { fileURLToPath as fileURLToPath2 } from "node:url";
177
- function toPath2(urlOrPath) {
178
- return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
179
- }
180
- __name(toPath2, "toPath");
181
-
182
- // ../node_modules/find-up/index.js
183
- var findUpStop = Symbol("findUpStop");
184
- async function findUpMultiple(name, options = {}) {
185
- let directory = path2.resolve(toPath2(options.cwd) ?? "");
186
- const { root } = path2.parse(directory);
187
- const stopAt = path2.resolve(directory, toPath2(options.stopAt ?? root));
188
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
189
- const paths = [name].flat();
190
- const runMatcher = /* @__PURE__ */ __name(async (locateOptions) => {
191
- if (typeof name !== "function") {
192
- return locatePath(paths, locateOptions);
193
- }
194
- const foundPath = await name(locateOptions.cwd);
195
- if (typeof foundPath === "string") {
196
- return locatePath([foundPath], locateOptions);
197
- }
198
- return foundPath;
199
- }, "runMatcher");
200
- const matches = [];
201
- while (true) {
202
- const foundPath = await runMatcher({ ...options, cwd: directory });
203
- if (foundPath === findUpStop) {
204
- break;
205
- }
206
- if (foundPath) {
207
- matches.push(path2.resolve(directory, foundPath));
208
- }
209
- if (directory === stopAt || matches.length >= limit) {
210
- break;
211
- }
212
- directory = path2.dirname(directory);
213
- }
214
- return matches;
215
- }
216
- __name(findUpMultiple, "findUpMultiple");
217
- function findUpMultipleSync(name, options = {}) {
218
- let directory = path2.resolve(toPath2(options.cwd) ?? "");
219
- const { root } = path2.parse(directory);
220
- const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
221
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
222
- const paths = [name].flat();
223
- const runMatcher = /* @__PURE__ */ __name((locateOptions) => {
224
- if (typeof name !== "function") {
225
- return locatePathSync(paths, locateOptions);
226
- }
227
- const foundPath = name(locateOptions.cwd);
228
- if (typeof foundPath === "string") {
229
- return locatePathSync([foundPath], locateOptions);
230
- }
231
- return foundPath;
232
- }, "runMatcher");
233
- const matches = [];
234
- while (true) {
235
- const foundPath = runMatcher({ ...options, cwd: directory });
236
- if (foundPath === findUpStop) {
237
- break;
238
- }
239
- if (foundPath) {
240
- matches.push(path2.resolve(directory, foundPath));
241
- }
242
- if (directory === stopAt || matches.length >= limit) {
243
- break;
244
- }
245
- directory = path2.dirname(directory);
246
- }
247
- return matches;
248
- }
249
- __name(findUpMultipleSync, "findUpMultipleSync");
250
- async function findUp(name, options = {}) {
251
- const matches = await findUpMultiple(name, { ...options, limit: 1 });
252
- return matches[0];
253
- }
254
- __name(findUp, "findUp");
255
- function findUpSync(name, options = {}) {
256
- const matches = findUpMultipleSync(name, { ...options, limit: 1 });
257
- return matches[0];
258
- }
259
- __name(findUpSync, "findUpSync");
260
-
261
- export {
262
- locatePathSync,
263
- findUpMultipleSync,
264
- findUp,
265
- findUpSync
266
- };