@medusajs/ui: toast.custom is not part of the public toast API (dead internal custom() helper)#17821
System information
Package.json file
{
"name": "medusa-ui-toast-custom-dead-api-repro",
"private": true,
"version": "0.0.0",
"scripts": {
"proof": "node proof.cjs",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@medusajs/ui": "4.2.13",
"react": "18.3.1"
},
"devDependencies": {
"@types/react": "^18.3.12",
"typescript": "~5.6.2"
}
}
Node.js version: v24.18.0
Database and its version: N/A (API-level issue — no database involved)
Operating system name and version: Ubuntu 26.04.1 LTS (Linux, kernel 7.0.0-43-generic)
Browser name: N/A (API-level issue — proofs run in plain Node and tsc)
Describe the issue
What happended?
The package defines an internal custom() toast helper, but never exports or attaches it — toast.custom is undefined at runtime, absent from the published types, and unreachable from any import path.
Upstream source (develop branch, packages/design-system/ui/src/utils/toast.tsx):
- The helper is defined with zero parameters and a hardcoded title (lines 66–68) — if it were ever exported, it would ignore everything passed to it and render a literal "Custom" toast: