storybook-vue3-rsbuild 3.0.0-beta.3 → 3.0.0-beta.5
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_36e3b8eaba3240a1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_36e3b8eaba3240a1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1.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
|
@@ -1,3 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export * from '@storybook/vue3';
|
|
2
|
+
import { BuilderOptions, StorybookConfigRsbuild, TypescriptOptions as TypescriptOptions$1 } from 'storybook-builder-rsbuild';
|
|
3
|
+
import { StorybookConfig as StorybookConfig$1, TypescriptOptions } from 'storybook/internal/types';
|
|
4
|
+
|
|
5
|
+
type FrameworkName = 'storybook-vue3-rsbuild';
|
|
6
|
+
type BuilderName = 'storybook-builder-rsbuild';
|
|
7
|
+
type FrameworkOptions = {
|
|
8
|
+
builder?: BuilderOptions;
|
|
9
|
+
};
|
|
10
|
+
type StorybookConfigFramework = {
|
|
11
|
+
framework: FrameworkName | {
|
|
12
|
+
name: FrameworkName;
|
|
13
|
+
options: FrameworkOptions;
|
|
14
|
+
};
|
|
15
|
+
core?: StorybookConfig$1['core'] & {
|
|
16
|
+
builder?: BuilderName | {
|
|
17
|
+
name: BuilderName;
|
|
18
|
+
options: BuilderOptions;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
typescript?: Partial<TypescriptOptions & TypescriptOptions$1>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The interface for Storybook configuration in `main.ts` files.
|
|
25
|
+
*/
|
|
26
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigRsbuild | keyof StorybookConfigFramework> & StorybookConfigRsbuild & StorybookConfigFramework;
|
|
27
|
+
|
|
28
|
+
export type { FrameworkOptions, StorybookConfig };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { StorybookConfigRsbuild, BuilderOptions, TypescriptOptions as TypescriptOptions$1 } from 'storybook-builder-rsbuild';
|
|
2
|
+
import { StorybookConfig as StorybookConfig$1, TypescriptOptions } from 'storybook/internal/types';
|
|
3
|
+
|
|
4
|
+
type FrameworkName = 'storybook-vue3-rsbuild';
|
|
5
|
+
type BuilderName = 'storybook-builder-rsbuild';
|
|
6
|
+
type FrameworkOptions = {
|
|
7
|
+
builder?: BuilderOptions;
|
|
8
|
+
};
|
|
9
|
+
type StorybookConfigFramework = {
|
|
10
|
+
framework: FrameworkName | {
|
|
11
|
+
name: FrameworkName;
|
|
12
|
+
options: FrameworkOptions;
|
|
13
|
+
};
|
|
14
|
+
core?: StorybookConfig$1['core'] & {
|
|
15
|
+
builder?: BuilderName | {
|
|
16
|
+
name: BuilderName;
|
|
17
|
+
options: BuilderOptions;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
typescript?: Partial<TypescriptOptions & TypescriptOptions$1>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The interface for Storybook configuration in `main.ts` files.
|
|
24
|
+
*/
|
|
25
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigRsbuild | keyof StorybookConfigFramework> & StorybookConfigRsbuild & StorybookConfigFramework;
|
|
26
|
+
|
|
27
|
+
declare function defineMain(config: StorybookConfig): StorybookConfig;
|
|
28
|
+
|
|
29
|
+
export { defineMain };
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_36e3b8eaba3240a1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_36e3b8eaba3240a1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-PCF3ETOZ.js";
|
|
13
13
|
|
|
14
14
|
// src/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_36e3b8eaba3240a1 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_36e3b8eaba3240a1.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_36e3b8eaba3240a1.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_36e3b8eaba3240a1.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
|
__require
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-PCF3ETOZ.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
import { dirname, join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-vue3-rsbuild",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.5",
|
|
4
4
|
"description": "Storybook for Vue3 and Rsbuild: Develop React Component in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@storybook/vue3": "^10.0.0",
|
|
46
46
|
"vue-docgen-api": "^4.79.2",
|
|
47
47
|
"vue-docgen-loader": "^2.0.1",
|
|
48
|
-
"storybook-builder-rsbuild": "3.0.0-beta.
|
|
48
|
+
"storybook-builder-rsbuild": "3.0.0-beta.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@rsbuild/core": "^1.5.17",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"platform": "node"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
|
-
"build": "pnpm run prep",
|
|
77
|
+
"build": "pnpm run prep --production",
|
|
78
78
|
"check": "jiti ../../scripts/check/check-package.ts",
|
|
79
79
|
"prep": "jiti ../../scripts/build/build-package.ts"
|
|
80
80
|
}
|