@storybook/svelte 11.0.0-beta.1 → 11.0.0-beta.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/_browser-chunks/{chunk-SLNVXRXZ.js → chunk-D3HHTIN7.js} +5 -18
- package/dist/_browser-chunks/chunk-QPNLWHUT.js +84 -0
- package/dist/_node-chunks/{build-docgen-N3H7WY5Y.js → build-docgen-TQ6645JH.js} +10 -10
- package/dist/_node-chunks/{chunk-ZZ6YLTQN.js → chunk-5XOL5BKO.js} +6 -6
- package/dist/_node-chunks/{chunk-Z3GMEEYK.js → chunk-BQ2RIMP3.js} +8 -8
- package/dist/_node-chunks/{chunk-SUST2I22.js → chunk-BUMY5Y7X.js} +8 -8
- package/dist/_node-chunks/{chunk-BHACKENJ.js → chunk-J4TCM6ZP.js} +6 -6
- package/dist/_node-chunks/{chunk-KTJYHSDK.js → chunk-JCULIFGX.js} +7 -8
- package/dist/_node-chunks/{chunk-O2XZFQTE.js → chunk-QN3DI6BM.js} +8 -8
- package/dist/_node-chunks/{chunk-ELPMU4JK.js → chunk-RUGG3JY2.js} +6 -6
- package/dist/_node-chunks/{parsers-J2VH6MOH.js → parsers-KP7MPNO3.js} +6 -6
- package/dist/_node-chunks/{svelte-project-manager-NQA46LSQ.js → svelte-project-manager-OOWETREX.js} +7 -7
- package/dist/_node-chunks/walk-FGYTHLP6.js +17 -0
- package/dist/docgen/component-docgen/svelte2tsx/generate-docgen.js +7 -7
- package/dist/docgen/docgen-worker.js +9 -9
- package/dist/entry-preview-docs.js +6 -3
- package/dist/index.js +2 -1
- package/dist/preset.js +234 -155
- package/dist/svelte-csf/addon-check.js +6 -6
- package/dist/svelte-csf/compiler/transform.d.ts +1 -32
- package/dist/svelte-csf/compiler/transform.js +799 -299
- package/dist/svelte-csf/indexer/index.js +8 -8
- package/dist/svelte-csf/runtime/component-helpers.js +10 -13
- package/package.json +4 -10
- package/dist/_node-chunks/walk-6OEIONKD.js +0 -17
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__export
|
|
3
|
-
} from "./chunk-4BE7D4DS.js";
|
|
4
|
-
|
|
5
|
-
// src/entry-preview-docs.ts
|
|
6
|
-
var entry_preview_docs_exports = {};
|
|
7
|
-
__export(entry_preview_docs_exports, {
|
|
8
|
-
decorators: () => decorators
|
|
9
|
-
});
|
|
10
|
-
|
|
11
1
|
// src/docs/sourceDecorator.ts
|
|
12
2
|
import { SourceType } from "storybook/internal/docs-tools";
|
|
13
3
|
import { emitTransformCode, useEffect, useRef } from "storybook/preview-api";
|
|
14
4
|
var skipSourceRender = (context) => {
|
|
15
|
-
let sourceParams = context
|
|
16
|
-
return
|
|
5
|
+
let sourceParams = context.parameters.docs?.source, isArgsStory = context.parameters.__isArgsStory;
|
|
6
|
+
return sourceParams?.type === SourceType.DYNAMIC ? !1 : !isArgsStory || sourceParams?.code || sourceParams?.type === SourceType.CODE;
|
|
17
7
|
};
|
|
18
8
|
function toSvelteProperty(key, value, argTypes) {
|
|
19
9
|
if (value == null)
|
|
@@ -45,7 +35,7 @@ function getWrapperProperties(component) {
|
|
|
45
35
|
)?.name } : { wrapper: !1 } : { wrapper: !1 };
|
|
46
36
|
}
|
|
47
37
|
var sourceDecorator = (storyFn, context) => {
|
|
48
|
-
let skip = skipSourceRender(context), story = storyFn(), source = useRef(void 0);
|
|
38
|
+
let skip = context.tags.some((tag) => tag.startsWith("svelte-csf")) || skipSourceRender(context), story = storyFn(), source = useRef(void 0);
|
|
49
39
|
return useEffect(() => {
|
|
50
40
|
if (skip)
|
|
51
41
|
return;
|
|
@@ -59,10 +49,7 @@ var sourceDecorator = (storyFn, context) => {
|
|
|
59
49
|
}), story;
|
|
60
50
|
};
|
|
61
51
|
|
|
62
|
-
// src/entry-preview-docs.ts
|
|
63
|
-
var decorators = globalThis.FEATURES?.docgenServer ? [] : [sourceDecorator];
|
|
64
|
-
|
|
65
52
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
skipSourceRender,
|
|
54
|
+
sourceDecorator
|
|
68
55
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sourceDecorator
|
|
3
|
+
} from "./chunk-D3HHTIN7.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-4BE7D4DS.js";
|
|
7
|
+
|
|
8
|
+
// src/entry-preview-docs.ts
|
|
9
|
+
var entry_preview_docs_exports = {};
|
|
10
|
+
__export(entry_preview_docs_exports, {
|
|
11
|
+
decorators: () => decorators,
|
|
12
|
+
parameters: () => parameters
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// src/docs/print-hole.ts
|
|
16
|
+
import { printValue, unknownHoleKind } from "storybook/internal/docs-tools";
|
|
17
|
+
|
|
18
|
+
// src/snippet-values.ts
|
|
19
|
+
var isPlain = (value) => !/[{}<>"\\&\r\n\t]/.test(value), escapeAttribute = (value) => value.replaceAll("&", "&").replaceAll('"', """).replaceAll("'", "'");
|
|
20
|
+
function printProp(name, value) {
|
|
21
|
+
return value === void 0 ? "" : value === !0 ? name : value.string !== void 0 && isPlain(value.string) ? `${name}="${value.string}"` : `${name}={${value.code}}`;
|
|
22
|
+
}
|
|
23
|
+
var printAccessors = (keys) => keys.map((key) => /^[A-Za-z_$][\w$]*$/.test(key) ? `.${key}` : `[${JSON.stringify(key)}]`).join("");
|
|
24
|
+
function printWholeRead(place, arg, read, string) {
|
|
25
|
+
let text = string?.trim() ? string : void 0, code = `${place.before}${read}${place.after}`;
|
|
26
|
+
switch (place.kind) {
|
|
27
|
+
case "attrvalue":
|
|
28
|
+
return text !== void 0 && isPlain(text) ? `${place.name ?? arg}="${text}"` : code;
|
|
29
|
+
case "quoted":
|
|
30
|
+
return text !== void 0 && !/[{}]/.test(text) ? escapeAttribute(text) : code;
|
|
31
|
+
case "fragment":
|
|
32
|
+
return text !== void 0 && !/[{}<>"\\&]/.test(text) ? text : code;
|
|
33
|
+
case "code":
|
|
34
|
+
return code;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/docs/print-hole.ts
|
|
39
|
+
var printHole = (hole, value) => {
|
|
40
|
+
let arg = hole.arg ?? "";
|
|
41
|
+
switch (hole.kind) {
|
|
42
|
+
case "prop":
|
|
43
|
+
return printProp(arg, propValue(value, arg));
|
|
44
|
+
case "props":
|
|
45
|
+
return Object.entries(value).filter(([name]) => !hole.except.includes(name)).map(([name, item]) => printProp(name, propValue(item, name))).join(hole.separator);
|
|
46
|
+
case "value":
|
|
47
|
+
return printRead(value, arg, hole.path).code;
|
|
48
|
+
case "property":
|
|
49
|
+
return `${hole.name ?? arg}: ${printRead(value, arg).code}`;
|
|
50
|
+
case "attrvalue":
|
|
51
|
+
case "quoted":
|
|
52
|
+
case "fragment":
|
|
53
|
+
case "code": {
|
|
54
|
+
let { code, string } = printRead(value, arg, hole.path);
|
|
55
|
+
return printWholeRead(hole, arg, code, string);
|
|
56
|
+
}
|
|
57
|
+
default:
|
|
58
|
+
return unknownHoleKind(hole);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function printRead(value, arg, path = []) {
|
|
62
|
+
let rest = path;
|
|
63
|
+
for (; rest.length && isObject(value) && Object.hasOwn(value, rest[0]); )
|
|
64
|
+
value = value[rest[0]], rest = rest.slice(1);
|
|
65
|
+
let code = printValue(value, arg), number = typeof value == "number" && (value < 0 || rest.length > 0), wrapped = isObject(value) || number ? `(${code})` : code;
|
|
66
|
+
return rest.length ? { code: `${wrapped}${printAccessors(rest)}` } : { code: wrapped, ...typeof value == "string" && { string: value } };
|
|
67
|
+
}
|
|
68
|
+
var isObject = (value) => typeof value == "object" && value !== null && !Array.isArray(value);
|
|
69
|
+
function propValue(value, name) {
|
|
70
|
+
if (value !== void 0)
|
|
71
|
+
return value === !0 ? !0 : {
|
|
72
|
+
...typeof value == "string" ? { string: value } : {},
|
|
73
|
+
code: printValue(value, name)
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// src/entry-preview-docs.ts
|
|
78
|
+
var decorators = globalThis.FEATURES?.docgenServer ? [] : [sourceDecorator], parameters = globalThis.FEATURES?.docgenServer ? { docs: { source: { printHole } } } : {};
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
decorators,
|
|
82
|
+
parameters,
|
|
83
|
+
entry_preview_docs_exports
|
|
84
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.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
|
UNPRINTABLE_DEFAULT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5XOL5BKO.js";
|
|
15
15
|
import {
|
|
16
16
|
parseSvelteSource
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QN3DI6BM.js";
|
|
18
18
|
import {
|
|
19
19
|
extractSvelteASTNodes,
|
|
20
20
|
getDefineMetaComponentValue,
|
|
21
21
|
getDefineMetaFirstArgumentObjectExpression
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-BUMY5Y7X.js";
|
|
23
|
+
import "./chunk-JCULIFGX.js";
|
|
24
24
|
|
|
25
25
|
// src/docgen/component-docgen/build-docgen.ts
|
|
26
26
|
import { realpathSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
extractDefineMetaPropertiesNodes,
|
|
14
14
|
getDefineMetaComponentName,
|
|
15
15
|
getDefineMetaComponentValue
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BUMY5Y7X.js";
|
|
17
17
|
import {
|
|
18
18
|
InvalidRenderValueError,
|
|
19
19
|
InvalidStoryTemplateAttributeError,
|
|
20
20
|
extractStoryAttributesNodes,
|
|
21
21
|
extractStoryTemplateSnippetBlock
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JCULIFGX.js";
|
|
23
23
|
|
|
24
24
|
// src/svelte-csf/parser/ast.ts
|
|
25
25
|
import { compile } from "svelte/compiler";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
hasMetaImport,
|
|
23
23
|
isOneOf,
|
|
24
24
|
skipTypeCalls
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JCULIFGX.js";
|
|
26
26
|
|
|
27
27
|
// src/svelte-csf/parser/extract/svelte/module-nodes.ts
|
|
28
28
|
async function extractModuleNodes(options) {
|
|
@@ -49,7 +49,7 @@ async function extractModuleNodes(options) {
|
|
|
49
49
|
|
|
50
50
|
// src/svelte-csf/parser/extract/svelte/fragment-nodes.ts
|
|
51
51
|
async function extractFragmentNodes(params) {
|
|
52
|
-
let { walk } = await import("./walk-
|
|
52
|
+
let { walk } = await import("./walk-FGYTHLP6.js"), { fragment, moduleNodes } = params, { storyNames } = moduleNodes, latestComment, state = {
|
|
53
53
|
storyComponents: [],
|
|
54
54
|
snippetBlocks: []
|
|
55
55
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -742,8 +742,7 @@ function getArrayOfStringsValueFromAttribute(params) {
|
|
|
742
742
|
|
|
743
743
|
// src/svelte-csf/utils/identifier-utils.ts
|
|
744
744
|
import { sanitize } from "storybook/internal/csf";
|
|
745
|
-
var storyIdToExportName = (storyId) => storyId.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("")
|
|
746
|
-
var storyNameToId = (name) => (
|
|
745
|
+
var storyIdToExportName = (storyId) => storyId.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(""), storyNameToId = (name) => (
|
|
747
746
|
// add a space before all caps and use utility from @storybook/csf to sanitize the resulting string
|
|
748
747
|
sanitize(name.replace(/([A-Z])/g, " $1").trim())
|
|
749
748
|
), storyNameToExportName = (name) => storyIdToExportName(storyNameToId(name)), isValidVariableName = (str) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
getStoryIdentifiers,
|
|
33
33
|
getStoryParents,
|
|
34
34
|
hasMetaImport
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JCULIFGX.js";
|
|
36
36
|
|
|
37
37
|
// src/svelte-csf/indexer/parser.ts
|
|
38
38
|
import fs from "node:fs/promises";
|
|
@@ -94,7 +94,7 @@ function getIndexableAST(code) {
|
|
|
94
94
|
async function parseForIndexer(filename) {
|
|
95
95
|
let [file, { walk }] = await Promise.all([
|
|
96
96
|
fs.readFile(filename, { encoding: "utf8" }),
|
|
97
|
-
import("./walk-
|
|
97
|
+
import("./walk-FGYTHLP6.js")
|
|
98
98
|
]), { ast: svelteAST } = parseSvelteSource(file), results = {
|
|
99
99
|
meta: {},
|
|
100
100
|
stories: [],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/_node-chunks/{svelte-project-manager-NQA46LSQ.js → svelte-project-manager-OOWETREX.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
inferredCommandLine,
|
|
18
18
|
parseSvelteConfig,
|
|
19
19
|
virtualFileName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5XOL5BKO.js";
|
|
21
21
|
|
|
22
22
|
// src/docgen/component-docgen/component-meta/svelte-project-manager.ts
|
|
23
23
|
import { statSync } from "node:fs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
walk
|
|
14
|
+
} from "./chunk-RUGG3JY2.js";
|
|
15
|
+
export {
|
|
16
|
+
walk
|
|
17
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
inferredCommandLine,
|
|
20
20
|
parseSvelteConfig,
|
|
21
21
|
virtualFileName
|
|
22
|
-
} from "../../../_node-chunks/chunk-
|
|
22
|
+
} from "../../../_node-chunks/chunk-5XOL5BKO.js";
|
|
23
23
|
export {
|
|
24
24
|
UNPRINTABLE_DEFAULT,
|
|
25
25
|
assertCompilerApi,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ozn9e8tgwi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ozn9e8tgwi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ozn9e8tgwi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ozn9e8tgwi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ozn9e8tgwi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ozn9e8tgwi.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
|
SVELTE_DOCGEN_STORY_FILE_TEST_REGEXP
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-J4TCM6ZP.js";
|
|
15
15
|
|
|
16
16
|
// src/docgen/docgen-worker.ts
|
|
17
17
|
import { createLazyDocgenMiddleware, loadTypeScriptCompilerApi } from "storybook/internal/common";
|
|
@@ -22,8 +22,8 @@ var createDocgenProvider = () => createLazyDocgenMiddleware({
|
|
|
22
22
|
try {
|
|
23
23
|
await loadTypeScriptCompilerApi(() => import("typescript"));
|
|
24
24
|
let [{ SvelteComponentMetaManager }, { buildDocgenPayload }] = await Promise.all([
|
|
25
|
-
import("../_node-chunks/svelte-project-manager-
|
|
26
|
-
import("../_node-chunks/build-docgen-
|
|
25
|
+
import("../_node-chunks/svelte-project-manager-OOWETREX.js"),
|
|
26
|
+
import("../_node-chunks/build-docgen-TQ6645JH.js")
|
|
27
27
|
]), componentMetaManager = new SvelteComponentMetaManager();
|
|
28
28
|
return componentMetaManager.startWatching(), { componentMetaManager, buildDocgenPayload };
|
|
29
29
|
} catch (error) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
decorators
|
|
3
|
-
|
|
2
|
+
decorators,
|
|
3
|
+
parameters
|
|
4
|
+
} from "./_browser-chunks/chunk-QPNLWHUT.js";
|
|
5
|
+
import "./_browser-chunks/chunk-D3HHTIN7.js";
|
|
4
6
|
import "./_browser-chunks/chunk-4BE7D4DS.js";
|
|
5
7
|
export {
|
|
6
|
-
decorators
|
|
8
|
+
decorators,
|
|
9
|
+
parameters
|
|
7
10
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
} from "./_browser-chunks/chunk-FPEMDWKX.js";
|
|
5
5
|
import {
|
|
6
6
|
entry_preview_docs_exports
|
|
7
|
-
} from "./_browser-chunks/chunk-
|
|
7
|
+
} from "./_browser-chunks/chunk-QPNLWHUT.js";
|
|
8
|
+
import "./_browser-chunks/chunk-D3HHTIN7.js";
|
|
8
9
|
import "./_browser-chunks/chunk-4BE7D4DS.js";
|
|
9
10
|
|
|
10
11
|
// src/globals.ts
|