@storybook/cli 10.1.0-alpha.1 → 10.1.0-alpha.11

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-QWIKDKVG.js → block-dependencies-versions-BSOWKUBK.js} +13 -16
  2. package/dist/_node-chunks/{block-experimental-addon-test-XTKZHGRL.js → block-experimental-addon-test-NCLKFTFM.js} +16 -23
  3. package/dist/_node-chunks/block-major-version-APSLHSTD.js +77 -0
  4. package/dist/_node-chunks/block-node-version-7KHFZLS3.js +38 -0
  5. package/dist/_node-chunks/{block-webpack5-frameworks-USVXLWVY.js → block-webpack5-frameworks-LITSHF6U.js} +14 -19
  6. package/dist/_node-chunks/chunk-44HOCZ5E.js +11 -0
  7. package/dist/_node-chunks/chunk-B4S5ZX67.js +1160 -0
  8. package/dist/_node-chunks/chunk-E5Z34X6V.js +45 -0
  9. package/dist/_node-chunks/chunk-L3YQORQI.js +4375 -0
  10. package/dist/_node-chunks/chunk-RIDG5WQZ.js +1340 -0
  11. package/dist/_node-chunks/{globby-ZRHF4MNJ.js → globby-IWIML67A.js} +8 -8
  12. package/dist/_node-chunks/p-limit-DF2LUMCM.js +116 -0
  13. package/dist/_node-chunks/run-OYHFTFCG.js +9543 -0
  14. package/dist/bin/index.js +10 -13
  15. package/package.json +5 -5
  16. package/dist/_node-chunks/block-major-version-ISYH4TCK.js +0 -100
  17. package/dist/_node-chunks/block-node-version-5EB5A53X.js +0 -43
  18. package/dist/_node-chunks/chunk-5XSQTB37.js +0 -24
  19. package/dist/_node-chunks/chunk-BC4D5U7X.js +0 -1770
  20. package/dist/_node-chunks/chunk-BU5UAZT4.js +0 -6737
  21. package/dist/_node-chunks/chunk-E7XP47PT.js +0 -1939
  22. package/dist/_node-chunks/chunk-GP5DYREU.js +0 -50
  23. package/dist/_node-chunks/p-limit-6BLEN74L.js +0 -168
  24. package/dist/_node-chunks/run-A7S3YXN5.js +0 -11455
@@ -1,50 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ob45hxkzf3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ob45hxkzf3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ob45hxkzf3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ob45hxkzf3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ob45hxkzf3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ob45hxkzf3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- var __create = Object.create;
13
- var __defProp = Object.defineProperty;
14
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15
- var __getOwnPropNames = Object.getOwnPropertyNames;
16
- var __getProtoOf = Object.getPrototypeOf;
17
- var __hasOwnProp = Object.prototype.hasOwnProperty;
18
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
19
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
20
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
21
- }) : x)(function(x) {
22
- if (typeof require !== "undefined") return require.apply(this, arguments);
23
- throw Error('Dynamic require of "' + x + '" is not supported');
24
- });
25
- var __commonJS = (cb, mod) => function __require2() {
26
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
- };
28
- var __copyProps = (to, from, except, desc) => {
29
- if (from && typeof from === "object" || typeof from === "function") {
30
- for (let key of __getOwnPropNames(from))
31
- if (!__hasOwnProp.call(to, key) && key !== except)
32
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
33
- }
34
- return to;
35
- };
36
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
37
- // If the importer is in node compatibility mode or this is not an ESM
38
- // file that has been converted to a CommonJS file using a Babel-
39
- // compatible transform (i.e. "__esModule" has not been set), then set
40
- // "default" to the CommonJS "module.exports" for node compatibility.
41
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
42
- mod
43
- ));
44
-
45
- export {
46
- __name,
47
- __require,
48
- __commonJS,
49
- __toESM
50
- };
@@ -1,168 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_ob45hxkzf3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ob45hxkzf3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ob45hxkzf3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ob45hxkzf3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ob45hxkzf3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ob45hxkzf3.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-GP5DYREU.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
- // ../../node_modules/p-limit/index.js
86
- function pLimit(concurrency) {
87
- validateConcurrency(concurrency);
88
- const queue = new Queue();
89
- let activeCount = 0;
90
- const resumeNext = /* @__PURE__ */ __name(() => {
91
- if (activeCount < concurrency && queue.size > 0) {
92
- queue.dequeue()();
93
- activeCount++;
94
- }
95
- }, "resumeNext");
96
- const next = /* @__PURE__ */ __name(() => {
97
- activeCount--;
98
- resumeNext();
99
- }, "next");
100
- const run = /* @__PURE__ */ __name(async (function_, resolve, arguments_) => {
101
- const result = (async () => function_(...arguments_))();
102
- resolve(result);
103
- try {
104
- await result;
105
- } catch {
106
- }
107
- next();
108
- }, "run");
109
- const enqueue = /* @__PURE__ */ __name((function_, resolve, arguments_) => {
110
- new Promise((internalResolve) => {
111
- queue.enqueue(internalResolve);
112
- }).then(
113
- run.bind(void 0, function_, resolve, arguments_)
114
- );
115
- (async () => {
116
- await Promise.resolve();
117
- if (activeCount < concurrency) {
118
- resumeNext();
119
- }
120
- })();
121
- }, "enqueue");
122
- const generator = /* @__PURE__ */ __name((function_, ...arguments_) => new Promise((resolve) => {
123
- enqueue(function_, resolve, arguments_);
124
- }), "generator");
125
- Object.defineProperties(generator, {
126
- activeCount: {
127
- get: /* @__PURE__ */ __name(() => activeCount, "get")
128
- },
129
- pendingCount: {
130
- get: /* @__PURE__ */ __name(() => queue.size, "get")
131
- },
132
- clearQueue: {
133
- value() {
134
- queue.clear();
135
- }
136
- },
137
- concurrency: {
138
- get: /* @__PURE__ */ __name(() => concurrency, "get"),
139
- set(newConcurrency) {
140
- validateConcurrency(newConcurrency);
141
- concurrency = newConcurrency;
142
- queueMicrotask(() => {
143
- while (activeCount < concurrency && queue.size > 0) {
144
- resumeNext();
145
- }
146
- });
147
- }
148
- }
149
- });
150
- return generator;
151
- }
152
- __name(pLimit, "pLimit");
153
- function limitFunction(function_, option) {
154
- const { concurrency } = option;
155
- const limit = pLimit(concurrency);
156
- return (...arguments_) => limit(() => function_(...arguments_));
157
- }
158
- __name(limitFunction, "limitFunction");
159
- function validateConcurrency(concurrency) {
160
- if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
161
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
162
- }
163
- }
164
- __name(validateConcurrency, "validateConcurrency");
165
- export {
166
- pLimit as default,
167
- limitFunction
168
- };