@storybook/vue3-vite 10.0.0-beta.0 → 10.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.
- package/dist/_node-chunks/{chunk-LJJ3IO2Q.js → chunk-6TIX4UMN.js} +7 -7
- package/dist/_node-chunks/{chunk-TF3SOP6Y.js → chunk-JN55KCLZ.js} +6 -6
- package/dist/index.d.ts +3 -1
- package/dist/node/index.d.ts +3 -1
- package/dist/node/index.js +7 -7
- package/dist/preset.js +18 -13
- package/dist/vite-plugin.js +8 -8
- package/package.json +4 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lmbvcx05o58 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lmbvcx05o58 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lmbvcx05o58 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lmbvcx05o58.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lmbvcx05o58.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lmbvcx05o58.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-JN55KCLZ.js";
|
|
15
15
|
|
|
16
16
|
// src/plugins/vue-template.ts
|
|
17
17
|
async function templateCompilation() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lmbvcx05o58 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lmbvcx05o58 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lmbvcx05o58 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lmbvcx05o58.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lmbvcx05o58.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lmbvcx05o58.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.d.ts
CHANGED
|
@@ -18,9 +18,11 @@ type FrameworkOptions = {
|
|
|
18
18
|
* "vue-component-meta" will become the new default in the future and "vue-docgen-api" will be
|
|
19
19
|
* removed.
|
|
20
20
|
*
|
|
21
|
+
* Set to `false` to disable docgen processing entirely for improved build performance.
|
|
22
|
+
*
|
|
21
23
|
* @default 'vue-docgen-api'
|
|
22
24
|
*/
|
|
23
|
-
docgen?: VueDocgenPlugin | {
|
|
25
|
+
docgen?: boolean | VueDocgenPlugin | {
|
|
24
26
|
plugin: 'vue-component-meta';
|
|
25
27
|
/**
|
|
26
28
|
* Tsconfig filename to use. Should be set if your main `tsconfig.json` includes references
|
package/dist/node/index.d.ts
CHANGED
|
@@ -15,9 +15,11 @@ type FrameworkOptions = {
|
|
|
15
15
|
* "vue-component-meta" will become the new default in the future and "vue-docgen-api" will be
|
|
16
16
|
* removed.
|
|
17
17
|
*
|
|
18
|
+
* Set to `false` to disable docgen processing entirely for improved build performance.
|
|
19
|
+
*
|
|
18
20
|
* @default 'vue-docgen-api'
|
|
19
21
|
*/
|
|
20
|
-
docgen?: VueDocgenPlugin | {
|
|
22
|
+
docgen?: boolean | VueDocgenPlugin | {
|
|
21
23
|
plugin: 'vue-component-meta';
|
|
22
24
|
/**
|
|
23
25
|
* Tsconfig filename to use. Should be set if your main `tsconfig.json` includes references
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lmbvcx05o58 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lmbvcx05o58 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lmbvcx05o58 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lmbvcx05o58.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lmbvcx05o58.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lmbvcx05o58.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-JN55KCLZ.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_lmbvcx05o58 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lmbvcx05o58 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lmbvcx05o58 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lmbvcx05o58.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lmbvcx05o58.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lmbvcx05o58.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-6TIX4UMN.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-JN55KCLZ.js";
|
|
18
18
|
|
|
19
19
|
// src/plugins/vue-component-meta.ts
|
|
20
20
|
import { readFile, stat } from "node:fs/promises";
|
|
@@ -247,10 +247,12 @@ var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
247
247
|
const framework = await options.presets.apply("framework");
|
|
248
248
|
const frameworkOptions = typeof framework === "string" ? {} : framework.options ?? {};
|
|
249
249
|
const docgen = resolveDocgenOptions(frameworkOptions.docgen);
|
|
250
|
-
if (docgen
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
if (docgen !== false) {
|
|
251
|
+
if (docgen.plugin === "vue-component-meta") {
|
|
252
|
+
plugins.push(await vueComponentMeta(docgen.tsconfig));
|
|
253
|
+
} else {
|
|
254
|
+
plugins.push(await vueDocgen());
|
|
255
|
+
}
|
|
254
256
|
}
|
|
255
257
|
const { mergeConfig } = await import("vite");
|
|
256
258
|
return mergeConfig(config, {
|
|
@@ -258,7 +260,10 @@ var viteFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
258
260
|
});
|
|
259
261
|
}, "viteFinal");
|
|
260
262
|
var resolveDocgenOptions = /* @__PURE__ */ __name((docgen) => {
|
|
261
|
-
if (
|
|
263
|
+
if (docgen === false) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
if (docgen === void 0 || docgen === true) {
|
|
262
267
|
return { plugin: "vue-docgen-api" };
|
|
263
268
|
}
|
|
264
269
|
if (typeof docgen === "string") {
|
package/dist/vite-plugin.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lmbvcx05o58 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lmbvcx05o58 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lmbvcx05o58 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lmbvcx05o58.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lmbvcx05o58.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lmbvcx05o58.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-6TIX4UMN.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-JN55KCLZ.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.1",
|
|
4
4
|
"description": "Storybook for Vue3 and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -51,8 +51,8 @@
|
|
|
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.
|
|
54
|
+
"@storybook/builder-vite": "10.0.0-beta.1",
|
|
55
|
+
"@storybook/vue3": "10.0.0-beta.1",
|
|
56
56
|
"find-package-json": "^1.2.0",
|
|
57
57
|
"magic-string": "^0.30.0",
|
|
58
58
|
"typescript": "^5.8.3",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vite": "^7.0.4"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"storybook": "^10.0.0-beta.
|
|
69
|
+
"storybook": "^10.0.0-beta.1",
|
|
70
70
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|