@storybook/preact-vite 10.6.0-alpha.0 → 10.6.0-alpha.2

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,25 @@
1
+ import { CompatibleString, StorybookConfig } from "storybook/internal/types";
2
+ import { BuilderOptions, StorybookConfigVite } from "@storybook/builder-vite";
3
+
4
+ //#region code/frameworks/preact-vite/.dts-emit/code/frameworks/preact-vite/src/types.d.ts
5
+ type FrameworkName = CompatibleString<'@storybook/preact-vite'>;
6
+ type BuilderName = CompatibleString<'@storybook/builder-vite'>;
7
+ type FrameworkOptions = {
8
+ builder?: BuilderOptions;
9
+ };
10
+ type StorybookConfigFramework = {
11
+ framework: FrameworkName | {
12
+ name: FrameworkName;
13
+ options: FrameworkOptions;
14
+ };
15
+ core?: StorybookConfig['core'] & {
16
+ builder?: BuilderName | {
17
+ name: BuilderName;
18
+ options: BuilderOptions;
19
+ };
20
+ };
21
+ };
22
+ /** The interface for Storybook configuration in `main.ts` files. */
23
+ type StorybookConfig$1 = Omit<StorybookConfig, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
24
+ //#endregion
25
+ export { StorybookConfig$1 as n, FrameworkOptions as t };
package/dist/index.d.ts CHANGED
@@ -1,25 +1,3 @@
1
- export * from '@storybook/preact';
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/preact-vite'>;
6
- type BuilderName = CompatibleString<'@storybook/builder-vite'>;
7
- type FrameworkOptions = {
8
- builder?: BuilderOptions;
9
- };
10
- type StorybookConfigFramework = {
11
- framework: FrameworkName | {
12
- name: FrameworkName;
13
- options: FrameworkOptions;
14
- };
15
- core?: StorybookConfig$1['core'] & {
16
- builder?: BuilderName | {
17
- name: BuilderName;
18
- options: BuilderOptions;
19
- };
20
- };
21
- };
22
- /** The interface for Storybook configuration in `main.ts` files. */
23
- type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
24
-
25
- export type { FrameworkOptions, StorybookConfig };
1
+ import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-tgyxTuqw.js";
2
+ export * from "@storybook/preact";
3
+ export { FrameworkOptions, StorybookConfig };
@@ -1,26 +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/preact-vite'>;
5
- type BuilderName = CompatibleString<'@storybook/builder-vite'>;
6
- type FrameworkOptions = {
7
- builder?: BuilderOptions;
8
- };
9
- type StorybookConfigFramework = {
10
- framework: FrameworkName | {
11
- name: FrameworkName;
12
- options: FrameworkOptions;
13
- };
14
- core?: StorybookConfig$1['core'] & {
15
- builder?: BuilderName | {
16
- name: BuilderName;
17
- options: BuilderOptions;
18
- };
19
- };
20
- };
21
- /** The interface for Storybook configuration in `main.ts` files. */
22
- type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
1
+ import { n as StorybookConfig } from "../chunk-tgyxTuqw.js";
23
2
 
3
+ //#region code/frameworks/preact-vite/.dts-emit/code/frameworks/preact-vite/src/node/index.d.ts
24
4
  declare function defineMain(config: StorybookConfig): StorybookConfig;
25
-
26
- export { type StorybookConfig, defineMain };
5
+ //#endregion
6
+ export { type StorybookConfig, defineMain };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_v9koxh6c3ul from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9koxh6c3ul from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9koxh6c3ul from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ey07msavwnj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ey07msavwnj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ey07msavwnj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9koxh6c3ul.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9koxh6c3ul.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9koxh6c3ul.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ey07msavwnj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ey07msavwnj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ey07msavwnj.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 CJS_COMPAT_NODE_URL_v9koxh6c3ul from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_v9koxh6c3ul from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_v9koxh6c3ul from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ey07msavwnj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ey07msavwnj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ey07msavwnj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_v9koxh6c3ul.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_v9koxh6c3ul.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_v9koxh6c3ul.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ey07msavwnj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ey07msavwnj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ey07msavwnj.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/preact-vite",
3
- "version": "10.6.0-alpha.0",
3
+ "version": "10.6.0-alpha.2",
4
4
  "description": "Storybook for Preact and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -49,17 +49,17 @@
49
49
  "!src/**/*"
50
50
  ],
51
51
  "dependencies": {
52
- "@storybook/builder-vite": "10.6.0-alpha.0",
53
- "@storybook/preact": "10.6.0-alpha.0"
52
+ "@storybook/builder-vite": "10.6.0-alpha.2",
53
+ "@storybook/preact": "10.6.0-alpha.2"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^22.19.1",
57
- "typescript": "^5.9.3",
57
+ "typescript": "^6.0.3",
58
58
  "vite": "^7.0.4"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "preact": ">=10",
62
- "storybook": "^10.6.0-alpha.0",
62
+ "storybook": "^10.6.0-alpha.2",
63
63
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
64
64
  },
65
65
  "publishConfig": {