UNPKG

@plurid/plurid-react

Version:

React implementation of Plurid to explore the web in three dimensions

21 lines (20 loc) 1.4 kB
import React from 'react'; import { ComponentWithPlurid, PluridPlane, PluridRoute, PluridRoutePlane, PluridPlaneComponentProperty, PluridRouteComponentProperty, IsoMatcherRouteResult } from '@plurid/plurid-data'; export interface ElementQLComponent { name: ElementQLComponentName; url?: string; } export declare type ElementQLComponentName = string; export declare type PluridReactFunctionalComponent<T = any, W = PluridPlaneComponentProperty | PluridRouteComponentProperty> = React.FC<ComponentWithPlurid<T, W>>; export declare type PluridReactComponent<T = any, W = PluridPlaneComponentProperty | PluridRouteComponentProperty> = PluridReactFunctionalComponent<T, W> | ElementQLComponent | ElementQLComponentName; export declare type PluridReactPlaneComponent<T = any> = PluridReactFunctionalComponent<T, PluridPlaneComponentProperty>; export declare type PluridReactRouteComponent<T = any> = PluridReactFunctionalComponent<T, PluridRouteComponentProperty>; export declare type PluridReactPlane = PluridPlane<PluridReactComponent>; export declare type PluridReactRoute<G = any> = PluridRoute<PluridReactComponent, G>; export declare type PluridReactRoutePlane = PluridRoutePlane<PluridReactComponent>; export interface PluridLinkCoordinates { x: number; y: number; } export declare type PluridRouteMatch = IsoMatcherRouteResult<PluridReactComponent>; export * from './utility';