@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.
@@ -1,26 +1,26 @@
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";
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 = 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);
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-T3JGM6K4.js";
14
+ } from "./chunk-5XOL5BKO.js";
15
15
  import {
16
16
  parseSvelteSource
17
- } from "./chunk-H5ZZRYXC.js";
17
+ } from "./chunk-QN3DI6BM.js";
18
18
  import {
19
19
  extractSvelteASTNodes,
20
20
  getDefineMetaComponentValue,
21
21
  getDefineMetaFirstArgumentObjectExpression
22
- } from "./chunk-CYGU5LDL.js";
23
- import "./chunk-66EAYIKL.js";
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 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";
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 = 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);
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 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";
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 = 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);
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-CYGU5LDL.js";
16
+ } from "./chunk-BUMY5Y7X.js";
17
17
  import {
18
18
  InvalidRenderValueError,
19
19
  InvalidStoryTemplateAttributeError,
20
20
  extractStoryAttributesNodes,
21
21
  extractStoryTemplateSnippetBlock
22
- } from "./chunk-66EAYIKL.js";
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 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";
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 = 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);
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-66EAYIKL.js";
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-INTMVV36.js"), { fragment, moduleNodes } = params, { storyNames } = moduleNodes, latestComment, state = {
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 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";
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 = 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);
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 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";
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 = 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);
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 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";
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 = 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);
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-66EAYIKL.js";
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-INTMVV36.js")
97
+ import("./walk-FGYTHLP6.js")
98
98
  ]), { ast: svelteAST } = parseSvelteSource(file), results = {
99
99
  meta: {},
100
100
  stories: [],
@@ -1,10 +1,10 @@
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";
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 = 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);
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 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";
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 = 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);
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 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";
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 = 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);
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-T3JGM6K4.js";
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 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";
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 = 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);
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-T3JGM6K4.js";
22
+ } from "../../../_node-chunks/chunk-5XOL5BKO.js";
23
23
  export {
24
24
  UNPRINTABLE_DEFAULT,
25
25
  assertCompilerApi,
@@ -1,17 +1,17 @@
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";
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 = 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);
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-RB7ABCI3.js";
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-FOBYCND4.js"),
26
- import("../_node-chunks/build-docgen-7AHJE6KZ.js")
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 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";
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 = 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);
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-RB7ABCI3.js";
14
+ } from "./_node-chunks/chunk-J4TCM6ZP.js";
15
15
  import {
16
16
  parseSvelteSource
17
- } from "./_node-chunks/chunk-H5ZZRYXC.js";
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-BTI2FV5C.js";
23
+ } from "./_node-chunks/chunk-BQ2RIMP3.js";
24
24
  import {
25
25
  extractSvelteASTNodes,
26
26
  getDefineMetaFirstArgumentObjectExpression
27
- } from "./_node-chunks/chunk-CYGU5LDL.js";
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-66EAYIKL.js";
35
+ } from "./_node-chunks/chunk-JCULIFGX.js";
36
36
  import {
37
37
  walk
38
- } from "./_node-chunks/chunk-QRTOLIGT.js";
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-MK4OQQPG.js");
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 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";
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 = 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);
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 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";
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 = 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);
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-BTI2FV5C.js";
22
+ } from "../../_node-chunks/chunk-BQ2RIMP3.js";
23
23
  import {
24
24
  extractSvelteASTNodes,
25
25
  getDefineMetaFirstArgumentObjectExpression
26
- } from "../../_node-chunks/chunk-CYGU5LDL.js";
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-66EAYIKL.js";
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-INTMVV36.js"), { nodes } = params, { storiesFunctionDeclaration, storyNames } = nodes, state = [], visitors = {
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-INTMVV36.js"), state = { potentialStoriesFunctionDeclaration: [] }, { body } = ast, imports = findMetaImports(body), meta = findMeta(body, imports, filename);
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 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";
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 = 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);
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-H5ZZRYXC.js";
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-66EAYIKL.js";
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.2",
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.2",
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
- };