mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
add missing @since annotations to ui-forms & ui-buttons
This commit is contained in:
@@ -31,7 +31,10 @@ type Props<T extends HalRepresentation> = Pick<ComponentProps<typeof Form<T, T>>
|
||||
link: string;
|
||||
};
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export function ConfigurationForm<T extends HalRepresentation>({link, translationPath, children}: Props<T>) {
|
||||
const {initialConfiguration, isReadOnly, update, isLoading} = useConfigLink<T>(link);
|
||||
|
||||
|
||||
@@ -62,7 +62,10 @@ type Props<FormType extends Record<string, unknown>, DefaultValues extends FormT
|
||||
submitButtonTestId?: string;
|
||||
};
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
function Form<FormType extends Record<string, unknown>, DefaultValues extends FormType>({
|
||||
children,
|
||||
onSubmit,
|
||||
|
||||
@@ -66,7 +66,10 @@ const createResource = <I, O = never>(link: string, contentType: string) => {
|
||||
|
||||
type CreateResourceOptions = MutatingResourceOptions;
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const useCreateResource = <I, O>(
|
||||
link: string,
|
||||
[entityKey, collectionName]: QueryKeyPair,
|
||||
@@ -92,7 +95,10 @@ type UpdateResourceOptions = MutatingResourceOptions & {
|
||||
collectionName?: QueryKeyPair;
|
||||
};
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const useUpdateResource = <T>(
|
||||
link: LinkOrHalLink,
|
||||
idFactory: (createdResource: T) => string,
|
||||
@@ -125,7 +131,10 @@ type DeleteResourceOptions = {
|
||||
collectionName?: QueryKeyPair;
|
||||
};
|
||||
|
||||
/** @Beta */
|
||||
/**
|
||||
* @beta
|
||||
* @since 2.41.0
|
||||
*/
|
||||
export const useDeleteResource = <T extends HalRepresentation>(
|
||||
idFactory: (createdResource: T) => string,
|
||||
{ collectionName: [entityQueryKey, collectionName] = ["", ""] }: DeleteResourceOptions = {}
|
||||
|
||||
Reference in New Issue
Block a user