@storybook/svelte-vite 11.0.0-beta.0 → 11.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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_0g9mf97iegft from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_0g9mf97iegft from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_0g9mf97iegft from "node:module";
1
+ import CJS_COMPAT_NODE_URL_tt3rfvxhfy from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_tt3rfvxhfy from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_tt3rfvxhfy from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_0g9mf97iegft.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_0g9mf97iegft.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_0g9mf97iegft.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_tt3rfvxhfy.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_tt3rfvxhfy.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_tt3rfvxhfy.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_0g9mf97iegft from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_0g9mf97iegft from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_0g9mf97iegft from "node:module";
1
+ import CJS_COMPAT_NODE_URL_tt3rfvxhfy from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_tt3rfvxhfy from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_tt3rfvxhfy from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_0g9mf97iegft.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_0g9mf97iegft.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_0g9mf97iegft.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_tt3rfvxhfy.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_tt3rfvxhfy.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_tt3rfvxhfy.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": "11.0.0-beta.0",
3
+ "version": "11.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",
@@ -52,8 +52,8 @@
52
52
  "!src/**/*"
53
53
  ],
54
54
  "dependencies": {
55
- "@storybook/builder-vite": "11.0.0-beta.0",
56
- "@storybook/svelte": "11.0.0-beta.0",
55
+ "@storybook/builder-vite": "11.0.0-beta.1",
56
+ "@storybook/svelte": "11.0.0-beta.1",
57
57
  "magic-string": "^1.1.0"
58
58
  },
59
59
  "devDependencies": {
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@sveltejs/vite-plugin-svelte": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
70
- "storybook": "^11.0.0-beta.0",
70
+ "storybook": "^11.0.0-beta.1",
71
71
  "svelte": "^5.0.0",
72
72
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
73
73
  "vite": "^6.3.0 || ^7.0.0 || ^8.0.0"
@@ -1,10 +1,10 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import Button from './Button.svelte';
4
4
  import { fn } from 'storybook/test';
5
5
 
6
6
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
- const { Story } = defineMeta({
7
+ const { Story } = preview.meta({
8
8
  title: 'Example/Button',
9
9
  component: Button,
10
10
  tags: ['autodocs'],
@@ -1,10 +1,10 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import Header from './Header.svelte';
4
4
  import { fn } from 'storybook/test';
5
5
 
6
6
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
- const { Story } = defineMeta({
7
+ const { Story } = preview.meta({
8
8
  title: 'Example/Header',
9
9
  component: Header,
10
10
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
@@ -1,11 +1,11 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import { expect, userEvent, waitFor, within } from 'storybook/test';
4
4
  import Page from './Page.svelte';
5
5
  import { fn } from 'storybook/test';
6
6
 
7
7
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
8
- const { Story } = defineMeta({
8
+ const { Story } = preview.meta({
9
9
  title: 'Example/Page',
10
10
  component: Page,
11
11
  parameters: {
@@ -1,10 +1,10 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import Button from './Button.svelte';
4
4
  import { fn } from 'storybook/test';
5
5
 
6
6
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
- const { Story } = defineMeta({
7
+ const { Story } = preview.meta({
8
8
  title: 'Example/Button',
9
9
  component: Button,
10
10
  tags: ['autodocs'],
@@ -1,10 +1,10 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import Header from './Header.svelte';
4
4
  import { fn } from 'storybook/test';
5
5
 
6
6
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
7
- const { Story } = defineMeta({
7
+ const { Story } = preview.meta({
8
8
  title: 'Example/Header',
9
9
  component: Header,
10
10
  // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
@@ -1,11 +1,11 @@
1
1
  <script module>
2
- import { defineMeta } from '@storybook/svelte-vite';
2
+ import preview from '../../.storybook/preview';
3
3
  import { expect, userEvent, waitFor, within } from 'storybook/test';
4
4
  import Page from './Page.svelte';
5
5
  import { fn } from 'storybook/test';
6
6
 
7
7
  // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
8
- const { Story } = defineMeta({
8
+ const { Story } = preview.meta({
9
9
  title: 'Example/Page',
10
10
  component: Page,
11
11
  parameters: {