storybook-html-rsbuild 3.0.0-beta.5 → 3.0.0

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,15 +1,14 @@
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";
1
+ import CJS_COMPAT_NODE_URL_1bbbe55d593a18ce from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1bbbe55d593a18ce from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1bbbe55d593a18ce from "node:module";
4
4
 
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);
5
+ var __filename = CJS_COMPAT_NODE_URL_1bbbe55d593a18ce.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1bbbe55d593a18ce.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1bbbe55d593a18ce.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-QJESX4NG.js";
13
12
 
14
13
  // src/node/index.ts
15
14
  function defineMain(config) {
package/dist/preset.js CHANGED
@@ -1,29 +1,26 @@
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";
1
+ import CJS_COMPAT_NODE_URL_1bbbe55d593a18ce from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_1bbbe55d593a18ce from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_1bbbe55d593a18ce from "node:module";
4
4
 
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);
5
+ var __filename = CJS_COMPAT_NODE_URL_1bbbe55d593a18ce.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_1bbbe55d593a18ce.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_1bbbe55d593a18ce.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 {
13
- __require
14
- } from "./_node-chunks/chunk-QJESX4NG.js";
15
12
 
16
13
  // src/preset.ts
17
- import { dirname, join } from "node:path";
18
- var getAbsolutePath = (input) => dirname(__require.resolve(join(input, "package.json"))), core = async (config, options) => {
14
+ import { fileURLToPath } from "node:url";
15
+ var core = async (config, options) => {
19
16
  let framework = await options.presets.apply("framework");
20
17
  return {
21
18
  ...config,
22
19
  builder: {
23
- name: getAbsolutePath("storybook-builder-rsbuild"),
20
+ name: fileURLToPath(import.meta.resolve("storybook-builder-rsbuild")),
24
21
  options: typeof framework == "string" ? {} : framework.options.builder || {}
25
22
  },
26
- renderer: getAbsolutePath("@storybook/html")
23
+ renderer: fileURLToPath(import.meta.resolve("@storybook/html/preset"))
27
24
  };
28
25
  };
29
26
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-html-rsbuild",
3
- "version": "3.0.0-beta.5",
3
+ "version": "3.0.0",
4
4
  "description": "Storybook for HTML and Rsbuild: View HTML snippets in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -32,9 +32,6 @@
32
32
  "./package.json": "./package.json",
33
33
  "./preset": "./dist/preset.js"
34
34
  },
35
- "main": "dist/index.mjs",
36
- "module": "dist/index.mjs",
37
- "types": "dist/index.d.ts",
38
35
  "files": [
39
36
  "dist/**/*",
40
37
  "README.md",
@@ -49,13 +46,13 @@
49
46
  "magic-string": "^0.30.21",
50
47
  "resolve": "^1.22.11",
51
48
  "tsconfig-paths": "^4.2.0",
52
- "storybook-builder-rsbuild": "3.0.0-beta.5"
49
+ "storybook-builder-rsbuild": "3.0.0"
53
50
  },
54
51
  "devDependencies": {
55
- "@rsbuild/core": "^1.5.17",
52
+ "@rsbuild/core": "^1.6.7",
56
53
  "@types/node": "^22.0.0",
57
54
  "@types/resolve": "^1.20.6",
58
- "storybook": "10.0.7",
55
+ "storybook": "10.0.8",
59
56
  "typescript": "^5.9.3"
60
57
  },
61
58
  "peerDependencies": {
@@ -1,21 +0,0 @@
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
-
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
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
13
- get: (a, b) => (typeof require < "u" ? require : a)[b]
14
- }) : x)(function(x) {
15
- if (typeof require < "u") return require.apply(this, arguments);
16
- throw Error('Dynamic require of "' + x + '" is not supported');
17
- });
18
-
19
- export {
20
- __require
21
- };