storybook-html-rsbuild 2.0.0-alpha.1 → 2.0.0-alpha.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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from '@storybook/html';
1
2
  import { BuilderOptions, StorybookConfigRsbuild, TypescriptOptions as TypescriptOptions$1 } from 'storybook-builder-rsbuild';
2
3
  import { StorybookConfig as StorybookConfig$1, TypescriptOptions } from 'storybook/internal/types';
3
4
 
package/dist/index.js CHANGED
@@ -11,8 +11,14 @@ var __copyProps = (to, from, except, desc) => {
11
11
  }
12
12
  return to;
13
13
  };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
16
 
16
17
  // src/index.ts
17
18
  var src_exports = {};
18
19
  module.exports = __toCommonJS(src_exports);
20
+ __reExport(src_exports, require("@storybook/html"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("@storybook/html")
24
+ });
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
-
1
+ export * from '@storybook/html';
@@ -0,0 +1,8 @@
1
+ import { StorybookConfig } from '../index.js';
2
+ import '@storybook/html';
3
+ import 'storybook-builder-rsbuild';
4
+ import 'storybook/internal/types';
5
+
6
+ declare function defineMain(config: StorybookConfig): StorybookConfig;
7
+
8
+ export { defineMain };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/node/index.ts
21
+ var node_exports = {};
22
+ __export(node_exports, {
23
+ defineMain: () => defineMain
24
+ });
25
+ module.exports = __toCommonJS(node_exports);
26
+ function defineMain(config) {
27
+ return config;
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ defineMain
32
+ });
@@ -0,0 +1,6 @@
1
+ // src/node/index.ts
2
+ function defineMain(config) {
3
+ return config;
4
+ }
5
+
6
+ export { defineMain };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-html-rsbuild",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Storybook for HTML and Rsbuild: View HTML snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -30,6 +30,12 @@
30
30
  "types": "./dist/preset.d.ts",
31
31
  "require": "./dist/preset.js"
32
32
  },
33
+ "./node": {
34
+ "types": "./dist/node/index.d.ts",
35
+ "node": "./dist/node/index.js",
36
+ "import": "./dist/node/index.mjs",
37
+ "require": "./dist/node/index.js"
38
+ },
33
39
  "./package.json": "./package.json"
34
40
  },
35
41
  "main": "dist/index.js",
@@ -44,24 +50,24 @@
44
50
  ],
45
51
  "dependencies": {
46
52
  "@rollup/pluginutils": "^5.1.4",
47
- "@storybook/html": "^9.0.0-alpha.17",
53
+ "@storybook/html": "^9.0.0",
48
54
  "@types/node": "^18.0.0",
49
55
  "find-up": "^5.0.0",
50
56
  "magic-string": "^0.30.17",
51
57
  "resolve": "^1.22.10",
52
58
  "tsconfig-paths": "^4.2.0",
53
- "storybook-builder-rsbuild": "2.0.0-alpha.1"
59
+ "storybook-builder-rsbuild": "2.0.0-alpha.2"
54
60
  },
55
61
  "devDependencies": {
56
62
  "@rsbuild/core": "^1.2.19",
57
63
  "@storybook/types": "9.0.0-alpha.1",
58
64
  "@types/resolve": "^1.20.6",
59
- "storybook": "9.0.0-alpha.17",
65
+ "storybook": "9.0.0",
60
66
  "typescript": "^5.7.3"
61
67
  },
62
68
  "peerDependencies": {
63
69
  "@rsbuild/core": "^1.0.1",
64
- "storybook": "^9.0.0-alpha.17",
70
+ "storybook": "^9.0.0",
65
71
  "typescript": ">= 4.2.x"
66
72
  },
67
73
  "peerDependenciesMeta": {
@@ -77,6 +83,7 @@
77
83
  },
78
84
  "bundler": {
79
85
  "entries": [
86
+ "./src/node/index.ts",
80
87
  "./src/index.ts",
81
88
  "./src/preset.ts"
82
89
  ],