@storybook/svelte-vite 11.0.0-alpha.7 → 11.0.0-alpha.8
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/index.d.ts +2 -1
- package/dist/index.js +4 -0
- package/dist/node/index.js +6 -6
- package/dist/preset.js +12 -7
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-DAg8hspc.js";
|
|
2
|
+
import { __definePreview as definePreview } from "@storybook/svelte";
|
|
2
3
|
export * from "@storybook/svelte";
|
|
3
|
-
export { FrameworkOptions, StorybookConfig };
|
|
4
|
+
export { FrameworkOptions, StorybookConfig, definePreview };
|
package/dist/index.js
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_euhb73pg96c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_euhb73pg96c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_euhb73pg96c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_euhb73pg96c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_euhb73pg96c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_euhb73pg96c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_euhb73pg96c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_euhb73pg96c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_euhb73pg96c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_euhb73pg96c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_euhb73pg96c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_euhb73pg96c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -47,8 +47,13 @@ function svelteCsf() {
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
transform: {
|
|
50
|
-
filter: { id: /\.stories\.svelte
|
|
50
|
+
filter: { id: /\.stories\.svelte(\?svelte&type=style\b.*)?$/ },
|
|
51
51
|
handler(compiledCode, id2) {
|
|
52
|
+
let query2 = id2.indexOf("?");
|
|
53
|
+
if (query2 !== -1) {
|
|
54
|
+
let cssScopeTo = [id2.slice(0, query2), void 0];
|
|
55
|
+
return { code: compiledCode, meta: { vite: { cssScopeTo } } };
|
|
56
|
+
}
|
|
52
57
|
return transformSvelteCsf({
|
|
53
58
|
filename: id2,
|
|
54
59
|
compiledCode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/svelte-vite",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.8",
|
|
4
4
|
"description": "Storybook for Svelte and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"!src/**/*"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@storybook/builder-vite": "11.0.0-alpha.
|
|
56
|
-
"@storybook/svelte": "11.0.0-alpha.
|
|
55
|
+
"@storybook/builder-vite": "11.0.0-alpha.8",
|
|
56
|
+
"@storybook/svelte": "11.0.0-alpha.8",
|
|
57
57
|
"magic-string": "^1.1.0",
|
|
58
58
|
"svelte2tsx": "^0.7.55",
|
|
59
59
|
"typescript": "^5.9.0 || ^6.0.0"
|
|
@@ -69,7 +69,7 @@
|
|
|
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 || ^7.0.0",
|
|
72
|
-
"storybook": "^11.0.0-alpha.
|
|
72
|
+
"storybook": "^11.0.0-alpha.8",
|
|
73
73
|
"svelte": "^5.0.0",
|
|
74
74
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
75
75
|
"vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
|