storybook 10.1.2 → 10.1.4
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-4QKD5MM3.js → builder-manager-7ZU5KYAD.js} +12 -12
- package/dist/_node-chunks/{camelcase-IRQCWULJ.js → camelcase-YSJ5EORN.js} +7 -7
- package/dist/_node-chunks/{chunk-JTVV3ILI.js → chunk-2IIRK2OT.js} +6 -6
- package/dist/_node-chunks/chunk-4FAPWW5I.js +61 -0
- package/dist/_node-chunks/{chunk-RGS3LXAW.js → chunk-4X3VTYIW.js} +7 -7
- package/dist/_node-chunks/chunk-5UYX4ZF6.js +23 -0
- package/dist/_node-chunks/{chunk-U5ZVDYGC.js → chunk-6KX7N5UF.js} +13 -13
- package/dist/_node-chunks/{chunk-AKO6A5CQ.js → chunk-6O3OB2PO.js} +16 -16
- package/dist/_node-chunks/{chunk-ZYCQYU5P.js → chunk-76KIYDRU.js} +7 -7
- package/dist/_node-chunks/{chunk-4EINUCZX.js → chunk-7KESMTGS.js} +43 -27
- package/dist/_node-chunks/chunk-CMI5GRPA.js +18 -0
- package/dist/_node-chunks/{chunk-SKFB37NZ.js → chunk-COZFRL72.js} +7 -7
- package/dist/_node-chunks/{chunk-TTOU3O3G.js → chunk-DMPGFWI4.js} +10 -10
- package/dist/_node-chunks/{chunk-OUCADXTV.js → chunk-F2RDEFFH.js} +7 -7
- package/dist/_node-chunks/{chunk-TXYTWWZH.js → chunk-FMYFRXPU.js} +6 -6
- package/dist/_node-chunks/{chunk-QZH7V7G5.js → chunk-FY6IUM4S.js} +8 -8
- package/dist/_node-chunks/chunk-GVOXGNOU.js +20 -0
- package/dist/_node-chunks/{chunk-TPC5WFN2.js → chunk-J4VC4I2M.js} +6 -6
- package/dist/_node-chunks/{chunk-M5WCOOCM.js → chunk-LJRKMWYC.js} +6 -6
- package/dist/_node-chunks/{chunk-NHMTWL5A.js → chunk-MZL4HRPC.js} +7 -7
- package/dist/_node-chunks/{chunk-5K3HCA3T.js → chunk-N54KYQ6P.js} +6 -6
- package/dist/_node-chunks/{chunk-GKZHMXCG.js → chunk-Q6B5LJGA.js} +7 -7
- package/dist/_node-chunks/{chunk-GGJB53L3.js → chunk-QIY6TMKF.js} +7 -7
- package/dist/_node-chunks/{chunk-2ROLNOX5.js → chunk-QZJSO2TW.js} +39 -24
- package/dist/_node-chunks/{chunk-HIQU6BTN.js → chunk-RZ2YFNVH.js} +7 -7
- package/dist/_node-chunks/{chunk-TAK5JLJT.js → chunk-S3DQCJWT.js} +9 -9
- package/dist/_node-chunks/{chunk-3E6FUWUR.js → chunk-T5WYRHJT.js} +6 -6
- package/dist/_node-chunks/{chunk-U255RR5H.js → chunk-VBZIULNK.js} +6 -6
- package/dist/_node-chunks/{chunk-QTUMNOBG.js → chunk-VUIYVJKC.js} +12 -16
- package/dist/_node-chunks/{chunk-QXZ53NSP.js → chunk-W6O6RFMF.js} +9 -9
- package/dist/_node-chunks/{dist-YCWFOINJ.js → dist-NF4P7GPD.js} +9 -9
- package/dist/_node-chunks/{globby-DJRLVC5S.js → globby-54L4JJRV.js} +9 -9
- package/dist/_node-chunks/{lib-IAG3XT2U.js → lib-GX44WIWA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-QMOKL6WQ.js → mdx-N42X6CFJ-WJFAHXML.js} +8 -8
- package/dist/_node-chunks/{p-limit-5RGYVFOA.js → p-limit-QB7Q2I4D.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +9 -17
- package/dist/core-server/index.js +33 -33
- 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 +10 -18
- package/dist/manager/runtime.js +2 -1
- package/dist/manager-api/index.d.ts +178 -178
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +3 -3
- package/dist/node-logger/index.js +9 -9
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2SKUXRHZ.js +0 -23
- package/dist/_node-chunks/chunk-4ROB3WCB.js +0 -61
- package/dist/_node-chunks/chunk-HLP3H23G.js +0 -20
- package/dist/_node-chunks/chunk-NUXVDK4C.js +0 -18
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-F2RDEFFH.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-GVOXGNOU.js";
|
|
18
|
+
import "../../_node-chunks/chunk-J4VC4I2M.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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 "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-6O3OB2PO.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-6KX7N5UF.js";
|
|
18
|
+
import "../../_node-chunks/chunk-COZFRL72.js";
|
|
19
|
+
import "../../_node-chunks/chunk-5UYX4ZF6.js";
|
|
20
|
+
import "../../_node-chunks/chunk-LJRKMWYC.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-N54KYQ6P.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-S3DQCJWT.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-2IIRK2OT.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-Q6B5LJGA.js";
|
|
34
|
+
import "../../_node-chunks/chunk-FMYFRXPU.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-VBZIULNK.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-FY6IUM4S.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-76KIYDRU.js";
|
|
45
|
+
import "../../_node-chunks/chunk-W6O6RFMF.js";
|
|
46
|
+
import "../../_node-chunks/chunk-MZL4HRPC.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-RZ2YFNVH.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-J4VC4I2M.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-YSJ5EORN.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-54L4JJRV.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yr66iw5gef from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yr66iw5gef from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yr66iw5gef from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yr66iw5gef.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yr66iw5gef.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yr66iw5gef.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-FY6IUM4S.js";
|
|
42
|
+
import "../_node-chunks/chunk-76KIYDRU.js";
|
|
43
|
+
import "../_node-chunks/chunk-J4VC4I2M.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -59891,7 +59891,7 @@ init_dist();
|
|
|
59891
59891
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
59892
59892
|
|
|
59893
59893
|
// src/manager-api/version.ts
|
|
59894
|
-
var version = "10.1.
|
|
59894
|
+
var version = "10.1.4";
|
|
59895
59895
|
|
|
59896
59896
|
// src/manager-api/modules/versions.ts
|
|
59897
59897
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -67755,7 +67755,7 @@ var TooltipProvider = ({
|
|
|
67755
67755
|
placement,
|
|
67756
67756
|
offset: offset3,
|
|
67757
67757
|
onOpenChange,
|
|
67758
|
-
style: {
|
|
67758
|
+
style: { outline: "none" },
|
|
67759
67759
|
...props
|
|
67760
67760
|
},
|
|
67761
67761
|
tooltip
|
|
@@ -73412,24 +73412,16 @@ var PopoverProvider = ({
|
|
|
73412
73412
|
...props
|
|
73413
73413
|
},
|
|
73414
73414
|
import_react156.default.createElement($3b117e43dc0ca95d$export$27c701ed9e449e99, null, children),
|
|
73415
|
-
import_react156.default.createElement(
|
|
73416
|
-
|
|
73415
|
+
import_react156.default.createElement($07b14b47974efb58$export$5b6b19405a83ff9d, { placement, offset: offset3, style: { outline: "none" } }, import_react156.default.createElement(
|
|
73416
|
+
Popover,
|
|
73417
73417
|
{
|
|
73418
|
-
|
|
73419
|
-
|
|
73420
|
-
|
|
73418
|
+
hasChrome,
|
|
73419
|
+
hideLabel: closeLabel,
|
|
73420
|
+
onHide: hasCloseButton ? onHide : void 0,
|
|
73421
|
+
padding
|
|
73421
73422
|
},
|
|
73422
|
-
|
|
73423
|
-
|
|
73424
|
-
{
|
|
73425
|
-
hasChrome,
|
|
73426
|
-
hideLabel: closeLabel,
|
|
73427
|
-
onHide: hasCloseButton ? onHide : void 0,
|
|
73428
|
-
padding
|
|
73429
|
-
},
|
|
73430
|
-
typeof popover == "function" ? popover({ onHide }) : popover
|
|
73431
|
-
)
|
|
73432
|
-
)
|
|
73423
|
+
typeof popover == "function" ? popover({ onHide }) : popover
|
|
73424
|
+
))
|
|
73433
73425
|
);
|
|
73434
73426
|
};
|
|
73435
73427
|
|
package/dist/manager/runtime.js
CHANGED
|
@@ -18244,7 +18244,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18244
18244
|
if (!(count === 0 && type === "built-in"))
|
|
18245
18245
|
return {
|
|
18246
18246
|
id: `filter-${type}-${id}`,
|
|
18247
|
-
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18247
|
+
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", ariaLabel: !1, tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18248
18248
|
Form.Checkbox,
|
|
18249
18249
|
{
|
|
18250
18250
|
checked: isChecked,
|
|
@@ -18299,6 +18299,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18299
18299
|
))), links.map((group) => react_default.createElement(ActionList, { key: group.map((link) => link.id).join("_") }, group.map((link) => react_default.createElement(Fragment, { key: link.id }, link.content)))), !hasUserTags && react_default.createElement(ActionList, { as: "div" }, react_default.createElement(ActionList.Item, { as: "div" }, react_default.createElement(
|
|
18300
18300
|
ActionList.Link,
|
|
18301
18301
|
{
|
|
18302
|
+
ariaLabel: !1,
|
|
18302
18303
|
href: api.getDocsUrl({ subpath: "writing-stories/tags#custom-tags" }),
|
|
18303
18304
|
target: "_blank"
|
|
18304
18305
|
},
|