storybook 10.0.0-rc.2 → 10.0.0-rc.3
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-ZNPRP22E.js → builder-manager-NIOGGLFD.js} +12 -12
- package/dist/_node-chunks/camelcase-CTANPQBN.js +18 -0
- package/dist/_node-chunks/{chunk-ZZMPRSOL.js → chunk-34ZACDOC.js} +10 -10
- package/dist/_node-chunks/{chunk-VHPYGR5X.js → chunk-3SEBVSWT.js} +7 -7
- package/dist/_node-chunks/{chunk-DOCRBDQH.js → chunk-5WPK6ACG.js} +7 -7
- package/dist/_node-chunks/{chunk-X35XJZ7G.js → chunk-5ZVI7NBO.js} +7 -7
- package/dist/_node-chunks/{chunk-BPYW7SFB.js → chunk-6PQVBT5D.js} +7 -7
- package/dist/_node-chunks/{chunk-QD4TA2GK.js → chunk-AF3TJ6R5.js} +7 -7
- package/dist/_node-chunks/{chunk-VSPERFYF.js → chunk-AZH4HEPP.js} +15 -15
- package/dist/_node-chunks/{chunk-54MOKOMZ.js → chunk-CTMEFFNW.js} +8 -8
- package/dist/_node-chunks/{chunk-H6J6LJQQ.js → chunk-CUEWGHOL.js} +6 -6
- package/dist/_node-chunks/{chunk-D5WSRTEX.js → chunk-EDGA22VS.js} +7 -7
- package/dist/_node-chunks/chunk-EOW64HJZ.js +1518 -0
- package/dist/_node-chunks/{chunk-J34Y4L4Q.js → chunk-FUCVPILC.js} +9 -9
- package/dist/_node-chunks/{chunk-AFW3U6QG.js → chunk-G5VN3ASC.js} +7 -7
- package/dist/_node-chunks/{chunk-OCPCEJ7D.js → chunk-HGZID3CI.js} +7 -7
- package/dist/_node-chunks/{chunk-FWBLOTP7.js → chunk-I37OZGFX.js} +7 -7
- package/dist/_node-chunks/{chunk-XJRUDTSD.js → chunk-JYCXWPO6.js} +7 -7
- package/dist/_node-chunks/{chunk-SSK6CTPD.js → chunk-KUXWX4RV.js} +12 -12
- package/dist/_node-chunks/{chunk-6VEWXDI5.js → chunk-ML3GTXPM.js} +6 -6
- package/dist/_node-chunks/{chunk-K5GJVTVF.js → chunk-NSYINCG4.js} +7 -7
- package/dist/_node-chunks/{chunk-6SGQF6CF.js → chunk-OAP27YU5.js} +8 -8
- package/dist/_node-chunks/{chunk-MTIN3LKM.js → chunk-QPB4P2Q3.js} +7 -7
- package/dist/_node-chunks/{chunk-2IEV7XG2.js → chunk-R2FDNWFD.js} +9 -9
- package/dist/_node-chunks/{chunk-VDCU2LFF.js → chunk-SZ6FXTRU.js} +7 -7
- package/dist/_node-chunks/{chunk-LR47LSEQ.js → chunk-TLUDPMLR.js} +8 -8
- package/dist/_node-chunks/chunk-UQKRSNK7.js +61 -0
- package/dist/_node-chunks/{chunk-WD2QJDGV.js → chunk-VDVDOBNV.js} +7 -7
- package/dist/_node-chunks/{chunk-M2Y5JVSX.js → chunk-VHDA7UQR.js} +8 -8
- package/dist/_node-chunks/{chunk-SF4YWMS2.js → chunk-WE7755VW.js} +24 -21
- package/dist/_node-chunks/{chunk-62KDMWXX.js → chunk-WRCI3EYU.js} +7 -7
- package/dist/_node-chunks/{chunk-FXGD2HHQ.js → chunk-WSINFVEL.js} +7 -7
- package/dist/_node-chunks/{chunk-TR7IYGK4.js → chunk-XA5ZNWSM.js} +7 -7
- package/dist/_node-chunks/chunk-XC2HC4KH.js +18 -0
- package/dist/_node-chunks/{chunk-LUDM5RD2.js → chunk-XFBFSXFJ.js} +8 -8
- package/dist/_node-chunks/{dist-47EE2CMC.js → dist-SXAIWZGI.js} +9 -9
- package/dist/_node-chunks/{globby-ZEUQ6QPC.js → globby-W4JFDHUY.js} +9 -9
- package/dist/_node-chunks/{lib-LCU5VXJS.js → lib-PMWBRG3N.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7LUZM4HR.js → mdx-N42X6CFJ-IVVYYMYF.js} +8 -8
- package/dist/_node-chunks/{p-limit-XJGTO6H5.js → p-limit-PE5BWDZH.js} +7 -7
- package/dist/_node-chunks/{plugin-ZN5KCYM2.js → plugin-OGRBN4O7.js} +10 -10
- package/dist/_node-chunks/{plugin-YZRPWYO5.js → plugin-ZVWKMXMK.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-CRH6N7YZ.js → webpack-inject-mocker-runtime-plugin-SXMOGYNE.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-NQXGMVTF.js → webpack-mock-plugin-X64FENVZ.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +136 -1561
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +47 -35
- package/dist/core-server/presets/common-manager.js +1 -0
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +23 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +8 -5
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +7 -4
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +7 -4
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-EY6MYFU4.js +0 -18
- package/dist/_node-chunks/chunk-JT5JXOKC.js +0 -61
- package/dist/_node-chunks/chunk-N4S7XZKB.js +0 -18
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-WE7755VW.js";
|
|
87
|
+
import "../_node-chunks/chunk-JYCXWPO6.js";
|
|
88
88
|
import {
|
|
89
89
|
versions_default
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-UQKRSNK7.js";
|
|
91
91
|
import {
|
|
92
92
|
findFilesUp,
|
|
93
93
|
getProjectRoot,
|
|
@@ -99,22 +99,22 @@ import {
|
|
|
99
99
|
optionalEnvToBoolean,
|
|
100
100
|
stringifyEnvs,
|
|
101
101
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
102
|
+
} from "../_node-chunks/chunk-FUCVPILC.js";
|
|
103
|
+
import "../_node-chunks/chunk-WSINFVEL.js";
|
|
104
|
+
import "../_node-chunks/chunk-5ZVI7NBO.js";
|
|
105
105
|
import {
|
|
106
106
|
importMetaResolve,
|
|
107
107
|
importModule,
|
|
108
108
|
resolvePackageDir,
|
|
109
109
|
safeResolveModule
|
|
110
|
-
} from "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
110
|
+
} from "../_node-chunks/chunk-OAP27YU5.js";
|
|
111
|
+
import "../_node-chunks/chunk-AF3TJ6R5.js";
|
|
112
|
+
import "../_node-chunks/chunk-G5VN3ASC.js";
|
|
113
|
+
import "../_node-chunks/chunk-XA5ZNWSM.js";
|
|
114
|
+
import "../_node-chunks/chunk-I37OZGFX.js";
|
|
115
|
+
import "../_node-chunks/chunk-3SEBVSWT.js";
|
|
116
|
+
import "../_node-chunks/chunk-5WPK6ACG.js";
|
|
117
|
+
import "../_node-chunks/chunk-CUEWGHOL.js";
|
|
118
118
|
export {
|
|
119
119
|
COMMON_ENV_VARS,
|
|
120
120
|
DEFAULT_FILES_PATTERN,
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
detectPnp
|
|
14
|
+
} from "../_node-chunks/chunk-EOW64HJZ.js";
|
|
12
15
|
import {
|
|
13
16
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-SZ6FXTRU.js";
|
|
15
18
|
import {
|
|
16
19
|
boxen,
|
|
17
20
|
require_string_width
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
19
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-XFBFSXFJ.js";
|
|
22
|
+
import "../_node-chunks/chunk-6PQVBT5D.js";
|
|
20
23
|
import {
|
|
21
24
|
StatusTypeIdMismatchError,
|
|
22
25
|
StorybookError
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-R2FDNWFD.js";
|
|
24
27
|
import {
|
|
25
28
|
getErrorLevel,
|
|
26
29
|
mapStaticDir,
|
|
@@ -28,59 +31,59 @@ import {
|
|
|
28
31
|
sendTelemetryError,
|
|
29
32
|
useStatics,
|
|
30
33
|
withTelemetry
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-KUXWX4RV.js";
|
|
35
|
+
import "../_node-chunks/chunk-WRCI3EYU.js";
|
|
33
36
|
import {
|
|
34
37
|
telemetry
|
|
35
|
-
} from "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-AZH4HEPP.js";
|
|
39
|
+
import "../_node-chunks/chunk-XC2HC4KH.js";
|
|
37
40
|
import {
|
|
38
41
|
userOrAutoTitleFromSpecifier
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-WE7755VW.js";
|
|
43
|
+
import "../_node-chunks/chunk-JYCXWPO6.js";
|
|
44
|
+
import "../_node-chunks/chunk-UQKRSNK7.js";
|
|
45
|
+
import "../_node-chunks/chunk-TLUDPMLR.js";
|
|
43
46
|
import {
|
|
44
47
|
optionalEnvToBoolean,
|
|
45
48
|
require_cross_spawn
|
|
46
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-FUCVPILC.js";
|
|
47
50
|
import {
|
|
48
51
|
up2 as up
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-WSINFVEL.js";
|
|
53
|
+
import "../_node-chunks/chunk-QPB4P2Q3.js";
|
|
51
54
|
import {
|
|
52
55
|
invariant
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-5ZVI7NBO.js";
|
|
54
57
|
import {
|
|
55
58
|
importModule,
|
|
56
59
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-OAP27YU5.js";
|
|
58
61
|
import {
|
|
59
62
|
resolve
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-AF3TJ6R5.js";
|
|
61
64
|
import {
|
|
62
65
|
require_prompts
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-G5VN3ASC.js";
|
|
67
|
+
import "../_node-chunks/chunk-XA5ZNWSM.js";
|
|
65
68
|
import {
|
|
66
69
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
70
|
+
} from "../_node-chunks/chunk-I37OZGFX.js";
|
|
68
71
|
import {
|
|
69
72
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-3SEBVSWT.js";
|
|
71
74
|
import {
|
|
72
75
|
require_lib,
|
|
73
76
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-NSYINCG4.js";
|
|
75
78
|
import {
|
|
76
79
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-5WPK6ACG.js";
|
|
78
81
|
import {
|
|
79
82
|
__commonJS,
|
|
80
83
|
__name,
|
|
81
84
|
__require,
|
|
82
85
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-CUEWGHOL.js";
|
|
84
87
|
|
|
85
88
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
89
|
var require_filesystem = __commonJS({
|
|
@@ -8715,7 +8718,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8715
8718
|
}
|
|
8716
8719
|
const pathToSubIndex = {};
|
|
8717
8720
|
const fullGlob = slash(join(specifier.directory, specifier.files));
|
|
8718
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8721
|
+
const { globby } = await import("../_node-chunks/globby-W4JFDHUY.js");
|
|
8719
8722
|
const files = await globby(fullGlob, {
|
|
8720
8723
|
absolute: true,
|
|
8721
8724
|
cwd: workingDir,
|
|
@@ -8973,7 +8976,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8973
8976
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8974
8977
|
const importPath = slash(normalizedPath);
|
|
8975
8978
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8976
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8979
|
+
const { analyze } = await import("../_node-chunks/dist-SXAIWZGI.js");
|
|
8977
8980
|
const result = await analyze(content);
|
|
8978
8981
|
if (result.isTemplate) {
|
|
8979
8982
|
return false;
|
|
@@ -9316,7 +9319,7 @@ __name(print, "print");
|
|
|
9316
9319
|
// src/core-server/utils/get-builders.ts
|
|
9317
9320
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9318
9321
|
async function getManagerBuilder() {
|
|
9319
|
-
return await import("../_node-chunks/builder-manager-
|
|
9322
|
+
return await import("../_node-chunks/builder-manager-NIOGGLFD.js");
|
|
9320
9323
|
}
|
|
9321
9324
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9322
9325
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9555,7 +9558,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9555
9558
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9556
9559
|
basename2(specifier.files)
|
|
9557
9560
|
);
|
|
9558
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9561
|
+
const { globby } = await import("../_node-chunks/globby-W4JFDHUY.js");
|
|
9559
9562
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9560
9563
|
addedFiles.forEach((filePath) => {
|
|
9561
9564
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -12126,6 +12129,15 @@ async function buildDevStandalone(options) {
|
|
|
12126
12129
|
options.cacheKey = cacheKey;
|
|
12127
12130
|
options.outputDir = outputDir;
|
|
12128
12131
|
options.serverChannelUrl = getServerChannelUrl(port, options);
|
|
12132
|
+
options.pnp = await detectPnp();
|
|
12133
|
+
if (options.pnp) {
|
|
12134
|
+
deprecate(import_ts_dedent8.dedent`
|
|
12135
|
+
As of Storybook 10.0, PnP is deprecated.
|
|
12136
|
+
If you are using PnP, you can continue to use Storybook 10.0, but we recommend migrating to a different package manager or linker-mode.
|
|
12137
|
+
|
|
12138
|
+
In future versions, PnP compatibility will be removed.
|
|
12139
|
+
`);
|
|
12140
|
+
}
|
|
12129
12141
|
const config = await loadMainConfig2(options);
|
|
12130
12142
|
const { framework } = config;
|
|
12131
12143
|
const corePresets = [];
|
|
@@ -6957,6 +6957,7 @@ var INTERNAL_RENDER_CALL_ID = "internal_render_call";
|
|
|
6957
6957
|
// ../addons/a11y/src/constants.ts
|
|
6958
6958
|
var ADDON_ID8 = "storybook/a11y";
|
|
6959
6959
|
var PANEL_ID3 = `${ADDON_ID8}/panel`;
|
|
6960
|
+
var UI_STATE_ID = `${ADDON_ID8}/ui`;
|
|
6960
6961
|
var RESULT = `${ADDON_ID8}/result`;
|
|
6961
6962
|
var REQUEST = `${ADDON_ID8}/request`;
|
|
6962
6963
|
var RUNNING = `${ADDON_ID8}/running`;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.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-XA5ZNWSM.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-I37OZGFX.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-CUEWGHOL.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,37 +12,37 @@ var require = CJS_COMPAT_NODE_MODULE_oali8g6joqi.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
parseStaticDir,
|
|
14
14
|
sendTelemetryError
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-KUXWX4RV.js";
|
|
16
|
+
import "../../_node-chunks/chunk-WRCI3EYU.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-QPB4P2Q3.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-5ZVI7NBO.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-OAP27YU5.js";
|
|
27
27
|
import {
|
|
28
28
|
join
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
-
import "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-AF3TJ6R5.js";
|
|
30
|
+
import "../../_node-chunks/chunk-G5VN3ASC.js";
|
|
31
31
|
import {
|
|
32
32
|
loadConfig
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-CTMEFFNW.js";
|
|
34
34
|
import {
|
|
35
35
|
require_dist
|
|
36
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
+
} from "../../_node-chunks/chunk-3SEBVSWT.js";
|
|
37
37
|
import {
|
|
38
38
|
require_picocolors
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
39
|
+
} from "../../_node-chunks/chunk-5WPK6ACG.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__name,
|
|
43
43
|
__require,
|
|
44
44
|
__toESM
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
+
} from "../../_node-chunks/chunk-CUEWGHOL.js";
|
|
46
46
|
|
|
47
47
|
// ../node_modules/shell-quote/quote.js
|
|
48
48
|
var require_quote = __commonJS({
|
|
@@ -703,7 +703,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
703
703
|
|
|
704
704
|
// src/core-server/utils/get-component-variable-name.ts
|
|
705
705
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
706
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
706
|
+
const camelCase = await import("../../_node-chunks/camelcase-CTANPQBN.js");
|
|
707
707
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
708
708
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
709
709
|
return sanitized;
|
|
@@ -1050,7 +1050,7 @@ async function searchFiles({
|
|
|
1050
1050
|
ignoredFiles = IGNORED_FILES,
|
|
1051
1051
|
fileExtensions = FILE_EXTENSIONS
|
|
1052
1052
|
}) {
|
|
1053
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1053
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-W4JFDHUY.js");
|
|
1054
1054
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1055
1055
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1056
1056
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1821,8 +1821,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1821
1821
|
if (!previewConfigPath) {
|
|
1822
1822
|
return existing;
|
|
1823
1823
|
}
|
|
1824
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1825
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1824
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-ZVWKMXMK.js");
|
|
1825
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-OGRBN4O7.js");
|
|
1826
1826
|
const coreOptions = await options.presets.apply("core");
|
|
1827
1827
|
return {
|
|
1828
1828
|
...existing,
|
|
@@ -1840,8 +1840,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1840
1840
|
if (!previewConfigPath) {
|
|
1841
1841
|
return config;
|
|
1842
1842
|
}
|
|
1843
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1844
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1843
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-X64FENVZ.js");
|
|
1844
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-SXMOGYNE.js");
|
|
1845
1845
|
config.plugins = config.plugins || [];
|
|
1846
1846
|
config.module.rules.push({
|
|
1847
1847
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.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
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-VHDA7UQR.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-AF3TJ6R5.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-CUEWGHOL.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
21
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.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
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-VDVDOBNV.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-VHDA7UQR.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-AF3TJ6R5.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-CUEWGHOL.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-CTMEFFNW.js";
|
|
42
|
+
import "../_node-chunks/chunk-3SEBVSWT.js";
|
|
43
|
+
import "../_node-chunks/chunk-CUEWGHOL.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -75336,10 +75336,13 @@ var testingLibrary = instrument(
|
|
|
75336
75336
|
);
|
|
75337
75337
|
testingLibrary.screen = new Proxy(testingLibrary.screen, {
|
|
75338
75338
|
get(target, prop, receiver) {
|
|
75339
|
-
|
|
75340
|
-
|
|
75341
|
-
|
|
75342
|
-
|
|
75339
|
+
if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) {
|
|
75340
|
+
once.warn(dedent`
|
|
75341
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
75342
|
+
|
|
75343
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
75344
|
+
`);
|
|
75345
|
+
}
|
|
75343
75346
|
return Reflect.get(target, prop, receiver);
|
|
75344
75347
|
}
|
|
75345
75348
|
});
|
|
@@ -82699,7 +82702,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
82699
82702
|
var import_semver = __toESM(require_semver2(), 1);
|
|
82700
82703
|
|
|
82701
82704
|
// src/manager-api/version.ts
|
|
82702
|
-
var version = "10.0.0-rc.
|
|
82705
|
+
var version = "10.0.0-rc.3";
|
|
82703
82706
|
|
|
82704
82707
|
// src/manager-api/modules/versions.ts
|
|
82705
82708
|
var { VERSIONCHECK } = scope;
|
|
@@ -3262,7 +3262,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3262
3262
|
import semver from "semver";
|
|
3263
3263
|
|
|
3264
3264
|
// src/manager-api/version.ts
|
|
3265
|
-
var version = "10.0.0-rc.
|
|
3265
|
+
var version = "10.0.0-rc.3";
|
|
3266
3266
|
|
|
3267
3267
|
// src/manager-api/modules/versions.ts
|
|
3268
3268
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.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
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-SZ6FXTRU.js";
|
|
15
15
|
import {
|
|
16
16
|
ansi_styles_default,
|
|
17
17
|
boxen,
|
|
18
18
|
require_string_width,
|
|
19
19
|
stripAnsi
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-XFBFSXFJ.js";
|
|
21
|
+
import "../_node-chunks/chunk-6PQVBT5D.js";
|
|
22
22
|
import {
|
|
23
23
|
execaSync,
|
|
24
24
|
optionalEnvToBoolean
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-FUCVPILC.js";
|
|
26
|
+
import "../_node-chunks/chunk-WSINFVEL.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-G5VN3ASC.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-5WPK6ACG.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__export,
|
|
37
37
|
__name,
|
|
38
38
|
__require,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "../_node-chunks/chunk-
|
|
40
|
+
} from "../_node-chunks/chunk-CUEWGHOL.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|
package/dist/preview/runtime.js
CHANGED
|
@@ -40140,10 +40140,13 @@ var testingLibrary = instrument(
|
|
|
40140
40140
|
);
|
|
40141
40141
|
testingLibrary.screen = new Proxy(testingLibrary.screen, {
|
|
40142
40142
|
get(target, prop, receiver) {
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
40146
|
-
|
|
40143
|
+
if (typeof window !== "undefined" && globalThis.location?.href?.includes("viewMode=docs")) {
|
|
40144
|
+
once.warn(dedent`
|
|
40145
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
40146
|
+
|
|
40147
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
40148
|
+
`);
|
|
40149
|
+
}
|
|
40147
40150
|
return Reflect.get(target, prop, receiver);
|
|
40148
40151
|
}
|
|
40149
40152
|
});
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gf85phjy0t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gf85phjy0t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gf85phjy0t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gf85phjy0t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gf85phjy0t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gf85phjy0t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
WebpackCompilationError,
|
|
40
40
|
WebpackInvocationError,
|
|
41
41
|
WebpackMissingStatsError
|
|
42
|
-
} from "./_node-chunks/chunk-
|
|
43
|
-
import "./_node-chunks/chunk-
|
|
44
|
-
import "./_node-chunks/chunk-
|
|
45
|
-
import "./_node-chunks/chunk-
|
|
42
|
+
} from "./_node-chunks/chunk-R2FDNWFD.js";
|
|
43
|
+
import "./_node-chunks/chunk-3SEBVSWT.js";
|
|
44
|
+
import "./_node-chunks/chunk-5WPK6ACG.js";
|
|
45
|
+
import "./_node-chunks/chunk-CUEWGHOL.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|