@storybook/web-components-vite 11.0.0-alpha.1 → 11.0.0-alpha.3

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,3 +1,4 @@
1
+ import { WebComponentsFrameworkOptions } from "@storybook/web-components";
1
2
  import { CompatibleString, StorybookConfig } from "storybook/internal/types";
2
3
  import { BuilderOptions, StorybookConfigVite } from "@storybook/builder-vite";
3
4
 
@@ -6,7 +7,7 @@ type FrameworkName = CompatibleString<'@storybook/web-components-vite'>;
6
7
  type BuilderName = CompatibleString<'@storybook/builder-vite'>;
7
8
  type FrameworkOptions = {
8
9
  builder?: BuilderOptions;
9
- };
10
+ } & WebComponentsFrameworkOptions;
10
11
  type StorybookConfigFramework = {
11
12
  framework: FrameworkName | {
12
13
  name: FrameworkName;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-Wy2jl0mm.js";
1
+ import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-FbC5ttfY.js";
2
2
  import { __definePreview as definePreview } from "@storybook/web-components";
3
3
  export * from "@storybook/web-components";
4
4
  export { FrameworkOptions, StorybookConfig, definePreview };
@@ -1,4 +1,4 @@
1
- import { n as StorybookConfig } from "../chunk-Wy2jl0mm.js";
1
+ import { n as StorybookConfig } from "../chunk-FbC5ttfY.js";
2
2
 
3
3
  //#region code/frameworks/web-components-vite/.dts-emit/code/frameworks/web-components-vite/src/node/index.d.ts
4
4
  declare function defineMain(config: StorybookConfig): StorybookConfig;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_tkp03x0s1b from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_tkp03x0s1b from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_tkp03x0s1b from "node:module";
1
+ import CJS_COMPAT_NODE_URL_8sx8qs4u0fk from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_8sx8qs4u0fk from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_8sx8qs4u0fk from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_tkp03x0s1b.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_tkp03x0s1b.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_tkp03x0s1b.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_8sx8qs4u0fk.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_8sx8qs4u0fk.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_8sx8qs4u0fk.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_tkp03x0s1b from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_tkp03x0s1b from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_tkp03x0s1b from "node:module";
1
+ import CJS_COMPAT_NODE_URL_8sx8qs4u0fk from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_8sx8qs4u0fk from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_8sx8qs4u0fk from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_tkp03x0s1b.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_tkp03x0s1b.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_tkp03x0s1b.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_8sx8qs4u0fk.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_8sx8qs4u0fk.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_8sx8qs4u0fk.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/web-components-vite",
3
- "version": "11.0.0-alpha.1",
3
+ "version": "11.0.0-alpha.3",
4
4
  "description": "Storybook for Web Components and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -50,15 +50,15 @@
50
50
  "!src/**/*"
51
51
  ],
52
52
  "dependencies": {
53
- "@storybook/builder-vite": "11.0.0-alpha.1",
54
- "@storybook/web-components": "11.0.0-alpha.1"
53
+ "@storybook/builder-vite": "11.0.0-alpha.3",
54
+ "@storybook/web-components": "11.0.0-alpha.3"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^22.19.1",
58
58
  "typescript": "^6.0.3"
59
59
  },
60
60
  "peerDependencies": {
61
- "storybook": "^11.0.0-alpha.1",
61
+ "storybook": "^11.0.0-alpha.3",
62
62
  "vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
63
63
  },
64
64
  "publishConfig": {
@@ -34,12 +34,12 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => html`
34
34
  onClick: onLogin,
35
35
  label: 'Log in',
36
36
  })}
37
- ${Button({
38
- primary: true,
39
- size: 'small',
40
- onClick: onCreateAccount,
41
- label: 'Sign up',
42
- })}`
37
+ ${Button({
38
+ primary: true,
39
+ size: 'small',
40
+ onClick: onCreateAccount,
41
+ label: 'Sign up',
42
+ })}`
43
43
  }
44
44
  </div>
45
45
  </div>
@@ -45,12 +45,12 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps
45
45
  onClick: onLogin,
46
46
  label: 'Log in',
47
47
  })}
48
- ${Button({
49
- primary: true,
50
- size: 'small',
51
- onClick: onCreateAccount,
52
- label: 'Sign up',
53
- })}`
48
+ ${Button({
49
+ primary: true,
50
+ size: 'small',
51
+ onClick: onCreateAccount,
52
+ label: 'Sign up',
53
+ })}`
54
54
  }
55
55
  </div>
56
56
  </div>