@storybook/svelte-vite 10.0.0-beta.0 → 10.0.0-beta.1
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/chunk-JOZGLGQM.js +17 -0
- package/dist/index.d.ts +8 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +7 -7
- package/dist/preset.d.ts +8 -0
- package/dist/preset.js +12 -8
- package/package.json +5 -5
- package/dist/_node-chunks/chunk-XAHMQWSH.js +0 -17
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bqc0jbul3j9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqc0jbul3j9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqc0jbul3j9 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqc0jbul3j9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqc0jbul3j9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqc0jbul3j9.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__name
|
|
17
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
|
|
|
6
6
|
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
7
7
|
type FrameworkOptions = {
|
|
8
8
|
builder?: BuilderOptions;
|
|
9
|
+
/**
|
|
10
|
+
* Enable or disable automatic documentation generation for component properties, events, and
|
|
11
|
+
* slots. When disabled, Storybook will skip the docgen processing step during build, which can
|
|
12
|
+
* improve build performance.
|
|
13
|
+
*
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
docgen?: boolean;
|
|
9
17
|
};
|
|
10
18
|
type StorybookConfigFramework = {
|
|
11
19
|
framework: FrameworkName | {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
|
|
|
5
5
|
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
6
6
|
type FrameworkOptions = {
|
|
7
7
|
builder?: BuilderOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Enable or disable automatic documentation generation for component properties, events, and
|
|
10
|
+
* slots. When disabled, Storybook will skip the docgen processing step during build, which can
|
|
11
|
+
* improve build performance.
|
|
12
|
+
*
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
docgen?: boolean;
|
|
8
16
|
};
|
|
9
17
|
type StorybookConfigFramework = {
|
|
10
18
|
framework: FrameworkName | {
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bqc0jbul3j9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqc0jbul3j9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqc0jbul3j9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqc0jbul3j9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqc0jbul3j9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqc0jbul3j9.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-JOZGLGQM.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
|
|
|
5
5
|
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
6
6
|
type FrameworkOptions = {
|
|
7
7
|
builder?: BuilderOptions;
|
|
8
|
+
/**
|
|
9
|
+
* Enable or disable automatic documentation generation for component properties, events, and
|
|
10
|
+
* slots. When disabled, Storybook will skip the docgen processing step during build, which can
|
|
11
|
+
* improve build performance.
|
|
12
|
+
*
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
docgen?: boolean;
|
|
8
16
|
};
|
|
9
17
|
type StorybookConfigFramework = {
|
|
10
18
|
framework: FrameworkName | {
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bqc0jbul3j9 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqc0jbul3j9 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqc0jbul3j9 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqc0jbul3j9.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqc0jbul3j9.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqc0jbul3j9.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-JOZGLGQM.js";
|
|
15
15
|
|
|
16
16
|
// src/plugins/svelte-docgen.ts
|
|
17
17
|
import { basename, relative } from "node:path";
|
|
@@ -501,7 +501,11 @@ var core = {
|
|
|
501
501
|
};
|
|
502
502
|
var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
503
503
|
const { plugins = [] } = config;
|
|
504
|
-
|
|
504
|
+
const framework = await options.presets.apply("framework");
|
|
505
|
+
const frameworkOptions = typeof framework === "string" ? {} : framework.options ?? {};
|
|
506
|
+
if (frameworkOptions.docgen !== false) {
|
|
507
|
+
plugins.push(await svelteDocgen());
|
|
508
|
+
}
|
|
505
509
|
await handleSvelteKit(plugins, options);
|
|
506
510
|
return {
|
|
507
511
|
...config,
|
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.1",
|
|
4
4
|
"description": "Storybook for Svelte and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -53,8 +53,8 @@
|
|
|
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.1",
|
|
57
|
+
"@storybook/svelte": "10.0.0-beta.1",
|
|
58
58
|
"magic-string": "^0.30.0",
|
|
59
59
|
"svelte2tsx": "^0.7.35",
|
|
60
60
|
"typescript": "^4.9.4 || ^5.0.0"
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"vite": "^7.0.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
|
|
72
|
-
"storybook": "^10.0.0-beta.
|
|
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.1",
|
|
73
73
|
"svelte": "^5.0.0",
|
|
74
74
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
75
75
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_wxvqpsjwy8 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_wxvqpsjwy8 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_wxvqpsjwy8 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_wxvqpsjwy8.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_wxvqpsjwy8.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_wxvqpsjwy8.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
__name
|
|
17
|
-
};
|