@progress/sitefinity-nextjs-sdk
Version:
Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.
35 lines (34 loc) • 1.19 kB
TypeScript
import { Dispatch, SetStateAction } from 'react';
import { ProfileViewProps } from './interfaces/profile.view-props';
import { ProfileEntity } from './profile.entity';
export interface ProfileFormProps {
formData: {
[key: string]: any;
};
setFormData: Dispatch<SetStateAction<{
[key: string]: any;
}>>;
submitForm: (form: HTMLFormElement) => void;
setFileUpload: Dispatch<SetStateAction<File | null>>;
viewProps: ProfileViewProps<ProfileEntity>;
showPasswordPrompt: boolean;
invalidInputs: {
[key: string]: boolean | undefined;
};
allowedAvatarFormats: string | undefined;
isContextLive: boolean;
}
export declare function ProfileForm(props: ProfileFormProps): import("react/jsx-runtime").JSX.Element;
export interface ProfileFormInputProps {
id: string;
label: string;
type: string;
value: string | undefined;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
disabled: boolean | undefined;
required: boolean;
attributes: {
[key: string]: any;
};
}
export declare function ProfileFormInput(props: ProfileFormInputProps): import("react/jsx-runtime").JSX.Element;