storybook 10.1.0-beta.0 → 10.1.0-beta.2
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/dist/_node-chunks/{builder-manager-BDAQHXFI.js → builder-manager-DE5CZGPU.js} +12 -12
- package/dist/_node-chunks/{camelcase-3C7DZZPX.js → camelcase-3GPWEIYB.js} +7 -7
- package/dist/_node-chunks/{chunk-UFOFO5H7.js → chunk-3FVKDIQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-VBF7ALJF.js → chunk-3GUEJ3O3.js} +6 -6
- package/dist/_node-chunks/{chunk-YWV55YW3.js → chunk-43AQPYQJ.js} +7 -7
- package/dist/_node-chunks/{chunk-7RN6TXKP.js → chunk-45XWOXXM.js} +7 -7
- package/dist/_node-chunks/{chunk-R5YGFSTV.js → chunk-4CHMPSHM.js} +10 -11
- package/dist/_node-chunks/{chunk-XGK6MVKR.js → chunk-6T6VTXDE.js} +7 -7
- package/dist/_node-chunks/{chunk-BG4RDXG7.js → chunk-77QRXLGA.js} +6 -6
- package/dist/_node-chunks/chunk-CEFT3TLW.js +18 -0
- package/dist/_node-chunks/{chunk-WURL4XOT.js → chunk-D2CQN4LQ.js} +9 -9
- package/dist/_node-chunks/{chunk-CQMAU6UQ.js → chunk-EXJNST6P.js} +7 -7
- package/dist/_node-chunks/{chunk-POT2EVGD.js → chunk-F4HHDWJV.js} +6 -6
- package/dist/_node-chunks/{chunk-OZZO56XN.js → chunk-HFPMBHAF.js} +13 -13
- package/dist/_node-chunks/chunk-HG5BSY5V.js +23 -0
- package/dist/_node-chunks/{chunk-7SJ7PZNL.js → chunk-HGDN3STX.js} +7 -7
- package/dist/_node-chunks/{chunk-W6MAMTUF.js → chunk-INMOMYVB.js} +6 -6
- package/dist/_node-chunks/{chunk-D6ND3TVY.js → chunk-KIW5GZKQ.js} +10 -10
- package/dist/_node-chunks/{chunk-MMVV6DGG.js → chunk-NOLZUVQN.js} +20 -20
- package/dist/_node-chunks/{chunk-KVRF22SH.js → chunk-ODJGHT54.js} +7 -7
- package/dist/_node-chunks/{chunk-7LIRCAQE.js → chunk-PJAOEV2K.js} +6 -6
- package/dist/_node-chunks/{chunk-IXWEUXJ2.js → chunk-PQF6TGKN.js} +6 -6
- package/dist/_node-chunks/{chunk-O5CGEVRI.js → chunk-QAX2QIAO.js} +6 -6
- package/dist/_node-chunks/{chunk-CN2IW2KQ.js → chunk-RSFKUYLE.js} +8 -8
- package/dist/_node-chunks/{chunk-EVK2SBW5.js → chunk-RZEXP6OF.js} +7 -7
- package/dist/_node-chunks/{chunk-LEDP4QQW.js → chunk-UWKUW2OJ.js} +14 -14
- package/dist/_node-chunks/chunk-Y35QWPHB.js +61 -0
- package/dist/_node-chunks/{chunk-56U5LEMP.js → chunk-YZEOU7D5.js} +9 -9
- package/dist/_node-chunks/{chunk-YV3GDSDT.js → chunk-Z7F5CZXW.js} +7 -7
- package/dist/_node-chunks/{chunk-2IIQTGNE.js → chunk-ZH4F5JWQ.js} +34 -24
- package/dist/_node-chunks/{dist-KEP4IFRN.js → dist-RFQRGJD5.js} +9 -9
- package/dist/_node-chunks/{globby-4WUBTDCN.js → globby-WIMKMN5Q.js} +9 -9
- package/dist/_node-chunks/{lib-JVOEKTYM.js → lib-OBEY3MUM.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-C5WFYYXR.js → mdx-N42X6CFJ-7XA7LOVG.js} +8 -8
- package/dist/_node-chunks/{p-limit-LDY632RS.js → p-limit-VII3MYEU.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +16 -16
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +5 -4
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +43 -41
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +9 -12
- package/dist/manager/runtime.js +120 -62
- package/dist/manager-api/index.d.ts +182 -180
- package/dist/manager-api/index.js +9 -12
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CBQKMXLQ.js +0 -18
- package/dist/_node-chunks/chunk-DC355CYB.js +0 -61
- package/dist/_node-chunks/chunk-SQCTM2OS.js +0 -23
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-D2CQN4LQ.js";
|
|
26
|
+
import "../_node-chunks/chunk-ODJGHT54.js";
|
|
27
|
+
import "../_node-chunks/chunk-43AQPYQJ.js";
|
|
28
|
+
import "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
version
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-CEFT3TLW.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-YZEOU7D5.js";
|
|
18
|
+
import "../_node-chunks/chunk-QAX2QIAO.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-6T6VTXDE.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-43AQPYQJ.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
30
30
|
|
|
31
31
|
// ../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
|
@@ -2746,7 +2746,7 @@ var dev = async (cliOptions) => {
|
|
|
2746
2746
|
addToGlobalContext("cliVersion", version);
|
|
2747
2747
|
var handleCommandFailure = async (logFilePath) => {
|
|
2748
2748
|
let logFile = await logTracker.writeToFile(logFilePath);
|
|
2749
|
-
logger2.log(`
|
|
2749
|
+
logger2.log(`Debug logs are written to: ${logFile}`), logger2.outro("Storybook exited with an error"), process.exit(1);
|
|
2750
2750
|
}, command = (name) => program.command(name).option(
|
|
2751
2751
|
"--disable-telemetry",
|
|
2752
2752
|
"Disable sending telemetry data",
|
|
@@ -2762,10 +2762,10 @@ var handleCommandFailure = async (logFilePath) => {
|
|
|
2762
2762
|
logger2.error(`Error loading global settings:
|
|
2763
2763
|
` + String(e));
|
|
2764
2764
|
}
|
|
2765
|
-
}).hook("postAction", async (
|
|
2765
|
+
}).hook("postAction", async (command2) => {
|
|
2766
2766
|
if (logTracker.shouldWriteLogsToFile) {
|
|
2767
|
-
let logFile = await logTracker.writeToFile(getOptionValue("logfile"));
|
|
2768
|
-
logger2.outro(`
|
|
2767
|
+
let logFile = await logTracker.writeToFile(command2.getOptionValue("logfile"));
|
|
2768
|
+
logger2.outro(`Debug logs are written to: ${logFile}`);
|
|
2769
2769
|
}
|
|
2770
2770
|
});
|
|
2771
2771
|
command("dev").option("-p, --port <number>", "Port to run Storybook", (str) => parseInt(str, 10)).option("-h, --host <string>", "Host to run Storybook").option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option(
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-Y35QWPHB.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-Z7F5CZXW.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-PQF6TGKN.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-6T6VTXDE.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-77QRXLGA.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-6T6VTXDE.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -3135,7 +3135,6 @@ type Result = {
|
|
|
3135
3135
|
reasons?: string[];
|
|
3136
3136
|
};
|
|
3137
3137
|
interface AddonVitestCompatibilityOptions {
|
|
3138
|
-
packageManager: JsPackageManager$1;
|
|
3139
3138
|
builder?: SupportedBuilder;
|
|
3140
3139
|
framework?: SupportedFramework | null;
|
|
3141
3140
|
projectRoot?: string;
|
|
@@ -3151,6 +3150,8 @@ interface AddonVitestCompatibilityOptions {
|
|
|
3151
3150
|
* - Code/lib/create-storybook/src/services/FeatureCompatibilityService.ts
|
|
3152
3151
|
*/
|
|
3153
3152
|
declare class AddonVitestService {
|
|
3153
|
+
private readonly packageManager;
|
|
3154
|
+
constructor(packageManager: JsPackageManager$1);
|
|
3154
3155
|
readonly supportedFrameworks: SupportedFramework[];
|
|
3155
3156
|
/**
|
|
3156
3157
|
* Collect all dependencies needed for @storybook/addon-vitest
|
|
@@ -3161,7 +3162,7 @@ declare class AddonVitestService {
|
|
|
3161
3162
|
* - Next.js specific: @storybook/nextjs-vite
|
|
3162
3163
|
* - Coverage reporter: @vitest/coverage-v8
|
|
3163
3164
|
*/
|
|
3164
|
-
collectDependencies(
|
|
3165
|
+
collectDependencies(): Promise<string[]>;
|
|
3165
3166
|
/**
|
|
3166
3167
|
* Install Playwright browser binaries for @storybook/addon-vitest
|
|
3167
3168
|
*
|
|
@@ -3173,7 +3174,7 @@ declare class AddonVitestService {
|
|
|
3173
3174
|
* @param options - Installation options
|
|
3174
3175
|
* @returns Array of error messages if installation fails
|
|
3175
3176
|
*/
|
|
3176
|
-
installPlaywright(
|
|
3177
|
+
installPlaywright(options?: {
|
|
3177
3178
|
yes?: boolean;
|
|
3178
3179
|
}): Promise<{
|
|
3179
3180
|
errors: string[];
|
|
@@ -3196,7 +3197,7 @@ declare class AddonVitestService {
|
|
|
3196
3197
|
* Validate package versions for addon-vitest compatibility Public method to allow early
|
|
3197
3198
|
* validation before framework detection
|
|
3198
3199
|
*/
|
|
3199
|
-
validatePackageVersions(
|
|
3200
|
+
validatePackageVersions(): Promise<Result>;
|
|
3200
3201
|
/**
|
|
3201
3202
|
* Validate vitest config files for addon compatibility
|
|
3202
3203
|
*
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-ZH4F5JWQ.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-HG5BSY5V.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-YZEOU7D5.js";
|
|
45
|
+
import "../_node-chunks/chunk-INMOMYVB.js";
|
|
46
|
+
import "../_node-chunks/chunk-Z7F5CZXW.js";
|
|
47
|
+
import "../_node-chunks/chunk-QAX2QIAO.js";
|
|
48
|
+
import "../_node-chunks/chunk-PQF6TGKN.js";
|
|
49
|
+
import "../_node-chunks/chunk-6T6VTXDE.js";
|
|
50
|
+
import "../_node-chunks/chunk-D2CQN4LQ.js";
|
|
51
|
+
import "../_node-chunks/chunk-ODJGHT54.js";
|
|
52
|
+
import "../_node-chunks/chunk-43AQPYQJ.js";
|
|
53
|
+
import "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -103,29 +103,29 @@ import {
|
|
|
103
103
|
validateConfigurationFiles,
|
|
104
104
|
validateFrameworkName,
|
|
105
105
|
wrapValueWithGetAbsolutePathWrapper
|
|
106
|
-
} from "../_node-chunks/chunk-
|
|
106
|
+
} from "../_node-chunks/chunk-NOLZUVQN.js";
|
|
107
107
|
import {
|
|
108
108
|
versions_default
|
|
109
|
-
} from "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
109
|
+
} from "../_node-chunks/chunk-Y35QWPHB.js";
|
|
110
|
+
import "../_node-chunks/chunk-EXJNST6P.js";
|
|
111
|
+
import "../_node-chunks/chunk-4CHMPSHM.js";
|
|
112
|
+
import "../_node-chunks/chunk-INMOMYVB.js";
|
|
113
113
|
import {
|
|
114
114
|
importMetaResolve,
|
|
115
115
|
importModule,
|
|
116
116
|
resolvePackageDir,
|
|
117
117
|
safeResolveModule
|
|
118
|
-
} from "../_node-chunks/chunk-
|
|
118
|
+
} from "../_node-chunks/chunk-Z7F5CZXW.js";
|
|
119
119
|
import {
|
|
120
120
|
groupBy,
|
|
121
121
|
invariant
|
|
122
|
-
} from "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
128
|
-
import "../_node-chunks/chunk-
|
|
122
|
+
} from "../_node-chunks/chunk-QAX2QIAO.js";
|
|
123
|
+
import "../_node-chunks/chunk-PQF6TGKN.js";
|
|
124
|
+
import "../_node-chunks/chunk-HGDN3STX.js";
|
|
125
|
+
import "../_node-chunks/chunk-PJAOEV2K.js";
|
|
126
|
+
import "../_node-chunks/chunk-6T6VTXDE.js";
|
|
127
|
+
import "../_node-chunks/chunk-43AQPYQJ.js";
|
|
128
|
+
import "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
129
129
|
export {
|
|
130
130
|
DEFAULT_FILES_PATTERN,
|
|
131
131
|
FileSystemCache,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-KIW5GZKQ.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-HFPMBHAF.js";
|
|
25
|
+
import "../_node-chunks/chunk-45XWOXXM.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-HG5BSY5V.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-F4HHDWJV.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-UWKUW2OJ.js";
|
|
35
|
+
import "../_node-chunks/chunk-CEFT3TLW.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-NOLZUVQN.js";
|
|
43
|
+
import "../_node-chunks/chunk-Y35QWPHB.js";
|
|
44
|
+
import "../_node-chunks/chunk-EXJNST6P.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-4CHMPSHM.js";
|
|
48
|
+
import "../_node-chunks/chunk-3GUEJ3O3.js";
|
|
49
|
+
import "../_node-chunks/chunk-YZEOU7D5.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-INMOMYVB.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-Z7F5CZXW.js";
|
|
58
|
+
import "../_node-chunks/chunk-QAX2QIAO.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-PQF6TGKN.js";
|
|
65
|
+
import "../_node-chunks/chunk-HGDN3STX.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-PJAOEV2K.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-6T6VTXDE.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-ODJGHT54.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-43AQPYQJ.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-WIMKMN5Q.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: globCwd,
|
|
5153
5153
|
...commonGlobOptions(globPattern)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-RFQRGJD5.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-DE5CZGPU.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-WIMKMN5Q.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -5901,7 +5901,7 @@ async function buildStaticStandalone(options) {
|
|
|
5901
5901
|
extractStorybookMetadata(join(options.outputDir, "project.json"), options.configDir)
|
|
5902
5902
|
), options.debugWebpack && logConfig("Preview webpack config", await previewBuilder.getConfig(fullOptions)), options.ignorePreview ? logger4.info("Not building preview") : logger4.info("Building preview..");
|
|
5903
5903
|
let startTime = process.hrtime();
|
|
5904
|
-
await Promise.all([
|
|
5904
|
+
if (await Promise.all([
|
|
5905
5905
|
...options.ignorePreview ? [] : [
|
|
5906
5906
|
previewBuilder.build({
|
|
5907
5907
|
startTime,
|
|
@@ -5918,16 +5918,18 @@ async function buildStaticStandalone(options) {
|
|
|
5918
5918
|
})
|
|
5919
5919
|
],
|
|
5920
5920
|
...effects
|
|
5921
|
-
]), !core2?.disableTelemetry && !options.test
|
|
5922
|
-
|
|
5923
|
-
let storyIndex = await
|
|
5921
|
+
]), !core2?.disableTelemetry && !options.test)
|
|
5922
|
+
try {
|
|
5923
|
+
let storyIndex = await (await initializedStoryIndexGenerator)?.getIndex(), payload = {
|
|
5924
5924
|
precedingUpgrade: await getPrecedingUpgrade()
|
|
5925
5925
|
};
|
|
5926
5926
|
storyIndex && Object.assign(payload, {
|
|
5927
5927
|
storyIndex: summarizeIndex(storyIndex)
|
|
5928
5928
|
}), await telemetry2("build", payload, { configDir: options.configDir });
|
|
5929
|
-
})
|
|
5930
|
-
|
|
5929
|
+
} catch (e) {
|
|
5930
|
+
logger4.debug?.(`Build telemetry failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
5931
|
+
}
|
|
5932
|
+
logger4.step(`Output directory: ${options.outputDir}`);
|
|
5931
5933
|
}
|
|
5932
5934
|
|
|
5933
5935
|
// src/core-server/build-dev.ts
|
|
@@ -7424,8 +7426,8 @@ var checkPackageCompatibility = async (dependency, context) => {
|
|
|
7424
7426
|
`
|
|
7425
7427
|
Please consider updating your packages or contacting the maintainers for compatibility details.`,
|
|
7426
7428
|
`
|
|
7427
|
-
For more on
|
|
7428
|
-
"https://github.com/storybookjs/storybook/issues/
|
|
7429
|
+
For more details on compatibility guidance, see:`,
|
|
7430
|
+
"https://github.com/storybookjs/storybook/issues/32836"
|
|
7429
7431
|
), incompatiblePackages.some((dep) => dep.availableCoreUpdate) && summaryMessage.push(
|
|
7430
7432
|
`
|
|
7431
7433
|
`,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-HGDN3STX.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-PJAOEV2K.js";
|
|
18
|
+
import "../../_node-chunks/chunk-3FVKDIQ7.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|