@qy_better_lib/hooks 0.2.7 → 0.2.9

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.
@@ -152,7 +152,7 @@ function use_chart(options$1 = {}) {
152
152
  deep_assign(merged_options, dark_theme);
153
153
  }
154
154
  const renderer = render_options?.default_renderer || default_renderer;
155
- const chart = await init_chart(dom_id, merged_options, renderer, theme === "dark" ? "dark" : void 0);
155
+ const chart = await init_chart(chart_dom, merged_options, renderer, theme === "dark" ? "dark" : void 0);
156
156
  if (chart) {
157
157
  chart_map.set(dom_id, chart);
158
158
  if (render_options?.auto_responsive ?? auto_responsive) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qy_better_lib/hooks",
3
3
  "private": false,
4
- "version": "0.2.7",
4
+ "version": "0.2.9",
5
5
  "description": "qy better lib hooks",
6
6
  "author": "luhuiming",
7
7
  "license": "MIT",
@@ -12,12 +12,12 @@
12
12
  "test": "vitest run",
13
13
  "test:watch": "vitest"
14
14
  },
15
- "main": "lib/index.js",
16
- "module": "lib/index.js",
15
+ "main": "lib/index.mjs",
16
+ "module": "lib/index.mjs",
17
17
  "types": "lib/index.d.ts",
18
18
  "typesVersions": {
19
19
  "*": {
20
- "lib/index.js": [
20
+ "lib/index.mjs": [
21
21
  "lib/index.d.ts"
22
22
  ],
23
23
  "@qy-better-lib/hooks": [
@@ -34,29 +34,29 @@
34
34
  },
35
35
  "exports": {
36
36
  ".": {
37
- "import": "./lib/index.js",
37
+ "import": "./lib/index.mjs",
38
38
  "types": "./lib/index.d.ts"
39
39
  },
40
40
  "./*": {
41
- "import": "./lib/*/index.js",
41
+ "import": "./lib/*/index.mjs",
42
42
  "types": "./lib/*/index.d.ts"
43
43
  },
44
44
  "./use-chart": {
45
- "import": "./lib/use-chart/index.js",
45
+ "import": "./lib/use-chart/index.mjs",
46
46
  "types": "./lib/use-chart/index.d.ts"
47
47
  },
48
48
  "./use-layout-flow": {
49
- "import": "./lib/use-layout-flow/index.js",
49
+ "import": "./lib/use-layout-flow/index.mjs",
50
50
  "types": "./lib/use-layout-flow/index.d.ts"
51
51
  },
52
52
  "./use-mqtt": {
53
- "import": "./lib/use-mqtt/index.js",
53
+ "import": "./lib/use-mqtt/index.mjs",
54
54
  "types": "./lib/use-mqtt/index.d.ts"
55
55
  }
56
56
  },
57
57
  "devDependencies": {
58
58
  "@antv/x6": "^2.18.1",
59
- "@qy_better_lib/core": "^0.2.6",
59
+ "@qy_better_lib/core": "^0.2.8",
60
60
  "@types/dagre": "^0.7.53",
61
61
  "@types/node": "^24.5.2",
62
62
  "@vitejs/plugin-vue": "^6.0.1",