@geo2france/api-dashboard 1.16.0 → 1.18.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.
Files changed (42) hide show
  1. package/README.MD +22 -19
  2. package/dist/components/Charts/ChartEcharts.d.ts +6 -2
  3. package/dist/components/Charts/ChartEcharts.js +1 -2
  4. package/dist/components/Charts/Pie.d.ts +21 -3
  5. package/dist/components/Charts/Pie.js +22 -3
  6. package/dist/components/Charts/Statistics.d.ts +9 -7
  7. package/dist/components/Charts/Statistics.js +12 -10
  8. package/dist/components/Charts/YearSerie.d.ts +1 -2
  9. package/dist/components/Charts/YearSerie.js +1 -0
  10. package/dist/components/Control/Control.d.ts +21 -5
  11. package/dist/components/Control/Control.js +28 -6
  12. package/dist/components/Control/Radio.d.ts +4 -4
  13. package/dist/components/Control/Radio.js +3 -0
  14. package/dist/components/Control/Select.d.ts +5 -3
  15. package/dist/components/Control/Select.js +4 -4
  16. package/dist/components/DashboardPage/Block.js +4 -2
  17. package/dist/components/DashboardPage/Intro.d.ts +12 -0
  18. package/dist/components/DashboardPage/Intro.js +21 -0
  19. package/dist/components/DashboardPage/Page.d.ts +0 -8
  20. package/dist/components/DashboardPage/Page.js +12 -6
  21. package/dist/components/Dataset/Dataset.js +2 -4
  22. package/dist/components/Dataset/Producer.js +2 -2
  23. package/dist/components/Dataset/Transform.d.ts +13 -3
  24. package/dist/components/Dataset/Transform.js +5 -4
  25. package/dist/components/Dataset/hooks.d.ts +5 -1
  26. package/dist/components/Dataset/hooks.js +26 -1
  27. package/dist/components/Debug/Debug.js +1 -1
  28. package/dist/components/Layout/DashboardApp.d.ts +4 -0
  29. package/dist/components/Layout/DashboardApp.js +5 -13
  30. package/dist/components/Layout/Footer.js +42 -4
  31. package/dist/components/Layout/Sider.d.ts +1 -0
  32. package/dist/components/Layout/Sider.js +20 -19
  33. package/dist/components/NextPrevSelect/NextPrevSelect.d.ts +7 -6
  34. package/dist/components/NextPrevSelect/NextPrevSelect.js +16 -12
  35. package/dist/data_providers/file/utils/axios.js +2 -15
  36. package/dist/dsl/index.d.ts +3 -2
  37. package/dist/dsl/index.js +3 -2
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.js +1 -0
  40. package/dist/utils/aggregator.d.ts +18 -0
  41. package/dist/utils/aggregator.js +49 -0
  42. package/package.json +25 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geo2france/api-dashboard",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "private": false,
5
5
  "description": "Build dashboards with JSX/TSX",
6
6
  "main": "dist/index.js",
@@ -42,7 +42,9 @@
42
42
  },
43
43
  "scripts": {
44
44
  "tsc": "tsc",
45
- "test": "jest --watchAll"
45
+ "test": "jest --watchAll",
46
+ "storybook": "storybook dev -p 6006",
47
+ "build-storybook": "storybook build"
46
48
  },
47
49
  "dependencies": {
48
50
  "@ant-design/react-slick": "^1.1.2",
@@ -57,6 +59,7 @@
57
59
  "echarts": "^6.0.0",
58
60
  "echarts-for-react": "^3.0.4",
59
61
  "query-string": "~7.1.3",
62
+ "react-countup": "^6.5.3",
60
63
  "react-error-boundary": "^6.0.0",
61
64
  "react-helmet": "^6.1.0",
62
65
  "react-helmet-async": "^2.0.5",
@@ -65,7 +68,13 @@
65
68
  },
66
69
  "devDependencies": {
67
70
  "@ant-design/icons": "^6.0.2",
71
+ "@chromatic-com/storybook": "^5.0.0",
68
72
  "@iconify/json": "^2.2.382",
73
+ "@storybook/addon-a11y": "^10.2.1",
74
+ "@storybook/addon-docs": "^10.2.1",
75
+ "@storybook/addon-onboarding": "^10.2.1",
76
+ "@storybook/addon-vitest": "^10.2.1",
77
+ "@storybook/react-vite": "^10.2.1",
69
78
  "@tanstack/react-query": "^5.51.11",
70
79
  "@testing-library/dom": "^10.4.0",
71
80
  "@testing-library/jest-dom": "^6.5.0",
@@ -74,36 +83,41 @@
74
83
  "@types/chroma-js": "^3.1.1",
75
84
  "@types/geojson": "^7946.0.14",
76
85
  "@types/jest": "^29.5.13",
77
- "@types/node": "^22.7.4",
78
- "@types/react": "^18.3.10",
79
- "@types/react-dom": "^18.3.0",
86
+ "@types/node": "^25.1.0",
87
+ "@types/react": "^18.3.1",
88
+ "@types/react-dom": "^18.3.1",
80
89
  "@types/react-helmet-async": "^1.0.1",
81
90
  "@types/react-icons": "^2.2.7",
82
91
  "@typescript-eslint/eslint-plugin": "^7.16.1",
83
92
  "@typescript-eslint/parser": "^7.16.1",
84
93
  "@vitejs/plugin-react": "^4.3.1",
85
- "antd": "^5.24.3",
94
+ "@vitest/browser-playwright": "^4.0.18",
95
+ "@vitest/coverage-v8": "^4.0.18",
96
+ "antd": "^6.2.2",
86
97
  "jest": "^29.7.0",
87
98
  "jest-environment-jsdom": "^29.7.0",
88
99
  "maplibre-gl": "^4.7.1",
100
+ "playwright": "^1.58.0",
89
101
  "react": "^18.3.1",
90
102
  "react-map-gl": "^7.1.9",
91
- "react-router-dom": "^6.25.1",
103
+ "react-router-dom": "^7.13.0",
104
+ "storybook": "^10.2.1",
92
105
  "ts-jest": "^29.2.5",
93
106
  "ts-node": "^10.9.2",
94
107
  "tsup": "^8.5.0",
95
108
  "typescript": "^5.5.2",
96
- "vite": "^5.3.4",
97
- "vite-plugin-svgr": "^4.2.0"
109
+ "vite": "^7.3.1",
110
+ "vite-plugin-svgr": "^4.2.0",
111
+ "vitest": "^4.0.18"
98
112
  },
99
113
  "peerDependencies": {
100
114
  "@ant-design/icons": "^6.0.2",
101
115
  "@tanstack/react-query": "^5.51.11",
102
- "antd": "^5.18.3",
116
+ "antd": "^6.2.2",
103
117
  "maplibre-gl": "^4.7.1",
104
118
  "react": "^18.3.1",
105
119
  "react-dom": "^18.3.1",
106
120
  "react-map-gl": "^7.1.9",
107
- "react-router-dom": "^6.25.1"
121
+ "react-router-dom": "^7.13.0"
108
122
  }
109
123
  }