@storybook/cli 9.2.0-alpha.2 → 10.0.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.
- package/README.md +2 -0
- package/dist/_node-chunks/block-dependencies-versions-GQ3B7SZR.js +72 -0
- package/dist/_node-chunks/block-experimental-addon-test-OCFFZMET.js +58 -0
- package/dist/_node-chunks/block-major-version-RKT4EOKH.js +101 -0
- package/dist/_node-chunks/block-node-version-C2SG65VI.js +43 -0
- package/dist/_node-chunks/block-webpack5-frameworks-2GESSFOP.js +72 -0
- package/dist/_node-chunks/chunk-6FABMYLL.js +1939 -0
- package/dist/_node-chunks/chunk-7JKBAKCF.js +50 -0
- package/dist/_node-chunks/chunk-7QREFOYM.js +1874 -0
- package/dist/_node-chunks/chunk-B7KJR623.js +6733 -0
- package/dist/_node-chunks/chunk-KYQUCOVA.js +87 -0
- package/dist/_node-chunks/chunk-W6GFRLM2.js +24 -0
- package/dist/_node-chunks/globby-PGYT2W7S.js +38 -0
- package/dist/_node-chunks/p-limit-UCT6CWW2.js +102 -0
- package/dist/_node-chunks/run-GDB5HIVK.js +10252 -0
- package/dist/bin/index.js +25 -0
- package/package.json +15 -25
- package/bin/index.cjs +0 -26
- package/dist/bin/index.cjs +0 -294
- package/dist/bin/index.d.ts +0 -2
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b1o87kp8bws from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b1o87kp8bws from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b1o87kp8bws from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b1o87kp8bws.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b1o87kp8bws.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b1o87kp8bws.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-7JKBAKCF.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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b1o87kp8bws from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b1o87kp8bws from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b1o87kp8bws from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b1o87kp8bws.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b1o87kp8bws.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b1o87kp8bws.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-7JKBAKCF.js";
|
|
15
|
+
|
|
16
|
+
// src/autoblock/types.ts
|
|
17
|
+
function createBlocker(block) {
|
|
18
|
+
return block;
|
|
19
|
+
}
|
|
20
|
+
__name(createBlocker, "createBlocker");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
createBlocker
|
|
24
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b1o87kp8bws from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b1o87kp8bws from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b1o87kp8bws from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b1o87kp8bws.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b1o87kp8bws.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b1o87kp8bws.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
convertPathToPattern,
|
|
14
|
+
generateGlobTasks,
|
|
15
|
+
generateGlobTasksSync,
|
|
16
|
+
globby,
|
|
17
|
+
globbyStream,
|
|
18
|
+
globbySync,
|
|
19
|
+
isDynamicPattern,
|
|
20
|
+
isGitIgnored,
|
|
21
|
+
isGitIgnoredSync,
|
|
22
|
+
isIgnoredByIgnoreFiles,
|
|
23
|
+
isIgnoredByIgnoreFilesSync
|
|
24
|
+
} from "./chunk-B7KJR623.js";
|
|
25
|
+
import "./chunk-7JKBAKCF.js";
|
|
26
|
+
export {
|
|
27
|
+
convertPathToPattern,
|
|
28
|
+
generateGlobTasks,
|
|
29
|
+
generateGlobTasksSync,
|
|
30
|
+
globby,
|
|
31
|
+
globbyStream,
|
|
32
|
+
globbySync,
|
|
33
|
+
isDynamicPattern,
|
|
34
|
+
isGitIgnored,
|
|
35
|
+
isGitIgnoredSync,
|
|
36
|
+
isIgnoredByIgnoreFiles,
|
|
37
|
+
isIgnoredByIgnoreFilesSync
|
|
38
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_b1o87kp8bws from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_b1o87kp8bws from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_b1o87kp8bws from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_b1o87kp8bws.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_b1o87kp8bws.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_b1o87kp8bws.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-KYQUCOVA.js";
|
|
15
|
+
import {
|
|
16
|
+
__name
|
|
17
|
+
} from "./chunk-7JKBAKCF.js";
|
|
18
|
+
|
|
19
|
+
// ../../node_modules/p-limit/index.js
|
|
20
|
+
function pLimit(concurrency) {
|
|
21
|
+
validateConcurrency(concurrency);
|
|
22
|
+
const queue = new Queue();
|
|
23
|
+
let activeCount = 0;
|
|
24
|
+
const resumeNext = /* @__PURE__ */ __name(() => {
|
|
25
|
+
if (activeCount < concurrency && queue.size > 0) {
|
|
26
|
+
queue.dequeue()();
|
|
27
|
+
activeCount++;
|
|
28
|
+
}
|
|
29
|
+
}, "resumeNext");
|
|
30
|
+
const next = /* @__PURE__ */ __name(() => {
|
|
31
|
+
activeCount--;
|
|
32
|
+
resumeNext();
|
|
33
|
+
}, "next");
|
|
34
|
+
const run = /* @__PURE__ */ __name(async (function_, resolve, arguments_) => {
|
|
35
|
+
const result = (async () => function_(...arguments_))();
|
|
36
|
+
resolve(result);
|
|
37
|
+
try {
|
|
38
|
+
await result;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
next();
|
|
42
|
+
}, "run");
|
|
43
|
+
const enqueue = /* @__PURE__ */ __name((function_, resolve, arguments_) => {
|
|
44
|
+
new Promise((internalResolve) => {
|
|
45
|
+
queue.enqueue(internalResolve);
|
|
46
|
+
}).then(
|
|
47
|
+
run.bind(void 0, function_, resolve, arguments_)
|
|
48
|
+
);
|
|
49
|
+
(async () => {
|
|
50
|
+
await Promise.resolve();
|
|
51
|
+
if (activeCount < concurrency) {
|
|
52
|
+
resumeNext();
|
|
53
|
+
}
|
|
54
|
+
})();
|
|
55
|
+
}, "enqueue");
|
|
56
|
+
const generator = /* @__PURE__ */ __name((function_, ...arguments_) => new Promise((resolve) => {
|
|
57
|
+
enqueue(function_, resolve, arguments_);
|
|
58
|
+
}), "generator");
|
|
59
|
+
Object.defineProperties(generator, {
|
|
60
|
+
activeCount: {
|
|
61
|
+
get: /* @__PURE__ */ __name(() => activeCount, "get")
|
|
62
|
+
},
|
|
63
|
+
pendingCount: {
|
|
64
|
+
get: /* @__PURE__ */ __name(() => queue.size, "get")
|
|
65
|
+
},
|
|
66
|
+
clearQueue: {
|
|
67
|
+
value() {
|
|
68
|
+
queue.clear();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
concurrency: {
|
|
72
|
+
get: /* @__PURE__ */ __name(() => concurrency, "get"),
|
|
73
|
+
set(newConcurrency) {
|
|
74
|
+
validateConcurrency(newConcurrency);
|
|
75
|
+
concurrency = newConcurrency;
|
|
76
|
+
queueMicrotask(() => {
|
|
77
|
+
while (activeCount < concurrency && queue.size > 0) {
|
|
78
|
+
resumeNext();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
return generator;
|
|
85
|
+
}
|
|
86
|
+
__name(pLimit, "pLimit");
|
|
87
|
+
function limitFunction(function_, option) {
|
|
88
|
+
const { concurrency } = option;
|
|
89
|
+
const limit = pLimit(concurrency);
|
|
90
|
+
return (...arguments_) => limit(() => function_(...arguments_));
|
|
91
|
+
}
|
|
92
|
+
__name(limitFunction, "limitFunction");
|
|
93
|
+
function validateConcurrency(concurrency) {
|
|
94
|
+
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
95
|
+
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
__name(validateConcurrency, "validateConcurrency");
|
|
99
|
+
export {
|
|
100
|
+
pLimit as default,
|
|
101
|
+
limitFunction
|
|
102
|
+
};
|