Skip to content

Commit 4d9c490

Browse files
committed
deps cleanup
1 parent 2a4a75e commit 4d9c490

File tree

7 files changed

+159
-334
lines changed

7 files changed

+159
-334
lines changed

apps/dashboard/app/layout.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import './globals.css';
22

3-
import { Databuddy } from '@databuddy/sdk';
3+
import { Databuddy } from '@databuddy/sdk/react';
44
import type { Metadata, Viewport } from 'next';
55
import { Geist, Geist_Mono } from 'next/font/google';
6-
import Script from 'next/script';
76
import { Toaster } from 'sonner';
87
import Providers from './providers';
98

@@ -135,12 +134,6 @@ export default function RootLayout({
135134
trackScreenViews={true}
136135
trackWebVitals={true}
137136
/>
138-
{process.env.NODE_ENV === 'development' && (
139-
<Script
140-
crossOrigin="anonymous"
141-
src="//unpkg.com/react-scan/dist/auto.global.js"
142-
/>
143-
)}
144137
<body className="flex h-full min-h-screen flex-col bg-background text-foreground antialiased">
145138
<Providers>
146139
<main className="flex-1">{children}</main>

apps/dashboard/components/ui/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Slot } from '@radix-ui/react-slot';
1+
import { Slot as SlotPrimitive } from 'radix-ui';
22
import { cva, type VariantProps } from 'class-variance-authority';
33
import type * as React from 'react';
44

@@ -45,7 +45,7 @@ function Button({
4545
VariantProps<typeof buttonVariants> & {
4646
asChild?: boolean;
4747
}) {
48-
const Comp = asChild ? Slot : 'button';
48+
const Comp = asChild ? SlotPrimitive.Slot : 'button';
4949

5050
return (
5151
<Comp

apps/dashboard/components/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import * as DialogPrimitive from '@radix-ui/react-dialog';
3+
import { Dialog as DialogPrimitive } from 'radix-ui';
44
import { XIcon } from 'lucide-react';
55
import type * as React from 'react';
66

apps/dashboard/components/ui/switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import * as SwitchPrimitive from '@radix-ui/react-switch';
3+
import { Switch as SwitchPrimitive } from 'radix-ui';
44
import type * as React from 'react';
55

66
import { cn } from '@/lib/utils';

apps/dashboard/package.json

Lines changed: 36 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -10,109 +10,85 @@
1010
"build:script": "bun build ./public/databuddy.ts --outfile ./public/databuddy.js --minify"
1111
},
1212
"dependencies": {
13-
"@ai-sdk/react": "^2.0.15",
13+
"@ai-sdk/react": "^2.0.25",
1414
"@databuddy/sdk": "workspace:*",
1515
"@databuddy/validation": "workspace:*",
1616
"@hello-pangea/dnd": "^18.0.1",
1717
"@hookform/resolvers": "^5.2.1",
18-
"@icons-pack/react-simple-icons": "^13.7.0",
19-
"@mantine/dates": "^8.1.1",
20-
"@nivo/sankey": "^0.99.0",
21-
"@orpc/client": "^1.6.6",
22-
"@phosphor-icons/react": "catalog:",
23-
"@radix-ui/react-avatar": "^1.1.10",
24-
"@radix-ui/react-collapsible": "^1.1.12",
25-
"@radix-ui/react-dialog": "catalog:",
26-
"@radix-ui/react-hover-card": "^1.1.15",
27-
"@radix-ui/react-popover": "catalog:",
28-
"@radix-ui/react-scroll-area": "^1.2.10",
29-
"@radix-ui/react-select": "^2.2.6",
30-
"@radix-ui/react-slot": "^1.2.3",
31-
"@radix-ui/react-switch": "catalog:",
32-
"@radix-ui/react-tooltip": "^1.2.8",
33-
"@radix-ui/react-use-controllable-state": "^1.2.2",
34-
"@tanstack/react-query": "catalog:",
18+
"@phosphor-icons/react": "^2.1.10",
19+
"@tanstack/react-query": "^5.85.5",
3520
"@tanstack/react-table": "^8.21.3",
36-
"@tanstack/react-virtual": "^3.13.10",
37-
"@trpc/client": "catalog:",
38-
"@trpc/react-query": "catalog:",
39-
"@trpc/server": "catalog:",
21+
"@tanstack/react-virtual": "^3.13.12",
22+
"@trpc/client": "^11.5.0",
23+
"@trpc/react-query": "^11.5.0",
24+
"@trpc/server": "^11.5.0",
4025
"@types/d3-scale": "^4.0.9",
41-
"@types/dagre": "^0.7.52",
4226
"@types/geojson": "^7946.0.16",
43-
"@types/leaflet": "^1.9.17",
27+
"@types/leaflet": "^1.9.20",
4428
"@types/react-syntax-highlighter": "^15.5.13",
45-
"@uidotdev/usehooks": "^2.4.1",
46-
"@xyflow/react": "^12.7.0",
47-
"ai": "^5.0.15",
48-
"autumn-js": "catalog:",
29+
"ai": "^5.0.25",
30+
"autumn-js": "^0.0.101",
4931
"babel-plugin-react-compiler": "^19.1.0-rc.2",
50-
"class-variance-authority": "catalog:",
32+
"class-variance-authority": "^0.7.1",
5133
"classnames": "^2.5.1",
52-
"clsx": "catalog:",
34+
"clsx": "^2.1.1",
5335
"cmdk": "^1.1.1",
5436
"d3-geo": "^3.1.1",
5537
"d3-scale": "^4.0.2",
5638
"dagre": "^0.8.5",
57-
"dayjs": "catalog:",
39+
"dayjs": "^1.11.13",
5840
"drizzle-zod": "^0.8.3",
5941
"embla-carousel-react": "^8.6.0",
60-
"framer-motion": "catalog:",
42+
"framer-motion": "^12.23.12",
6143
"geojson": "^0.5.0",
62-
"harden-react-markdown": "^1.0.4",
6344
"idb": "^8.0.3",
6445
"input-otp": "^1.4.2",
65-
"jotai": "catalog:",
46+
"jotai": "^2.13.1",
6647
"katex": "^0.16.22",
6748
"leaflet": "^1.9.4",
6849
"lucide-react": "^0.540.0",
6950
"nanoid": "^5.1.5",
70-
"next": "^15.4.6",
51+
"next": "^15.5.2",
7152
"next-themes": "^0.4.6",
72-
"nuqs": "^2.4.3",
53+
"nuqs": "^2.5.1",
7354
"ogl": "^1.0.11",
74-
"radix-ui": "^1.4.2",
55+
"radix-ui": "latest",
7556
"react": "catalog:",
76-
"react-day-picker": "^9.7.0",
57+
"react-day-picker": "^9.9.0",
7758
"react-dom": "catalog:",
7859
"react-hook-form": "^7.62.0",
79-
"react-icons": "^5.5.0",
8060
"react-image-crop": "^11.0.10",
8161
"react-leaflet": "^5.0.0",
8262
"react-markdown": "^10.1.0",
83-
"react-resizable-panels": "^3.0.2",
84-
"react-simple-maps": "^3.0.0",
85-
"react-syntax-highlighter": "^15.6.1",
86-
"recharts": "^2.15.3",
63+
"react-syntax-highlighter": "^15.6.6",
64+
"recharts": "^2.15.4",
8765
"rehype-katex": "^7.0.1",
88-
"remark-gfm": "^4.0.1",
8966
"remark-math": "^6.0.0",
90-
"shiki": "^3.11.0",
91-
"sonner": "catalog:",
92-
"stripe": "catalog:",
93-
"superjson": "catalog:",
94-
"tailwind-merge": "catalog:",
95-
"tldts": "^7.0.8",
67+
"shiki": "^3.12.0",
68+
"sonner": "^2.0.7",
69+
"superjson": "^2.2.2",
70+
"tailwind-merge": "^3.3.1",
71+
"tldts": "^7.0.12",
9672
"topojson-client": "^3.1.0",
97-
"tw-animate-css": "^1.2.8",
73+
"tw-animate-css": "^1.3.7",
9874
"use-stick-to-bottom": "^1.1.1",
99-
"vaul": "catalog:",
100-
"zod": "^4.1.1"
75+
"vaul": "^1.1.2",
76+
"zod": "^4.1.3"
10177
},
10278
"devDependencies": {
10379
"@biomejs/biome": "2.0.5",
104-
"@orpc/server": "^1.6.6",
105-
"@tailwindcss/postcss": "^4.1.4",
80+
"@orpc/server": "^1.8.5",
81+
"@tailwindcss/postcss": "^4.1.12",
10682
"@types/d3-geo": "^3.1.0",
107-
"@types/node": "^22.15.3",
83+
"@types/node": "^22.18.0",
10884
"@types/react": "19.0.0",
10985
"@types/react-dom": "19.0.0",
11086
"@types/topojson-client": "^3.1.5",
11187
"husky": "^9.1.7",
112-
"lint-staged": "^16.1.2",
113-
"tailwindcss": "^4.1.4",
114-
"typescript": "^5.8.3",
115-
"ultracite": "^5.0.25",
88+
"lint-staged": "^16.1.5",
89+
"tailwindcss": "^4.1.12",
90+
"typescript": "^5.9.2",
91+
"ultracite": "^5.2.5",
11692
"webpack-bundle-analyzer": "^4.10.2"
11793
},
11894
"lint-staged": {

apps/dashboard/public/databuddy.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,20 @@
323323
errorType: event.error?.name || 'Error',
324324
});
325325
});
326+
window.addEventListener('unhandledrejection', (event) => {
327+
const reason = event.reason;
328+
const isError = reason instanceof Error;
329+
330+
this.trackError({
331+
timestamp: Date.now(),
332+
message: isError ? reason.message : String(reason),
333+
filename: isError ? reason.filename : undefined,
334+
lineno: isError ? reason.lineno : undefined,
335+
colno: isError ? reason.colno : undefined,
336+
stack: isError ? reason.stack : undefined,
337+
errorType: isError ? reason.name || 'Error' : 'UnhandledRejection',
338+
});
339+
});
326340
}
327341
}
328342

@@ -1564,11 +1578,9 @@
15641578
window.databuddyOptedOut = true;
15651579
window.databuddyDisabled = true;
15661580

1567-
// Disable existing instance
15681581
if (window.databuddy && typeof window.databuddy === 'object') {
15691582
window.databuddy.options.disabled = true;
15701583

1571-
// Override methods to no-ops
15721584
const noop = () => {};
15731585
window.databuddy.track = noop;
15741586
window.databuddy.screenView = noop;

0 commit comments

Comments
 (0)