drizzle-cube 0.1.3 → 0.1.4

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 (39) hide show
  1. package/README.md +24 -2
  2. package/dist/adapters/hono/index.d.ts +5 -1
  3. package/dist/adapters/hono/index.js +187 -93
  4. package/dist/client/client/CubeClient.d.ts +14 -0
  5. package/dist/client/components/AnalyticsDashboard.d.ts +2 -0
  6. package/dist/client/components/AnalyticsPage.d.ts +1 -0
  7. package/dist/client/components/AnalyticsPortlet.d.ts +6 -0
  8. package/dist/client/components/ChartConfigEditor.d.ts +8 -0
  9. package/dist/client/components/ChartErrorBoundary.d.ts +21 -0
  10. package/dist/client/components/DashboardEditModal.d.ts +14 -0
  11. package/dist/client/components/DashboardGrid.d.ts +11 -0
  12. package/dist/client/components/Modal.d.ts +15 -0
  13. package/dist/client/components/PortletContainer.d.ts +10 -0
  14. package/dist/client/components/PortletEditModal.d.ts +12 -0
  15. package/dist/client/components/charts/AreaChart.d.ts +2 -0
  16. package/dist/client/components/charts/BarChart.d.ts +2 -0
  17. package/dist/client/components/charts/ChartContainer.d.ts +7 -0
  18. package/dist/client/components/charts/ChartLegend.d.ts +7 -0
  19. package/dist/client/components/charts/ChartTooltip.d.ts +7 -0
  20. package/dist/client/components/charts/DataTable.d.ts +2 -0
  21. package/dist/client/components/charts/LineChart.d.ts +2 -0
  22. package/dist/client/components/charts/PieChart.d.ts +2 -0
  23. package/dist/client/components/charts/RadarChart.d.ts +2 -0
  24. package/dist/client/components/charts/RadialBarChart.d.ts +2 -0
  25. package/dist/client/components/charts/ScatterChart.d.ts +2 -0
  26. package/dist/client/components/charts/TreeMapChart.d.ts +2 -0
  27. package/dist/client/components/charts/index.d.ts +13 -0
  28. package/dist/client/hooks/useCubeQuery.d.ts +8 -0
  29. package/dist/client/index.d.ts +14 -0
  30. package/dist/client/index.js +23813 -4
  31. package/dist/client/providers/CubeProvider.d.ts +15 -0
  32. package/dist/client/styles.css +1 -0
  33. package/dist/client/types.d.ts +111 -0
  34. package/dist/client/utils/chartConstants.d.ts +15 -0
  35. package/dist/client/utils/chartUtils.d.ts +9 -0
  36. package/dist/client/utils/index.d.ts +87 -0
  37. package/dist/server/index.d.ts +74 -1155
  38. package/dist/server/index.js +1036 -2842
  39. package/package.json +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-cube",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.",
5
5
  "main": "./dist/server/index.js",
6
6
  "types": "./dist/server/index.d.ts",
@@ -14,6 +14,7 @@
14
14
  "types": "./dist/client/index.d.ts",
15
15
  "import": "./dist/client/index.js"
16
16
  },
17
+ "./client/styles.css": "./dist/client/styles.css",
17
18
  "./adapters/hono": {
18
19
  "types": "./dist/adapters/hono/index.d.ts",
19
20
  "import": "./dist/adapters/hono/index.js"
@@ -25,12 +26,13 @@
25
26
  "LICENSE"
26
27
  ],
27
28
  "scripts": {
28
- "dev": "concurrently \"npm run dev:server\" \"npm run dev:client\" \"npm run dev:examples\"",
29
+ "dev": "concurrently \"npm run dev:server\" \"npm run dev:client\" \"npm run dev:examples\" \"npm run dev:help\"",
29
30
  "dev:server": "vite build src/server --watch --mode development",
30
31
  "dev:client": "vite build src/client --watch --mode development",
31
32
  "dev:examples": "cd examples/hono-app && npm run dev",
32
33
  "dev:help": "cd help-site && npm run dev",
33
34
  "build": "npm run build:server && npm run build:client && npm run build:adapters",
35
+ "build:all": "npm run build && npm run build:help",
34
36
  "build:server": "vite build --config vite.config.server.ts",
35
37
  "build:client": "vite build --config vite.config.client.ts",
36
38
  "build:adapters": "vite build --config vite.config.adapters.ts",
@@ -73,6 +75,7 @@
73
75
  "url": "https://github.com/cliftonc/drizzle-cube/issues"
74
76
  },
75
77
  "peerDependencies": {
78
+ "@neondatabase/serverless": "^1.0.1",
76
79
  "drizzle-orm": "^0.44.4",
77
80
  "hono": "^4.0.0",
78
81
  "react": "^18.0.0",
@@ -90,6 +93,9 @@
90
93
  },
91
94
  "hono": {
92
95
  "optional": true
96
+ },
97
+ "@neondatabase/serverless": {
98
+ "optional": true
93
99
  }
94
100
  },
95
101
  "devDependencies": {
@@ -97,6 +103,7 @@
97
103
  "@types/node": "^20.0.0",
98
104
  "@types/react": "^18.0.0",
99
105
  "@types/react-dom": "^18.0.0",
106
+ "@types/react-grid-layout": "^1.3.5",
100
107
  "@typescript-eslint/eslint-plugin": "^7.18.0",
101
108
  "@typescript-eslint/parser": "^7.18.0",
102
109
  "@vitejs/plugin-react": "^4.0.0",
@@ -113,7 +120,7 @@
113
120
  "vitest": "^2.0.0"
114
121
  },
115
122
  "dependencies": {
116
- "@heroicons/react": "^2.0.0",
123
+ "@heroicons/react": "^2.2.0",
117
124
  "react-grid-layout": "^1.4.0",
118
125
  "react-hook-form": "^7.47.0",
119
126
  "recharts": "^2.8.0",