feat: update knip configuration and enhance component exports with public annotations
This commit is contained in:
parent
25e4e15eec
commit
3655e2fa4b
4 changed files with 33 additions and 5 deletions
|
|
@ -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}"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -180,6 +180,7 @@ const FormMessage = React.forwardRef<
|
|||
});
|
||||
FormMessage.displayName = "FormMessage";
|
||||
|
||||
/** @public */
|
||||
export {
|
||||
Form,
|
||||
FormControl,
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue