@react-motion-router/core
Version:
Declarative routing library for ReactJS ⚛ with animations baked in ⏮
39 lines (38 loc) • 2.26 kB
TypeScript
import { ScreenChild, AnimationConfig, AnimationConfigFactory, NodeAppendedEvent, NodeRemovedEvent } from './common/types';
import RouterData from './RouterData';
import NavigationBase from './NavigationBase';
import type { BackEvent, BackEventDetail, NavigateEvent, NavigateEventDetail, NavigateOptions, NavigationOptions, GoBackOptions } from './NavigationBase';
import RouterBase, { RouterBaseProps, RouterBaseState } from './RouterBase';
import ScreenBase, { ScreenBaseProps, ScreenBaseState } from './ScreenBase';
import HistoryBase from './HistoryBase';
import Anchor from './Anchor';
import { Motion } from './AnimationLayer';
import type AnimationLayerData from './AnimationLayerData';
import GestureRegion from './GestureRegion';
import 'web-gesture-events';
import { MotionProgressEndEvent, MotionProgressEvent, MotionProgressStartEvent, PageAnimationCancelEvent, PageAnimationEndEvent, PageAnimationStartEvent } from './MotionEvents';
import ScrollRestoration from './ScrollRestoration';
import { SharedElement } from './SharedElement';
interface MotionEventsMap {
"page-animation-start": PageAnimationStartEvent;
"page-animation-cancel": PageAnimationCancelEvent;
"page-animation-end": PageAnimationEndEvent;
"motion-progress-start": MotionProgressStartEvent;
"motion-progress": MotionProgressEvent;
"motion-progress-end": MotionProgressEndEvent;
"go-back": BackEvent;
"navigate": NavigateEvent;
"node-appended": NodeAppendedEvent;
"node-removed": NodeRemovedEvent;
}
declare global {
interface GlobalEventHandlersEventMap extends MotionEventsMap {
}
}
export type { AnimationConfig, AnimationConfigFactory, ScreenChild, RouterBaseProps, RouterBaseState, ScreenBaseProps, ScreenBaseState };
export { SharedElement, Anchor, Motion, GestureRegion, ScrollRestoration };
export { NavigationBase, HistoryBase, RouterBase, RouterData, ScreenBase };
export type { MotionProgressEndEvent, MotionProgressEvent, MotionProgressStartEvent, BackEvent, BackEventDetail, NavigateEvent, NavigateEventDetail, NavigateOptions, NavigationOptions, GoBackOptions, AnimationLayerData };
export * from './common/hooks';
export * from './common/types';
export * from './common/utils';