storybook-html-rsbuild 3.0.0-beta.4 → 3.0.0-beta.6

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_fd0f005a1343e78f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_fd0f005a1343e78f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_95a61e2666a768dc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_95a61e2666a768dc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_95a61e2666a768dc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_fd0f005a1343e78f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_fd0f005a1343e78f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_95a61e2666a768dc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_95a61e2666a768dc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_95a61e2666a768dc.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-JVT2DK27.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_fd0f005a1343e78f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_fd0f005a1343e78f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f from "node:module";
1
+ import CJS_COMPAT_NODE_URL_95a61e2666a768dc from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_95a61e2666a768dc from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_95a61e2666a768dc from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_fd0f005a1343e78f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_fd0f005a1343e78f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_95a61e2666a768dc.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_95a61e2666a768dc.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_95a61e2666a768dc.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-JVT2DK27.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.4",
3
+ "version": "3.0.0-beta.6",
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.4"
49
+ "storybook-builder-rsbuild": "3.0.0-beta.6"
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_fd0f005a1343e78f from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_fd0f005a1343e78f from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_fd0f005a1343e78f.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_fd0f005a1343e78f.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_fd0f005a1343e78f.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
- };