@jss-rule-engine/nextjs
Version:
22 lines (21 loc) • 1.05 kB
TypeScript
import React from 'react';
import { JssRuleEngine } from "@jss-rule-engine/core";
import { PlaceholderComponentProps, SitecoreContextValue } from '@sitecore-jss/sitecore-jss-nextjs';
export interface PersonalizedPlaceholderComponentProps extends PlaceholderComponentProps {
sitecoreContext: SitecoreContextValue;
}
export declare class PersonalizedPlaceholder extends React.Component<any, any> {
graphQLEndpoint: string;
sitecoreApiKey: string;
ruleEngine: JssRuleEngine;
constructor(props: PersonalizedPlaceholderComponentProps);
componentDidMount(): Promise<void>;
shouldComponentUpdate(): boolean;
render(): React.JSX.Element;
isClientside(): boolean;
isDisconnectedMode(): boolean;
isPageEditing(): any;
personalizePlaceholder(): Promise<any>;
}
declare const _default: (props: import("@sitecore-jss/sitecore-jss-react").EnhancedOmit<PersonalizedPlaceholderComponentProps, keyof import("@sitecore-jss/sitecore-jss-react").WithSitecoreContextProps>) => React.JSX.Element;
export default _default;