UNPKG

@ima/react-page-renderer

Version:

IMA.js React page renderer.

44 lines 1.63 kB
import { ComponentUtils } from '@ima/core'; import { ComponentType } from 'react'; /** * Factory for page render. */ export declare class PageRendererFactory { private _componentUtils; /** * Initializes the factory used by the page renderer. * * @param componentUtils The registry of component utilities. */ constructor(componentUtils: ComponentUtils); /** * Return object of services which are defined for alias $Utils. */ getUtils(): import("@ima/core").Utils; /** * Returns the class constructor of the specified document view component. * Document view may be specified as a namespace path or as a class * constructor. * * @param documentView The * namespace path pointing to the document view component, or the * constructor of the document view component. * @return The constructor of the document * view component. */ getDocumentView(documentView: ComponentType): ComponentType; /** * Returns the class constructor of the specified managed root view * component. Managed root view may be specified as a namespace * path or as a class constructor. * * @param managedRootView The * namespace path pointing to the managed root view component, or * the constructor of the React component. * @return The constructor of the managed * root view component. */ getManagedRootView(managedRootView: ComponentType): ComponentType; private _isFunctionalComponent; } //# sourceMappingURL=PageRendererFactory.d.ts.map