drizzle-cube 0.1.9 → 0.1.11

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 (33) hide show
  1. package/dist/adapters/hono/index.js +39 -31
  2. package/dist/client/charts/chartConfigRegistry.d.ts +5 -0
  3. package/dist/client/charts/chartConfigs.d.ts +60 -0
  4. package/dist/client/components/AxisDropZone.d.ts +20 -0
  5. package/dist/client/components/ChartConfigPanel.d.ts +15 -0
  6. package/dist/client/components/ChartTypeSelector.d.ts +8 -0
  7. package/dist/client/components/DebugModal.d.ts +9 -0
  8. package/dist/client/components/Modal.d.ts +1 -1
  9. package/dist/client/components/charts/AreaChart.config.d.ts +5 -0
  10. package/dist/client/components/charts/BarChart.config.d.ts +5 -0
  11. package/dist/client/components/charts/BubbleChart.config.d.ts +5 -0
  12. package/dist/client/components/charts/BubbleChart.d.ts +2 -0
  13. package/dist/client/components/charts/DataTable.config.d.ts +5 -0
  14. package/dist/client/components/charts/DataTable.d.ts +1 -1
  15. package/dist/client/components/charts/LineChart.config.d.ts +5 -0
  16. package/dist/client/components/charts/PieChart.config.d.ts +5 -0
  17. package/dist/client/components/charts/RadarChart.config.d.ts +5 -0
  18. package/dist/client/components/charts/RadialBarChart.config.d.ts +5 -0
  19. package/dist/client/components/charts/ScatterChart.config.d.ts +5 -0
  20. package/dist/client/components/charts/TreeMapChart.config.d.ts +5 -0
  21. package/dist/client/components/charts/index.d.ts +1 -0
  22. package/dist/client/hooks/useCubeMeta.d.ts +29 -0
  23. package/dist/client/index.d.ts +0 -1
  24. package/dist/client/index.js +13735 -10142
  25. package/dist/client/providers/CubeProvider.d.ts +7 -0
  26. package/dist/client/styles.css +1 -1
  27. package/dist/client/types.d.ts +14 -2
  28. package/dist/client/utils/chartConstants.d.ts +1 -0
  29. package/dist/client/utils/chartUtils.d.ts +6 -2
  30. package/dist/server/index.d.ts +96 -8
  31. package/dist/server/index.js +894 -632
  32. package/package.json +10 -3
  33. package/dist/client/components/ChartConfigEditor.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-cube",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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",
@@ -38,8 +38,10 @@
38
38
  "build:help": "cd help-site && npm run build",
39
39
  "test": "vitest run",
40
40
  "test:watch": "vitest --watch",
41
- "test:postgres": "docker-compose up -d && vitest run && docker-compose down",
42
- "test:setup": "docker-compose up -d postgres",
41
+ "test:postgres": "vitest run",
42
+ "test:mysql": "TEST_DB_TYPE=mysql vitest run",
43
+ "test:all": "vitest run && TEST_DB_TYPE=mysql vitest run",
44
+ "test:setup": "docker-compose up -d",
43
45
  "test:teardown": "docker-compose down",
44
46
  "typecheck": "tsc --noEmit",
45
47
  "lint": "eslint src/**/*.ts",
@@ -113,6 +115,7 @@
113
115
  "drizzle-orm": "^0.44.4",
114
116
  "eslint": "^8.0.0",
115
117
  "hono": "^4.0.0",
118
+ "mysql2": "^3.14.3",
116
119
  "postcss": "^8.5.6",
117
120
  "postgres": "^3.4.7",
118
121
  "tailwindcss": "^3.4.15",
@@ -123,6 +126,10 @@
123
126
  },
124
127
  "dependencies": {
125
128
  "@heroicons/react": "^2.2.0",
129
+ "@iconify-icons/tabler": "^1.2.95",
130
+ "@iconify/react": "^6.0.0",
131
+ "@types/d3": "^7.4.3",
132
+ "d3": "^7.9.0",
126
133
  "react-grid-layout": "^1.4.0",
127
134
  "react-hook-form": "^7.47.0",
128
135
  "recharts": "^2.8.0",
@@ -1,8 +0,0 @@
1
- import { ChartAxisConfig, ChartDisplayConfig } from '../types';
2
- interface ChartConfigEditorProps {
3
- chartConfig: ChartAxisConfig;
4
- displayConfig?: ChartDisplayConfig;
5
- onConfigChange: (chartConfig: ChartAxisConfig, displayConfig: ChartDisplayConfig) => void;
6
- }
7
- export default function ChartConfigEditor({ chartConfig, displayConfig, onConfigChange }: ChartConfigEditorProps): import("react/jsx-runtime").JSX.Element;
8
- export {};