@storybook/cli 10.1.0-alpha.8 → 10.1.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 (24) hide show
  1. package/dist/_node-chunks/{block-dependencies-versions-HTRZA7NK.js → block-dependencies-versions-3PIVQXIU.js} +13 -16
  2. package/dist/_node-chunks/{block-experimental-addon-test-RCEI7ZNN.js → block-experimental-addon-test-KE2C4JGB.js} +16 -23
  3. package/dist/_node-chunks/block-major-version-KRIJK2YQ.js +77 -0
  4. package/dist/_node-chunks/block-node-version-L6HENKCD.js +38 -0
  5. package/dist/_node-chunks/{block-webpack5-frameworks-T3V3TWUF.js → block-webpack5-frameworks-OMXLUWQP.js} +14 -19
  6. package/dist/_node-chunks/chunk-72NUUKPO.js +591 -0
  7. package/dist/_node-chunks/chunk-BHESI2CN.js +4375 -0
  8. package/dist/_node-chunks/chunk-PG6QB7FH.js +11 -0
  9. package/dist/_node-chunks/chunk-RYVNNZMV.js +45 -0
  10. package/dist/_node-chunks/chunk-XARGUZ3T.js +1160 -0
  11. package/dist/_node-chunks/{globby-2OFECE6D.js → globby-5YY2Y7DB.js} +8 -8
  12. package/dist/_node-chunks/p-limit-IDS5JGBQ.js +116 -0
  13. package/dist/_node-chunks/run-SE5SJ4IO.js +9627 -0
  14. package/dist/bin/index.js +10 -13
  15. package/package.json +5 -9
  16. package/dist/_node-chunks/block-major-version-5EWJKQ37.js +0 -100
  17. package/dist/_node-chunks/block-node-version-G56GAL3A.js +0 -43
  18. package/dist/_node-chunks/chunk-3SQ32WLK.js +0 -50
  19. package/dist/_node-chunks/chunk-BJB5ZHE4.js +0 -1939
  20. package/dist/_node-chunks/chunk-HL6AJJ6S.js +0 -6737
  21. package/dist/_node-chunks/chunk-IWMIPYGD.js +0 -24
  22. package/dist/_node-chunks/chunk-N52FW6OW.js +0 -1770
  23. package/dist/_node-chunks/p-limit-QY5RPRLQ.js +0 -168
  24. package/dist/_node-chunks/run-FI4DEZHJ.js +0 -11461
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_eqzh0h3j61h from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_eqzh0h3j61h from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_eqzh0h3j61h from "node:module";
1
+ import CJS_COMPAT_NODE_URL_s47ofujcb4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_s47ofujcb4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_s47ofujcb4 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_eqzh0h3j61h.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_eqzh0h3j61h.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_eqzh0h3j61h.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_s47ofujcb4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_s47ofujcb4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_s47ofujcb4.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -21,8 +21,8 @@ import {
21
21
  isGitIgnoredSync,
22
22
  isIgnoredByIgnoreFiles,
23
23
  isIgnoredByIgnoreFilesSync
24
- } from "./chunk-HL6AJJ6S.js";
25
- import "./chunk-3SQ32WLK.js";
24
+ } from "./chunk-BHESI2CN.js";
25
+ import "./chunk-RYVNNZMV.js";
26
26
  export {
27
27
  convertPathToPattern,
28
28
  generateGlobTasks,
@@ -0,0 +1,116 @@
1
+ import CJS_COMPAT_NODE_URL_s47ofujcb4 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_s47ofujcb4 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_s47ofujcb4 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_s47ofujcb4.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_s47ofujcb4.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_s47ofujcb4.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import "./chunk-RYVNNZMV.js";
13
+
14
+ // ../../node_modules/yocto-queue/index.js
15
+ var Node = class {
16
+ value;
17
+ next;
18
+ constructor(value) {
19
+ this.value = value;
20
+ }
21
+ }, Queue = class {
22
+ #head;
23
+ #tail;
24
+ #size;
25
+ constructor() {
26
+ this.clear();
27
+ }
28
+ enqueue(value) {
29
+ let node = new Node(value);
30
+ this.#head ? (this.#tail.next = node, this.#tail = node) : (this.#head = node, this.#tail = node), this.#size++;
31
+ }
32
+ dequeue() {
33
+ let current = this.#head;
34
+ if (current)
35
+ return this.#head = this.#head.next, this.#size--, this.#head || (this.#tail = void 0), current.value;
36
+ }
37
+ peek() {
38
+ if (this.#head)
39
+ return this.#head.value;
40
+ }
41
+ clear() {
42
+ this.#head = void 0, this.#tail = void 0, this.#size = 0;
43
+ }
44
+ get size() {
45
+ return this.#size;
46
+ }
47
+ *[Symbol.iterator]() {
48
+ let current = this.#head;
49
+ for (; current; )
50
+ yield current.value, current = current.next;
51
+ }
52
+ *drain() {
53
+ for (; this.#head; )
54
+ yield this.dequeue();
55
+ }
56
+ };
57
+
58
+ // ../../node_modules/p-limit/index.js
59
+ function pLimit(concurrency) {
60
+ validateConcurrency(concurrency);
61
+ let queue = new Queue(), activeCount = 0, resumeNext = () => {
62
+ activeCount < concurrency && queue.size > 0 && (queue.dequeue()(), activeCount++);
63
+ }, next = () => {
64
+ activeCount--, resumeNext();
65
+ }, run = async (function_, resolve, arguments_) => {
66
+ let result = (async () => function_(...arguments_))();
67
+ resolve(result);
68
+ try {
69
+ await result;
70
+ } catch {
71
+ }
72
+ next();
73
+ }, enqueue = (function_, resolve, arguments_) => {
74
+ new Promise((internalResolve) => {
75
+ queue.enqueue(internalResolve);
76
+ }).then(
77
+ run.bind(void 0, function_, resolve, arguments_)
78
+ ), (async () => (await Promise.resolve(), activeCount < concurrency && resumeNext()))();
79
+ }, generator = (function_, ...arguments_) => new Promise((resolve) => {
80
+ enqueue(function_, resolve, arguments_);
81
+ });
82
+ return Object.defineProperties(generator, {
83
+ activeCount: {
84
+ get: () => activeCount
85
+ },
86
+ pendingCount: {
87
+ get: () => queue.size
88
+ },
89
+ clearQueue: {
90
+ value() {
91
+ queue.clear();
92
+ }
93
+ },
94
+ concurrency: {
95
+ get: () => concurrency,
96
+ set(newConcurrency) {
97
+ validateConcurrency(newConcurrency), concurrency = newConcurrency, queueMicrotask(() => {
98
+ for (; activeCount < concurrency && queue.size > 0; )
99
+ resumeNext();
100
+ });
101
+ }
102
+ }
103
+ }), generator;
104
+ }
105
+ function limitFunction(function_, option) {
106
+ let { concurrency } = option, limit = pLimit(concurrency);
107
+ return (...arguments_) => limit(() => function_(...arguments_));
108
+ }
109
+ function validateConcurrency(concurrency) {
110
+ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0))
111
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
112
+ }
113
+ export {
114
+ pLimit as default,
115
+ limitFunction
116
+ };