@storybook/svelte-vite 10.0.0-beta.1 → 10.0.0-beta.10
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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dlu4ptwvts7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dlu4ptwvts7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dlu4ptwvts7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dlu4ptwvts7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dlu4ptwvts7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dlu4ptwvts7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dlu4ptwvts7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dlu4ptwvts7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dlu4ptwvts7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dlu4ptwvts7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dlu4ptwvts7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dlu4ptwvts7.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
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-ZE2ORFVF.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dlu4ptwvts7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dlu4ptwvts7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dlu4ptwvts7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dlu4ptwvts7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dlu4ptwvts7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dlu4ptwvts7.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
|
__name
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-ZE2ORFVF.js";
|
|
15
15
|
|
|
16
16
|
// src/plugins/svelte-docgen.ts
|
|
17
17
|
import { basename, relative } from "node:path";
|
|
@@ -314,7 +314,7 @@ function generateDocgen(targetFileName, cache) {
|
|
|
314
314
|
description = ((description || "") + "\n" + typeTag.comment).trim();
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
if (prop.valueDeclaration?.getSourceFile().fileName.includes("node_modules/svelte/elements.d.ts")) {
|
|
317
|
+
if ((prop.valueDeclaration ?? prop?.links?.syntheticOrigin?.valueDeclaration)?.getSourceFile().fileName.includes("node_modules/svelte/elements.d.ts")) {
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
320
320
|
const optional = (prop.flags & ts.SymbolFlags.Optional) !== 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/svelte-vite",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.10",
|
|
4
4
|
"description": "Storybook for Svelte and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -53,23 +53,23 @@
|
|
|
53
53
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@storybook/builder-vite": "10.0.0-beta.
|
|
57
|
-
"@storybook/svelte": "10.0.0-beta.
|
|
56
|
+
"@storybook/builder-vite": "10.0.0-beta.10",
|
|
57
|
+
"@storybook/svelte": "10.0.0-beta.10",
|
|
58
58
|
"magic-string": "^0.30.0",
|
|
59
|
-
"svelte2tsx": "^0.7.
|
|
59
|
+
"svelte2tsx": "^0.7.44",
|
|
60
60
|
"typescript": "^4.9.4 || ^5.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
63
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.0",
|
|
64
64
|
"@types/node": "^22.0.0",
|
|
65
|
-
"svelte": "^5.
|
|
65
|
+
"svelte": "^5.39.5",
|
|
66
66
|
"sveltedoc-parser": "^4.2.1",
|
|
67
67
|
"typescript": "^5.8.3",
|
|
68
68
|
"vite": "^7.0.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
72
|
-
"storybook": "^10.0.0-beta.
|
|
72
|
+
"storybook": "^10.0.0-beta.10",
|
|
73
73
|
"svelte": "^5.0.0",
|
|
74
74
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
75
75
|
},
|