@lobehub/charts 5.7.1 → 5.7.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.
Files changed (1) hide show
  1. package/package.json +128 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/charts",
3
- "version": "5.7.1",
3
+ "version": "5.7.2",
4
4
  "description": "React modern charts components built on recharts",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -25,16 +25,52 @@
25
25
  "import": "./es/index.mjs",
26
26
  "default": "./es/index.mjs"
27
27
  },
28
+ "./es/utils": "./es/utils/index.mjs",
29
+ "./es/*/ArrowRightIcon": "./es/*/ArrowRightIcon.mjs",
30
+ "./es/*/BaseAnimationTimingProps": "./es/*/BaseAnimationTimingProps.mjs",
31
+ "./es/*/BaseChartProps": "./es/*/BaseChartProps.mjs",
32
+ "./es/*/BaseSparkChartProps": "./es/*/BaseSparkChartProps.mjs",
33
+ "./es/*/Calendar": "./es/*/Calendar.mjs",
34
+ "./es/*/CategoryBar": "./es/*/CategoryBar.mjs",
35
+ "./es/*/ChartLabels": "./es/*/ChartLabels.mjs",
36
+ "./es/*/ChartLegend": "./es/*/ChartLegend.mjs",
37
+ "./es/*/ChartTooltipFrame": "./es/*/ChartTooltipFrame.mjs",
38
+ "./es/*/ChartTooltipRow": "./es/*/ChartTooltipRow.mjs",
39
+ "./es/*/CustomTooltipProps": "./es/*/CustomTooltipProps.mjs",
40
+ "./es/*/CustomYAxisTick": "./es/*/CustomYAxisTick.mjs",
41
+ "./es/*/DeltaBar": "./es/*/DeltaBar.mjs",
42
+ "./es/*/DonutChartTooltip": "./es/*/DonutChartTooltip.mjs",
43
+ "./es/*/Footer": "./es/*/Footer.mjs",
44
+ "./es/*/LegendItem": "./es/*/LegendItem.mjs",
45
+ "./es/*/MarkerBar": "./es/*/MarkerBar.mjs",
46
+ "./es/*/NoData": "./es/*/NoData.mjs",
47
+ "./es/*/ProgressBar": "./es/*/ProgressBar.mjs",
48
+ "./es/*/ScatterChartTooltip": "./es/*/ScatterChartTooltip.mjs",
49
+ "./es/*/ScatterChartTooltipRow": "./es/*/ScatterChartTooltipRow.mjs",
50
+ "./es/*/ScrollButton": "./es/*/ScrollButton.mjs",
51
+ "./es/*/SparkAreaChart": "./es/*/SparkAreaChart.mjs",
52
+ "./es/*/SparkBarChart": "./es/*/SparkBarChart.mjs",
53
+ "./es/*/SparkLineChart": "./es/*/SparkLineChart.mjs",
54
+ "./es/*/TrackerBlock": "./es/*/TrackerBlock.mjs",
55
+ "./es/*/calendar": "./es/*/calendar.mjs",
56
+ "./es/*/charts": "./es/*/charts.mjs",
57
+ "./es/*/getMaxLabelLength": "./es/*/getMaxLabelLength.mjs",
58
+ "./es/*/inputParser": "./es/*/inputParser.mjs",
59
+ "./es/*/renderInactiveShape": "./es/*/renderInactiveShape.mjs",
60
+ "./es/*/renderShape": "./es/*/renderShape.mjs",
61
+ "./es/*/styles": "./es/*/styles.mjs",
62
+ "./es/*/theme": "./es/*/theme.mjs",
63
+ "./es/*/types": "./es/*/types.mjs",
64
+ "./es/*/useOnWindowResize": "./es/*/useOnWindowResize.mjs",
65
+ "./es/*/usePrefersReducedMotion": "./es/*/usePrefersReducedMotion.mjs",
66
+ "./es/*/useThemeColorRange": "./es/*/useThemeColorRange.mjs",
67
+ "./es/*/utils": "./es/*/utils.mjs",
68
+ "./es/*": "./es/*/index.mjs",
28
69
  "./es/*.js": {
29
70
  "types": "./es/*.d.mts",
30
71
  "import": "./es/*.mjs",
31
72
  "default": "./es/*.mjs"
32
73
  },
33
- "./es/*": {
34
- "types": "./es/*/index.d.mts",
35
- "import": "./es/*/index.mjs",
36
- "default": "./es/*/index.mjs"
37
- },
38
74
  "./package.json": "./package.json"
39
75
  },
