The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore(ui): drop the antd dependency and its leftovers (#37574)
ryan-crabbe-berri7b574b9df6ea
diff --git a/ui/litellm-dashboard/CLAUDE.md b/ui/litellm-dashboard/CLAUDE.mdindex d7e0a11aaa1..f79258600c1 100644--- a/ui/litellm-dashboard/CLAUDE.md+++ b/ui/litellm-dashboard/CLAUDE.md@@ -12,13 +12,13 @@ Most of the suite predates this split and is not yet classified, so an unsuffixeAssert something the user could perceive, and assert it precisely enough that the test fails when the behaviour breaks. `eslint-plugin-testing-library` and `eslint-plugin-jest-dom` enforce the mechanical part of that. Two of the enabled rules exist because the failure they catch is silent rather than cosmetic: `await-async-queries` catches an unawaited `findBy*`, whose returned Promise is always truthy and makes the whole assertion vacuous, and `no-wait-for-side-effects` catches work inside a `waitFor` callback, which is retried on every poll. Prefer `findBy*` over `waitFor` wrapped around `getBy*`, and keep a `waitFor` callback to a single assertion-Do not trust `eslint --fix` for these two plugins. Fixing the suite in bulk produced seven distinct kinds of broken output. Four fail loudly: `no-wait-for-side-effects` and `no-wait-for-multiple-assertions` hoist a statement out of the `waitFor` callback while leaving the `const` it reads inside, `prefer-enabled-disabled` drops a closing paren when the subject carries a type assertion, `prefer-presence-queries` swaps in a query it never destructures, and `prefer-in-document` collapses `getAllBy*` to `getBy*` on a value still indexed as an array. Two fail quietly, which is worse: `prefer-checked` swaps the `checked` attribute for the `.checked` property, and antd radios set one without the other, and `prefer-to-have-text-content` wraps arbitrary strings in `new RegExp()` without escaping, so `toContain("100K+ requests")` becomes a pattern meaning "100 followed by one-or-more K". That last one compiles, lints clean, and keeps passing while no longer asserting what it says. Pass a plain string to `toHaveTextContent`, which is already a substring match. Run the fixer on a handful of files at a time and read the diff+Do not trust `eslint --fix` for these two plugins. Fixing the suite in bulk produced seven distinct kinds of broken output. Four fail loudly: `no-wait-for-side-effects` and `no-wait-for-multiple-assertions` hoist a statement out of the `waitFor` callback while leaving the `const` it reads inside, `prefer-enabled-disabled` drops a closing paren when the subject carries a type assertion, `prefer-presence-queries` swaps in a query it never destructures, and `prefer-in-document` collapses `getAllBy*` to `getBy*` on a value still indexed as an array. Two fail quietly, which is worse: `prefer-checked` swaps the `checked` attribute for the `.checked` property, and a radio can set one without the other, and `prefer-to-have-text-content` wraps arbitrary strings in `new RegExp()` without escaping, so `toContain("100K+ requests")` becomes a pattern meaning "100 followed by one-or-more K". That last one compiles, lints clean, and keeps passing while no longer asserting what it says. Pass a plain string to `toHaveTextContent`, which is already a substring match. Run the fixer on a handful of files at a time and read the diff`jest-dom/prefer-to-have-value` stays off because its fixer is wrong here, not merely noisy. It matches any attribute whose name contains "value", so it rewrites `toHaveAttribute("aria-valuenow", n)` into `toHaveValue(n)`, and jest-dom's `toHaveValue` only supports form controls, so the assertion fails on the `role="meter"` elements the dashboard renders. Assert ARIA value attributes with `toHaveAttribute`Reach for `fireEvent.change` rather than `user.type` when a test only needs a field to hold a value. `user.type` dispatches one event per character and re-renders the whole form each time, which is why a single form test could burn seven seconds. Keep `user.type` where the typing itself is the behaviour under test: an autocomplete that filters per keystroke, a debounce, a key handler, or any Base UI combobox, whose filter state is driven by real keyboard input and does not react to a raw change event-A test may reach for a component library's own CSS class only when that library exposes no role, label, title or ARIA state to query instead, and then the line carries a suppression naming the rule and the reason. Check first: antd icons render as `role="img"` with an `aria-label`, and antd `Form.Item` associates its label with the control, so both are reachable accessibly. When a label does not resolve, suspect the control rather than the test, since a custom wrapper that destructures props without spreading them drops the `id` antd injects and leaves the rendered label pointing at nothing+A test may reach for a component library's own CSS class only when that library exposes no role, label, title or ARIA state to query instead. Check first: the shadcn primitives forward roles and `aria-label`, and the shared form field associates its label with the control, so both are reachable accessibly. When nothing accessible identifies the element, prefer its `data-slot` attribute, which the primitives set deliberately and treat as stable. When a label does not resolve, suspect the control rather than the test, since a custom wrapper that destructures props without spreading them drops the `id` the field generates and leaves the rendered label pointing at nothingRules beyond the enabled set were measured against the whole suite and left off rather than recorded in a budget file, because a ceiling that permits a violation anywhere is worse than an honest gap. `no-node-access` and `no-container` are the ones worth revisiting first, since they catch the DOM archaeology the rules above only discourage. `prefer-implicit-assert` and `prefer-explicit-assert` contradict each other, so neither is enableddiff --git a/ui/litellm-dashboard/eslint-suppressions.json b/ui/litellm-dashboard/eslint-suppressions.jsonindex a9a163f3c78..3bc93b7ebc4 100644--- a/ui/litellm-dashboard/eslint-suppressions.json+++ b/ui/litellm-dashboard/eslint-suppressions.json@@ -1181,11 +1181,6 @@"count": 1}},- "src/app/(dashboard)/users/_components/user_edit_view.test.tsx": {- "no-nested-ternary": {- "count": 1- }- },"src/app/(dashboard)/users/_components/user_edit_view.tsx": {"local/filename-pascal-case": {"count": 1diff --git a/ui/litellm-dashboard/eslint.config.mjs b/ui/litellm-dashboard/eslint.config.mjsindex 3cbb93f9a48..df10ca1befa 100644--- a/ui/litellm-dashboard/eslint.config.mjs+++ b/ui/litellm-dashboard/eslint.config.mjs@@ -57,15 +57,6 @@ const eslintConfig = [message:"@tremor/react is being phased out; build new UI with shadcn/ui primitives instead of adding tremor imports.",},- {- group: ["antd", "antd/*"],- message:- "antd is being phased out; build new UI with shadcn/ui primitives instead of adding antd imports.",- },- {- group: ["@ant-design/icons", "@ant-design/icons/*"],- message: "@ant-design/icons is gone from the dashboard; use lucide-react instead.",- },],},],@@ -94,7 +85,6 @@ const eslintConfig = [files: ["src/**/*.test.{ts,tsx}", "tests/**/*.{ts,tsx}"],plugins: { "testing-library": testingLibrary, "jest-dom": jestDom },rules: {- "local/no-antd-class-selectors": "error","testing-library/await-async-queries": "error","testing-library/no-wait-for-multiple-assertions": "error","testing-library/no-wait-for-side-effects": "error",diff --git a/ui/litellm-dashboard/package-lock.json b/ui/litellm-dashboard/package-lock.jsonindex 154a19da7f3..7ea6aa5b2a4 100644--- a/ui/litellm-dashboard/package-lock.json+++ b/ui/litellm-dashboard/package-lock.json@@ -8,7 +8,6 @@"name": "litellm-dashboard","version": "0.1.0","dependencies": {- "@ant-design/cssinjs": "1.24.0","@anthropic-ai/sdk": "0.92.0","@base-ui/react": "^1.6.0","@headlessui/tailwindcss": "0.2.2",@@ -18,7 +17,6 @@"@tanstack/react-query": "5.100.7","@tanstack/react-table": "8.21.3","@types/papaparse": "5.5.2",- "antd": "5.29.3","cva": "1.0.0-beta.4","date-fns": "^4.4.0","dayjs": "1.11.19",@@ -123,103 +121,6 @@"node": ">=6.0.0"}},- "node_modules/@ant-design/colors": {- "version": "7.2.1",- "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-7.2.1.tgz",- "integrity": "sha512-lCHDcEzieu4GA3n8ELeZ5VQ8pKQAWcGGLRTQ50aQM2iqPpq2evTxER84jfdPvsPAtEcZ7m44NI45edFMo8oOYQ==",- "license": "MIT",- "dependencies": {- "@ant-design/fast-color": "^2.0.6"- }- },- "node_modules/@ant-design/cssinjs": {- "version": "1.24.0",- "resolved": "https://registry.npmjs.org/@ant-design/cssinjs/-/cssinjs-1.24.0.tgz",- "integrity": "sha512-K4cYrJBsgvL+IoozUXYjbT6LHHNt+19a9zkvpBPxLjFHas1UpPM2A5MlhROb0BT8N8WoavM5VsP9MeSeNK/3mg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.1",- "@emotion/hash": "^0.8.0",- "@emotion/unitless": "^0.7.5",- "classnames": "^2.3.1",- "csstype": "^3.1.3",- "rc-util": "^5.35.0",- "stylis": "^4.3.4"- },- "peerDependencies": {- "react": ">=16.0.0",- "react-dom": ">=16.0.0"- }- },- "node_modules/@ant-design/cssinjs-utils": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz",- "integrity": "sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg==",- "license": "MIT",- "dependencies": {- "@ant-design/cssinjs": "^1.21.0",- "@babel/runtime": "^7.23.2",- "rc-util": "^5.38.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@ant-design/fast-color": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-2.0.6.tgz",- "integrity": "sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.24.7"- },- "engines": {- "node": ">=8.x"- }- },- "node_modules/@ant-design/icons": {- "version": "5.6.1",- "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.6.1.tgz",- "integrity": "sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==",- "license": "MIT",- "dependencies": {- "@ant-design/colors": "^7.0.0",- "@ant-design/icons-svg": "^4.4.0",- "@babel/runtime": "^7.24.8",- "classnames": "^2.2.6",- "rc-util": "^5.31.1"- },- "engines": {- "node": ">=8"- },- "peerDependencies": {- "react": ">=16.0.0",- "react-dom": ">=16.0.0"- }- },- "node_modules/@ant-design/icons-svg": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.5.0.tgz",- "integrity": "sha512-1BTUFyKPTBZ53MuTP8s0k5SFEXL7o3VHEOwLgzaoWKwnBeqIcqUtVshc4SKzhI6uACfqhJqBwBUE9FsWR3uULA==",- "license": "MIT"- },- "node_modules/@ant-design/react-slick": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-1.1.2.tgz",- "integrity": "sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.4",- "classnames": "^2.2.5",- "json2mq": "^0.2.0",- "resize-observer-polyfill": "^1.5.1",- "throttle-debounce": "^5.0.0"- },- "peerDependencies": {- "react": ">=16.9.0"- }- },"node_modules/@anthropic-ai/sdk": {"version": "0.92.0","resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.92.0.tgz",@@ -810,18 +711,6 @@"tslib": "^2.4.0"}},- "node_modules/@emotion/hash": {- "version": "0.8.0",- "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz",- "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==",- "license": "MIT"- },- "node_modules/@emotion/unitless": {- "version": "0.7.5",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz",- "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==",- "license": "MIT"- },"node_modules/@esbuild/aix-ppc64": {"version": "0.28.1","resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",@@ -2625,153 +2514,6 @@"dev": true,"license": "MIT"},- "node_modules/@rc-component/async-validator": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-5.1.2.tgz",- "integrity": "sha512-WYbrZSjzznU1ekD0qFq2qRxt309VoS61MTG5npnFQlKYcoy9IzU8T+ZCIhq5bGAXRbXysABFWTspicMfmWFwow==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.24.4"- },- "engines": {- "node": ">=14.x"- }- },- "node_modules/@rc-component/color-picker": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@rc-component/color-picker/-/color-picker-2.0.1.tgz",- "integrity": "sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==",- "license": "MIT",- "dependencies": {- "@ant-design/fast-color": "^2.0.6",- "@babel/runtime": "^7.23.6",- "classnames": "^2.2.6",- "rc-util": "^5.38.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/context": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@rc-component/context/-/context-1.4.0.tgz",- "integrity": "sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "rc-util": "^5.27.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/mini-decimal": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.4.tgz",- "integrity": "sha512-xiuXcaCwyOWpD8a8scdExFl+bntNphAW8XeenL1ig2en0AAZY0Pcp4pC0dI22qJ+NvxKn9RoNIoRdqYU3BLH4w==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.0"- },- "engines": {- "node": ">=8.x"- }- },- "node_modules/@rc-component/mutate-observer": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@rc-component/mutate-observer/-/mutate-observer-1.1.0.tgz",- "integrity": "sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.0",- "classnames": "^2.3.2",- "rc-util": "^5.24.4"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/portal": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@rc-component/portal/-/portal-1.1.2.tgz",- "integrity": "sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.0",- "classnames": "^2.3.2",- "rc-util": "^5.24.4"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/qrcode": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@rc-component/qrcode/-/qrcode-1.1.3.tgz",- "integrity": "sha512-aGv6alnn4HbDEsURzKP+jv13rbi1VxmAYfBNZr5GKF1iohMNWy5tAVoJ1E3cOvzMB1kbUPvCXchM6zSFlRGPhA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.24.7"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/tour": {- "version": "1.15.1",- "resolved": "https://registry.npmjs.org/@rc-component/tour/-/tour-1.15.1.tgz",- "integrity": "sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.0",- "@rc-component/portal": "^1.0.0-9",- "@rc-component/trigger": "^2.0.0",- "classnames": "^2.3.2",- "rc-util": "^5.24.4"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/@rc-component/trigger": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.3.1.tgz",- "integrity": "sha512-ORENF39PeXTzM+gQEshuk460Z8N4+6DkjpxlpE7Q3gYy1iBpLrx0FOJz3h62ryrJZ/3zCAUIkT1Pb/8hHWpb3A==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.2",- "@rc-component/portal": "^1.1.0",- "classnames": "^2.3.2",- "rc-motion": "^2.0.0",- "rc-resize-observer": "^1.3.1",- "rc-util": "^5.44.0"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },"node_modules/@redocly/ajv": {"version": "8.11.2","resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz",@@ -4861,71 +4603,6 @@"url": "https://github.com/chalk/ansi-styles?sponsor=1"}},- "node_modules/antd": {- "version": "5.29.3",- "resolved": "https://registry.npmjs.org/antd/-/antd-5.29.3.tgz",- "integrity": "sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A==",- "license": "MIT",- "dependencies": {- "@ant-design/colors": "^7.2.1",- "@ant-design/cssinjs": "^1.23.0",- "@ant-design/cssinjs-utils": "^1.1.3",- "@ant-design/fast-color": "^2.0.6",- "@ant-design/icons": "^5.6.1",- "@ant-design/react-slick": "~1.1.2",- "@babel/runtime": "^7.26.0",- "@rc-component/color-picker": "~2.0.1",- "@rc-component/mutate-observer": "^1.1.0",- "@rc-component/qrcode": "~1.1.0",- "@rc-component/tour": "~1.15.1",- "@rc-component/trigger": "^2.3.0",- "classnames": "^2.5.1",- "copy-to-clipboard": "^3.3.3",- "dayjs": "^1.11.11",- "rc-cascader": "~3.34.0",- "rc-checkbox": "~3.5.0",- "rc-collapse": "~3.9.0",- "rc-dialog": "~9.6.0",- "rc-drawer": "~7.3.0",- "rc-dropdown": "~4.2.1",- "rc-field-form": "~2.7.1",- "rc-image": "~7.12.0",- "rc-input": "~1.8.0",- "rc-input-number": "~9.5.0",- "rc-mentions": "~2.20.0",- "rc-menu": "~9.16.1",- "rc-motion": "^2.9.5",- "rc-notification": "~5.6.4",- "rc-pagination": "~5.1.0",- "rc-picker": "~4.11.3",- "rc-progress": "~4.0.0",- "rc-rate": "~2.13.1",- "rc-resize-observer": "^1.4.3",- "rc-segmented": "~2.7.0",- "rc-select": "~14.16.8",- "rc-slider": "~11.1.9",- "rc-steps": "~6.0.1",- "rc-switch": "~4.1.0",- "rc-table": "~7.54.0",- "rc-tabs": "~15.7.0",- "rc-textarea": "~1.10.2",- "rc-tooltip": "~6.4.0",- "rc-tree": "~5.13.1",- "rc-tree-select": "~5.27.0",- "rc-upload": "~4.11.0",- "rc-util": "^5.44.4",- "scroll-into-view-if-needed": "^3.1.0",- "throttle-debounce": "^5.0.2"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/ant-design"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },"node_modules/argparse": {"version": "2.0.1","resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",@@ -5483,12 +5160,6 @@"node": ">= 16"}},- "node_modules/classnames": {- "version": "2.5.1",- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",- "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==",- "license": "MIT"- },"node_modules/client-only": {"version": "0.0.1","resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",@@ -5553,12 +5224,6 @@"url": "https://github.com/sponsors/wooorm"}},- "node_modules/compute-scroll-into-view": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz",- "integrity": "sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==",- "license": "MIT"- },"node_modules/convert-source-map": {"version": "2.0.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",@@ -8465,15 +8130,6 @@"dev": true,"license": "MIT"},- "node_modules/json2mq": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz",- "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==",- "license": "MIT",- "dependencies": {- "string-convert": "^0.2.0"- }- },"node_modules/json5": {"version": "1.0.2","resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",@@ -10937,618 +10593,6 @@],"license": "MIT"},- "node_modules/rc-cascader": {- "version": "3.34.0",- "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.34.0.tgz",- "integrity": "sha512-KpXypcvju9ptjW9FaN2NFcA2QH9E9LHKq169Y0eWtH4e/wHQ5Wh5qZakAgvb8EKZ736WZ3B0zLLOBsrsja5Dag==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.25.7",- "classnames": "^2.3.1",- "rc-select": "~14.16.2",- "rc-tree": "~5.13.0",- "rc-util": "^5.43.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-checkbox": {- "version": "3.5.0",- "resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-3.5.0.tgz",- "integrity": "sha512-aOAQc3E98HteIIsSqm6Xk2FPKIER6+5vyEFMZfo73TqM+VVAIqOkHoPjgKLqSNtVLWScoaM7vY2ZrGEheI79yg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.3.2",- "rc-util": "^5.25.2"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-collapse": {- "version": "3.9.0",- "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.9.0.tgz",- "integrity": "sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "2.x",- "rc-motion": "^2.3.4",- "rc-util": "^5.27.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-dialog": {- "version": "9.6.0",- "resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-9.6.0.tgz",- "integrity": "sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "@rc-component/portal": "^1.0.0-8",- "classnames": "^2.2.6",- "rc-motion": "^2.3.0",- "rc-util": "^5.21.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-drawer": {- "version": "7.3.0",- "resolved": "https://registry.npmjs.org/rc-drawer/-/rc-drawer-7.3.0.tgz",- "integrity": "sha512-DX6CIgiBWNpJIMGFO8BAISFkxiuKitoizooj4BDyee8/SnBn0zwO2FHrNDpqqepj0E/TFTDpmEBCyFuTgC7MOg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@rc-component/portal": "^1.1.1",- "classnames": "^2.2.6",- "rc-motion": "^2.6.1",- "rc-util": "^5.38.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-dropdown": {- "version": "4.2.1",- "resolved": "https://registry.npmjs.org/rc-dropdown/-/rc-dropdown-4.2.1.tgz",- "integrity": "sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "@rc-component/trigger": "^2.0.0",- "classnames": "^2.2.6",- "rc-util": "^5.44.1"- },- "peerDependencies": {- "react": ">=16.11.0",- "react-dom": ">=16.11.0"- }- },- "node_modules/rc-field-form": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-2.7.1.tgz",- "integrity": "sha512-vKeSifSJ6HoLaAB+B8aq/Qgm8a3dyxROzCtKNCsBQgiverpc4kWDQihoUwzUj+zNWJOykwSY4dNX3QrGwtVb9A==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.0",- "@rc-component/async-validator": "^5.0.3",- "rc-util": "^5.32.2"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-image": {- "version": "7.12.0",- "resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.12.0.tgz",- "integrity": "sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.2",- "@rc-component/portal": "^1.0.2",- "classnames": "^2.2.6",- "rc-dialog": "~9.6.0",- "rc-motion": "^2.6.2",- "rc-util": "^5.34.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-input": {- "version": "1.8.0",- "resolved": "https://registry.npmjs.org/rc-input/-/rc-input-1.8.0.tgz",- "integrity": "sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.1",- "classnames": "^2.2.1",- "rc-util": "^5.18.1"- },- "peerDependencies": {- "react": ">=16.0.0",- "react-dom": ">=16.0.0"- }- },- "node_modules/rc-input-number": {- "version": "9.5.0",- "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.5.0.tgz",- "integrity": "sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "@rc-component/mini-decimal": "^1.0.1",- "classnames": "^2.2.5",- "rc-input": "~1.8.0",- "rc-util": "^5.40.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-mentions": {- "version": "2.20.0",- "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.20.0.tgz",- "integrity": "sha512-w8HCMZEh3f0nR8ZEd466ATqmXFCMGMN5UFCzEUL0bM/nGw/wOS2GgRzKBcm19K++jDyuWCOJOdgcKGXU3fXfbQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.22.5",- "@rc-component/trigger": "^2.0.0",- "classnames": "^2.2.6",- "rc-input": "~1.8.0",- "rc-menu": "~9.16.0",- "rc-textarea": "~1.10.0",- "rc-util": "^5.34.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-menu": {- "version": "9.16.1",- "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.16.1.tgz",- "integrity": "sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "@rc-component/trigger": "^2.0.0",- "classnames": "2.x",- "rc-motion": "^2.4.3",- "rc-overflow": "^1.3.1",- "rc-util": "^5.27.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-motion": {- "version": "2.9.5",- "resolved": "https://registry.npmjs.org/rc-motion/-/rc-motion-2.9.5.tgz",- "integrity": "sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.1",- "classnames": "^2.2.1",- "rc-util": "^5.44.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-notification": {- "version": "5.6.4",- "resolved": "https://registry.npmjs.org/rc-notification/-/rc-notification-5.6.4.tgz",- "integrity": "sha512-KcS4O6B4qzM3KH7lkwOB7ooLPZ4b6J+VMmQgT51VZCeEcmghdeR4IrMcFq0LG+RPdnbe/ArT086tGM8Snimgiw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "2.x",- "rc-motion": "^2.9.0",- "rc-util": "^5.20.1"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-overflow": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/rc-overflow/-/rc-overflow-1.5.0.tgz",- "integrity": "sha512-Lm/v9h0LymeUYJf0x39OveU52InkdRXqnn2aYXfWmo8WdOonIKB2kfau+GF0fWq6jPgtdO9yMqveGcK6aIhJmg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.1",- "classnames": "^2.2.1",- "rc-resize-observer": "^1.0.0",- "rc-util": "^5.37.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-pagination": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/rc-pagination/-/rc-pagination-5.1.0.tgz",- "integrity": "sha512-8416Yip/+eclTFdHXLKTxZvn70duYVGTvUUWbckCCZoIl3jagqke3GLsFrMs0bsQBikiYpZLD9206Ej4SOdOXQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.3.2",- "rc-util": "^5.38.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-picker": {- "version": "4.11.3",- "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.11.3.tgz",- "integrity": "sha512-MJ5teb7FlNE0NFHTncxXQ62Y5lytq6sh5nUw0iH8OkHL/TjARSEvSHpr940pWgjGANpjCwyMdvsEV55l5tYNSg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.24.7",- "@rc-component/trigger": "^2.0.0",- "classnames": "^2.2.1",- "rc-overflow": "^1.3.2",- "rc-resize-observer": "^1.4.0",- "rc-util": "^5.43.0"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "date-fns": ">= 2.x",- "dayjs": ">= 1.x",- "luxon": ">= 3.x",- "moment": ">= 2.x",- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- },- "peerDependenciesMeta": {- "date-fns": {- "optional": true- },- "dayjs": {- "optional": true- },- "luxon": {- "optional": true- },- "moment": {- "optional": true- }- }- },- "node_modules/rc-progress": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/rc-progress/-/rc-progress-4.0.0.tgz",- "integrity": "sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.2.6",- "rc-util": "^5.16.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-rate": {- "version": "2.13.1",- "resolved": "https://registry.npmjs.org/rc-rate/-/rc-rate-2.13.1.tgz",- "integrity": "sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.2.5",- "rc-util": "^5.0.1"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-resize-observer": {- "version": "1.4.3",- "resolved": "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz",- "integrity": "sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.20.7",- "classnames": "^2.2.1",- "rc-util": "^5.44.1",- "resize-observer-polyfill": "^1.5.1"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-segmented": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/rc-segmented/-/rc-segmented-2.7.1.tgz",- "integrity": "sha512-izj1Nw/Dw2Vb7EVr+D/E9lUTkBe+kKC+SAFSU9zqr7WV2W5Ktaa9Gc7cB2jTqgk8GROJayltaec+DBlYKc6d+g==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.1",- "classnames": "^2.2.1",- "rc-motion": "^2.4.4",- "rc-util": "^5.17.0"- },- "peerDependencies": {- "react": ">=16.0.0",- "react-dom": ">=16.0.0"- }- },- "node_modules/rc-select": {- "version": "14.16.8",- "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.16.8.tgz",- "integrity": "sha512-NOV5BZa1wZrsdkKaiK7LHRuo5ZjZYMDxPP6/1+09+FB4KoNi8jcG1ZqLE3AVCxEsYMBe65OBx71wFoHRTP3LRg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "@rc-component/trigger": "^2.1.1",- "classnames": "2.x",- "rc-motion": "^2.0.1",- "rc-overflow": "^1.3.1",- "rc-util": "^5.16.1",- "rc-virtual-list": "^3.5.2"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": "*",- "react-dom": "*"- }- },- "node_modules/rc-slider": {- "version": "11.1.9",- "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-11.1.9.tgz",- "integrity": "sha512-h8IknhzSh3FEM9u8ivkskh+Ef4Yo4JRIY2nj7MrH6GQmrwV6mcpJf5/4KgH5JaVI1H3E52yCdpOlVyGZIeph5A==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.2.5",- "rc-util": "^5.36.0"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-steps": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/rc-steps/-/rc-steps-6.0.1.tgz",- "integrity": "sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.16.7",- "classnames": "^2.2.3",- "rc-util": "^5.16.1"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-switch": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/rc-switch/-/rc-switch-4.1.0.tgz",- "integrity": "sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.21.0",- "classnames": "^2.2.1",- "rc-util": "^5.30.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-table": {- "version": "7.54.0",- "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.54.0.tgz",- "integrity": "sha512-/wDTkki6wBTjwylwAGjpLKYklKo9YgjZwAU77+7ME5mBoS32Q4nAwoqhA2lSge6fobLW3Tap6uc5xfwaL2p0Sw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "@rc-component/context": "^1.4.0",- "classnames": "^2.2.5",- "rc-resize-observer": "^1.1.0",- "rc-util": "^5.44.3",- "rc-virtual-list": "^3.14.2"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-tabs": {- "version": "15.7.0",- "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-15.7.0.tgz",- "integrity": "sha512-ZepiE+6fmozYdWf/9gVp7k56PKHB1YYoDsKeQA1CBlJ/POIhjkcYiv0AGP0w2Jhzftd3AVvZP/K+V+Lpi2ankA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.2",- "classnames": "2.x",- "rc-dropdown": "~4.2.0",- "rc-menu": "~9.16.0",- "rc-motion": "^2.6.2",- "rc-resize-observer": "^1.0.0",- "rc-util": "^5.34.1"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-textarea": {- "version": "1.10.2",- "resolved": "https://registry.npmjs.org/rc-textarea/-/rc-textarea-1.10.2.tgz",- "integrity": "sha512-HfaeXiaSlpiSp0I/pvWpecFEHpVysZ9tpDLNkxQbMvMz6gsr7aVZ7FpWP9kt4t7DB+jJXesYS0us1uPZnlRnwQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "^2.2.1",- "rc-input": "~1.8.0",- "rc-resize-observer": "^1.0.0",- "rc-util": "^5.27.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-tooltip": {- "version": "6.4.0",- "resolved": "https://registry.npmjs.org/rc-tooltip/-/rc-tooltip-6.4.0.tgz",- "integrity": "sha512-kqyivim5cp8I5RkHmpsp1Nn/Wk+1oeloMv9c7LXNgDxUpGm+RbXJGL+OPvDlcRnx9DBeOe4wyOIl4OKUERyH1g==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.11.2",- "@rc-component/trigger": "^2.0.0",- "classnames": "^2.3.1",- "rc-util": "^5.44.3"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-tree": {- "version": "5.13.1",- "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.13.1.tgz",- "integrity": "sha512-FNhIefhftobCdUJshO7M8uZTA9F4OPGVXqGfZkkD/5soDeOhwO06T/aKTrg0WD8gRg/pyfq+ql3aMymLHCTC4A==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.10.1",- "classnames": "2.x",- "rc-motion": "^2.0.1",- "rc-util": "^5.16.1",- "rc-virtual-list": "^3.5.1"- },- "engines": {- "node": ">=10.x"- },- "peerDependencies": {- "react": "*",- "react-dom": "*"- }- },- "node_modules/rc-tree-select": {- "version": "5.27.0",- "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.27.0.tgz",- "integrity": "sha512-2qTBTzwIT7LRI1o7zLyrCzmo5tQanmyGbSaGTIf7sYimCklAToVVfpMC6OAldSKolcnjorBYPNSKQqJmN3TCww==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.25.7",- "classnames": "2.x",- "rc-select": "~14.16.2",- "rc-tree": "~5.13.0",- "rc-util": "^5.43.0"- },- "peerDependencies": {- "react": "*",- "react-dom": "*"- }- },- "node_modules/rc-upload": {- "version": "4.11.0",- "resolved": "https://registry.npmjs.org/rc-upload/-/rc-upload-4.11.0.tgz",- "integrity": "sha512-ZUyT//2JAehfHzjWowqROcwYJKnZkIUGWaTE/VogVrepSl7AFNbQf4+zGfX4zl9Vrj/Jm8scLO0R6UlPDKK4wA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "classnames": "^2.2.5",- "rc-util": "^5.2.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-util": {- "version": "5.44.4",- "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-5.44.4.tgz",- "integrity": "sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.18.3",- "react-is": "^18.2.0"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },- "node_modules/rc-util/node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",- "license": "MIT"- },- "node_modules/rc-virtual-list": {- "version": "3.19.2",- "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.19.2.tgz",- "integrity": "sha512-Ys6NcjwGkuwkeaWBDqfI3xWuZ7rDiQXlH1o2zLfFzATfEgXcqpk8CkgMfbJD81McqjcJVez25a3kPxCR807evA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.20.0",- "classnames": "^2.2.6",- "rc-resize-observer": "^1.0.0",- "rc-util": "^5.36.0"- },- "engines": {- "node": ">=8.x"- },- "peerDependencies": {- "react": ">=16.9.0",- "react-dom": ">=16.9.0"- }- },"node_modules/react": {"version": "19.2.8","resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",@@ -11986,12 +11030,6 @@"integrity": "sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==","license": "MIT"},- "node_modules/resize-observer-polyfill": {- "version": "1.5.1",- "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",- "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==",- "license": "MIT"- },"node_modules/resolve": {"version": "2.0.0-next.6","resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.6.tgz",@@ -12190,15 +11228,6 @@"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==","license": "MIT"},- "node_modules/scroll-into-view-if-needed": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.1.0.tgz",- "integrity": "sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==",- "license": "MIT",- "dependencies": {- "compute-scroll-into-view": "^3.0.2"- }- },"node_modules/semver": {"version": "7.8.5","resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",@@ -12515,12 +11544,6 @@"node": ">= 0.4"}},- "node_modules/string-convert": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz",- "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==",- "license": "MIT"- },"node_modules/string.prototype.includes": {"version": "2.0.1","resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",@@ -12745,12 +11768,6 @@}}},- "node_modules/stylis": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz",- "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==",- "license": "MIT"- },"node_modules/supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",@@ -12829,15 +11846,6 @@"node": ">=18"}},- "node_modules/throttle-debounce": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz",- "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==",- "license": "MIT",- "engines": {- "node": ">=12.22"- }- },"node_modules/tiny-invariant": {"version": "1.3.3","resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",diff --git a/ui/litellm-dashboard/package.json b/ui/litellm-dashboard/package.jsonindex 3f9c29d2afe..6b2d4e6106b 100644--- a/ui/litellm-dashboard/package.json+++ b/ui/litellm-dashboard/package.json@@ -24,7 +24,6 @@"gen:api": "node scripts/gen-api-types.mjs"},"dependencies": {- "@ant-design/cssinjs": "1.24.0","@anthropic-ai/sdk": "0.92.0","@base-ui/react": "^1.6.0","@headlessui/tailwindcss": "0.2.2",@@ -34,7 +33,6 @@"@tanstack/react-query": "5.100.7","@tanstack/react-table": "8.21.3","@types/papaparse": "5.5.2",- "antd": "5.29.3","cva": "1.0.0-beta.4","date-fns": "^4.4.0","dayjs": "1.11.19",diff --git a/ui/litellm-dashboard/scripts/eslint-rules/index.mjs b/ui/litellm-dashboard/scripts/eslint-rules/index.mjsindex 52db03a2c10..9e9f901a6df 100644--- a/ui/litellm-dashboard/scripts/eslint-rules/index.mjs+++ b/ui/litellm-dashboard/scripts/eslint-rules/index.mjs@@ -2,7 +2,6 @@ import noLargeInlineObjectArg from "./no-large-inline-object-arg.mjs";import noLongConditionChain from "./no-long-condition-chain.mjs";import noComplexJsxArrow from "./no-complex-jsx-arrow.mjs";import filenamePascalCase from "./filename-pascal-case.mjs";-import noAntdClassSelectors from "./no-antd-class-selectors.mjs";const plugin = {rules: {@@ -10,7 +9,6 @@ const plugin = {"no-long-condition-chain": noLongConditionChain,"no-complex-jsx-arrow": noComplexJsxArrow,"filename-pascal-case": filenamePascalCase,- "no-antd-class-selectors": noAntdClassSelectors,},};diff --git a/ui/litellm-dashboard/scripts/eslint-rules/no-antd-class-selectors.mjs b/ui/litellm-dashboard/scripts/eslint-rules/no-antd-class-selectors.mjsdeleted file mode 100644index c95bdb0467f..00000000000--- a/ui/litellm-dashboard/scripts/eslint-rules/no-antd-class-selectors.mjs+++ /dev/null@@ -1,45 +0,0 @@-const SELECTOR_REFERENCE = /\.(?:ant|anticon)-[a-z0-9-]+/;-const BARE_CLASS_REFERENCE = /^(?:ant|anticon)-[a-z0-9-]+$/;-const CLASS_ASSERTION_CALLEES = new Set(["toHaveClass", "contains", "toContain"]);--const isClassAssertionArgument = (node) => {- const call = node.parent;- if (call?.type !== "CallExpression" || !call.arguments.includes(node)) return false;- const callee = call.callee;- return callee?.type === "MemberExpression" && CLASS_ASSERTION_CALLEES.has(callee.property?.name);-};--const rule = {- meta: {- type: "problem",- docs: {- description:- "Disallow locating or asserting on antd's internal CSS classes in tests; query by role, label or text instead.",- },- schema: [],- messages: {- antdClass:- 'Test depends on antd internal class "{{value}}". Query by role, label or text (getByLabelText, getByRole("combobox"), getByTitle) so the test survives the shadcn migration.',- },- },- create(context) {- const report = (node, value) => {- if (typeof value !== "string") return;- const matches =- SELECTOR_REFERENCE.test(value) || (BARE_CLASS_REFERENCE.test(value) && isClassAssertionArgument(node));- if (!matches) return;- context.report({ node, messageId: "antdClass", data: { value } });- };-- return {- Literal(node) {- report(node, node.value);- },- TemplateElement(node) {- report(node, node.value.cooked);- },- };- },-};--export default rule;diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsxindex 146e0fa86e6..eb880068d12 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/TeamGuardrailsTab.tsx@@ -36,7 +36,7 @@ import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Textarea } from "@/components/ui/textarea";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";-import { isAntdUrl } from "@/lib/forms/antdUrl";+import { isValidUrl } from "@/lib/forms/urlValidation";import { useZodForm } from "@/lib/forms/useZodForm";import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";import { Button } from "@/components/ui/button";@@ -51,7 +51,7 @@ const submitGuardrailSchema = z.object({team_id: z.string().min(1, "Select a team"),guardrail_name: z.string().min(1, "Enter a guardrail name"),mode: z.string().min(1, "Select a mode"),- api_base: z.string().min(1, "Enter the API base URL").refine(isAntdUrl, "Must be a valid URL"),+ api_base: z.string().min(1, "Enter the API base URL").refine(isValidUrl, "Must be a valid URL"),extra_litellm_params: z.string().superRefine((value, ctx) => {if (!value) return;try {diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CustomPatternModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CustomPatternModal.tsxindex 20bdddd3b74..64441c90e5a 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CustomPatternModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/CustomPatternModal.tsx@@ -4,7 +4,7 @@ import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { ACTION_ITEMS } from "./action_options";-import { ABOVE_ANTD_MODAL } from "./dialog_layering";+import { NESTED_DIALOG_LAYER } from "./dialog_layering";interface CustomPatternModalProps {visible: boolean;@@ -31,7 +31,7 @@ const CustomPatternModal: React.FC<CustomPatternModalProps> = ({}) => {return (<Dialog open={visible} onOpenChange={(open) => !open && onCancel()}>- <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${ABOVE_ANTD_MODAL}`}>+ <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${NESTED_DIALOG_LAYER}`}><DialogHeader><DialogTitle>Add custom regex pattern</DialogTitle></DialogHeader>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/KeywordModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/KeywordModal.tsxindex 45627a2f101..177c0d2fac6 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/KeywordModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/KeywordModal.tsx@@ -5,7 +5,7 @@ import { Input } from "@/components/ui/input";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Textarea } from "@/components/ui/textarea";import { ACTION_ITEMS } from "./action_options";-import { ABOVE_ANTD_MODAL } from "./dialog_layering";+import { NESTED_DIALOG_LAYER } from "./dialog_layering";interface KeywordModalProps {visible: boolean;@@ -32,7 +32,7 @@ const KeywordModal: React.FC<KeywordModalProps> = ({}) => {return (<Dialog open={visible} onOpenChange={(open) => !open && onCancel()}>- <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${ABOVE_ANTD_MODAL}`}>+ <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${NESTED_DIALOG_LAYER}`}><DialogHeader><DialogTitle>Add blocked keyword</DialogTitle></DialogHeader>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/PatternModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/PatternModal.tsxindex 2d98b67cb4a..e703711a03a 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/PatternModal.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/PatternModal.tsx@@ -14,7 +14,7 @@ import {import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { ACTION_ITEMS } from "./action_options";-import { ABOVE_ANTD_MODAL } from "./dialog_layering";+import { NESTED_DIALOG_LAYER } from "./dialog_layering";interface PrebuiltPattern {name: string;@@ -66,7 +66,7 @@ const PatternModal: React.FC<PatternModalProps> = ({return (<Dialog open={visible} onOpenChange={(open) => !open && onCancel()}>- <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${ABOVE_ANTD_MODAL}`}>+ <DialogContent className={`max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-[800px] ${NESTED_DIALOG_LAYER}`}><DialogHeader><DialogTitle>Add prebuilt pattern</DialogTitle></DialogHeader>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/dialog_layering.ts b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/dialog_layering.tsindex f31ab788beb..0e29ffb6250 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/dialog_layering.ts+++ b/ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/content_filter/dialog_layering.ts@@ -1 +1 @@-export const ABOVE_ANTD_MODAL = "z-[1100]";+export const NESTED_DIALOG_LAYER = "z-[1100]";diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/AwsSigV4Fields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/AwsSigV4Fields.tsxindex 77a77596bed..6249614749d 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/AwsSigV4Fields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/AwsSigV4Fields.tsx@@ -3,7 +3,7 @@ import React from "react";import { SimpleTooltip } from "@/components/ui/tooltip";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { PasswordInput } from "@/components/shared/PasswordInput";import { Input } from "@/components/ui/input";import { requiredWhenSiblingSet, textControl } from "./mcpFieldRules";@@ -39,7 +39,7 @@ const AwsSigV4Fields: React.FC = () => (label={<FieldLabel label="AWS Region" tooltip="AWS region for SigV4 signing (e.g., us-east-1)" />}name={["credentials", "aws_region_name"]}required- rules={{ validate: { required: antdRequired("AWS region is required for SigV4 auth") } }}+ rules={{ validate: { required: requiredRule("AWS region is required for SigV4 auth") } }}>{(control) => <Input {...textControl(control)} placeholder="us-east-1" className={fieldClassName} />}</MountedFormField>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/CreateMCPServer.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/CreateMCPServer.tsxindex 75680d2e03f..49694d90ae4 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/CreateMCPServer.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/CreateMCPServer.tsx@@ -63,7 +63,7 @@ import {useMountRegistry,type MountedFormValues,} from "@/components/common_components/MountedFormField";-import { antdRequired, antdRules } from "@/components/common_components/antdFormRules";+import { requiredRule, validatorRules } from "@/components/common_components/formRules";import { allFieldsValue, mountedPaths, resetFields, setFieldsValue, singleBranchChange } from "./mcpFormStore";import { numberControl, notOnlyWhitespace, selectControl, selectTriggerControl, textControl } from "./mcpFieldRules";import mcpLogo from "../../../../../public/assets/logos/mcp_logo.png";@@ -657,7 +657,7 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({</span>}name="server_name"- rules={{ validate: antdRules({ validator: (_, value) => validateMCPServerName(value) }) }}+ rules={{ validate: validatorRules({ validator: (_, value) => validateMCPServerName(value) }) }}>{(control) => (<Input@@ -678,7 +678,7 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({</span>}name="alias"- rules={{ validate: antdRules({ validator: (_, value) => validateMCPServerName(value) }) }}+ rules={{ validate: validatorRules({ validator: (_, value) => validateMCPServerName(value) }) }}>{(control) => (<Input@@ -725,7 +725,7 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({label={<span className="text-sm font-medium text-gray-700">Transport Type</span>}name="transport"required- rules={{ validate: { required: antdRequired("Please select a transport type") } }}+ rules={{ validate: { required: requiredRule("Please select a transport type") } }}>{(control) => (<Select@@ -755,8 +755,8 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({requiredrules={{validate: {- required: antdRequired("Please enter a server URL"),- ...antdRules({ validator: (_, value) => validateMCPServerUrl(value) }),+ required: requiredRule("Please enter a server URL"),+ ...validatorRules({ validator: (_, value) => validateMCPServerUrl(value) }),},}}>@@ -821,7 +821,7 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({label="Authentication"name="auth_type"required- rules={{ validate: { required: antdRequired("Please select an auth type") } }}+ rules={{ validate: { required: requiredRule("Please select an auth type") } }}>{(control) => (<Select {...selectControl<string>(control)} items={AUTH_TYPE_ITEMS}>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/EnvVarsSection.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/EnvVarsSection.tsxindex f6f724b666d..b2822761e29 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/EnvVarsSection.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/EnvVarsSection.tsx@@ -12,7 +12,7 @@ import {useMountedName,type MountedFormValues,} from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { matchesPattern, selectControl, selectTriggerControl, textControl } from "./mcpFieldRules";import { listControl } from "./mcpFormStore";@@ -80,7 +80,7 @@ const EnvVarsSection: React.FC = () => {className="mb-0 flex-1"rules={{validate: {- required: antdRequired("Variable name is required"),+ required: requiredRule("Variable name is required"),pattern: matchesPattern(VARIABLE_NAME_PATTERN,"Use letters, digits, underscores; cannot start with a digit.",diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/IdJagFormFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/IdJagFormFields.tsxindex d4760a65e6c..7745e1d6586 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/IdJagFormFields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/IdJagFormFields.tsx@@ -3,7 +3,7 @@ import React from "react";import { SimpleTooltip } from "@/components/ui/tooltip";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { MultiSelect } from "@/components/shared/MultiSelect";import { PasswordInput } from "@/components/shared/PasswordInput";import { Input } from "@/components/ui/input";@@ -30,7 +30,7 @@ const PRIVATE_KEY_PATH = ["credentials", "client_private_key"] as const;const IdJagFormFields: React.FC<IdJagFormFieldsProps> = ({ isEditing = false }) => {const placeholderSuffix = isEditing ? " (leave blank to keep existing)" : "";const requiredWhenCreating = (message: string) =>- isEditing ? undefined : { validate: { required: antdRequired(message) } };+ isEditing ? undefined : { validate: { required: requiredRule(message) } };return (<>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsxindex c1da3f105db..14c82fbb0d9 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPPermissionManagement.tsx@@ -15,7 +15,7 @@ import {type MountedFieldControlProps,type MountedFormValues,} from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { Field, FieldLabel } from "@/components/shared/form/field";import { invertedSwitchControl, switchControl, tagsControl, textControl } from "./mcpFieldRules";import { listControl } from "./mcpFormStore";@@ -64,7 +64,7 @@ const StaticHeadersFieldArray: React.FC = () => {<MountedFormFieldname={["static_headers", String(index), "header"]}className="flex-1"- rules={{ validate: { required: antdRequired("Header name is required") } }}+ rules={{ validate: { required: requiredRule("Header name is required") } }}>{(headerControl) => (<ClearableInput@@ -77,7 +77,7 @@ const StaticHeadersFieldArray: React.FC = () => {<MountedFormFieldname={["static_headers", String(index), "value"]}className="flex-1"- rules={{ validate: { required: antdRequired("Header value is required") } }}+ rules={{ validate: { required: requiredRule("Header value is required") } }}>{(valueControl) => (<ClearableInput control={valueControl} placeholder="Header value" clearLabel="Clear header value" />diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OAuthFormFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OAuthFormFields.tsxindex e88c78271d3..60830281293 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OAuthFormFields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OAuthFormFields.tsx@@ -9,7 +9,7 @@ import { Input } from "@/components/ui/input";import { Textarea } from "@/components/ui/textarea";import { OAUTH_FLOW } from "@/components/mcp_tools/types";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import TokenEndpointAuthMethodField from "./TokenEndpointAuthMethodField";import {numberControl,@@ -79,7 +79,7 @@ const OAuthFormFields: React.FC<OAuthFormFieldsProps> = ({}) => {const placeholderSuffix = isEditing ? " (leave blank to keep existing)" : "";const requiredWhenCreating = (message: string) =>- isEditing ? undefined : { validate: { required: antdRequired(message) } };+ isEditing ? undefined : { validate: { required: requiredRule(message) } };return (<>diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OpenAPIFormSection.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OpenAPIFormSection.tsxindex 8907595d92a..56dce02ba6f 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OpenAPIFormSection.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/OpenAPIFormSection.tsx@@ -4,7 +4,7 @@ import { SimpleTooltip } from "@/components/ui/tooltip";import { Input } from "@/components/ui/input";import { AUTH_TYPE, OAUTH_FLOW } from "@/components/mcp_tools/types";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import OpenAPIQuickPicker, { OpenAPIRegistryEntry, OpenAPIKeyTool } from "./OpenAPIQuickPicker";import { McpForm, resetFields, setFieldsValue } from "./mcpFormStore";import { textControl } from "./mcpFieldRules";@@ -76,7 +76,7 @@ const OpenAPIFormSection: React.FC<OpenAPIFormSectionProps> = ({}name="spec_path"required- rules={{ validate: { required: antdRequired("Please enter an OpenAPI spec URL") } }}+ rules={{ validate: { required: requiredRule("Please enter an OpenAPI spec URL") } }}>{(control) => (<Inputdiff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/StdioConfiguration.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/StdioConfiguration.tsxindex fb8bff1307a..76831823c1f 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/StdioConfiguration.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/StdioConfiguration.tsx@@ -3,7 +3,7 @@ import React from "react";import { SimpleTooltip } from "@/components/ui/tooltip";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { Textarea } from "@/components/ui/textarea";import { parsesAsJson, textControl } from "./mcpFieldRules";@@ -46,7 +46,7 @@ const StdioConfiguration: React.FC<StdioConfigurationProps> = ({ isVisible, requrequired={required}rules={{validate: {- ...(required ? { required: antdRequired("Please enter stdio configuration") } : {}),+ ...(required ? { required: requiredRule("Please enter stdio configuration") } : {}),json: parsesAsJson("Please enter valid JSON"),},}}diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/TokenExchangeFormFields.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/TokenExchangeFormFields.tsxindex 5aaa013aba4..cb7a7d57f7c 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/TokenExchangeFormFields.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/TokenExchangeFormFields.tsx@@ -6,7 +6,7 @@ import { SimpleTooltip } from "@/components/ui/tooltip";import { useWatch } from "react-hook-form";import { MountedFormField } from "@/components/common_components/MountedFormField";-import { antdRequired } from "@/components/common_components/antdFormRules";+import { requiredRule } from "@/components/common_components/formRules";import { PasswordInput } from "@/components/shared/PasswordInput";import { Input } from "@/components/ui/input";import { selectControl, selectTriggerControl, tagsControl, textControl } from "./mcpFieldRules";@@ -35,7 +35,7 @@ const TokenExchangeFormFields: React.FC<TokenExchangeFormFieldsProps> = ({ isEdiconst placeholderSuffix = isEditing ? " (leave blank to keep existing)" : "";const isEntraObo = useWatch({ name: "token_exchange_profile" }) === "entra_obo";const requiredWhenCreating = (message: string) =>- isEditing ? undefined : { validate: { required: antdRequired(message) } };+ isEditing ? undefined : { validate: { required: requiredRule(message) } };return (<>@@ -170,7 +170,7 @@ const TokenExchangeFormFields: React.FC<TokenExchangeFormFieldsProps> = ({ isEdiisEntraObo? {validate: {- required: antdRequired("Microsoft Entra OBO requires a scope, e.g. api://<app-id>/.default"),+ required: requiredRule("Microsoft Entra OBO requires a scope, e.g. api://<app-id>/.default"),},}: undefineddiff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_server_edit.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_server_edit.tsxindex b42d9ec5f40..4fbdd37240c 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_server_edit.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcp_server_edit.tsx@@ -60,7 +60,7 @@ import {useMountRegistry,type MountedFormValues,} from "@/components/common_components/MountedFormField";-import { antdRequired, antdRules } from "@/components/common_components/antdFormRules";+import { requiredRule, validatorRules } from "@/components/common_components/formRules";import {allFieldsValue,mountedPaths,@@ -774,7 +774,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({<MountedFormFieldlabel="MCP Server Name"name="server_name"- rules={{ validate: antdRules({ validator: (_, value) => validateMCPServerName(value) }) }}+ rules={{ validate: validatorRules({ validator: (_, value) => validateMCPServerName(value) }) }}>{(control) => (<Input@@ -786,7 +786,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({<MountedFormFieldlabel="Alias"name="alias"- rules={{ validate: antdRules({ validator: (_, value) => validateMCPServerName(value) }) }}+ rules={{ validate: validatorRules({ validator: (_, value) => validateMCPServerName(value) }) }}>{(control) => (<Input@@ -812,7 +812,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({label="Transport Type"name="transport"required- rules={{ validate: { required: antdRequired("Transport Type is required") } }}+ rules={{ validate: { required: requiredRule("Transport Type is required") } }}>{(control) => (<Select@@ -842,8 +842,8 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({requiredrules={{validate: {- required: antdRequired("Please enter a server URL"),- ...antdRules({ validator: (_, value) => validateMCPServerUrl(value) }),+ required: requiredRule("Please enter a server URL"),+ ...validatorRules({ validator: (_, value) => validateMCPServerUrl(value) }),},}}>@@ -870,7 +870,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({}name="spec_path"required- rules={{ validate: { required: antdRequired("Please enter an OpenAPI spec URL") } }}+ rules={{ validate: { required: requiredRule("Please enter an OpenAPI spec URL") } }}>{(control) => (<Input@@ -911,7 +911,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({label="Authentication"name="auth_type"required- rules={{ validate: { required: antdRequired("Authentication is required") } }}+ rules={{ validate: { required: requiredRule("Authentication is required") } }}>{(control) => (<Select {...selectControl<string>(control)} items={AUTH_TYPE_ITEMS}>@@ -957,7 +957,7 @@ const MCPServerEdit: React.FC<MCPServerEditProps> = ({label="Command"name="command"required- rules={{ validate: { required: antdRequired("Please enter a command for stdio transport") } }}+ rules={{ validate: { required: requiredRule("Please enter a command for stdio transport") } }}>{(control) => (<Inputdiff --git a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/impact_popover.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/impact_popover.test.tsxindex 69c471a7c3d..434a7caa6f1 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/impact_popover.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/impact_popover.test.tsx@@ -8,59 +8,12 @@ import { PolicyAttachment } from "@/components/policies/types";vi.mock("@/components/networking");-interface LegacyIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {- icon: React.ComponentType;-}--interface LegacyPopoverProps {- children: React.ReactElement<React.HTMLAttributes<HTMLElement>>;- content: React.ReactNode;- onOpenChange?: (open: boolean) => void;- title?: React.ReactNode;-}--interface LegacyTooltipProps {- children: React.ReactElement<React.ButtonHTMLAttributes<HTMLButtonElement>>;- title?: React.ReactNode;-}-vi.mock("@heroicons/react/outline", () => ({EyeIcon: function EyeIcon() {return null;},}));-vi.mock("antd", async (importOriginal) => {- const actual = await importOriginal<typeof import("antd")>();- return {- ...actual,- Popover: ({ children, content, onOpenChange, title }: LegacyPopoverProps) => {- const [open, setOpen] = React.useState(false);- return (- <>- {React.cloneElement(children, {- onClick: () => {- const nextOpen = !open;- setOpen(nextOpen);- onOpenChange?.(nextOpen);- },- })}- {open && (- <div>- <p>{title}</p>- {content}- </div>- )}- </>- );- },- Tooltip: ({ children, title }: LegacyTooltipProps) =>- React.cloneElement(children, { "aria-label": typeof title === "string" ? title : undefined }),- Spin: () => <span aria-hidden="true" />,- Tag: ({ children }: { children?: React.ReactNode }) => <span>{children}</span>,- };-});-const makeAttachment = (overrides: Partial<PolicyAttachment> = {}): PolicyAttachment => ({attachment_id: "att-001",policy_name: "my-policy",diff --git a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/index.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/index.test.tsxindex cddc04f6d9c..1d4c58a05ee 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/index.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/policies/_components/index.test.tsx@@ -10,16 +10,6 @@ import PoliciesPanel from "./index";* In jsdom it may still run; we mock confirm as a no-op so the test fails until the panel* uses a controlled DeleteResourceModal instead of Modal.confirm.*/-vi.mock("antd", async (importOriginal) => {- const mod = await importOriginal<typeof import("antd")>();- return {- ...mod,- Modal: Object.assign(mod.Modal, {- confirm: vi.fn(),- }),- };-});-const EXPECTED_ATTACHMENT_ID = "att-11111111-2222-3333-4444-555555555555" as const;const networkingMocks = vi.hoisted(() => ({diff --git a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchToolTester.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchToolTester.test.tsxindex 4a1fe1eafe7..54be24d2401 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchToolTester.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/_components/SearchToolTester.test.tsx@@ -9,18 +9,6 @@ vi.mock("@/components/networking", () => ({searchToolQueryCall: vi.fn(),}));-vi.mock("antd", async () => {- const actual = await vi.importActual("antd");- return {- ...actual,- message: {- warning: vi.fn(),- success: vi.fn(),- error: vi.fn(),- },- };-});-const mockSearchResults = {results: [{diff --git a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.test.tsx b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.test.tsxindex d06267ffed6..0ca68cc665e 100644--- a/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.test.tsx+++ b/ui/litellm-dashboard/src/app/(dashboard)/users/_components/user_edit_view.test.tsx@@ -12,69 +12,6 @@ vi.mock("@/utils/roles", () => ({all_admin_roles: ["Admin", "Admin Viewer", "proxy_admin", "proxy_admin_viewer", "org_admin"],}));-vi.mock("antd", async (importOriginal) => {- const actual = await importOriginal<typeof import("antd")>();- const React = await import("react");- const SelectComponent = ({- value,- onChange,- mode,- children,- placeholder,- disabled,- style,- allowClear,- ...props- }: any) => {- const isMultiple = mode === "multiple";- const selectValue = isMultiple ? (Array.isArray(value) ? value : []) : value || "";- return React.createElement(- "select",- {- multiple: isMultiple,- value: selectValue,- onChange: (e: React.ChangeEvent<HTMLSelectElement>) => {- const selectedValues = Array.from(e.target.selectedOptions, (option) => option.value);- onChange(isMultiple ? selectedValues : selectedValues[0] || undefined);- },- disabled,- placeholder,- style,- "aria-label": placeholder || "Select",- role: "combobox",- ...props,- },- children,- );- };- SelectComponent.displayName = "Select";- const SelectOption = ({ value: optionValue, children: optionChildren }: any) =>- React.createElement("option", { value: optionValue }, optionChildren);- SelectOption.displayName = "SelectOption";- SelectComponent.Option = SelectOption;- const Tooltip = ({ children }: { children?: React.ReactNode }) => React.createElement(React.Fragment, null, children);- Tooltip.displayName = "Tooltip";- const Checkbox = ({ checked, onChange, children, ...props }: any) =>- React.createElement(- "label",- { style: { display: "flex", alignItems: "center", gap: "8px" } },- React.createElement("input", {- type: "checkbox",- checked: checked,- onChange: (e: React.ChangeEvent<HTMLInputElement>) => onChange({ target: { checked: e.target.checked } }),- ...props,- }),- children,- );- Checkbox.displayName = "Checkbox";- return {- ...actual,- Select: SelectComponent,- Tooltip,- Checkbox,- };-});-describe("UserEditView", () => {const MOCK_USER_DATA = {user_id: "user-123",diff --git a/ui/litellm-dashboard/src/app/globals.css b/ui/litellm-dashboard/src/app/globals.cssindex 442adf98fa2..b6c72619f1c 100644--- a/ui/litellm-dashboard/src/app/globals.css+++ b/ui/litellm-dashboard/src/app/globals.css@@ -1,4 +1,4 @@-@layer theme, base, antd, components, utilities;+@layer theme, base, components, utilities;@import "tailwindcss";@import "tw-animate-css";@@ -260,13 +260,3 @@[data-slot="dialog-content"][data-nested-dialog-open] {visibility: hidden;}--/* Base UI portals a popup into an `isolate z-50` positioner, which an antd Modal at z-index 1000- then paints over, so options on a half-migrated page are visible but not clickable. The- positioner is not reachable from the call site, hence the parent selector. Delete this once no- route renders an antd Modal. */-body:has(.ant-modal-wrap) div:has(> [data-slot="select-content"]),-body:has(.ant-modal-wrap) div:has(> [data-slot="combobox-content"]),-body:has(.ant-modal-wrap) div:has(> [data-slot="tooltip-content"]) {- z-index: 1100;-}diff --git a/ui/litellm-dashboard/src/app/layout.tsx b/ui/litellm-dashboard/src/app/layout.tsxindex bf32dd7109f..6ffc2a68f4f 100644--- a/ui/litellm-dashboard/src/app/layout.tsx+++ b/ui/litellm-dashboard/src/app/layout.tsx@@ -4,7 +4,6 @@ import "./globals.css";import { NuqsAdapter } from "nuqs/adapters/next/app";-import AntdGlobalProvider from "@/contexts/AntdGlobalProvider";import { AuthProvider } from "@/contexts/AuthContext";import ReactQueryProvider from "@/contexts/ReactQueryProvider";import { Toaster } from "@/components/ui/sonner";@@ -27,10 +26,8 @@ export default function RootLayout({<body className={inter.className}><NuqsAdapter><ReactQueryProvider>- <AntdGlobalProvider>- <AuthProvider>{children}</AuthProvider>- <Toaster />- </AntdGlobalProvider>+ <AuthProvider>{children}</AuthProvider>+ <Toaster /></ReactQueryProvider></NuqsAdapter></body>diff --git a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.test.tsx b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.test.tsxindex 1a848848344..de44a62573d 100644--- a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.test.tsx+++ b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroCreateModal.test.tsx@@ -17,17 +17,6 @@ vi.mock("@/app/(dashboard)/hooks/cloudzero/useCloudZeroCreate", () => ({}),}));-vi.mock("antd", async () => {- const actual = await vi.importActual("antd");- return {- ...actual,- message: {- success: vi.fn(),- error: vi.fn(),- },- };-});-describe("CloudZeroCreateModal", () => {let queryClient: QueryClient;diff --git a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroIntegrationSettings.test.tsx b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroIntegrationSettings.test.tsxindex 51179f4014f..62270cef9cd 100644--- a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroIntegrationSettings.test.tsx+++ b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroIntegrationSettings.test.tsx@@ -26,18 +26,6 @@ vi.mock("@/app/(dashboard)/hooks/cloudzero/useCloudZeroExport", () => ({}),}));-vi.mock("antd", async () => {- const actual = await vi.importActual("antd");- return {- ...actual,- message: {- success: vi.fn(),- error: vi.fn(),- warning: vi.fn(),- },- };-});-describe("CloudZeroIntegrationSettings", () => {let queryClient: QueryClient;const mockSettings: CloudZeroSettings = {diff --git a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.test.tsx b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.test.tsxindex fdb3249b5b6..b9c9809ff52 100644--- a/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.test.tsx+++ b/ui/litellm-dashboard/src/components/CloudZeroCostTracking/CloudZeroUpdateModal.test.tsx@@ -18,17 +18,6 @@ vi.mock("@/app/(dashboard)/hooks/cloudzero/useCloudZeroSettings", () => ({}),}));-vi.mock("antd", async () => {- const actual = await vi.importActual("antd");- return {- ...actual,- message: {- success: vi.fn(),- error: vi.fn(),- },- };-});-describe("CloudZeroUpdateModal", () => {let queryClient: QueryClient;const mockSettings: CloudZeroSettings = {diff --git a/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/schema.ts b/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/schema.tsindex fbf0223b157..bd3374c911a 100644--- a/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/schema.ts+++ b/ui/litellm-dashboard/src/components/Settings/AdminSettings/PluginSettings/schema.ts@@ -15,14 +15,14 @@ const HOST = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";const DOMAIN = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";const TLD = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";-const ANTD_URL_RULE_PATTERN = new RegExp(+const URL_RULE_PATTERN = new RegExp(`(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?` +`(?:localhost|${IPV4}|${IPV6}|${HOST}${DOMAIN}${TLD})` +`(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)`,"i",);-const isUrl = (value: string): boolean => value.length <= 2048 && ANTD_URL_RULE_PATTERN.test(value);+const isUrl = (value: string): boolean => value.length <= 2048 && URL_RULE_PATTERN.test(value);const pluginShape = {name: z.string().min(1, "Required"),diff --git a/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx b/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsxindex 83c9e538732..7e084a532f4 100644--- a/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx+++ b/ui/litellm-dashboard/src/components/add_model/AddModelForm.tsx@@ -15,7 +15,7 @@ import { Button } from "@/components/ui/button";import React, { useEffect, useMemo, useState } from "react";import { FormProvider, useWatch, type UseFormReturn } from "react-hook-form";import TeamDropdown from "../common_components/team_dropdown";-import { antdRequired } from "../common_components/antdFormRules";+import { requiredRule } from "../common_components/formRules";import { labelWithHint } from "@/components/shared/form/LabelWithHint";import {MountedFormField,@@ -185,7 +185,7 @@ const AddModelForm: React.FC<AddModelFormProps> = ({label={labelWithHint("Select Team", "Select the team for which you want to add this model")}name="team_id"required- rules={{ validate: { required: antdRequired("Please select a team to continue") } }}+ rules={{ validate: { required: requiredRule("Please select a team to continue") } }}className="mb-4">{(control) => (@@ -215,7 +215,7 @@ const AddModelForm: React.FC<AddModelFormProps> = ({label={labelWithHint("Provider", "E.g. OpenAI, Azure OpenAI, Anthropic, Bedrock, etc.")}name="custom_llm_provider"required- rules={{ validate: { required: antdRequired("Required") } }}+ rules={{ validate: { required: requiredRule("Required") } }}className="mb-4">{(control) => (@@ -368,7 +368,7 @@ const AddModelForm: React.FC<AddModelFormProps> = ({required={isTeamOnly && !isAdmin}rules={isTeamOnly && !isAdmin- ? { validate: { required: antdRequired("Please select a team.") } }+ ? { validate: { required: requiredRule("Please select a team.") } }: undefined}>diff --git a/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx b/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsxindex 5bc0dcd143d..eb12e49ca89 100644--- a/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx+++ b/ui/litellm-dashboard/src/components/add_model/advanced_settings.tsx@@ -9,7 +9,7 @@ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/componentimport { Input } from "@/components/ui/input";import { Textarea } from "@/components/ui/textarea";import { Team } from "../key_team_helpers/key_list";-import { antdRules } from "../common_components/antdFormRules";+import { validatorRules } from "../common_components/formRules";import { labelWithHint } from "@/components/shared/form/LabelWithHint";import { MountedFormField } from "../common_components/MountedFormField";import { UtcDateTimeInput } from "@/components/shared/form/UtcDateTimeInput";@@ -71,7 +71,7 @@ const validateNumber = (_: unknown, value: unknown) => {const usageCostRules = {deps: [PTU_COUNT_FIELD],- validate: antdRules({ validator: validateNumber }, ptuNoUsageCostRule(PTU_COUNT_FIELD)),+ validate: validatorRules({ validator: validateNumber }, ptuNoUsageCostRule(PTU_COUNT_FIELD)),};const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({@@ -208,7 +208,11 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({)}rules={{deps: REVALIDATED_WHEN_PTU_COUNT_CHANGES,- validate: antdRules({ validator: validateNumber }, ...ptuCountRules, ptuPairRule(PTU_RATE_FIELD)),+ validate: validatorRules(+ { validator: validateNumber },+ ...ptuCountRules,+ ptuPairRule(PTU_RATE_FIELD),+ ),}}className="mb-4">@@ -231,7 +235,11 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({)}rules={{deps: [PTU_COUNT_FIELD],- validate: antdRules({ validator: validateNumber }, ...ptuRateRules, ptuPairRule(PTU_COUNT_FIELD)),+ validate: validatorRules(+ { validator: validateNumber },+ ...ptuRateRules,+ ptuPairRule(PTU_COUNT_FIELD),+ ),}}className="mb-4">@@ -254,7 +262,7 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({)}rules={{deps: [PTU_END_FIELD],- validate: antdRules(+ validate: validatorRules(ptuStartRequiredRule(PTU_COUNT_FIELD),ptuWindowOrderRule(PTU_END_FIELD, "start"),),@@ -279,7 +287,7 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({)}rules={{deps: [PTU_START_FIELD],- validate: antdRules(ptuWindowOrderRule(PTU_START_FIELD, "end")),+ validate: validatorRules(ptuWindowOrderRule(PTU_START_FIELD, "end")),}}className="mb-4">@@ -463,7 +471,7 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({"Optional litellm params used for making a litellm.completion() call.",)}className="mb-4 mt-4"- rules={{ validate: antdRules({ validator: formItemValidateJSON }) }}+ rules={{ validate: validatorRules({ validator: formItemValidateJSON }) }}>{(control) => (<Textarea@@ -500,7 +508,7 @@ const AdvancedSettings: React.FC<AdvancedSettingsProps> = ({"Optional model info params. Returned when calling `/model/info` endpoint.",)}className="mb-0"- rules={{ validate: antdRules({ validator: formItemValidateJSON }) }}+ rules={{ validate: validatorRules({ validator: formItemValidateJSON }) }}>{(control) => (<Textareadiff --git a/ui/litellm-dashboard/src/components/add_model/conditional_public_model_name.tsx b/ui/litellm-dashboard/src/components/add_model/conditional_public_model_name.tsxindex c75cebed6a2..3dc2d781922 100644--- a/ui/litellm-dashboard/src/components/add_model/conditional_public_model_name.tsx+++ b/ui/litellm-dashboard/src/components/add_model/conditional_public_model_name.tsx@@ -4,7 +4,7 @@ import { useFormContext, useWatch } from "react-hook-form";import { DataTable } from "@/components/shared/DataTable";import { Input } from "@/components/ui/input";import { SimpleTooltip } from "@/components/ui/tooltip";-import { antdRules } from "../common_components/antdFormRules";+import { validatorRules } from "../common_components/formRules";import { MountedFormField, type MountedFormValues } from "../common_components/MountedFormField";import { Providers } from "../provider_info_helpers";@@ -205,7 +205,7 @@ const ConditionalPublicModelName: React.FC = () => {</span>}required- rules={{ validate: antdRules(modelMappingsRule) }}+ rules={{ validate: validatorRules(modelMappingsRule) }}className="mb-4">{(control) => (diff --git a/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsxindex 664edd07143..bfa2df8f54d 100644--- a/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx+++ b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx@@ -2,7 +2,7 @@ import React from "react";import { MultiSelect } from "@/components/shared/MultiSelect";import { useFormContext, useWatch } from "react-hook-form";import { Input } from "@/components/ui/input";-import { antdRequired } from "../common_components/antdFormRules";+import { requiredRule } from "../common_components/formRules";import { labelWithHint } from "@/components/shared/form/LabelWithHint";import { MountedFormField, type MountedFormValues } from "../common_components/MountedFormField";import { Providers } from "../provider_info_helpers";@@ -108,7 +108,7 @@ const LiteLLMModelNameField: React.FC<LiteLLMModelNameFieldProps> = ({requiredrules={{validate: {- required: antdRequired(+ required: requiredRule(`Please enter ${selectedProvider === Providers.Azure ? "a deployment name" : "at least one model"}.`,),},@@ -173,7 +173,7 @@ const LiteLLMModelNameField: React.FC<LiteLLMModelNameFieldProps> = ({<MountedFormFieldname="custom_model_name"required- rules={{ validate: { required: antdRequired("Please enter a custom model name.") } }}+ rules={{ validate: { required: requiredRule("Please enter a custom model name.") } }}className="mt-2">{(control) => (diff --git a/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx b/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsxindex 7db59ae6e8d..e1a47e9792d 100644--- a/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx+++ b/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx@@ -7,7 +7,7 @@ import { Button } from "@/components/ui/button";import { Upload as UploadIcon } from "lucide-react";import React from "react";import { useFormContext } from "react-hook-form";-import { antdRequired } from "../common_components/antdFormRules";+import { requiredRule } from "../common_components/formRules";import {MountedFormField,type MountedFieldControlProps,@@ -327,7 +327,7 @@ const ProviderSpecificFields: React.FC<ProviderSpecificFieldsProps> = ({ selectelabel={field.tooltip ? labelWithHint(field.label, field.tooltip) : field.label}name={field.key}required={field.required}- rules={field.required ? { validate: { required: antdRequired("Required") } } : undefined}+ rules={field.required ? { validate: { required: requiredRule("Required") } } : undefined}className={field.key === "vertex_credentials" ? "mb-0" : "mb-4"}>{(control) => renderFieldControl(field, control)}diff --git a/ui/litellm-dashboard/src/components/chat/design.md b/ui/litellm-dashboard/src/components/chat/design.mdindex 498f9d1e84e..716eb70f2aa 100644--- a/ui/litellm-dashboard/src/components/chat/design.md+++ b/ui/litellm-dashboard/src/components/chat/design.md@@ -289,7 +289,7 @@ import { Skeleton } from "@/components/ui/skeleton";### Toast / notifications-**Gap:** `sonner` is not installed. This codebase currently uses `MessageManager` (antd-message-based) for toasts across the chat UI. Don't introduce a second toast mechanism — keep using `MessageManager` until `sonner` is added as a deliberate, separate change (see `AGENTS.md`).+**Resolved:** `sonner` is installed and mounted from the root layout. Raise toasts through `toast` from `@/lib/toast`; don't introduce a second toast mechanism.---diff --git a/ui/litellm-dashboard/src/components/common_components/antdFormRules.ts b/ui/litellm-dashboard/src/components/common_components/formRules.tssimilarity index 80%rename from ui/litellm-dashboard/src/components/common_components/antdFormRules.tsrename to ui/litellm-dashboard/src/components/common_components/formRules.tsindex 0afac7301af..30b94176e9f 100644--- a/ui/litellm-dashboard/src/components/common_components/antdFormRules.ts+++ b/ui/litellm-dashboard/src/components/common_components/formRules.ts@@ -2,16 +2,16 @@ import type { Validate } from "react-hook-form";import type { MountedFormValues } from "./MountedFormField";-interface AntdRuleForm {+interface ValidatorRuleForm {getFieldValue: (name: string) => unknown;isFieldTouched?: (name: string) => boolean;}-interface AntdRule {+interface ValidatorRule {validator: (rule: never, value: never) => Promise<void>;}-type AntdRuleSource = AntdRule | ((form: AntdRuleForm) => AntdRule);+type ValidatorRuleSource = ValidatorRule | ((form: ValidatorRuleForm) => ValidatorRule);type MountedValidate = Validate<unknown, MountedFormValues>;@@ -19,17 +19,17 @@ const isBlank = (value: unknown): boolean => value === undefined || value === nuconst isEmptyList = (value: unknown): boolean => Array.isArray(value) && value.length === 0;-export const antdRequired =+export const requiredRule =(message: string): MountedValidate =>(value) =>isBlank(value) || isEmptyList(value) ? message : true;const toMessage = (error: unknown): string => (error instanceof Error ? error.message : String(error));-export const antdRules = (...rules: readonly AntdRuleSource[]): Record<string, MountedValidate> =>+export const validatorRules = (...rules: readonly ValidatorRuleSource[]): Record<string, MountedValidate> =>Object.fromEntries(rules.map((rule, index) => [- `antd_${index}`,+ `rule_${index}`,async (value: unknown, values: MountedFormValues) => {const resolved = typeof rule === "function" ? rule({ getFieldValue: (name) => values[name] }) : rule;const validator = resolved.validator as (rule: unknown, value: unknown) => Promise<void>;diff --git a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.test.tsx b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.test.tsxindex e2217cda190..a124bd08476 100644--- a/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.test.tsx+++ b/ui/litellm-dashboard/src/components/edit_auto_router/edit_auto_router_modal.test.tsx@@ -268,8 +268,6 @@ describe("EditAutoRouterModal classifier context window", () => {expect(await screen.findByLabelText("Classifier system prompt")).toBeInTheDocument();expect(baseElement.querySelectorAll('[data-slot="dialog-content"]')).toHaveLength(2);- // eslint-disable-next-line local/no-antd-class-selectors -- the assertion IS that no antd modal renders; naming the class is the point- expect(baseElement.querySelector(".ant-modal")).toBeNull();});it("persists an edited classifier context window size", async () => {diff --git a/ui/litellm-dashboard/src/components/model_add/CredentialModal.tsx b/ui/litellm-dashboard/src/components/model_add/CredentialModal.tsxindex 4f25b2a201a..8108cc1c20e 100644--- a/ui/litellm-dashboard/src/components/model_add/CredentialModal.tsx+++ b/ui/litellm-dashboard/src/components/model_add/CredentialModal.tsx@@ -5,7 +5,7 @@ import { Button } from "@/components/ui/button";import { useState } from "react";import { FormProvider, useForm } from "react-hook-form";import ProviderSpecificFields from "../add_model/provider_specific_fields";-import { antdRequired } from "../common_components/antdFormRules";+import { requiredRule } from "../common_components/formRules";import { labelWithHint } from "@/components/shared/form/LabelWithHint";import {MountedFormField,@@ -104,7 +104,7 @@ export default function CredentialModal({label="Credential Name:"name="credential_name"required- rules={{ validate: { required: antdRequired("Credential name is required") } }}+ rules={{ validate: { required: requiredRule("Credential name is required") } }}className="mb-4">{(control) => (@@ -123,7 +123,7 @@ export default function CredentialModal({label={labelWithHint("Provider:", "Helper to auto-populate provider specific fields")}name="custom_llm_provider"required- rules={{ validate: { required: antdRequired("Required") } }}+ rules={{ validate: { required: requiredRule("Required") } }}className="mb-4">{(control) => (diff --git a/ui/litellm-dashboard/src/components/navbar.test.tsx b/ui/litellm-dashboard/src/components/navbar.test.tsxindex e3d0e4f0b38..96cd2f2e7e0 100644--- a/ui/litellm-dashboard/src/components/navbar.test.tsx+++ b/ui/litellm-dashboard/src/components/navbar.test.tsx@@ -30,7 +30,6 @@ const mockUserDropdownData = vi.hoisted(() => ({vi.mock("./Navbar/UserDropdown/UserDropdown", async (importOriginal) => {const React = await import("react");const { useState } = React;- const { Button } = await import("antd");const localStorageUtils = await import("@/utils/localStorageUtils");return {default: function MockUserDropdown({ onLogout }: { onLogout: () => void }) {@@ -38,9 +37,9 @@ vi.mock("./Navbar/UserDropdown/UserDropdown", async (importOriginal) => {const [open, setOpen] = useState(false);return (<div>- <Button type="text" aria-label="Open account menu" onClick={() => setOpen(!open)}>+ <button type="button" aria-label="Open account menu" onClick={() => setOpen(!open)}>Account- </Button>+ </button>{open && (<div data-testid="user-dropdown-content"><span>{userId}</span>diff --git a/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx b/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsxindex efb895a920e..6592ff8c357 100644--- a/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx+++ b/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx@@ -58,43 +58,6 @@ vi.mock("../shared/errorUtils", () => ({parseErrorMessage: (e: any) => String(e),}));-// antd bits -> async factory & local React-vi.mock("antd", async (importOriginal) => {- const actual = await importOriginal<typeof import("antd")>();-- const React = await import("react");-- const Form = { useForm: () => [{}] };-- function Input(props: any) {- return React.createElement("input", { ...props });- }- (Input as any).displayName = "AntdInput";-- function InputNumber(props: any) {- return React.createElement("input", { ...props });- }- (InputNumber as any).displayName = "AntdInputNumber";-- function Select(props: any) {- return React.createElement("select", { ...props });- }- (Select as any).displayName = "AntdSelect";-- function Tooltip({ children }: any) {- return React.createElement(React.Fragment, null, children);- }- (Tooltip as any).displayName = "AntdTooltip";-- function Button(props: any) {- const { children, onClick, ...rest } = props;- return React.createElement("button", { onClick, ...rest }, children);- }- (Button as any).displayName = "AntdButton";-- return { ...actual, Form, Input, InputNumber, Select, Tooltip, Button };-});-// Icons -> async factory & local Reactvi.mock("@heroicons/react/outline", async () => {const React = await import("react");diff --git a/ui/litellm-dashboard/src/components/templates/estimatedOutputTokens.ts b/ui/litellm-dashboard/src/components/templates/estimatedOutputTokens.tsindex 0982bbcc750..963fa12c64a 100644--- a/ui/litellm-dashboard/src/components/templates/estimatedOutputTokens.ts+++ b/ui/litellm-dashboard/src/components/templates/estimatedOutputTokens.ts@@ -57,13 +57,13 @@ export const estimateChecks = {},};-const asAntdRule = ({ isValid, message }: { isValid: (value: unknown) => boolean; message: string }) => ({+const asValidatorRule = ({ isValid, message }: { isValid: (value: unknown) => boolean; message: string }) => ({validator: (_: unknown, value: unknown) => (isValid(value) ? Promise.resolve() : Promise.reject(new Error(message))),});export const estimateRules = {- perModel: asAntdRule(estimateChecks.perModel),- positive: asAntdRule(estimateChecks.positive),+ perModel: asValidatorRule(estimateChecks.perModel),+ positive: asValidatorRule(estimateChecks.positive),};export const withNormalizedEstimates = <T extends FormValues>(values: T): FormValues => {diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/InputCard.test.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/InputCard.test.tsxindex df9d00a05d6..dfd9dd54dd7 100644--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/InputCard.test.tsx+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/InputCard.test.tsx@@ -5,16 +5,6 @@ import { describe, it, expect, vi, beforeEach } from "vitest";import { InputCard } from "./InputCard";import { ParsedMessage } from "./prettyMessagesTypes";-vi.mock("antd", async () => {- const actual = await vi.importActual<typeof import("antd")>("antd");- return {- ...actual,- message: {- success: vi.fn(),- },- };-});-describe("InputCard", () => {const mockWriteText = vi.fn().mockResolvedValue(undefined);const mockMessages: ParsedMessage[] = [diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/OutputCard.test.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/OutputCard.test.tsxindex 94616e40495..3dda7c5fa65 100644--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/OutputCard.test.tsx+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/OutputCard.test.tsx@@ -5,16 +5,6 @@ import { describe, it, expect, vi, beforeEach } from "vitest";import { OutputCard } from "./OutputCard";import { ParsedMessage } from "./prettyMessagesTypes";-vi.mock("antd", async () => {- const actual = await vi.importActual<typeof import("antd")>("antd");- return {- ...actual,- message: {- success: vi.fn(),- },- };-});-describe("OutputCard", () => {const mockWriteText = vi.fn().mockResolvedValue(undefined);const mockMessage: ParsedMessage = {diff --git a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/PrettyMessagesView.test.tsx b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/PrettyMessagesView.test.tsxindex 104c421acbf..807aaeeae00 100644--- a/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/PrettyMessagesView.test.tsx+++ b/ui/litellm-dashboard/src/components/view_logs/LogDetailsDrawer/PrettyMessagesView.test.tsx@@ -1,18 +1,8 @@import React from "react";import { render, screen } from "@testing-library/react";-import { describe, it, expect, vi } from "vitest";+import { describe, it, expect } from "vitest";import { PrettyMessagesView } from "./PrettyMessagesView";-vi.mock("antd", async () => {- const actual = await vi.importActual<typeof import("antd")>("antd");- return {- ...actual,- message: {- success: vi.fn(),- },- };-});-describe("PrettyMessagesView", () => {it("should render the component for standard chat completions", () => {const request = {diff --git a/ui/litellm-dashboard/src/contexts/AntdGlobalProvider.tsx b/ui/litellm-dashboard/src/contexts/AntdGlobalProvider.tsxdeleted file mode 100644index d7aafd8aaae..00000000000--- a/ui/litellm-dashboard/src/contexts/AntdGlobalProvider.tsx+++ /dev/null@@ -1,8 +0,0 @@-"use client";--import React from "react";-import { StyleProvider } from "@ant-design/cssinjs";--export default function AntdGlobalProvider({ children }: { children: React.ReactNode }) {- return <StyleProvider layer>{children}</StyleProvider>;-}diff --git a/ui/litellm-dashboard/src/lib/forms/antdUrl.test.ts b/ui/litellm-dashboard/src/lib/forms/urlValidation.test.tssimilarity index 82%rename from ui/litellm-dashboard/src/lib/forms/antdUrl.test.tsrename to ui/litellm-dashboard/src/lib/forms/urlValidation.test.tsindex 36891eae198..26328f00624 100644--- a/ui/litellm-dashboard/src/lib/forms/antdUrl.test.ts+++ b/ui/litellm-dashboard/src/lib/forms/urlValidation.test.ts@@ -1,14 +1,14 @@import { describe, expect, it } from "vitest";-import { ANTD_URL_REGEX, isAntdUrl, MAX_ANTD_URL_LENGTH } from "./antdUrl";+import { URL_REGEX, isValidUrl, MAX_URL_LENGTH } from "./urlValidation";const ASYNC_VALIDATOR_5_1_0_URL_SOURCE ='(?:^(?:(?:(?:[a-z]+:)?\\/\\/)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?:(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|(?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)|(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)|(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)|(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)|(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)';-describe("isAntdUrl", () => {+describe("isValidUrl", () => {it("compiles to the exact pattern async-validator 5.1.0 uses for rule type url", () => {- expect(ANTD_URL_REGEX.source).toBe(ASYNC_VALIDATOR_5_1_0_URL_SOURCE);- expect(ANTD_URL_REGEX.flags).toBe("i");+ expect(URL_REGEX.source).toBe(ASYNC_VALIDATOR_5_1_0_URL_SOURCE);+ expect(URL_REGEX.flags).toBe("i");});it.each([@@ -19,19 +19,19 @@ describe("isAntdUrl", () => {"https://127.0.0.1:8080/path?q=1","https://user:[email protected]",])("accepts %s the way antd does", (value) => {- expect(isAntdUrl(value)).toBe(true);+ expect(isValidUrl(value)).toBe(true);});it.each(["example.com", "", "not a url", "https://", "ftp:/example.com", "http://exa mple.com"])("rejects %s the way antd does",(value) => {- expect(isAntdUrl(value)).toBe(false);+ expect(isValidUrl(value)).toBe(false);},);it("rejects a url longer than the 2048 characters antd allows", () => {- const long = `https://example.com/${"a".repeat(MAX_ANTD_URL_LENGTH)}`;- expect(ANTD_URL_REGEX.test(long)).toBe(true);- expect(isAntdUrl(long)).toBe(false);+ const long = `https://example.com/${"a".repeat(MAX_URL_LENGTH)}`;+ expect(URL_REGEX.test(long)).toBe(true);+ expect(isValidUrl(long)).toBe(false);});});diff --git a/ui/litellm-dashboard/src/lib/forms/antdUrl.ts b/ui/litellm-dashboard/src/lib/forms/urlValidation.tssimilarity index 84%rename from ui/litellm-dashboard/src/lib/forms/antdUrl.tsrename to ui/litellm-dashboard/src/lib/forms/urlValidation.tsindex 809b2764ebf..6905f62762a 100644--- a/ui/litellm-dashboard/src/lib/forms/antdUrl.ts+++ b/ui/litellm-dashboard/src/lib/forms/urlValidation.ts@@ -19,11 +19,11 @@ const TLD = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";const PORT = "(?::\\d{2,5})?";const PATH = '(?:[/?#][^\\s"]*)?';-export const ANTD_URL_REGEX = new RegExp(+export const URL_REGEX = new RegExp(`(?:^(?:${PROTOCOL}|www\\.)${AUTH}(?:localhost|${V4}|${V6}|${HOST}${DOMAIN}${TLD})${PORT}${PATH}$)`,"i",);-export const MAX_ANTD_URL_LENGTH = 2048;+export const MAX_URL_LENGTH = 2048;-export const isAntdUrl = (value: string): boolean => value.length <= MAX_ANTD_URL_LENGTH && ANTD_URL_REGEX.test(value);+export const isValidUrl = (value: string): boolean => value.length <= MAX_URL_LENGTH && URL_REGEX.test(value);