@enonic/react-components
Version:
Library of React components for handling Enonic XP data and page components
15 lines (14 loc) • 1.5 kB
TypeScript
import type { Content, Layout, LayoutComponent, LiteralUnion, Part, PartComponent, Page, PageComponent, RequestMode } from '@enonic-types/core';
import type { ComponentRegistry } from './ComponentRegistry';
import type { TextBaseProps } from './TextBaseProps';
export type { ComponentDefinition, ComponentDefinitionParams, ComponentDictionary, ComponentRegistry, } from './ComponentRegistry';
export type { RenderableComponent, RenderableContentType, RenderableLayoutComponent, RenderablePageComponent, RenderablePartComponent, RenderableTextComponent, RenderableWarning, XpRunMode, } from './Renderable';
export type { CreateReplacerParams, ImageComponent, ImageComponentParams, ImageContent, ImageData, ImageStyle, LinkComponent, LinkComponentParams, LinkData, LinkDataMedia, MacroComponent, MacroComponentParams, MacroConfig, MacroData, MacroDescriptor, ReplaceMacroParams, Replacer, ReplacerResult, RichtextContent, RichTextData, RichTextParams, } from './RichText';
export type ContentUri = `content://${string}`;
export type FragmentContent<Component extends LayoutComponent | PartComponent = Layout | Part> = Content<undefined, 'portal:fragment', Component>;
export type MediaUri = `media://${string}`;
export type PageContent<Data = Record<string, unknown>, Type extends string = string, Component extends PageComponent = Page> = Content<Data, Type, Component>;
export interface TextProps extends TextBaseProps {
componentRegistry: ComponentRegistry;
mode: LiteralUnion<RequestMode>;
}