@react-motion-router/core 2.0.0-beta.sha-112968d → 2.0.0-beta.sha-4c84f16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Anchor.d.ts +21 -15
- package/build/NavigationBase.d.ts +10 -9
- package/build/RouterBase.d.ts +8 -6
- package/build/RouterContext.d.ts +1 -1
- package/build/ScreenBase.d.ts +2 -2
- package/build/ScreenTransitionProvider.d.ts +2 -2
- package/build/__tests__/common/utils.d.ts +3 -3
- package/build/common/events.d.ts +5 -18
- package/build/common/promise-wrapper.d.ts +8 -0
- package/build/common/types.d.ts +15 -11
- package/build/common/utils.d.ts +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +764 -676
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/Anchor.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AnchorProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
|
|
3
|
-
href?: string;
|
|
4
|
-
rel?: string;
|
|
5
|
-
historyEntryKey?: string;
|
|
6
|
-
navigateInfo?: unknown;
|
|
7
|
-
navigateState?: unknown;
|
|
8
|
-
reload?: boolean;
|
|
9
|
-
replace?: boolean;
|
|
10
|
-
traverse?: boolean;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}
|
|
1
|
+
import { default as React, RefObject } from 'react';
|
|
13
2
|
type AnchorState = {
|
|
14
3
|
href?: string | null;
|
|
15
4
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
interface AnchorBaseProps extends Omit<AnchorProps, 'ref'> {
|
|
6
|
+
ref?: RefObject<AnchorBase | null>;
|
|
7
|
+
}
|
|
8
|
+
export declare class AnchorBase extends React.Component<AnchorBaseProps, AnchorState> {
|
|
9
|
+
constructor(props: AnchorBaseProps);
|
|
10
|
+
readonly anchorRef: React.RefObject<HTMLAnchorElement | null>;
|
|
19
11
|
private static directionFromRel;
|
|
20
12
|
private static findClosestEntryByHref;
|
|
21
13
|
private static findClosestEntry;
|
|
@@ -23,7 +15,21 @@ export declare class Anchor extends React.Component<AnchorProps, AnchorState> {
|
|
|
23
15
|
componentWillUnmount(): void;
|
|
24
16
|
private readonly onNavigate;
|
|
25
17
|
private get href();
|
|
18
|
+
private get search();
|
|
26
19
|
private readonly handleClick;
|
|
27
20
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
28
21
|
}
|
|
22
|
+
export interface AnchorProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
|
|
23
|
+
href?: string;
|
|
24
|
+
rel?: string;
|
|
25
|
+
historyEntryKey?: string;
|
|
26
|
+
navigateInfo?: unknown;
|
|
27
|
+
navigateState?: unknown;
|
|
28
|
+
reload?: boolean;
|
|
29
|
+
replace?: boolean;
|
|
30
|
+
traverse?: boolean;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
search?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare function Anchor({ ref: forwardedRef, ...props }: AnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
29
35
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RouterBaseHTMLElement } from './common/types';
|
|
2
2
|
import { MetaData } from './MetaData';
|
|
3
|
-
export interface NavigationBaseConfig
|
|
4
|
-
addEventListener<K extends keyof
|
|
3
|
+
export interface NavigationBaseConfig {
|
|
4
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
5
5
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
6
6
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
7
|
-
removeEventListener<K extends keyof
|
|
7
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | EventListenerOptions | undefined): void;
|
|
8
8
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
9
9
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
10
10
|
dispatchEvent(event: Event): Promise<boolean>;
|
|
@@ -14,25 +14,26 @@ export interface NavigationBaseConfig<E extends RouterBaseEventMap = RouterBaseE
|
|
|
14
14
|
baseURLPattern: URLPattern;
|
|
15
15
|
getNavigatorById(routerId: string): NavigationBase | null;
|
|
16
16
|
}
|
|
17
|
-
export declare abstract class NavigationBase
|
|
17
|
+
export declare abstract class NavigationBase {
|
|
18
18
|
private static rootNavigatorRef;
|
|
19
19
|
readonly metaData: MetaData;
|
|
20
20
|
readonly addEventListener: {
|
|
21
|
-
<K extends keyof
|
|
21
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
22
22
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
23
23
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
24
24
|
};
|
|
25
25
|
readonly removeEventListener: {
|
|
26
|
-
<K extends keyof
|
|
26
|
+
<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | EventListenerOptions | undefined): void;
|
|
27
27
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
28
28
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
29
29
|
};
|
|
30
30
|
readonly dispatchEvent: (event: Event) => Promise<boolean>;
|
|
31
|
-
readonly parent: NavigationBase
|
|
31
|
+
readonly parent: NavigationBase | null;
|
|
32
32
|
readonly routerId: string;
|
|
33
33
|
readonly baseURL: URL;
|
|
34
34
|
readonly baseURLPattern: URLPattern;
|
|
35
35
|
readonly getNavigatorById: (routerId: string) => NavigationBase | null;
|
|
36
|
-
constructor(config: NavigationBaseConfig
|
|
36
|
+
constructor(config: NavigationBaseConfig);
|
|
37
|
+
protected preload(route: string, state?: unknown): NavigationResult;
|
|
37
38
|
private get isInDocument();
|
|
38
39
|
}
|
package/build/RouterBase.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationBase } from './NavigationBase';
|
|
2
2
|
import { ScreenTransitionLayer } from './ScreenTransitionLayer';
|
|
3
|
-
import { ScreenChild,
|
|
3
|
+
import { ScreenChild, RouterBaseHTMLElement, EventHandler } from './common/types';
|
|
4
4
|
import { NestedRouterContext } from './RouterContext';
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import { ScreenBase, ScreenBaseConfig } from './ScreenBase';
|
|
@@ -15,9 +15,9 @@ export interface RouterBaseProps<S extends ScreenBase = ScreenBase> {
|
|
|
15
15
|
children: ScreenChild<S> | ScreenChild<S>[];
|
|
16
16
|
}
|
|
17
17
|
export type RouterBaseState = object;
|
|
18
|
-
export declare abstract class RouterBase<P extends RouterBaseProps = RouterBaseProps, S extends RouterBaseState = RouterBaseState
|
|
18
|
+
export declare abstract class RouterBase<P extends RouterBaseProps = RouterBaseProps, S extends RouterBaseState = RouterBaseState> extends Component<P, S> implements EventHandler {
|
|
19
19
|
#private;
|
|
20
|
-
protected readonly ref: import('react').RefObject<
|
|
20
|
+
protected readonly ref: import('react').RefObject<RouterBaseHTMLElement | null>;
|
|
21
21
|
protected screenTransitionLayer: import('react').RefObject<ScreenTransitionLayer | null>;
|
|
22
22
|
abstract readonly navigation: NavigationBase;
|
|
23
23
|
readonly parent: RouterBase | null;
|
|
@@ -31,15 +31,17 @@ export declare abstract class RouterBase<P extends RouterBaseProps = RouterBaseP
|
|
|
31
31
|
} | null>;
|
|
32
32
|
context: React.ContextType<typeof NestedRouterContext>;
|
|
33
33
|
constructor(props: P, context: React.ContextType<typeof NestedRouterContext>);
|
|
34
|
+
private static get events();
|
|
34
35
|
componentDidMount(): void;
|
|
35
36
|
componentWillUnmount(): void;
|
|
36
|
-
|
|
37
|
+
onnavigate(e: NavigateEvent): void;
|
|
37
38
|
getRouterById(routerId: string, target?: RouterBase): RouterBase | null;
|
|
38
39
|
dispatchEvent(event: Event): Promise<boolean>;
|
|
39
|
-
addEventListener<K extends keyof
|
|
40
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
40
41
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
41
|
-
removeEventListener<K extends keyof
|
|
42
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: RouterBaseHTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | EventListenerOptions | undefined): void;
|
|
42
43
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
44
|
+
handleEvent(e: Event): void;
|
|
43
45
|
protected screenChildFromPathname(pathname: string): {
|
|
44
46
|
child: ScreenChild<ScreenType<P["children"]>>;
|
|
45
47
|
matchInfo: import('./common/types').MatchedRoute;
|
package/build/RouterContext.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export declare const NestedRouterContext: import('react').Context<{
|
|
|
4
4
|
parentRouter: RouterBase;
|
|
5
5
|
parentScreen: ScreenBase;
|
|
6
6
|
} | null>;
|
|
7
|
-
export declare const RouterContext: import('react').Context<RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<import('./ScreenBase').ScreenBaseProps, import('./ScreenBase').ScreenBaseState<import('./ScreenBase').ScreenBaseConfig<import('.').RoutePropBase<{}, import('.').PlainObject<any>>, import('./NavigationBase').NavigationBase
|
|
7
|
+
export declare const RouterContext: import('react').Context<RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<import('./ScreenBase').ScreenBaseProps, import('./ScreenBase').ScreenBaseState<import('./ScreenBase').ScreenBaseConfig<import('.').RoutePropBase<{}, import('.').PlainObject<any>>, import('./NavigationBase').NavigationBase> | undefined, import('.').PlainObject>, import('.').RoutePropBase<import('./ScreenBase').ScreenBaseConfig<import('.').RoutePropBase<{}, import('.').PlainObject<any>>, import('./NavigationBase').NavigationBase> | undefined, import('.').PlainObject<any>>>>, object>>;
|
package/build/ScreenBase.d.ts
CHANGED
|
@@ -54,9 +54,9 @@ export declare abstract class ScreenBase<P extends ScreenBaseProps = ScreenBaseP
|
|
|
54
54
|
protected readonly ref: import('react').RefObject<HTMLDivElement | null>;
|
|
55
55
|
protected readonly nestedRouterData: {
|
|
56
56
|
parentScreen: ScreenBase;
|
|
57
|
-
parentRouter: import('./RouterBase').RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<ScreenBaseProps, ScreenBaseState<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase
|
|
57
|
+
parentRouter: import('./RouterBase').RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<ScreenBaseProps, ScreenBaseState<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase> | undefined, PlainObject>, RoutePropBase<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase> | undefined, PlainObject<any>>>>, object>;
|
|
58
58
|
};
|
|
59
|
-
static readonly contextType: import('react').Context<import('./RouterBase').RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<ScreenBaseProps, ScreenBaseState<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase
|
|
59
|
+
static readonly contextType: import('react').Context<import('./RouterBase').RouterBase<import('./RouterBase').RouterBaseProps<ScreenBase<ScreenBaseProps, ScreenBaseState<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase> | undefined, PlainObject>, RoutePropBase<ScreenBaseConfig<RoutePropBase<{}, PlainObject<any>>, NavigationBase> | undefined, PlainObject<any>>>>, object>>;
|
|
60
60
|
context: React.ContextType<typeof RouterContext>;
|
|
61
61
|
state: S;
|
|
62
62
|
constructor(props: P, context: React.ContextType<typeof RouterContext>);
|
|
@@ -20,8 +20,8 @@ export declare class ScreenTransitionProvider extends Component<ScreenTransition
|
|
|
20
20
|
index: number;
|
|
21
21
|
exiting: boolean;
|
|
22
22
|
state: ScreenTransitionProviderState;
|
|
23
|
-
private
|
|
24
|
-
private
|
|
23
|
+
private onroutertransitionend;
|
|
24
|
+
private onroutertransitionstart;
|
|
25
25
|
componentDidMount(): void;
|
|
26
26
|
componentWillUnmount(): void;
|
|
27
27
|
get animationEffect(): AnimationEffect | null;
|
|
@@ -13,16 +13,16 @@ export declare class TestRouter extends RouterBase {
|
|
|
13
13
|
constructor(props: RouterBaseProps, context: React.ContextType<typeof NestedRouterContext>);
|
|
14
14
|
protected canIntercept(): boolean;
|
|
15
15
|
protected shouldIntercept(): boolean;
|
|
16
|
-
protected get screens(): React.CElement<import('../../ScreenBase').ScreenBaseProps, ScreenBase<import('../../ScreenBase').ScreenBaseProps, import('../../ScreenBase').ScreenBaseState<import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase
|
|
16
|
+
protected get screens(): React.CElement<import('../../ScreenBase').ScreenBaseProps, ScreenBase<import('../../ScreenBase').ScreenBaseProps, import('../../ScreenBase').ScreenBaseState<import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase> | undefined, import('../..').PlainObject>, import('../..').RoutePropBase<import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase> | undefined, import('../..').PlainObject<any>>>> | React.CElement<import('../../ScreenBase').ScreenBaseProps, ScreenBase<import('../../ScreenBase').ScreenBaseProps, import('../../ScreenBase').ScreenBaseState<import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase> | undefined, import('../..').PlainObject>, import('../..').RoutePropBase<import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase> | undefined, import('../..').PlainObject<any>>>>[];
|
|
17
17
|
protected intercept(e: NavigateEvent): void;
|
|
18
18
|
}
|
|
19
19
|
export declare class TestScreen extends ScreenBase {
|
|
20
20
|
get id(): string;
|
|
21
21
|
get params(): import('../..').PlainObject;
|
|
22
|
-
get config(): import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase
|
|
22
|
+
get config(): import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase>;
|
|
23
23
|
get resolvedPathname(): string;
|
|
24
24
|
protected get routeProp(): {
|
|
25
|
-
config: import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase
|
|
25
|
+
config: import('../../ScreenBase').ScreenBaseConfig<import('../..').RoutePropBase<{}, import('../..').PlainObject<any>>, NavigationBase>;
|
|
26
26
|
params: import('../..').PlainObject;
|
|
27
27
|
focused: boolean;
|
|
28
28
|
path: string;
|
package/build/common/events.d.ts
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { LoadNavigationTransition } from './types';
|
|
2
|
-
export declare class TransitionStartEvent extends Event {
|
|
3
|
-
constructor();
|
|
4
|
-
}
|
|
5
|
-
export declare class TransitionCancelEvent extends Event {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
8
|
-
export declare class TransitionEndEvent extends Event {
|
|
9
|
-
constructor();
|
|
10
|
-
}
|
|
11
|
-
export declare class MotionProgressStartEvent extends Event {
|
|
12
|
-
constructor();
|
|
13
|
-
}
|
|
14
|
-
export declare class MotionProgressEndEvent extends Event {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
2
|
export declare class LoadEvent extends Event implements Omit<NavigateEvent, 'navigationType' | 'commit'> {
|
|
18
3
|
#private;
|
|
19
4
|
readonly hasUAVisualTransition = false;
|
|
20
|
-
constructor(
|
|
5
|
+
constructor(navigationType: 'load' | 'preload', loadEventInitDict?: {
|
|
6
|
+
destination?: NavigationDestination | null;
|
|
7
|
+
});
|
|
21
8
|
intercept(options?: NavigationInterceptOptions | undefined): void;
|
|
22
9
|
scroll(): void;
|
|
23
|
-
get transition(): LoadNavigationTransition
|
|
24
|
-
get navigationType(): "load";
|
|
10
|
+
get transition(): LoadNavigationTransition;
|
|
11
|
+
get navigationType(): "load" | "preload";
|
|
25
12
|
get userInitiated(): boolean;
|
|
26
13
|
get canIntercept(): boolean;
|
|
27
14
|
get hashChange(): boolean;
|
package/build/common/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ScreenBase, ScreenBaseProps } from '../ScreenBase';
|
|
2
|
-
import { MotionProgressEndEvent, MotionProgressStartEvent, TransitionCancelEvent, TransitionEndEvent, TransitionStartEvent } from './events';
|
|
3
2
|
import { SharedElement } from '../SharedElement';
|
|
4
3
|
import { StandardPropertiesHyphen } from 'csstype';
|
|
5
4
|
export type ScreenChild<E extends ScreenBase = ScreenBase> = E extends ScreenBase<infer P> ? React.CElement<P, E> : never;
|
|
@@ -38,17 +37,22 @@ export declare function isValidScreenChild<S extends ScreenBase>(value: any): va
|
|
|
38
37
|
export type PlainObject<T = any> = {
|
|
39
38
|
[key: string]: T;
|
|
40
39
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementEventMap {
|
|
42
|
+
'routertransitionstart': TransitionEvent;
|
|
43
|
+
'routertransitioncancel': TransitionEvent;
|
|
44
|
+
'routertransitionend': TransitionEvent;
|
|
45
|
+
}
|
|
47
46
|
}
|
|
48
|
-
export type
|
|
49
|
-
|
|
47
|
+
export type EventHandler = {
|
|
48
|
+
[K in keyof HTMLElementEventMap as `on${K}`]?: (e: HTMLElementEventMap[K]) => void;
|
|
49
|
+
} & {
|
|
50
|
+
handleEvent: (e: Event) => void;
|
|
51
|
+
};
|
|
52
|
+
export type RouterBaseHTMLElement<T extends HTMLElement = HTMLDivElement> = T & {
|
|
53
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: T, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
50
54
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
51
|
-
removeEventListener<K extends keyof
|
|
55
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: T, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
52
56
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
53
57
|
};
|
|
54
58
|
export type CustomElementType = `${string}-${string}`;
|
|
@@ -81,7 +85,7 @@ export type StylableElement = Element & {
|
|
|
81
85
|
};
|
|
82
86
|
export declare function isStylableElement(element: any): element is StylableElement;
|
|
83
87
|
export interface LoadNavigationTransition extends Omit<NavigationTransition, 'navigationType'> {
|
|
84
|
-
navigationType: 'load';
|
|
88
|
+
navigationType: 'load' | 'preload';
|
|
85
89
|
}
|
|
86
90
|
declare global {
|
|
87
91
|
interface NavigateEvent extends Event {
|
package/build/common/utils.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export declare function PromiseAllSequential<T>(values: Iterable<T | PromiseLike
|
|
|
13
13
|
export declare function toCamelCase(value: string): string;
|
|
14
14
|
export declare function cloneAndInject<C extends React.CElement<any, any>, IP extends Partial<ElementPropType<C>>>(element: C, injectProps: IP): ClonedElementType<C, IP>;
|
|
15
15
|
export declare function omit<T extends object, K extends readonly (keyof T)[]>(obj: T, keys: K): Omit<T, K[number]>;
|
|
16
|
+
export declare function historyEntryFromDestination(destination: NavigationDestination): NavigationHistoryEntry;
|
package/build/index.d.ts
CHANGED
|
@@ -8,5 +8,8 @@ export * from './common/types';
|
|
|
8
8
|
export * from './common/events';
|
|
9
9
|
export * from './common/utils';
|
|
10
10
|
export * from './common/test-utils';
|
|
11
|
+
export * from './common/promise-wrapper';
|
|
11
12
|
export * from './common/constants';
|
|
12
13
|
export * from './Anchor';
|
|
14
|
+
export * from './RouterContext';
|
|
15
|
+
export * from './RoutePropContext';
|