Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(ui): remove unused lexical and @dnd-kit/modifiers dependencies (#8922)

Andrew Huang558b268fbbbc
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 797379586b..8611a222a9 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -20,7 +20,6 @@
"@devolutions/iron-remote-desktop": "^0.10.1",
"@devolutions/iron-remote-desktop-rdp": "^0.6.1",
"@dnd-kit/core": "^6.3.1",
- "@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/react": "^0.3.0",
"@dnd-kit/sortable": "^10.0.0",
"@fontsource/ibm-plex-sans": "^5.3.0",
@@ -32,7 +31,6 @@
"@fortawesome/react-fontawesome": "^0.2.2",
"@hcaptcha/react-hcaptcha": "^1.11.0",
"@hookform/resolvers": "^3.9.1",
- "@lexical/react": "^0.29.0",
"@lezer/highlight": "^1.2.3",
"@lottiefiles/dotlottie-react": "^0.12.0",
"@lottiefiles/dotlottie-web": "^0.38.2",
@@ -80,7 +78,6 @@
"i18next": "^24.1.0",
"i18next-http-backend": "^3.0.1",
"jwt-decode": "^4.0.0",
- "lexical": "^0.29.0",
"lucide-react": "^0.544.0",
"motion": "^13.2.0",
"ms": "^2.1.3",
@@ -790,20 +787,6 @@
"tslib": "^2.6.2"
}
},
- "node_modules/@dnd-kit/modifiers": {
- "version": "9.0.0",
- "resolved": "https://registry.npmjs.org/@dnd-kit/modifiers/-/modifiers-9.0.0.tgz",
- "integrity": "sha512-ybiLc66qRGuZoC20wdSSG6pDXFikui/dCNGthxv4Ndy8ylErY0N3KVxY2bgo7AWwIbxDmXDg3ylAFmnrjcbVvw==",
- "license": "MIT",
- "dependencies": {
- "@dnd-kit/utilities": "^3.2.2",
- "tslib": "^2.0.0"
- },
- "peerDependencies": {
- "@dnd-kit/core": "^6.3.0",
- "react": ">=16.8.0"
- }
- },
"node_modules/@dnd-kit/react": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@dnd-kit/react/-/react-0.3.0.tgz",
@@ -1859,260 +1842,6 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
- "node_modules/@lexical/clipboard": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/clipboard/-/clipboard-0.29.0.tgz",
- "integrity": "sha512-llxZosYCwH13p2GfPfhAinukdvAZYxWuwf5md107X80hsE8TQJj25unjqTwRKQ+w/wD+hpmBMziU8+K/WTitWQ==",
- "license": "MIT",
- "dependencies": {
- "@lexical/html": "0.29.0",
- "@lexical/list": "0.29.0",
- "@lexical/selection": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/code": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/code/-/code-0.29.0.tgz",
- "integrity": "sha512-yKGzoKpyIO39Xf7OKLPpoCE5V8mTDCM3l3CDHZR3X1gM/VZQzf4jAiO3b06y9YkQ2fM8kqwchYu87wGvs8/iIQ==",
- "license": "MIT",
- "dependencies": {
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0",
- "prismjs": "^1.30.0"
- }
- },
- "node_modules/@lexical/devtools-core": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/devtools-core/-/devtools-core-0.29.0.tgz",
- "integrity": "sha512-uUq0m9ql/7mthp7Ho1vnG7Id6imQ5kD5mxUhX2lmgHretS+yAHGsGsGiPIVHdPWeVmUb2n4IVDJ+cJbUsUjQJw==",
- "license": "MIT",
- "dependencies": {
- "@lexical/html": "0.29.0",
- "@lexical/link": "0.29.0",
- "@lexical/mark": "0.29.0",
- "@lexical/table": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- },
- "peerDependencies": {
- "react": ">=17.x",
- "react-dom": ">=17.x"
- }
- },
- "node_modules/@lexical/dragon": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/dragon/-/dragon-0.29.0.tgz",
- "integrity": "sha512-Zaky2jd/Pp1blAZqPeGNdyhxnVL4lwVjbWPxhfS1gbW4Q5CBQ3aD3B0T4ljiKfmRNJm004LJ9q7KjhlRbREvZA==",
- "license": "MIT",
- "dependencies": {
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/hashtag": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/hashtag/-/hashtag-0.29.0.tgz",
- "integrity": "sha512-fa7s0Yi2RKz/GvgT5XU9fborx6VPU3VtvvEPaIXgyd6zXZRiOhD9rGypwB3oj4fMK1ndx2dX0m7SwhMJo48D8w==",
- "license": "MIT",
- "dependencies": {
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/history": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/history/-/history-0.29.0.tgz",
- "integrity": "sha512-OrCwZycp/yaq63mw511NutkwAB+W6WSchG1xTxlLh6nbc8jnbvKhCf4CGbnrvlhD7hTuzxJ8FI9/2M/2zv/mNQ==",
- "license": "MIT",
- "dependencies": {
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/html": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/html/-/html-0.29.0.tgz",
- "integrity": "sha512-+jV6ijppOpxpUGeXkGssXJbsAmFALfeLrgbM0xuZbxZ7RgYZ+5Atn00WjSno7+JV5EOuRkYmCNtS1tiHtXMY1g==",
- "license": "MIT",
- "dependencies": {
- "@lexical/selection": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/link": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/link/-/link-0.29.0.tgz",
- "integrity": "sha512-wGbKRF0x/6ZQHuCfr8m8qD1J0R1kFmWINBG2A1hUXPDf7UY5qm/nS2oKNDGpjiDMGwkVZ7n7WfzeBGO+KRe/Lg==",
- "license": "MIT",
- "dependencies": {
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/list": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/list/-/list-0.29.0.tgz",
- "integrity": "sha512-sWiof+i2ff8rL7KxJ3dxHLwyJfX423e1EVLmAdQEOPhyZJiNbeLTSNhNGsZ8FjFoBwvTTEDwuQZm3iT3hliKOg==",
- "license": "MIT",
- "dependencies": {
- "@lexical/selection": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/mark": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/mark/-/mark-0.29.0.tgz",
- "integrity": "sha512-UB3x6pyUdpZHRqF4tiajLnC1+Umvt7x8Rkkdi29aNNvzIWniVwGkBOlmvFus7x+4dOV1D1fydwiP4m38nGgLDw==",
- "license": "MIT",
- "dependencies": {
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/markdown": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/markdown/-/markdown-0.29.0.tgz",
- "integrity": "sha512-4Od8WoDoviv9DxJZVgrIORTIAzyoGOpztbGbIBXguGmwvy7NnHQDh9fZYIYRrdI1Awp1VVGdJ3ku/7KTgSOoRw==",
- "license": "MIT",
- "dependencies": {
- "@lexical/code": "0.29.0",
- "@lexical/link": "0.29.0",
- "@lexical/list": "0.29.0",
- "@lexical/rich-text": "0.29.0",
- "@lexical/text": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/offset": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/offset/-/offset-0.29.0.tgz",
- "integrity": "sha512-VyD2Ff3rBJpo++Fxvi3MNYmDELa+9nA0EgXqGRNb3MvRehRjHbaDbymtLMMHIwvbkF5lnra+ubStcTRQmoQxXw==",
- "license": "MIT",
- "dependencies": {
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/overflow": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/overflow/-/overflow-0.29.0.tgz",
- "integrity": "sha512-IzH3M652Ej2gB2sK65N3yTgyiQAa3I3tqKbSnBRiXu/+isxHoCy/qRr9/kL63uy7zhGvgV+EYsoffQCawIFt8Q==",
- "license": "MIT",
- "dependencies": {
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/plain-text": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/plain-text/-/plain-text-0.29.0.tgz",
- "integrity": "sha512-F5C3meDb2HmO0NmKJBVRkjmX9PNln6O1jXU/APJuSFBdvfcIWSY58ncHR4zy2M5LF1Q5PQMWyIay9p+SqOtY5A==",
- "license": "MIT",
- "dependencies": {
- "@lexical/clipboard": "0.29.0",
- "@lexical/selection": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/react": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/react/-/react-0.29.0.tgz",
- "integrity": "sha512-YMlnljW/jxmwSzsRv5UPatfOoMZXqxFmRIEltTUIQfrOFdqn+ssUtCpjE6xRD1oxD6KpSIekakzLs+y/8+7CuQ==",
- "license": "MIT",
- "dependencies": {
- "@lexical/devtools-core": "0.29.0",
- "@lexical/dragon": "0.29.0",
- "@lexical/hashtag": "0.29.0",
- "@lexical/history": "0.29.0",
- "@lexical/link": "0.29.0",
- "@lexical/list": "0.29.0",
- "@lexical/mark": "0.29.0",
- "@lexical/markdown": "0.29.0",
- "@lexical/overflow": "0.29.0",
- "@lexical/plain-text": "0.29.0",
- "@lexical/rich-text": "0.29.0",
- "@lexical/table": "0.29.0",
- "@lexical/text": "0.29.0",
- "@lexical/utils": "0.29.0",
- "@lexical/yjs": "0.29.0",
- "lexical": "0.29.0",
- "react-error-boundary": "^3.1.4"
- },
- "peerDependencies": {
- "react": ">=17.x",
- "react-dom": ">=17.x"
- }
- },
- "node_modules/@lexical/rich-text": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/rich-text/-/rich-text-0.29.0.tgz",
- "integrity": "sha512-fSKgXGxJUOWo7dwSTUYFVBNNk4pPN8norsZfdmKM1kGDS1/GKuVzlzHLKZ7rQb8RLD5a43p4ifEL+28P+q0Qqg==",
- "license": "MIT",
- "dependencies": {
- "@lexical/clipboard": "0.29.0",
- "@lexical/selection": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/selection": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/selection/-/selection-0.29.0.tgz",
- "integrity": "sha512-lX9CRrXgKte65cozTHFXwUJ2fvZD92OEtos+YU+U40GJjf3NdheGeKDxDfOpF4AXrYRSszY7E0CzmIvuEs0p4A==",
- "license": "MIT",
- "dependencies": {
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/table": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/table/-/table-0.29.0.tgz",
- "integrity": "sha512-Jdj32kBDeJh/0dGaZB14JggnEIS956/cN7grnLr7cmhhVzDicvLMBENSXQVEJAQVcSIU4G9EvxC7GJZ9VgqDnA==",
- "license": "MIT",
- "dependencies": {
- "@lexical/clipboard": "0.29.0",
- "@lexical/utils": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/text": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/text/-/text-0.29.0.tgz",
- "integrity": "sha512-QnNGr6ickTLk76o3PdxJjPwt//dpuh8idVfR73WdCIoAwkhiEPUxxTZERoMsudXj6O/lJ+/HhI61wVjLckYr3A==",
- "license": "MIT",
- "dependencies": {
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/utils": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/utils/-/utils-0.29.0.tgz",
- "integrity": "sha512-y2hhWQDjcXdplsAaQMuZx6ht9u1I4BV5NynA+WKoQ3h8vKxzeDnpCxVOK/zxU1R5dhM/nilnFu7uhvrSeEn+TQ==",
- "license": "MIT",
- "dependencies": {
- "@lexical/list": "0.29.0",
- "@lexical/selection": "0.29.0",
- "@lexical/table": "0.29.0",
- "lexical": "0.29.0"
- }
- },
- "node_modules/@lexical/yjs": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/@lexical/yjs/-/yjs-0.29.0.tgz",
- "integrity": "sha512-6IXWWlGkVJEzWP/+LcuKYJ9jmcFp8k7TT/jmz4V5gBD9Ut3swOGsIA/sQCtB9y7jad10csaDVmFdFzGNWKVH9A==",
- "license": "MIT",
- "dependencies": {
- "@lexical/offset": "0.29.0",
- "@lexical/selection": "0.29.0",
- "lexical": "0.29.0"
- },
- "peerDependencies": {
- "yjs": ">=13.5.22"
- }
- },
"node_modules/@lezer/common": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.5.1.tgz",
@@ -12006,17 +11735,6 @@
"node": ">=10"
}
},
- "node_modules/isomorphic.js": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.5.tgz",
- "integrity": "sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==",
- "license": "MIT",
- "peer": true,
- "funding": {
- "type": "GitHub Sponsors ❤",
- "url": "https://github.com/sponsors/dmonad"
- }
- },
"node_modules/iterator.prototype": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz",
@@ -12179,34 +11897,6 @@
"node": ">= 0.8.0"
}
},
- "node_modules/lexical": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/lexical/-/lexical-0.29.0.tgz",
- "integrity": "sha512-eoBHUEn0LmExKeK6x2cFKU0FPaMk2Bc5HgiCzTiv5ymKtwWw7LeKcxaNPmLxRRdQpcWV1IMKjayAbw7Lt/Gu7w==",
- "license": "MIT"
- },
- "node_modules/lib0": {
- "version": "0.2.102",
- "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.102.tgz",
- "integrity": "sha512-g70kydI0I1sZU0ChO8mBbhw0oUW/8U0GHzygpvEIx8k+jgOpqnTSb/E+70toYVqHxBhrERD21TwD5QcZJQ40ZQ==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "isomorphic.js": "^0.2.4"
- },
- "bin": {
- "0ecdsa-generate-keypair": "bin/0ecdsa-generate-keypair.js",
- "0gentesthtml": "bin/gentesthtml.js",
- "0serve": "bin/0serve.js"
- },
- "engines": {
- "node": ">=16"
- },
- "funding": {
- "type": "GitHub Sponsors ❤",
- "url": "https://github.com/sponsors/dmonad"
- }
- },
"node_modules/lightningcss": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz",
@@ -14207,15 +13897,6 @@
"license": "MIT",
"peer": true
},
- "node_modules/prismjs": {
- "version": "1.30.0",
- "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz",
- "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==",
- "license": "MIT",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@@ -14618,22 +14299,6 @@
"react": "^19.3.0"
}
},
- "node_modules/react-error-boundary": {
- "version": "3.1.4",
- "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-3.1.4.tgz",
- "integrity": "sha512-uM9uPzZJTF6wRQORmSrvOIgt4lJ9MC1sNgEOj2XGsDTRE4kmpWxg7ENK9EWNKJRMAOY9z0MuF4yIfl6gp4sotA==",
- "license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.12.5"
- },
- "engines": {
- "node": ">=10",
- "npm": ">=6"
- },
- "peerDependencies": {
- "react": ">=16.13.1"
- }
- },
"node_modules/react-hook-form": {
"version": "7.56.3",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.3.tgz",
@@ -18257,24 +17922,6 @@
"node": ">=8"
}
},
- "node_modules/yjs": {
- "version": "13.6.24",
- "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.24.tgz",
- "integrity": "sha512-xn/pYLTZa3uD1uDG8lpxfLRo5SR/rp0frdASOl2a71aYNvUXdWcLtVL91s2y7j+Q8ppmjZ9H3jsGVgoFMbT2VA==",
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "lib0": "^0.2.99"
- },
- "engines": {
- "node": ">=16.0.0",
- "npm": ">=8.0.0"
- },
- "funding": {
- "type": "GitHub Sponsors ❤",
- "url": "https://github.com/sponsors/dmonad"
- }
- },
"node_modules/yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index ab0debf724..e901d437f5 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -53,7 +53,6 @@
"@devolutions/iron-remote-desktop": "^0.10.1",
"@devolutions/iron-remote-desktop-rdp": "^0.6.1",
"@dnd-kit/core": "^6.3.1",
- "@dnd-kit/modifiers": "^9.0.0",
"@dnd-kit/react": "^0.3.0",
"@dnd-kit/sortable": "^10.0.0",
"@fontsource/ibm-plex-sans": "^5.3.0",
@@ -65,7 +64,6 @@
"@fortawesome/react-fontawesome": "^0.2.2",
"@hcaptcha/react-hcaptcha": "^1.11.0",
"@hookform/resolvers": "^3.9.1",
- "@lexical/react": "^0.29.0",
"@lezer/highlight": "^1.2.3",
"@lottiefiles/dotlottie-react": "^0.12.0",
"@lottiefiles/dotlottie-web": "^0.38.2",
@@ -113,7 +111,6 @@
"i18next": "^24.1.0",
"i18next-http-backend": "^3.0.1",
"jwt-decode": "^4.0.0",
- "lexical": "^0.29.0",
"lucide-react": "^0.544.0",
"motion": "^13.2.0",
"ms": "^2.1.3",
diff --git a/frontend/src/components/V3_MIGRATION.md b/frontend/src/components/V3_MIGRATION.md
index af1a88a621..4fae20213e 100644
--- a/frontend/src/components/V3_MIGRATION.md
+++ b/frontend/src/components/V3_MIGRATION.md
@@ -127,7 +127,7 @@ All source anchors in this surface table are relative to `frontend/src/`. Refres
- The V3 `ReactSelect` compatibility family (`FilterableSelect`, `CreatableSelect`) is deleted. Its consumers moved to `Combobox`, and none remained at `e434f2fdfdd608f97cd4041af84062991d2645cf`. The `react-select` package is also removed. The last importer scan before its removal, at `60067d2ea820ff1fd008f3ac5818c9f86e616cdc`, found only the unused react-select `Option` wrappers `AppConnectionOption`, `RoleOption`, and `RelayOption`, which were deleted with the package. The live `AppConnectionOptionContent` and `RoleOptionContent` renderers remain.
- V3 `SecretInput`, `InfisicalSecretInput`, `SecretPathInput`, and `PasswordGenerator` have their own implementations. Compare security-sensitive behavior, not names. Removing unused V2 Editor/PasswordGenerator does not certify every active V3 editor flow.
- API/data versions such as `hooks/api/secretRotationsV2`, `BillingV2Page`, `PkiAlertsV2Page`, backend secret-v2 services and migration files are not automatically legacy UI. Their actual UI imports and implementations remain in scope; their legitimate API versions are not renamed.
-- Third-party Radix, Lexical, Lottie and Font Awesome packages have current non-V2 consumers. A dependency is deleted only after its remaining ownership is proved; no package-name-based purge.
+- Third-party Radix, Lottie and Font Awesome packages have current non-V2 consumers. The Lexical editor packages (`lexical`, `@lexical/react`), whose only consumer was the deleted V2 Editor, and the unused `@dnd-kit/modifiers` are removed. A dependency is deleted only after its remaining ownership is proved; no package-name-based purge.
## Execution sequence and ownership