@storybook/vue3-vite 10.0.0-beta.2 → 10.0.0-beta.4
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-chunks/{chunk-7KFD6KOI.js → chunk-7KRGZ6VV.js} +7 -7
- package/dist/_node-chunks/chunk-KNCKMVBH.js +17 -0
- package/dist/node/index.js +7 -7
- package/dist/preset.js +8 -8
- package/dist/vite-plugin.js +8 -8
- package/package.json +4 -6
- package/template/cli/js/Button.stories.js +1 -1
- package/template/cli/ts/Button.stories.ts +1 -1
- package/dist/_node-chunks/chunk-FBUTOJ72.js +0 -17
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ghaz1bylpa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ghaz1bylpa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ghaz1bylpa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ghaz1bylpa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ghaz1bylpa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ghaz1bylpa.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KNCKMVBH.js";
|
|
15
15
|
|
|
16
16
|
// src/plugins/vue-template.ts
|
|
17
17
|
async function templateCompilation() {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ghaz1bylpa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ghaz1bylpa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ghaz1bylpa from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ghaz1bylpa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ghaz1bylpa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ghaz1bylpa.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
__name
|
|
17
|
+
};
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ghaz1bylpa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ghaz1bylpa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ghaz1bylpa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ghaz1bylpa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ghaz1bylpa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ghaz1bylpa.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-KNCKMVBH.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ghaz1bylpa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ghaz1bylpa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ghaz1bylpa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ghaz1bylpa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ghaz1bylpa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ghaz1bylpa.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
templateCompilation
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-7KRGZ6VV.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-KNCKMVBH.js";
|
|
18
18
|
|
|
19
19
|
// src/plugins/vue-component-meta.ts
|
|
20
20
|
import { readFile, stat } from "node:fs/promises";
|
package/dist/vite-plugin.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ghaz1bylpa from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ghaz1bylpa from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ghaz1bylpa from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ghaz1bylpa.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ghaz1bylpa.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ghaz1bylpa.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
templateCompilation
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-7KRGZ6VV.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-KNCKMVBH.js";
|
|
18
18
|
|
|
19
19
|
// src/vite-plugin.ts
|
|
20
20
|
var storybookVuePlugin = /* @__PURE__ */ __name(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/vue3-vite",
|
|
3
|
-
"version": "10.0.0-beta.
|
|
3
|
+
"version": "10.0.0-beta.4",
|
|
4
4
|
"description": "Storybook for Vue3 and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -51,22 +51,20 @@
|
|
|
51
51
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@storybook/builder-vite": "10.0.0-beta.
|
|
55
|
-
"@storybook/vue3": "10.0.0-beta.
|
|
56
|
-
"find-package-json": "^1.2.0",
|
|
54
|
+
"@storybook/builder-vite": "10.0.0-beta.4",
|
|
55
|
+
"@storybook/vue3": "10.0.0-beta.4",
|
|
57
56
|
"magic-string": "^0.30.0",
|
|
58
57
|
"typescript": "^5.8.3",
|
|
59
58
|
"vue-component-meta": "^2.0.0",
|
|
60
59
|
"vue-docgen-api": "^4.75.1"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@types/find-package-json": "^1.2.6",
|
|
64
62
|
"@types/node": "^22.0.0",
|
|
65
63
|
"typescript": "^5.8.3",
|
|
66
64
|
"vite": "^7.0.4"
|
|
67
65
|
},
|
|
68
66
|
"peerDependencies": {
|
|
69
|
-
"storybook": "^10.0.0-beta.
|
|
67
|
+
"storybook": "^10.0.0-beta.4",
|
|
70
68
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
71
69
|
},
|
|
72
70
|
"publishConfig": {
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
size: { control: { type: 'select' }, options: ['small', 'medium', 'large'] },
|
|
12
12
|
backgroundColor: { control: 'color' },
|
|
13
13
|
},
|
|
14
|
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#
|
|
14
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
|
|
15
15
|
args: { onClick: fn() },
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -16,7 +16,7 @@ const meta = {
|
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
18
18
|
primary: false,
|
|
19
|
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#
|
|
19
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
|
|
20
20
|
onClick: fn(),
|
|
21
21
|
},
|
|
22
22
|
} satisfies Meta<typeof Button>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_vuohxpwe5cc from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_vuohxpwe5cc from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_vuohxpwe5cc from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_vuohxpwe5cc.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_vuohxpwe5cc.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_vuohxpwe5cc.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
__name
|
|
17
|
-
};
|