storybook 10.1.0-alpha.4 → 10.1.0-alpha.6
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-C4XOKMDU.js → chunk-OWPZQM2D.js} +6 -3
- package/dist/_node-chunks/{builder-manager-P652CU5Z.js → builder-manager-4Y2YSIPW.js} +13 -12
- package/dist/_node-chunks/camelcase-7J2COMOT.js +18 -0
- package/dist/_node-chunks/{chunk-CPI4IKLK.js → chunk-2GIFXVC4.js} +8 -8
- package/dist/_node-chunks/{chunk-3GTBPTCZ.js → chunk-2JPFOR3T.js} +7 -7
- package/dist/_node-chunks/chunk-2MV47RQG.js +18 -0
- package/dist/_node-chunks/{chunk-VAAX75EL.js → chunk-2PA7ALFR.js} +6 -6
- package/dist/_node-chunks/{chunk-K3K6H2BF.js → chunk-2QODTQMA.js} +12 -12
- package/dist/_node-chunks/{chunk-7332Y23R.js → chunk-6M47KNXU.js} +21 -21
- package/dist/_node-chunks/{chunk-YXC7LAMZ.js → chunk-73E3BSGB.js} +10 -10
- package/dist/_node-chunks/{chunk-5NGUGC3U.js → chunk-BMSQUFC4.js} +7 -7
- package/dist/_node-chunks/{chunk-T6VOUSIY.js → chunk-BSRP37ZH.js} +7 -7
- package/dist/_node-chunks/{chunk-PCXGFAQ3.js → chunk-DGWROD3G.js} +7 -7
- package/dist/_node-chunks/{chunk-ICT62CX5.js → chunk-EODHDRA5.js} +7 -7
- package/dist/_node-chunks/{chunk-BHHNQ5GJ.js → chunk-FKGF6ITX.js} +8 -8
- package/dist/_node-chunks/{chunk-FU2KCZJG.js → chunk-FLSQPXU7.js} +9 -9
- package/dist/_node-chunks/{chunk-TXDBGO2X.js → chunk-GMTXZHSX.js} +9 -9
- package/dist/_node-chunks/{chunk-PW7ECOTU.js → chunk-I4MAF66B.js} +12 -12
- package/dist/_node-chunks/{chunk-FMLH3V5B.js → chunk-IG32POZU.js} +7 -7
- package/dist/_node-chunks/{chunk-RFAREF3S.js → chunk-IGCPOP7P.js} +8 -8
- package/dist/_node-chunks/{chunk-TFBHPN6J.js → chunk-JZ6WDXSQ.js} +7 -7
- package/dist/_node-chunks/{chunk-GDOIF7E6.js → chunk-K7LHF7XM.js} +7 -7
- package/dist/_node-chunks/{chunk-LPBJHVNR.js → chunk-L7DZWHIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-XPBE544K.js → chunk-LN3RAVBT.js} +7 -7
- package/dist/_node-chunks/{chunk-5A6EYMRK.js → chunk-LXJN6HD5.js} +6 -6
- package/dist/_node-chunks/{chunk-6VWT3H7R.js → chunk-NMODMOV3.js} +7 -7
- package/dist/_node-chunks/{chunk-5E5YDTCQ.js → chunk-OJHCBUIJ.js} +7 -7
- package/dist/_node-chunks/chunk-P5K4MIO6.js +61 -0
- package/dist/_node-chunks/{chunk-JS5I7ZY6.js → chunk-QEKEGG4O.js} +7 -7
- package/dist/_node-chunks/{chunk-CAKHJEH6.js → chunk-RK7WZNGM.js} +7 -7
- package/dist/_node-chunks/{chunk-7C52H6S6.js → chunk-S5NQP3UV.js} +7 -7
- package/dist/_node-chunks/{chunk-6DHXOOK2.js → chunk-SKHZEW4I.js} +7 -7
- package/dist/_node-chunks/{chunk-HPERTMWB.js → chunk-T4JC2WMT.js} +7 -7
- package/dist/_node-chunks/{chunk-OXPHRY7P.js → chunk-VXGTPNNJ.js} +15 -15
- package/dist/_node-chunks/{chunk-7NSBLADO.js → chunk-XP2QMRCI.js} +8 -8
- package/dist/_node-chunks/{chunk-XCTASIYK.js → chunk-YECNY3VQ.js} +8 -8
- package/dist/_node-chunks/{dist-MCOAOC3B.js → dist-HVPX5JGD.js} +9 -9
- package/dist/_node-chunks/{globby-L3NPKIS7.js → globby-2KLGD77O.js} +9 -9
- package/dist/_node-chunks/{lib-ITTSFFC5.js → lib-3NW5U4UV.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-YP4YCIZM.js → mdx-N42X6CFJ-OFGISESF.js} +8 -8
- package/dist/_node-chunks/{p-limit-TTLWUU6D.js → p-limit-NGQN54RD.js} +7 -7
- package/dist/_node-chunks/{plugin-C2OCVZYN.js → plugin-JE2G5EZW.js} +10 -10
- package/dist/_node-chunks/{plugin-OC5KWEJQ.js → plugin-PSA3WX3C.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-IRAPT6HV.js → webpack-inject-mocker-runtime-plugin-6POQ6SFS.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-CFITLD44.js → webpack-mock-plugin-C27JX3C4.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 +21 -21
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +255 -209
- 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/index.js +11 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +9 -5
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +19 -19
- package/dist/preview/runtime.js +11 -4
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/theming/create.d.ts +3 -2
- package/dist/theming/create.js +1 -1
- package/dist/theming/index.d.ts +5 -3
- package/dist/theming/index.js +2 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-VADCJSEY.js +0 -18
- package/dist/_node-chunks/chunk-3OPGVNKX.js +0 -18
- package/dist/_node-chunks/chunk-VCC35ZLQ.js +0 -61
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-RK7WZNGM.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-S5NQP3UV.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-2PA7ALFR.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_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,38 +12,38 @@ var require = CJS_COMPAT_NODE_MODULE_1ale42sn21.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-2QODTQMA.js";
|
|
16
|
+
import "../../_node-chunks/chunk-L7DZWHIJ.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-EODHDRA5.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-2JPFOR3T.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-2GIFXVC4.js";
|
|
27
27
|
import {
|
|
28
28
|
isAbsolute,
|
|
29
29
|
join
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
31
|
-
import "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-JZ6WDXSQ.js";
|
|
31
|
+
import "../../_node-chunks/chunk-NMODMOV3.js";
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-FKGF6ITX.js";
|
|
35
35
|
import {
|
|
36
36
|
require_dist
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-T4JC2WMT.js";
|
|
38
38
|
import {
|
|
39
39
|
require_picocolors
|
|
40
|
-
} from "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-SKHZEW4I.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__require,
|
|
45
45
|
__toESM
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-2PA7ALFR.js";
|
|
47
47
|
|
|
48
48
|
// ../node_modules/shell-quote/quote.js
|
|
49
49
|
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-7J2COMOT.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-2KLGD77O.js");
|
|
1054
1054
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1055
1055
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1056
1056
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1833,8 +1833,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1833
1833
|
if (!previewConfigPath) {
|
|
1834
1834
|
return existing;
|
|
1835
1835
|
}
|
|
1836
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1837
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1836
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-JE2G5EZW.js");
|
|
1837
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-PSA3WX3C.js");
|
|
1838
1838
|
const coreOptions = await options.presets.apply("core");
|
|
1839
1839
|
return {
|
|
1840
1840
|
...existing,
|
|
@@ -1852,8 +1852,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1852
1852
|
if (!previewConfigPath) {
|
|
1853
1853
|
return config;
|
|
1854
1854
|
}
|
|
1855
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1856
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1855
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-C27JX3C4.js");
|
|
1856
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-6POQ6SFS.js");
|
|
1857
1857
|
config.plugins = config.plugins || [];
|
|
1858
1858
|
config.module.rules.push({
|
|
1859
1859
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-XP2QMRCI.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-JZ6WDXSQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-2PA7ALFR.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_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-LN3RAVBT.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-XP2QMRCI.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-JZ6WDXSQ.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-2PA7ALFR.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf/index.js
CHANGED
|
@@ -2341,20 +2341,27 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
2341
2341
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
2342
2342
|
configurable: true
|
|
2343
2343
|
});
|
|
2344
|
-
let currentFocus = HTMLElement.prototype.focus;
|
|
2345
2344
|
if (!patchedFocus) {
|
|
2345
|
+
const originalFocus = HTMLElement.prototype.focus;
|
|
2346
|
+
let currentFocus = HTMLElement.prototype.focus;
|
|
2347
|
+
const focusingElements = /* @__PURE__ */ new Set();
|
|
2346
2348
|
Object.defineProperties(HTMLElement.prototype, {
|
|
2347
2349
|
focus: {
|
|
2348
2350
|
configurable: true,
|
|
2349
2351
|
set: /* @__PURE__ */ __name((newFocus) => {
|
|
2350
2352
|
currentFocus = newFocus;
|
|
2351
|
-
patchedFocus = true;
|
|
2352
2353
|
}, "set"),
|
|
2353
|
-
get
|
|
2354
|
+
get() {
|
|
2355
|
+
if (focusingElements.has(this)) {
|
|
2356
|
+
return originalFocus;
|
|
2357
|
+
}
|
|
2358
|
+
focusingElements.add(this);
|
|
2359
|
+
setTimeout(() => focusingElements.delete(this), 0);
|
|
2354
2360
|
return currentFocus;
|
|
2355
|
-
}
|
|
2361
|
+
}
|
|
2356
2362
|
}
|
|
2357
2363
|
});
|
|
2364
|
+
patchedFocus = true;
|
|
2358
2365
|
}
|
|
2359
2366
|
}
|
|
2360
2367
|
}, "enhanceContext");
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-FKGF6ITX.js";
|
|
42
|
+
import "../_node-chunks/chunk-T4JC2WMT.js";
|
|
43
|
+
import "../_node-chunks/chunk-2PA7ALFR.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -11376,19 +11376,22 @@ __export(create_exports, {
|
|
|
11376
11376
|
create: () => create,
|
|
11377
11377
|
themes: () => themes
|
|
11378
11378
|
});
|
|
11379
|
-
var
|
|
11379
|
+
var themesBase, preferredColorScheme, themes, create;
|
|
11380
11380
|
var init_create = __esm({
|
|
11381
11381
|
"src/theming/create.ts"() {
|
|
11382
11382
|
"use strict";
|
|
11383
11383
|
init_dark();
|
|
11384
11384
|
init_light();
|
|
11385
11385
|
init_utils();
|
|
11386
|
-
|
|
11386
|
+
themesBase = {
|
|
11387
11387
|
light: light_default,
|
|
11388
|
-
dark: dark_default
|
|
11389
|
-
normal: light_default
|
|
11388
|
+
dark: dark_default
|
|
11390
11389
|
};
|
|
11391
11390
|
preferredColorScheme = getPreferredColorScheme();
|
|
11391
|
+
themes = {
|
|
11392
|
+
...themesBase,
|
|
11393
|
+
normal: themesBase[preferredColorScheme]
|
|
11394
|
+
};
|
|
11392
11395
|
create = /* @__PURE__ */ __name((vars = { base: preferredColorScheme }, rest) => {
|
|
11393
11396
|
const inherit = {
|
|
11394
11397
|
...themes[preferredColorScheme],
|
|
@@ -11915,6 +11918,7 @@ __export(theming_exports, {
|
|
|
11915
11918
|
css: () => css,
|
|
11916
11919
|
darken: () => darkenColor,
|
|
11917
11920
|
ensure: () => ensure,
|
|
11921
|
+
getPreferredColorScheme: () => getPreferredColorScheme,
|
|
11918
11922
|
ignoreSsrWarning: () => ignoreSsrWarning,
|
|
11919
11923
|
isPropValid: () => isPropValid,
|
|
11920
11924
|
jsx: () => jsx,
|
|
@@ -82703,7 +82707,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
82703
82707
|
var import_semver = __toESM(require_semver2(), 1);
|
|
82704
82708
|
|
|
82705
82709
|
// src/manager-api/version.ts
|
|
82706
|
-
var version = "10.1.0-alpha.
|
|
82710
|
+
var version = "10.1.0-alpha.6";
|
|
82707
82711
|
|
|
82708
82712
|
// src/manager-api/modules/versions.ts
|
|
82709
82713
|
var { VERSIONCHECK } = scope;
|
package/dist/manager/runtime.js
CHANGED
|
@@ -2740,7 +2740,7 @@ var { ActiveTabs, Consumer, ManagerContext, Provider, RequestResponseError, addo
|
|
|
2740
2740
|
|
|
2741
2741
|
// global-externals:storybook/theming
|
|
2742
2742
|
var theming_default = __STORYBOOK_THEMING__;
|
|
2743
|
-
var { CacheProvider, ClassNames, Global, ThemeProvider, background, color, convert, create, createCache, createGlobal, createReset, css, darken, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, lighten, styled, themes, typography, useTheme, withTheme } = __STORYBOOK_THEMING__;
|
|
2743
|
+
var { CacheProvider, ClassNames, Global, ThemeProvider, background, color, convert, create, createCache, createGlobal, createReset, css, darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lighten, styled, themes, typography, useTheme, withTheme } = __STORYBOOK_THEMING__;
|
|
2744
2744
|
|
|
2745
2745
|
// global-externals:storybook/internal/components
|
|
2746
2746
|
var components_default = __STORYBOOK_COMPONENTS__;
|
|
@@ -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.1.0-alpha.
|
|
3265
|
+
var version = "10.1.0-alpha.6";
|
|
3266
3266
|
|
|
3267
3267
|
// src/manager-api/modules/versions.ts
|
|
3268
3268
|
var { VERSIONCHECK } = global8;
|
|
@@ -473,7 +473,7 @@ declare const logger: {
|
|
|
473
473
|
time: [number, number];
|
|
474
474
|
}) => void;
|
|
475
475
|
setLevel: (level?: LogLevel) => void;
|
|
476
|
-
error: (message:
|
|
476
|
+
error: (message: unknown) => void;
|
|
477
477
|
setLogLevel: (level: LogLevel) => void;
|
|
478
478
|
getLogLevel: () => LogLevel;
|
|
479
479
|
shouldLog: (level: LogLevel) => boolean;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-OJHCBUIJ.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-IGCPOP7P.js";
|
|
21
|
+
import "../_node-chunks/chunk-QEKEGG4O.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-GMTXZHSX.js";
|
|
26
|
+
import "../_node-chunks/chunk-DGWROD3G.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-NMODMOV3.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-SKHZEW4I.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-2PA7ALFR.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|
|
@@ -4452,13 +4452,13 @@ var logger = {
|
|
|
4452
4452
|
error: /* @__PURE__ */ __name((message) => {
|
|
4453
4453
|
let msg;
|
|
4454
4454
|
if (message instanceof Error && message.stack) {
|
|
4455
|
-
msg = message.stack.toString();
|
|
4456
|
-
} else {
|
|
4455
|
+
msg = message.stack.toString().replace(message.toString(), colors.red(message.toString()));
|
|
4456
|
+
} else if (typeof message === "string") {
|
|
4457
4457
|
msg = message.toString();
|
|
4458
|
+
} else {
|
|
4459
|
+
msg = String(message);
|
|
4458
4460
|
}
|
|
4459
|
-
error(
|
|
4460
|
-
msg.replace(message.toString(), colors.red(message.toString())).replaceAll(process.cwd(), ".")
|
|
4461
|
-
);
|
|
4461
|
+
error(msg.replaceAll(process.cwd(), "."));
|
|
4462
4462
|
}, "error")
|
|
4463
4463
|
};
|
|
4464
4464
|
var logged = /* @__PURE__ */ new Set();
|
package/dist/preview/runtime.js
CHANGED
|
@@ -42370,20 +42370,27 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
42370
42370
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
42371
42371
|
configurable: true
|
|
42372
42372
|
});
|
|
42373
|
-
let currentFocus = HTMLElement.prototype.focus;
|
|
42374
42373
|
if (!patchedFocus) {
|
|
42374
|
+
const originalFocus = HTMLElement.prototype.focus;
|
|
42375
|
+
let currentFocus = HTMLElement.prototype.focus;
|
|
42376
|
+
const focusingElements = /* @__PURE__ */ new Set();
|
|
42375
42377
|
Object.defineProperties(HTMLElement.prototype, {
|
|
42376
42378
|
focus: {
|
|
42377
42379
|
configurable: true,
|
|
42378
42380
|
set: /* @__PURE__ */ __name((newFocus) => {
|
|
42379
42381
|
currentFocus = newFocus;
|
|
42380
|
-
patchedFocus = true;
|
|
42381
42382
|
}, "set"),
|
|
42382
|
-
get
|
|
42383
|
+
get() {
|
|
42384
|
+
if (focusingElements.has(this)) {
|
|
42385
|
+
return originalFocus;
|
|
42386
|
+
}
|
|
42387
|
+
focusingElements.add(this);
|
|
42388
|
+
setTimeout(() => focusingElements.delete(this), 0);
|
|
42383
42389
|
return currentFocus;
|
|
42384
|
-
}
|
|
42390
|
+
}
|
|
42385
42391
|
}
|
|
42386
42392
|
});
|
|
42393
|
+
patchedFocus = true;
|
|
42387
42394
|
}
|
|
42388
42395
|
}
|
|
42389
42396
|
}, "enhanceContext");
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.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-FLSQPXU7.js";
|
|
43
|
+
import "./_node-chunks/chunk-T4JC2WMT.js";
|
|
44
|
+
import "./_node-chunks/chunk-SKHZEW4I.js";
|
|
45
|
+
import "./_node-chunks/chunk-2PA7ALFR.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9cfcz8nfzvs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9cfcz8nfzvs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9cfcz8nfzvs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9cfcz8nfzvs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9cfcz8nfzvs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,26 +21,26 @@ import {
|
|
|
21
21
|
sanitizeAddonName,
|
|
22
22
|
sanitizeError,
|
|
23
23
|
telemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-VXGTPNNJ.js";
|
|
25
|
+
import "../_node-chunks/chunk-2MV47RQG.js";
|
|
26
|
+
import "../_node-chunks/chunk-6M47KNXU.js";
|
|
27
|
+
import "../_node-chunks/chunk-BSRP37ZH.js";
|
|
28
|
+
import "../_node-chunks/chunk-P5K4MIO6.js";
|
|
29
|
+
import "../_node-chunks/chunk-YECNY3VQ.js";
|
|
30
|
+
import "../_node-chunks/chunk-GMTXZHSX.js";
|
|
31
|
+
import "../_node-chunks/chunk-DGWROD3G.js";
|
|
32
32
|
import {
|
|
33
33
|
getPrecedingUpgrade
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-EODHDRA5.js";
|
|
35
|
+
import "../_node-chunks/chunk-2JPFOR3T.js";
|
|
36
|
+
import "../_node-chunks/chunk-2GIFXVC4.js";
|
|
37
|
+
import "../_node-chunks/chunk-JZ6WDXSQ.js";
|
|
38
|
+
import "../_node-chunks/chunk-NMODMOV3.js";
|
|
39
|
+
import "../_node-chunks/chunk-RK7WZNGM.js";
|
|
40
|
+
import "../_node-chunks/chunk-S5NQP3UV.js";
|
|
41
|
+
import "../_node-chunks/chunk-T4JC2WMT.js";
|
|
42
|
+
import "../_node-chunks/chunk-SKHZEW4I.js";
|
|
43
|
+
import "../_node-chunks/chunk-2PA7ALFR.js";
|
|
44
44
|
export {
|
|
45
45
|
addToGlobalContext,
|
|
46
46
|
cleanPaths,
|
package/dist/theming/create.d.ts
CHANGED
|
@@ -37,11 +37,12 @@ interface ThemeVarsColors {
|
|
|
37
37
|
gridCellSize?: number;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
interface Themes {
|
|
41
41
|
light: ThemeVars;
|
|
42
42
|
dark: ThemeVars;
|
|
43
43
|
normal: ThemeVars;
|
|
44
|
-
}
|
|
44
|
+
}
|
|
45
|
+
declare const themes: Themes;
|
|
45
46
|
interface Rest {
|
|
46
47
|
[key: string]: any;
|
|
47
48
|
}
|
package/dist/theming/create.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create,
|
|
3
3
|
themes
|
|
4
|
-
} from "../_browser-chunks/chunk-
|
|
4
|
+
} from "../_browser-chunks/chunk-OWPZQM2D.js";
|
|
5
5
|
import "../_browser-chunks/chunk-OBXWFEPB.js";
|
|
6
6
|
import "../_browser-chunks/chunk-MH6AXFXB.js";
|
|
7
7
|
import "../_browser-chunks/chunk-MM7DTO55.js";
|
package/dist/theming/index.d.ts
CHANGED
|
@@ -11907,11 +11907,12 @@ declare const createGlobal: ({ color, background, typography, }: {
|
|
|
11907
11907
|
typography: Typography;
|
|
11908
11908
|
}) => Return;
|
|
11909
11909
|
|
|
11910
|
-
|
|
11910
|
+
interface Themes {
|
|
11911
11911
|
light: ThemeVars;
|
|
11912
11912
|
dark: ThemeVars;
|
|
11913
11913
|
normal: ThemeVars;
|
|
11914
|
-
}
|
|
11914
|
+
}
|
|
11915
|
+
declare const themes: Themes;
|
|
11915
11916
|
interface Rest {
|
|
11916
11917
|
[key: string]: any;
|
|
11917
11918
|
}
|
|
@@ -11923,6 +11924,7 @@ declare const ensure: (input: ThemeVars) => StorybookTheme;
|
|
|
11923
11924
|
|
|
11924
11925
|
declare const lightenColor: (color: string) => string;
|
|
11925
11926
|
declare const darkenColor: (color: string) => string;
|
|
11927
|
+
declare const getPreferredColorScheme: () => "light" | "dark";
|
|
11926
11928
|
|
|
11927
11929
|
type FunctionInterpolationEnhanced<T = {}> = FunctionInterpolation<T & {
|
|
11928
11930
|
theme: StorybookTheme;
|
|
@@ -11933,7 +11935,7 @@ type InterpolationEnhanced<T = {}> = Interpolation<T & {
|
|
|
11933
11935
|
|
|
11934
11936
|
declare const ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";
|
|
11935
11937
|
|
|
11936
|
-
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, typography, useTheme, withTheme };
|
|
11938
|
+
export { type Animation, type Background, type Brand, type CSSObject, CacheProvider, ClassNames, type Color, type Easing, type FunctionInterpolationEnhanced as FunctionInterpolation, Global, type InterpolationEnhanced as Interpolation, type Keyframes$1 as Keyframes, type StorybookTheme, type StyledComponent, type TextSize, ThemeProvider, type ThemeVars, type ThemeVarsColors, type ThemeVarsPartial, type Typography, background, color, convert, create, createCache, createGlobal, createReset, css, darkenColor as darken, ensure, getPreferredColorScheme, ignoreSsrWarning, isPropValid, jsx, keyframes, lightenColor as lighten, styled, themes, typography, useTheme, withTheme };
|
|
11937
11939
|
|
|
11938
11940
|
|
|
11939
11941
|
interface Theme extends StorybookTheme {}
|
package/dist/theming/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
mkColor,
|
|
10
10
|
themes,
|
|
11
11
|
typography
|
|
12
|
-
} from "../_browser-chunks/chunk-
|
|
12
|
+
} from "../_browser-chunks/chunk-OWPZQM2D.js";
|
|
13
13
|
import {
|
|
14
14
|
curriedOpacify$1
|
|
15
15
|
} from "../_browser-chunks/chunk-OBXWFEPB.js";
|
|
@@ -2699,6 +2699,7 @@ export {
|
|
|
2699
2699
|
css,
|
|
2700
2700
|
darkenColor as darken,
|
|
2701
2701
|
ensure,
|
|
2702
|
+
getPreferredColorScheme,
|
|
2702
2703
|
ignoreSsrWarning,
|
|
2703
2704
|
isPropValid,
|
|
2704
2705
|
jsx,
|