From 4ec7b88587800d2d71784a58087135174b28fbc8 Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quenting@element.io>
Date: Tue, 18 Jun 2024 12:13:58 +0200
Subject: [PATCH 1/2] Move @storybook/manager-api to the devDependencies

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index a1ead862..d9780ebd 100644
--- a/package.json
+++ b/package.json
@@ -58,6 +58,7 @@
     "@storybook/addon-interactions": "^8.1.1",
     "@storybook/addon-links": "^8.1.1",
     "@storybook/addon-themes": "^8.1.1",
+    "@storybook/manager-api": "^8.1.1",
     "@storybook/react": "^8.1.1",
     "@storybook/react-vite": "^8.1.1",
     "@storybook/test": "^8.1.1",
@@ -109,7 +110,6 @@
     "@radix-ui/react-separator": "^1.0.3",
     "@radix-ui/react-slot": "^1.0.2",
     "@radix-ui/react-tooltip": "^1.0.6",
-    "@storybook/manager-api": "^8.1.1",
     "classnames": "^2.3.2",
     "vaul": "^0.7.0"
   },

From b24e8876ead2d91e1688cc616f0d466172ed47b3 Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quenting@element.io>
Date: Tue, 18 Jun 2024 12:18:56 +0200
Subject: [PATCH 2/2] Mark all dependencies as external

If we don't do that, they will be included in the bundle.
---
 vite.config.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vite.config.ts b/vite.config.ts
index 2ba2fbc1..a9c8f64a 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -33,9 +33,13 @@ export default defineConfig({
         "react/jsx-dev-runtime",
         "classnames",
         "vaul",
+        "@floating-ui/react",
+        "@floating-ui/react-dom",
         "@radix-ui/react-context-menu",
         "@radix-ui/react-dropdown-menu",
         "@radix-ui/react-form",
+        "@radix-ui/react-separator",
+        "@radix-ui/react-slot",
         "@radix-ui/react-tooltip",
       ],