@storybook/cli 10.1.0-alpha.9 → 10.1.0-beta.1

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-BGKJ74J2.js → block-dependencies-versions-RWX4DX7W.js} +13 -16
  2. package/dist/_node-chunks/{block-experimental-addon-test-5WOB3QXI.js → block-experimental-addon-test-OM3MVIEF.js} +16 -23
  3. package/dist/_node-chunks/block-major-version-7X5ELMS5.js +77 -0
  4. package/dist/_node-chunks/block-node-version-IVL2SO4R.js +38 -0
  5. package/dist/_node-chunks/{block-webpack5-frameworks-UY6KAASI.js → block-webpack5-frameworks-DRJJONK4.js} +14 -19
  6. package/dist/_node-chunks/chunk-B52WZYLE.js +1160 -0
  7. package/dist/_node-chunks/chunk-H7CKG54H.js +45 -0
  8. package/dist/_node-chunks/chunk-IMEW6HKQ.js +11 -0
  9. package/dist/_node-chunks/chunk-OVP33YUF.js +591 -0
  10. package/dist/_node-chunks/chunk-YET6YMCR.js +4375 -0
  11. package/dist/_node-chunks/{globby-DNHQPHUT.js → globby-7EVLGXCD.js} +8 -8
  12. package/dist/_node-chunks/p-limit-DCVNL4HF.js +116 -0
  13. package/dist/_node-chunks/run-CFKOL6SH.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-UQXLZ64F.js +0 -100
  17. package/dist/_node-chunks/block-node-version-QP5KXT5Q.js +0 -43
  18. package/dist/_node-chunks/chunk-3ISYWOFW.js +0 -1770
  19. package/dist/_node-chunks/chunk-5JXVRX4Y.js +0 -50
  20. package/dist/_node-chunks/chunk-7ZMKNOV3.js +0 -24
  21. package/dist/_node-chunks/chunk-KK6KWG7C.js +0 -1939
  22. package/dist/_node-chunks/chunk-QLMPSJFV.js +0 -6737
  23. package/dist/_node-chunks/p-limit-YAWAKA4U.js +0 -168
  24. package/dist/_node-chunks/run-IFPXJ7NW.js +0 -11461
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_i5timqwdlx from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_i5timqwdlx from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_i5timqwdlx from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7na3jaknjbu from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7na3jaknjbu from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7na3jaknjbu from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_i5timqwdlx.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_i5timqwdlx.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_i5timqwdlx.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7na3jaknjbu.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7na3jaknjbu.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7na3jaknjbu.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-QLMPSJFV.js";
25
- import "./chunk-5JXVRX4Y.js";
24
+ } from "./chunk-YET6YMCR.js";
25
+ import "./chunk-H7CKG54H.js";
26
26
  export {
27
27
  convertPathToPattern,
28
28
  generateGlobTasks,
@@ -0,0 +1,116 @@
1
+ import CJS_COMPAT_NODE_URL_7na3jaknjbu from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7na3jaknjbu from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7na3jaknjbu from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_7na3jaknjbu.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7na3jaknjbu.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7na3jaknjbu.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import "./chunk-H7CKG54H.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
+ };