@storybook/svelte-vite 10.5.6 → 10.5.7

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.
@@ -0,0 +1,33 @@
1
+ import { CompatibleString, StorybookConfig } from "storybook/internal/types";
2
+ import { BuilderOptions, StorybookConfigVite } from "@storybook/builder-vite";
3
+
4
+ //#region code/frameworks/svelte-vite/.dts-emit/code/frameworks/svelte-vite/src/types.d.ts
5
+ type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
6
+ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
7
+ type FrameworkOptions = {
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;
17
+ };
18
+ type StorybookConfigFramework = {
19
+ framework: FrameworkName | {
20
+ name: FrameworkName;
21
+ options: FrameworkOptions;
22
+ };
23
+ core?: StorybookConfig['core'] & {
24
+ builder?: BuilderName | {
25
+ name: BuilderName;
26
+ options: BuilderOptions;
27
+ };
28
+ };
29
+ };
30
+ /** The interface for Storybook configuration in `main.ts` files. */
31
+ type StorybookConfig$1 = Omit<StorybookConfig, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
32
+ //#endregion
33
+ export { StorybookConfig$1 as n, FrameworkOptions as t };
package/dist/index.d.ts CHANGED
@@ -1,33 +1,3 @@
1
- export * from '@storybook/svelte';
2
- import { StorybookConfig as StorybookConfig$1, CompatibleString } from 'storybook/internal/types';
3
- import { BuilderOptions, StorybookConfigVite } from '@storybook/builder-vite';
4
-
5
- type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
6
- type BuilderName = CompatibleString<'@storybook/builder-vite'>;
7
- type FrameworkOptions = {
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;
17
- };
18
- type StorybookConfigFramework = {
19
- framework: FrameworkName | {
20
- name: FrameworkName;
21
- options: FrameworkOptions;
22
- };
23
- core?: StorybookConfig$1['core'] & {
24
- builder?: BuilderName | {
25
- name: BuilderName;
26
- options: BuilderOptions;
27
- };
28
- };
29
- };
30
- /** The interface for Storybook configuration in `main.ts` files. */
31
- type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
32
-
33
- export type { FrameworkOptions, StorybookConfig };
1
+ import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-DAg8hspc.js";
2
+ export * from "@storybook/svelte";
3
+ export { FrameworkOptions, StorybookConfig };
@@ -1,34 +1,6 @@
1
- import { StorybookConfig as StorybookConfig$1, CompatibleString } from 'storybook/internal/types';
2
- import { StorybookConfigVite, BuilderOptions } from '@storybook/builder-vite';
3
-
4
- type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
5
- type BuilderName = CompatibleString<'@storybook/builder-vite'>;
6
- type FrameworkOptions = {
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;
16
- };
17
- type StorybookConfigFramework = {
18
- framework: FrameworkName | {
19
- name: FrameworkName;
20
- options: FrameworkOptions;
21
- };
22
- core?: StorybookConfig$1['core'] & {
23
- builder?: BuilderName | {
24
- name: BuilderName;
25
- options: BuilderOptions;
26
- };
27
- };
28
- };
29
- /** The interface for Storybook configuration in `main.ts` files. */
30
- type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
1
+ import { n as StorybookConfig } from "../chunk-DAg8hspc.js";
31
2
 
3
+ //#region code/frameworks/svelte-vite/.dts-emit/code/frameworks/svelte-vite/src/node/index.d.ts
32
4
  declare function defineMain(config: StorybookConfig): StorybookConfig;
33
-
34
- export { type StorybookConfig, defineMain };
5
+ //#endregion
6
+ export { type StorybookConfig, defineMain };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_shsuvda0ypl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_shsuvda0ypl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_shsuvda0ypl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u38hi10nzd from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u38hi10nzd from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u38hi10nzd from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_shsuvda0ypl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_shsuvda0ypl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_shsuvda0ypl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u38hi10nzd.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u38hi10nzd.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u38hi10nzd.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/preset.d.ts CHANGED
@@ -1,35 +1,8 @@
1
- import { StorybookConfig as StorybookConfig$1, CompatibleString, PresetProperty } from 'storybook/internal/types';
2
- import { StorybookConfigVite, BuilderOptions } from '@storybook/builder-vite';
3
-
4
- type FrameworkName = CompatibleString<'@storybook/svelte-vite'>;
5
- type BuilderName = CompatibleString<'@storybook/builder-vite'>;
6
- type FrameworkOptions = {
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;
16
- };
17
- type StorybookConfigFramework = {
18
- framework: FrameworkName | {
19
- name: FrameworkName;
20
- options: FrameworkOptions;
21
- };
22
- core?: StorybookConfig$1['core'] & {
23
- builder?: BuilderName | {
24
- name: BuilderName;
25
- options: BuilderOptions;
26
- };
27
- };
28
- };
29
- /** The interface for Storybook configuration in `main.ts` files. */
30
- type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
1
+ import { n as StorybookConfig$1 } from "./chunk-DAg8hspc.js";
2
+ import { PresetProperty } from "storybook/internal/types";
31
3
 
4
+ //#region code/frameworks/svelte-vite/.dts-emit/code/frameworks/svelte-vite/src/preset.d.ts
32
5
  declare const core: PresetProperty<'core'>;
33
- declare const viteFinal: NonNullable<StorybookConfig['viteFinal']>;
34
-
35
- export { core, viteFinal };
6
+ declare const viteFinal: NonNullable<StorybookConfig$1['viteFinal']>;
7
+ //#endregion
8
+ export { core, viteFinal };
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_shsuvda0ypl from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_shsuvda0ypl from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_shsuvda0ypl from "node:module";
1
+ import CJS_COMPAT_NODE_URL_u38hi10nzd from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_u38hi10nzd from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_u38hi10nzd from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_shsuvda0ypl.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_shsuvda0ypl.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_shsuvda0ypl.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_u38hi10nzd.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_u38hi10nzd.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_u38hi10nzd.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/svelte-vite",
3
- "version": "10.5.6",
3
+ "version": "10.5.7",
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": "10.5.6",
56
- "@storybook/svelte": "10.5.6",
55
+ "@storybook/builder-vite": "10.5.7",
56
+ "@storybook/svelte": "10.5.7",
57
57
  "magic-string": "^0.30.0",
58
58
  "svelte2tsx": "^0.7.55",
59
59
  "typescript": "^4.9.4 || ^5.0.0"
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
71
- "storybook": "^10.5.6",
71
+ "storybook": "^10.5.7",
72
72
  "svelte": "^5.0.0",
73
73
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
74
74
  },