@plurid/plurid-react
Version:
React implementation of Plurid to explore the web in three dimensions
43 lines (42 loc) • 2.55 kB
TypeScript
import React from 'react';
import { AnyAction, ThunkDispatch } from '@reduxjs/toolkit';
import { Theme } from '@plurid/plurid-themes';
import { PluridLink as PluridLinkOwnProperties, TreePlane, PluridConfiguration } from '@plurid/plurid-data';
import { PluridReactComponent } from "../../../data/interfaces";
import actions from "../../../services/state/actions";
import { ViewSize } from "../../../services/state/modules/space/types";
import { DispatchAction } from "../../../data/interfaces";
export interface PluridLinkStateProperties {
stateTree: TreePlane[];
stateLastClosedPlane: string;
stateGeneralTheme: Theme;
stateConfiguration: PluridConfiguration;
stateViewSize: ViewSize;
}
export interface PluridLinkDispatchProperties {
dispatch: ThunkDispatch<{}, {}, AnyAction>;
dispatchSetTree: DispatchAction<typeof actions.space.setTree>;
dispatchSetSpaceField: DispatchAction<typeof actions.space.setSpaceField>;
dispatchUpdateSpaceLinkCoordinates: DispatchAction<typeof actions.space.updateSpaceLinkCoordinates>;
dispatchRemovePlane: DispatchAction<typeof actions.space.removePlane>;
}
export declare type PluridLinkProperties = PluridLinkOwnProperties<PluridReactComponent, React.CSSProperties, React.MouseEvent> & PluridLinkStateProperties & PluridLinkDispatchProperties;
declare const ConnectedPluridLink: import("react-redux").ConnectedComponent<React.FC<React.PropsWithChildren<PluridLinkProperties>>, {
route: string;
children?: React.ReactNode;
style?: React.CSSProperties | undefined;
suffix?: string | undefined;
preview?: boolean | undefined;
className?: string | undefined;
atClick?: ((event?: MouseEvent | React.MouseEvent<Element, MouseEvent> | undefined) => void) | undefined;
previewOffsetX?: number | undefined;
previewOffsetY?: number | undefined;
previewComponent?: PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty> | undefined;
devisible?: boolean | undefined;
notFound?: boolean | PluridReactComponent<any, import("@plurid/plurid-data").PluridPlaneComponentProperty | import("@plurid/plurid-data").PluridRouteComponentProperty> | undefined;
previewFadeIn?: number | undefined;
previewFadeOut?: number | undefined;
context?: React.Context<import("react-redux").ReactReduxContextValue<any, AnyAction>> | undefined;
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
}>;
export default ConnectedPluridLink;