@storybook/svelte-vite 11.0.0-beta.0 → 11.0.0-beta.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.
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/package.json +4 -4
- package/template/cli/js/Button.stories.svelte +2 -2
- package/template/cli/js/Header.stories.svelte +2 -2
- package/template/cli/js/Page.stories.svelte +2 -2
- package/template/cli/ts/Button.stories.svelte +2 -2
- package/template/cli/ts/Header.stories.svelte +2 -2
- package/template/cli/ts/Page.stories.svelte +2 -2
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_v4ypuzgn6hc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_v4ypuzgn6hc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_v4ypuzgn6hc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_v4ypuzgn6hc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_v4ypuzgn6hc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_v4ypuzgn6hc.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_v4ypuzgn6hc from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_v4ypuzgn6hc from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_v4ypuzgn6hc from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_v4ypuzgn6hc.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_v4ypuzgn6hc.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_v4ypuzgn6hc.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.
|
|
3
|
+
"version": "11.0.0-beta.2",
|
|
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.
|
|
56
|
-
"@storybook/svelte": "11.0.0-beta.
|
|
55
|
+
"@storybook/builder-vite": "11.0.0-beta.2",
|
|
56
|
+
"@storybook/svelte": "11.0.0-beta.2",
|
|
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.
|
|
70
|
+
"storybook": "^11.0.0-beta.2",
|
|
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
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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
|
|
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 } =
|
|
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
|
|
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 } =
|
|
8
|
+
const { Story } = preview.meta({
|
|
9
9
|
title: 'Example/Page',
|
|
10
10
|
component: Page,
|
|
11
11
|
parameters: {
|