40
76
  "main": "es/index.mjs",
@@ -43,6 +79,50 @@
43
79
  "files": [
44
80
  "es"
45
81
  ],
82
+ "scripts": {
83
+ "build": "tsdown",
84
+ "postbuild": "node scripts/generateExports.mjs",
85
+ "build:watch": "tsdown --watch",
86
+ "ci": "npm run lint && npm run type-check",
87
+ "clean": "rm -r es lib dist coverage .react-router .eslintcache node_modules/.cache",
88
+ "dev": "lobedocs dev",
89
+ "docs:build": "lobedocs build",
90
+ "docs:build-analyze": "ANALYZE=1 lobedocs build",
91
+ "lint": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
92
+ "lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
93
+ "lint:md": "remark . --quiet --frail --output",
94
+ "lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
95
+ "prepare": "husky && npm run setup",
96
+ "prepublishOnly": "npm run build",
97
+ "prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
98
+ "pull": "git pull",
99
+ "release": "semantic-release",
100
+ "setup": "lobedocs typegen",
101
+ "start": "npm run dev",
102
+ "test": "vitest --passWithNoTests",
103
+ "test:coverage": "vitest run --coverage --passWithNoTests",
104
+ "test:update": "vitest -u",
105
+ "type-check": "tsc --noEmit"
106
+ },
107
+ "lint-staged": {
108
+ "*.md": [
109
+ "remark --quiet --output --",
110
+ "prettier --write --no-error-on-unmatched-pattern"
111
+ ],
112
+ "*.json": [
113
+ "prettier --write --no-error-on-unmatched-pattern"
114
+ ],
115
+ "*.{js,jsx}": [
116
+ "prettier --write",
117
+ "stylelint --fix",
118
+ "eslint --fix"
119
+ ],
120
+ "*.{ts,tsx}": [
121
+ "prettier --parser=typescript --write",
122
+ "stylelint --fix",
123
+ "eslint --fix"
124
+ ]
125
+ },
46
126
  "dependencies": {
47
127
  "ahooks": "^3.10.0",
48
128
  "antd-style": "^4.1.0",
@@ -53,10 +133,52 @@
53
133
  "lucide-react": "^0.562.0",
54
134
  "recharts": "^2.15.4"
55
135
  },
136
+ "devDependencies": {
137
+ "@commitlint/cli": "^19.8.1",
138
+ "@icons-pack/react-simple-icons": "^9.7.0",
139
+ "@lobehub/docs-kit": "^5.27.4",
140
+ "@lobehub/icons": "^5.19.3",
141
+ "@lobehub/lint": "^1.26.3",
142
+ "@lobehub/ui": "^5.56.0",
143
+ "@react-router/dev": "8.2.0",
144
+ "@testing-library/react": "^16.3.3",
145
+ "@types/chroma-js": "^3.1.2",
146
+ "@types/pangu": "^4.0.2",
147
+ "@types/react": "^19.3.0",
148
+ "@types/react-dom": "^19.3.0",
149
+ "@vitest/coverage-v8": "~1.2.2",
150
+ "antd": "^6.6.5",
151
+ "babel-plugin-antd-style": "^1.0.4",
152
+ "commitlint": "^19.8.1",
153
+ "cross-env": "^10.1.0",
154
+ "dpdm": "^3.15.1",
155
+ "eslint": "^8.57.1",
156
+ "husky": "^9.1.7",
157
+ "jsdom": "^27.4.0",
158
+ "lint-staged": "^16.4.0",
159
+ "polished": "^4.3.1",
160
+ "prettier": "^3.9.8",
161
+ "react": "^19.3.0",
162
+ "react-dom": "^19.3.0",
163
+ "react-router": "8.2.0",
164
+ "remark": "^15.0.1",
165
+ "remark-cli": "^12.0.1",
166
+ "semantic-release": "^21.1.2",
167
+ "stylelint": "^15.11.0",
168
+ "tsdown": "^0.23.1",
169
+ "tsx": "^4.23.15",
170
+ "typescript": "^5.9.3",
171
+ "vite": "8.1.4",
172
+ "vitest": "~1.2.2"
173
+ },
56
174
  "peerDependencies": {
57
175
  "@lobehub/ui": "^5.54.0",
58
176
  "antd": "^6.1.1",
59
177
  "react": "^19.0.0",
60
178
  "react-dom": "^19.0.0"
179
+ },
180
+ "publishConfig": {
181
+ "access": "public",
182
+ "registry": "https://registry.npmjs.org"
61
183
  }
62
184
  }