storybook-html-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 CJS_COMPAT_NODE_URL_e4fae00dc459525c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_e4fae00dc459525c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_e4fae00dc459525c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_576a864a7eed3557 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_576a864a7eed3557 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_576a864a7eed3557 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_e4fae00dc459525c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_e4fae00dc459525c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_e4fae00dc459525c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_576a864a7eed3557.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_576a864a7eed3557.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_576a864a7eed3557.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
- // auto generated file from file:///Users/fi3ework/OSS/storybook-rsbuild/scripts/build/utils/generate-type-mappers.ts, do not edit
2
- export * from '../src/index.ts';
3
- export type * from '../src/index.ts';
1
+ export * from '@storybook/html';
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-html-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 };
@@ -1,3 +1,29 @@
1
- // auto generated file from file:///Users/fi3ework/OSS/storybook-rsbuild/scripts/build/utils/generate-type-mappers.ts, do not edit
2
- export * from '../../src/node/index.ts';
3
- export type * from '../../src/node/index.ts';
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-html-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 };
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_e4fae00dc459525c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_e4fae00dc459525c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_e4fae00dc459525c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_576a864a7eed3557 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_576a864a7eed3557 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_576a864a7eed3557 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_e4fae00dc459525c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_e4fae00dc459525c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_e4fae00dc459525c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_576a864a7eed3557.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_576a864a7eed3557.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_576a864a7eed3557.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-QHJETDMP.js";
12
+ import "../_node-chunks/chunk-QJESX4NG.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 CJS_COMPAT_NODE_URL_e4fae00dc459525c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_e4fae00dc459525c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_e4fae00dc459525c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_576a864a7eed3557 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_576a864a7eed3557 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_576a864a7eed3557 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_e4fae00dc459525c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_e4fae00dc459525c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_e4fae00dc459525c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_576a864a7eed3557.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_576a864a7eed3557.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_576a864a7eed3557.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-QHJETDMP.js";
14
+ } from "./_node-chunks/chunk-QJESX4NG.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-html-rsbuild",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "Storybook for HTML and Rsbuild: View HTML snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -49,7 +49,7 @@
49
49
  "magic-string": "^0.30.21",
50
50
  "resolve": "^1.22.11",
51
51
  "tsconfig-paths": "^4.2.0",
52
- "storybook-builder-rsbuild": "3.0.0-beta.3"
52
+ "storybook-builder-rsbuild": "3.0.0-beta.5"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@rsbuild/core": "^1.5.17",
@@ -83,7 +83,7 @@
83
83
  "platform": "node"
84
84
  },
85
85
  "scripts": {
86
- "build": "pnpm run prep",
86
+ "build": "pnpm run prep --production",
87
87
  "check": "jiti ../../scripts/check/check-package.ts",
88
88
  "prep": "jiti ../../scripts/build/build-package.ts"
89
89
  }