From eaf3fe8b683338514cada6b3e06df39e3051f5f7 Mon Sep 17 00:00:00 2001 From: sokphaladam Date: Fri, 10 Jan 2025 17:26:46 +0700 Subject: [PATCH] add CommonDialogProvider and improve error handling in ScreenDropZone --- package-lock.json | 15 +++++++++++++ .../(theme)/playground/client/page-client.tsx | 11 ++++++---- .../erd-table-column.tsx | 6 ++--- .../gui/tabs/relational-diagram-tab/index.tsx | 22 +++++++++++-------- src/components/screen-dropzone.tsx | 15 +++++++++++-- 5 files changed, 51 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5480d41f..534a94eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21443,6 +21443,21 @@ "type": "github", "url": "https://github.com/sponsors/wooorm" } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.20", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.20.tgz", + "integrity": "sha512-igQW/JWciTGJwj3G1ipalD2V20Xfx3ywQy17IV0ciOUBbFhNfyU1DILWsTi32c8KmqgIDviUEulW/yPb2FF90w==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } } } } diff --git a/src/app/(theme)/playground/client/page-client.tsx b/src/app/(theme)/playground/client/page-client.tsx index d93e3da6..03cb977a 100644 --- a/src/app/(theme)/playground/client/page-client.tsx +++ b/src/app/(theme)/playground/client/page-client.tsx @@ -17,6 +17,7 @@ import { DropdownMenuSeparator, } from "@/components/ui/dropdown-menu"; import { Button } from "@/components/ui/button"; +import { CommonDialogProvider } from "@/components/common-dialog"; function OverlayAround({ x, @@ -324,10 +325,12 @@ export default function PlaygroundEditorBody({ return ( <> -