@storybook/svelte 11.0.0-beta.2 → 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/_node-chunks/{build-docgen-7AHJE6KZ.js → build-docgen-TQ6645JH.js} +10 -10
- package/dist/_node-chunks/{chunk-T3JGM6K4.js → chunk-5XOL5BKO.js} +6 -6
- package/dist/_node-chunks/{chunk-BTI2FV5C.js → chunk-BQ2RIMP3.js} +8 -8
- package/dist/_node-chunks/{chunk-CYGU5LDL.js → chunk-BUMY5Y7X.js} +8 -8
- package/dist/_node-chunks/{chunk-RB7ABCI3.js → chunk-J4TCM6ZP.js} +6 -6
- package/dist/_node-chunks/{chunk-66EAYIKL.js → chunk-JCULIFGX.js} +6 -6
- package/dist/_node-chunks/{chunk-H5ZZRYXC.js → chunk-QN3DI6BM.js} +8 -8
- package/dist/_node-chunks/{chunk-QRTOLIGT.js → chunk-RUGG3JY2.js} +6 -6
- package/dist/_node-chunks/{parsers-MK4OQQPG.js → parsers-KP7MPNO3.js} +6 -6
- package/dist/_node-chunks/{svelte-project-manager-FOBYCND4.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/preset.js +13 -13
- package/dist/svelte-csf/addon-check.js +6 -6
- package/dist/svelte-csf/compiler/transform.js +11 -11
- package/dist/svelte-csf/indexer/index.js +8 -8
- package/package.json +2 -2
- package/dist/_node-chunks/walk-INTMVV36.js +0 -17
|
@@ -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
|
|
@@ -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-FOBYCND4.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) {
|
package/dist/preset.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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
|
import {
|
|
16
16
|
parseSvelteSource
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-QN3DI6BM.js";
|
|
18
18
|
import {
|
|
19
19
|
findMetaRenderSnippetBlock,
|
|
20
20
|
findStoryAttributeTemplateSnippetBlock,
|
|
21
21
|
getStoryContentRawCode,
|
|
22
22
|
span
|
|
23
|
-
} from "./_node-chunks/chunk-
|
|
23
|
+
} from "./_node-chunks/chunk-BQ2RIMP3.js";
|
|
24
24
|
import {
|
|
25
25
|
extractSvelteASTNodes,
|
|
26
26
|
getDefineMetaFirstArgumentObjectExpression
|
|
27
|
-
} from "./_node-chunks/chunk-
|
|
27
|
+
} from "./_node-chunks/chunk-BUMY5Y7X.js";
|
|
28
28
|
import {
|
|
29
29
|
extractStoryAttributesNodes,
|
|
30
30
|
extractStoryTemplateSnippetBlock,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
getStoryChain,
|
|
33
33
|
getStoryContent,
|
|
34
34
|
getStoryParents
|
|
35
|
-
} from "./_node-chunks/chunk-
|
|
35
|
+
} from "./_node-chunks/chunk-JCULIFGX.js";
|
|
36
36
|
import {
|
|
37
37
|
walk
|
|
38
|
-
} from "./_node-chunks/chunk-
|
|
38
|
+
} from "./_node-chunks/chunk-RUGG3JY2.js";
|
|
39
39
|
|
|
40
40
|
// src/preset.ts
|
|
41
41
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -908,7 +908,7 @@ var isDocgenProviderEnabled = (_existing, options) => isTypeScriptReadyForDocgen
|
|
|
908
908
|
docsEnabled ? [fileURLToPath3(import.meta.resolve("@storybook/svelte/entry-preview-docs"))] : []
|
|
909
909
|
);
|
|
910
910
|
}, experimental_importParsers = async (input = []) => {
|
|
911
|
-
let { svelteImportParser } = await import("./_node-chunks/parsers-
|
|
911
|
+
let { svelteImportParser } = await import("./_node-chunks/parsers-KP7MPNO3.js");
|
|
912
912
|
return [...input, svelteImportParser];
|
|
913
913
|
}, experimental_indexers = async (existingIndexers) => {
|
|
914
914
|
let { createIndexer } = await import("./svelte-csf/indexer/index.js");
|
|
@@ -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
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
getStoryContentRawCode,
|
|
20
20
|
getSvelteAST,
|
|
21
21
|
span
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-BQ2RIMP3.js";
|
|
23
23
|
import {
|
|
24
24
|
extractSvelteASTNodes,
|
|
25
25
|
getDefineMetaFirstArgumentObjectExpression
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-BUMY5Y7X.js";
|
|
27
27
|
import {
|
|
28
28
|
DefaultOrNamespaceImportUsedError,
|
|
29
29
|
NoDestructuredDefineMetaCallError,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getStoryParents,
|
|
42
42
|
hasMetaImport,
|
|
43
43
|
orderByParents
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-JCULIFGX.js";
|
|
45
45
|
|
|
46
46
|
// src/svelte-csf/compiler/transform.ts
|
|
47
47
|
import fs from "node:fs";
|
|
@@ -3257,7 +3257,7 @@ function getStoryTags(params) {
|
|
|
3257
3257
|
|
|
3258
3258
|
// src/svelte-csf/parser/extract/compiled/stories.ts
|
|
3259
3259
|
async function extractStoriesNodesFromExportDefaultFn(params) {
|
|
3260
|
-
let { walk } = await import("../../_node-chunks/walk-
|
|
3260
|
+
let { walk } = await import("../../_node-chunks/walk-FGYTHLP6.js"), { nodes } = params, { storiesFunctionDeclaration, storyNames } = nodes, state = [], visitors = {
|
|
3261
3261
|
CallExpression(node, context) {
|
|
3262
3262
|
let { state: state2 } = context;
|
|
3263
3263
|
node.callee.type === "Identifier" && storyNames.includes(node.callee.name) ? state2.push(node) : context.next();
|
|
@@ -3302,7 +3302,7 @@ async function transformStoriesCode(params) {
|
|
|
3302
3302
|
|
|
3303
3303
|
// src/svelte-csf/parser/extract/compiled/nodes.ts
|
|
3304
3304
|
async function extractCompiledASTNodes(params) {
|
|
3305
|
-
let { ast, filename } = params, { walk } = await import("../../_node-chunks/walk-
|
|
3305
|
+
let { ast, filename } = params, { walk } = await import("../../_node-chunks/walk-FGYTHLP6.js"), state = { potentialStoriesFunctionDeclaration: [] }, { body } = ast, imports = findMetaImports(body), meta = findMeta(body, imports, filename);
|
|
3306
3306
|
walk(ast, state, {
|
|
3307
3307
|
FunctionDeclaration(node, { state: state2 }) {
|
|
3308
3308
|
state2.potentialStoriesFunctionDeclaration.push(node);
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
parseForIndexer
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-QN3DI6BM.js";
|
|
15
15
|
import {
|
|
16
16
|
IndexerParseError,
|
|
17
17
|
SVELTE_CSF_V5_TAG,
|
|
18
18
|
StorybookSvelteCSFError
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-JCULIFGX.js";
|
|
20
20
|
|
|
21
21
|
// src/svelte-csf/indexer/index.ts
|
|
22
22
|
var createIndexer = () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/svelte",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.3",
|
|
4
4
|
"description": "Storybook Svelte renderer: Develop, document, and test UI components in isolation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"zimmerframe": "^1.1.2"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
|
-
"storybook": "^11.0.0-beta.
|
|
108
|
+
"storybook": "^11.0.0-beta.3",
|
|
109
109
|
"svelte": "^5.0.0",
|
|
110
110
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
|
|
111
111
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_f7geiagcxxk from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_f7geiagcxxk from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_f7geiagcxxk from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_f7geiagcxxk.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_f7geiagcxxk.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_f7geiagcxxk.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-QRTOLIGT.js";
|
|
15
|
-
export {
|
|
16
|
-
walk
|
|
17
|
-
};
|