@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.
24 lines (23 loc) • 1.16 kB
TypeScript
export declare const invalidDataAttr = "data-sf-invalid";
export declare const serializeForm: (form: HTMLFormElement) => {
[key: string]: string;
};
export declare const invalidateElement: (emptyInputs: any, element: HTMLInputElement) => void;
export declare const isValidEmail: (email: string) => boolean;
export declare const formatDate: (date: Date | string, culture?: string) => string;
export declare const getWhiteListSearchParams: (searchParams: {
[key: string]: string;
}, whitelistedQueryParams: string[]) => {
[key: string]: string;
};
/**
* Checks if a React component is a client component by examining the $$typeof property.
* React uses the $$typeof property as a security measure and component type identifier.
*
* Possible values for $$typeof:
* - Symbol.for('react.client.reference') - Client components (Next.js 13+ App Router)
* - Symbol.for('react.server.reference') - Server components (Next.js 13+ App Router)
*/
export declare function isReactClientComponent(component: any): boolean;
export declare const SF_WEBSERVICE_API_KEY_HEADER = "X-SF-APIKEY";
export declare const SF_WEBSERVICE_API_KEY = "SF_WEBSERVICE_API_KEY";