From 3655e2fa4b9e73f4f02dc8ec2ab3df0196c63939 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Thu, 30 Apr 2026 13:56:00 +0200 Subject: [PATCH] feat: update knip configuration and enhance component exports with public annotations --- apps/infoalloggi/knip.json | 29 +++++++++++++++++-- .../src/components/custom_ui/form.tsx | 1 + .../src/components/expandable_screen.tsx | 5 +++- .../src/components/upload_modal.tsx | 3 +- 4 files changed, 33 insertions(+), 5 deletions(-) diff --git a/apps/infoalloggi/knip.json b/apps/infoalloggi/knip.json index 640176c..c964ba3 100644 --- a/apps/infoalloggi/knip.json +++ b/apps/infoalloggi/knip.json @@ -17,7 +17,8 @@ "src/utils/utils.ts" ], "ignoreBinaries": [ - "stripe" + "stripe", + "ts-node" ], "ignoreDependencies": [ "pdfjs-dist", @@ -27,6 +28,7 @@ "@react-email/components", "@types/uuid", "kanel-kysely", + "kanel-zod", "npm-run-all", "@react-email/preview-server", "@tailwindcss/forms", @@ -46,5 +48,28 @@ "**", "!src/schemas/public/*.ts", "!emails/**" - ] + ], + "next": { + "config": [ + "next.config.{js,ts,cjs,mjs}" + ], + "entry": [ + "app/{,[(]*[)]/}{manifest,robots}.{js,ts}", + "src/app/{,[(]*[)]/}{manifest,robots}.{js,ts}", + "app/**/sitemap.{js,ts}", + "src/app/**/sitemap.{js,ts}", + "app/**/{icon,apple-icon,opengraph-image,twitter-image}.{js,jsx,ts,tsx}", + "src/app/**/{icon,apple-icon,opengraph-image,twitter-image}.{js,jsx,ts,tsx}", + "{instrumentation,instrumentation-client,middleware,proxy}.{js,jsx,ts,tsx}", + "src/{instrumentation,instrumentation-client,middleware,proxy}.{js,jsx,ts,tsx}", + "app/global-{error,not-found}.{js,jsx,ts,tsx}", + "src/app/global-{error,not-found}.{js,jsx,ts,tsx}", + "app/**/{default,error,forbidden,loading,not-found,unauthorized}.{js,jsx,ts,tsx}", + "src/app/**/{default,error,forbidden,loading,not-found,unauthorized}.{js,jsx,ts,tsx}", + "app/**/{layout,page,route,template}.{js,jsx,ts,tsx}", + "src/app/**/{layout,page,route,template}.{js,jsx,ts,tsx}", + "pages/**/*.{js,jsx,ts,tsx}", + "src/pages/**/*.{js,jsx,ts,tsx}" + ] + } } \ No newline at end of file diff --git a/apps/infoalloggi/src/components/custom_ui/form.tsx b/apps/infoalloggi/src/components/custom_ui/form.tsx index e00a255..8cc3f67 100644 --- a/apps/infoalloggi/src/components/custom_ui/form.tsx +++ b/apps/infoalloggi/src/components/custom_ui/form.tsx @@ -180,6 +180,7 @@ const FormMessage = React.forwardRef< }); FormMessage.displayName = "FormMessage"; +/** @public */ export { Form, FormControl, diff --git a/apps/infoalloggi/src/components/expandable_screen.tsx b/apps/infoalloggi/src/components/expandable_screen.tsx index a34a67a..e56fb62 100644 --- a/apps/infoalloggi/src/components/expandable_screen.tsx +++ b/apps/infoalloggi/src/components/expandable_screen.tsx @@ -208,7 +208,9 @@ interface ExpandableScreenBackgroundProps { content?: ReactNode; className?: string; } - +/** + * @public + */ export function ExpandableScreenBackground({ trigger, content, @@ -227,4 +229,5 @@ export function ExpandableScreenBackground({ return null; } +/** @public */ export { useExpandableScreen }; diff --git a/apps/infoalloggi/src/components/upload_modal.tsx b/apps/infoalloggi/src/components/upload_modal.tsx index 7a482d5..45d3251 100644 --- a/apps/infoalloggi/src/components/upload_modal.tsx +++ b/apps/infoalloggi/src/components/upload_modal.tsx @@ -32,7 +32,6 @@ type UploadCallback = (args: { storageIds: string[]; userStorageIds: UsersStorageUserStorageId[]; }) => void; - export const UploadModal = (props: UploadComponentProps) => { const { t } = useTranslation(); @@ -68,7 +67,7 @@ type UploadComponentProps = { maxFiles?: number; }; -export const UploadComponent = ({ +const UploadComponent = ({ cb_onUpload, isAdmin, userId,