From f59bf21ac69a1db10ebbfa1124b7be3da6d9b6ae Mon Sep 17 00:00:00 2001 From: Mateus Pereira Date: Tue, 29 Sep 2026 08:45:53 -0300 Subject: [PATCH] fix(CustomCatalog): re-export sanitizeCatalogImageUrl from the package root The explicit root export added in 8567da11 was discarded by sync merge b7d22bbc, so rollup-plugin-dts again drops the symbol from dist/index.d.ts and consumers hit TS2305 despite the runtime export. Restore it. Fixes #1851 Signed-off-by: Mateus Pereira --- src/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 24a87e1a1..63f09084c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -164,3 +164,11 @@ export { type Team as TeamPickerRecord, type TeamSearchFieldProps } from './custom/DashboardWidgets/GettingStartedWidget/TeamSearchField'; + +// Same nested-barrel dts-drop quirk as FeedbackButton above: sanitizeCatalogImageUrl +// reaches the entry only through `export * from './custom'`, so rollup-plugin-dts +// drops it from the bundled d.ts and `import { sanitizeCatalogImageUrl } from +// "@sistent/sistent"` fails type-checking despite the runtime export. It lives in its +// own dependency-free leaf module (not `Helper.ts`, which imports the untyped +// `js-yaml` and would crash the dts build if the entry re-exported from it). +export { sanitizeCatalogImageUrl } from './custom/CustomCatalog/sanitizeCatalogImageUrl';