@plurid/plurid-react
Version:
React implementation of Plurid to explore the web in three dimensions
37 lines (36 loc) • 1.71 kB
TypeScript
import React from 'react';
import { AnyAction } from '@reduxjs/toolkit';
import { Theme } from '@plurid/plurid-themes';
import { RegisteredPluridPlane, TreePlane, TreePlaneLocation, PluridConfiguration } from '@plurid/plurid-data';
import { PluridReactComponent } from "../../../data/interfaces";
import actions from "../../../services/state/actions";
import { DispatchAction } from "../../../data/interfaces";
export interface PluridPlaneOwnProperties {
planeID: string;
plane: RegisteredPluridPlane<PluridReactComponent>;
treePlane: TreePlane;
location: TreePlaneLocation;
}
export interface PluridPlaneStateProperties {
stateTree: TreePlane[];
stateViewSize: any;
stateActivePlaneID: string;
stateIsolatePlane: string;
stateGeneralTheme: Theme;
stateConfiguration: PluridConfiguration;
}
export interface PluridPlaneDispatchProperties {
dispatchSetSpaceField: DispatchAction<typeof actions.space.setSpaceField>;
dispatchUpdateSpaceTreePlane: DispatchAction<typeof actions.space.updateSpaceTreePlane>;
}
export declare type PluridPlaneProperties = PluridPlaneOwnProperties & PluridPlaneStateProperties & PluridPlaneDispatchProperties;
declare const ConnectedPluridPlane: import("react-redux").ConnectedComponent<React.FC<React.PropsWithChildren<PluridPlaneProperties>>, {
planeID: string;
location: TreePlaneLocation;
children?: React.ReactNode;
plane: RegisteredPluridPlane<PluridReactComponent>;
treePlane: TreePlane;
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
}>;
export default ConnectedPluridPlane;