storybook 10.0.7 → 10.0.8
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/_browser-chunks/{chunk-RW5PKMWM.js → chunk-HERDX7MO.js} +2 -2
- package/dist/_browser-chunks/{chunk-UTNZYD2N.js → chunk-KHNISLMN.js} +81 -37
- package/dist/_browser-chunks/{chunk-B4A3ADP3.js → chunk-U2JWIJRX.js} +1 -1
- package/dist/_browser-chunks/{chunk-SYS437NN.js → chunk-VQJJDUCI.js} +1 -1
- package/dist/_node-chunks/{builder-manager-IMGYSQ6C.js → builder-manager-32BKVJNY.js} +12 -12
- package/dist/_node-chunks/camelcase-A6XPJDW2.js +18 -0
- package/dist/_node-chunks/{chunk-WEXHDPHI.js → chunk-2JVDNALC.js} +7 -7
- package/dist/_node-chunks/{chunk-PVBMWXLV.js → chunk-2YHAMJAY.js} +7 -7
- package/dist/_node-chunks/{chunk-ODTNT22I.js → chunk-425EMBPZ.js} +297 -768
- package/dist/_node-chunks/{chunk-SQJQNNLJ.js → chunk-4UOXOBHK.js} +22 -16
- package/dist/_node-chunks/{chunk-X52AL5YW.js → chunk-4WKJYHSS.js} +7 -7
- package/dist/_node-chunks/{chunk-MD57HJIM.js → chunk-5VYG646K.js} +7 -7
- package/dist/_node-chunks/chunk-A3KNZ5FW.js +18 -0
- package/dist/_node-chunks/{chunk-24QJCCAD.js → chunk-C4ROO6RE.js} +7 -7
- package/dist/_node-chunks/{chunk-UMPQ4E76.js → chunk-CWWI6A7W.js} +8 -8
- package/dist/_node-chunks/{chunk-V3HQ6KQZ.js → chunk-DPKZQ6YX.js} +7 -7
- package/dist/_node-chunks/{chunk-QJE3V7EA.js → chunk-EGWLH7SG.js} +10 -10
- package/dist/_node-chunks/{chunk-76Y6LEGH.js → chunk-F6NUZ463.js} +9 -9
- package/dist/_node-chunks/{chunk-QWKN7XKO.js → chunk-FYLSDVSH.js} +21 -21
- package/dist/_node-chunks/{chunk-WB52FWVJ.js → chunk-HUKSE3QZ.js} +7 -7
- package/dist/_node-chunks/{chunk-LL7YW7JI.js → chunk-IR6AN3RK.js} +8 -8
- package/dist/_node-chunks/{chunk-WRVTNG75.js → chunk-J5R55OCP.js} +7 -7
- package/dist/_node-chunks/{chunk-H6EU5XDR.js → chunk-JBW3FROT.js} +6 -6
- package/dist/_node-chunks/{chunk-QHZ7UVRT.js → chunk-JFMDUYER.js} +7 -7
- package/dist/_node-chunks/{chunk-ZTMF3ZLU.js → chunk-JVUHT63V.js} +8 -8
- package/dist/_node-chunks/{chunk-2JHMFGYJ.js → chunk-K373EZTP.js} +12 -12
- package/dist/_node-chunks/{chunk-5I4UHD7U.js → chunk-KVR64UU2.js} +529 -284
- package/dist/_node-chunks/chunk-NEOS45YA.js +61 -0
- package/dist/_node-chunks/{chunk-RDC6YPRK.js → chunk-OVJEF4RI.js} +9 -9
- package/dist/_node-chunks/{chunk-I3VS3SZG.js → chunk-PK3UILX6.js} +7 -7
- package/dist/_node-chunks/{chunk-63N4MMRO.js → chunk-QHYQ5G5G.js} +7 -7
- package/dist/_node-chunks/{chunk-R5RWAUHB.js → chunk-TKXE3RQ5.js} +12 -12
- package/dist/_node-chunks/{chunk-CEKA7D2C.js → chunk-UOLIYXDF.js} +7 -7
- package/dist/_node-chunks/{chunk-RCEDZ5SF.js → chunk-V4MKEKP7.js} +7 -7
- package/dist/_node-chunks/{chunk-ZA2S75S7.js → chunk-V7ZKSK5R.js} +7 -7
- package/dist/_node-chunks/{chunk-LX7DNOAF.js → chunk-VTD5TIUC.js} +8 -8
- package/dist/_node-chunks/{chunk-3QRUKHNZ.js → chunk-VWYF3SCI.js} +7 -7
- package/dist/_node-chunks/{chunk-RQQ26RE6.js → chunk-YUFML7ZZ.js} +7 -7
- package/dist/_node-chunks/{chunk-5Y7ADYYI.js → chunk-ZDZQHU26.js} +6 -6
- package/dist/_node-chunks/{dist-64XMYCKL.js → dist-SD7YZH5A.js} +9 -9
- package/dist/_node-chunks/{globby-VVSMFUOS.js → globby-FODEQLAP.js} +9 -9
- package/dist/_node-chunks/{lib-3737YTFI.js → lib-G6JECM5H.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-MMTNLXDP.js → mdx-N42X6CFJ-MK2KTUH7.js} +8 -8
- package/dist/_node-chunks/{p-limit-JUZ6J4TE.js → p-limit-IJ5D4B4L.js} +10 -7
- package/dist/_node-chunks/{plugin-53K4FV2S.js → plugin-NXD266M2.js} +10 -10
- package/dist/_node-chunks/{plugin-J57WYAS6.js → plugin-SAVMZDUL.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-TSBFN4GA.js → webpack-inject-mocker-runtime-plugin-2PG2OIHX.js} +30 -24
- package/dist/_node-chunks/{webpack-mock-plugin-FFF3YTJU.js → webpack-mock-plugin-CQH72GQV.js} +9 -9
- package/dist/babel/index.d.ts +671 -335
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +77 -82
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +394 -176
- package/dist/core-server/index.js +55 -44
- package/dist/core-server/presets/common-manager.js +238 -230
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +24 -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/index.js +3 -3
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +2 -2
- package/dist/manager/globals-runtime.js +4291 -4116
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +3 -3
- package/dist/node-logger/index.js +576 -531
- package/dist/preview/runtime.js +953 -891
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +3 -3
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +609 -547
- package/dist/theming/index.d.ts +3363 -2597
- package/package.json +2 -2
- package/dist/_node-chunks/camelcase-IT57EA7A.js +0 -18
- package/dist/_node-chunks/chunk-W3ZTHPZN.js +0 -18
- package/dist/_node-chunks/chunk-X5UKDYKW.js +0 -61
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.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
|
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-K373EZTP.js";
|
|
15
15
|
import {
|
|
16
16
|
require_pretty_hrtime
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-V7ZKSK5R.js";
|
|
18
18
|
import {
|
|
19
19
|
boxen,
|
|
20
20
|
require_string_width
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-VTD5TIUC.js";
|
|
22
|
+
import "../_node-chunks/chunk-2JVDNALC.js";
|
|
23
23
|
import {
|
|
24
24
|
StatusTypeIdMismatchError,
|
|
25
25
|
StorybookError
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-OVJEF4RI.js";
|
|
27
27
|
import {
|
|
28
28
|
getErrorLevel,
|
|
29
29
|
mapStaticDir,
|
|
@@ -31,61 +31,61 @@ import {
|
|
|
31
31
|
sendTelemetryError,
|
|
32
32
|
useStatics,
|
|
33
33
|
withTelemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-TKXE3RQ5.js";
|
|
35
|
+
import "../_node-chunks/chunk-DPKZQ6YX.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-4UOXOBHK.js";
|
|
39
|
+
import "../_node-chunks/chunk-A3KNZ5FW.js";
|
|
40
40
|
import {
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
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-FYLSDVSH.js";
|
|
43
|
+
import "../_node-chunks/chunk-V4MKEKP7.js";
|
|
44
|
+
import "../_node-chunks/chunk-NEOS45YA.js";
|
|
45
|
+
import "../_node-chunks/chunk-CWWI6A7W.js";
|
|
46
46
|
import {
|
|
47
47
|
optionalEnvToBoolean,
|
|
48
48
|
require_cross_spawn
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-F6NUZ463.js";
|
|
50
50
|
import {
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-C4ROO6RE.js";
|
|
53
|
+
import "../_node-chunks/chunk-5VYG646K.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-HUKSE3QZ.js";
|
|
57
57
|
import {
|
|
58
58
|
importModule,
|
|
59
59
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-425EMBPZ.js";
|
|
61
61
|
import {
|
|
62
62
|
join,
|
|
63
63
|
relative,
|
|
64
64
|
resolve
|
|
65
|
-
} from "../_node-chunks/chunk-
|
|
65
|
+
} from "../_node-chunks/chunk-J5R55OCP.js";
|
|
66
66
|
import {
|
|
67
67
|
require_prompts
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
69
|
-
import "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-VWYF3SCI.js";
|
|
69
|
+
import "../_node-chunks/chunk-EGWLH7SG.js";
|
|
70
70
|
import {
|
|
71
71
|
slash
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-QHYQ5G5G.js";
|
|
73
73
|
import {
|
|
74
74
|
require_dist
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-PK3UILX6.js";
|
|
76
76
|
import {
|
|
77
77
|
require_lib,
|
|
78
78
|
require_src
|
|
79
|
-
} from "../_node-chunks/chunk-
|
|
79
|
+
} from "../_node-chunks/chunk-UOLIYXDF.js";
|
|
80
80
|
import {
|
|
81
81
|
require_picocolors
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-4WKJYHSS.js";
|
|
83
83
|
import {
|
|
84
84
|
__commonJS,
|
|
85
85
|
__name,
|
|
86
86
|
__require,
|
|
87
87
|
__toESM
|
|
88
|
-
} from "../_node-chunks/chunk-
|
|
88
|
+
} from "../_node-chunks/chunk-JBW3FROT.js";
|
|
89
89
|
|
|
90
90
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
91
91
|
var require_filesystem = __commonJS({
|
|
@@ -8719,7 +8719,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8719
8719
|
}
|
|
8720
8720
|
const pathToSubIndex = {};
|
|
8721
8721
|
const fullGlob = slash(join2(specifier.directory, specifier.files));
|
|
8722
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8722
|
+
const { globby } = await import("../_node-chunks/globby-FODEQLAP.js");
|
|
8723
8723
|
const files = await globby(fullGlob, {
|
|
8724
8724
|
absolute: true,
|
|
8725
8725
|
cwd: workingDir,
|
|
@@ -8977,7 +8977,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8977
8977
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8978
8978
|
const importPath = slash(normalizedPath);
|
|
8979
8979
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8980
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8980
|
+
const { analyze } = await import("../_node-chunks/dist-SD7YZH5A.js");
|
|
8981
8981
|
const result = await analyze(content);
|
|
8982
8982
|
if (result.isTemplate) {
|
|
8983
8983
|
return false;
|
|
@@ -9320,7 +9320,7 @@ __name(print, "print");
|
|
|
9320
9320
|
// src/core-server/utils/get-builders.ts
|
|
9321
9321
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9322
9322
|
async function getManagerBuilder() {
|
|
9323
|
-
return await import("../_node-chunks/builder-manager-
|
|
9323
|
+
return await import("../_node-chunks/builder-manager-32BKVJNY.js");
|
|
9324
9324
|
}
|
|
9325
9325
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9326
9326
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9559,7 +9559,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9559
9559
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9560
9560
|
basename2(specifier.files)
|
|
9561
9561
|
);
|
|
9562
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9562
|
+
const { globby } = await import("../_node-chunks/globby-FODEQLAP.js");
|
|
9563
9563
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9564
9564
|
addedFiles.forEach((filePath) => {
|
|
9565
9565
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -11091,7 +11091,11 @@ async function defaultBrowserId() {
|
|
|
11091
11091
|
}
|
|
11092
11092
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
11093
11093
|
const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
|
|
11094
|
-
|
|
11094
|
+
const browserId = match?.groups.id ?? "com.apple.Safari";
|
|
11095
|
+
if (browserId === "com.apple.safari") {
|
|
11096
|
+
return "com.apple.Safari";
|
|
11097
|
+
}
|
|
11098
|
+
return browserId;
|
|
11095
11099
|
}
|
|
11096
11100
|
__name(defaultBrowserId, "defaultBrowserId");
|
|
11097
11101
|
|
|
@@ -11126,18 +11130,25 @@ import { promisify as promisify3 } from "node:util";
|
|
|
11126
11130
|
import { execFile as execFile3 } from "node:child_process";
|
|
11127
11131
|
var execFileAsync3 = promisify3(execFile3);
|
|
11128
11132
|
var windowsBrowserProgIds = {
|
|
11129
|
-
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
11130
|
-
MSEdgeDHTML: { name: "Edge", id: "com.microsoft.edge" },
|
|
11131
|
-
// On macOS, it's "com.microsoft.edgemac"
|
|
11132
11133
|
MSEdgeHTM: { name: "Edge", id: "com.microsoft.edge" },
|
|
11133
|
-
//
|
|
11134
|
-
|
|
11135
|
-
|
|
11134
|
+
// The missing `L` is correct.
|
|
11135
|
+
MSEdgeBHTML: { name: "Edge Beta", id: "com.microsoft.edge.beta" },
|
|
11136
|
+
MSEdgeDHTML: { name: "Edge Dev", id: "com.microsoft.edge.dev" },
|
|
11137
|
+
AppXq0fevzme2pys62n3e0fbqa7peapykr8v: { name: "Edge", id: "com.microsoft.edge.old" },
|
|
11136
11138
|
ChromeHTML: { name: "Chrome", id: "com.google.chrome" },
|
|
11139
|
+
ChromeBHTML: { name: "Chrome Beta", id: "com.google.chrome.beta" },
|
|
11140
|
+
ChromeDHTML: { name: "Chrome Dev", id: "com.google.chrome.dev" },
|
|
11141
|
+
ChromiumHTM: { name: "Chromium", id: "org.chromium.Chromium" },
|
|
11137
11142
|
BraveHTML: { name: "Brave", id: "com.brave.Browser" },
|
|
11138
11143
|
BraveBHTML: { name: "Brave Beta", id: "com.brave.Browser.beta" },
|
|
11139
|
-
|
|
11144
|
+
BraveDHTML: { name: "Brave Dev", id: "com.brave.Browser.dev" },
|
|
11145
|
+
BraveSSHTM: { name: "Brave Nightly", id: "com.brave.Browser.nightly" },
|
|
11146
|
+
FirefoxURL: { name: "Firefox", id: "org.mozilla.firefox" },
|
|
11147
|
+
OperaStable: { name: "Opera", id: "com.operasoftware.Opera" },
|
|
11148
|
+
VivaldiHTM: { name: "Vivaldi", id: "com.vivaldi.Vivaldi" },
|
|
11149
|
+
"IE.HTTP": { name: "Internet Explorer", id: "com.microsoft.ie" }
|
|
11140
11150
|
};
|
|
11151
|
+
var _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
|
|
11141
11152
|
var UnknownBrowserError = class extends Error {
|
|
11142
11153
|
static {
|
|
11143
11154
|
__name(this, "UnknownBrowserError");
|