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"
|
"src/utils/utils.ts"
|
||||||
],
|
],
|
||||||
"ignoreBinaries": [
|
"ignoreBinaries": [
|
||||||
"stripe"
|
"stripe",
|
||||||
|
"ts-node"
|
||||||
],
|
],
|
||||||
"ignoreDependencies": [
|
"ignoreDependencies": [
|
||||||
"pdfjs-dist",
|
"pdfjs-dist",
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
"@react-email/components",
|
"@react-email/components",
|
||||||
"@types/uuid",
|
"@types/uuid",
|
||||||
"kanel-kysely",
|
"kanel-kysely",
|
||||||
|
"kanel-zod",
|
||||||
"npm-run-all",
|
"npm-run-all",
|
||||||
"@react-email/preview-server",
|
"@react-email/preview-server",
|
||||||
"@tailwindcss/forms",
|
"@tailwindcss/forms",
|
||||||
|
|
@ -46,5 +48,28 @@
|
||||||
"**",
|
"**",
|
||||||
"!src/schemas/public/*.ts",
|
"!src/schemas/public/*.ts",
|
||||||
"!emails/**"
|
"!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";
|
FormMessage.displayName = "FormMessage";
|
||||||
|
|
||||||
|
/** @public */
|
||||||
export {
|
export {
|
||||||
Form,
|
Form,
|
||||||
FormControl,
|
FormControl,
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,9 @@ interface ExpandableScreenBackgroundProps {
|
||||||
content?: ReactNode;
|
content?: ReactNode;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
export function ExpandableScreenBackground({
|
export function ExpandableScreenBackground({
|
||||||
trigger,
|
trigger,
|
||||||
content,
|
content,
|
||||||
|
|
@ -227,4 +229,5 @@ export function ExpandableScreenBackground({
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @public */
|
||||||
export { useExpandableScreen };
|
export { useExpandableScreen };
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ type UploadCallback = (args: {
|
||||||
storageIds: string[];
|
storageIds: string[];
|
||||||
userStorageIds: UsersStorageUserStorageId[];
|
userStorageIds: UsersStorageUserStorageId[];
|
||||||
}) => void;
|
}) => void;
|
||||||
|
|
||||||
export const UploadModal = (props: UploadComponentProps) => {
|
export const UploadModal = (props: UploadComponentProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
|
@ -68,7 +67,7 @@ type UploadComponentProps = {
|
||||||
maxFiles?: number;
|
maxFiles?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const UploadComponent = ({
|
const UploadComponent = ({
|
||||||
cb_onUpload,
|
cb_onUpload,
|
||||||
isAdmin,
|
isAdmin,
|
||||||
userId,
|
userId,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue